@mongodb-js/compass-web 0.35.7 → 0.36.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/157.ab4998e7eb2874601f10.mjs +2 -0
- package/dist/183.652977da27df0eb51f2b.mjs +23 -0
- package/dist/187.761186d8e743ea68ec17.mjs +2 -0
- package/dist/{901.2101dc93082369c119a3.mjs.LICENSE.txt → 187.761186d8e743ea68ec17.mjs.LICENSE.txt} +6 -0
- package/dist/503.edf8a9c8de8551ffb233.mjs +378 -0
- package/dist/811.caf23f67d965d1c56224.mjs +1 -0
- package/dist/819.a2cb944a78e8da07819a.mjs +2 -0
- package/dist/832.e3ec48107659934f74e7.mjs +2 -0
- package/dist/941.489a74e5b1130ccb5673.mjs +2 -0
- package/dist/{689.b9f771d18a27cabdd86f.mjs.LICENSE.txt → 941.489a74e5b1130ccb5673.mjs.LICENSE.txt} +0 -2
- package/dist/957.77fd779cd858963de4c6.mjs +1 -0
- package/dist/965.521bb6d90f74d9a364b7.mjs +1 -0
- package/dist/assets-manifest.json +11 -12
- package/dist/compass-web.d.ts +19 -292
- package/dist/compass-web.mjs +23 -23
- package/dist/index-bde52cb3.dcb93bf5aae17031a20c.mjs +1 -0
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +55 -54
- package/dist/128.d74f22fdbc215f781713.mjs +0 -2
- package/dist/334.5c7ea1196bedce284d77.mjs +0 -1
- package/dist/483.64ece2742f0cbf71e1e9.mjs +0 -2
- package/dist/576.0e57b73614a2b8a60291.mjs +0 -378
- package/dist/689.b9f771d18a27cabdd86f.mjs +0 -2
- package/dist/800.6acd53ae9617e3cb63ed.mjs +0 -2
- package/dist/835.36c7bf1b88a1eece32fa.mjs +0 -2
- package/dist/835.36c7bf1b88a1eece32fa.mjs.LICENSE.txt +0 -5
- package/dist/877.f2c4c41353559e328324.mjs +0 -23
- package/dist/901.2101dc93082369c119a3.mjs +0 -2
- package/dist/957.97342b2fd269cf5f89d9.mjs +0 -1
- package/dist/965.437e2973d0ee9d5a908c.mjs +0 -1
- package/dist/index-bde52cb3.50a2f0232178524f12c7.mjs +0 -1
- /package/dist/{483.64ece2742f0cbf71e1e9.mjs.LICENSE.txt → 157.ab4998e7eb2874601f10.mjs.LICENSE.txt} +0 -0
- /package/dist/{877.f2c4c41353559e328324.mjs.LICENSE.txt → 183.652977da27df0eb51f2b.mjs.LICENSE.txt} +0 -0
- /package/dist/{576.0e57b73614a2b8a60291.mjs.LICENSE.txt → 503.edf8a9c8de8551ffb233.mjs.LICENSE.txt} +0 -0
- /package/dist/{128.d74f22fdbc215f781713.mjs.LICENSE.txt → 819.a2cb944a78e8da07819a.mjs.LICENSE.txt} +0 -0
- /package/dist/{800.6acd53ae9617e3cb63ed.mjs.LICENSE.txt → 832.e3ec48107659934f74e7.mjs.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 800.6acd53ae9617e3cb63ed.mjs.LICENSE.txt */
|
|
2
|
-
export const __webpack_esm_id__=800;export const __webpack_esm_ids__=[800];export const __webpack_esm_modules__={249:function(e,t,n){var r;!function(e,t,n){var r,i=Object.create,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,p=(e,t)=>function(){return t||(0,e[a(e)[0]])((t={exports:{}}).exports,t),t.exports},u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of a(t))c.call(e,i)||i===n||s(e,i,{get:()=>t[i],enumerable:!(r=o(t,i))||r.enumerable});return e},h=(e,t,n)=>(n=null!=e?i(l(e)):{},u(!t&&e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)),d=p({"umd:@jridgewell/sourcemap-codec"(e,n){n.exports=t}}),f=p({"umd:@jridgewell/trace-mapping"(e,t){t.exports=n}}),m={};((e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(m,{GenMapping:()=>I,addMapping:()=>_,addSegment:()=>C,allMappings:()=>F,fromMap:()=>B,maybeAddMapping:()=>O,maybeAddSegment:()=>N,setIgnore:()=>M,setSourceContent:()=>k,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 g(e,t){return e._indexes[t]}function T(e,t){const n=g(e,t);if(void 0!==n)return n;const{array:r,_indexes:i}=e,s=r.push(t);return i[t]=s-1}var S=h(d()),b=h(f()),x=0,v=1,E=2,w=3,A=4,P=-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,n,r,i,s,o,a){return R(!1,e,t,n,r,i,s,o,a)}function _(e,t){return V(!1,e,t)}var N=(e,t,n,r,i,s,o,a)=>R(!0,e,t,n,r,i,s,o,a),O=(e,t)=>V(!0,e,t);function k(e,t,n){const{_sources:r,_sourcesContent:i}=e;i[T(r,t)]=n}function M(e,t,n=!0){const{_sources:r,_sourcesContent:i,_ignoreList:s}=e,o=T(r,t);o===i.length&&(i[o]=null),n?T(s,o):function(e,t){const n=g(e,t);if(void 0===n)return;const{array:r,_indexes:i}=e;for(let e=n+1;e<r.length;e++){const t=r[e];r[e-1]=t,i[t]--}i[t]=void 0,r.pop()}(s,o)}function L(e){const{_mappings:t,_sources:n,_sourcesContent:r,_names:i,_ignoreList:s}=e;return function(e){const{length:t}=e;let n=t;for(let t=n-1;t>=0&&!(e[t].length>0);n=t,t--);n<t&&(e.length=n)}(t),{version:3,file:e.file||void 0,names:i.array,sourceRoot:e.sourceRoot||void 0,sources:n.array,sourcesContent:r,mappings:t,ignoreList:s.array}}function D(e){const t=L(e);return Object.assign({},t,{mappings:(0,S.encode)(t.mappings)})}function B(e){const t=new b.TraceMap(e),n=new I({file:t.file,sourceRoot:t.sourceRoot});return U(n._names,t.names),U(n._sources,t.sources),n._sourcesContent=t.sourcesContent||t.sources.map((()=>null)),n._mappings=(0,b.decodedMappings)(t),t.ignoreList&&U(n._ignoreList,t.ignoreList),n}function F(e){const t=[],{_mappings:n,_sources:r,_names:i}=e;for(let e=0;e<n.length;e++){const s=n[e];for(let n=0;n<s.length;n++){const o=s[n],a={line:e+1,column:o[x]};let l,c,p;1!==o.length&&(l=r.array[o[v]],c={line:o[E]+1,column:o[w]},5===o.length&&(p=i.array[o[A]])),t.push({generated:a,source:l,original:c,name:p})}}return t}function R(e,t,n,r,i,s,o,a,l){const{_mappings:c,_sources:p,_sourcesContent:u,_names:h}=t,d=function(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}(c,n),f=function(e,t){let n=e.length;for(let r=n-1;r>=0&&!(t>=e[r][x]);n=r--);return n}(d,r);if(!i){if(e&&function(e,t){return 0===t||1===e[t-1].length}(d,f))return;return j(d,f,[r])}const m=T(p,i),y=a?T(h,a):P;if(m===u.length&&(u[m]=null!=l?l:null),!e||!function(e,t,n,r,i,s){if(0===t)return!1;const o=e[t-1];return 1!==o.length&&n===o[v]&&r===o[E]&&i===o[w]&&s===(5===o.length?o[A]:P)}(d,f,m,s,o,y))return j(d,f,a?[r,m,s,o,y]:[r,m,s,o])}function j(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}function U(e,t){for(let n=0;n<t.length;n++)T(e,t[n])}function V(e,t,n){const{generated:r,source:i,original:s,name:o,content:a}=n;return i?R(e,t,r.line-1,r.column,i,s.line-1,s.column,o,a):R(e,t,r.line-1,r.column,null,null,null,null,null)}}(e=n.nmd(e),n(31997),n(5981)),e.exports="default"in(r=e).exports?r.exports.default:r.exports},372:(e,t,n)=>{var r;function i(e){this.rand=e}if(e.exports=function(e){return r||(r=new i(null)),r.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n<t.length;n++)t[n]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var s=n(27348);if("function"!=typeof s.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return s.randomBytes(e)}}catch(e){}},470:(e,t,n)=>{var r=n(81367).DecisionState,i=n(7842).Ij,s=n(66346).Hash;function o(e,t){if(null===e){var n={state:null,alt:null,context:null,semanticContext:null};return t&&(n.reachesIntoOuterContext=0),n}var r={};return r.state=e.state||null,r.alt=void 0===e.alt?null:e.alt,r.context=e.context||null,r.semanticContext=e.semanticContext||null,t&&(r.reachesIntoOuterContext=e.reachesIntoOuterContext||0,r.precedenceFilterSuppressed=e.precedenceFilterSuppressed||!1),r}function a(e,t){return this.checkContext(e,t),e=o(e),t=o(t,!0),this.state=null!==e.state?e.state:t.state,this.alt=null!==e.alt?e.alt:t.alt,this.context=null!==e.context?e.context:t.context,this.semanticContext=null!==e.semanticContext?e.semanticContext:null!==t.semanticContext?t.semanticContext:i.NONE,this.reachesIntoOuterContext=t.reachesIntoOuterContext,this.precedenceFilterSuppressed=t.precedenceFilterSuppressed,this}function l(e,t){a.call(this,e,t);var n=e.lexerActionExecutor||null;return this.lexerActionExecutor=n||(null!==t?t.lexerActionExecutor:null),this.passedThroughNonGreedyDecision=null!==t&&this.checkNonGreedyDecision(t,this.state),this}a.prototype.checkContext=function(e,t){null!==e.context&&void 0!==e.context||null!==t&&null!==t.context&&void 0!==t.context||(this.context=null)},a.prototype.hashCode=function(){var e=new s;return this.updateHashCode(e),e.finish()},a.prototype.updateHashCode=function(e){e.update(this.state.stateNumber,this.alt,this.context,this.semanticContext)},a.prototype.equals=function(e){return this===e||e instanceof a&&this.state.stateNumber===e.state.stateNumber&&this.alt===e.alt&&(null===this.context?null===e.context:this.context.equals(e.context))&&this.semanticContext.equals(e.semanticContext)&&this.precedenceFilterSuppressed===e.precedenceFilterSuppressed},a.prototype.hashCodeForConfigSet=function(){var e=new s;return e.update(this.state.stateNumber,this.alt,this.semanticContext),e.finish()},a.prototype.equalsForConfigSet=function(e){return this===e||e instanceof a&&this.state.stateNumber===e.state.stateNumber&&this.alt===e.alt&&this.semanticContext.equals(e.semanticContext)},a.prototype.toString=function(){return"("+this.state+","+this.alt+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==i.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext>0?",up="+this.reachesIntoOuterContext:"")+")"},l.prototype=Object.create(a.prototype),l.prototype.constructor=l,l.prototype.updateHashCode=function(e){e.update(this.state.stateNumber,this.alt,this.context,this.semanticContext,this.passedThroughNonGreedyDecision,this.lexerActionExecutor)},l.prototype.equals=function(e){return this===e||e instanceof l&&this.passedThroughNonGreedyDecision==e.passedThroughNonGreedyDecision&&(this.lexerActionExecutor?this.lexerActionExecutor.equals(e.lexerActionExecutor):!e.lexerActionExecutor)&&a.prototype.equals.call(this,e)},l.prototype.hashCodeForConfigSet=l.prototype.hashCode,l.prototype.equalsForConfigSet=l.prototype.equals,l.prototype.checkNonGreedyDecision=function(e,t){return e.passedThroughNonGreedyDecision||t instanceof r&&t.nonGreedy},t.G=a,t.I=l},479:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e||!t)return e;for(const n of r.INHERIT_KEYS.optional)null==e[n]&&(e[n]=t[n]);for(const n of Object.keys(t))"_"===n[0]&&"__clone"!==n&&(e[n]=t[n]);for(const n of r.INHERIT_KEYS.force)e[n]=t[n];return(0,i.default)(e,t),e};var r=n(62811),i=n(60616)},496:(e,t,n)=>{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=n(52625);function i(e){return r[e]}n(74641),t.ArrayExpression=i("arrayExpression"),t.AssignmentExpression=i("assignmentExpression"),t.BinaryExpression=i("binaryExpression"),t.InterpreterDirective=i("interpreterDirective"),t.Directive=i("directive"),t.DirectiveLiteral=i("directiveLiteral"),t.BlockStatement=i("blockStatement"),t.BreakStatement=i("breakStatement"),t.CallExpression=i("callExpression"),t.CatchClause=i("catchClause"),t.ConditionalExpression=i("conditionalExpression"),t.ContinueStatement=i("continueStatement"),t.DebuggerStatement=i("debuggerStatement"),t.DoWhileStatement=i("doWhileStatement"),t.EmptyStatement=i("emptyStatement"),t.ExpressionStatement=i("expressionStatement"),t.File=i("file"),t.ForInStatement=i("forInStatement"),t.ForStatement=i("forStatement"),t.FunctionDeclaration=i("functionDeclaration"),t.FunctionExpression=i("functionExpression"),t.Identifier=i("identifier"),t.IfStatement=i("ifStatement"),t.LabeledStatement=i("labeledStatement"),t.StringLiteral=i("stringLiteral"),t.NumericLiteral=i("numericLiteral"),t.NullLiteral=i("nullLiteral"),t.BooleanLiteral=i("booleanLiteral"),t.RegExpLiteral=i("regExpLiteral"),t.LogicalExpression=i("logicalExpression"),t.MemberExpression=i("memberExpression"),t.NewExpression=i("newExpression"),t.Program=i("program"),t.ObjectExpression=i("objectExpression"),t.ObjectMethod=i("objectMethod"),t.ObjectProperty=i("objectProperty"),t.RestElement=i("restElement"),t.ReturnStatement=i("returnStatement"),t.SequenceExpression=i("sequenceExpression"),t.ParenthesizedExpression=i("parenthesizedExpression"),t.SwitchCase=i("switchCase"),t.SwitchStatement=i("switchStatement"),t.ThisExpression=i("thisExpression"),t.ThrowStatement=i("throwStatement"),t.TryStatement=i("tryStatement"),t.UnaryExpression=i("unaryExpression"),t.UpdateExpression=i("updateExpression"),t.VariableDeclaration=i("variableDeclaration"),t.VariableDeclarator=i("variableDeclarator"),t.WhileStatement=i("whileStatement"),t.WithStatement=i("withStatement"),t.AssignmentPattern=i("assignmentPattern"),t.ArrayPattern=i("arrayPattern"),t.ArrowFunctionExpression=i("arrowFunctionExpression"),t.ClassBody=i("classBody"),t.ClassExpression=i("classExpression"),t.ClassDeclaration=i("classDeclaration"),t.ExportAllDeclaration=i("exportAllDeclaration"),t.ExportDefaultDeclaration=i("exportDefaultDeclaration"),t.ExportNamedDeclaration=i("exportNamedDeclaration"),t.ExportSpecifier=i("exportSpecifier"),t.ForOfStatement=i("forOfStatement"),t.ImportDeclaration=i("importDeclaration"),t.ImportDefaultSpecifier=i("importDefaultSpecifier"),t.ImportNamespaceSpecifier=i("importNamespaceSpecifier"),t.ImportSpecifier=i("importSpecifier"),t.ImportExpression=i("importExpression"),t.MetaProperty=i("metaProperty"),t.ClassMethod=i("classMethod"),t.ObjectPattern=i("objectPattern"),t.SpreadElement=i("spreadElement"),t.Super=i("super"),t.TaggedTemplateExpression=i("taggedTemplateExpression"),t.TemplateElement=i("templateElement"),t.TemplateLiteral=i("templateLiteral"),t.YieldExpression=i("yieldExpression"),t.AwaitExpression=i("awaitExpression"),t.Import=i("import"),t.BigIntLiteral=i("bigIntLiteral"),t.ExportNamespaceSpecifier=i("exportNamespaceSpecifier"),t.OptionalMemberExpression=i("optionalMemberExpression"),t.OptionalCallExpression=i("optionalCallExpression"),t.ClassProperty=i("classProperty"),t.ClassAccessorProperty=i("classAccessorProperty"),t.ClassPrivateProperty=i("classPrivateProperty"),t.ClassPrivateMethod=i("classPrivateMethod"),t.PrivateName=i("privateName"),t.StaticBlock=i("staticBlock"),t.ImportAttribute=i("importAttribute"),t.AnyTypeAnnotation=i("anyTypeAnnotation"),t.ArrayTypeAnnotation=i("arrayTypeAnnotation"),t.BooleanTypeAnnotation=i("booleanTypeAnnotation"),t.BooleanLiteralTypeAnnotation=i("booleanLiteralTypeAnnotation"),t.NullLiteralTypeAnnotation=i("nullLiteralTypeAnnotation"),t.ClassImplements=i("classImplements"),t.DeclareClass=i("declareClass"),t.DeclareFunction=i("declareFunction"),t.DeclareInterface=i("declareInterface"),t.DeclareModule=i("declareModule"),t.DeclareModuleExports=i("declareModuleExports"),t.DeclareTypeAlias=i("declareTypeAlias"),t.DeclareOpaqueType=i("declareOpaqueType"),t.DeclareVariable=i("declareVariable"),t.DeclareExportDeclaration=i("declareExportDeclaration"),t.DeclareExportAllDeclaration=i("declareExportAllDeclaration"),t.DeclaredPredicate=i("declaredPredicate"),t.ExistsTypeAnnotation=i("existsTypeAnnotation"),t.FunctionTypeAnnotation=i("functionTypeAnnotation"),t.FunctionTypeParam=i("functionTypeParam"),t.GenericTypeAnnotation=i("genericTypeAnnotation"),t.InferredPredicate=i("inferredPredicate"),t.InterfaceExtends=i("interfaceExtends"),t.InterfaceDeclaration=i("interfaceDeclaration"),t.InterfaceTypeAnnotation=i("interfaceTypeAnnotation"),t.IntersectionTypeAnnotation=i("intersectionTypeAnnotation"),t.MixedTypeAnnotation=i("mixedTypeAnnotation"),t.EmptyTypeAnnotation=i("emptyTypeAnnotation"),t.NullableTypeAnnotation=i("nullableTypeAnnotation"),t.NumberLiteralTypeAnnotation=i("numberLiteralTypeAnnotation"),t.NumberTypeAnnotation=i("numberTypeAnnotation"),t.ObjectTypeAnnotation=i("objectTypeAnnotation"),t.ObjectTypeInternalSlot=i("objectTypeInternalSlot"),t.ObjectTypeCallProperty=i("objectTypeCallProperty"),t.ObjectTypeIndexer=i("objectTypeIndexer"),t.ObjectTypeProperty=i("objectTypeProperty"),t.ObjectTypeSpreadProperty=i("objectTypeSpreadProperty"),t.OpaqueType=i("opaqueType"),t.QualifiedTypeIdentifier=i("qualifiedTypeIdentifier"),t.StringLiteralTypeAnnotation=i("stringLiteralTypeAnnotation"),t.StringTypeAnnotation=i("stringTypeAnnotation"),t.SymbolTypeAnnotation=i("symbolTypeAnnotation"),t.ThisTypeAnnotation=i("thisTypeAnnotation"),t.TupleTypeAnnotation=i("tupleTypeAnnotation"),t.TypeofTypeAnnotation=i("typeofTypeAnnotation"),t.TypeAlias=i("typeAlias"),t.TypeAnnotation=i("typeAnnotation"),t.TypeCastExpression=i("typeCastExpression"),t.TypeParameter=i("typeParameter"),t.TypeParameterDeclaration=i("typeParameterDeclaration"),t.TypeParameterInstantiation=i("typeParameterInstantiation"),t.UnionTypeAnnotation=i("unionTypeAnnotation"),t.Variance=i("variance"),t.VoidTypeAnnotation=i("voidTypeAnnotation"),t.EnumDeclaration=i("enumDeclaration"),t.EnumBooleanBody=i("enumBooleanBody"),t.EnumNumberBody=i("enumNumberBody"),t.EnumStringBody=i("enumStringBody"),t.EnumSymbolBody=i("enumSymbolBody"),t.EnumBooleanMember=i("enumBooleanMember"),t.EnumNumberMember=i("enumNumberMember"),t.EnumStringMember=i("enumStringMember"),t.EnumDefaultedMember=i("enumDefaultedMember"),t.IndexedAccessType=i("indexedAccessType"),t.OptionalIndexedAccessType=i("optionalIndexedAccessType"),t.JSXAttribute=i("jsxAttribute"),t.JSXClosingElement=i("jsxClosingElement"),t.JSXElement=i("jsxElement"),t.JSXEmptyExpression=i("jsxEmptyExpression"),t.JSXExpressionContainer=i("jsxExpressionContainer"),t.JSXSpreadChild=i("jsxSpreadChild"),t.JSXIdentifier=i("jsxIdentifier"),t.JSXMemberExpression=i("jsxMemberExpression"),t.JSXNamespacedName=i("jsxNamespacedName"),t.JSXOpeningElement=i("jsxOpeningElement"),t.JSXSpreadAttribute=i("jsxSpreadAttribute"),t.JSXText=i("jsxText"),t.JSXFragment=i("jsxFragment"),t.JSXOpeningFragment=i("jsxOpeningFragment"),t.JSXClosingFragment=i("jsxClosingFragment"),t.Noop=i("noop"),t.Placeholder=i("placeholder"),t.V8IntrinsicIdentifier=i("v8IntrinsicIdentifier"),t.ArgumentPlaceholder=i("argumentPlaceholder"),t.BindExpression=i("bindExpression"),t.Decorator=i("decorator"),t.DoExpression=i("doExpression"),t.ExportDefaultSpecifier=i("exportDefaultSpecifier"),t.RecordExpression=i("recordExpression"),t.TupleExpression=i("tupleExpression"),t.DecimalLiteral=i("decimalLiteral"),t.ModuleExpression=i("moduleExpression"),t.TopicReference=i("topicReference"),t.PipelineTopicExpression=i("pipelineTopicExpression"),t.PipelineBareFunction=i("pipelineBareFunction"),t.PipelinePrimaryTopicReference=i("pipelinePrimaryTopicReference"),t.VoidPattern=i("voidPattern"),t.TSParameterProperty=i("tsParameterProperty"),t.TSDeclareFunction=i("tsDeclareFunction"),t.TSDeclareMethod=i("tsDeclareMethod"),t.TSQualifiedName=i("tsQualifiedName"),t.TSCallSignatureDeclaration=i("tsCallSignatureDeclaration"),t.TSConstructSignatureDeclaration=i("tsConstructSignatureDeclaration"),t.TSPropertySignature=i("tsPropertySignature"),t.TSMethodSignature=i("tsMethodSignature"),t.TSIndexSignature=i("tsIndexSignature"),t.TSAnyKeyword=i("tsAnyKeyword"),t.TSBooleanKeyword=i("tsBooleanKeyword"),t.TSBigIntKeyword=i("tsBigIntKeyword"),t.TSIntrinsicKeyword=i("tsIntrinsicKeyword"),t.TSNeverKeyword=i("tsNeverKeyword"),t.TSNullKeyword=i("tsNullKeyword"),t.TSNumberKeyword=i("tsNumberKeyword"),t.TSObjectKeyword=i("tsObjectKeyword"),t.TSStringKeyword=i("tsStringKeyword"),t.TSSymbolKeyword=i("tsSymbolKeyword"),t.TSUndefinedKeyword=i("tsUndefinedKeyword"),t.TSUnknownKeyword=i("tsUnknownKeyword"),t.TSVoidKeyword=i("tsVoidKeyword"),t.TSThisType=i("tsThisType"),t.TSFunctionType=i("tsFunctionType"),t.TSConstructorType=i("tsConstructorType"),t.TSTypeReference=i("tsTypeReference"),t.TSTypePredicate=i("tsTypePredicate"),t.TSTypeQuery=i("tsTypeQuery"),t.TSTypeLiteral=i("tsTypeLiteral"),t.TSArrayType=i("tsArrayType"),t.TSTupleType=i("tsTupleType"),t.TSOptionalType=i("tsOptionalType"),t.TSRestType=i("tsRestType"),t.TSNamedTupleMember=i("tsNamedTupleMember"),t.TSUnionType=i("tsUnionType"),t.TSIntersectionType=i("tsIntersectionType"),t.TSConditionalType=i("tsConditionalType"),t.TSInferType=i("tsInferType"),t.TSParenthesizedType=i("tsParenthesizedType"),t.TSTypeOperator=i("tsTypeOperator"),t.TSIndexedAccessType=i("tsIndexedAccessType"),t.TSMappedType=i("tsMappedType"),t.TSTemplateLiteralType=i("tsTemplateLiteralType"),t.TSLiteralType=i("tsLiteralType"),t.TSExpressionWithTypeArguments=i("tsExpressionWithTypeArguments"),t.TSInterfaceDeclaration=i("tsInterfaceDeclaration"),t.TSInterfaceBody=i("tsInterfaceBody"),t.TSTypeAliasDeclaration=i("tsTypeAliasDeclaration"),t.TSInstantiationExpression=i("tsInstantiationExpression"),t.TSAsExpression=i("tsAsExpression"),t.TSSatisfiesExpression=i("tsSatisfiesExpression"),t.TSTypeAssertion=i("tsTypeAssertion"),t.TSEnumBody=i("tsEnumBody"),t.TSEnumDeclaration=i("tsEnumDeclaration"),t.TSEnumMember=i("tsEnumMember"),t.TSModuleDeclaration=i("tsModuleDeclaration"),t.TSModuleBlock=i("tsModuleBlock"),t.TSImportType=i("tsImportType"),t.TSImportEqualsDeclaration=i("tsImportEqualsDeclaration"),t.TSExternalModuleReference=i("tsExternalModuleReference"),t.TSNonNullExpression=i("tsNonNullExpression"),t.TSExportAssignment=i("tsExportAssignment"),t.TSNamespaceExportDeclaration=i("tsNamespaceExportDeclaration"),t.TSTypeAnnotation=i("tsTypeAnnotation"),t.TSTypeParameterInstantiation=i("tsTypeParameterInstantiation"),t.TSTypeParameterDeclaration=i("tsTypeParameterDeclaration"),t.TSTypeParameter=i("tsTypeParameter"),t.NumberLiteral=r.numberLiteral,t.RegexLiteral=r.regexLiteral,t.RestProperty=r.restProperty,t.SpreadProperty=r.spreadProperty},517:(e,t,n)=>{var r=n(79696).Buffer;function i(e,t,n){for(var r,i,o=-1,a=0;++o<8;)r=t&1<<7-o?128:0,a+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^r))>>o%8,e._prev=s(e._prev,n?r:i);return a}function s(e,t){var n=e.length,i=-1,s=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++i<n;)s[i]=e[i]<<1|e[i+1]>>7;return s}t.encrypt=function(e,t,n){for(var s=t.length,o=r.allocUnsafe(s),a=-1;++a<s;)o[a]=i(e,t[a],n);return o}},713:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e||!e.length)return;const n=[],i=(0,r.default)(e,n);if(i){for(const e of n)t.push(e);return i}};var r=n(54390)},910:(e,t,n)=>{var r=n(53896),i=n(79696).Buffer,s=n(3663);function o(e){var t=e._cipher.encryptBlockRaw(e._prev);return s(e._prev),t}t.encrypt=function(e,t){var n=Math.ceil(t.length/16),s=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*n)]);for(var a=0;a<n;a++){var l=o(e),c=s+16*a;e._cache.writeUInt32BE(l[0],c+0),e._cache.writeUInt32BE(l[1],c+4),e._cache.writeUInt32BE(l[2],c+8),e._cache.writeUInt32BE(l[3],c+12)}var p=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),r(t,p)}},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,n,r,i){const s=this._queueCursor;s===this._queue.length&&this._allocQueue();const o=this._queue[s];o.char=e,o.repeat=t,o.line=n,o.column=r,o.filename=i,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 n=e?e.get():null;return t.map=n,n},set map(e){Object.defineProperty(t,"map",{value:e,writable:!0})},get rawMappings(){const n=null==e?void 0:e.getRawMappings();return t.rawMappings=n,n},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 n=0;n<e;n++){const e=t[n];this._appendChar(e.char,e.repeat,e)}this._queueCursor=0}_appendChar(e,t,n){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(n.line,n.column,n.identifierName,n.identifierNamePos,n.filename),this._position.column+=t):(this._position.line++,this._position.column=0),this._canMarkIdName&&(n.identifierName=void 0,n.identifierNamePos=void 0)}_append(e,t,n){const r=e.length,i=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,!n&&!this._map)return void(i.column+=r);const{column:s,identifierName:o,identifierNamePos:a,filename:l}=t;let c=t.line;null==o&&null==a||!this._canMarkIdName||(t.identifierName=void 0,t.identifierNamePos=void 0);let p=e.indexOf("\n"),u=0;for(0!==p&&this._mark(c,s,o,a,l);-1!==p;)i.line++,i.column=0,u=p+1,u<r&&void 0!==c&&this._mark(++c,0,null,null,l),p=e.indexOf("\n",u);i.column+=r-u}_mark(e,t,n,r,i){var s;null==(s=this._map)||s.mark(this._position,e,t,n,r,i)}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 n=e-1;n>=0&&10===this._queue[n].char;n--)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 n=e.identifierName,r=this._sourcePosition;n&&(this._canMarkIdName=!1,r.identifierName=n),t(),n&&(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,n){this._map&&this._normalizePosition(e,t,n)}_normalizePosition(e,t,n){const r=t[e],i=this._sourcePosition;r&&(i.line=r.line,i.column=Math.max(r.column+n,0),i.filename=t.filename)}getCurrentColumn(){const e=this._queue,t=this._queueCursor;let n=-1,r=0;for(let i=0;i<t;i++){const t=e[i];10===t.char&&(n=r),r+=t.repeat}return-1===n?this._position.column+r:r-1-n}getCurrentLine(){let e=0;const t=this._queue;for(let n=0;n<this._queueCursor;n++)10===t[n].char&&e++;return this._position.line+e}}},1582:(e,t,n)=>{var r=n(79696).Buffer;function i(e,t,n){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=r.concat([e._prev.slice(1),r.from([n?t:i])]),i}t.encrypt=function(e,t,n){for(var s=t.length,o=r.allocUnsafe(s),a=-1;++a<s;)o[a]=i(e,t[a],n);return o}},1859:(e,t,n)=>{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 i(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}n.d(t,{A:()=>i})},1972:(e,t,n)=>{var r=n(30462).Buffer,i=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===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=p,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 o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,n=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!==n?n: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 n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.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],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function p(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?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-n))}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,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):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 n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=o(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=o(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-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,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}},3903:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=Object.keys(t);for(const r of n)if(e[r]!==t[r])return!1;return!0}},3971:(e,t,n)=>{var r=n(65994).process,i=n(10626);e.exports=S;var s,o=n(49667);S.ReadableState=T,n(8763).EventEmitter;var a=function(e,t){return e.listeners(t).length},l=n(5372),c=n(58777).Buffer,p=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},u=Object.create(n(26571));u.inherits=n(25003);var h=n(98437),d=void 0;d=h&&h.debuglog?h.debuglog("stream"):function(){};var f,m=n(92339),y=n(89779);u.inherits(S,l);var g=["error","close","destroy","pause","resume"];function T(e,t){e=e||{};var r=t instanceof(s=s||n(49837));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,o=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(o||0===o)?o:a,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=n(1972).I),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function S(e){if(s=s||n(49837),!(this instanceof S))return new S(e);this._readableState=new T(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 b(e,t,n,r,i){var s,o=e._readableState;return null===t?(o.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,w(e)}}(e,o)):(i||(s=function(e,t){var n,r;return r=t,c.isBuffer(r)||r instanceof p||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(o,t)),s?e.emit("error",s):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):x(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?x(e,o,t,!1):P(e,o)):x(e,o,t,!1))):r||(o.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function x(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&w(e)),P(e,t)}Object.defineProperty(S.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=y.destroy,S.prototype._undestroy=y.undestroy,S.prototype._destroy=function(e,t){this.push(null),t(e)},S.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=c.from(e,t),t=""),n=!0),b(this,e,t,!1,n)},S.prototype.unshift=function(e){return b(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){return f||(f=n(1972).I),this._readableState.decoder=new f(e),this._readableState.encoding=e,this};var v=8388608;function E(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>=v?e=v:(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 w(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(A,e):A(e))}function A(e){d("emit readable"),e.emit("readable"),N(e)}function P(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(I,e,t))}function I(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(d("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function C(e){d("readable nexttick read 0"),e.read(0)}function _(e,t){t.reading||(d("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),N(e),t.flowing&&!t.reading&&e.read(0)}function N(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function O(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){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():n?function(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var s=n.data,o=e>s.length?s.length:e;if(o===s.length?i+=s:i+=s.slice(0,e),0==(e-=o)){o===s.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=s.slice(o));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var s=r.data,o=e>s.length?s.length:e;if(s.copy(n,n.length-e,0,o),0==(e-=o)){o===s.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(o));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function k(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.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 n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}S.prototype.read=function(e){d("read",e),e=parseInt(e,10);var t=this._readableState,n=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?k(this):w(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&k(this),null;var r,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&d("length less than watermark",i=!0),t.ended||t.reading?d("reading or ended",i=!1):i&&(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=E(n,t))),null===(r=e>0?O(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&k(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},S.prototype.pipe=function(e,t){var n=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?T:c;function c(){d("onend"),e.end()}s.endEmitted?i.nextTick(l):n.once("end",l),e.on("unpipe",(function t(r,i){d("onunpipe"),r===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,d("cleanup"),e.removeListener("close",y),e.removeListener("finish",g),e.removeListener("drain",p),e.removeListener("error",m),e.removeListener("unpipe",t),n.removeListener("end",c),n.removeListener("end",T),n.removeListener("data",f),u=!0,!s.awaitDrain||e._writableState&&!e._writableState.needDrain||p())}));var p=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,N(e))}}(n);e.on("drain",p);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),n.pause())}function m(t){d("onerror",t),T(),e.removeListener("error",m),0===a(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",g),T()}function g(){d("onfinish"),e.removeListener("close",y),T()}function T(){d("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",m),e.once("close",y),e.once("finish",g),e.emit("pipe",n),s.flowing||(d("pipe resume"),n.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,n={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,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)r[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=L(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},S.prototype.on=function(e,t){var n=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&&w(this):i.nextTick(C,this))}return n},S.prototype.addListener=S.prototype.on,S.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(_,e,t))}(this,e)),this},S.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},S.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(d("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){d("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var s=0;s<g.length;s++)e.on(g[s],this.emit.bind(this,g[s]));return this._read=function(t){d("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),S._fromList=O},4045:(e,t,n)=>{var r=n(67966);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=r._reverse(t.tag)},4349:(e,t,n)=>{var r=n(47375).InputStream,i="undefined"==typeof window&&"undefined"==typeof importScripts?n(36374):null;function s(e,t){var n=i.readFileSync(e,"utf8");return r.call(this,n,t),this.fileName=e,this}s.prototype=Object.create(r.prototype),s.prototype.constructor=s,t.FileStream=s},4715:(e,t,n)=>{var r=n(25003),i=n(67787).Buffer,s=n(44775),o=s.base,a=s.constants.der;function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){o.Node.call(this,"der",e)}function p(e){return e<10?"0"+e:e}e.exports=l,l.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(c,o.Node),c.prototype._encodeComposite=function(e,t,n,r){var s,o=function(e,t,n,r){var i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),a.tagByName.hasOwnProperty(e))i=a.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);i=e}return i>=31?r.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=a.tagClassByName[n||"universal"]<<6)}(e,t,n,this.reporter);if(r.length<128)return(s=new i(2))[0]=o,s[1]=r.length,this._createEncoderBuffer([s,r]);for(var l=1,c=r.length;c>=256;c>>=8)l++;(s=new i(2+l))[0]=o,s[1]=128|l,c=1+l;for(var p=r.length;p>0;c--,p>>=8)s[c]=255&p;return this._createEncoderBuffer([s,r])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var n=new i(2*e.length),r=0;r<e.length;r++)n.writeUInt16BE(e.charCodeAt(r),2*r);return this._createEncoderBuffer(n)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},c.prototype._encodeObjid=function(e,t,n){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var r=0;r<e.length;r++)e[r]|=0}else if(Array.isArray(e))for(e=e.slice(),r=0;r<e.length;r++)e[r]|=0;if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var s=0;for(r=0;r<e.length;r++){var o=e[r];for(s++;o>=128;o>>=7)s++}var a=new i(s),l=a.length-1;for(r=e.length-1;r>=0;r--)for(o=e[r],a[l--]=127&o;(o>>=7)>0;)a[l--]=128|127&o;return this._createEncoderBuffer(a)},c.prototype._encodeTime=function(e,t){var n,r=new Date(e);return"gentime"===t?n=[p(r.getFullYear()),p(r.getUTCMonth()+1),p(r.getUTCDate()),p(r.getUTCHours()),p(r.getUTCMinutes()),p(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[p(r.getFullYear()%100),p(r.getUTCMonth()+1),p(r.getUTCDate()),p(r.getUTCHours()),p(r.getUTCMinutes()),p(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=new i(n)}if(i.isBuffer(e)){var r=e.length;0===e.length&&r++;var s=new i(r);return e.copy(s),0===e.length&&(s[0]=0),this._createEncoderBuffer(s)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);r=1;for(var o=e;o>=256;o>>=8)r++;for(o=(s=new Array(r)).length-1;o>=0;o--)s[o]=255&e,e>>=8;return 128&s[0]&&s.unshift(0),this._createEncoderBuffer(new i(s))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,n){var r,i=this._baseState;if(null===i.default)return!1;var s=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,n).join()),s.length!==i.defaultBuffer.length)return!1;for(r=0;r<s.length;r++)if(s[r]!==i.defaultBuffer[r])return!1;return!0}},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"}}')},4768:(e,t)=>{function n(e,t,n){return this.dfa=e,this.literalNames=t||[],this.symbolicNames=n||[],this}function r(e){return n.call(this,e,null),this}n.prototype.toString=function(){if(null===this.dfa.s0)return null;for(var e="",t=this.dfa.sortedStates(),n=0;n<t.length;n++){var r=t[n];if(null!==r.edges)for(var i=r.edges.length,s=0;s<i;s++){var o=r.edges[s]||null;null!==o&&2147483647!==o.stateNumber&&(e=(e=(e=(e=(e=(e=e.concat(this.getStateString(r))).concat("-")).concat(this.getEdgeLabel(s))).concat("->")).concat(this.getStateString(o))).concat("\n"))}}return 0===e.length?null:e},n.prototype.getEdgeLabel=function(e){return 0===e?"EOF":null!==this.literalNames||null!==this.symbolicNames?this.literalNames[e-1]||this.symbolicNames[e-1]:String.fromCharCode(e-1)},n.prototype.getStateString=function(e){var t=(e.isAcceptState?":":"")+"s"+e.stateNumber+(e.requiresFullContext?"^":"");return e.isAcceptState?null!==e.predicates?t+"=>"+e.predicates.toString():t+"=>"+e.prediction.toString():t},r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.prototype.getEdgeLabel=function(e){return"'"+String.fromCharCode(e)+"'"},t.DFASerializer=n,t.LexerDFASerializer=r},5339:(e,t,n)=>{var r=n(62053),i=n(79696).Buffer,s=n(84913);function o(e,t,n,o){s.call(this),this._cipher=new r.AES(t),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._mode=e}n(25003)(o,s),o.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},e.exports=o},5372:(e,t,n)=>{e.exports=n(8763).EventEmitter},5555:(e,t,n)=>{var r=n(25003),i=n(44775),s=i.base,o=i.bignum,a=i.constants.der;function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){s.Node.call(this,"der",e)}function p(e,t){var n=e.readUInt8(t);if(e.isError(n))return n;var r=a.tagClass[n>>6],i=!(32&n);if(31&~n)n&=31;else{var s=n;for(n=0;!(128&~s);){if(s=e.readUInt8(t),e.isError(s))return s;n<<=7,n|=127&s}}return{cls:r,primitive:i,tag:n,tagStr:a.tag[n]}}function u(e,t,n){var r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(!(128&r))return r;var i=127&r;if(i>4)return e.error("length octect is too long");r=0;for(var s=0;s<i;s++){r<<=8;var o=e.readUInt8(n);if(e.isError(o))return o;r|=o}return r}e.exports=l,l.prototype.decode=function(e,t){return e instanceof s.DecoderBuffer||(e=new s.DecoderBuffer(e,t)),this.tree._decode(e,t)},r(c,s.Node),c.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;var r=e.save(),i=p(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(r),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||n)},c.prototype._decodeTag=function(e,t,n){var r=p(e,'Failed to decode tag of "'+t+'"');if(e.isError(r))return r;var i=u(e,r.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(r.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var s=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(i=e.offset-s.offset,e.restore(s),e.skip(i,'Failed to match body of: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){var n=p(e,t);if(e.isError(n))return n;var r,i=u(e,n.primitive,t);if(e.isError(i))return i;if(r=n.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(r))return r;if("end"===n.tagStr)break}},c.prototype._decodeList=function(e,t,n,r){for(var i=[];!e.isEmpty();){var s=this._peekTag(e,"end");if(e.isError(s))return s;var o=n.decode(e,"der",r);if(e.isError(o)&&s)break;i.push(o)}return i},c.prototype._decodeStr=function(e,t){if("bitstr"===t){var n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}if("bmpstr"===t){var r=e.raw();if(r.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",s=0;s<r.length/2;s++)i+=String.fromCharCode(r.readUInt16BE(2*s));return i}if("numstr"===t){var o=e.raw().toString("ascii");return this._isNumstr(o)?o:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var a=e.raw().toString("ascii");return this._isPrintstr(a)?a:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},c.prototype._decodeObjid=function(e,t,n){for(var r,i=[],s=0;!e.isEmpty();){var o=e.readUInt8();s<<=7,s|=127&o,128&o||(i.push(s),s=0)}128&o&&i.push(s);var a=i[0]/40|0,l=i[0]%40;if(r=n?i:[a,l].concat(i.slice(1)),t){var c=t[r.join(" ")];void 0===c&&(c=t[r.join(".")]),void 0!==c&&(r=c)}return r},c.prototype._decodeTime=function(e,t){var n=e.raw().toString();if("gentime"===t)var r=0|n.slice(0,4),i=0|n.slice(4,6),s=0|n.slice(6,8),o=0|n.slice(8,10),a=0|n.slice(10,12),l=0|n.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");r=0|n.slice(0,2),i=0|n.slice(2,4),s=0|n.slice(4,6),o=0|n.slice(6,8),a=0|n.slice(8,10),l=0|n.slice(10,12),r=r<70?2e3+r:1900+r}return Date.UTC(r,i-1,s,o,a,l,0)},c.prototype._decodeNull=function(e){return null},c.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){var n=e.raw(),r=new o(n);return t&&(r=t[r.toString(10)]||r),r},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},5608:(e,t,n)=>{var r=n(79696).Buffer,i=n(32442),s=n(32427),o=n(79548).ec,a=n(70243),l=n(28113),c=n(36646);function p(e,t,n,s){if((e=r.from(e.toArray())).length<t.byteLength()){var o=r.alloc(t.byteLength()-e.length);e=r.concat([o,e])}var a=n.length,l=function(e,t){e=(e=u(e,t)).mod(t);var n=r.from(e.toArray());if(n.length<t.byteLength()){var i=r.alloc(t.byteLength()-n.length);n=r.concat([i,n])}return n}(n,t),c=r.alloc(a);c.fill(1);var p=r.alloc(a);return p=i(s,p).update(c).update(r.from([0])).update(e).update(l).digest(),c=i(s,p).update(c).digest(),{k:p=i(s,p).update(c).update(r.from([1])).update(e).update(l).digest(),v:c=i(s,p).update(c).digest()}}function u(e,t){var n=new a(e),r=(e.length<<3)-t.bitLength();return r>0&&n.ishrn(r),n}function h(e,t,n){var s,o;do{for(s=r.alloc(0);8*s.length<e.bitLength();)t.v=i(n,t.k).update(t.v).digest(),s=r.concat([s,t.v]);o=u(s,e),t.k=i(n,t.k).update(t.v).update(r.from([0])).digest(),t.v=i(n,t.k).update(t.v).digest()}while(-1!==o.cmp(e));return o}function d(e,t,n,r){return e.toRed(a.mont(n)).redPow(t).fromRed().mod(r)}e.exports=function(e,t,n,i,f){var m=l(t);if(m.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(e,t){var n=c[t.curve.join(".")];if(!n)throw new Error("unknown curve "+t.curve.join("."));var i=new o(n).keyFromPrivate(t.privateKey).sign(e);return r.from(i.toDER())}(e,m)}if("dsa"===m.type){if("dsa"!==i)throw new Error("wrong private key type");return function(e,t,n){for(var i,s=t.params.priv_key,o=t.params.p,l=t.params.q,c=t.params.g,f=new a(0),m=u(e,l).mod(l),y=!1,g=p(s,l,e,n);!1===y;)f=d(c,i=h(l,g,n),o,l),0===(y=i.invm(l).imul(m.add(s.mul(f))).mod(l)).cmpn(0)&&(y=!1,f=new a(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 n=[48,e.length+t.length+4,2,e.length];return n=n.concat(e,[2,t.length],t),r.from(n)}(f,y)}(e,m,n)}if("rsa"!==i&&"ecdsa/rsa"!==i)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(),g=[0,1];e.length+g.length+1<y;)g.push(255);g.push(0);for(var T=-1;++T<e.length;)g.push(e[T]);return s(g,m)},e.exports.getKey=p,e.exports.makeKey=h},6022:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(16397);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.A)(e,t)}},6057:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)("trailingComments",e,t)};var r=n(26284)},6370:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AssignmentExpression=function(e,t,n){return!(!b(n)||!u(e.left))||E(e,t)},t.Binary=x,t.BinaryExpression=function(e,t,n){return"in"===e.operator&&Boolean(n&i.TokenContext.forInOrInitHeadAccumulate)},t.ClassExpression=function(e,t,n){return Boolean(n&(i.TokenContext.expressionStatement|i.TokenContext.exportDefault))},t.ArrowFunctionExpression=t.ConditionalExpression=E,t.DoExpression=function(e,t,n){return!e.async&&Boolean(n&i.TokenContext.expressionStatement)},t.FunctionExpression=function(e,t,n){return Boolean(n&(i.TokenContext.expressionStatement|i.TokenContext.exportDefault))},t.FunctionTypeAnnotation=function(e,t,n){const r=t.type;return"UnionTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"ArrayTypeAnnotation"===r||Boolean(n&i.TokenContext.arrowFlowReturnType)},t.Identifier=function(e,t,n,r){var s;const o=t.type;if(null!=(s=e.extra)&&s.parenthesized&&"AssignmentExpression"===o&&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?!!((p(t,{object:e,computed:!0})||h(t,{object:e,computed:!0,optional:!1}))&&n&(i.TokenContext.expressionStatement|i.TokenContext.forInitHead|i.TokenContext.forInHead))||Boolean(n&i.TokenContext.forOfHead):"async"===e.name&&l(t,{left:e,await:!1}))},t.LogicalExpression=function(e,t){const n=t.type;if(g(n))return!0;if("LogicalExpression"!==n)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,n){return b(n)},t.OptionalIndexedAccessType=function(e,t){return c(t)&&t.objectType===e},t.OptionalCallExpression=t.OptionalMemberExpression=function(e,t){return a(t)&&t.callee===e||p(t)&&t.object===e},t.SequenceExpression=function(e,t){const n=t.type;return!("SequenceExpression"===n||"ParenthesizedExpression"===n||"MemberExpression"===n&&t.property===e||"OptionalMemberExpression"===n&&t.property===e||"TemplateLiteral"===n)&&("ClassDeclaration"===n||("ForOfStatement"===n?t.right===e:"ExportDefaultDeclaration"===n||!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 n=t.type;return"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n||"TSTypeOperator"===n||"TSTypeParameter"===n||(("TSIntersectionType"===n||"TSUnionType"===n)&&t.types[0]===e||"TSConditionalType"===n&&(t.checkType===e||t.extendsType===e))},t.TSConstructorType=t.TSFunctionType=function(e,t){const n=t.type;return"TSIntersectionType"===n||"TSUnionType"===n||"TSTypeOperator"===n||"TSOptionalType"===n||"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSConditionalType"===n&&(t.checkType===e||t.extendsType===e)},t.TSInferType=function(e,t){const n=t.type;return"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n||!(!e.typeParameter.constraint||"TSIntersectionType"!==n&&"TSUnionType"!==n||t.types[0]!==e)},t.TSInstantiationExpression=function(e,t){const n=t.type;return("CallExpression"===n||"OptionalCallExpression"===n||"NewExpression"===n||"TSInstantiationExpression"===n)&&!!t.typeParameters},t.TSIntersectionType=function(e,t){const n=t.type;return"TSTypeOperator"===n||"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n},t.UnaryLike=t.TSTypeAssertion=v,t.TSTypeOperator=function(e,t){const n=t.type;return"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n},t.TSUnionType=function(e,t){const n=t.type;return"TSIntersectionType"===n||"TSTypeOperator"===n||"TSArrayType"===n||"TSIndexedAccessType"===n&&t.objectType===e||"TSOptionalType"===n},t.IntersectionTypeAnnotation=t.UnionTypeAnnotation=function(e,t){const n=t.type;return"ArrayTypeAnnotation"===n||"NullableTypeAnnotation"===n||"IntersectionTypeAnnotation"===n||"UnionTypeAnnotation"===n},t.UpdateExpression=function(e,t){return S(e,t)||T(e,t)},t.AwaitExpression=t.YieldExpression=function(e,t){const n=t.type;return"BinaryExpression"===n||"LogicalExpression"===n||"UnaryExpression"===n||"SpreadElement"===n||S(e,t)||"AwaitExpression"===n&&d(e)||"ConditionalExpression"===n&&e===t.test||T(e,t)||g(n)};var r=n(45741),i=n(36306);const{isArrayTypeAnnotation:s,isBinaryExpression:o,isCallExpression:a,isForOfStatement:l,isIndexedAccessType:c,isMemberExpression:p,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 g(e){return"TSAsExpression"===e||"TSSatisfiesExpression"===e||"TSTypeAssertion"===e}const T=(e,t)=>{const n=t.type;return("ClassDeclaration"===n||"ClassExpression"===n)&&t.superClass===e},S=(e,t)=>{const n=t.type;return("MemberExpression"===n||"OptionalMemberExpression"===n)&&t.object===e||("CallExpression"===n||"OptionalCallExpression"===n||"NewExpression"===n)&&t.callee===e||"TaggedTemplateExpression"===n&&t.tag===e||"TSNonNullExpression"===n};function b(e){return Boolean(e&(i.TokenContext.expressionStatement|i.TokenContext.arrowBody))}function x(e,t){const n=t.type;if("BinaryExpression"===e.type&&"**"===e.operator&&"BinaryExpression"===n&&"**"===t.operator)return t.left===e;if(T(e,t))return!0;if(S(e,t)||"UnaryExpression"===n||"SpreadElement"===n||"AwaitExpression"===n)return!0;const r=y(t,n);if(null!=r){const i=y(e,e.type);if(r===i&&"BinaryExpression"===n&&t.right===e||r>i)return!0}}function v(e,t){return S(e,t)||o(t)&&"**"===t.operator&&t.left===e||T(e,t)}function E(e,t){const n=t.type;return!!("UnaryExpression"===n||"SpreadElement"===n||"BinaryExpression"===n||"LogicalExpression"===n||"ConditionalExpression"===n&&t.test===e||"AwaitExpression"===n||g(n))||v(e,t)}},6525:(e,t,n)=>{var r=n(79696).Buffer,i=n(49453),s=n(80816),o=n(25003),a=n(5608),l=n(96268),c=n(4716);function p(e){s.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function u(e){s.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function h(e){return new p(e)}function d(e){return new u(e)}Object.keys(c).forEach((function(e){c[e].id=r.from(c[e].id,"hex"),c[e.toLowerCase()]=c[e]})),o(p,s.Writable),p.prototype._write=function(e,t,n){this._hash.update(e),n()},p.prototype.update=function(e,t){return this._hash.update("string"==typeof e?r.from(e,t):e),this},p.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),r=a(n,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},o(u,s.Writable),u.prototype._write=function(e,t,n){this._hash.update(e),n()},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,n){var i="string"==typeof t?r.from(t,n):t;this.end();var s=this._hash.digest();return l(i,s,e,this._signType,this._tag)},e.exports={Sign:h,Verify:d,createSign:h,createVerify:d}},6564:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){"function"==typeof t&&(t={enter:t});const{enter:r,exit:s}=t;i(e,r,s,n,[])};var r=n(35108);function i(e,t,n,s,o){const a=r.VISITOR_KEYS[e.type];if(a){t&&t(e,o,s);for(const r of a){const a=e[r];if(Array.isArray(a))for(let l=0;l<a.length;l++){const c=a[l];c&&(o.push({node:e,key:r,index:l}),i(c,t,n,s,o),o.pop())}else a&&(o.push({node:e,key:r}),i(a,t,n,s,o),o.pop())}n&&n(e,o,s)}}},7543:(e,t,n)=>{var r=n(66346),i=r.Set,s=r.BitSet,o=r.DoubleDict,a=n(51028).ATN,l=n(81367).ATNState,c=n(470).G,p=n(87264).Q,u=n(72994).Token,h=n(41207).X,d=n(41207).PredPrediction,f=n(16068).e,m=n(63387).PredictionMode,y=n(40846).m,g=(n(29499).ParserRuleContext,n(7842).Ij),T=(n(81367).StarLoopEntryState,n(81367).RuleStopState),S=n(10559).PredictionContext,b=n(70040).Interval,x=n(10014),v=x.Transition,E=x.SetTransition,w=x.NotSetTransition,A=x.RuleTransition,P=x.ActionTransition,I=n(86587).NoViableAltException,C=n(10559).SingletonPredictionContext,_=n(10559).predictionContextFromRuleContext;function N(e,t,n,r){return f.call(this,t,r),this.parser=e,this.decisionToDFA=n,this.predictionMode=m.LL,this._input=null,this._startIndex=0,this._outerContext=null,this._dfa=null,this.mergeCache=null,this}N.prototype=Object.create(f.prototype),N.prototype.constructor=N,N.prototype.debug=!1,N.prototype.debug_closure=!1,N.prototype.debug_add=!1,N.prototype.debug_list_atn_decisions=!1,N.prototype.dfa_debug=!1,N.prototype.retry_debug=!1,N.prototype.reset=function(){},N.prototype.adaptivePredict=function(e,t,n){(this.debug||this.debug_list_atn_decisions)&&console.log("adaptivePredict decision "+t+" exec LA(1)=="+this.getLookaheadName(e)+" line "+e.LT(1).line+":"+e.LT(1).column),this._input=e,this._startIndex=e.index,this._outerContext=n;var r=this.decisionToDFA[t];this._dfa=r;var i=e.mark(),s=e.index;try{var o;if(null===(o=r.precedenceDfa?r.getPrecedenceStartState(this.parser.getPrecedence()):r.s0)){null===n&&(n=y.EMPTY),(this.debug||this.debug_list_atn_decisions)&&console.log("predictATN decision "+r.decision+" exec LA(1)=="+this.getLookaheadName(e)+", outerContext="+n.toString(this.parser.ruleNames));var a=this.computeStartState(r.atnStartState,y.EMPTY,!1);r.precedenceDfa?(r.s0.configs=a,a=this.applyPrecedenceFilter(a),o=this.addDFAState(r,new h(null,a)),r.setPrecedenceStartState(this.parser.getPrecedence(),o)):(o=this.addDFAState(r,new h(null,a)),r.s0=o)}var l=this.execATN(r,o,e,s,n);return this.debug&&console.log("DFA after predictATN: "+r.toString(this.parser.literalNames)),l}finally{this._dfa=null,this.mergeCache=null,e.seek(s),e.release(i)}},N.prototype.execATN=function(e,t,n,r,i){var s;(this.debug||this.debug_list_atn_decisions)&&console.log("execATN decision "+e.decision+" exec LA(1)=="+this.getLookaheadName(n)+" line "+n.LT(1).line+":"+n.LT(1).column);var o=t;this.debug&&console.log("s0 = "+t);for(var l=n.LA(1);;){var c=this.getExistingTargetState(o,l);if(null===c&&(c=this.computeTargetState(e,o,l)),c===f.ERROR){var p=this.noViableAlt(n,i,o.configs,r);if(n.seek(r),(s=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(o.configs,i))!==a.INVALID_ALT_NUMBER)return s;throw p}if(c.requiresFullContext&&this.predictionMode!==m.SLL){var h=null;if(null!==c.predicates){this.debug&&console.log("DFA state has preds in DFA sim LL failover");var d=n.index;if(d!==r&&n.seek(r),1===(h=this.evalSemanticContext(c.predicates,i,!0)).length)return this.debug&&console.log("Full LL avoided"),h.minValue();d!==r&&n.seek(d)}this.dfa_debug&&console.log("ctx sensitive state "+i+" in "+c);var y=this.computeStartState(e.atnStartState,i,!0);return this.reportAttemptingFullContext(e,h,c.configs,r,n.index),this.execATNWithFullContext(e,c,y,n,r,i)}if(c.isAcceptState){if(null===c.predicates)return c.prediction;var g=n.index;n.seek(r);var T=this.evalSemanticContext(c.predicates,i,!0);if(0===T.length)throw this.noViableAlt(n,i,c.configs,r);return 1===T.length||this.reportAmbiguity(e,c,r,g,!1,T,c.configs),T.minValue()}o=c,l!==u.EOF&&(n.consume(),l=n.LA(1))}},N.prototype.getExistingTargetState=function(e,t){var n=e.edges;return null===n?null:n[t+1]||null},N.prototype.computeTargetState=function(e,t,n){var i=this.computeReachSet(t.configs,n,!1);if(null===i)return this.addDFAEdge(e,t,n,f.ERROR),f.ERROR;var s=new h(null,i),o=this.getUniqueAlt(i);if(this.debug){var l=m.getConflictingAltSubsets(i);console.log("SLL altSubSets="+r.arrayToString(l)+", previous="+t.configs+", configs="+i+", predict="+o+", allSubsetsConflict="+m.allSubsetsConflict(l)+", conflictingAlts="+this.getConflictingAlts(i))}return o!==a.INVALID_ALT_NUMBER?(s.isAcceptState=!0,s.configs.uniqueAlt=o,s.prediction=o):m.hasSLLConflictTerminatingPrediction(this.predictionMode,i)&&(s.configs.conflictingAlts=this.getConflictingAlts(i),s.requiresFullContext=!0,s.isAcceptState=!0,s.prediction=s.configs.conflictingAlts.minValue()),s.isAcceptState&&s.configs.hasSemanticContext&&(this.predicateDFAState(s,this.atn.getDecisionState(e.decision)),null!==s.predicates&&(s.prediction=a.INVALID_ALT_NUMBER)),this.addDFAEdge(e,t,n,s)},N.prototype.predicateDFAState=function(e,t){var n=t.transitions.length,r=this.getConflictingAltsOrUniqueAlt(e.configs),i=this.getPredsForAmbigAlts(r,e.configs,n);null!==i?(e.predicates=this.getPredicatePredictions(r,i),e.prediction=a.INVALID_ALT_NUMBER):e.prediction=r.minValue()},N.prototype.execATNWithFullContext=function(e,t,n,r,i,s){(this.debug||this.debug_list_atn_decisions)&&console.log("execATNWithFullContext "+n);var o=!1,l=null,c=n;r.seek(i);for(var p=r.LA(1),h=-1;;){if(null===(l=this.computeReachSet(c,p,!0))){var d=this.noViableAlt(r,s,c,i);r.seek(i);var f=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(c,s);if(f!==a.INVALID_ALT_NUMBER)return f;throw d}var y=m.getConflictingAltSubsets(l);if(this.debug&&console.log("LL altSubSets="+y+", predict="+m.getUniqueAlt(y)+", resolvesToJustOneViableAlt="+m.resolvesToJustOneViableAlt(y)),l.uniqueAlt=this.getUniqueAlt(l),l.uniqueAlt!==a.INVALID_ALT_NUMBER){h=l.uniqueAlt;break}if(this.predictionMode!==m.LL_EXACT_AMBIG_DETECTION){if((h=m.resolvesToJustOneViableAlt(y))!==a.INVALID_ALT_NUMBER)break}else if(m.allSubsetsConflict(y)&&m.allSubsetsEqual(y)){o=!0,h=m.getSingleViableAlt(y);break}c=l,p!==u.EOF&&(r.consume(),p=r.LA(1))}return l.uniqueAlt!==a.INVALID_ALT_NUMBER?(this.reportContextSensitivity(e,h,l,i,r.index),h):(this.reportAmbiguity(e,t,i,r.index,o,null,l),h)},N.prototype.computeReachSet=function(e,t,n){this.debug&&console.log("in computeReachSet, starting closure: "+e),null===this.mergeCache&&(this.mergeCache=new o);for(var r=new p(n),s=null,l=0;l<e.items.length;l++){var h=e.items[l];if(this.debug_add&&console.log("testing "+this.getTokenName(t)+" at "+h),h.state instanceof T)(n||t===u.EOF)&&(null===s&&(s=[]),s.push(h),this.debug_add&&console.log("added "+h+" to skippedStopStates"));else for(var d=0;d<h.state.transitions.length;d++){var f=h.state.transitions[d],y=this.getReachableTarget(f,t);if(null!==y){var g=new c({state:y},h);r.add(g,this.mergeCache),this.debug_add&&console.log("added "+g+" to intermediate")}}}var S=null;if(null===s&&t!==u.EOF&&(1===r.items.length||this.getUniqueAlt(r)!==a.INVALID_ALT_NUMBER)&&(S=r),null===S){S=new p(n);for(var b=new i,x=t===u.EOF,v=0;v<r.items.length;v++)this.closure(r.items[v],S,b,!1,n,x)}if(t===u.EOF&&(S=this.removeAllConfigsNotInRuleStopState(S,S===r)),!(null===s||n&&m.hasConfigInRuleStopState(S)))for(var E=0;E<s.length;E++)S.add(s[E],this.mergeCache);return 0===S.items.length?null:S},N.prototype.removeAllConfigsNotInRuleStopState=function(e,t){if(m.allConfigsInRuleStopStates(e))return e;for(var n=new p(e.fullCtx),r=0;r<e.items.length;r++){var i=e.items[r];if(i.state instanceof T)n.add(i,this.mergeCache);else if(t&&i.state.epsilonOnlyTransitions&&this.atn.nextTokens(i.state).contains(u.EPSILON)){var s=this.atn.ruleToStopState[i.state.ruleIndex];n.add(new c({state:s},i),this.mergeCache)}}return n},N.prototype.computeStartState=function(e,t,n){for(var r=_(this.atn,t),s=new p(n),o=0;o<e.transitions.length;o++){var a=e.transitions[o].target,l=new c({state:a,alt:o+1,context:r},null),u=new i;this.closure(l,s,u,!0,n,!1)}return s},N.prototype.applyPrecedenceFilter=function(e){for(var t,n=[],r=new p(e.fullCtx),i=0;i<e.items.length;i++)if(1===(t=e.items[i]).alt){var s=t.semanticContext.evalPrecedence(this.parser,this._outerContext);null!==s&&(n[t.state.stateNumber]=t.context,s!==t.semanticContext?r.add(new c({semanticContext:s},t),this.mergeCache):r.add(t,this.mergeCache))}for(i=0;i<e.items.length;i++)if(1!==(t=e.items[i]).alt){if(!t.precedenceFilterSuppressed){var o=n[t.state.stateNumber]||null;if(null!==o&&o.equals(t.context))continue}r.add(t,this.mergeCache)}return r},N.prototype.getReachableTarget=function(e,t){return e.matches(t,0,this.atn.maxTokenType)?e.target:null},N.prototype.getPredsForAmbigAlts=function(e,t,n){for(var i=[],s=0;s<t.items.length;s++){var o=t.items[s];e.contains(o.alt)&&(i[o.alt]=g.orContext(i[o.alt]||null,o.semanticContext))}var a=0;for(s=1;s<n+1;s++){var l=i[s]||null;null===l?i[s]=g.NONE:l!==g.NONE&&(a+=1)}return 0===a&&(i=null),this.debug&&console.log("getPredsForAmbigAlts result "+r.arrayToString(i)),i},N.prototype.getPredicatePredictions=function(e,t){for(var n=[],r=!1,i=1;i<t.length;i++){var s=t[i];null!==e&&e.contains(i)&&n.push(new d(s,i)),s!==g.NONE&&(r=!0)}return r?n:null},N.prototype.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule=function(e,t){var n=this.splitAccordingToSemanticValidity(e,t),r=n[0],i=n[1],s=this.getAltThatFinishedDecisionEntryRule(r);return s!==a.INVALID_ALT_NUMBER||i.items.length>0&&(s=this.getAltThatFinishedDecisionEntryRule(i))!==a.INVALID_ALT_NUMBER?s:a.INVALID_ALT_NUMBER},N.prototype.getAltThatFinishedDecisionEntryRule=function(e){for(var t=[],n=0;n<e.items.length;n++){var r=e.items[n];(r.reachesIntoOuterContext>0||r.state instanceof T&&r.context.hasEmptyPath())&&t.indexOf(r.alt)<0&&t.push(r.alt)}return 0===t.length?a.INVALID_ALT_NUMBER:Math.min.apply(null,t)},N.prototype.splitAccordingToSemanticValidity=function(e,t){for(var n=new p(e.fullCtx),r=new p(e.fullCtx),i=0;i<e.items.length;i++){var s=e.items[i];s.semanticContext!==g.NONE?s.semanticContext.evaluate(this.parser,t)?n.add(s):r.add(s):n.add(s)}return[n,r]},N.prototype.evalSemanticContext=function(e,t,n){for(var r=new s,i=0;i<e.length;i++){var o=e[i];if(o.pred!==g.NONE){var a=o.pred.evaluate(this.parser,t);if((this.debug||this.dfa_debug)&&console.log("eval pred "+o+"="+a),a&&((this.debug||this.dfa_debug)&&console.log("PREDICT "+o.alt),r.add(o.alt),!n))break}else if(r.add(o.alt),!n)break}return r},N.prototype.closure=function(e,t,n,r,i,s){this.closureCheckingStopState(e,t,n,r,i,0,s)},N.prototype.closureCheckingStopState=function(e,t,n,r,i,s,o){if((this.debug||this.debug_closure)&&(console.log("closure("+e.toString(this.parser,!0)+")"),e.reachesIntoOuterContext>50))throw"problem";if(e.state instanceof T){if(!e.context.isEmpty()){for(var a=0;a<e.context.length;a++)if(e.context.getReturnState(a)!==S.EMPTY_RETURN_STATE){var l=this.atn.states[e.context.getReturnState(a)],p=e.context.getParent(a),u={state:l,alt:e.alt,context:p,semanticContext:e.semanticContext},h=new c(u,null);h.reachesIntoOuterContext=e.reachesIntoOuterContext,this.closureCheckingStopState(h,t,n,r,i,s-1,o)}else{if(i){t.add(new c({state:e.state,context:S.EMPTY},e),this.mergeCache);continue}this.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex)),this.closure_(e,t,n,r,i,s,o)}return}if(i)return void t.add(e,this.mergeCache);this.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex))}this.closure_(e,t,n,r,i,s,o)},N.prototype.closure_=function(e,t,n,r,i,s,o){var a=e.state;a.epsilonOnlyTransitions||t.add(e,this.mergeCache);for(var l=0;l<a.transitions.length;l++)if(0!=l||!this.canDropLoopEntryEdgeInLeftRecursiveRule(e)){var c=a.transitions[l],p=r&&!(c instanceof P),u=this.getEpsilonTarget(e,c,p,0===s,i,o);if(null!==u){var h=s;if(e.state instanceof T){if(null!==this._dfa&&this._dfa.precedenceDfa&&c.outermostPrecedenceReturn===this._dfa.atnStartState.ruleIndex&&(u.precedenceFilterSuppressed=!0),u.reachesIntoOuterContext+=1,n.add(u)!==u)continue;t.dipsIntoOuterContext=!0,h-=1,this.debug&&console.log("dips into outer ctx: "+u)}else{if(!c.isEpsilon&&n.add(u)!==u)continue;c instanceof A&&h>=0&&(h+=1)}this.closureCheckingStopState(u,t,n,p,i,h,o)}}},N.prototype.canDropLoopEntryEdgeInLeftRecursiveRule=function(e){var t=e.state;if(t.stateType!=l.STAR_LOOP_ENTRY)return!1;if(t.stateType!=l.STAR_LOOP_ENTRY||!t.isPrecedenceDecision||e.context.isEmpty()||e.context.hasEmptyPath())return!1;for(var n=e.context.length,r=0;r<n;r++)if((o=this.atn.states[e.context.getReturnState(r)]).ruleIndex!=t.ruleIndex)return!1;var i=t.transitions[0].target.endState.stateNumber,s=this.atn.states[i];for(r=0;r<n;r++){var o,a=e.context.getReturnState(r);if(1!=(o=this.atn.states[a]).transitions.length||!o.transitions[0].isEpsilon)return!1;var c=o.transitions[0].target;if(!(o.stateType==l.BLOCK_END&&c==t||o==s||c==s||c.stateType==l.BLOCK_END&&1==c.transitions.length&&c.transitions[0].isEpsilon&&c.transitions[0].target==t))return!1}return!0},N.prototype.getRuleName=function(e){return null!==this.parser&&e>=0?this.parser.ruleNames[e]:"<rule "+e+">"},N.prototype.getEpsilonTarget=function(e,t,n,r,i,s){switch(t.serializationType){case v.RULE:return this.ruleTransition(e,t);case v.PRECEDENCE:return this.precedenceTransition(e,t,n,r,i);case v.PREDICATE:return this.predTransition(e,t,n,r,i);case v.ACTION:return this.actionTransition(e,t);case v.EPSILON:return new c({state:t.target},e);case v.ATOM:case v.RANGE:case v.SET:return s&&t.matches(u.EOF,0,1)?new c({state:t.target},e):null;default:return null}},N.prototype.actionTransition=function(e,t){if(this.debug){var n=-1==t.actionIndex?65535:t.actionIndex;console.log("ACTION edge "+t.ruleIndex+":"+n)}return new c({state:t.target},e)},N.prototype.precedenceTransition=function(e,t,n,i,s){this.debug&&(console.log("PRED (collectPredicates="+n+") "+t.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+r.arrayToString(this.parser.getRuleInvocationStack())));var o=null;if(n&&i)if(s){var a=this._input.index;this._input.seek(this._startIndex);var l=t.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(a),l&&(o=new c({state:t.target},e))}else{var p=g.andContext(e.semanticContext,t.getPredicate());o=new c({state:t.target,semanticContext:p},e)}else o=new c({state:t.target},e);return this.debug&&console.log("config from pred transition="+o),o},N.prototype.predTransition=function(e,t,n,i,s){this.debug&&(console.log("PRED (collectPredicates="+n+") "+t.ruleIndex+":"+t.predIndex+", ctx dependent="+t.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+r.arrayToString(this.parser.getRuleInvocationStack())));var o=null;if(n&&(t.isCtxDependent&&i||!t.isCtxDependent))if(s){var a=this._input.index;this._input.seek(this._startIndex);var l=t.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(a),l&&(o=new c({state:t.target},e))}else{var p=g.andContext(e.semanticContext,t.getPredicate());o=new c({state:t.target,semanticContext:p},e)}else o=new c({state:t.target},e);return this.debug&&console.log("config from pred transition="+o),o},N.prototype.ruleTransition=function(e,t){this.debug&&console.log("CALL rule "+this.getRuleName(t.target.ruleIndex)+", ctx="+e.context);var n=t.followState,r=C.create(e.context,n.stateNumber);return new c({state:t.target,context:r},e)},N.prototype.getConflictingAlts=function(e){var t=m.getConflictingAltSubsets(e);return m.getAlts(t)},N.prototype.getConflictingAltsOrUniqueAlt=function(e){var t=null;return e.uniqueAlt!==a.INVALID_ALT_NUMBER?(t=new s).add(e.uniqueAlt):t=e.conflictingAlts,t},N.prototype.getTokenName=function(e){if(e===u.EOF)return"EOF";if(null!==this.parser&&null!==this.parser.literalNames){if(!(e>=this.parser.literalNames.length&&e>=this.parser.symbolicNames.length))return(this.parser.literalNames[e]||this.parser.symbolicNames[e])+"<"+e+">";console.log(e+" ttype out of range: "+this.parser.literalNames),console.log(""+this.parser.getInputStream().getTokens())}return""+e},N.prototype.getLookaheadName=function(e){return this.getTokenName(e.LA(1))},N.prototype.dumpDeadEndConfigs=function(e){console.log("dead end configs: ");for(var t=e.getDeadEndConfigs(),n=0;n<t.length;n++){var r=t[n],i="no edges";if(r.state.transitions.length>0){var s=r.state.transitions[0];s instanceof AtomTransition?i="Atom "+this.getTokenName(s.label):s instanceof E&&(i=(s instanceof w?"~":"")+"Set "+s.set)}console.error(r.toString(this.parser,!0)+":"+i)}},N.prototype.noViableAlt=function(e,t,n,r){return new I(this.parser,e,e.get(r),e.LT(1),n,t)},N.prototype.getUniqueAlt=function(e){for(var t=a.INVALID_ALT_NUMBER,n=0;n<e.items.length;n++){var r=e.items[n];if(t===a.INVALID_ALT_NUMBER)t=r.alt;else if(r.alt!==t)return a.INVALID_ALT_NUMBER}return t},N.prototype.addDFAEdge=function(e,t,n,r){if(this.debug&&console.log("EDGE "+t+" -> "+r+" upon "+this.getTokenName(n)),null===r)return null;if(r=this.addDFAState(e,r),null===t||n<-1||n>this.atn.maxTokenType)return r;if(null===t.edges&&(t.edges=[]),t.edges[n+1]=r,this.debug){var i=null===this.parser?null:this.parser.literalNames,s=null===this.parser?null:this.parser.symbolicNames;console.log("DFA=\n"+e.toString(i,s))}return r},N.prototype.addDFAState=function(e,t){if(t==f.ERROR)return t;var n=e.states.get(t);return null!==n?n:(t.stateNumber=e.states.length,t.configs.readOnly||(t.configs.optimizeConfigs(this),t.configs.setReadonly(!0)),e.states.add(t),this.debug&&console.log("adding new DFA state: "+t),t)},N.prototype.reportAttemptingFullContext=function(e,t,n,r,i){if(this.debug||this.retry_debug){var s=new b(r,i+1);console.log("reportAttemptingFullContext decision="+e.decision+":"+n+", input="+this.parser.getTokenStream().getText(s))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,e,r,i,t,n)},N.prototype.reportContextSensitivity=function(e,t,n,r,i){if(this.debug||this.retry_debug){var s=new b(r,i+1);console.log("reportContextSensitivity decision="+e.decision+":"+n+", input="+this.parser.getTokenStream().getText(s))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,e,r,i,t,n)},N.prototype.reportAmbiguity=function(e,t,n,r,i,s,o){if(this.debug||this.retry_debug){var a=new b(n,r+1);console.log("reportAmbiguity "+s+":"+o+", input="+this.parser.getTokenStream().getText(a))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,e,n,r,i,s,o)},t.ParserATNSimulator=N},7842:(e,t,n)=>{var r=n(66346).Set,i=n(66346).Hash;function s(){return this}function o(e,t,n){return s.call(this),this.ruleIndex=void 0===e?-1:e,this.predIndex=void 0===t?-1:t,this.isCtxDependent=void 0!==n&&n,this}function a(e){s.call(this),this.precedence=void 0===e?0:e}function l(e,t){s.call(this);var n=new r;e instanceof l?e.opnds.map((function(e){n.add(e)})):n.add(e),t instanceof l?t.opnds.map((function(e){n.add(e)})):n.add(t);var i=a.filterPrecedencePredicates(n);if(i.length>0){var o=null;i.map((function(e){(null===o||e.precedence<o.precedence)&&(o=e)})),n.add(o)}return this.opnds=n.values(),this}function c(e,t){s.call(this);var n=new r;e instanceof c?e.opnds.map((function(e){n.add(e)})):n.add(e),t instanceof c?t.opnds.map((function(e){n.add(e)})):n.add(t);var i=a.filterPrecedencePredicates(n);if(i.length>0){var o=i.sort((function(e,t){return e.compareTo(t)})),l=o[o.length-1];n.add(l)}return this.opnds=n.values(),this}s.prototype.hashCode=function(){var e=new i;return this.updateHashCode(e),e.finish()},s.prototype.evaluate=function(e,t){},s.prototype.evalPrecedence=function(e,t){return this},s.andContext=function(e,t){if(null===e||e===s.NONE)return t;if(null===t||t===s.NONE)return e;var n=new l(e,t);return 1===n.opnds.length?n.opnds[0]:n},s.orContext=function(e,t){if(null===e)return t;if(null===t)return e;if(e===s.NONE||t===s.NONE)return s.NONE;var n=new c(e,t);return 1===n.opnds.length?n.opnds[0]:n},o.prototype=Object.create(s.prototype),o.prototype.constructor=o,s.NONE=new o,o.prototype.evaluate=function(e,t){var n=this.isCtxDependent?t:null;return e.sempred(n,this.ruleIndex,this.predIndex)},o.prototype.updateHashCode=function(e){e.update(this.ruleIndex,this.predIndex,this.isCtxDependent)},o.prototype.equals=function(e){return this===e||e instanceof o&&this.ruleIndex===e.ruleIndex&&this.predIndex===e.predIndex&&this.isCtxDependent===e.isCtxDependent},o.prototype.toString=function(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"},a.prototype=Object.create(s.prototype),a.prototype.constructor=a,a.prototype.evaluate=function(e,t){return e.precpred(t,this.precedence)},a.prototype.evalPrecedence=function(e,t){return e.precpred(t,this.precedence)?s.NONE:null},a.prototype.compareTo=function(e){return this.precedence-e.precedence},a.prototype.updateHashCode=function(e){e.update(31)},a.prototype.equals=function(e){return this===e||e instanceof a&&this.precedence===e.precedence},a.prototype.toString=function(){return"{"+this.precedence+">=prec}?"},a.filterPrecedencePredicates=function(e){var t=[];return e.values().map((function(e){e instanceof a&&t.push(e)})),t},l.prototype=Object.create(s.prototype),l.prototype.constructor=l,l.prototype.equals=function(e){return this===e||e instanceof l&&this.opnds===e.opnds},l.prototype.updateHashCode=function(e){e.update(this.opnds,"AND")},l.prototype.evaluate=function(e,t){for(var n=0;n<this.opnds.length;n++)if(!this.opnds[n].evaluate(e,t))return!1;return!0},l.prototype.evalPrecedence=function(e,t){for(var n=!1,r=[],i=0;i<this.opnds.length;i++){var o=this.opnds[i],a=o.evalPrecedence(e,t);if(n|=a!==o,null===a)return null;a!==s.NONE&&r.push(a)}if(!n)return this;if(0===r.length)return s.NONE;var l=null;return r.map((function(e){l=null===l?e:s.andContext(l,e)})),l},l.prototype.toString=function(){var e="";return this.opnds.map((function(t){e+="&& "+t.toString()})),e.length>3?e.slice(3):e},c.prototype=Object.create(s.prototype),c.prototype.constructor=c,c.prototype.constructor=function(e){return this===e||e instanceof c&&this.opnds===e.opnds},c.prototype.updateHashCode=function(e){e.update(this.opnds,"OR")},c.prototype.evaluate=function(e,t){for(var n=0;n<this.opnds.length;n++)if(this.opnds[n].evaluate(e,t))return!0;return!1},c.prototype.evalPrecedence=function(e,t){for(var n=!1,r=[],i=0;i<this.opnds.length;i++){var o=this.opnds[i],a=o.evalPrecedence(e,t);if(n|=a!==o,a===s.NONE)return s.NONE;null!==a&&r.push(a)}if(!n)return this;if(0===r.length)return null;return r.map((function(e){return e})),null},c.prototype.toString=function(){var e="";return this.opnds.map((function(t){e+="|| "+t.toString()})),e.length>3?e.slice(3):e},t.Ij=s,t.Yi=a,t.mT=o},8794:(e,t,n)=>{var r=n(8925),i=n(73261);const s=(0,i.defineAliasedType)("Flow"),o=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,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),extends:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends"))},t?{mixins:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends")),implements:(0,i.validateOptional)((0,i.arrayOfType)("ClassImplements"))}:{},{body:(0,i.validateType)("ObjectTypeAnnotation")})})};s("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,i.validateType)("FlowType")}}),s("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,i.validate)((0,i.assertValueType)("boolean"))}}),s("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),o("DeclareClass"),s("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),predicate:(0,i.validateOptionalType)("DeclaredPredicate")}}),o("DeclareInterface"),s("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier","StringLiteral"),body:(0,i.validateType)("BlockStatement"),kind:(0,i.validateOptional)((0,i.assertOneOf)("CommonJS","ES"))}}),s("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,i.validateType)("TypeAnnotation")}}),s("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),right:(0,i.validateType)("FlowType")}}),s("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,i.validateOptionalType)("FlowType"),impltype:(0,i.validateOptionalType)("FlowType")}}),s("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier")}}),s("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,i.validateOptionalType)("Flow"),specifiers:(0,i.validateOptional)((0,i.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,i.validateOptionalType)("StringLiteral"),default:(0,i.validateOptional)((0,i.assertValueType)("boolean"))},r.importAttributes)}),s("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,i.validateType)("StringLiteral"),exportKind:(0,i.validateOptional)((0,i.assertOneOf)("type","value"))},r.importAttributes)}),s("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,i.validateType)("Flow")}}),s("ExistsTypeAnnotation",{aliases:["FlowType"]}),s("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),params:(0,i.validateArrayOfType)("FunctionTypeParam"),rest:(0,i.validateOptionalType)("FunctionTypeParam"),this:(0,i.validateOptionalType)("FunctionTypeParam"),returnType:(0,i.validateType)("FlowType")}}),s("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,i.validateOptionalType)("Identifier"),typeAnnotation:(0,i.validateType)("FlowType"),optional:(0,i.validateOptional)((0,i.assertValueType)("boolean"))}}),s("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,i.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),s("InferredPredicate",{aliases:["FlowPredicate"]}),s("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,i.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),o("InterfaceDeclaration"),s("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends")),body:(0,i.validateType)("ObjectTypeAnnotation")}}),s("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),s("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,i.validateType)("FlowType")}}),s("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,i.validate)((0,i.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,i.validate)((0,i.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,i.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,i.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,i.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,i.assertValueType)("boolean"),default:!1},inexact:(0,i.validateOptional)((0,i.assertValueType)("boolean"))}}),s("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,i.validateType)("Identifier"),value:(0,i.validateType)("FlowType"),optional:(0,i.validate)((0,i.assertValueType)("boolean")),static:(0,i.validate)((0,i.assertValueType)("boolean")),method:(0,i.validate)((0,i.assertValueType)("boolean"))}}),s("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,i.validateType)("FlowType"),static:(0,i.validate)((0,i.assertValueType)("boolean"))}}),s("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,i.validateOptionalType)("Identifier"),key:(0,i.validateType)("FlowType"),value:(0,i.validateType)("FlowType"),static:(0,i.validate)((0,i.assertValueType)("boolean")),variance:(0,i.validateOptionalType)("Variance")}}),s("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,i.validateType)("Identifier","StringLiteral"),value:(0,i.validateType)("FlowType"),kind:(0,i.validate)((0,i.assertOneOf)("init","get","set")),static:(0,i.validate)((0,i.assertValueType)("boolean")),proto:(0,i.validate)((0,i.assertValueType)("boolean")),optional:(0,i.validate)((0,i.assertValueType)("boolean")),variance:(0,i.validateOptionalType)("Variance"),method:(0,i.validate)((0,i.assertValueType)("boolean"))}}),s("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,i.validateType)("FlowType")}}),s("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,i.validateOptionalType)("FlowType"),impltype:(0,i.validateType)("FlowType")}}),s("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,i.validateType)("Identifier"),qualification:(0,i.validateType)("Identifier","QualifiedTypeIdentifier")}}),s("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,i.validate)((0,i.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,i.validate)((0,i.arrayOfType)("FlowType"))}}),s("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,i.validateType)("FlowType")}}),s("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),right:(0,i.validateType)("FlowType")}}),s("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,i.validateType)("FlowType")}}),s("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,i.validateType)("Expression"),typeAnnotation:(0,i.validateType)("TypeAnnotation")}}),s("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,i.validate)((0,i.assertValueType)("string")),bound:(0,i.validateOptionalType)("TypeAnnotation"),default:(0,i.validateOptionalType)("FlowType"),variance:(0,i.validateOptionalType)("Variance")}}),s("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,i.validate)((0,i.arrayOfType)("TypeParameter"))}}),s("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),s("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),s("Variance",{builder:["kind"],fields:{kind:(0,i.validate)((0,i.assertOneOf)("minus","plus"))}}),s("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,i.validateType)("Identifier"),body:(0,i.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}}),s("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),s("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),s("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),s("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,i.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),s("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("BooleanLiteral")}}),s("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("NumericLiteral")}}),s("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("StringLiteral")}}),s("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,i.validateType)("Identifier")}}),s("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,i.validateType)("FlowType"),indexType:(0,i.validateType)("FlowType")}}),s("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,i.validateType)("FlowType"),indexType:(0,i.validateType)("FlowType"),optional:(0,i.validate)((0,i.assertValueType)("boolean"))}})},8925:(e,t,n)=>{var r=n(65994).process;Object.defineProperty(t,"__esModule",{value:!0}),t.patternLikeCommon=t.importAttributes=t.functionTypeAnnotationCommon=t.functionDeclarationCommon=t.functionCommon=t.classMethodOrPropertyCommon=t.classMethodOrDeclareMethodCommon=void 0;var i=n(23781),s=n(26228),o=n(98109),a=n(14286),l=n(62811),c=n(73261);const p=(0,c.defineAliasedType)("Standardized");p("ArrayExpression",{fields:{elements:{validate:(0,c.arrayOf)((0,c.assertNodeOrValueType)("null","Expression","SpreadElement")),default:r.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),p("AssignmentExpression",{fields:{operator:{validate:r.env.BABEL_TYPES_8_BREAKING?Object.assign(function(){const e=(0,c.assertOneOf)(...l.ASSIGNMENT_OPERATORS),t=(0,c.assertOneOf)("=");return function(n,r,s){((0,i.default)("Pattern",n.left)?t:e)(n,r,s)}}(),{oneOf:l.ASSIGNMENT_OPERATORS}):(0,c.assertValueType)("string")},left:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,c.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,c.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,c.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),p("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,c.assertOneOf)(...l.BINARY_OPERATORS)},left:{validate:function(){const e=(0,c.assertNodeType)("Expression"),t=(0,c.assertNodeType)("Expression","PrivateName");return Object.assign((function(n,r,i){("in"===n.operator?t:e)(n,r,i)}),{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0,c.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),p("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,c.assertValueType)("string")}}}),p("Directive",{visitor:["value"],fields:{value:{validate:(0,c.assertNodeType)("DirectiveLiteral")}}}),p("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,c.assertValueType)("string")}}}),p("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,c.arrayOfType)("Directive"),default:[]},body:(0,c.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]}),p("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,c.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),p("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,c.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,c.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,c.assertNodeType)("TypeParameterInstantiation"),optional:!0}},r.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,c.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,c.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),p("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,c.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,c.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),p("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,c.assertNodeType)("Expression")},consequent:{validate:(0,c.assertNodeType)("Expression")},alternate:{validate:(0,c.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),p("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,c.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),p("DebuggerStatement",{aliases:["Statement"]}),p("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,c.assertNodeType)("Expression")},body:{validate:(0,c.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),p("EmptyStatement",{aliases:["Statement"]}),p("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,c.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),p("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,c.assertNodeType)("Program")},comments:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,c.assertEach)((0,c.assertNodeType)("CommentBlock","CommentLine")):Object.assign((()=>{}),{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,c.assertEach)(Object.assign((()=>{}),{type:"any"})),optional:!0}}}),p("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,c.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,c.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,c.assertNodeType)("Expression")},body:{validate:(0,c.assertNodeType)("Statement")}}}),p("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,c.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,c.assertNodeType)("Expression"),optional:!0},update:{validate:(0,c.assertNodeType)("Expression"),optional:!0},body:{validate:(0,c.assertNodeType)("Statement")}}});const u=()=>({params:(0,c.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});t.functionCommon=u;const h=()=>({returnType:{validate:(0,c.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,c.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});t.functionTypeAnnotationCommon=h;const d=()=>Object.assign({},u(),{declare:{validate:(0,c.assertValueType)("boolean"),optional:!0},id:{validate:(0,c.assertNodeType)("Identifier"),optional:!0}});t.functionDeclarationCommon=d,p("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},d(),h(),{body:{validate:(0,c.assertNodeType)("BlockStatement")},predicate:{validate:(0,c.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:r.env.BABEL_TYPES_8_BREAKING?function(){const e=(0,c.assertNodeType)("Identifier");return function(t,n,r){(0,i.default)("ExportDefaultDeclaration",t)||e(r,"id",r.id)}}():void 0}),p("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},u(),h(),{id:{validate:(0,c.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,c.assertNodeType)("BlockStatement")},predicate:{validate:(0,c.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});const f=()=>({typeAnnotation:{validate:(0,c.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,c.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,c.arrayOfType)("Decorator"),optional:!0}});t.patternLikeCommon=f,p("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,c.chain)((0,c.assertValueType)("string"),Object.assign((function(e,t,n){if(!(0,s.default)(n,!1))throw new TypeError(`"${n}" is not a valid identifier name`)}),{type:"string"})):(0,c.assertValueType)("string")}}),validate:r.env.BABEL_TYPES_8_BREAKING?function(e,t,n){const r=/\.(\w+)$/.exec(t.toString());if(!r)return;const[,s]=r,a={computed:!1};if("property"===s){if((0,i.default)("MemberExpression",e,a))return;if((0,i.default)("OptionalMemberExpression",e,a))return}else if("key"===s){if((0,i.default)("Property",e,a))return;if((0,i.default)("Method",e,a))return}else if("exported"===s){if((0,i.default)("ExportSpecifier",e))return}else if("imported"===s){if((0,i.default)("ImportSpecifier",e,{imported:n}))return}else if("meta"===s&&(0,i.default)("MetaProperty",e,{meta:n}))return;if(((0,o.isKeyword)(n.name)||(0,o.isReservedWord)(n.name,!1))&&"this"!==n.name)throw new TypeError(`"${n.name}" is not a valid identifier`)}:void 0}),p("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,c.assertNodeType)("Expression")},consequent:{validate:(0,c.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,c.assertNodeType)("Statement")}}}),p("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,c.assertNodeType)("Identifier")},body:{validate:(0,c.assertNodeType)("Statement")}}}),p("StringLiteral",{builder:["value"],fields:{value:{validate:(0,c.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),p("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,c.chain)((0,c.assertValueType)("number"),Object.assign((function(e,t,n){(1/n<0||!Number.isFinite(n))&&new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${n}) instead.`)}),{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]}),p("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),p("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,c.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),p("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,c.assertValueType)("string")},flags:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,c.chain)((0,c.assertValueType)("string"),Object.assign((function(e,t,n){const r=/[^gimsuy]/.exec(n);if(r)throw new TypeError(`"${r[0]}" is not a valid RegExp flag`)}),{type:"string"})):(0,c.assertValueType)("string"),default:""}}}),p("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,c.assertOneOf)(...l.LOGICAL_OPERATORS)},left:{validate:(0,c.assertNodeType)("Expression")},right:{validate:(0,c.assertNodeType)("Expression")}}}),p("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,c.assertNodeType)("Expression","Super")},property:{validate:function(){const e=(0,c.assertNodeType)("Identifier","PrivateName"),t=(0,c.assertNodeType)("Expression"),n=function(n,r,i){(n.computed?t:e)(n,r,i)};return n.oneOfNodeTypes=["Expression","Identifier","PrivateName"],n}()},computed:{default:!1}},r.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,c.assertValueType)("boolean"),optional:!0}})}),p("NewExpression",{inherits:"CallExpression"}),p("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,c.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,c.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,c.arrayOfType)("Directive"),default:[]},body:(0,c.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]}),p("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,c.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}}),p("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,c.assertOneOf)("method","get","set")},r.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){const e=(0,c.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,c.assertNodeType)("Expression"),n=function(n,r,i){(n.computed?t:e)(n,r,i)};return n.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],n}()},decorators:{validate:(0,c.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,c.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}),p("ObjectProperty",{builder:["key","value","computed","shorthand",...r.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:function(){const e=(0,c.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0,c.assertNodeType)("Expression");return Object.assign((function(n,r,i){(n.computed?t:e)(n,r,i)}),{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0,c.assertNodeType)("Expression","PatternLike")},shorthand:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,c.chain)((0,c.assertValueType)("boolean"),Object.assign((function(e,t,n){if(n){if(e.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,i.default)("Identifier",e.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}}),{type:"boolean"})):(0,c.assertValueType)("boolean"),default:!1},decorators:{validate:(0,c.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:r.env.BABEL_TYPES_8_BREAKING?function(){const e=(0,c.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),t=(0,c.assertNodeType)("Expression");return function(n,r,s){((0,i.default)("ObjectPattern",n)?e:t)(s,"value",s.value)}}():void 0}),p("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,c.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,c.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:r.env.BABEL_TYPES_8_BREAKING?function(e,t){const n=/(\w+)\[(\d+)\]/.exec(t.toString());if(!n)throw new Error("Internal Babel error: malformed key.");const[,r,i]=n;if(e[r].length>+i+1)throw new TypeError(`RestElement must be last element of ${r}`)}:void 0}),p("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,c.assertNodeType)("Expression"),optional:!0}}}),p("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,c.validateArrayOfType)("Expression")},aliases:["Expression"]}),p("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,c.assertNodeType)("Expression")}}}),p("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,c.assertNodeType)("Expression"),optional:!0},consequent:(0,c.validateArrayOfType)("Statement")}}),p("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,c.assertNodeType)("Expression")},cases:(0,c.validateArrayOfType)("SwitchCase")}}),p("ThisExpression",{aliases:["Expression"]}),p("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,c.assertNodeType)("Expression")}}}),p("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,c.chain)((0,c.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,c.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,c.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,c.assertNodeType)("BlockStatement")}}}),p("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,c.assertNodeType)("Expression")},operator:{validate:(0,c.assertOneOf)(...l.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),p("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,c.assertNodeType)("Identifier","MemberExpression"):(0,c.assertNodeType)("Expression")},operator:{validate:(0,c.assertOneOf)(...l.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),p("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,c.assertValueType)("boolean"),optional:!0},kind:{validate:(0,c.assertOneOf)("var","let","const","using","await using")},declarations:(0,c.validateArrayOfType)("VariableDeclarator")},validate:r.env.BABEL_TYPES_8_BREAKING?(()=>{const e=(0,c.assertNodeType)("Identifier","Placeholder"),t=(0,c.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),n=(0,c.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(r,s,o){const{kind:a,declarations:l}=o,c=(0,i.default)("ForXStatement",r,{left:o});if(c&&1!==l.length)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${r.type}`);for(const r of l)"const"===a||"let"===a||"var"===a?c||r.init?t(r,"id",r.id):e(r,"id",r.id):n(r,"id",r.id)}})():void 0}),p("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,c.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,c.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,c.assertValueType)("boolean")},init:{optional:!0,validate:(0,c.assertNodeType)("Expression")}}}),p("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,c.assertNodeType)("Expression")},body:{validate:(0,c.assertNodeType)("Statement")}}}),p("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,c.assertNodeType)("Expression")},body:{validate:(0,c.assertNodeType)("Statement")}}}),p("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},f(),{left:{validate:(0,c.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,c.assertNodeType)("Expression")},decorators:{validate:(0,c.arrayOfType)("Decorator"),optional:!0}})}),p("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},f(),{elements:{validate:(0,c.chain)((0,c.assertValueType)("array"),(0,c.assertEach)((0,c.assertNodeOrValueType)("null","PatternLike")))}})}),p("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,c.assertValueType)("boolean")},body:{validate:(0,c.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,c.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})}),p("ClassBody",{visitor:["body"],fields:{body:(0,c.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}}),p("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,c.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,c.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,c.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,c.assertNodeType)("Expression")},superTypeParameters:{validate:(0,c.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,c.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,c.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,c.assertNodeType)("InterfaceExtends"),optional:!0}}}),p("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,c.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,c.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,c.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,c.assertNodeType)("Expression")},superTypeParameters:{validate:(0,c.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,c.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,c.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,c.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,c.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,c.assertValueType)("boolean"),optional:!0}},validate:r.env.BABEL_TYPES_8_BREAKING?function(){const e=(0,c.assertNodeType)("Identifier");return function(t,n,r){(0,i.default)("ExportDefaultDeclaration",t)||e(r,"id",r.id)}}():void 0});const m=t.importAttributes={attributes:{optional:!0,validate:(0,c.arrayOfType)("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:(0,c.arrayOfType)("ImportAttribute")}};p("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,c.assertNodeType)("StringLiteral")},exportKind:(0,c.validateOptional)((0,c.assertOneOf)("type","value"))},m)}),p("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,c.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,c.validateOptional)((0,c.assertOneOf)("value"))}}),p("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,c.chain)((0,c.assertNodeType)("Declaration"),Object.assign((function(e,t,n){if(n&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(n&&e.source)throw new TypeError("Cannot export a declaration from a source")}),{oneOfNodeTypes:["Declaration"]})):(0,c.assertNodeType)("Declaration")}},m,{specifiers:{default:[],validate:(0,c.arrayOf)(function(){const e=(0,c.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0,c.assertNodeType)("ExportSpecifier");return r.env.BABEL_TYPES_8_BREAKING?Object.assign((function(n,r,i){(n.source?e:t)(n,r,i)}),{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):e}())},source:{validate:(0,c.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,c.validateOptional)((0,c.assertOneOf)("type","value"))})}),p("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,c.assertNodeType)("Identifier")},exported:{validate:(0,c.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,c.assertOneOf)("type","value"),optional:!0}}}),p("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,c.assertNodeType)("VariableDeclaration","LVal");const e=(0,c.assertNodeType)("VariableDeclaration"),t=(0,c.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign((function(n,r,s){(0,i.default)("VariableDeclaration",s)?e(n,r,s):t(n,r,s)}),{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:(0,c.assertNodeType)("Expression")},body:{validate:(0,c.assertNodeType)("Statement")},await:{default:!1}}}),p("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},m,{module:{optional:!0,validate:(0,c.assertValueType)("boolean")},phase:{default:null,validate:(0,c.assertOneOf)("source","defer")},specifiers:(0,c.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,c.assertNodeType)("StringLiteral")},importKind:{validate:(0,c.assertOneOf)("type","typeof","value"),optional:!0}})}),p("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,c.assertNodeType)("Identifier")}}}),p("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,c.assertNodeType)("Identifier")}}}),p("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,c.assertNodeType)("Identifier")},imported:{validate:(0,c.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,c.assertOneOf)("type","typeof","value"),optional:!0}}}),p("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,c.assertOneOf)("source","defer")},source:{validate:(0,c.assertNodeType)("Expression")},options:{validate:(0,c.assertNodeType)("Expression"),optional:!0}}}),p("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,c.chain)((0,c.assertNodeType)("Identifier"),Object.assign((function(e,t,n){let r;switch(n.name){case"function":r="sent";break;case"new":r="target";break;case"import":r="meta"}if(!(0,i.default)("Identifier",e.property,{name:r}))throw new TypeError("Unrecognised MetaProperty")}),{oneOfNodeTypes:["Identifier"]})):(0,c.assertNodeType)("Identifier")},property:{validate:(0,c.assertNodeType)("Identifier")}}});const y=()=>({abstract:{validate:(0,c.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,c.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,c.assertValueType)("boolean"),optional:!0},key:{validate:(0,c.chain)(function(){const e=(0,c.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,c.assertNodeType)("Expression");return function(n,r,i){(n.computed?t:e)(n,r,i)}}(),(0,c.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});t.classMethodOrPropertyCommon=y;const g=()=>Object.assign({},u(),y(),{params:(0,c.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,c.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,c.chain)((0,c.assertValueType)("string"),(0,c.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,c.arrayOfType)("Decorator"),optional:!0}});t.classMethodOrDeclareMethodCommon=g,p("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({},g(),h(),{body:{validate:(0,c.assertNodeType)("BlockStatement")}})}),p("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},f(),{properties:(0,c.validateArrayOfType)("RestElement","ObjectProperty")})}),p("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,c.assertNodeType)("Expression")}}}),p("Super",{aliases:["Expression"]}),p("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,c.assertNodeType)("Expression")},quasi:{validate:(0,c.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,c.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),p("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,c.chain)((0,c.assertShape)({raw:{validate:(0,c.assertValueType)("string")},cooked:{validate:(0,c.assertValueType)("string"),optional:!0}}),(function(e){const t=e.value.raw;let n=!1;const r=()=>{throw new Error("Internal @babel/types error.")},{str:i,firstInvalidLoc:s}=(0,a.readStringContents)("template",t,0,0,0,{unterminated(){n=!0},strictNumericEscape:r,invalidEscapeSequence:r,numericSeparatorInEscapeSequence:r,unexpectedNumericSeparator:r,invalidDigit:r,invalidCodePoint:r});if(!n)throw new Error("Invalid raw");e.value.cooked=s?null:i}))},tail:{default:!1}}}),p("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,c.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,c.chain)((0,c.assertValueType)("array"),(0,c.assertEach)((0,c.assertNodeType)("Expression","TSType")),(function(e,t,n){if(e.quasis.length!==n.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.\nExpected ${n.length+1} quasis but got ${e.quasis.length}`)}))}}}),p("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,c.chain)((0,c.assertValueType)("boolean"),Object.assign((function(e,t,n){if(n&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")}),{type:"boolean"})):(0,c.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,c.assertNodeType)("Expression")}}}),p("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,c.assertNodeType)("Expression")}}}),p("Import",{aliases:["Expression"]}),p("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,c.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),p("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,c.assertNodeType)("Identifier")}}}),p("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,c.assertNodeType)("Expression")},property:{validate:function(){const e=(0,c.assertNodeType)("Identifier"),t=(0,c.assertNodeType)("Expression");return Object.assign((function(n,r,i){(n.computed?t:e)(n,r,i)}),{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,c.chain)((0,c.assertValueType)("boolean"),(0,c.assertOptionalChainStart)()):(0,c.assertValueType)("boolean")}}}),p("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,c.assertNodeType)("Expression")},arguments:(0,c.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,c.chain)((0,c.assertValueType)("boolean"),(0,c.assertOptionalChainStart)()):(0,c.assertValueType)("boolean")},typeArguments:{validate:(0,c.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,c.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),p("ClassProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},y(),{value:{validate:(0,c.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,c.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,c.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,c.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,c.assertValueType)("boolean"),optional:!0},declare:{validate:(0,c.assertValueType)("boolean"),optional:!0},variance:{validate:(0,c.assertNodeType)("Variance"),optional:!0}})}),p("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},y(),{key:{validate:(0,c.chain)(function(){const e=(0,c.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0,c.assertNodeType)("Expression");return function(n,r,i){(n.computed?t:e)(n,r,i)}}(),(0,c.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,c.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,c.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,c.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,c.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,c.assertValueType)("boolean"),optional:!0},declare:{validate:(0,c.assertValueType)("boolean"),optional:!0},variance:{validate:(0,c.assertNodeType)("Variance"),optional:!0}})}),p("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,c.assertNodeType)("PrivateName")},value:{validate:(0,c.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,c.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,c.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,c.assertValueType)("boolean"),default:!1},readonly:{validate:(0,c.assertValueType)("boolean"),optional:!0},optional:{validate:(0,c.assertValueType)("boolean"),optional:!0},definite:{validate:(0,c.assertValueType)("boolean"),optional:!0},variance:{validate:(0,c.assertNodeType)("Variance"),optional:!0}}}),p("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},g(),h(),{kind:{validate:(0,c.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,c.assertNodeType)("PrivateName")},body:{validate:(0,c.assertNodeType)("BlockStatement")}})}),p("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,c.assertNodeType)("Identifier")}}}),p("StaticBlock",{visitor:["body"],fields:{body:(0,c.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]}),p("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,c.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,c.assertNodeType)("StringLiteral")}}})},10014:(e,t,n)=>{var r=n(72994).Token,i=(n(70040).Interval,n(70040).m),s=n(7842).mT,o=n(7842).Yi;function a(e){if(null==e)throw"target cannot be null.";return this.target=e,this.isEpsilon=!1,this.label=null,this}function l(e,t){return a.call(this,e),this.label_=t,this.label=this.makeLabel(),this.serializationType=a.ATOM,this}function c(e,t,n,r){return a.call(this,e),this.ruleIndex=t,this.precedence=n,this.followState=r,this.serializationType=a.RULE,this.isEpsilon=!0,this}function p(e,t){return a.call(this,e),this.serializationType=a.EPSILON,this.isEpsilon=!0,this.outermostPrecedenceReturn=t,this}function u(e,t,n){return a.call(this,e),this.serializationType=a.RANGE,this.start=t,this.stop=n,this.label=this.makeLabel(),this}function h(e){return a.call(this,e),this}function d(e,t,n,r){return h.call(this,e),this.serializationType=a.PREDICATE,this.ruleIndex=t,this.predIndex=n,this.isCtxDependent=r,this.isEpsilon=!0,this}function f(e,t,n,r){return a.call(this,e),this.serializationType=a.ACTION,this.ruleIndex=t,this.actionIndex=void 0===n?-1:n,this.isCtxDependent=void 0!==r&&r,this.isEpsilon=!0,this}function m(e,t){return a.call(this,e),this.serializationType=a.SET,null!=t?this.label=t:(this.label=new i,this.label.addOne(r.INVALID_TYPE)),this}function y(e,t){return m.call(this,e,t),this.serializationType=a.NOT_SET,this}function g(e){return a.call(this,e),this.serializationType=a.WILDCARD,this}function T(e,t){return h.call(this,e),this.serializationType=a.PRECEDENCE,this.precedence=t,this.isEpsilon=!0,this}a.EPSILON=1,a.RANGE=2,a.RULE=3,a.PREDICATE=4,a.ATOM=5,a.ACTION=6,a.SET=7,a.NOT_SET=8,a.WILDCARD=9,a.PRECEDENCE=10,a.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],a.serializationTypes={EpsilonTransition:a.EPSILON,RangeTransition:a.RANGE,RuleTransition:a.RULE,PredicateTransition:a.PREDICATE,AtomTransition:a.ATOM,ActionTransition:a.ACTION,SetTransition:a.SET,NotSetTransition:a.NOT_SET,WildcardTransition:a.WILDCARD,PrecedencePredicateTransition:a.PRECEDENCE},l.prototype=Object.create(a.prototype),l.prototype.constructor=l,l.prototype.makeLabel=function(){var e=new i;return e.addOne(this.label_),e},l.prototype.matches=function(e,t,n){return this.label_===e},l.prototype.toString=function(){return this.label_},c.prototype=Object.create(a.prototype),c.prototype.constructor=c,c.prototype.matches=function(e,t,n){return!1},p.prototype=Object.create(a.prototype),p.prototype.constructor=p,p.prototype.matches=function(e,t,n){return!1},p.prototype.toString=function(){return"epsilon"},u.prototype=Object.create(a.prototype),u.prototype.constructor=u,u.prototype.makeLabel=function(){var e=new i;return e.addRange(this.start,this.stop),e},u.prototype.matches=function(e,t,n){return e>=this.start&&e<=this.stop},u.prototype.toString=function(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"},h.prototype=Object.create(a.prototype),h.prototype.constructor=h,d.prototype=Object.create(h.prototype),d.prototype.constructor=d,d.prototype.matches=function(e,t,n){return!1},d.prototype.getPredicate=function(){return new s(this.ruleIndex,this.predIndex,this.isCtxDependent)},d.prototype.toString=function(){return"pred_"+this.ruleIndex+":"+this.predIndex},f.prototype=Object.create(a.prototype),f.prototype.constructor=f,f.prototype.matches=function(e,t,n){return!1},f.prototype.toString=function(){return"action_"+this.ruleIndex+":"+this.actionIndex},m.prototype=Object.create(a.prototype),m.prototype.constructor=m,m.prototype.matches=function(e,t,n){return this.label.contains(e)},m.prototype.toString=function(){return this.label.toString()},y.prototype=Object.create(m.prototype),y.prototype.constructor=y,y.prototype.matches=function(e,t,n){return e>=t&&e<=n&&!m.prototype.matches.call(this,e,t,n)},y.prototype.toString=function(){return"~"+m.prototype.toString.call(this)},g.prototype=Object.create(a.prototype),g.prototype.constructor=g,g.prototype.matches=function(e,t,n){return e>=t&&e<=n},g.prototype.toString=function(){return"."},T.prototype=Object.create(h.prototype),T.prototype.constructor=T,T.prototype.matches=function(e,t,n){return!1},T.prototype.getPredicate=function(){return new o(this.precedence)},T.prototype.toString=function(){return this.precedence+" >= _p"},t.Transition=a,t.AtomTransition=l,t.SetTransition=m,t.NotSetTransition=y,t.RuleTransition=c,t.ActionTransition=f,t.EpsilonTransition=p,t.RangeTransition=u,t.WildcardTransition=g,t.PredicateTransition=d,t.PrecedencePredicateTransition=T,t.AbstractPredicateTransition=h},10441:(e,t,n)=>{var r={ECB:n(65863),CBC:n(71535),CFB:n(68044),CFB8:n(1582),CFB1:n(517),OFB:n(15496),CTR:n(910),GCM:n(910)},i=n(50006);for(var s in i)i[s].module=r[i[s].mode];e.exports=i},10559:(e,t,n)=>{var r=n(40846).m,i=n(66346).Hash;function s(e){this.cachedHashCode=e}function o(){return this.cache={},this}function a(e,t){var n=0;if(null!==e){var r=new i;r.update(e,t),n=r.finish()}s.call(this,n),this.parentCtx=e,this.returnState=t}function l(){return a.call(this,null,s.EMPTY_RETURN_STATE),this}function c(e,t){var n=new i;n.update(e,t);var r=n.finish();return s.call(this,r),this.parents=e,this.returnStates=t,this}s.EMPTY=null,s.EMPTY_RETURN_STATE=2147483647,s.globalNodeCount=1,s.id=s.globalNodeCount,s.prototype.isEmpty=function(){return this===s.EMPTY},s.prototype.hasEmptyPath=function(){return this.getReturnState(this.length-1)===s.EMPTY_RETURN_STATE},s.prototype.hashCode=function(){return this.cachedHashCode},s.prototype.updateHashCode=function(e){e.update(this.cachedHashCode)},o.prototype.add=function(e){if(e===s.EMPTY)return s.EMPTY;var t=this.cache[e]||null;return null!==t?t:(this.cache[e]=e,e)},o.prototype.get=function(e){return this.cache[e]||null},Object.defineProperty(o.prototype,"length",{get:function(){return this.cache.length}}),a.prototype=Object.create(s.prototype),a.prototype.contructor=a,a.create=function(e,t){return t===s.EMPTY_RETURN_STATE&&null===e?s.EMPTY:new a(e,t)},Object.defineProperty(a.prototype,"length",{get:function(){return 1}}),a.prototype.getParent=function(e){return this.parentCtx},a.prototype.getReturnState=function(e){return this.returnState},a.prototype.equals=function(e){return this===e||e instanceof a&&this.hashCode()===e.hashCode()&&this.returnState===e.returnState&&(null==this.parentCtx?null==e.parentCtx:this.parentCtx.equals(e.parentCtx))},a.prototype.toString=function(){var e=null===this.parentCtx?"":this.parentCtx.toString();return 0===e.length?this.returnState===s.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+e},l.prototype=Object.create(a.prototype),l.prototype.constructor=l,l.prototype.isEmpty=function(){return!0},l.prototype.getParent=function(e){return null},l.prototype.getReturnState=function(e){return this.returnState},l.prototype.equals=function(e){return this===e},l.prototype.toString=function(){return"$"},s.EMPTY=new l,c.prototype=Object.create(s.prototype),c.prototype.constructor=c,c.prototype.isEmpty=function(){return this.returnStates[0]===s.EMPTY_RETURN_STATE},Object.defineProperty(c.prototype,"length",{get:function(){return this.returnStates.length}}),c.prototype.getParent=function(e){return this.parents[e]},c.prototype.getReturnState=function(e){return this.returnStates[e]},c.prototype.equals=function(e){return this===e||e instanceof c&&this.hashCode()===e.hashCode()&&this.returnStates===e.returnStates&&this.parents===e.parents},c.prototype.toString=function(){if(this.isEmpty())return"[]";for(var e="[",t=0;t<this.returnStates.length;t++)t>0&&(e+=", "),this.returnStates[t]!==s.EMPTY_RETURN_STATE?(e+=this.returnStates[t],null!==this.parents[t]?e=e+" "+this.parents[t]:e+="null"):e+="$";return e+"]"},t.merge=function e(t,n,r,i){if(t===n)return t;if(t instanceof a&&n instanceof a)return function(t,n,r,i){if(null!==i){var o=i.get(t,n);if(null!==o)return o;if(null!==(o=i.get(n,t)))return o}var l=function(e,t,n){if(n){if(e===s.EMPTY)return s.EMPTY;if(t===s.EMPTY)return s.EMPTY}else{if(e===s.EMPTY&&t===s.EMPTY)return s.EMPTY;if(e===s.EMPTY){var r=[t.returnState,s.EMPTY_RETURN_STATE];return new c([t.parentCtx,null],r)}if(t===s.EMPTY)return r=[e.returnState,s.EMPTY_RETURN_STATE],new c([e.parentCtx,null],r)}return null}(t,n,r);if(null!==l)return null!==i&&i.set(t,n,l),l;if(t.returnState===n.returnState){var p=e(t.parentCtx,n.parentCtx,r,i);if(p===t.parentCtx)return t;if(p===n.parentCtx)return n;var u=a.create(p,t.returnState);return null!==i&&i.set(t,n,u),u}var h=null;if((t===n||null!==t.parentCtx&&t.parentCtx===n.parentCtx)&&(h=t.parentCtx),null!==h){var d=[t.returnState,n.returnState];t.returnState>n.returnState&&(d[0]=n.returnState,d[1]=t.returnState);var f=new c(m=[h,h],d);return null!==i&&i.set(t,n,f),f}d=[t.returnState,n.returnState];var m=[t.parentCtx,n.parentCtx];t.returnState>n.returnState&&(d[0]=n.returnState,d[1]=t.returnState,m=[n.parentCtx,t.parentCtx]);var y=new c(m,d);return null!==i&&i.set(t,n,y),y}(t,n,r,i);if(r){if(t instanceof l)return t;if(n instanceof l)return n}return t instanceof a&&(t=new c([t.getParent()],[t.returnState])),n instanceof a&&(n=new c([n.getParent()],[n.returnState])),function(t,n,r,i){if(null!==i){var o=i.get(t,n);if(null!==o)return o;if(null!==(o=i.get(n,t)))return o}for(var l=0,p=0,u=0,h=[],d=[];l<t.returnStates.length&&p<n.returnStates.length;){var f=t.parents[l],m=n.parents[p];if(t.returnStates[l]===n.returnStates[p]){var y=t.returnStates[l];if(y===s.EMPTY_RETURN_STATE&&null===f&&null===m||null!==f&&null!==m&&f===m)d[u]=f,h[u]=y;else{var g=e(f,m,r,i);d[u]=g,h[u]=y}l+=1,p+=1}else t.returnStates[l]<n.returnStates[p]?(d[u]=f,h[u]=t.returnStates[l],l+=1):(d[u]=m,h[u]=n.returnStates[p],p+=1);u+=1}if(l<t.returnStates.length)for(var T=l;T<t.returnStates.length;T++)d[u]=t.parents[T],h[u]=t.returnStates[T],u+=1;else for(T=p;T<n.returnStates.length;T++)d[u]=n.parents[T],h[u]=n.returnStates[T],u+=1;if(u<d.length){if(1===u){var S=a.create(d[0],h[0]);return null!==i&&i.set(t,n,S),S}d=d.slice(0,u),h=h.slice(0,u)}var b=new c(d,h);return b===t?(null!==i&&i.set(t,n,t),t):b===n?(null!==i&&i.set(t,n,n),n):(function(e){for(var t={},n=0;n<e.length;n++){var r=e[n];r in t||(t[r]=r)}for(var i=0;i<e.length;i++)e[i]=t[e[i]]}(d),null!==i&&i.set(t,n,b),b)}(t,n,r,i)},t.PredictionContext=s,t.PredictionContextCache=o,t.SingletonPredictionContext=a,t.predictionContextFromRuleContext=function e(t,n){if(null==n&&(n=r.EMPTY),null===n.parentCtx||n===r.EMPTY)return s.EMPTY;var i=e(t,n.parentCtx),o=t.states[n.invokingState].transitions[0];return a.create(i,o.followState.stateNumber)},t.getCachedPredictionContext=function e(t,n,r){if(t.isEmpty())return t;var i=r[t]||null;if(null!==i)return i;if(null!==(i=n.get(t)))return r[t]=i,i;for(var o=!1,l=[],p=0;p<l.length;p++){var u=e(t.getParent(p),n,r);if(o||u!==t.getParent(p)){if(!o){l=[];for(var h=0;h<t.length;h++)l[h]=t.getParent(h);o=!0}l[p]=u}}if(!o)return n.add(t),r[t]=t,t;var d;return d=0===l.length?s.EMPTY:1===l.length?a.create(l[0],t.getReturnState(0)):new c(l,t.returnStates),n.add(d),r[d]=d,r[t]=d,d}},10848:(e,t,n)=>{var r=n(76966);e.exports=function(e){var t,n=this,i=[].slice.call(arguments);t=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return n.apply(this,arguments)},r(t,n);var s=function(){this.constructor=t};return s.prototype=n.prototype,t.prototype=new s,e&&(i.unshift(t.prototype),r.apply(null,i)),t.__super__=n.prototype,t}},11265:(e,t,n)=>{var r=n(62053),i=n(79696).Buffer,s=n(84913),o=n(25003),a=n(89135),l=n(53896),c=n(3663);function p(e,t,n,o){s.call(this);var l=i.alloc(4,0);this._cipher=new r.AES(t);var p=this._cipher.encryptBlock(l);this._ghash=new a(p),n=function(e,t,n){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var r=new a(n),s=t.length,o=s%16;r.update(t),o&&(o=16-o,r.update(i.alloc(o,0))),r.update(i.alloc(8,0));var l=8*s,p=i.alloc(8);p.writeUIntBE(l,0,8),r.update(p),e._finID=r.state;var u=i.from(e._finID);return c(u),u}(this,n,p),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}o(p,s),p.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},p.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 n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=0;i<r;++i)n+=e[i]^t[i];return n}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},p.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},p.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},p.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=p},12520:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,!1,!0)};var r=n(16938)},14058:(e,t,n)=>{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){a(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(e)},t.DeclareExportAllDeclaration=function(e){this.word("declare"),this.space(),i.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){a(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation.typeAnnotation),e.predicate&&(this.space(),this.print(e.predicate)),this.semicolon()},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){a(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){a(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;c(this,"boolean",t),p(this,e)},t.EnumBooleanMember=function(e){u(this,e)},t.EnumDeclaration=function(e){const{id:t,body:n}=e;this.word("enum"),this.space(),this.print(t),this.print(n)},t.EnumDefaultedMember=function(e){const{id:t}=e;this.print(t),this.tokenChar(44)},t.EnumNumberBody=function(e){const{explicitType:t}=e;c(this,"number",t),p(this,e)},t.EnumNumberMember=function(e){u(this,e)},t.EnumStringBody=function(e){const{explicitType:t}=e;c(this,"string",t),p(this,e)},t.EnumStringMember=function(e){u(this,e)},t.EnumSymbolBody=function(e){c(this,"symbol",!0),p(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 n=null==t?void 0:t.type;null!=n&&("ObjectTypeCallProperty"===n||"ObjectTypeInternalSlot"===n||"DeclareFunction"===n||"ObjectTypeProperty"===n&&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 o.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 o.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,n,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!=(n=e.mixins)&&n.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 n=null==(t=e.variance)?void 0:t.kind;null!=n&&("plus"===n?this.tokenChar(43):"minus"===n&&this.tokenChar(45))};var r=n(45741),i=n(25857),s=n(36306),o=n(56049);const{isDeclareExportDeclaration:a,isStatement:l}=r;function c(e,t,n){n&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function p(e,t){const{members:n}=t;e.token("{"),e.indent(),e.newline();for(const t of n)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=c,t.readInt=l,t.readStringContents=function(e,t,n,r,i,a){const l=n,c=r,p=i;let u="",h=null,d=n;const{length:f}=t;for(;;){if(n>=f){a.unterminated(l,c,p),u+=t.slice(d,n);break}const m=t.charCodeAt(n);if(s(e,m,t,n)){u+=t.slice(d,n);break}if(92===m){u+=t.slice(d,n);const s=o(t,n,r,i,"template"===e,a);null!==s.ch||h?u+=s.ch:h={pos:n,lineStart:r,curLine:i},({pos:n,lineStart:r,curLine:i}=s),d=n}else 8232===m||8233===m?(++i,r=++n):10===m||13===m?"template"===e?(u+=t.slice(d,n)+"\n",++n,13===m&&10===t.charCodeAt(n)&&++n,++i,d=r=n):a.unterminated(l,c,p):++n}return{pos:n,str:u,firstInvalidLoc:h,lineStart:r,curLine:i,containsInvalid:!!h}};var n=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])},i={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,n,r){return"template"===e?96===t||36===t&&123===n.charCodeAt(r+1):t===("double"===e?34:39)}function o(e,t,n,r,i,s){const o=!i;t++;const l=e=>({pos:t,ch:e,lineStart:n,curLine:r}),p=e.charCodeAt(t++);switch(p){case 110:return l("\n");case 114:return l("\r");case 120:{let i;return({code:i,pos:t}=a(e,t,n,r,2,!1,o,s)),l(null===i?null:String.fromCharCode(i))}case 117:{let i;return({code:i,pos:t}=c(e,t,n,r,o,s)),l(null===i?null:String.fromCodePoint(i))}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:n=t,++r;case 8232:case 8233:return l("");case 56:case 57:if(i)return l(null);s.strictNumericEscape(t-1,n,r);default:if(p>=48&&p<=55){const o=t-1;let a=/^[0-7]+/.exec(e.slice(o,t+2))[0],c=parseInt(a,8);c>255&&(a=a.slice(0,-1),c=parseInt(a,8)),t+=a.length-1;const p=e.charCodeAt(t);if("0"!==a||56===p||57===p){if(i)return l(null);s.strictNumericEscape(o,n,r)}return l(String.fromCharCode(c))}return l(String.fromCharCode(p))}}function a(e,t,n,r,i,s,o,a){const c=t;let p;return({n:p,pos:t}=l(e,t,n,r,16,i,s,!1,a,!o)),null===p&&(o?a.invalidEscapeSequence(c,n,r):t=c-1),{code:p,pos:t}}function l(e,t,s,o,a,l,c,p,u,h){const d=t,f=16===a?r.hex:r.decBinOct,m=16===a?i.hex:10===a?i.dec:8===a?i.oct:i.bin;let y=!1,g=0;for(let r=0,i=null==l?1/0:l;r<i;++r){const r=e.charCodeAt(t);let i;if(95!==r||"bail"===p){if(i=r>=97?r-97+10:r>=65?r-65+10:n(r)?r-48:1/0,i>=a){if(i<=9&&h)return{n:null,pos:t};if(i<=9&&u.invalidDigit(t,s,o,a))i=0;else{if(!c)break;i=0,y=!0}}++t,g=g*a+i}else{const n=e.charCodeAt(t-1),r=e.charCodeAt(t+1);if(p){if(Number.isNaN(r)||!m(r)||f.has(n)||f.has(r)){if(h)return{n:null,pos:t};u.unexpectedNumericSeparator(t,s,o)}}else{if(h)return{n:null,pos:t};u.numericSeparatorInEscapeSequence(t,s,o)}++t}}return t===d||null!=l&&t-d!==l||y?{n:null,pos:t}:{n:g,pos:t}}function c(e,t,n,r,i,s){let o;if(123===e.charCodeAt(t)){if(++t,({code:o,pos:t}=a(e,t,n,r,e.indexOf("}",t)-t,!0,i,s)),++t,null!==o&&o>1114111){if(!i)return{code:null,pos:t};s.invalidCodePoint(t,n,r)}}else({code:o,pos:t}=a(e,t,n,r,4,!1,i,s));return{code:o,pos:t}}},14788:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(1859);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,r.A)(i.key),i)}}function s(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},15496:(e,t,n)=>{var r=n(67787).Buffer,i=n(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 n=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),i(t,n)}},15626:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){return(0,r.default)(e,t,[{type:i?"CommentLine":"CommentBlock",value:n}])};var r=n(64697)},16068:(e,t,n)=>{var r=n(41207).X,i=n(87264).Q,s=n(10559).getCachedPredictionContext;function o(e,t){return this.atn=e,this.sharedContextCache=t,this}o.ERROR=new r(2147483647,new i),o.prototype.getCachedContext=function(e){return null===this.sharedContextCache?e:s(e,this.sharedContextCache,{})},t.e=o},16397:(e,t,n)=>{function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},16569:(e,t,n)=>{t.DFA=n(81204).DFA,t.DFASerializer=n(4768).DFASerializer,t.LexerDFASerializer=n(4768).LexerDFASerializer,t.PredPrediction=n(41207).PredPrediction},16738:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,!1)};var r=n(16938)},16938:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=!0,n=!1){return l(e,t,n,new Map)};var r=n(35108),i=n(63555);const{hasOwn:s}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function o(e,t,n,r){return e&&"string"==typeof e.type?l(e,t,n,r):e}function a(e,t,n,r){return Array.isArray(e)?e.map((e=>o(e,t,n,r))):o(e,t,n,r)}function l(e,t=!0,n=!1,o){if(!e)return e;const{type:l}=e,p={type:e.type};if((0,i.isIdentifier)(e))p.name=e.name,s(e,"optional")&&"boolean"==typeof e.optional&&(p.optional=e.optional),s(e,"typeAnnotation")&&(p.typeAnnotation=t?a(e.typeAnnotation,!0,n,o):e.typeAnnotation),s(e,"decorators")&&(p.decorators=t?a(e.decorators,!0,n,o):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)&&(p[u]=t?(0,i.isFile)(e)&&"comments"===u?c(e.comments,t,n,o):a(e[u],!0,n,o):e[u])}return s(e,"loc")&&(p.loc=n?null:e.loc),s(e,"leadingComments")&&(p.leadingComments=c(e.leadingComments,t,n,o)),s(e,"innerComments")&&(p.innerComments=c(e.innerComments,t,n,o)),s(e,"trailingComments")&&(p.trailingComments=c(e.trailingComments,t,n,o)),s(e,"extra")&&(p.extra=Object.assign({},e.extra)),p}function c(e,t,n,r){return e&&t?e.map((e=>{const t=r.get(e);if(t)return t;const{type:i,value:s,loc:o}=e,a={type:i,value:s,loc:o};return n&&(a.loc=null),r.set(e,a),a})):e}},17615:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!(0,r.default)(e)){var t;const n=null!=(t=null==e?void 0:e.type)?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${n}"`)}};var r=n(25129)},17690:(e,t,n)=>{var r=n(50659),i=n(91136),s=n(76966),o=n(54200),a=n(78554),l=n(64398),c=function(e,t){var n=t.error;t.error=function(r){n&&n(e,r,t),e.trigger("error",e,r,t)}},p=r.extend({save:function(e,t,n){var r,i;if(null==e||"object"==typeof e?(r=e,n=t):(r={})[e]=t,n=s({validate:!0},n),r&&!n.wait){if(!this.set(r,n))return!1}else if(!this._validate(r,n))return!1;void 0===n.parse&&(n.parse=!0);var a=this,l=n.success;n.success=function(e){var t=a.parse(e,n);if(n.wait&&(t=s(r||{},t)),o(t)&&!a.set(t,n))return!1;l&&l(a,e,n),a.trigger("sync",a,e,n)},c(this,n),"patch"==(i=this.isNew()?"create":n.patch?"patch":"update")&&(n.attrs=r),n.wait&&"patch"!==i&&(n.attrs=s(a.serialize(),r));var p=this.sync(i,this,n);return n.xhr=p,p},fetch:function(e){void 0===(e=e?a(e):{}).parse&&(e.parse=!0);var t=this,n=e.success;e.success=function(r){if(!t.set(t.parse(r,e),e))return!1;n&&n(t,r,e),t.trigger("sync",t,r,e)},c(this,e);var r=this.sync("read",this,e);return e.xhr=r,r},destroy:function(e){e=e?a(e):{};var t=this,n=e.success,r=function(){t.trigger("destroy",t,t.collection,e)};if(e.success=function(i){(e.wait||t.isNew())&&r(),n&&n(t,i,e),t.isNew()||t.trigger("sync",t,i,e)},this.isNew())return e.success(),!1;c(this,e);var i=this.sync("delete",this,e);return e.xhr=i,e.wait||r(),i},sync:function(){return i.apply(this,arguments)},url:function(){var e=l(this,"urlRoot")||l(this.collection,"url")||function(){throw new Error('A "url" property or function must be specified')}();return this.isNew()?e:e+("/"===e.charAt(e.length-1)?"":"/")+encodeURIComponent(this.getId())}});e.exports=p},17916:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(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 n=e.quasis;let r="`";for(let i=0;i<n.length-1;i++)if(r+=n[i].value.raw,this.token(r+"${",!0),this.print(t[i]),r="}",this.tokenMap){const t=this.tokenMap.findMatching(e,"}",i);t&&this._catchUpTo(t.loc.start)}r+=n[n.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"}},18393:(e,t,n)=>{var r=n(72994).Token,i=n(32141).f,s=n(74763).p,o=n(86587).RecognitionException,a=n(86587).LexerNoViableAltException;function l(e){return i.call(this),this._input=e,this._factory=s.DEFAULT,this._tokenFactorySourcePair=[this,e],this._interp=null,this._token=null,this._tokenStartCharIndex=-1,this._tokenStartLine=-1,this._tokenStartColumn=-1,this._hitEOF=!1,this._channel=r.DEFAULT_CHANNEL,this._type=r.INVALID_TYPE,this._modeStack=[],this._mode=l.DEFAULT_MODE,this._text=null,this}l.prototype=Object.create(i.prototype),l.prototype.constructor=l,l.DEFAULT_MODE=0,l.MORE=-2,l.SKIP=-3,l.DEFAULT_TOKEN_CHANNEL=r.DEFAULT_CHANNEL,l.HIDDEN=r.HIDDEN_CHANNEL,l.MIN_CHAR_VALUE=0,l.MAX_CHAR_VALUE=1114111,l.prototype.reset=function(){null!==this._input&&this._input.seek(0),this._token=null,this._type=r.INVALID_TYPE,this._channel=r.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartColumn=-1,this._tokenStartLine=-1,this._text=null,this._hitEOF=!1,this._mode=l.DEFAULT_MODE,this._modeStack=[],this._interp.reset()},l.prototype.nextToken=function(){if(null===this._input)throw"nextToken requires a non-null input stream.";var e=this._input.mark();try{for(;;){if(this._hitEOF)return this.emitEOF(),this._token;this._token=null,this._channel=r.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartColumn=this._interp.column,this._tokenStartLine=this._interp.line,this._text=null;for(var t=!1;;){this._type=r.INVALID_TYPE;var n=l.SKIP;try{n=this._interp.match(this._input,this._mode)}catch(e){if(!(e instanceof o))throw console.log(e.stack),e;this.notifyListeners(e),this.recover(e)}if(this._input.LA(1)===r.EOF&&(this._hitEOF=!0),this._type===r.INVALID_TYPE&&(this._type=n),this._type===l.SKIP){t=!0;break}if(this._type!==l.MORE)break}if(!t)return null===this._token&&this.emit(),this._token}}finally{this._input.release(e)}},l.prototype.skip=function(){this._type=l.SKIP},l.prototype.more=function(){this._type=l.MORE},l.prototype.mode=function(e){this._mode=e},l.prototype.pushMode=function(e){this._interp.debug&&console.log("pushMode "+e),this._modeStack.push(this._mode),this.mode(e)},l.prototype.popMode=function(){if(0===this._modeStack.length)throw"Empty Stack";return this._interp.debug&&console.log("popMode back to "+this._modeStack.slice(0,-1)),this.mode(this._modeStack.pop()),this._mode},Object.defineProperty(l.prototype,"inputStream",{get:function(){return this._input},set:function(e){this._input=null,this._tokenFactorySourcePair=[this,this._input],this.reset(),this._input=e,this._tokenFactorySourcePair=[this,this._input]}}),Object.defineProperty(l.prototype,"sourceName",{get:function(){return this._input.sourceName}}),l.prototype.emitToken=function(e){this._token=e},l.prototype.emit=function(){var e=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.getCharIndex()-1,this._tokenStartLine,this._tokenStartColumn);return this.emitToken(e),e},l.prototype.emitEOF=function(){var e=this.column,t=this.line,n=this._factory.create(this._tokenFactorySourcePair,r.EOF,null,r.DEFAULT_CHANNEL,this._input.index,this._input.index-1,t,e);return this.emitToken(n),n},Object.defineProperty(l.prototype,"type",{get:function(){return this.type},set:function(e){this._type=e}}),Object.defineProperty(l.prototype,"line",{get:function(){return this._interp.line},set:function(e){this._interp.line=e}}),Object.defineProperty(l.prototype,"column",{get:function(){return this._interp.column},set:function(e){this._interp.column=e}}),l.prototype.getCharIndex=function(){return this._input.index},Object.defineProperty(l.prototype,"text",{get:function(){return null!==this._text?this._text:this._interp.getText(this._input)},set:function(e){this._text=e}}),l.prototype.getAllTokens=function(){for(var e=[],t=this.nextToken();t.type!==r.EOF;)e.push(t),t=this.nextToken();return e},l.prototype.notifyListeners=function(e){var t=this._tokenStartCharIndex,n=this._input.index,r=this._input.getText(t,n),i="token recognition error at: '"+this.getErrorDisplay(r)+"'";this.getErrorListenerDispatch().syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,i,e)},l.prototype.getErrorDisplay=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t.join("")},l.prototype.getErrorDisplayForChar=function(e){return e.charCodeAt(0)===r.EOF?"<EOF>":"\n"===e?"\\n":"\t"===e?"\\t":"\r"===e?"\\r":e},l.prototype.getCharErrorDisplay=function(e){return"'"+this.getErrorDisplayForChar(e)+"'"},l.prototype.recover=function(e){this._input.LA(1)!==r.EOF&&(e instanceof a?this._interp.consume(this._input):this._input.consume())},t.Lexer=l},18480:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BreakStatement=function(e){this.word("break"),p(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"),p(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&&o(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"),p(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,n){if(!t&&e.cases[e.cases.length-1]===n)return-1})),this.rightBrace(e)},t.ThrowStatement=function(e){this.word("throw"),p(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:n}=e;"await using"===n?(this.word("await"),this.space(),this.word("using",!0)):this.word(n,"using"===n),this.space();let r=!1;if(!i(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),i(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=n(45741);const{isFor:i,isForStatement:s,isIfStatement:o,isStatement:a}=r;function l(e){const{body:t}=e;return!1===a(t)?e:l(t)}function c(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 n=this.enterForXStatementInit(t);this.print(e.left),null==n||n()}this.space(),this.word(t?"of":"in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e)}function p(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon()}t.ForInStatement=c,t.ForOfStatement=c},18744:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ClassAccessorProperty=function(e){var t;this.printJoin(e.decorators);const n=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;n&&this.catchUp(n),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 n=e.tokenMap.getIndexes(t);if(!n)return null;let r=1,i=0,s=0;const o=()=>{for(;s<t.body.length&&null==t.body[s].start;)s++};return o(),a=>{s<=a&&(s=a+1,o());const l=s===t.body.length?t.end:t.body[s].start;let c;for(;r<n.length&&e.tokenMap.matchesOriginal(c=e._tokens[n[r]],";")&&c.start<l;)e.token(";",void 0,i++),r++}}(this,e);null==t||t(-1);const n=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0),n(),this.endsWith(10)||this.newline(),this.rightBrace(e)}},t.ClassExpression=t.ClassDeclaration=function(e,t){(i(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 n=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;n&&this.catchUp(n)}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 n=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;n&&this.catchUp(n)}this.tsPrintClassMemberModifiers(e),this._methodHead(e)};var r=n(45741);const{isExportDefaultDeclaration:i,isExportNamedDeclaration:s}=r},18949:(e,t,n)=>{var r=n(72994).Token,i=n(77171).f;function s(e,t){return i.call(this,e),this.channel=void 0===t?r.DEFAULT_CHANNEL:t,this}s.prototype=Object.create(i.prototype),s.prototype.constructor=s,s.prototype.adjustSeekIndex=function(e){return this.nextTokenOnChannel(e,this.channel)},s.prototype.LB=function(e){if(0===e||this.index-e<0)return null;for(var t=this.index,n=1;n<=e;)t=this.previousTokenOnChannel(t-1,this.channel),n+=1;return t<0?null:this.tokens[t]},s.prototype.LT=function(e){if(this.lazyInit(),0===e)return null;if(e<0)return this.LB(-e);for(var t=this.index,n=1;n<e;)this.sync(t+1)&&(t=this.nextTokenOnChannel(t+1,this.channel)),n+=1;return this.tokens[t]},s.prototype.getNumberOfOnChannelTokens=function(){var e=0;this.fill();for(var t=0;t<this.tokens.length;t++){var n=this.tokens[t];if(n.channel===this.channel&&(e+=1),n.type===r.EOF)break}return e},t.CommonTokenStream=s},19845:(e,t)=>{function n(){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,n)),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)}},21058:(e,t,n)=>{var r=n(47375).InputStream,i="undefined"==typeof window&&"undefined"==typeof importScripts?n(36374):null,s={fromString:function(e){return new r(e,!0)},fromBlob:function(e,t,n,i){var s=FileReader();s.onload=function(e){var t=new r(e.target.result,!0);n(t)},s.onerror=i,s.readAsText(e,t)},fromBuffer:function(e,t){return new r(e.toString(t),!0)},fromPath:function(e,t,n){i.readFile(e,t,(function(e,t){var i=null;null!==t&&(i=new r(t,!0)),n(e,i)}))},fromPathSync:function(e,t){var n=i.readFileSync(e,t);return new r(n,!0)}};t.CharStreams=s},23153:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!(0,r.default)(e.type,"Immutable")||!!(0,i.isIdentifier)(e)&&"undefined"===e.name};var r=n(40453),i=n(63555)},23234:(e,t,n)=>{var r=n(66346).Set,i=n(66346).BitSet,s=n(72994).Token,o=n(470).G,a=(n(70040).Interval,n(70040).m),l=n(81367).RuleStopState,c=n(10014).RuleTransition,p=n(10014).NotSetTransition,u=n(10014).WildcardTransition,h=n(10014).AbstractPredicateTransition,d=n(10559),f=d.predictionContextFromRuleContext,m=d.PredictionContext,y=d.SingletonPredictionContext;function g(e){this.atn=e}g.HIT_PRED=s.INVALID_TYPE,g.prototype.getDecisionLookahead=function(e){if(null===e)return null;for(var t=e.transitions.length,n=[],s=0;s<t;s++){n[s]=new a;var o=new r;this._LOOK(e.transition(s).target,null,m.EMPTY,n[s],o,new i,!1,!1),(0===n[s].length||n[s].contains(g.HIT_PRED))&&(n[s]=null)}return n},g.prototype.LOOK=function(e,t,n){var s=new a,o=null!==(n=n||null)?f(e.atn,n):null;return this._LOOK(e,t,o,s,new r,new i,!0,!0),s},g.prototype._LOOK=function(e,t,n,r,i,a,d,f){var T=new o({state:e,alt:0,context:n},null);if(!i.contains(T)){if(i.add(T),e===t){if(null===n)return void r.addOne(s.EPSILON);if(n.isEmpty()&&f)return void r.addOne(s.EOF)}if(e instanceof l){if(null===n)return void r.addOne(s.EPSILON);if(n.isEmpty()&&f)return void r.addOne(s.EOF);if(n!==m.EMPTY){for(var S=0;S<n.length;S++){var b=this.atn.states[n.getReturnState(S)],x=a.contains(b.ruleIndex);try{a.remove(b.ruleIndex),this._LOOK(b,t,n.getParent(S),r,i,a,d,f)}finally{x&&a.add(b.ruleIndex)}}return}}for(var v=0;v<e.transitions.length;v++){var E=e.transitions[v];if(E.constructor===c){if(a.contains(E.target.ruleIndex))continue;var w=y.create(n,E.followState.stateNumber);try{a.add(E.target.ruleIndex),this._LOOK(E.target,t,w,r,i,a,d,f)}finally{a.remove(E.target.ruleIndex)}}else if(E instanceof h)d?this._LOOK(E.target,t,n,r,i,a,d,f):r.addOne(g.HIT_PRED);else if(E.isEpsilon)this._LOOK(E.target,t,n,r,i,a,d,f);else if(E.constructor===u)r.addRange(s.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);else{var A=E.label;null!==A&&(E instanceof p&&(A=A.complement(s.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),r.addSet(A))}}}},t.a=g},23438:(e,t,n)=>{var r=n(66346),i=n(72994).Token,s=(n(48898).RuleNode,n(48898).ErrorNode),o=n(48898).TerminalNode,a=n(29499).ParserRuleContext,l=n(40846).m,c=n(51028).INVALID_ALT_NUMBER;function p(){}p.toStringTree=function(e,t,n){t=t||null,null!==(n=n||null)&&(t=n.ruleNames);var i=p.getNodeText(e,t);i=r.escapeWhitespace(i,!1);var s=e.getChildCount();if(0===s)return i;var o="("+i+" ";s>0&&(i=p.toStringTree(e.getChild(0),t),o=o.concat(i));for(var a=1;a<s;a++)i=p.toStringTree(e.getChild(a),t),o=o.concat(" "+i);return o.concat(")")},p.getNodeText=function(e,t,n){if(t=t||null,null!==(n=n||null)&&(t=n.ruleNames),null!==t){if(e instanceof l){var r=e.getAltNumber();return r!=c?t[e.ruleIndex]+":"+r:t[e.ruleIndex]}if(e instanceof s)return e.toString();if(e instanceof o&&null!==e.symbol)return e.symbol.text}var a=e.getPayload();return a instanceof i?a.text:e.getPayload().toString()},p.getChildren=function(e){for(var t=[],n=0;n<e.getChildCount();n++)t.push(e.getChild(n));return t},p.getAncestors=function(e){var t=[];for(e=e.getParent();null!==e;)t=[e].concat(t),e=e.getParent();return t},p.findAllTokenNodes=function(e,t){return p.findAllNodes(e,t,!0)},p.findAllRuleNodes=function(e,t){return p.findAllNodes(e,t,!1)},p.findAllNodes=function(e,t,n){var r=[];return p._findAllNodes(e,t,n,r),r},p._findAllNodes=function(e,t,n,r){n&&e instanceof o?e.symbol.type===t&&r.push(e):!n&&e instanceof a&&e.ruleIndex===t&&r.push(e);for(var i=0;i<e.getChildCount();i++)p._findAllNodes(e.getChild(i),t,n,r)},p.descendants=function(e){for(var t=[e],n=0;n<e.getChildCount();n++)t=t.concat(p.descendants(e.getChild(n)));return t},t.Trees=p},23781:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return!!t&&((0,i.default)(t.type,e)?void 0===n||(0,r.default)(t,n):!n&&"Placeholder"===t.type&&e in o.FLIPPED_ALIAS_KEYS&&(0,s.default)(t.expectedNode,e))};var r=n(3903),i=n(40453),s=n(59892),o=n(35108)},24429:(e,t,n)=>{var r=n(72994).Token,i=n(86587),s=i.NoViableAltException,o=i.InputMismatchException,a=i.FailedPredicateException,l=i.ParseCancellationException,c=n(81367).ATNState,p=n(70040).Interval,u=n(70040).m;function h(){}function d(){return h.call(this),this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.lastErrorStates=null,this}function f(){return d.call(this),this}h.prototype.reset=function(e){},h.prototype.recoverInline=function(e){},h.prototype.recover=function(e,t){},h.prototype.sync=function(e){},h.prototype.inErrorRecoveryMode=function(e){},h.prototype.reportError=function(e){},d.prototype=Object.create(h.prototype),d.prototype.constructor=d,d.prototype.reset=function(e){this.endErrorCondition(e)},d.prototype.beginErrorCondition=function(e){this.errorRecoveryMode=!0},d.prototype.inErrorRecoveryMode=function(e){return this.errorRecoveryMode},d.prototype.endErrorCondition=function(e){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1},d.prototype.reportMatch=function(e){this.endErrorCondition(e)},d.prototype.reportError=function(e,t){this.inErrorRecoveryMode(e)||(this.beginErrorCondition(e),t instanceof s?this.reportNoViableAlternative(e,t):t instanceof o?this.reportInputMismatch(e,t):t instanceof a?this.reportFailedPredicate(e,t):(console.log("unknown recognition error type: "+t.constructor.name),console.log(t.stack),e.notifyErrorListeners(t.getOffendingToken(),t.getMessage(),t)))},d.prototype.recover=function(e,t){this.lastErrorIndex===e.getInputStream().index&&null!==this.lastErrorStates&&this.lastErrorStates.indexOf(e.state)>=0&&e.consume(),this.lastErrorIndex=e._input.index,null===this.lastErrorStates&&(this.lastErrorStates=[]),this.lastErrorStates.push(e.state);var n=this.getErrorRecoverySet(e);this.consumeUntil(e,n)},d.prototype.sync=function(e){if(!this.inErrorRecoveryMode(e)){var t=e._interp.atn.states[e.state],n=e.getTokenStream().LA(1),i=e.atn.nextTokens(t);if(!i.contains(r.EPSILON)&&!i.contains(n))switch(t.stateType){case c.BLOCK_START:case c.STAR_BLOCK_START:case c.PLUS_BLOCK_START:case c.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(e))return;throw new o(e);case c.PLUS_LOOP_BACK:case c.STAR_LOOP_BACK:this.reportUnwantedToken(e);var s=new u;s.addSet(e.getExpectedTokens());var a=s.addSet(this.getErrorRecoverySet(e));this.consumeUntil(e,a)}}},d.prototype.reportNoViableAlternative=function(e,t){var n,i=e.getTokenStream();n=null!==i?t.startToken.type===r.EOF?"<EOF>":i.getText(new p(t.startToken.tokenIndex,t.offendingToken.tokenIndex)):"<unknown input>";var s="no viable alternative at input "+this.escapeWSAndQuote(n);e.notifyErrorListeners(s,t.offendingToken,t)},d.prototype.reportInputMismatch=function(e,t){var n="mismatched input "+this.getTokenErrorDisplay(t.offendingToken)+" expecting "+t.getExpectedTokens().toString(e.literalNames,e.symbolicNames);e.notifyErrorListeners(n,t.offendingToken,t)},d.prototype.reportFailedPredicate=function(e,t){var n="rule "+e.ruleNames[e._ctx.ruleIndex]+" "+t.message;e.notifyErrorListeners(n,t.offendingToken,t)},d.prototype.reportUnwantedToken=function(e){if(!this.inErrorRecoveryMode(e)){this.beginErrorCondition(e);var t=e.getCurrentToken(),n="extraneous input "+this.getTokenErrorDisplay(t)+" expecting "+this.getExpectedTokens(e).toString(e.literalNames,e.symbolicNames);e.notifyErrorListeners(n,t,null)}},d.prototype.reportMissingToken=function(e){if(!this.inErrorRecoveryMode(e)){this.beginErrorCondition(e);var t=e.getCurrentToken(),n="missing "+this.getExpectedTokens(e).toString(e.literalNames,e.symbolicNames)+" at "+this.getTokenErrorDisplay(t);e.notifyErrorListeners(n,t,null)}},d.prototype.recoverInline=function(e){var t=this.singleTokenDeletion(e);if(null!==t)return e.consume(),t;if(this.singleTokenInsertion(e))return this.getMissingSymbol(e);throw new o(e)},d.prototype.singleTokenInsertion=function(e){var t=e.getTokenStream().LA(1),n=e._interp.atn,r=n.states[e.state].transitions[0].target;return!!n.nextTokens(r,e._ctx).contains(t)&&(this.reportMissingToken(e),!0)},d.prototype.singleTokenDeletion=function(e){var t=e.getTokenStream().LA(2);if(this.getExpectedTokens(e).contains(t)){this.reportUnwantedToken(e),e.consume();var n=e.getCurrentToken();return this.reportMatch(e),n}return null},d.prototype.getMissingSymbol=function(e){var t,n=e.getCurrentToken(),i=this.getExpectedTokens(e).first();t=i===r.EOF?"<missing EOF>":"<missing "+e.literalNames[i]+">";var s=n,o=e.getTokenStream().LT(-1);return s.type===r.EOF&&null!==o&&(s=o),e.getTokenFactory().create(s.source,i,t,r.DEFAULT_CHANNEL,-1,-1,s.line,s.column)},d.prototype.getExpectedTokens=function(e){return e.getExpectedTokens()},d.prototype.getTokenErrorDisplay=function(e){if(null===e)return"<no token>";var t=e.text;return null===t&&(t=e.type===r.EOF?"<EOF>":"<"+e.type+">"),this.escapeWSAndQuote(t)},d.prototype.escapeWSAndQuote=function(e){return"'"+(e=(e=(e=e.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"},d.prototype.getErrorRecoverySet=function(e){for(var t=e._interp.atn,n=e._ctx,i=new u;null!==n&&n.invokingState>=0;){var s=t.states[n.invokingState].transitions[0],o=t.nextTokens(s.followState);i.addSet(o),n=n.parentCtx}return i.removeOne(r.EPSILON),i},d.prototype.consumeUntil=function(e,t){for(var n=e.getTokenStream().LA(1);n!==r.EOF&&!t.contains(n);)e.consume(),n=e.getTokenStream().LA(1)},f.prototype=Object.create(d.prototype),f.prototype.constructor=f,f.prototype.recover=function(e,t){for(var n=e._ctx;null!==n;)n.exception=t,n=n.parentCtx;throw new l(t)},f.prototype.recoverInline=function(e){this.recover(e,new o(e))},f.prototype.sync=function(e){},t.BailErrorStrategy=f,t.$=d},25129:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!(!e||!r.VISITOR_KEYS[e.type])};var r=n(35108)},25765:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)("innerComments",e,t)};var r=n(26284)},25857:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExportAllDeclaration=function(e){var t,n;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!=(n=e.assertions)&&n.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|=i.TokenContext.exportDefault;const t=e.declaration;this.print(t),p(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),p(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());const r=e.specifiers.slice(0);let i=!1;for(;;){const e=r[0];if(!o(e)&&!a(e))break;i=!0,this.print(r.shift()),r.length&&(this.tokenChar(44),this.space())}let s=!1;var t,n;(r.length||!r.length&&!i)&&(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!=(n=e.assertions)&&n.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,n;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 i=e.specifiers.slice(0),s=!!i.length;for(;s;){const e=i[0];if(!l(e)&&!c(e))break;this.print(i.shift()),i.length&&(this.tokenChar(44),this.space())}let o=!1;i.length?(o=!0,this.tokenChar(123),this.space(),this.printList(i,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):r&&!s&&(o=!0,this.tokenChar(123),this.tokenChar(125)),(s||r)&&(this.space(),this.word("from"),this.space()),null!=(t=e.attributes)&&t.length||null!=(n=e.assertions)&&n.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,o)):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 n;const{importAttributesKeyword:r}=this.format,{attributes:i,assertions:s}=e;i&&!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 o="assert"===r||!r&&s;if(this.word(o?"assert":"with"),this.space(),!o&&("with-legacy"===r||!r&&null!=(n=e.extra)&&n.deprecatedWithLegacySyntax))return void this.printList(i||s);const a=t?1:0;this.token("{",null,a),this.space(),this.printList(i||s,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",null,a)};var r=n(45741),i=n(36306);const{isClassDeclaration:s,isExportDefaultSpecifier:o,isExportNamespaceSpecifier:a,isImportDefaultSpecifier:l,isImportNamespaceSpecifier:c,isStatement:p}=r;let u=!1;function h(e,t){s(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators)}},26228:(e,t,n)=>{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=n(98109)},26284:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){t&&n&&(t[e]=Array.from(new Set([].concat(t[e],n[e]).filter(Boolean))))}},26597:(e,t,n)=>{t.ATN=n(51028).ATN,t.ATNDeserializer=n(36575).ATNDeserializer,t.LexerATNSimulator=n(60634).LexerATNSimulator,t.ParserATNSimulator=n(7543).ParserATNSimulator,t.PredictionMode=n(63387).PredictionMode},27022:(e,t,n)=>{var r=n(25003),i=n(4715);function s(e){i.call(this,e),this.enc="pem"}r(s,i),e.exports=s,s.prototype.encode=function(e,t){for(var n=i.prototype.encode.call(this,e).toString("base64"),r=["-----BEGIN "+t.label+"-----"],s=0;s<n.length;s+=64)r.push(n.slice(s,s+64));return r.push("-----END "+t.label+"-----"),r.join("\n")}},28020:(e,t,n)=>{var r=n(96073),i="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof i[r[t]]&&(e[e.length]=r[t]);return e}},28525:(e,t,n)=>{var r=n(84913),i=n(8187),s=n(25003),o=n(79696).Buffer,a={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function l(e){r.call(this);var t,n=e.mode.toLowerCase(),i=a[n];t=e.decrypt?"decrypt":"encrypt";var s=e.key;o.isBuffer(s)||(s=o.from(s)),"des-ede"!==n&&"des-ede-cbc"!==n||(s=o.concat([s,s.slice(0,8)]));var l=e.iv;o.isBuffer(l)||(l=o.from(l)),this._des=i.create({key:s,iv:l,type:t})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],e.exports=l,s(l,r),l.prototype._update=function(e){return o.from(this._des.update(e))},l.prototype._final=function(){return o.from(this._des.final())}},29075:(e,t,n)=>{e.exports=o;var r=n(49837),i=Object.create(n(26571));function s(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(e){if(!(this instanceof o))return new o(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",a)}function a(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){l(e,t,n)})):l(this,null,null)}function l(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),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)}i.inherits=n(25003),i.inherits(o,r),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.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},o.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},29221:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e+="";let t="";for(const n of e)t+=(0,i.isIdentifierChar)(n.codePointAt(0))?n:"-";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=n(26228),i=n(98109)},29499:(e,t,n)=>{var r=n(40846).m,i=n(48898),s=i.INVALID_INTERVAL,o=i.TerminalNode,a=i.TerminalNodeImpl,l=i.ErrorNodeImpl,c=n(70040).Interval;function p(e,t){e=e||null,t=t||null,r.call(this,e,t),this.ruleIndex=-1,this.children=null,this.start=null,this.stop=null,this.exception=null}function u(e,t,n){return p.call(e,t),this.ruleIndex=n,this}p.prototype=Object.create(r.prototype),p.prototype.constructor=p,p.prototype.copyFrom=function(e){this.parentCtx=e.parentCtx,this.invokingState=e.invokingState,this.children=null,this.start=e.start,this.stop=e.stop,e.children&&(this.children=[],e.children.map((function(e){e instanceof l&&(this.children.push(e),e.parentCtx=this)}),this))},p.prototype.enterRule=function(e){},p.prototype.exitRule=function(e){},p.prototype.addChild=function(e){return null===this.children&&(this.children=[]),this.children.push(e),e},p.prototype.removeLastChild=function(){null!==this.children&&this.children.pop()},p.prototype.addTokenNode=function(e){var t=new a(e);return this.addChild(t),t.parentCtx=this,t},p.prototype.addErrorNode=function(e){var t=new l(e);return this.addChild(t),t.parentCtx=this,t},p.prototype.getChild=function(e,t){if(t=t||null,null===this.children||e<0||e>=this.children.length)return null;if(null===t)return this.children[e];for(var n=0;n<this.children.length;n++){var r=this.children[n];if(r instanceof t){if(0===e)return r;e-=1}}return null},p.prototype.getToken=function(e,t){if(null===this.children||t<0||t>=this.children.length)return null;for(var n=0;n<this.children.length;n++){var r=this.children[n];if(r instanceof o&&r.symbol.type===e){if(0===t)return r;t-=1}}return null},p.prototype.getTokens=function(e){if(null===this.children)return[];for(var t=[],n=0;n<this.children.length;n++){var r=this.children[n];r instanceof o&&r.symbol.type===e&&t.push(r)}return t},p.prototype.getTypedRuleContext=function(e,t){return this.getChild(t,e)},p.prototype.getTypedRuleContexts=function(e){if(null===this.children)return[];for(var t=[],n=0;n<this.children.length;n++){var r=this.children[n];r instanceof e&&t.push(r)}return t},p.prototype.getChildCount=function(){return null===this.children?0:this.children.length},p.prototype.getSourceInterval=function(){return null===this.start||null===this.stop?s:new c(this.start.tokenIndex,this.stop.tokenIndex)},r.EMPTY=new p,u.prototype=Object.create(p.prototype),u.prototype.constructor=u,t.ParserRuleContext=p},30088:(e,t,n)=>{var r=n(95421);function i(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,s=Math.min(n,r);i<s;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function s(e){return n.g.Buffer&&"function"==typeof n.g.Buffer.isBuffer?n.g.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var o=n(98437),a=Object.prototype.hasOwnProperty,l=Array.prototype.slice,c="foo"===function(){}.name;function p(e){return Object.prototype.toString.call(e)}function u(e){return!s(e)&&"function"==typeof n.g.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer)))}var h=e.exports=T,d=/\s*function\s+([^\(\s]*)\s*/;function f(e){if(o.isFunction(e)){if(c)return e.name;var t=e.toString().match(d);return t&&t[1]}}function m(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function y(e){if(c||!o.isFunction(e))return o.inspect(e);var t=f(e);return"[Function"+(t?": "+t:"")+"]"}function g(e,t,n,r,i){throw new h.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function T(e,t){e||g(e,!0,t,"==",h.ok)}function S(e,t,n,r){if(e===t)return!0;if(s(e)&&s(t))return 0===i(e,t);if(o.isDate(e)&&o.isDate(t))return e.getTime()===t.getTime();if(o.isRegExp(e)&&o.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(u(e)&&u(t)&&p(e)===p(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===i(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(s(e)!==s(t))return!1;var a=(r=r||{actual:[],expected:[]}).actual.indexOf(e);return-1!==a&&a===r.expected.indexOf(t)||(r.actual.push(e),r.expected.push(t),function(e,t,n,r){if(null==e||null==t)return!1;if(o.isPrimitive(e)||o.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=b(e),s=b(t);if(i&&!s||!i&&s)return!1;if(i)return S(e=l.call(e),t=l.call(t),n);var a,c,p=E(e),u=E(t);if(p.length!==u.length)return!1;for(p.sort(),u.sort(),c=p.length-1;c>=0;c--)if(p[c]!==u[c])return!1;for(c=p.length-1;c>=0;c--)if(!S(e[a=p[c]],t[a],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function b(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function x(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function v(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&g(i,n,"Missing expected exception"+r);var s="string"==typeof r,a=!e&&i&&!n;if((!e&&o.isError(i)&&s&&x(i,n)||a)&&g(i,n,"Got unwanted exception"+r),e&&i&&n&&!x(i,n)||!e&&i)throw i}h.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return m(y(e.actual),128)+" "+e.operator+" "+m(y(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=f(t),s=r.indexOf("\n"+i);if(s>=0){var o=r.indexOf("\n",s+1);r=r.substring(o+1)}this.stack=r}}},o.inherits(h.AssertionError,Error),h.fail=g,h.ok=T,h.equal=function(e,t,n){e!=t&&g(e,t,n,"==",h.equal)},h.notEqual=function(e,t,n){e==t&&g(e,t,n,"!=",h.notEqual)},h.deepEqual=function(e,t,n){S(e,t,!1)||g(e,t,n,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,n){S(e,t,!0)||g(e,t,n,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,n){S(e,t,!1)&&g(e,t,n,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,n,r){S(t,n,!0)&&g(t,n,r,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,n){e!==t&&g(e,t,n,"===",h.strictEqual)},h.notStrictEqual=function(e,t,n){e===t&&g(e,t,n,"!==",h.notStrictEqual)},h.throws=function(e,t,n){v(!0,e,t,n)},h.doesNotThrow=function(e,t,n){v(!1,e,t,n)},h.ifError=function(e){if(e)throw e},h.strict=r((function e(t,n){t||g(t,!0,n,"==",e)}),h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var E=Object.keys||function(e){var t=[];for(var n in e)a.call(e,n)&&t.push(n);return t}},30462:(e,t,n)=>{var r=n(67787),i=r.Buffer;function s(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(s(r,t),t.Buffer=o),s(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},31500:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(1859);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},32141:(e,t,n)=>{var r=n(72994).Token,i=n(93343).q,s=n(93343).X;function o(){return this._listeners=[i.INSTANCE],this._interp=null,this._stateNumber=-1,this}o.tokenTypeMapCache={},o.ruleIndexMapCache={},o.prototype.checkVersion=function(e){"4.7.2"!==e&&console.log("ANTLR runtime and generated code versions disagree: 4.7.2!="+e)},o.prototype.addErrorListener=function(e){this._listeners.push(e)},o.prototype.removeErrorListeners=function(){this._listeners=[]},o.prototype.getTokenTypeMap=function(){var e=this.getTokenNames();if(null===e)throw"The current recognizer does not provide a list of token names.";var t=this.tokenTypeMapCache[e];return void 0===t&&((t=e.reduce((function(e,t,n){e[t]=n}))).EOF=r.EOF,this.tokenTypeMapCache[e]=t),t},o.prototype.getRuleIndexMap=function(){var e=this.ruleNames;if(null===e)throw"The current recognizer does not provide a list of rule names.";var t=this.ruleIndexMapCache[e];return void 0===t&&(t=e.reduce((function(e,t,n){e[t]=n})),this.ruleIndexMapCache[e]=t),t},o.prototype.getTokenType=function(e){var t=this.getTokenTypeMap()[e];return void 0!==t?t:r.INVALID_TYPE},o.prototype.getErrorHeader=function(e){return"line "+e.getOffendingToken().line+":"+e.getOffendingToken().column},o.prototype.getTokenErrorDisplay=function(e){if(null===e)return"<no token>";var t=e.text;return null===t&&(t=e.type===r.EOF?"<EOF>":"<"+e.type+">"),"'"+(t=t.replace("\n","\\n").replace("\r","\\r").replace("\t","\\t"))+"'"},o.prototype.getErrorListenerDispatch=function(){return new s(this._listeners)},o.prototype.sempred=function(e,t,n){return!0},o.prototype.precpred=function(e,t){return!0},Object.defineProperty(o.prototype,"state",{get:function(){return this._stateNumber},set:function(e){this._stateNumber=e}}),t.f=o},32427:(e,t,n)=>{var r=n(67787).Buffer,i=n(70243),s=n(51048);function o(e){var t,n=e.modulus.byteLength();do{t=new i(s(n))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function a(e,t){var n=function(e){var t=o(e);return{blinder:t.toRed(i.mont(e.modulus)).redPow(new i(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),s=t.modulus.byteLength(),a=new i(e).mul(n.blinder).umod(t.modulus),l=a.toRed(i.mont(t.prime1)),c=a.toRed(i.mont(t.prime2)),p=t.coefficient,u=t.prime1,h=t.prime2,d=l.redPow(t.exponent1).fromRed(),f=c.redPow(t.exponent2).fromRed(),m=d.isub(f).imul(p).umod(u).imul(h);return f.iadd(m).imul(n.unblinder).umod(t.modulus).toArrayLike(r,"be",s)}a.getr=o,e.exports=a},32868:(e,t,n)=>{var r=t;r.der=n(5555),r.pem=n(93862)},33335:(e,t)=>{function n(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}class r{constructor(e,t,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=n}}class i{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:n,column:i,index:s}=e;return new r(n,i+t,s+t)}const o="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var a={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:o},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:o}};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"},c=e=>"UpdateExpression"===e.type?l.UpdateExpression[`${e.prefix}`]:l[e.type];var p={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 ${c(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${c(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${c(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 ${c({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,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:n})}function y({toMessage:e,code:t,reasonCode:n,syntaxPlugin:i}){const s="MissingPlugin"===n||"MissingOneOfPlugins"===n;{const e={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};e[n]&&(n=e[n])}return function o(a,l){const c=new SyntaxError;return c.code=t,c.reasonCode=n,c.loc=a,c.pos=a.index,c.syntaxPlugin=i,s&&(c.missingPlugin=l.missingPlugin),m(c,"clone",(function(e={}){var t;const{line:n,column:i,index:s}=null!=(t=e.loc)?t:a;return o(new r(n,i,s),Object.assign({},l,e.details))})),m(c,"details",l),Object.defineProperty(c,"message",{configurable:!0,get(){const t=`${e(l)} (${a.line}:${a.column})`;return this.message=t,t},set(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),c}}function g(e,t){if(Array.isArray(e))return t=>g(t,e[0]);const r={};for(const i of Object.keys(e)){const s=e[i],o="string"==typeof s?{message:()=>s}:"function"==typeof s?{message:s}:s,{message:a}=o,l=n(o,f),c="string"==typeof a?()=>a:a;r[i]=y(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:c},t?{syntaxPlugin:t}:{},l))}return r}const T=Object.assign({},g(a),g(p),g({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."}),g(u),g`pipelineOperator`(d)),{defineProperty:S}=Object,b=(e,t)=>{e&&S(e,t,{enumerable:!1,value:e[t]})};function x(e){return b(e.loc.start,"index"),b(e.loc.end,"index"),e}class v{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}}const E={brace:new v("{"),j_oTag:new v("<tag"),j_cTag:new v("</tag"),j_expr:new v("<tag>...</tag>",!0)};E.template=new v("`",!0);const w=!0,A=!0,P=!0,I=!0,C=!0;class _{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 N=new Map;function O(e,t={}){t.keyword=e;const n=U(e,t);return N.set(e,n),n}function k(e,t){return U(e,{beforeExpr:w,binop:t})}let M=-1;const L=[],D=[],B=[],F=[],R=[],j=[];function U(e,t={}){var n,r,i,s;return++M,D.push(e),B.push(null!=(n=t.binop)?n:-1),F.push(null!=(r=t.beforeExpr)&&r),R.push(null!=(i=t.startsExpr)&&i),j.push(null!=(s=t.prefix)&&s),L.push(new _(e,t)),M}function V(e,t={}){var n,r,i,s;return++M,N.set(e,M),D.push(e),B.push(null!=(n=t.binop)?n:-1),F.push(null!=(r=t.beforeExpr)&&r),R.push(null!=(i=t.startsExpr)&&i),j.push(null!=(s=t.prefix)&&s),L.push(new _("name",t)),M}const q={bracketL:U("[",{beforeExpr:w,startsExpr:A}),bracketHashL:U("#[",{beforeExpr:w,startsExpr:A}),bracketBarL:U("[|",{beforeExpr:w,startsExpr:A}),bracketR:U("]"),bracketBarR:U("|]"),braceL:U("{",{beforeExpr:w,startsExpr:A}),braceBarL:U("{|",{beforeExpr:w,startsExpr:A}),braceHashL:U("#{",{beforeExpr:w,startsExpr:A}),braceR:U("}"),braceBarR:U("|}"),parenL:U("(",{beforeExpr:w,startsExpr:A}),parenR:U(")"),comma:U(",",{beforeExpr:w}),semi:U(";",{beforeExpr:w}),colon:U(":",{beforeExpr:w}),doubleColon:U("::",{beforeExpr:w}),dot:U("."),question:U("?",{beforeExpr:w}),questionDot:U("?."),arrow:U("=>",{beforeExpr:w}),template:U("template"),ellipsis:U("...",{beforeExpr:w}),backQuote:U("`",{startsExpr:A}),dollarBraceL:U("${",{beforeExpr:w,startsExpr:A}),templateTail:U("...`",{startsExpr:A}),templateNonTail:U("...${",{beforeExpr:w,startsExpr:A}),at:U("@"),hash:U("#",{startsExpr:A}),interpreterDirective:U("#!..."),eq:U("=",{beforeExpr:w,isAssign:I}),assign:U("_=",{beforeExpr:w,isAssign:I}),slashAssign:U("_=",{beforeExpr:w,isAssign:I}),xorAssign:U("_=",{beforeExpr:w,isAssign:I}),moduloAssign:U("_=",{beforeExpr:w,isAssign:I}),incDec:U("++/--",{prefix:C,postfix:!0,startsExpr:A}),bang:U("!",{beforeExpr:w,prefix:C,startsExpr:A}),tilde:U("~",{beforeExpr:w,prefix:C,startsExpr:A}),doubleCaret:U("^^",{startsExpr:A}),doubleAt:U("@@",{startsExpr:A}),pipeline:k("|>",0),nullishCoalescing:k("??",1),logicalOR:k("||",1),logicalAND:k("&&",2),bitwiseOR:k("|",3),bitwiseXOR:k("^",4),bitwiseAND:k("&",5),equality:k("==/!=/===/!==",6),lt:k("</>/<=/>=",7),gt:k("</>/<=/>=",7),relational:k("</>/<=/>=",7),bitShift:k("<</>>/>>>",8),bitShiftL:k("<</>>/>>>",8),bitShiftR:k("<</>>/>>>",8),plusMin:U("+/-",{beforeExpr:w,binop:9,prefix:C,startsExpr:A}),modulo:U("%",{binop:10,startsExpr:A}),star:U("*",{binop:10}),slash:k("/",10),exponent:U("**",{beforeExpr:w,binop:11,rightAssociative:!0}),_in:O("in",{beforeExpr:w,binop:7}),_instanceof:O("instanceof",{beforeExpr:w,binop:7}),_break:O("break"),_case:O("case",{beforeExpr:w}),_catch:O("catch"),_continue:O("continue"),_debugger:O("debugger"),_default:O("default",{beforeExpr:w}),_else:O("else",{beforeExpr:w}),_finally:O("finally"),_function:O("function",{startsExpr:A}),_if:O("if"),_return:O("return",{beforeExpr:w}),_switch:O("switch"),_throw:O("throw",{beforeExpr:w,prefix:C,startsExpr:A}),_try:O("try"),_var:O("var"),_const:O("const"),_with:O("with"),_new:O("new",{beforeExpr:w,startsExpr:A}),_this:O("this",{startsExpr:A}),_super:O("super",{startsExpr:A}),_class:O("class",{startsExpr:A}),_extends:O("extends",{beforeExpr:w}),_export:O("export"),_import:O("import",{startsExpr:A}),_null:O("null",{startsExpr:A}),_true:O("true",{startsExpr:A}),_false:O("false",{startsExpr:A}),_typeof:O("typeof",{beforeExpr:w,prefix:C,startsExpr:A}),_void:O("void",{beforeExpr:w,prefix:C,startsExpr:A}),_delete:O("delete",{beforeExpr:w,prefix:C,startsExpr:A}),_do:O("do",{isLoop:P,beforeExpr:w}),_for:O("for",{isLoop:P}),_while:O("while",{isLoop:P}),_as:V("as",{startsExpr:A}),_assert:V("assert",{startsExpr:A}),_async:V("async",{startsExpr:A}),_await:V("await",{startsExpr:A}),_defer:V("defer",{startsExpr:A}),_from:V("from",{startsExpr:A}),_get:V("get",{startsExpr:A}),_let:V("let",{startsExpr:A}),_meta:V("meta",{startsExpr:A}),_of:V("of",{startsExpr:A}),_sent:V("sent",{startsExpr:A}),_set:V("set",{startsExpr:A}),_source:V("source",{startsExpr:A}),_static:V("static",{startsExpr:A}),_using:V("using",{startsExpr:A}),_yield:V("yield",{startsExpr:A}),_asserts:V("asserts",{startsExpr:A}),_checks:V("checks",{startsExpr:A}),_exports:V("exports",{startsExpr:A}),_global:V("global",{startsExpr:A}),_implements:V("implements",{startsExpr:A}),_intrinsic:V("intrinsic",{startsExpr:A}),_infer:V("infer",{startsExpr:A}),_is:V("is",{startsExpr:A}),_mixins:V("mixins",{startsExpr:A}),_proto:V("proto",{startsExpr:A}),_require:V("require",{startsExpr:A}),_satisfies:V("satisfies",{startsExpr:A}),_keyof:V("keyof",{startsExpr:A}),_readonly:V("readonly",{startsExpr:A}),_unique:V("unique",{startsExpr:A}),_abstract:V("abstract",{startsExpr:A}),_declare:V("declare",{startsExpr:A}),_enum:V("enum",{startsExpr:A}),_module:V("module",{startsExpr:A}),_namespace:V("namespace",{startsExpr:A}),_interface:V("interface",{startsExpr:A}),_type:V("type",{startsExpr:A}),_opaque:V("opaque",{startsExpr:A}),name:U("name",{startsExpr:A}),placeholder:U("%%",{startsExpr:A}),string:U("string",{startsExpr:A}),num:U("num",{startsExpr:A}),bigint:U("bigint",{startsExpr:A}),decimal:U("decimal",{startsExpr:A}),regexp:U("regexp",{startsExpr:A}),privateName:U("#name",{startsExpr:A}),eof:U("eof"),jsxName:U("jsxName"),jsxText:U("jsxText",{beforeExpr:w}),jsxTagStart:U("jsxTagStart",{startsExpr:A}),jsxTagEnd:U("jsxTagEnd")};function K(e){return e>=93&&e<=133}function $(e){return e>=58&&e<=133}function Y(e){return e>=58&&e<=137}function z(e){return R[e]}function J(e){return e>=129&&e<=131}function H(e){return e>=58&&e<=92}function X(e){return D[e]}function W(e){return B[e]}function G(e){return e>=24&&e<=25}function Z(e){return L[e]}L[8].updateContext=e=>{e.pop()},L[5].updateContext=L[7].updateContext=L[23].updateContext=e=>{e.push(E.brace)},L[22].updateContext=e=>{e[e.length-1]===E.template?e.pop():e.push(E.template)},L[143].updateContext=e=>{e.push(E.j_expr,E.j_oTag)};let Q="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ee="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const te=new RegExp("["+Q+"]"),ne=new RegExp("["+Q+ee+"]");Q=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],ie=[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 n=65536;for(let r=0,i=t.length;r<i;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function oe(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 ae(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&ne.test(String.fromCharCode(e)):se(e,re)||se(e,ie))))}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"]),ce=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),pe=new Set(["eval","arguments"]);function ue(e,t){return t&&"await"===e||"enum"===e}function he(e,t){return ue(e,t)||ce.has(e)}function de(e){return pe.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 ge{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,n){let r=this.currentScope();if(8&t||16&t){this.checkRedeclarationInScope(r,e,t,n);let i=r.names.get(e)||0;16&t?i|=4:(r.firstLexicalName||(r.firstLexicalName=e),i|=2),r.names.set(e,i),8&t&&this.maybeExportDefined(r,e)}else if(4&t)for(let i=this.scopeStack.length-1;i>=0&&(r=this.scopeStack[i],this.checkRedeclarationInScope(r,e,t,n),r.names.set(e,1|(r.names.get(e)||0)),this.maybeExportDefined(r,e),!(1667&r.flags));--i);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,n,r){this.isRedeclaredInScope(e,t,n)&&this.parser.raise(T.VarRedeclaration,r,{identifierName:t})}isRedeclaredInScope(e,t,n){if(!(1&n))return!1;if(8&n)return e.names.has(t);const r=e.names.get(t);return 16&n?(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 Te extends ye{constructor(...e){super(...e),this.declareFunctions=new Set}}class Se extends ge{createScope(e){return new Te(e)}declareName(e,t,n){const r=this.currentScope();if(2048&t)return this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e),void r.declareFunctions.add(e);super.declareName(e,t,n)}isRedeclaredInScope(e,t,n){if(super.isRedeclaredInScope(e,t,n))return!0;if(2048&n&&!e.declareFunctions.has(t)){const n=e.names.get(t);return(4&n)>0||(2&n)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}}const be=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),xe=g`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:n})=>`Enum \`${e}\` has type \`${n}\`, so the initializer of \`${t}\` needs to be a ${n} 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:n})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${n}\`, 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 ve(e){return"type"===e.importKind||"typeof"===e.importKind}const Ee={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},we=/\*?\s*@((?:no)?flow)\b/,Ae={__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:"♦"},Pe=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,n){for(let r=t;r<n;r++)if(Ie(e.charCodeAt(r)))return!0;return!1}const _e=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Ne=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function Oe(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 ke=g`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 ge{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 n=this.importsStack.length;if(this.importsStack[n-1].has(e))return!0;if(!t&&n>1)for(let t=0;t<n-1;t++)if(this.importsStack[t].has(e))return!0;return!1}declareName(e,t,n){if(4096&t)return this.hasImport(e,!0)&&this.parser.raise(T.VarRedeclaration,n,{identifierName:e}),void this.importsStack[this.importsStack.length-1].add(e);const r=this.currentScope();let i=r.tsNames.get(e)||0;if(1024&t)return this.maybeExportDefined(r,e),void r.tsNames.set(e,16|i);super.declareName(e,t,n),2&t&&(1&t||(this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e)),i|=1),256&t&&(i|=2),512&t&&(i|=4),128&t&&(i|=8),i&&r.tsNames.set(e,i)}isRedeclaredInScope(e,t,n){const r=e.tsNames.get(t);return(2&r)>0?!(256&n)||!!(512&n)!=(4&r)>0:128&n&&(8&r)>0?!!(2&e.names.get(t))&&!!(1&n):!!(2&n&&(1&r)>0)||super.isRedeclaredInScope(e,t,n)}checkLocalExport(e){const{name:t}=e;if(!this.hasImport(t)){for(let e=this.scopeStack.length-1;e>=0;e--){const n=this.scopeStack[e].tsNames.get(t);if((1&n)>0||(16&n)>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 Re(e,t){return(e?2:0)|(t?1:0)}class je{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,n]=e;if(!this.hasPlugin(t))return!1;const r=this.plugins.get(t);for(const e of Object.keys(n))if((null==r?void 0:r[e])!==n[e])return!1;return!0}}getPluginOption(e,t){var n;return null==(n=this.plugins.get(e))?void 0:n[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 qe(e,t,n){let r=null,i=t.length;for(;null===r&&i>0;)r=t[--i];null===r||r.start>n.start?Ve(e,n.comments):Ue(r,n.comments)}class Ke extends je{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,n=t.length;if(0===n)return;let r=n-1;const i=t[r];i.start===e.end&&(i.leadingNode=e,r--);const{start:s}=e;for(;r>=0;r--){const n=t[r],i=n.end;if(!(i>s)){i===s&&(n.trailingNode=e);break}n.containingNode=e,this.finalizeComment(n),t.splice(r,1)}}finalizeComment(e){var t;const{comments:n}=e;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&Ue(e.leadingNode,n),null!==e.trailingNode&&function(e,t){void 0===e.leadingComments?e.leadingComments=t:e.leadingComments.unshift(...t)}(e.trailingNode,n);else{const{containingNode:r,start:i}=e;if(44===this.input.charCodeAt(this.offsetToSourcePos(i)-1))switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":qe(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":qe(r,r.arguments,e);break;case"ImportExpression":qe(r,[r.source,null!=(t=r.options)?t:null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":qe(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":qe(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":qe(r,r.specifiers,e);break;case"TSEnumDeclaration":case"TSEnumBody":qe(r,r.members,e);break;default:Ve(r,n)}else Ve(r,n)}}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:n}=t;if(0===n)return;const r=t[n-1];r.leadingNode===e&&(r.leadingNode=null)}takeSurroundingComments(e,t,n){const{commentStack:r}=this.state,i=r.length;if(0===i)return;let s=i-1;for(;s>=0;s--){const i=r[s],o=i.end;if(i.start===n)i.leadingNode=e;else if(o===t)i.trailingNode=e;else if(o<t)break}}}class $e{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=[E.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:n,startLine:i,startColumn:s}){this.strict=!1!==e&&(!0===e||"module"===t),this.startIndex=n,this.curLine=i,this.lineStart=-s,this.startLoc=this.endLoc=new r(i,s,n)}get maybeInArrowParameters(){return(2&this.flags)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(256&this.flags)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(512&this.flags)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(1024&this.flags)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(2048&this.flags)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(4096&this.flags)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new r(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){const e=new $e;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 ze={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Je={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 He(e,t,n,r,i,s){const o=n,a=r,l=i;let c="",p=null,u=n;const{length:h}=t;for(;;){if(n>=h){s.unterminated(o,a,l),c+=t.slice(u,n);break}const d=t.charCodeAt(n);if(Xe(e,d,t,n)){c+=t.slice(u,n);break}if(92===d){c+=t.slice(u,n);const o=We(t,n,r,i,"template"===e,s);null!==o.ch||p?c+=o.ch:p={pos:n,lineStart:r,curLine:i},({pos:n,lineStart:r,curLine:i}=o),u=n}else 8232===d||8233===d?(++i,r=++n):10===d||13===d?"template"===e?(c+=t.slice(u,n)+"\n",++n,13===d&&10===t.charCodeAt(n)&&++n,++i,u=r=n):s.unterminated(o,a,l):++n}return{pos:n,str:c,firstInvalidLoc:p,lineStart:r,curLine:i,containsInvalid:!!p}}function Xe(e,t,n,r){return"template"===e?96===t||36===t&&123===n.charCodeAt(r+1):t===("double"===e?34:39)}function We(e,t,n,r,i,s){const o=!i;t++;const a=e=>({pos:t,ch:e,lineStart:n,curLine:r}),l=e.charCodeAt(t++);switch(l){case 110:return a("\n");case 114:return a("\r");case 120:{let i;return({code:i,pos:t}=Ge(e,t,n,r,2,!1,o,s)),a(null===i?null:String.fromCharCode(i))}case 117:{let i;return({code:i,pos:t}=Qe(e,t,n,r,o,s)),a(null===i?null:String.fromCodePoint(i))}case 116:return a("\t");case 98:return a("\b");case 118:return a("\v");case 102:return a("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:n=t,++r;case 8232:case 8233:return a("");case 56:case 57:if(i)return a(null);s.strictNumericEscape(t-1,n,r);default:if(l>=48&&l<=55){const o=t-1;let l=/^[0-7]+/.exec(e.slice(o,t+2))[0],c=parseInt(l,8);c>255&&(l=l.slice(0,-1),c=parseInt(l,8)),t+=l.length-1;const p=e.charCodeAt(t);if("0"!==l||56===p||57===p){if(i)return a(null);s.strictNumericEscape(o,n,r)}return a(String.fromCharCode(c))}return a(String.fromCharCode(l))}}function Ge(e,t,n,r,i,s,o,a){const l=t;let c;return({n:c,pos:t}=Ze(e,t,n,r,16,i,s,!1,a,!o)),null===c&&(o?a.invalidEscapeSequence(l,n,r):t=l-1),{code:c,pos:t}}function Ze(e,t,n,r,i,s,o,a,l,c){const p=t,u=16===i?ze.hex:ze.decBinOct,h=16===i?Je.hex:10===i?Je.dec:8===i?Je.oct:Je.bin;let d=!1,f=0;for(let p=0,m=null==s?1/0:s;p<m;++p){const s=e.charCodeAt(t);let p;if(95!==s||"bail"===a){if(p=s>=97?s-97+10:s>=65?s-65+10:Ye(s)?s-48:1/0,p>=i){if(p<=9&&c)return{n:null,pos:t};if(p<=9&&l.invalidDigit(t,n,r,i))p=0;else{if(!o)break;p=0,d=!0}}++t,f=f*i+p}else{const i=e.charCodeAt(t-1),s=e.charCodeAt(t+1);if(a){if(Number.isNaN(s)||!h(s)||u.has(i)||u.has(s)){if(c)return{n:null,pos:t};l.unexpectedNumericSeparator(t,n,r)}}else{if(c)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,n,r)}++t}}return t===p||null!=s&&t-p!==s||d?{n:null,pos:t}:{n:f,pos:t}}function Qe(e,t,n,r,i,s){let o;if(123===e.charCodeAt(t)){if(++t,({code:o,pos:t}=Ge(e,t,n,r,e.indexOf("}",t)-t,!0,i,s)),++t,null!==o&&o>1114111){if(!i)return{code:null,pos:t};s.invalidCodePoint(t,n,r)}}else({code:o,pos:t}=Ge(e,t,n,r,4,!1,i,s));return{code:o,pos:t}}function et(e,t,n){return new r(n,e-t,e)}const tt=new Set([103,109,115,105,121,117,100,118]);class nt{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 i(e.startLoc,e.endLoc)}}class rt extends Ke{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,n,r)=>!!(2048&this.optionFlags)&&(this.raise(T.InvalidDigit,et(e,t,n),{radix:r}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(T.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(T.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(T.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(T.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,n)=>{this.recordStrictModeErrors(T.StrictNumericEscape,et(e,t,n))},unterminated:(e,t,n)=>{throw this.raise(T.UnterminatedString,et(e-1,t,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(T.StrictNumericEscape),unterminated:(e,t,n)=>{throw this.raise(T.UnterminatedTemplate,et(e,t,n))}}),this.state=new $e,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 nt(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 _e.lastIndex=e,_e.test(this.input)?_e.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 Ne.lastIndex=e,Ne.test(this.input)?Ne.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 n=this.input.charCodeAt(e);56320==(64512&n)&&(t=65536+((1023&t)<<10)+(1023&n))}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 n=this.state.pos,r=this.input.indexOf(e,n+2);if(-1===r)throw this.raise(T.UnterminatedComment,this.state.curPosition());for(this.state.pos=r+e.length,Pe.lastIndex=n+2;Pe.test(this.input)&&Pe.lastIndex<=r;)++this.state.curLine,this.state.lineStart=Pe.lastIndex;if(this.isLookahead)return;const s={type:"CommentBlock",value:this.input.slice(n+2,r),start:this.sourceToOffsetPos(n),end:this.sourceToOffsetPos(r+e.length),loc:new i(t,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(s),s}skipLineComment(e){const t=this.state.pos;let n;this.isLookahead||(n=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,o={type:"CommentLine",value:this.input.slice(t+e,s),start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(s),loc:new i(n,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(o),o}skipSpace(){const e=this.state.pos,t=4096&this.optionFlags?[]:null;e:for(;this.state.pos<this.length;){const n=this.input.charCodeAt(this.state.pos);switch(n){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(Oe(n))++this.state.pos;else if(45===n&&!this.inModule&&8192&this.optionFlags){const n=this.state.pos;if(45!==this.input.charCodeAt(n+1)||62!==this.input.charCodeAt(n+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!==n||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 n=this.state.pos,r={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(n),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 n=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(n)}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(T.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?T.RecordExpressionHashIncorrectStartSyntaxType:T.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else oe(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 n=this.input.slice(t+2,this.state.pos);return this.finishToken(28,n),!0}readToken_mult_modulo(e){let t=42===e?55:54,n=1,r=this.input.charCodeAt(this.state.pos+1);42===e&&42===r&&(n++,r=this.input.charCodeAt(this.state.pos+2),t=57),61!==r||this.state.inType||(n++,t=37===e?33:30),this.finishOp(t,n)}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(T.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(T.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(T.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(T.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(oe(e))return void this.readWord(e)}throw this.raise(T.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){const n=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,n)}readRegexp(){const e=this.state.startLoc,t=this.state.start+1;let n,r,{pos:i}=this.state;for(;;++i){if(i>=this.length)throw this.raise(T.UnterminatedRegExp,s(e,1));const t=this.input.charCodeAt(i);if(Ie(t))throw this.raise(T.UnterminatedRegExp,s(e,1));if(n)n=!1;else{if(91===t)r=!0;else if(93===t&&r)r=!1;else if(47===t&&!r)break;n=92===t}}const o=this.input.slice(t,i);++i;let a="";const l=()=>s(e,i+2-t);for(;i<this.length;){const e=this.codePointAtPos(i),t=String.fromCharCode(e);if(tt.has(e))118===e?a.includes("u")&&this.raise(T.IncompatibleRegExpUVFlags,l()):117===e&&a.includes("v")&&this.raise(T.IncompatibleRegExpUVFlags,l()),a.includes(t)&&this.raise(T.DuplicateRegExpFlags,l());else{if(!ae(e)&&92!==e)break;this.raise(T.MalformedRegExpFlags,l())}++i,a+=t}this.state.pos=i,this.finishToken(138,{pattern:o,flags:a})}readInt(e,t,n=!1,r=!0){const{n:i,pos:s}=Ze(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,n,r,this.errorHandlers_readInt,!1);return this.state.pos=s,i}readRadixNumber(e){const t=this.state.pos,n=this.state.curPosition();let r=!1;this.state.pos+=2;const i=this.readInt(e);null==i&&this.raise(T.InvalidDigit,s(n,2),{radix:e});const o=this.input.charCodeAt(this.state.pos);if(110===o)++this.state.pos,r=!0;else if(109===o)throw this.raise(T.InvalidDecimal,n);if(oe(this.codePointAtPos(this.state.pos)))throw this.raise(T.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,i)}readNumber(e){const t=this.state.pos,n=this.state.curPosition();let r=!1,i=!1,o=!1,a=!1;e||null!==this.readInt(10)||this.raise(T.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(T.StrictOctalLiteral,n),!this.state.strict){const t=e.indexOf("_");t>0&&this.raise(T.ZeroDigitNumericSeparator,s(n,t))}a=l&&!/[89]/.test(e)}let c=this.input.charCodeAt(this.state.pos);if(46!==c||a||(++this.state.pos,this.readInt(10),r=!0,c=this.input.charCodeAt(this.state.pos)),69!==c&&101!==c||a||(c=this.input.charCodeAt(++this.state.pos),43!==c&&45!==c||++this.state.pos,null===this.readInt(10)&&this.raise(T.InvalidOrMissingExponent,n),r=!0,o=!0,c=this.input.charCodeAt(this.state.pos)),110===c&&((r||l)&&this.raise(T.InvalidBigIntLiteral,n),++this.state.pos,i=!0),109===c){this.expectPlugin("decimal",this.state.curPosition()),(o||l)&&this.raise(T.InvalidDecimal,n),++this.state.pos;var p=!0}if(oe(this.codePointAtPos(this.state.pos)))throw this.raise(T.NumberIdentifier,this.state.curPosition());const u=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(i)return void this.finishToken(136,u);if(p)return void this.finishToken(137,u);const h=a?parseInt(u,8):parseFloat(u);this.finishToken(135,h)}readCodePoint(e){const{code:t,pos:n}=Qe(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=n,t}readString(e){const{str:t,pos:n,curLine:r,lineStart:i}=He(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=i,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:n,pos:i,curLine:s,lineStart:o}=He("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=o,this.state.curLine=s,n&&(this.state.firstInvalidTemplateEscapePos=new r(n.curLine,n.pos-n.lineStart,this.sourceToOffsetPos(n.pos))),96===this.input.codePointAt(i)?this.finishToken(24,n?null:e+t+"`"):(this.state.pos++,this.finishToken(25,n?null:e+t+"${"))}recordStrictModeErrors(e,t){const n=t.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(e,t):this.state.strictErrors.set(n,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="";const n=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(ae(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(),i=this.state.pos===n?oe:ae;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(T.MissingUnicodeEscape,this.state.curPosition()),r=this.state.pos-1;continue}++this.state.pos;const s=this.readCodePoint(!0);null!==s&&(i(s)||this.raise(T.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),n=N.get(t);void 0!==n?this.finishToken(n,X(n)):this.finishToken(132,t)}checkKeywordEscapes(){const{type:e}=this.state;H(e)&&this.state.containsEsc&&this.raise(T.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:X(e)})}raise(e,t,n={}){const i=e(t instanceof r?t:t.loc.start,n);if(!(2048&this.optionFlags))throw i;return this.isLookahead||this.state.errors.push(i),i}raiseOverwrite(e,t,n={}){const i=t instanceof r?t:t.loc.start,s=i.index,o=this.state.errors;for(let t=o.length-1;t>=0;t--){const r=o[t];if(r.loc.index===s)return o[t]=e(i,n);if(r.loc.index<s)break}return this.raise(e,t,n)}updateContext(e){}unexpected(e,t){throw this.raise(T.UnexpectedToken,null!=e?e:this.state.startLoc,{expected:t?X(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(T.MissingPlugin,null!=t?t:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some((e=>this.hasPlugin(e))))throw this.raise(T.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,n,r)=>{this.raise(e,et(t,n,r))}}}class it{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 it)}exit(){const e=this.stack.pop(),t=this.current();for(const[n,r]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(n)||t.undefinedPrivateNames.set(n,r):this.parser.raise(T.InvalidPrivateFieldResolution,r,{identifierName:n})}declarePrivateName(e,t,n){const{privateNames:r,loneAccessors:i,undefinedPrivateNames:s}=this.current();let o=r.has(e);if(3&t){const n=o&&i.get(e);n?(o=(3&n)==(3&t)||(4&n)!=(4&t),o||i.delete(e)):o||i.set(e,t)}o&&this.parser.raise(T.PrivateNameRedeclaration,n,{identifierName:e}),r.add(e),s.delete(e)}usePrivateName(e,t){let n;for(n of this.stack)if(n.privateNames.has(e))return;n?n.undefinedPrivateNames.set(e,t):this.parser.raise(T.InvalidPrivateFieldResolution,t,{identifierName:e})}}class ot{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class at extends ot{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){const n=t.index;this.declarationErrors.set(n,[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 ot],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const n=t.loc.start,{stack:r}=this;let i=r.length-1,s=r[i];for(;!s.isCertainlyParameterDeclaration();){if(!s.canBeArrowParameterDeclaration())return;s.recordDeclarationError(e,n),s=r[--i]}this.parser.raise(e,n)}recordArrowParameterBindingError(e,t){const{stack:n}=this,r=n[n.length-1],i=t.loc.start;if(r.isCertainlyParameterDeclaration())this.parser.raise(e,i);else{if(!r.canBeArrowParameterDeclaration())return;r.recordDeclarationError(e,i)}}recordAsyncArrowParametersError(e){const{stack:t}=this;let n=t.length-1,r=t[n];for(;r.canBeArrowParameterDeclaration();)2===r.type&&r.recordDeclarationError(T.AwaitBindingIdentifier,e),r=t[--n]}validateAsPattern(){const{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors((([t,n])=>{this.parser.raise(t,n);let r=e.length-2,i=e[r];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(n.index),i=e[--r]}))}}function ct(){return new ot}class pt extends rt{addExtra(e,t,n,r=!0){if(!e)return;let{extra:i}=e;null==i&&(i={},e.extra=i),r?i[t]=n:Object.defineProperty(i,t,{enumerable:r,value:n})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){if(this.input.startsWith(t,e)){const n=this.input.charCodeAt(e+t.length);return!(ae(n)||55296==(64512&n))}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(T.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){const n={node:null};try{const r=e(((e=null)=>{throw n.node=e,n}));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===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:r};throw e}}checkExpressionErrors(e,t){if(!e)return!1;const{shorthandAssignLoc:n,doubleProtoLoc:r,privateKeyLoc:i,optionalParametersLoc:s,voidPatternLoc:o}=e;if(!t)return!!(n||r||s||i||o);null!=n&&this.raise(T.InvalidCoverInitializedName,n),null!=r&&this.raise(T.DuplicateProto,r),null!=i&&this.raise(T.UnexpectedPrivateField,i),null!=s&&this.unexpected(s),null!=o&&this.raise(T.InvalidCoverDiscardElement,o)}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 n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const r=this.inModule;this.inModule=e;const i=this.scope,s=this.getScopeHandler();this.scope=new s(this,e);const o=this.prodParam;this.prodParam=new Fe;const a=this.classScope;this.classScope=new st(this);const l=this.expressionScope;return this.expressionScope=new lt(this),()=>{this.state.labels=t,this.exportedIdentifiers=n,this.inModule=r,this.scope=i,this.prodParam=o,this.classScope=a,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 n=t?514:1;4&this.optionFlags&&(n|=512),this.scope.enter(n)}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,n){this.type="",this.start=t,this.end=0,this.loc=new i(n),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 n=0,r=t.length;n<r;n++){const r=t[n];"leadingComments"!==r&&"trailingComments"!==r&&"innerComments"!==r&&(e[r]=this[r])}return e};class ft extends pt{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,n){return e.type=t,e.end=n.index,e.loc.end=n,128&this.optionFlags&&(e.range[1]=n.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:n,end:r,loc:i,range:s,name:o}=e,a=Object.create(dt);return a.type=t,a.start=n,a.end=r,a.loc=i,a.range=s,a.name=o,e.extra&&(a.extra=e.extra),a}cloneStringLiteral(e){const{type:t,start:n,end:r,loc:i,range:s,extra:o}=e,a=Object.create(dt);return a.type=t,a.start=n,a.end=r,a.loc=i,a.range=s,a.extra=o,a.value=e.value,a}}const mt=e=>"ParenthesizedExpression"===e.type?mt(e.expression):e;class yt extends ft{toAssignable(e,t=!1){var n,r;let i;switch(("ParenthesizedExpression"===e.type||null!=(n=e.extra)&&n.parenthesized)&&(i=mt(e),t?"Identifier"===i.type?this.expressionScope.recordArrowParameterBindingError(T.InvalidParenthesizedAssignment,e):"MemberExpression"===i.type||this.isOptionalMemberExpression(i)||this.raise(T.InvalidParenthesizedAssignment,e):this.raise(T.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 n=0,r=e.properties.length,i=r-1;n<r;n++){var s;const r=e.properties[n],o=n===i;this.toAssignableObjectExpressionProp(r,o,t),o&&"RestElement"===r.type&&null!=(s=e.extra)&&s.trailingCommaLoc&&this.raise(T.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.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(T.MissingEqInAssignment,e.left.loc.end),this.castNodeTo(e,"AssignmentPattern"),delete e.operator,"VoidPattern"===e.left.type&&this.raise(T.VoidPatternInitializer,e.left),this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(i,t)}}toAssignableObjectExpressionProp(e,t,n){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?T.PatternHasAccessor:T.PatternHasMethod,e.key);else if("SpreadElement"===e.type){this.castNodeTo(e,"RestElement");const r=e.argument;this.checkToRestConversion(r,!1),this.toAssignable(r,n),t||this.raise(T.RestTrailingComma,e)}else this.toAssignable(e,n)}toAssignableList(e,t,n){const r=e.length-1;for(let i=0;i<=r;i++){const s=e[i];s&&(this.toAssignableListItem(e,i,n),"RestElement"===s.type&&(i<r?this.raise(T.RestTrailingComma,s):t&&this.raise(T.RestTrailingComma,t)))}}toAssignableListItem(e,t,n){const r=e[t];if("SpreadElement"===r.type){this.castNodeTo(r,"RestElement");const e=r.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,n)}else this.toAssignable(r,n)}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,n)=>"ObjectMethod"!==e.type&&(n===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(T.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,n){const r=1&n,i=[];let s=!0;for(;!this.eat(e);)if(s?s=!1:this.expect(12),r&&this.match(12))i.push(null);else{if(this.eat(e))break;if(this.match(21)){let r=this.parseRestBinding();if((this.hasPlugin("flow")||2&n)&&(r=this.parseFunctionParamType(r)),i.push(r),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{const e=[];if(2&n)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(T.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());i.push(this.parseBindingElement(n,e))}}return i}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(T.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 n=this.startNode();return 139===e?(this.expectPlugin("destructuringPrivate",t),this.classScope.usePrivateName(this.state.value,t),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,t,!1,!1,!0,!1)}parseBindingElement(e,t){const n=this.parseMaybeDefault();return(this.hasPlugin("flow")||2&e)&&this.parseFunctionParamType(n),t.length&&(n.decorators=t,this.resetStartLocationFromNode(n,t[0])),this.parseMaybeDefault(n.loc.start,n)}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 n=this.startNodeAt(e);return"VoidPattern"===t.type&&this.raise(T.VoidPatternInitializer,t),n.left=t,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,"AssignmentPattern")}isValidLVal(e,t,n){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,n=64,r=!1,i=!1,s=!1){var o;const a=e.type;if(this.isObjectMethod(e))return;const l=this.isOptionalMemberExpression(e);if(l||"MemberExpression"===a)return l&&(this.expectPlugin("optionalChainingAssign",e.loc.start),"AssignmentExpression"!==t.type&&this.raise(T.InvalidLhsOptionalChaining,e,{ancestor:t})),void(64!==n&&this.raise(T.InvalidPropertyBindingPattern,e));if("Identifier"===a){this.checkIdentifier(e,n,i);const{name:t}=e;return void(r&&(r.has(t)?this.raise(T.ParamDupe,e):r.add(t)))}"VoidPattern"===a&&"CatchClause"===t.type&&this.raise(T.VoidPatternCatchClauseParam,e);const c=this.isValidLVal(a,!(s||null!=(o=e.extra)&&o.parenthesized)&&"AssignmentExpression"===t.type,n);if(!0===c)return;if(!1===c){const r=64===n?T.InvalidLhs:T.InvalidLhsBinding;return void this.raise(r,e,{ancestor:t})}let p,u;"string"==typeof c?(p=c,u="ParenthesizedExpression"===a):[p,u]=c;const h="ArrayPattern"===a||"ObjectPattern"===a?{type:a}:t,d=e[p];if(Array.isArray(d))for(const e of d)e&&this.checkLVal(e,h,n,r,i,u);else d&&this.checkLVal(d,h,n,r,i,u)}checkIdentifier(e,t,n=!1){this.state.strict&&(n?fe(e.name,this.inModule):de(e.name))&&(64===t?this.raise(T.StrictEvalArguments,e,{referenceName:e.name}):this.raise(T.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(T.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(T.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?T.RestTrailingComma:T.ElementAfterRest,this.state.startLoc),!0)}}function gt(e){if(!e)throw new Error("Assert fail")}const Tt=g`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 St(e){return"private"===e||"public"===e||"protected"===e}function bt(e){return"in"===e||"out"===e}function xt(e){if("MemberExpression"!==e.type)return!1;const{computed:t,property:n}=e;return(!t||"StringLiteral"===n.type||!("TemplateLiteral"!==n.type||n.expressions.length>0))&&wt(e.object)}function vt(e,t){var n;const{type:r}=e;if(null!=(n=e.extra)&&n.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!(!Et(e,t)&&!function(e,t){if("UnaryExpression"===e.type){const{operator:n,argument:r}=e;if("-"===n&&Et(r,t))return!0}return!1}(e,t))||"TemplateLiteral"===r&&0===e.expressions.length||!!xt(e)}function Et(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function wt(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&wt(e.object)}const At=g`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),Pt=["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 n=null;try{n=new RegExp(e,t)}catch(e){}const r=this.estreeParseLiteral(n);return r.regex={pattern:e,flags:t},r}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}const n=this.estreeParseLiteral(t);return n.bigint=String(n.value||e),n}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 n=this.startNodeAtNode(e);return n.expression=e,this.finishNodeAt(n,"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 n=this.castNodeTo(e,"ExpressionStatement");return n.expression=t,n.directive=t.extra.rawValue,delete t.extra,n}fillOptionalPropertiesForTSESLint(e){}cloneEstreeStringLiteral(e){const{start:t,end:n,loc:r,range:i,raw:s,value:o}=e,a=Object.create(e.constructor.prototype);return a.type="Literal",a.start=t,a.end=n,a.loc=r,a.range=i,a.raw=s,a.value=o,a}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,n,r,i){super.parseBlockBody(e,t,n,r,i);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 n=super.parseLiteral(e,t);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(e,t,n=!1){super.parseFunctionBody(e,t,n),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,n,r,i,s,o=!1){let a=this.startNode();a.kind=e.kind,a=super.parseMethod(a,t,n,r,i,s,o),delete a.kind;const{typeParameters:l}=e;l&&(delete e.typeParameters,a.typeParameters=l,this.resetStartLocationFromNode(a,l));const c=this.castNodeTo(a,"FunctionExpression");return e.value=c,"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,n,r){const i=super.parseObjectProperty(e,t,n,r);return i&&(i.kind="init",this.castNodeTo(i,"Property")),i}finishObjectProperty(e){return e.kind="init",this.finishNode(e,"Property")}isValidLVal(e,t,n){return"Property"===e?"value":super.isValidLVal(e,t,n)}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:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,n){"Property"!==e.type||"get"!==e.kind&&"set"!==e.kind?"Property"===e.type&&e.method?this.raise(T.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,n):this.raise(T.PatternHasAccessor,e.key)}finishCallExpression(e,t){const n=super.finishCallExpression(e,t);var r,i;return"Import"===n.callee.type?(this.castNodeTo(n,"ImportExpression"),n.source=n.arguments[0],n.options=null!=(r=n.arguments[1])?r:null,n.attributes=null!=(i=n.arguments[1])?i:null,delete n.arguments,delete n.callee):"OptionalCallExpression"===n.type?this.castNodeTo(n,"CallExpression"):n.optional=!1,n}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,t){const n=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 i;const{declaration:e}=r;"ClassDeclaration"===(null==e?void 0:e.type)&&(null==(i=e.decorators)?void 0:i.length)>0&&e.start===r.start&&this.resetStartLocation(r,n)}}return r}stopParseSubscript(e,t){const n=super.stopParseSubscript(e,t);return t.optionalChainMember?this.estreeParseChainExpression(n,e.loc.end):n}parseMember(e,t,n,r,i){const s=super.parseMember(e,t,n,r,i);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 n=super.castNodeTo(e,t);return this.fillOptionalPropertiesForTSESLint(n),n}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,n){return x(super.finishNodeAt(e,t,n))}finishNode(e,t){const n=super.finishNode(e,t);return this.fillOptionalPropertiesForTSESLint(n),n}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(ke.UnterminatedJsxContent,this.state.startLoc);const n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:return this.state.pos===this.state.start?void(60===n&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(n)):(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(n)?(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 n;return++this.state.pos,13===t&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,n=e?"\n":"\r\n"):n=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(e){let t="",n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(T.UnterminatedString,this.state.startLoc);const r=this.input.charCodeAt(this.state.pos);if(r===e)break;38===r?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):Ie(r)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}t+=this.input.slice(n,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,n=!1;for(;t++<10&&this.state.pos<this.length&&!(n=59===this.codePointAtPos(this.state.pos));)++this.state.pos;if(n){const t=this.input.slice(e,this.state.pos),n=Ae[t];if(++this.state.pos,n)return n}}return this.state.pos=e,"&"}jsxReadWord(){let e;const t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(ae(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:H(this.state.type)?e.name=X(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 n=this.startNodeAt(e);return n.namespace=t,n.name=this.jsxParseIdentifier(),this.finishNode(n,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.startLoc;let t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(16);){const n=this.startNodeAt(e);n.object=t,n.property=this.jsxParseIdentifier(),t=this.finishNode(n,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(E.brace),this.next(),e=this.jsxParseExpressionContainer(e,E.j_oTag),"JSXEmptyExpression"===e.expression.type&&this.raise(ke.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(ke.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(E.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(E.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(E.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),n=[],r=this.jsxParseOpeningElementAt(e);let i=null;if(!r.selfClosing){e:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(e);break e}n.push(this.jsxParseElementAt(e));break;case 142:n.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const e=this.startNode();this.setContext(E.brace),this.next(),this.match(21)?n.push(this.jsxParseSpreadChild(e)):n.push(this.jsxParseExpressionContainer(e,E.j_expr));break}default:this.unexpected()}Me(r)&&!Me(i)&&null!==i?this.raise(ke.MissingClosingTagFragment,i):!Me(r)&&Me(i)?this.raise(ke.MissingClosingTagElement,i,{openingTagName:Le(r.name)}):Me(r)||Me(i)||Le(i.name)!==Le(r.name)&&this.raise(ke.MissingClosingTagElement,i,{openingTagName:Le(r.name)})}if(Me(r)?(t.openingFragment=r,t.closingFragment=i):(t.openingElement=r,t.closingElement=i),t.children=n,this.match(47))throw this.raise(ke.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!==E.j_expr){if(t===E.j_oTag||t===E.j_cTag){if(oe(e))return void this.jsxReadWord();if(62===e)return++this.state.pos,void this.finishToken(144);if((34===e||39===e)&&t===E.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:n}=this.state;if(56===n&&143===e)t.splice(-2,2,E.j_cTag),this.state.canStartJSXElement=!1;else if(143===n)t.push(E.j_oTag);else if(144===n){const n=t[t.length-1];n===E.j_oTag&&56===e||n===E.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===E.j_expr):(this.setContext(E.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=F[n]}},flow:e=>class extends e{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return Se}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=we.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 n=this.flowParseType();return this.state.inType=t,n}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,n=null;return this.match(54)?(this.state.inType=e,n=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(n=this.flowParsePredicate())),[t,n]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier(),n=this.startNode(),r=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);const i=this.flowParseFunctionTypeParams();return n.params=i.params,n.rest=i.rest,n.this=i._this,this.expect(11),[n.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(n,"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(),n=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)),n.push(e)}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");let r=null,i=!1;return n.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&&(i&&this.raise(xe.DuplicateDeclareModuleExports,e),"ES"===r&&this.raise(xe.AmbiguousDeclareModuleKind,e),r="CommonJS",i=!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:Ee[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,n){be.has(e)&&this.raise(n?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,n=this.startNode(),r=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return n.name=i.name,n.variance=r,n.bound=i.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):e&&this.raise(xe.MissingTypeParamDefault,t),this.finishNode(n,"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 n=!1;do{const e=this.flowParseTypeParameter(n);t.params.push(e),e.default&&(n=!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()===E.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()!==E.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,n){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=n,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 n=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(n),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:n,allowProto:r,allowInexact:i}){const s=this.state.inType;this.state.inType=!0;const o=this.startNode();let a,l;o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let c=!1;for(t&&this.match(6)?(this.expect(6),a=9,l=!0):(this.expect(5),a=8,l=!1),o.exact=l;!this.match(a);){let t=!1,s=null,a=null;const p=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),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(p,t))):o.indexers.push(this.flowParseObjectTypeIndexer(p,t,u));else if(this.match(10)||this.match(47))null!=s&&this.unexpected(s),u&&this.unexpected(u.loc.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(p,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(p,t,s,u,e,n,null!=i?i:!l);null===r?(c=!0,a=this.state.lastTokStartLoc):o.properties.push(r)}this.flowObjectTypeSemicolon(),!a||this.match(8)||this.match(9)||this.raise(xe.UnexpectedExplicitInexactInObject,a)}this.expect(a),n&&(o.inexact=c);const p=this.finishNode(o,"ObjectTypeAnnotation");return this.state.inType=s,p}flowParseObjectTypeProperty(e,t,n,r,i,s,o){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(s?o||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!=n&&this.unexpected(n),r&&this.raise(xe.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=n,e.kind=i;let o=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=n&&this.unexpected(n),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),"get"!==i&&"set"!==i||this.flowCheckGetterSetterParams(e),!s&&"constructor"===e.key.name&&e.value.this&&this.raise(xe.ThisParamBannedInConstructor,e.value.this)):("init"!==i&&this.unexpected(),e.method=!1,this.eat(17)&&(o=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=o,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t="get"===e.kind?0:1,n=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?xe.GetterMayNotHaveThisParam:xe.SetterMayNotHaveThisParam,e.value.this),n!==t&&this.raise("get"===e.kind?T.BadGetterArity:T.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(T.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 n=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const t=this.startNodeAt(e);t.qualification=n,t.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(t,"QualifiedTypeIdentifier")}return n}flowParseGenericType(e,t){const n=this.startNodeAt(e);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"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,n=!1,r=null;const i=this.startNode(),s=this.lookahead(),o=78===this.state.type;return 14===s.type||17===s.type?(o&&!e&&this.raise(xe.ThisParamMustBeFirst,i),t=this.parseIdentifier(o),this.eat(17)&&(n=!0,o&&this.raise(xe.ThisParamMayNotBeOptional,i)),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),i.name=t,i.optional=n,i.typeAnnotation=r,this.finishNode(i,"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,n=null;for(this.match(78)&&(n=this.flowParseFunctionTypeParam(!0),n.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:n}}flowIdentToTypeAnnotation(e,t,n){switch(n.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(n.name),this.flowParseGenericType(e,n)}}flowParsePrimaryType(){const e=this.state.startLoc,t=this.startNode();let n,r,i=!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),n=this.flowParseFunctionTypeParams(),e.params=n.params,e.rest=n.rest,e.this=n._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(K(this.state.type)||this.match(78)){const e=this.lookahead().type;i=17!==e&&14!==e}else i=!0;if(i){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 n=r?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]):this.flowParseFunctionTypeParams(),e.params=n.params,e.rest=n.rest,e.this=n._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(H(this.state.type)){const e=X(this.state.type);return this.next(),super.createIdentifier(t,e)}if(K(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(),n=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const r=this.startNodeAt(e),i=this.eat(18);n=n||i,this.expect(0),!i&&this.match(3)?(r.elementType=t,this.next(),t=this.finishNode(r,"ArrayTypeAnnotation")):(r.objectType=t,r.indexType=this.flowParseType(),this.expect(3),n?(r.optional=i,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,n=!1){t?this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,!0,n))):super.parseFunctionBody(e,!1,n)}parseFunctionBodyAndFinish(e,t,n=!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,n)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if($(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,n){if("Identifier"===t.type)if("declare"===t.name){if(this.match(80)||K(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(K(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,n)}shouldParseExportDeclaration(){const{type:e}=this.state;return 126===e||J(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:e}=this.state;return 126===e||J(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,n){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(n),e}this.expect(17);const r=this.state.clone(),i=this.state.noArrowAt,s=this.startNodeAt(t);let{consequent:o,failed:a}=this.tryParseConditionalConsequent(),[l,c]=this.getArrowLikeExpressions(o);if(a||c.length>0){const e=[...i];if(c.length>0){this.state=r,this.state.noArrowAt=e;for(let t=0;t<c.length;t++)e.push(c[t].start);({consequent:o,failed:a}=this.tryParseConditionalConsequent()),[l,c]=this.getArrowLikeExpressions(o)}a&&l.length>1&&this.raise(xe.AmbiguousConditionalArrow,r.startLoc),a&&1===l.length&&(this.state=r,e.push(l[0].start),this.state.noArrowAt=e,({consequent:o,failed:a}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(o,!0),this.state.noArrowAt=i,this.expect(14),s.test=e,s.consequent=o,s.alternate=this.forwardNoArrowParamsConversionAt(s,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(s,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const n=[e],r=[];for(;0!==n.length;){const e=n.pop();"ArrowFunctionExpression"===e.type&&"BlockStatement"!==e.body.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):r.push(e),n.push(e.body)):"ConditionalExpression"===e.type&&(n.push(e.consequent),n.push(e.alternate))}return t?(r.forEach((e=>this.finishArrowValidation(e))),[r,[]]):function(e,t){const n=[],r=[];for(let i=0;i<e.length;i++)(t(e[i])?n:r).push(e[i]);return[n,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 n;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),n=t(),this.state.noArrowParamsConversionAt.pop()):n=t(),n}parseParenItem(e,t){const n=super.parseParenItem(e,t);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){const e=this.startNodeAt(t);return e.expression=n,e.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(e,"TypeCastExpression")}return n}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,n=super.maybeParseExportNamespaceSpecifier(e);return n&&"type"===e.exportKind&&this.unexpected(t),n}parseClassId(e,t,n){super.parseClassId(e,t,n),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,n){const{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,n),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(T.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,n){return 64===e&&64===t&&oe(n)}(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,n){for(let t=0;t<e.length;t++){const n=e[t];"TypeCastExpression"===(null==n?void 0:n.type)&&(e[t]=this.typeCastToParameter(n))}super.toAssignableList(e,t,n)}toReferencedList(e,t){for(let r=0;r<e.length;r++){var n;const i=e[r];!i||"TypeCastExpression"!==i.type||null!=(n=i.extra)&&n.parenthesized||!(e.length>1)&&t||this.raise(xe.TypeCastInPattern,i.typeAnnotation)}return e}parseArrayLike(e,t,n,r){const i=super.parseArrayLike(e,t,n,r);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}isValidLVal(e,t,n){return"TypeCastExpression"===e||super.isValidLVal(e,t,n)}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,n,r,i,s){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,n,r,i,s),t.params&&i){const e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(xe.ThisParamBannedInConstructor,t)}else if("MethodDefinition"===t.type&&i&&t.value.params){const e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(xe.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,n,r){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,n,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 n=t[0];this.isThisParam(n)&&"get"===e.kind?this.raise(xe.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(xe.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,n,r,i,s,o){let a;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!s&&(a=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const l=super.parseObjPropValue(e,t,n,r,i,s,o);return a&&((l.value||l).typeParameters=a),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 n=super.parseMaybeDefault(e,t);return"AssignmentPattern"===n.type&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(xe.TypeBeforeInitializer,n.typeAnnotation),n}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(xe.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,n){t.local=ve(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}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,n,r){if(super.applyImportPhase(e,t,n,r),t){if(!n&&this.match(65))return;e.exportKind="type"===n?n:"value"}else"type"===n&&this.match(55)&&this.unexpected(),e.importKind="type"===n||"typeof"===n?n:"value"}parseImportSpecifier(e,t,n,r,i){const s=e.imported;let o=null;"Identifier"===s.type&&("type"===s.name?o="type":"typeof"===s.name&&(o="typeof"));let a=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const t=this.parseIdentifier(!0);null===o||$(this.state.type)?(e.imported=s,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=t,e.importKind=o,e.local=this.cloneIdentifier(t))}else{if(null!==o&&$(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=o;else{if(t)throw this.raise(T.ImportBindingIsString,e,{importName:s.value});e.imported=s,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(a=!0,e.local=this.cloneIdentifier(e.imported))}const l=ve(e);return n&&l&&this.raise(xe.ImportTypeShorthandOnlyInPureImport,e),(n||l)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),!a||n||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 n=e.kind;"get"!==n&&"set"!==n&&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 n;let r,i=null;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(i=this.state.clone(),r=this.tryParse((()=>super.parseMaybeAssign(e,t)),i),!r.error)return r.node;const{context:n}=this.state,s=n[n.length-1];s!==E.j_oTag&&s!==E.j_expr||n.pop()}if(null!=(n=r)&&n.error||this.match(47)){var s,o;let n;i=i||this.state.clone();const a=this.tryParse((r=>{var i;n=this.flowParseTypeParameterDeclaration();const s=this.forwardNoArrowParamsConversionAt(n,(()=>{const r=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(r,n),r}));null!=(i=s.extra)&&i.parenthesized&&r();const o=this.maybeUnwrapTypeCastExpression(s);return"ArrowFunctionExpression"!==o.type&&r(),o.typeParameters=n,this.resetStartLocationFromNode(o,n),s}),i);let l=null;if(a.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(a.node).type){if(!a.error&&!a.aborted)return a.node.async&&this.raise(xe.UnexpectedTypeParameterBeforeAsyncArrowFunction,n),a.node;l=a.node}if(null!=(s=r)&&s.node)return this.state=r.failState,r.node;if(l)return this.state=a.failState,l;if(null!=(o=r)&&o.thrown)throw r.error;if(a.thrown)throw a.error;throw this.raise(xe.UnexpectedTokenAfterTypeParameter,n)}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 n=this.startNode();return[n.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n}));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,n,r=!0){if(!n||!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,n,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,t,n){if("Identifier"===e.type&&"async"===e.name&&this.state.noArrowAt.includes(t.index)){this.next();const n=this.startNodeAt(t);n.callee=e,n.arguments=super.parseCallExpressionArguments(),e=this.finishNode(n,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){const r=this.state.clone(),i=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t)||e()),r);if(!i.error&&!i.aborted)return i.node;const s=this.tryParse((()=>super.parseSubscripts(e,t,n)),r);if(s.node&&!s.error)return s.node;if(i.node)return this.state=i.failState,i.node;if(s.node)return this.state=s.failState,s.node;throw i.error||s.error}return super.parseSubscripts(e,t,n)}parseSubscript(e,t,n,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,n)return r.stop=!0,e;this.next();const i=this.startNodeAt(t);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),i.arguments=this.parseCallExpressionArguments(),i.optional=!0,this.finishCallExpression(i,!0)}if(!n&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){const n=this.startNodeAt(t);n.callee=e;const i=this.tryParse((()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(),r.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,r.optionalChainMember))));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(e,t,n,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 n=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(xe.UnterminatedFlowComment,this.state.curPosition()),n}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 n=this.input.charCodeAt(t+e),r=this.input.charCodeAt(t+e+1);return 58===n&&58===r?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===n&&58!==r&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(T.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:n}){this.raise(xe.EnumBooleanMemberNotInitialized,e,{memberName:n,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 n=this.parseNumericLiteral(this.state.value);return t()?{type:"number",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}case 134:{const n=this.parseStringLiteral(this.state.value);return t()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}case 85:case 86:{const n=this.parseBooleanLiteral(this.match(85));return t()?{type:"boolean",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){const e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,n){const{explicitType:r}=t;null!==r&&r!==n&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){const n=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let i=!1;for(;!this.match(8);){if(this.eat(21)){i=!0;break}const s=this.startNode(),{id:o,init:a}=this.flowEnumMemberRaw(),l=o.name;if(""===l)continue;/^[a-z]/.test(l)&&this.raise(xe.EnumInvalidMemberName,o,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:e}),n.has(l)&&this.raise(xe.EnumDuplicateMemberName,o,{memberName:l,enumName:e}),n.add(l);const c={enumName:e,explicitType:t,memberName:l};switch(s.id=o,a.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(a.loc,c,"boolean"),s.init=a.value,r.booleanMembers.push(this.finishNode(s,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(a.loc,c,"number"),s.init=a.value,r.numberMembers.push(this.finishNode(s,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(a.loc,c,"string"),s.init=a.value,r.stringMembers.push(this.finishNode(s,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(a.loc,c);case"none":switch(t){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(a.loc,c);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(a.loc,c);break;default:r.defaultedMembers.push(this.finishNode(s,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:i}}flowEnumStringMembers(e,t,{enumName:n}){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:n});return t}for(const e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:n});return e}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!K(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 n=t.name,r=t.loc.start,i=this.flowEnumParseExplicitType({enumName:n});this.expect(5);const{members:s,hasUnknownMembers:o}=this.flowEnumMembers({enumName:n,explicitType:i});switch(e.hasUnknownMembers=o,i){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:n}),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 i=s.booleanMembers.length,o=s.numberMembers.length,a=s.stringMembers.length,l=s.defaultedMembers.length;if(i||o||a||l){if(i||o){if(!o&&!a&&i>=l){for(const e of s.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=s.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!i&&!a&&o>=l){for(const e of s.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=s.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(xe.EnumInconsistentMemberValues,r,{enumName:n}),t()}return e.members=this.flowEnumStringMembers(s.stringMembers,s.defaultedMembers,{enumName:n}),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:Tt.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Tt.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Tt.InvalidModifierOnTypeParameter})}getScopeHandler(){return Be}tsIsIdentifier(){return K(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,n){if(!K(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;const r=this.state.value;if(e.includes(r)){if(n&&this.match(106))return;if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return r}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOfClassStaticBlock:n,errorTemplate:r=Tt.InvalidModifierOnTypeMember},i){const s=(e,t,n,r)=>{t===n&&i[r]&&this.raise(Tt.InvalidModifiersOrder,e,{orderedModifiers:[n,r]})},o=(e,t,n,r)=>{(i[n]&&t===r||i[r]&&t===n)&&this.raise(Tt.IncompatibleModifiers,e,{modifiers:[n,r]})};for(;;){const{startLoc:a}=this.state,l=this.tsParseModifier(e.concat(null!=t?t:[]),n,i.static);if(!l)break;St(l)?i.accessibility?this.raise(Tt.DuplicateAccessibilityModifier,a,{modifier:l}):(s(a,l,l,"override"),s(a,l,l,"static"),s(a,l,l,"readonly"),i.accessibility=l):bt(l)?(i[l]&&this.raise(Tt.DuplicateModifier,a,{modifier:l}),i[l]=!0,s(a,l,"in","out")):(hasOwnProperty.call(i,l)?this.raise(Tt.DuplicateModifier,a,{modifier:l}):(s(a,l,"static","readonly"),s(a,l,"static","override"),s(a,l,"override","readonly"),s(a,l,"abstract","override"),o(a,l,"declare","override"),o(a,l,"static","abstract")),i[l]=!0),null!=t&&t.includes(l)&&this.raise(r,a,{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 n=[];for(;!this.tsIsListTerminator(e);)n.push(t());return n}tsParseDelimitedList(e,t,n){return function(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}(this.tsParseDelimitedListWorker(e,t,!0,n))}tsParseDelimitedListWorker(e,t,n,r){const i=[];let s=-1;for(;!this.tsIsListTerminator(e);){s=-1;const r=t();if(null==r)return;if(i.push(r),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(n&&this.expect(12))}s=this.state.lastTokStartLoc.index}return r&&(r.value=s),i}tsParseBracketedList(e,t,n,r,i){r||(n?this.expect(0):this.expect(47));const s=this.tsParseDelimitedList(e,t,i);return n?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(Tt.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;K(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 n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdentifier(!!(1&e)),t=this.finishNode(n,"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 n={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,n),0===t.params.length&&this.raise(Tt.EmptyTypeParameters,t),-1!==n.value&&this.addExtra(t,"trailingComma",n.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){const n=19===e;t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(n||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(Tt.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(),!!K(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 n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),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(Tt.ReadonlyForMethodSignature,e);const n=e;n.kind&&this.match(47)&&this.raise(Tt.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();const r="parameters",i="typeAnnotation";if("get"===n.kind)n[r].length>0&&(this.raise(T.BadGetterArity,this.state.curPosition()),this.isThisParam(n[r][0])&&this.raise(Tt.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===n.kind){if(1!==n[r].length)this.raise(T.BadSetterArity,this.state.curPosition());else{const e=n[r][0];this.isThisParam(e)&&this.raise(Tt.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===e.type&&e.optional&&this.raise(Tt.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===e.type&&this.raise(Tt.SetAccessorCannotHaveRestParameter,this.state.curPosition())}n[i]&&this.raise(Tt.SetAccessorCannotHaveReturnType,n[i])}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}{const n=e;t&&(n.readonly=!0);const r=this.tsTryParseTypeAnnotation();return r&&(n.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(n,"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:n}=e;!t||"TSRestType"===n||"TSOptionalType"===n||"TSNamedTupleMember"===n&&e.optional||this.raise(Tt.OptionalTypeBeforeRequired,e),t||(t="TSNamedTupleMember"===n&&e.optional||"TSOptionalType"===n)})),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const e=this.state.startLoc,t=this.eat(21),{startLoc:n}=this.state;let r,i,s,o;const a=$(this.state.type)?this.lookaheadCharCode():null;if(58===a)r=!0,s=!1,i=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(63===a){s=!0;const e=this.state.value,t=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(r=!0,i=this.createIdentifier(this.startNodeAt(n),e),this.expect(17),this.expect(14),o=this.tsParseType()):(r=!1,o=t,this.expect(17))}else o=this.tsParseType(),s=this.eat(17),r=this.eat(14);if(r){let e;i?(e=this.startNodeAt(n),e.optional=s,e.label=i,e.elementType=o,this.eat(17)&&(e.optional=!0,this.raise(Tt.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAt(n),e.optional=s,this.raise(Tt.InvalidTupleMemberLabel,o),e.label=o,e.elementType=this.tsParseType()),o=this.finishNode(e,"TSNamedTupleMember")}else if(s){const e=this.startNodeAt(n);e.typeAnnotation=o,o=this.finishNode(e,"TSOptionalType")}if(t){const t=this.startNodeAt(e);t.typeAnnotation=o,o=this.finishNode(t,"TSRestType")}return o}tsParseParenthesizedType(){const e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){const n=this.startNode();return"TSConstructorType"===e&&(n.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,n))),this.finishNode(n,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(K(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 n=this.startNodeAt(e);n.elementType=t,this.expect(3),t=this.finishNode(n,"TSArrayType")}else{const n=this.startNodeAt(e);n.objectType=t,n.indexType=this.tsParseType(),this.expect(3),t=this.finishNode(n,"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(Tt.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,n){const r=this.startNode(),i=this.eat(n),s=[];do{s.push(t())}while(this.eat(n));return 1!==s.length||i?(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(K(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 n=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(n.parameterName=e,n.asserts=!0,n.typeAnnotation=null,e=this.finishNode(n,"TSTypePredicate")):(this.resetStartLocationFromNode(e,n),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}const i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return r?(n.parameterName=this.parseIdentifier(),n.asserts=r,n.typeAnnotation=null,t.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);const s=this.tsParseTypeAnnotation(!1);return n.parameterName=i,n.typeAnnotation=s,n.asserts=r,t.typeAnnotation=this.finishNode(n,"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(),!(!K(this.state.type)&&!this.match(78)||(e&&this.raise(T.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(){gt(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(Tt.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,n=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 n.length||this.raise(Tt.EmptyHeritageClauseType,t,{token:e}),n}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),K(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(Tt.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));const n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(n,"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()===E.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,n){e.isExport=n||!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(Tt.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(),n=e();return this.state=t,n}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(),n=e();if(void 0!==n&&!1!==n)return n;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(Tt.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.parseVarStatement(e,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(Tt.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(K(t))return this.tsParseDeclaration(e,this.state.value,!0,null)}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,t,n){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 n=e;return n.kind="global",e.global=!0,n.id=t,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1,n)}}tsParseDeclaration(e,t,n,r){switch(t){case"abstract":if(this.tsCheckLineTerminator(n)&&(this.match(80)||K(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case"module":if(this.tsCheckLineTerminator(n)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(K(this.state.type))return e.kind="module",this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(n)&&K(this.state.type))return e.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(n)&&K(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 n=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,n?super.parseArrowExpression(n,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(Tt.EmptyTypeArguments,e):this.state.inType||this.curContext()!==E.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 n=t.length?t[0].loc.start:this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},r);const i=r.accessibility,s=r.override,o=r.readonly;4&e||!(i||o||s)||this.raise(Tt.UnexpectedParameterModifier,n);const a=this.parseMaybeDefault();2&e&&this.parseFunctionParamType(a);const l=this.parseMaybeDefault(a.loc.start,a);if(i||o||s){const e=this.startNodeAt(n);return t.length&&(e.decorators=t),i&&(e.accessibility=i),o&&(e.readonly=o),s&&(e.override=s),"Identifier"!==l.type&&"AssignmentPattern"!==l.type&&this.raise(Tt.UnsupportedParameterPropertyKind,e),e.parameter=l,this.finishNode(e,"TSParameterProperty")}return t.length&&(a.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(Tt.PatternIsOptional,t)}setArrowFunctionParameters(e,t,n){super.setArrowFunctionParameters(e,t,n),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,n=!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(Tt.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,r,n):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,n))}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(Tt.UnexpectedTypeAnnotation,e.typeAnnotation)}))}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,n,r){const i=super.parseArrayLike(e,t,n,r);return"ArrayExpression"===i.type&&this.tsCheckForInvalidTypeCasts(i.elements),i}parseSubscript(e,t,n,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const n=this.startNodeAt(t);return n.expression=e,this.finishNode(n,"TSNonNullExpression")}let i=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(n)return r.stop=!0,e;r.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let s;const o=this.tsTryParseAndCatch((()=>{if(!n&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return r.stop=!0,e}const o=this.tsParseTypeArgumentsInExpression();if(!o)return;if(i&&!this.match(10))return void(s=this.state.curPosition());if(G(this.state.type)){const n=super.parseTaggedTemplateExpression(e,t,r);return n.typeParameters=o,n}if(!n&&this.eat(10)){const n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(n.arguments),n.typeParameters=o,r.optionalChainMember&&(n.optional=i),this.finishCallExpression(n,r.optionalChainMember)}const a=this.state.type;if(48===a||52===a||10!==a&&z(a)&&!this.hasPrecedingLineBreak())return;const l=this.startNodeAt(t);return l.expression=e,l.typeParameters=o,this.finishNode(l,"TSInstantiationExpression")}));if(s&&this.unexpected(s,10),o)return"TSInstantiationExpression"===o.type&&((this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(Tt.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),this.match(16)||this.match(18)||(o.expression=super.stopParseSubscript(e,r))),o}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){var t;super.parseNewCallee(e);const{callee:n}=e;"TSInstantiationExpression"!==n.type||null!=(t=n.extra)&&t.parenthesized||(e.typeParameters=n.typeParameters,e.callee=n.expression)}parseExprOp(e,t,n){let r;if(W(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(120)))){const i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?(r&&this.raise(T.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()))),this.finishNode(i,r?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,t,n)}return super.parseExprOp(e,t,n)}checkReservedWord(e,t,n,r){this.state.isAmbientContext||super.checkReservedWord(e,t,n,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(Tt.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,n,r){super.applyImportPhase(e,t,n,r),t?e.exportKind="type"===n?"type":"value":e.importKind="type"===n||"typeof"===n?n:"value"}parseImport(e){if(this.match(134))return e.importKind="value",super.parseImport(e);let t;if(K(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){const n=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,n);t=super.parseImportSpecifiersAndAfter(e,n)}else t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(Tt.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){const t=e;this.next();let n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(t,!1):t.importKind="value",this.tsParseImportEqualsDeclaration(t,n,!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,n=!1){const{isAmbientContext:r}=this.state,i=super.parseVarStatement(e,t,n||r);if(!r)return i;if(!e.declare&&("using"===t||"await using"===t))return this.raiseOverwrite(Tt.UsingDeclarationInAmbientContext,e,t),i;for(const{id:e,init:n}of i.declarations)n&&("var"===t||"let"===t||e.typeAnnotation?this.raise(Tt.InitializerNotAllowedInAmbientContext,n):vt(n,this.hasPlugin("estree"))||this.raise(Tt.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,n));return i}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=>St(t)?e.accessibility===t:!!e[t]))}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(e,t,n){const r=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Tt.InvalidModifierOnTypeParameterPositions},t);const i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,r)&&this.raise(Tt.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,n,!!t.static)};t.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(e,t,n,r){const i=this.tsTryParseIndexSignature(t);if(i)return e.body.push(i),t.abstract&&this.raise(Tt.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(Tt.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(Tt.IndexSignatureHasDeclare,t),void(t.override&&this.raise(Tt.IndexSignatureHasOverride,t));!this.state.inAbstractClass&&t.abstract&&this.raise(Tt.NonAbstractClassHasAbstractMethod,t),t.override&&(n.hadSuperClass||this.raise(Tt.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,n,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(Tt.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(Tt.ClassMethodHasDeclare,e)}parseExpressionStatement(e,t,n){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t,n):void 0)||super.parseExpressionStatement(e,t,n)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,n){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(n),e}return super.parseConditional(e,t,n)}parseParenItem(e,t){const n=super.parseParenItem(e,t);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){const n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext((()=>this.parseExportDeclaration(e)));const t=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(Tt.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const r=K(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return r?(("TSInterfaceDeclaration"===r.type||"TSTypeAliasDeclaration"===r.type||n)&&(e.exportKind="type"),n&&"TSImportEqualsDeclaration"!==r.type&&(this.resetStartLocation(r,t),r.declare=!0),r):null}parseClassId(e,t,n,r){if((!t||n)&&this.isContextual(113))return;super.parseClassId(e,t,n,e.declare?1024:8331);const i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(e.typeParameters=i)}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(Tt.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){const{key:t}=e;this.raise(Tt.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(Tt.PrivateElementHasAbstract,e),e.accessibility&&this.raise(Tt.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(Tt.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,n,r,i,s){const o=this.tsTryParseTypeParameters(this.tsParseConstModifier);o&&i&&this.raise(Tt.ConstructorHasTypeParameters,o);const{declare:a=!1,kind:l}=t;!a||"get"!==l&&"set"!==l||this.raise(Tt.DeclareAccessor,t,{kind:l}),o&&(t.typeParameters=o),super.pushClassMethod(e,t,n,r,i,s)}pushClassPrivateMethod(e,t,n,r){const i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,n,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,n,r,i,s,o){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);return a&&(e.typeParameters=a),super.parseObjPropValue(e,t,n,r,i,s,o)}parseFunctionParams(e,t){const n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(e.typeParameters=n),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);const n=this.tsTryParseTypeAnnotation();n&&(e.id.typeAnnotation=n,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var n,r,i,s,o;let a,l,c,p;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(a=this.state.clone(),l=this.tryParse((()=>super.parseMaybeAssign(e,t)),a),!l.error)return l.node;const{context:n}=this.state,r=n[n.length-1];r!==E.j_oTag&&r!==E.j_expr||n.pop()}if(!(null!=(n=l)&&n.error||this.match(47)))return super.parseMaybeAssign(e,t);a&&a!==this.state||(a=this.state.clone());const u=this.tryParse((n=>{var r,i;p=this.tsParseTypeParameters(this.tsParseConstModifier);const s=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==s.type||null!=(r=s.extra)&&r.parenthesized)&&n(),0!==(null==(i=p)?void 0:i.params.length)&&this.resetStartLocationFromNode(s,p),s.typeParameters=p,s}),a);if(!u.error&&!u.aborted)return p&&this.reportReservedArrowTypeParam(p),u.node;if(!l&&(gt(!this.hasPlugin("jsx")),c=this.tryParse((()=>super.parseMaybeAssign(e,t)),a),!c.error))return c.node;if(null!=(r=l)&&r.node)return this.state=l.failState,l.node;if(u.node)return this.state=u.failState,p&&this.reportReservedArrowTypeParam(p),u.node;if(null!=(i=c)&&i.node)return this.state=c.failState,c.node;throw(null==(s=l)?void 0:s.error)||u.error||(null==(o=c)?void 0:o.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(Tt.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(Tt.UnexpectedTypeCastInParameter,e):this.raise(Tt.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,n){switch(e){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(64!==n||!t)&&["expression",!0];default:return super.isValidLVal(e,t,n)}}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e,t){if(this.match(47)||this.match(51)){const n=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const r=super.parseMaybeDecoratorArguments(e,t);return r.typeParameters=n,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 n=super.parseMaybeDefault(e,t);return"AssignmentPattern"===n.type&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(Tt.TypeAnnotationAfterAssign,n.typeAnnotation),n}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,n){const r=e[t];"TSTypeCastExpression"===r.type&&(e[t]=this.typeCastToParameter(r)),super.toAssignableListItem(e,t,n)}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),n=this.getObjectOrClassMethodParams(e)[0];return n&&this.isThisParam(n)?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:n}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=t,this.state.strict=n}}parseClass(e,t,n){const r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,n)}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(Tt.NonClassMethodPropertyHasAbstractModifier,e),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,t,n,r,i,s,o){const a=super.parseMethod(e,t,n,r,i,s,o);if((a.abstract||"TSAbstractMethodDefinition"===a.type)&&(this.hasPlugin("estree")?a.value:a).body){const{key:e}=a;this.raise(Tt.AbstractMethodHasImplementation,a,{methodName:"Identifier"!==e.type||a.computed?`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`:e.name})}return a}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,n,r){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,n),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,n,r))}parseImportSpecifier(e,t,n,r,i){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,n),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,n,r,n?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,n){const r=t?"imported":"local",i=t?"local":"exported";let s,o=e[r],a=!1,l=!0;const c=o.loc.start;if(this.isContextual(93)){const e=this.parseIdentifier();if(this.isContextual(93)){const n=this.parseIdentifier();$(this.state.type)?(a=!0,o=e,s=t?this.parseIdentifier():this.parseModuleExportName(),l=!1):(s=n,l=!1)}else $(this.state.type)?(l=!1,s=t?this.parseIdentifier():this.parseModuleExportName()):(a=!0,o=e)}else $(this.state.type)&&(a=!0,t?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());a&&n&&this.raise(t?Tt.TypeModifierIsUsedInTypeImports:Tt.TypeModifierIsUsedInTypeExports,c),e[r]=o,e[i]=s,e[t?"importKind":"exportKind"]=a?"type":"value",l&&this.eatContextual(93)&&(e[i]=t?this.parseIdentifier():this.parseModuleExportName()),e[i]||(e[i]=this.cloneIdentifier(e[r])),t&&this.checkIdentifier(e[i],a?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(),K(this.state.type)){const e=this.parseIdentifierName(),n=this.createIdentifier(t,e);if(this.castNodeTo(n,"V8IntrinsicIdentifier"),this.match(10))return n}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 n=e;return n.expectedNode&&n.type||(n=this.finishNode(n,"Placeholder")),n.expectedNode=t,n}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,n,r){void 0!==e&&super.checkReservedWord(e,t,n,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,n){return"Placeholder"===e||super.isValidLVal(e,t,n)}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 n=this.nextTokenStart();return 37===this.input.charCodeAt(n)&&37===this.input.charCodeAt(n+1)}verifyBreakContinue(e,t){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var n;if("Placeholder"!==t.type||null!=(n=t.extra)&&n.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){const n=e;return n.label=this.finishPlaceholder(t,"Identifier"),this.next(),n.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(n,"LabeledStatement")}this.semicolon();const r=e;return r.name=t.name,this.finishPlaceholder(r,"Statement")}parseBlock(e,t,n){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,n)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,n){const r=t?"ClassDeclaration":"ClassExpression";this.next();const i=this.state.strict,s=this.parsePlaceholder("Identifier");if(s){if(!(this.match(81)||this.match(133)||this.match(5))){if(n||!t)return e.id=null,e.body=this.finishPlaceholder(s,"ClassBody"),this.finishNode(e,r);throw this.raise(At.ClassNameIsRequired,this.state.startLoc)}e.id=s}else this.parseClassId(e,t,n);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,i),this.finishNode(e,r)}parseExport(e,t){const n=this.parsePlaceholder("Identifier");if(!n)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(n,"Declaration"),this.finishNode(r,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const i=this.startNode();return i.exported=n,r.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],super.parseExport(r,t)}isExportDefaultSpecifier(){if(this.match(65)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(X(133),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var n;return!(null==(n=e.specifiers)||!n.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 n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishNode(n,"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(At.UnexpectedSpace,this.state.lastTokEndLoc)}}},_t=Object.keys(Ct);class Nt extends yt{checkProto(e,t,n,r){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return n;const i=e.key;return"__proto__"===("Identifier"===i.type?i.name:i.value)?t?(this.raise(T.RecordNoProto,i),!0):(n&&(r?null===r.doubleProtoLoc&&(r.doubleProtoLoc=i.loc.start):this.raise(T.DuplicateProto,i)),!0):n}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&this.offsetToSourcePos(e.start)===t}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(T.ParseExpressionEmptyInput,this.state.startLoc);const e=this.parseExpression();if(!this.match(140))throw this.raise(T.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,n=this.parseMaybeAssign(e);if(this.match(12)){const r=this.startNodeAt(t);for(r.expressions=[n];this.eat(12);)r.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(r.expressions),this.finishNode(r,"SequenceExpression")}return n}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 n=this.state.startLoc,r=this.isContextual(108);if(r&&this.prodParam.hasYield){this.next();let e=this.parseYield(n);return t&&(e=t.call(this,e,n)),e}let i;e?i=!1:(e=new ut,i=!0);const{type:s}=this.state;(10===s||K(s))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(e);if(t&&(o=t.call(this,o,n)),(a=this.state.type)>=29&&a<=33){const t=this.startNodeAt(n),r=this.state.value;if(t.operator=r,this.match(29)){this.toAssignable(o,!0),t.left=o;const r=n.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=o;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(t,"AssignmentExpression")),t}var a;if(i&&this.checkExpressionErrors(e,!0),r){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?z(e):z(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(T.YieldNotInGeneratorFunction,n),this.parseYield(n)}return o}parseMaybeConditional(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprOps(e);return this.shouldExitDescending(r,n)?r:this.parseConditional(r,t,e)}parseConditional(e,t,n){if(this.eat(17)){const n=this.startNodeAt(t);return n.test=e,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),n.alternate=this.parseMaybeAssign(),this.finishNode(n,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(r,n)?r:this.parseExprOp(r,t,-1)}parseExprOp(e,t,n){if(this.isPrivateName(e)){const t=this.getPrivateNameSV(e);(n>=W(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(T.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}const r=this.state.type;if((i=r)>=39&&i<=59&&(this.prodParam.hasIn||!this.match(58))){let i=W(r);if(i>n){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 o=41===r||42===r,a=40===r;if(a&&(i=W(42)),this.next(),39===r&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(T.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);s.right=this.parseExprOpRightExpr(r,i);const l=this.finishNode(s,o||a?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(a&&(41===c||42===c)||o&&40===c)throw this.raise(T.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,t,n)}}var i;return e}parseExprOpRightExpr(e,t){const n=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(T.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),n)}))}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){const n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,57===e?t-1:t)}parseHackPipeBody(){var e;const{startLoc:t}=this.state,n=this.parseMaybeAssign();return!h.has(n.type)||null!=(e=n.extra)&&e.parenthesized||this.raise(T.PipeUnparenthesizedBody,t,{type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(T.PipeTopicUnused,t),n}checkExponentialAfterUnary(e){this.match(57)&&this.raise(T.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){const n=this.state.startLoc,r=this.isContextual(96);if(r&&this.recordAwaitIfAllowed()){this.next();const e=this.parseAwait(n);return t||this.checkExponentialAfterUnary(e),e}const i=this.match(34),s=this.startNode();if(o=this.state.type,j[o]){s.operator=this.state.value,s.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const n=this.match(89);if(this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&n){const e=s.argument;"Identifier"===e.type?this.raise(T.StrictDelete,s):this.hasPropertyAsPrivateName(e)&&this.raise(T.DeletePrivateField,s)}if(!i)return t||this.checkExponentialAfterUnary(s),this.finishNode(s,"UnaryExpression")}var o;const a=this.parseUpdate(s,i,e);if(r){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?z(e):z(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(T.AwaitNotInAsyncContext,n),this.parseAwait(n)}return a}parseUpdate(e,t,n){if(t){const t=e;return this.checkLVal(t.argument,this.finishNode(t,"UpdateExpression")),e}const r=this.state.startLoc;let i=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return i;for(;34===this.state.type&&!this.canInsertSemicolon();){const e=this.startNodeAt(r);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.next(),this.checkLVal(i,i=this.finishNode(e,"UpdateExpression"))}return i}parseExprSubscripts(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprAtom(e);return this.shouldExitDescending(r,n)?r:this.parseSubscripts(r,t)}parseSubscripts(e,t,n){const r={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,n,r),r.maybeAsyncArrow=!1}while(!r.stop);return e}parseSubscript(e,t,n,r){const{type:i}=this.state;if(!n&&15===i)return this.parseBind(e,t,n,r);if(G(i))return this.parseTaggedTemplateExpression(e,t,r);let s=!1;if(18===i){if(n&&(this.raise(T.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return this.stopParseSubscript(e,r);r.optionalChainMember=s=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,r,s);{const n=this.eat(0);return n||s||this.eat(16)?this.parseMember(e,t,r,n,s):this.stopParseSubscript(e,r)}}stopParseSubscript(e,t){return t.stop=!0,e}parseMember(e,t,n,r,i){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(T.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),n.optionalChainMember?(s.optional=i,this.finishNode(s,"OptionalMemberExpression")):this.finishNode(s,"MemberExpression")}parseBind(e,t,n,r){const i=this.startNodeAt(t);return i.object=e,this.next(),i.callee=this.parseNoCallExpr(),r.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),t,n)}parseCoverCallAndAsyncArrowHead(e,t,n,r){const i=this.state.maybeInArrowParameters;let s=null;this.state.maybeInArrowParameters=!0,this.next();const o=this.startNodeAt(t);o.callee=e;const{maybeAsyncArrow:a,optionalChainMember:l}=n;a&&(this.expressionScope.enter(new at(2)),s=new ut),l&&(o.optional=r),o.arguments=r?this.parseCallExpressionArguments():this.parseCallExpressionArguments("Super"!==e.type,o,s);let c=this.finishCallExpression(o,l);return a&&this.shouldParseAsyncArrow()&&!r?(n.stop=!0,this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),c)):(a&&(this.checkExpressionErrors(s,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=i,c}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,n){const r=this.startNodeAt(t);return r.tag=e,r.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(T.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(T.ImportCallArity,e);else for(const t of e.arguments)"SpreadElement"===t.type&&this.raise(T.ImportCallSpreadArgument,t);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,n){const r=[];let i=!0;const s=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(i)i=!1;else if(this.expect(12),this.match(11)){t&&this.addTrailingCommaExtraToNode(t),this.next();break}r.push(this.parseExprListItem(11,!1,n,e))}return this.state.inFSharpPipelineDirectBody=s,r}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var n;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(n=t.extra)?void 0:n.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,n=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(T.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:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,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(T.UnsupportedBind,e)}case 139:return this.raise(T.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());oe(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(K(r)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();const e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,n=this.parseIdentifier();if(!t&&"async"===n.name&&!this.canInsertSemicolon()){const{type:e}=this.state;if(68===e)return this.resetPreviousNodeTrailingComments(n),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(n));if(K(e))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(n)):n;if(90===e)return this.resetPreviousNodeTrailingComments(n),this.parseDo(this.startNodeAtNode(n),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(n),[n],!1)):n}this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){const n=this.getPluginOption("pipelineOperator","proposal");if(n)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(n);this.unexpected()}parseTopicReference(e){const t=this.startNode(),n=this.state.startLoc,r=this.state.type;return this.next(),this.finishTopicReference(t,n,e,r)}finishTopicReference(e,t,n,r){if(this.testTopicReferenceConfiguration(n,t,r))return"hack"===n?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(T.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(T.PrimaryTopicNotAllowed,t),this.registerTopicReference(),this.finishNode(e,"PipelinePrimaryTopicReference"));throw this.raise(T.PipeTopicUnconfiguredToken,t,{token:X(r)})}testTopicReferenceConfiguration(e,t,n){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:X(n)}]);case"smart":return 27===n;default:throw this.raise(T.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(Re(!0,this.prodParam.hasYield));const t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(T.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 n=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=n,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(T.UnexpectedSuper,e):this.raise(T.SuperNotAllowed,e),this.match(10)||this.match(0)||this.match(16)||this.raise(T.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){const e=this.startNode(),t=this.startNodeAt(s(this.state.startLoc,1)),n=this.state.value;return this.next(),e.id=this.createIdentifier(t,n),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,n){e.meta=t;const r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==n||r)&&this.raise(T.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:n}),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(T.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,"meta")}}parseLiteralAtNode(e,t,n){return this.addExtra(n,"rawValue",e),this.addExtra(n,"raw",this.input.slice(this.offsetToSourcePos(n.start),this.state.end)),n.value=e,this.next(),this.finishNode(n,t)}parseLiteral(e,t){const n=this.startNode();return this.parseLiteralAtNode(e,t,n)}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 n;this.next(),this.expressionScope.enter(new at(1));const r=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const s=this.state.startLoc,o=[],a=new ut;let l,c,p=!0;for(;!this.match(11);){if(p)p=!1;else if(this.expect(12,null===a.optionalParametersLoc?null:a.optionalParametersLoc),this.match(11)){c=this.state.startLoc;break}if(this.match(21)){const e=this.state.startLoc;if(l=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowInOrVoidPattern(11,a,this.parseParenItem))}const u=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=r,this.state.inFSharpPipelineDirectBody=i;let h=this.startNodeAt(t);return e&&this.shouldParseArrow(o)&&(h=this.parseArrow(h))?(this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(h,o,!1),h):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),c&&this.unexpected(c),l&&this.unexpected(l),this.checkExpressionErrors(a,!0),this.toReferencedListDeep(o,!0),o.length>1?(n=this.startNodeAt(s),n.expressions=o,this.finishNode(n,"SequenceExpression"),this.resetEndLocation(n,u)):n=o[0],this.wrapParenthesis(t,n))}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 n=this.startNodeAt(e);return n.expression=t,this.finishNode(n,"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 n=this.parseMetaProperty(e,t,"target");return this.scope.allowNewTarget||this.raise(T.UnexpectedNewTarget,n),n}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),n=this.parseNoCallExpr();e.callee=n,!t||"Import"!==n.type&&"ImportExpression"!==n.type||this.raise(T.ImportCallNotNewExpression,n)}parseTemplateElement(e){const{start:t,startLoc:n,end:r,value:i}=this.state,o=t+1,a=this.startNodeAt(s(n,1));null===i&&(e||this.raise(T.InvalidEscapeSequenceTemplate,s(this.state.firstInvalidTemplateEscapePos,1)));const l=this.match(24),c=l?-1:-2,p=r+c;a.value={raw:this.input.slice(o,p).replace(/\r\n?/g,"\n"),cooked:null===i?null:i.slice(1,c)},a.tail=l,this.next();const u=this.finishNode(a,"TemplateElement");return this.resetEndLocation(u,s(this.state.lastTokEndLoc,c)),u}parseTemplate(e){const t=this.startNode();let n=this.parseTemplateElement(e);const r=[n],i=[];for(;!n.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),r.push(n=this.parseTemplateElement(e));return t.expressions=i,t.quasis=r,this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,n,r){n&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let s=!1,o=!0;const a=this.startNode();for(a.properties=[],this.next();!this.match(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(a);break}let i;t?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(r),s=this.checkProto(i,n,s,r)),n&&!this.isObjectProperty(i)&&"SpreadElement"!==i.type&&this.raise(T.InvalidRecordProperty,i),i.shorthand&&this.addExtra(i,"shorthand",!0),a.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let l="ObjectExpression";return t?l="ObjectPattern":n&&(l="RecordExpression"),this.finishNode(a,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(T.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());const n=this.startNode();let r,i=!1,s=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(n.decorators=t,t=[]),n.method=!1,e&&(r=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(n);const a=this.state.containsEsc;if(this.parsePropertyName(n,e),!o&&!a&&this.maybeAsyncOrAccessorProp(n)){const{key:e}=n,t=e.name;"async"!==t||this.hasPrecedingLineBreak()||(i=!0,this.resetPreviousNodeTrailingComments(e),o=this.eat(55),this.parsePropertyName(n)),"get"!==t&&"set"!==t||(s=!0,this.resetPreviousNodeTrailingComments(e),n.kind=t,this.match(55)&&(o=!0,this.raise(T.AccessorIsGenerator,this.state.curPosition(),{kind:t}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,r,o,i,!1,s,e)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const n=this.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e);r.length!==n&&this.raise("get"===e.kind?T.BadGetterArity:T.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=r[r.length-1])?void 0:t.type)&&this.raise(T.BadSetterRestParameter,e)}parseObjectMethod(e,t,n,r,i){if(i){const n=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(n||t||this.match(10))return r&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,n,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,n,r){if(e.shorthand=!1,this.eat(14))return e.value=n?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),n)e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key));else if(this.match(29)){const n=this.state.startLoc;null!=r?null===r.shorthandAssignLoc&&(r.shorthandAssignLoc=n):this.raise(T.InvalidCoverInitializedName,n),e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,t,n,r,i,s,o){const a=this.parseObjectMethod(e,n,r,i,s)||this.parseObjectProperty(e,t,i,o);return a||this.unexpected(),a}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:n,value:r}=this.state;let i;if($(n))i=this.parseIdentifier(!0);else switch(n){case 135:i=this.parseNumericLiteral(r);break;case 134:i=this.parseStringLiteral(r);break;case 136:i=this.parseBigIntLiteral(r);break;case 139:{const e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(T.UnexpectedPrivateField,e),i=this.parsePrivateName();break}default:if(137===n){i=this.parseDecimalLiteral(r);break}this.unexpected()}e.key=i,139!==n&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,n,r,i,s,o=!1){this.initFunction(e,n),e.generator=t,this.scope.enter(530|(o?576:0)|(i?32:0)),this.prodParam.enter(Re(n,e.generator)),this.parseFunctionParams(e,r);const a=this.parseFunctionBodyAndFinish(e,s,!0);return this.prodParam.exit(),this.scope.exit(),a}parseArrayLike(e,t,n,r){n&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const s=this.startNode();return this.next(),s.elements=this.parseExprList(e,!n,r,s),this.state.inFSharpPipelineDirectBody=i,this.finishNode(s,n?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,n,r){this.scope.enter(518);let i=Re(n,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(e,n);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,n){this.toAssignableList(t,n,!1),e.params=t}parseFunctionBodyAndFinish(e,t,n=!1){return this.parseFunctionBody(e,!1,n),this.finishNode(e,t)}parseFunctionBody(e,t,n=!1){const r=t&&!this.match(5);if(this.expressionScope.enter(ct()),r)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{const r=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,(i=>{const s=!this.isSimpleParamList(e.params);i&&s&&this.raise(T.IllegalLanguageModeDirective,"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end);const o=!r&&this.state.strict;this.checkParams(e,!(this.state.strict||t||n||s),t,o),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,o)})),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let t=0,n=e.length;t<n;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,n,r=!0){const i=!t&&new Set,s={type:"FormalParameters"};for(const t of e.params)this.checkLVal(t,s,5,i,r)}parseExprList(e,t,n,r){const i=[];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}i.push(this.parseExprListItem(e,t,n))}return i}parseExprListItem(e,t,n,r){let i;if(this.match(12))t||this.raise(T.UnexpectedToken,this.state.curPosition(),{unexpected:","}),i=null;else if(this.match(21)){const e=this.state.startLoc;i=this.parseParenItem(this.parseSpread(n),e)}else if(this.match(17)){this.expectPlugin("partialApplication"),r||this.raise(T.UnexpectedArgumentPlaceholder,this.state.startLoc);const e=this.startNode();this.next(),i=this.finishNode(e,"ArgumentPlaceholder")}else i=this.parseMaybeAssignAllowInOrVoidPattern(e,n,this.parseParenItem);return i}parseIdentifier(e){const t=this.startNode(),n=this.parseIdentifierName(e);return this.createIdentifier(t,n)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}createIdentifierAt(e,t,n){return e.name=t,e.loc.identifierName=t,this.finishNodeAt(e,"Identifier",n)}parseIdentifierName(e){let t;const{startLoc:n,type:r}=this.state;$(r)?t=this.state.value:this.unexpected();const i=r<=92;return e?i&&this.replaceToken(132):this.checkReservedWord(t,n,i,!1),this.next(),t}checkReservedWord(e,t,n,r){if(!(e.length>10)&&function(e){return me.has(e)}(e))if(n&&function(e){return le.has(e)}(e))this.raise(T.UnexpectedKeyword,t,{keyword:e});else if((this.state.strict?r?fe:he:ue)(e,this.inModule))this.raise(T.UnexpectedReservedWord,t,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(T.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(T.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(T.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(T.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(T.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(T.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(T.YieldInParameter,t);let n=!1,r=null;if(!this.hasPrecedingLineBreak())switch(n=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!n)break;default:r=this.parseMaybeAssign()}return t.delegate=n,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(T.ImportCallArity,e)}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(T.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){const n=this.startNodeAt(t);return n.callee=e,this.finishNode(n,"PipelineBareFunction")}{const n=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),n.expression=e,this.finishNode(n,"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(T.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(T.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 n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const r=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=n,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 n=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{n()}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,n){if(null!=t&&this.match(88)){const n=this.lookaheadCharCode();if(44===n||n===(3===e?93:8===e?125:41)||61===n)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(t))}return this.parseMaybeAssignAllowIn(t,n)}parsePropertyNamePrefixOperator(e){}}const Ot={kind:1},kt={kind:2},Mt=/[\uD800-\uDFFF]/u,Lt=/in(?:stanceof)?/y;class Dt extends Nt{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,n){for(let r=0;r<e.length;r++){const i=e[r],{type:o}=i;if("number"==typeof o){if(139===o){const{loc:t,start:n,value:o,end:a}=i,l=n+1,c=s(t.start,1);e.splice(r,1,new nt({type:Z(27),value:"#",start:n,end:l,startLoc:t.start,endLoc:c}),new nt({type:Z(132),value:o,start:l,end:a,startLoc:c,endLoc:t.end})),r++;continue}if(G(o)){const{loc:a,start:l,value:c,end:p}=i,u=l+1,h=s(a.start,1);let d,f,m,y,g;d=96===t.charCodeAt(l-n)?new nt({type:Z(22),value:"`",start:l,end:u,startLoc:a.start,endLoc:h}):new nt({type:Z(8),value:"}",start:l,end:u,startLoc:a.start,endLoc:h}),24===o?(m=p-1,y=s(a.end,-1),f=null===c?null:c.slice(1,-1),g=new nt({type:Z(22),value:"`",start:m,end:p,startLoc:y,endLoc:a.end})):(m=p-2,y=s(a.end,-2),f=null===c?null:c.slice(1,-2),g=new nt({type:Z(23),value:"${",start:m,end:p,startLoc:y,endLoc:a.end})),e.splice(r,1,d,new nt({type:Z(20),value:f,start:u,end:m,startLoc:h,endLoc:y}),g),r+=2;continue}i.type=Z(o)}}return e}(this.tokens,this.input,this.startIndex)),this.finishNode(e,"File")}parseProgram(e,t,n){if(e.sourceType=n,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(T.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"),n=this.castNodeTo(e.expression,"DirectiveLiteral"),r=n.value,i=this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(n.end)),s=n.value=i.slice(1,-1);return this.addExtra(n,"raw",i),this.addExtra(n,"rawValue",s),this.addExtra(n,"expressionValue",r),t.value=n,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(oe(e)){if(Lt.lastIndex=t,Lt.test(this.input)){const e=this.codePointAtPos(Lt.lastIndex);if(!ae(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 n=this.state.type,r=this.startNode(),i=!!(2&e),s=!!(4&e),o=1&e;switch(n){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?T.StrictFunction:this.options.annexB?T.SloppyFunctionAnnexB:T.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!i&&s);case 80:return i||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()?i?this.recordAwaitIfAllowed()||this.raise(T.AwaitUsingNotInAsyncContext,r):this.raise(T.UnexpectedLexicalDeclaration,r):this.raise(T.UnexpectedUsingDeclaration,r),this.next(),this.parseVarStatement(r,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?i||this.raise(T.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(T.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(!i&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(t,e)&&123!==t)break}}case 75:i||this.raise(T.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||o||this.raise(T.UnexpectedImportExport,this.state.startLoc),this.next(),e=83===n?this.parseImport(r):this.parseExport(r,t),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(T.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!i&&s)}const a=this.state.value,l=this.parseExpression();return K(n)&&"Identifier"===l.type&&this.eat(14)?this.parseLabeledStatement(r,a,l,e):this.parseExpressionStatement(r,l,t)}assertModuleNodeAllowed(e){8&this.optionFlags||this.inModule||this.raise(T.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(e,t,n){var r;return e&&(null!=(r=t.decorators)&&r.length?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(T.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),n&&this.resetStartLocationFromNode(n,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(T.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(T.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 n;if(this.match(10)){const t=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(t,n);const r=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(n,t),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==n&&this.raise(T.DecoratorArgumentsOutsideParentheses,r)}else{for(n=this.parseIdentifier(!1);this.eat(16);){const e=this.startNodeAt(t);e.object=n,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,n=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(n,t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){const n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(),this.toReferencedList(n.arguments),this.finishNode(n,"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 n;for(n=0;n<this.state.labels.length;++n){const r=this.state.labels[n];if(null==e.label||r.name===e.label.name){if(null!=r.kind&&(t||1===r.kind))break;if(e.label&&t)break}}if(n===this.state.labels.length){const n=t?"BreakStatement":"ContinueStatement";this.raise(T.IllegalBreakContinue,e,{type:n})}}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(Ot),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(Ot);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 n=this.isContextual(100);{const r=this.isAwaitUsing(),i=r||this.isForUsing(),s=n&&this.hasFollowingBindingAtom()||i;if(this.match(74)||this.match(75)||s){const n=this.startNode();let s;r?(s="await using",this.recordAwaitIfAllowed()||this.raise(T.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):s=this.state.value,this.next(),this.parseVar(n,!0,s);const o=this.finishNode(n,"VariableDeclaration"),a=this.match(58);return a&&i&&this.raise(T.ForInUsing,o),(a||this.isContextual(102))&&1===o.declarations.length?this.parseForIn(e,o,t):(null!==t&&this.unexpected(t),this.parseFor(e,o))}}const r=this.isContextual(95),i=new ut,s=this.parseExpression(!0,i),o=this.isContextual(102);if(o&&(n&&this.raise(T.ForOfLet,s),null===t&&r&&"Identifier"===s.type&&this.raise(T.ForOfAsync,s)),o||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(s,!0);const n=o?"ForOfStatement":"ForInStatement";return this.checkLVal(s,{type:n}),this.parseForIn(e,s,t)}return this.checkExpressionErrors(i,!0),null!==t&&this.unexpected(t),this.parseFor(e,s)}parseFunctionStatement(e,t,n){return this.next(),this.parseFunction(e,1|(n?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(T.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 n;this.expect(5),this.state.labels.push(kt),this.scope.enter(256);for(let e;!this.match(8);)if(this.match(61)||this.match(65)){const r=this.match(61);n&&this.finishNode(n,"SwitchCase"),t.push(n=this.startNode()),n.consequent=[],this.next(),r?n.test=this.parseExpression():(e&&this.raise(T.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(T.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(T.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,t,n=!1){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Ot),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(T.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,n,r){for(const e of this.state.labels)e.name===t&&this.raise(T.LabelRedeclaration,n,{labelName:t});const i=(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 n=this.state.labels[t];if(n.statementStart!==e.start)break;n.statementStart=this.sourceToOffsetPos(this.state.start),n.kind=i}return this.state.labels.push({name:t,kind:i,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=8&r?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,n){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,n){const r=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,8,n),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,n,r,i){const s=e.body=[],o=e.directives=[];this.parseBlockOrModuleBlockBody(s,t?o:void 0,n,r,i)}parseBlockOrModuleBlockBody(e,t,n,r,i){const s=this.state.strict;let o=!1,a=!1;for(;!this.match(r);){const r=n?this.parseModuleItem():this.parseStatementListItem();if(t&&!a){if(this.isValidDirective(r)){const e=this.stmtToDirective(r);t.push(e),o||"use strict"!==e.value.value||(o=!0,this.setStrict(!0));continue}a=!0,this.state.strictErrors.clear()}e.push(r)}null==i||i.call(this,o),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,n){const r=this.match(58);return this.next(),r?null!==n&&this.unexpected(n):e.await=null!==n,"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(T.ForInOfLoopInitializer,t,{type:r?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(T.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,n,r=!1){const i=e.declarations=[];for(e.kind=n;;){const e=this.startNode();if(this.parseVarId(e,n),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"!==n&&"using"!==n&&"await using"!==n||this.match(58)||this.isContextual(102)||this.raise(T.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n}):this.raise(T.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),i.push(this.finishNode(e,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){const n=this.parseBindingAtom();"using"===t||"await using"===t?"ArrayPattern"!==n.type&&"ObjectPattern"!==n.type||this.raise(T.UsingDeclarationHasBindingPattern,n.loc.start):"VoidPattern"===n.type&&this.raise(T.UnexpectedVoidPattern,n.loc.start),this.checkLVal(n,{type:"VariableDeclarator"},"var"===t?5:8201),e.id=n}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){const n=2&t,r=!!(1&t),i=r&&!(4&t),s=!!(8&t);this.initFunction(e,s),this.match(55)&&(n&&this.raise(T.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),r&&(e.id=this.parseFunctionId(i));const o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(Re(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&&!n&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e}parseFunctionId(e){return e||K(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(new ot(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,n){this.next();const r=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,n),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 n={hadConstructor:!1,hadSuperClass:e};let r=[];const i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);){if(this.eat(13)){if(r.length>0)throw this.raise(T.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(i,e,n),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(T.DecoratorConstructor,e)}})),this.state.strict=t,this.next(),r.length)throw this.raise(T.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(e,t){const n=this.parseIdentifier(!0);if(this.isClassMethod()){const r=t;return r.kind="method",r.computed=!1,r.key=n,r.static=!1,this.pushClassMethod(e,r,!1,!1,!1,!1),!0}if(this.isClassProperty()){const r=t;return r.computed=!1,r.key=n,r.static=!1,e.body.push(this.parseClassProperty(r)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(e,t,n){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,n,r)}parseClassMemberWithIsStatic(e,t,n,r){const i=t,s=t,o=t,a=t,l=t,c=i,p=i;if(t.static=r,this.parsePropertyNamePrefixOperator(t),this.eat(55)){c.kind="method";const t=this.match(139);return this.parseClassElementName(c),this.parsePostMemberNameModifiers(c),t?void this.pushClassPrivateMethod(e,s,!0,!1):(this.isNonstaticConstructor(i)&&this.raise(T.ConstructorIsGenerator,i.key),void this.pushClassMethod(e,i,!0,!1,!1,!1))}const u=!this.state.containsEsc&&K(this.state.type),h=this.parseClassElementName(t),d=u?h.name:null,f=this.isPrivateName(h),m=this.state.startLoc;if(this.parsePostMemberNameModifiers(p),this.isClassMethod()){if(c.kind="method",f)return void this.pushClassPrivateMethod(e,s,!1,!1);const r=this.isNonstaticConstructor(i);let o=!1;r&&(i.kind="constructor",n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(T.DuplicateConstructor,h),r&&this.hasPlugin("typescript")&&t.override&&this.raise(T.OverrideOnConstructor,h),n.hadConstructor=!0,o=n.hadSuperClass),this.pushClassMethod(e,i,!1,!1,r,o)}else if(this.isClassProperty())f?this.pushClassPrivateProperty(e,a):this.pushClassProperty(e,o);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,a):this.pushClassProperty(e,o):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(h);const t=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(e,l,t)}else{this.resetPreviousNodeTrailingComments(h),c.kind=d;const t=this.match(139);this.parseClassElementName(i),t?this.pushClassPrivateMethod(e,s,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(T.ConstructorIsAccessor,i.key),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}else{this.resetPreviousNodeTrailingComments(h);const t=this.eat(55);p.optional&&this.unexpected(m),c.kind="method";const n=this.match(139);this.parseClassElementName(c),this.parsePostMemberNameModifiers(p),n?this.pushClassPrivateMethod(e,s,t,!0):(this.isNonstaticConstructor(i)&&this.raise(T.ConstructorIsAsync,i.key),this.pushClassMethod(e,i,t,!0,!1,!1))}}parseClassElementName(e){const{type:t,value:n}=this.state;if(132!==t&&134!==t||!e.static||"prototype"!==n||this.raise(T.StaticPrototype,this.state.startLoc),139===t){"constructor"===n&&this.raise(T.ConstructorClassPrivateField,this.state.startLoc);const t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){var n;this.scope.enter(720);const r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,"StaticBlock")),null!=(n=t.decorators)&&n.length&&this.raise(T.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(T.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){const n=this.parseClassPrivateProperty(t);e.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(e,t,n){n||t.computed||!this.nameIsConstructor(t.key)||this.raise(T.ConstructorClassField,t.key);const r=this.parseClassAccessorProperty(t);e.body.push(r),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassMethod(e,t,n,r,i,s){e.body.push(this.parseMethod(t,n,r,i,s,"ClassMethod",!0))}pushClassPrivateMethod(e,t,n,r){const i=this.parseMethod(t,n,r,!1,!1,"ClassPrivateMethod",!0);e.body.push(i);const s="get"===i.kind?i.static?6:2:"set"===i.kind?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,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(ct()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,n,r=8331){if(K(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,r);else{if(!n&&t)throw this.raise(T.MissingClassName,this.state.startLoc);e.id=null}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){const n=this.parseMaybeImportPhase(e,!0),r=this.maybeParseExportDefaultSpecifier(e,n),i=!r||this.eat(12),s=i&&this.eatExportStar(e),o=s&&this.maybeParseExportNamespaceSpecifier(e),a=i&&(!o||this.eat(12)),l=r||s;if(s&&!o){if(r&&this.unexpected(),t)throw this.raise(T.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}const c=this.maybeParseExportNamedSpecifiers(e);let p;if(r&&i&&!s&&!c&&this.unexpected(null,5),o&&a&&this.unexpected(null,98),l||c){if(p=!1,t)throw this.raise(T.UnsupportedDecoratorExport,e);this.parseExportFrom(e,l)}else p=this.maybeParseExportDeclaration(e);if(l||c||p){var u;const n=e;if(this.checkExport(n,!0,!1,!!n.source),"ClassDeclaration"===(null==(u=n.declaration)?void 0:u.type))this.maybeTakeDecorators(t,n.declaration,n);else if(t)throw this.raise(T.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(n,"ExportNamedDeclaration")}if(this.eat(65)){const n=e,r=this.parseExportDefaultExpression();if(n.declaration=r,"ClassDeclaration"===r.type)this.maybeTakeDecorators(t,r,n);else if(t)throw this.raise(T.UnsupportedDecoratorExport,e);return this.checkExport(n,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(n,"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 n=t||this.parseIdentifier(!0),r=this.startNodeAtNode(n);return r.exported=n,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var t;null!=(t=e).specifiers||(t.specifiers=[]);const n=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),n.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(n,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){const t=e;t.specifiers||(t.specifiers=[]);const n="type"===t.exportKind;return t.specifiers.push(...this.parseExportSpecifiers(n)),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(T.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(T.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(K(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(),n=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||K(this.state.type)&&n)return!0;if(this.match(65)&&n){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(T.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()||this.isAwaitUsing()?(this.raise(T.UsingDeclarationExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}checkExport(e,t,n,r){var i;if(t)if(n){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(T.ExportDefaultFromAsIdentifier,t)}}else if(null!=(i=e.specifiers)&&i.length)for(const t of e.specifiers){const{exported:e}=t,n="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,n),!r&&t.local){const{local:e}=t;"Identifier"!==e.type?this.raise(T.ExportBindingIsString,t,{localName:e.value,exportName:n}):(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:n}=t;if(!n)throw new Error("Assertion failure");this.checkDuplicateExports(e,n.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(T.DuplicateDefaultExport,e):this.raise(T.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){const t=[];let n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;const r=this.isContextual(130),i=this.match(134),s=this.startNode();s.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(s,i,e,r))}return t}parseExportSpecifier(e,t,n,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(T.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,n=1===t.length?t[0].type:null;if("source"===e.phase)"ImportDefaultSpecifier"!==n&&this.raise(T.SourcePhaseImportRequiresDefault,t[0].loc.start);else if("defer"===e.phase)"ImportNamespaceSpecifier"!==n&&this.raise(T.DeferImportRequiresNamespace,t[0].loc.start);else if(e.module){var r;"ImportDefaultSpecifier"!==n&&this.raise(T.ImportReflectionNotBinding,t[0].loc.start),(null==(r=e.assertions)?void 0:r.length)>0&&this.raise(T.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(T.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(e,t,n,r){t||("module"===n?(this.expectPlugin("importReflection",r),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===n?(this.expectPlugin("sourcePhaseImports",r),e.phase="source"):"defer"===n?(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 n=this.startNode(),r=this.parseIdentifierName(!0),{type:i}=this.state;return($(i)?98!==i||102===this.lookaheadCharCode():12!==i)?(this.applyImportPhase(e,t,r,n.loc.start),null):(this.applyImportPhase(e,t,null),this.createIdentifier(n,r))}isPrecedingIdImportPhase(e){const{type:t}=this.state;return K(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 n=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),r=n&&this.maybeParseStarImportSpecifier(e);return n&&!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,n){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}finishImportSpecifier(e,t,n=8201){return this.checkLVal(e.local,{type:t},n),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);const e=[],t=new Set;do{if(this.match(8))break;const n=this.startNode(),r=this.state.value;if(t.has(r)&&this.raise(T.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:r}),t.add(r),this.match(134)?n.key=this.parseStringLiteral(r):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(T.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){const e=[],t=new Set;do{const n=this.startNode();if(n.key=this.parseIdentifier(!0),"type"!==n.key.name&&this.raise(T.ModuleAttributeDifferentFromType,n.key),t.has(n.key.name)&&this.raise(T.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),t.add(n.key.name),this.expect(14),!this.match(134))throw this.raise(T.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;var n=!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(),n=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.hasPlugin("importAssertions")||this.raise(T.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),t=this.parseImportAttributes()):t=[];!n&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){const n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishImportSpecifier(n,"ImportDefaultSpecifier")),!0}return!!$(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(T.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const n=this.startNode(),r=this.match(134),i=this.isContextual(130);n.imported=this.parseModuleExportName();const s=this.parseImportSpecifier(n,r,"type"===e.importKind||"typeof"===e.importKind,i,void 0);e.specifiers.push(s)}}parseImportSpecifier(e,t,n,r,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{const{imported:n}=e;if(t)throw this.raise(T.ImportBindingIsString,e,{importName:n.value});this.checkReservedWord(n.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(n))}return this.finishImportSpecifier(e,"ImportSpecifier",i)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}}class Bt extends Dt{constructor(e,t,n){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 n of Object.keys(t))null!=e[n]&&(t[n]=e[n]);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=n,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 ge}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 n of Object.keys(e))t[n]=Z(e[n])}(q);const Ft=new Map;t.YK=function(e,t){const n=function(e,t){let n=Bt;const r=new Map;if(null!=e&&e.plugins){for(const t of e.plugins){let e,n;"string"==typeof t?e=t:[e,n]=t,r.has(e)||r.set(e,n||{})}!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 n=e.get("decorators").allowCallParenthesized;if(null!=n&&"boolean"!=typeof n)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(!Pt.includes(r)){const e=Pt.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 n;if("#"===t&&"hash"===(null==(n=e.get("recordAndTuple"))?void 0:n.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),n=function(e){const t=[];for(const n of _t)e.has(n)&&t.push(n);const n=t.join("|");let r=Ft.get(n);if(!r){r=Bt;for(const e of t)r=Ct[e](r);Ft.set(n,r)}return r}(r)}return new n(e,t,r)}(t,e);return n.options.strictMode&&(n.state.strict=!0),n.getExpression()}},34228:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=n(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 i=n(73019);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var s=n(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 o=n(18744);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 a=n(38118);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 l=n(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 c=n(56049);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 p=n(14058);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 u=n(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=n(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=n(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,n)=>{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 i.PLACEHOLDERS}}),Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return i.PLACEHOLDERS_ALIAS}}),Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return i.PLACEHOLDERS_FLIPPED_ALIAS}}),t.TYPES=void 0,Object.defineProperty(t,"VISITOR_KEYS",{enumerable:!0,get:function(){return r.VISITOR_KEYS}}),n(8925),n(8794),n(57045),n(57350),n(97232),n(48457);var r=n(73261),i=n(85604),s=n(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 n of e){const e=r.FLIPPED_ALIAS_KEYS[n];e?e.forEach(t.add,t):t.add(n)}t.TYPES=[].concat(Object.keys(r.VISITOR_KEYS),Object.keys(r.FLIPPED_ALIAS_KEYS),Object.keys(r.DEPRECATED_KEYS))},35174:(e,t,n)=>{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 n,s="";if((0,r.isObjectProperty)(t,{value:e})?n=i(t):(0,r.isObjectMethod)(e)||(0,r.isClassMethod)(e)?(n=i(e),"get"===e.kind?s="get ":"set"===e.kind&&(s="set ")):(0,r.isVariableDeclarator)(t,{init:e})?n=t.id:(0,r.isAssignmentExpression)(t,{operator:"=",right:e})&&(n=t.left),!n)return null;const o=(0,r.isLiteral)(n)?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}(n):(0,r.isIdentifier)(n)?n.name:(0,r.isPrivateName)(n)?n.id.name:null;return null==o?null:{name:s+o,originalNode:n}};var r=n(63555);function i(e){if(!e.computed||(0,r.isLiteral)(e.key))return e.key}},35228:(e,t,n)=>{var r=n(44775),i=n(25003);function s(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new s(e,t)},s.prototype._createNamed=function(e){var t;try{t=n(49888).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},s.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(r.decoders[e])),this.decoders[e]},s.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},s.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r.encoders[e])),this.encoders[e]},s.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},35693:(e,t,n)=>{function r(e){if(e)throw e}n.d(t,{V:()=>r})},36173:(e,t,n)=>{var r=n(6617),i=/\s+/;t.triggerEvents=function(e,t){var n,r=-1,i=e.length,s=t[0],o=t[1],a=t[2];switch(t.length){case 0:for(;++r<i;)(n=e[r]).callback.call(n.ctx);return;case 1:for(;++r<i;)(n=e[r]).callback.call(n.ctx,s);return;case 2:for(;++r<i;)(n=e[r]).callback.call(n.ctx,s,o);return;case 3:for(;++r<i;)(n=e[r]).callback.call(n.ctx,s,o,a);return;default:for(;++r<i;)(n=e[r]).callback.apply(n.ctx,t);return}},t.eventsApi=function(e,t,n,r){if(!n)return!0;if("object"==typeof n){for(var s in n)e[t].apply(e,[s,n[s]].concat(r));return!1}if(i.test(n)){for(var o=n.split(i),a=0,l=o.length;a<l;a++)e[t].apply(e,[o[a]].concat(r));return!1}return!0},t.createListenMethod=function(e){return function(t,n,i){if(!t)throw new Error("Trying to listenTo event: '"+n+"' but the target object is undefined");if((this._listeningTo||(this._listeningTo={}))[t._listenId||(t._listenId=r("l"))]=t,i||"object"!=typeof n||(i=this),"function"!=typeof t[e])throw new Error("Trying to listenTo event: '"+n+"' on object: "+t.toString()+" but it does not have an 'on' method so is unbindable");return t[e](n,i,this),this}}},36306:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TokenContext=void 0,t.isLastChild=function(e,t){const n=a[e.type];for(let r=n.length-1;r>=0;r--){const i=e[n[r]];if(i===t)return!0;if(Array.isArray(i)){let e=i.length-1;for(;e>=0&&null===i[e];)e--;return e>=0&&i[e]===t}if(i)return!1}return!1},t.needsParens=function(e,t,n,r){var i;return!!t&&(!(!h(t)||t.callee!==e||!g(e))||(c(t)?!(S(e)||l(e)&&S(e.callee)||d(e)):null==(i=m.get(e.type))?void 0:i(e,t,n,r)))},t.needsWhitespace=T,t.needsWhitespaceAfter=function(e,t){return T(e,t,2)},t.needsWhitespaceBefore=function(e,t){return T(e,t,1)};var r=n(66277),i=n(6370),s=n(45741);const{FLIPPED_ALIAS_KEYS:o,VISITOR_KEYS:a,isCallExpression:l,isDecorator:c,isExpressionStatement:p,isMemberExpression:u,isNewExpression:h,isParenthesizedExpression:d}=s;function f(e){const t=new Map;function n(e,n){const r=t.get(e);t.set(e,r?function(e,t,i,s){var o;return null!=(o=r(e,t,i,s))?o:n(e,t,i,s)}:n)}for(const t of Object.keys(e)){const r=o[t];if(r)for(const i of r)n(i,e[t]);else n(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(i),y=f(r.nodes);function g(e){return!!l(e)||u(e)&&g(e.object)}function T(e,t,n){var r;if(!e)return!1;p(e)&&(e=e.expression);const i=null==(r=y.get(e.type))?void 0:r(e,t);return"number"==typeof i&&!!(i&n)}function S(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&"Identifier"===e.property.type&&S(e.object);default:return!1}}},36464:(e,t,n)=>{var r=n(72994).Token,i=n(48898).ParseTreeListener,s=n(32141).f,o=n(24429).$,a=n(36575).ATNDeserializer,l=n(44529).$,c=n(48898).TerminalNode,p=n(48898).ErrorNode;function u(e){return i.call(this),this.parser=e,this}function h(e){return s.call(this),this._input=null,this._errHandler=new o,this._precedenceStack=[],this._precedenceStack.push(0),this._ctx=null,this.buildParseTrees=!0,this._tracer=null,this._parseListeners=null,this._syntaxErrors=0,this.setInputStream(e),this}u.prototype=Object.create(i.prototype),u.prototype.constructor=u,u.prototype.enterEveryRule=function(e){console.log("enter "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)},u.prototype.visitTerminal=function(e){console.log("consume "+e.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])},u.prototype.exitEveryRule=function(e){console.log("exit "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)},h.prototype=Object.create(s.prototype),h.prototype.contructor=h,h.bypassAltsAtnCache={},h.prototype.reset=function(){null!==this._input&&this._input.seek(0),this._errHandler.reset(this),this._ctx=null,this._syntaxErrors=0,this.setTrace(!1),this._precedenceStack=[],this._precedenceStack.push(0),null!==this._interp&&this._interp.reset()},h.prototype.match=function(e){var t=this.getCurrentToken();return t.type===e?(this._errHandler.reportMatch(this),this.consume()):(t=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===t.tokenIndex&&this._ctx.addErrorNode(t)),t},h.prototype.matchWildcard=function(){var e=this.getCurrentToken();return e.type>0?(this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===e.tokenIndex&&this._ctx.addErrorNode(e)),e},h.prototype.getParseListeners=function(){return this._parseListeners||[]},h.prototype.addParseListener=function(e){if(null===e)throw"listener";null===this._parseListeners&&(this._parseListeners=[]),this._parseListeners.push(e)},h.prototype.removeParseListener=function(e){if(null!==this._parseListeners){var t=this._parseListeners.indexOf(e);t>=0&&this._parseListeners.splice(t,1),0===this._parseListeners.length&&(this._parseListeners=null)}},h.prototype.removeParseListeners=function(){this._parseListeners=null},h.prototype.triggerEnterRuleEvent=function(){if(null!==this._parseListeners){var e=this._ctx;this._parseListeners.map((function(t){t.enterEveryRule(e),e.enterRule(t)}))}},h.prototype.triggerExitRuleEvent=function(){if(null!==this._parseListeners){var e=this._ctx;this._parseListeners.slice(0).reverse().map((function(t){e.exitRule(t),t.exitEveryRule(e)}))}},h.prototype.getTokenFactory=function(){return this._input.tokenSource._factory},h.prototype.setTokenFactory=function(e){this._input.tokenSource._factory=e},h.prototype.getATNWithBypassAlts=function(){var e=this.getSerializedATN();if(null===e)throw"The current parser does not support an ATN with bypass alternatives.";var t=this.bypassAltsAtnCache[e];if(null===t){var n=new l;n.generateRuleBypassTransitions=!0,t=new a(n).deserialize(e),this.bypassAltsAtnCache[e]=t}return t};var d=n(18393).Lexer;h.prototype.compileParseTreePattern=function(e,t,n){if(null===(n=n||null)&&null!==this.getTokenStream()){var r=this.getTokenStream().tokenSource;r instanceof d&&(n=r)}if(null===n)throw"Parser can't discover a lexer to use";return new ParseTreePatternMatcher(n,this).compile(e,t)},h.prototype.getInputStream=function(){return this.getTokenStream()},h.prototype.setInputStream=function(e){this.setTokenStream(e)},h.prototype.getTokenStream=function(){return this._input},h.prototype.setTokenStream=function(e){this._input=null,this.reset(),this._input=e},h.prototype.getCurrentToken=function(){return this._input.LT(1)},h.prototype.notifyErrorListeners=function(e,t,n){n=n||null,null===(t=t||null)&&(t=this.getCurrentToken()),this._syntaxErrors+=1;var r=t.line,i=t.column;this.getErrorListenerDispatch().syntaxError(this,t,r,i,e,n)},h.prototype.consume=function(){var e=this.getCurrentToken();e.type!==r.EOF&&this.getInputStream().consume();var t,n=null!==this._parseListeners&&this._parseListeners.length>0;return(this.buildParseTrees||n)&&((t=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(e):this._ctx.addTokenNode(e)).invokingState=this.state,n&&this._parseListeners.map((function(e){t instanceof p||void 0!==t.isErrorNode&&t.isErrorNode()?e.visitErrorNode(t):t instanceof c&&e.visitTerminal(t)}))),e},h.prototype.addContextToParseTree=function(){null!==this._ctx.parentCtx&&this._ctx.parentCtx.addChild(this._ctx)},h.prototype.enterRule=function(e,t,n){this.state=t,this._ctx=e,this._ctx.start=this._input.LT(1),this.buildParseTrees&&this.addContextToParseTree(),null!==this._parseListeners&&this.triggerEnterRuleEvent()},h.prototype.exitRule=function(){this._ctx.stop=this._input.LT(-1),null!==this._parseListeners&&this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx.parentCtx},h.prototype.enterOuterAlt=function(e,t){e.setAltNumber(t),this.buildParseTrees&&this._ctx!==e&&null!==this._ctx.parentCtx&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(e)),this._ctx=e},h.prototype.getPrecedence=function(){return 0===this._precedenceStack.length?-1:this._precedenceStack[this._precedenceStack.length-1]},h.prototype.enterRecursionRule=function(e,t,n,r){this.state=t,this._precedenceStack.push(r),this._ctx=e,this._ctx.start=this._input.LT(1),null!==this._parseListeners&&this.triggerEnterRuleEvent()},h.prototype.pushNewRecursionContext=function(e,t,n){var r=this._ctx;r.parentCtx=e,r.invokingState=t,r.stop=this._input.LT(-1),this._ctx=e,this._ctx.start=r.start,this.buildParseTrees&&this._ctx.addChild(r),null!==this._parseListeners&&this.triggerEnterRuleEvent()},h.prototype.unrollRecursionContexts=function(e){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);var t=this._ctx;if(null!==this._parseListeners)for(;this._ctx!==e;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=e;t.parentCtx=e,this.buildParseTrees&&null!==e&&e.addChild(t)},h.prototype.getInvokingContext=function(e){for(var t=this._ctx;null!==t;){if(t.ruleIndex===e)return t;t=t.parentCtx}return null},h.prototype.precpred=function(e,t){return t>=this._precedenceStack[this._precedenceStack.length-1]},h.prototype.inContext=function(e){return!1},h.prototype.isExpectedToken=function(e){var t=this._interp.atn,n=this._ctx,i=t.states[this.state],s=t.nextTokens(i);if(s.contains(e))return!0;if(!s.contains(r.EPSILON))return!1;for(;null!==n&&n.invokingState>=0&&s.contains(r.EPSILON);){var o=t.states[n.invokingState].transitions[0];if((s=t.nextTokens(o.followState)).contains(e))return!0;n=n.parentCtx}return!(!s.contains(r.EPSILON)||e!==r.EOF)},h.prototype.getExpectedTokens=function(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)},h.prototype.getExpectedTokensWithinCurrentRule=function(){var e=this._interp.atn,t=e.states[this.state];return e.nextTokens(t)},h.prototype.getRuleIndex=function(e){var t=this.getRuleIndexMap()[e];return null!==t?t:-1},h.prototype.getRuleInvocationStack=function(e){null===(e=e||null)&&(e=this._ctx);for(var t=[];null!==e;){var n=e.ruleIndex;n<0?t.push("n/a"):t.push(this.ruleNames[n]),e=e.parentCtx}return t},h.prototype.getDFAStrings=function(){return this._interp.decisionToDFA.toString()},h.prototype.dumpDFA=function(){for(var e=!1,t=0;t<this._interp.decisionToDFA.length;t++){var n=this._interp.decisionToDFA[t];n.states.length>0&&(e&&console.log(),this.printer.println("Decision "+n.decision+":"),this.printer.print(n.toString(this.literalNames,this.symbolicNames)),e=!0)}},h.prototype.getSourceName=function(){return this._input.sourceName},h.prototype.setTrace=function(e){e?(null!==this._tracer&&this.removeParseListener(this._tracer),this._tracer=new u(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)},t.Parser=h},36560:(e,t,n)=>{function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>o});var i=n(16397);function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function o(e){var t="function"==typeof Map?new Map:void 0;return o=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,n)}function n(){return function(e,t,n){if(s())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&(0,i.A)(o,n.prototype),o}(e,arguments,r(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,i.A)(n,e)},o(e)}},36575:(e,t,n)=>{var r=n(72994).Token,i=n(51028).ATN,s=n(51596).E,o=n(81367),a=o.ATNState,l=o.BasicState,c=o.DecisionState,p=o.BlockStartState,u=o.BlockEndState,h=o.LoopEndState,d=o.RuleStartState,f=o.RuleStopState,m=o.TokensStartState,y=o.PlusLoopbackState,g=o.StarLoopbackState,T=o.StarLoopEntryState,S=o.PlusBlockStartState,b=o.StarBlockStartState,x=o.BasicBlockStartState,v=n(10014),E=v.Transition,w=v.AtomTransition,A=v.SetTransition,P=v.NotSetTransition,I=v.RuleTransition,C=v.RangeTransition,_=v.ActionTransition,N=v.EpsilonTransition,O=v.WildcardTransition,k=v.PredicateTransition,M=v.PrecedencePredicateTransition,L=n(70040).m,D=(n(70040).Interval,n(44529).$),B=n(56645),F=B.LexerActionType,R=B.LexerSkipAction,j=B.LexerChannelAction,U=B.LexerCustomAction,V=B.LexerMoreAction,q=B.LexerTypeAction,K=B.LexerPushModeAction,$=B.LexerPopModeAction,Y=B.LexerModeAction,z="59627784-3BE5-417A-B9EB-8131A7286089",J=["AADB8D7E-AEEF-4415-AD2B-8204D6CF042E",z],H=z;function X(e,t){var n=[];return n[e-1]=t,n.map((function(e){return t}))}function W(e){return null==e&&(e=D.defaultOptions),this.deserializationOptions=e,this.stateFactories=null,this.actionFactories=null,this}W.prototype.isFeatureSupported=function(e,t){var n=J.indexOf(e);return!(n<0)&&J.indexOf(t)>=n},W.prototype.deserialize=function(e){this.reset(e),this.checkVersion(),this.checkUUID();var t=this.readATN();this.readStates(t),this.readRules(t),this.readModes(t);var n=[];return this.readSets(t,n,this.readInt.bind(this)),this.isFeatureSupported(z,this.uuid)&&this.readSets(t,n,this.readInt32.bind(this)),this.readEdges(t,n),this.readDecisions(t),this.readLexerActions(t),this.markPrecedenceDecisions(t),this.verifyATN(t),this.deserializationOptions.generateRuleBypassTransitions&&t.grammarType===s.PARSER&&(this.generateRuleBypassTransitions(t),this.verifyATN(t)),t},W.prototype.reset=function(e){var t=e.split("").map((function(e){var t=e.charCodeAt(0);return t>1?t-2:t+65533}));t[0]=e.charCodeAt(0),this.data=t,this.pos=0},W.prototype.checkVersion=function(){var e=this.readInt();if(3!==e)throw"Could not deserialize ATN with version "+e+" (expected 3)."},W.prototype.checkUUID=function(){var e=this.readUUID();if(J.indexOf(e)<0)throw H;this.uuid=e},W.prototype.readATN=function(){var e=this.readInt(),t=this.readInt();return new i(e,t)},W.prototype.readStates=function(e){for(var t,n,r,i=[],s=[],o=this.readInt(),l=0;l<o;l++){var c=this.readInt();if(c!==a.INVALID_TYPE){var u=this.readInt();65535===u&&(u=-1);var h=this.stateFactory(c,u);if(c===a.LOOP_END){var d=this.readInt();i.push([h,d])}else if(h instanceof p){var f=this.readInt();s.push([h,f])}e.addState(h)}else e.addState(null)}for(t=0;t<i.length;t++)(n=i[t])[0].loopBackState=e.states[n[1]];for(t=0;t<s.length;t++)(n=s[t])[0].endState=e.states[n[1]];var m=this.readInt();for(t=0;t<m;t++)r=this.readInt(),e.states[r].nonGreedy=!0;var y=this.readInt();for(t=0;t<y;t++)r=this.readInt(),e.states[r].isPrecedenceRule=!0},W.prototype.readRules=function(e){var t,n=this.readInt();for(e.grammarType===s.LEXER&&(e.ruleToTokenType=X(n,0)),e.ruleToStartState=X(n,0),t=0;t<n;t++){var i=this.readInt(),o=e.states[i];if(e.ruleToStartState[t]=o,e.grammarType===s.LEXER){var a=this.readInt();65535===a&&(a=r.EOF),e.ruleToTokenType[t]=a}}for(e.ruleToStopState=X(n,0),t=0;t<e.states.length;t++){var l=e.states[t];l instanceof f&&(e.ruleToStopState[l.ruleIndex]=l,e.ruleToStartState[l.ruleIndex].stopState=l)}},W.prototype.readModes=function(e){for(var t=this.readInt(),n=0;n<t;n++){var r=this.readInt();e.modeToStartState.push(e.states[r])}},W.prototype.readSets=function(e,t,n){for(var r=this.readInt(),i=0;i<r;i++){var s=new L;t.push(s);var o=this.readInt();0!==this.readInt()&&s.addOne(-1);for(var a=0;a<o;a++){var l=n(),c=n();s.addRange(l,c)}}},W.prototype.readEdges=function(e,t){var n,r,i,s,o,a=this.readInt();for(n=0;n<a;n++){var l=this.readInt(),c=this.readInt(),u=this.readInt(),h=this.readInt(),d=this.readInt(),f=this.readInt();s=this.edgeFactory(e,u,l,c,h,d,f,t),e.states[l].addTransition(s)}for(n=0;n<e.states.length;n++)for(i=e.states[n],r=0;r<i.transitions.length;r++){var m=i.transitions[r];if(m instanceof I){var b=-1;e.ruleToStartState[m.target.ruleIndex].isPrecedenceRule&&0===m.precedence&&(b=m.target.ruleIndex),s=new N(m.followState,b),e.ruleToStopState[m.target.ruleIndex].addTransition(s)}}for(n=0;n<e.states.length;n++){if((i=e.states[n])instanceof p){if(null===i.endState)throw"IllegalState";if(null!==i.endState.startState)throw"IllegalState";i.endState.startState=i}if(i instanceof y)for(r=0;r<i.transitions.length;r++)(o=i.transitions[r].target)instanceof S&&(o.loopBackState=i);else if(i instanceof g)for(r=0;r<i.transitions.length;r++)(o=i.transitions[r].target)instanceof T&&(o.loopBackState=i)}},W.prototype.readDecisions=function(e){for(var t=this.readInt(),n=0;n<t;n++){var r=this.readInt(),i=e.states[r];e.decisionToState.push(i),i.decision=n}},W.prototype.readLexerActions=function(e){if(e.grammarType===s.LEXER){var t=this.readInt();e.lexerActions=X(t,null);for(var n=0;n<t;n++){var r=this.readInt(),i=this.readInt();65535===i&&(i=-1);var o=this.readInt();65535===o&&(o=-1);var a=this.lexerActionFactory(r,i,o);e.lexerActions[n]=a}}},W.prototype.generateRuleBypassTransitions=function(e){var t,n=e.ruleToStartState.length;for(t=0;t<n;t++)e.ruleToTokenType[t]=e.maxTokenType+t+1;for(t=0;t<n;t++)this.generateRuleBypassTransition(e,t)},W.prototype.generateRuleBypassTransition=function(e,t){var n,r,i=new x;i.ruleIndex=t,e.addState(i);var s=new u;s.ruleIndex=t,e.addState(s),i.endState=s,e.defineDecisionState(i),s.startState=i;var o=null,a=null;if(e.ruleToStartState[t].isPrecedenceRule){for(a=null,n=0;n<e.states.length;n++)if(r=e.states[n],this.stateIsEndStateFor(r,t)){a=r,o=r.loopBackState.transitions[0];break}if(null===o)throw"Couldn't identify final state of the precedence rule prefix section."}else a=e.ruleToStopState[t];for(n=0;n<e.states.length;n++){r=e.states[n];for(var c=0;c<r.transitions.length;c++){var p=r.transitions[c];p!==o&&p.target===a&&(p.target=s)}}for(var h=e.ruleToStartState[t],d=h.transitions.length;d>0;)i.addTransition(h.transitions[d-1]),h.transitions=h.transitions.slice(-1);e.ruleToStartState[t].addTransition(new N(i)),s.addTransition(new N(a));var f=new l;e.addState(f),f.addTransition(new w(s,e.ruleToTokenType[t])),i.addTransition(new N(f))},W.prototype.stateIsEndStateFor=function(e,t){if(e.ruleIndex!==t)return null;if(!(e instanceof T))return null;var n=e.transitions[e.transitions.length-1].target;return n instanceof h&&n.epsilonOnlyTransitions&&n.transitions[0].target instanceof f?e:null},W.prototype.markPrecedenceDecisions=function(e){for(var t=0;t<e.states.length;t++){var n=e.states[t];if(n instanceof T&&e.ruleToStartState[n.ruleIndex].isPrecedenceRule){var r=n.transitions[n.transitions.length-1].target;r instanceof h&&r.epsilonOnlyTransitions&&r.transitions[0].target instanceof f&&(n.isPrecedenceDecision=!0)}}},W.prototype.verifyATN=function(e){if(this.deserializationOptions.verifyATN)for(var t=0;t<e.states.length;t++){var n=e.states[t];if(null!==n)if(this.checkCondition(n.epsilonOnlyTransitions||n.transitions.length<=1),n instanceof S)this.checkCondition(null!==n.loopBackState);else if(n instanceof T)if(this.checkCondition(null!==n.loopBackState),this.checkCondition(2===n.transitions.length),n.transitions[0].target instanceof b)this.checkCondition(n.transitions[1].target instanceof h),this.checkCondition(!n.nonGreedy);else{if(!(n.transitions[0].target instanceof h))throw"IllegalState";this.checkCondition(n.transitions[1].target instanceof b),this.checkCondition(n.nonGreedy)}else n instanceof g?(this.checkCondition(1===n.transitions.length),this.checkCondition(n.transitions[0].target instanceof T)):n instanceof h?this.checkCondition(null!==n.loopBackState):n instanceof d?this.checkCondition(null!==n.stopState):n instanceof p?this.checkCondition(null!==n.endState):n instanceof u?this.checkCondition(null!==n.startState):n instanceof c?this.checkCondition(n.transitions.length<=1||n.decision>=0):this.checkCondition(n.transitions.length<=1||n instanceof f)}},W.prototype.checkCondition=function(e,t){if(!e)throw null==t&&(t="IllegalState"),t},W.prototype.readInt=function(){return this.data[this.pos++]},W.prototype.readInt32=function(){return this.readInt()|this.readInt()<<16},W.prototype.readLong=function(){return 4294967295&this.readInt32()|this.readInt32()<<32};var G=function(){for(var e=[],t=0;t<256;t++)e[t]=(t+256).toString(16).substr(1).toUpperCase();return e}();W.prototype.readUUID=function(){for(var e=[],t=7;t>=0;t--){var n=this.readInt();e[2*t+1]=255&n,e[2*t]=n>>8&255}return G[e[0]]+G[e[1]]+G[e[2]]+G[e[3]]+"-"+G[e[4]]+G[e[5]]+"-"+G[e[6]]+G[e[7]]+"-"+G[e[8]]+G[e[9]]+"-"+G[e[10]]+G[e[11]]+G[e[12]]+G[e[13]]+G[e[14]]+G[e[15]]},W.prototype.edgeFactory=function(e,t,n,i,s,o,a,l){var c=e.states[i];switch(t){case E.EPSILON:return new N(c);case E.RANGE:return new C(c,0!==a?r.EOF:s,o);case E.RULE:return new I(e.states[s],o,a,c);case E.PREDICATE:return new k(c,s,o,0!==a);case E.PRECEDENCE:return new M(c,s);case E.ATOM:return new w(c,0!==a?r.EOF:s);case E.ACTION:return new _(c,s,o,0!==a);case E.SET:return new A(c,l[s]);case E.NOT_SET:return new P(c,l[s]);case E.WILDCARD:return new O(c);default:throw"The specified transition type: "+t+" is not valid."}},W.prototype.stateFactory=function(e,t){if(null===this.stateFactories){var n=[];n[a.INVALID_TYPE]=null,n[a.BASIC]=function(){return new l},n[a.RULE_START]=function(){return new d},n[a.BLOCK_START]=function(){return new x},n[a.PLUS_BLOCK_START]=function(){return new S},n[a.STAR_BLOCK_START]=function(){return new b},n[a.TOKEN_START]=function(){return new m},n[a.RULE_STOP]=function(){return new f},n[a.BLOCK_END]=function(){return new u},n[a.STAR_LOOP_BACK]=function(){return new g},n[a.STAR_LOOP_ENTRY]=function(){return new T},n[a.PLUS_LOOP_BACK]=function(){return new y},n[a.LOOP_END]=function(){return new h},this.stateFactories=n}if(e>this.stateFactories.length||null===this.stateFactories[e])throw"The specified state type "+e+" is not valid.";var r=this.stateFactories[e]();if(null!==r)return r.ruleIndex=t,r},W.prototype.lexerActionFactory=function(e,t,n){if(null===this.actionFactories){var r=[];r[F.CHANNEL]=function(e,t){return new j(e)},r[F.CUSTOM]=function(e,t){return new U(e,t)},r[F.MODE]=function(e,t){return new Y(e)},r[F.MORE]=function(e,t){return V.INSTANCE},r[F.POP_MODE]=function(e,t){return $.INSTANCE},r[F.PUSH_MODE]=function(e,t){return new K(e)},r[F.SKIP]=function(e,t){return R.INSTANCE},r[F.TYPE]=function(e,t){return new q(e)},this.actionFactories=r}if(e>this.actionFactories.length||null===this.actionFactories[e])throw"The specified lexer action type "+e+" is not valid.";return this.actionFactories[e](t,n)},t.ATNDeserializer=W},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"}')},37254:(e,t,n)=>{var r=n(55128).Reporter,i=n(55128).EncoderBuffer,s=n(55128).DecoderBuffer,o=n(14012),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function c(e,t){var n={};this._baseState=n,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}e.exports=c;var p=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){var e=this._baseState,t={};p.forEach((function(n){t[n]=e[n]}));var n=new this.constructor(t.parent);return n._baseState=t,n},c.prototype._wrap=function(){var e=this._baseState;l.forEach((function(t){this[t]=function(){var n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},c.prototype._init=function(e){var t=this._baseState;o(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),o.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){var t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==n.length&&(o(null===t.children),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(o(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);var r=e[n];t[r]=n})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){c.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),a.forEach((function(e){c.prototype[e]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return o(null===t.tag),t.tag=e,this._useArgs(n),this}})),c.prototype.use=function(e){o(e);var t=this._baseState;return o(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){var t=this._baseState;return o(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){var t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){var t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){var t=this._baseState;return o(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){var t=this._baseState;return o(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},c.prototype.contains=function(e){var t=this._baseState;return o(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){var n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var r,i=n.default,o=!0,a=null;if(null!==n.key&&(a=e.enterKey(n.key)),n.optional){var l=null;if(null!==n.explicit?l=n.explicit:null!==n.implicit?l=n.implicit:null!==n.tag&&(l=n.tag),null!==l||n.any){if(o=this._peekTag(e,l,n.any),e.isError(o))return o}else{var c=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),o=!0}catch(e){o=!1}e.restore(c)}}if(n.obj&&o&&(r=e.enterObject()),o){if(null!==n.explicit){var p=this._decodeTag(e,n.explicit);if(e.isError(p))return p;e=p}var u=e.offset;if(null===n.use&&null===n.choice){n.any&&(c=e.save());var h=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(h))return h;n.any?i=e.raw(c):e=h}if(t&&t.track&&null!==n.tag&&t.track(e.path(),u,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(e,t)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var d=new s(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(d,t)}}return n.obj&&o&&(i=e.leaveObject(r)),null===n.key||null===i&&!0!==o?null!==a&&e.exitKey(a):e.leaveKey(a,n.key,i),i},c.prototype._decodeGeneric=function(e,t,n){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),o(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},c.prototype._decodeChoice=function(e,t){var n=this._baseState,r=null,i=!1;return Object.keys(n.choice).some((function(s){var o=e.save(),a=n.choice[s];try{var l=a._decode(e,t);if(e.isError(l))return!1;r={type:s,value:l},i=!0}catch(t){return e.restore(o),!1}return!0}),this),i?r:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},c.prototype._encode=function(e,t,n){var r=this._baseState;if(null===r.default||r.default!==e){var i=this._encodeValue(e,t,n);if(void 0!==i&&!this._skipDefault(i,t,n))return i}},c.prototype._encodeValue=function(e,t,n){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new r);var s=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}var o=null,a=!1;if(i.any)s=this._createEncoderBuffer(e);else if(i.choice)s=this._encodeChoice(e,t);else if(i.contains)o=this._getUse(i.contains,n)._encode(e,t),a=!0;else if(i.children)o=i.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");var r=t.enterKey(n._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),i}),this).filter((function(e){return e})),o=this._createEncoderBuffer(o);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var l=this.clone();l._baseState.implicit=null,o=this._createEncoderBuffer(e.map((function(n){var r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)}),l))}else null!==i.use?s=this._getUse(i.use,n)._encode(e,t):(o=this._encodePrimitive(i.tag,e),a=!0);if(!i.any&&null===i.choice){var c=null!==i.implicit?i.implicit:i.tag,p=null===i.implicit?"universal":"context";null===c?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(s=this._encodeComposite(c,a,p,o))}return null!==i.explicit&&(s=this._encodeComposite(i.explicit,!1,"context",s)),s},c.prototype._encodeChoice=function(e,t){var n=this._baseState,r=n.choice[e.type];return r||o(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},37524:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e,i.default,t),e};var r=n(49114),i=n(65830)},38052:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return r.COMMENT_KEYS.forEach((t=>{e[t]=null})),e};var r=n(62811)},38118:(e,t,n)=>{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|=i.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,n=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(n),this.tokenChar(93)):this.print(n),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 n=this.enterDelimited(),r=this.shouldPrintTrailingComma(t),i=e.length;for(let t=0;t<i;t++)this._param(e[t]),(r||t<i-1)&&(this.token(",",null,t),this.space());this.token(t),n()},t._params=function(e,t,n){this.print(e.typeParameters);const r=o.call(this,t,n);r&&this.sourceIdentifierName(r.name,r.pos),this.tokenChar(40),this._parameters(e.params,")");const i="ArrowFunctionExpression"===e.type;this.print(e.returnType,i),this._noLineTerminator=i},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,n;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!=(n=r.trailingComments)&&n.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=n(45741),i=n(36306);const{isIdentifier:s}=r;function o(e,t){let n,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 i,s;if("Identifier"===r.type)n={pos:null==(i=r.loc)?void 0:i.start,name:(null==(s=r.loc)?void 0:s.identifierName)||r.name};else if("PrivateName"===r.type){var o;n={pos:null==(o=r.loc)?void 0:o.start,name:"#"+r.id.name}}else if("StringLiteral"===r.type){var a;n={pos:null==(a=r.loc)?void 0:a.start,name:r.value}}return n}}},39418:e=>{e.exports=function(e,t){var n=e.length,r=e.indexOf(t)+1;return r>n-1&&(r=0),e[r]}},39517:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(63555),i=n(82208);t.default=function(e,t){if((0,r.isStatement)(e))return e;let n,s=!1;if((0,r.isClass)(e))s=!0,n="ClassDeclaration";else if((0,r.isFunction)(e))s=!0,n="FunctionDeclaration";else if((0,r.isAssignmentExpression)(e))return(0,i.expressionStatement)(e);if(s&&!e.id&&(n=!1),!n){if(t)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=n,e}},40453:(e,t,n)=>{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 n=r.FLIPPED_ALIAS_KEYS[t];return!(null==n||!n.includes(e))};var r=n(35108)},40846:(e,t,n)=>{var r=n(48898).RuleNode,i=n(48898).INVALID_INTERVAL,s=n(51028).INVALID_ALT_NUMBER;function o(e,t){return r.call(this),this.parentCtx=e||null,this.invokingState=t||-1,this}o.prototype=Object.create(r.prototype),o.prototype.constructor=o,o.prototype.depth=function(){for(var e=0,t=this;null!==t;)t=t.parentCtx,e+=1;return e},o.prototype.isEmpty=function(){return-1===this.invokingState},o.prototype.getSourceInterval=function(){return i},o.prototype.getRuleContext=function(){return this},o.prototype.getPayload=function(){return this},o.prototype.getText=function(){return 0===this.getChildCount()?"":this.children.map((function(e){return e.getText()})).join("")},o.prototype.getAltNumber=function(){return s},o.prototype.setAltNumber=function(e){},o.prototype.getChild=function(e){return null},o.prototype.getChildCount=function(){return 0},o.prototype.accept=function(e){return e.visitChildren(this)},t.m=o;var a=n(23438).Trees;o.prototype.toStringTree=function(e,t){return a.toStringTree(this,e,t)},o.prototype.toString=function(e,t){e=e||null,t=t||null;for(var n=this,r="[";null!==n&&n!==t;){if(null===e)n.isEmpty()||(r+=n.invokingState);else{var i=n.ruleIndex;r+=i>=0&&i<e.length?e[i]:""+i}null===n.parentCtx||null===e&&n.parentCtx.isEmpty()||(r+=" "),n=n.parentCtx}return r+"]"}},41175:(e,t,n)=>{var r=n(65994).process,i=n(10626);function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var n=e.entry;for(e.entry=null;n;){var r=n.callback;t.pendingcb--,r(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=g;var o,a=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?setImmediate:i.nextTick;g.WritableState=y;var l=Object.create(n(26571));l.inherits=n(25003);var c,p={deprecate:n(96208)},u=n(5372),h=n(58777).Buffer,d=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},f=n(89779);function m(){}function y(e,t){o=o||n(49837),e=e||{};var r=t instanceof o;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var l=e.highWaterMark,c=e.writableHighWaterMark,p=this.objectMode?16:16384;this.highWaterMark=l||0===l?l:r&&(c||0===c)?c:p,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 n=e._writableState,r=n.sync,s=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,s){--t.pendingcb,n?(i.nextTick(s,r),i.nextTick(E,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(s(r),e._writableState.errorEmitted=!0,e.emit("error",r),E(e,t))}(e,n,r,t,s);else{var o=x(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||b(e,n),r?a(S,e,n,o,s):S(e,n,o,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 g(e){if(o=o||n(49837),!(c.call(g,this)||this instanceof o))return new g(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 T(e,t,n,r,i,s,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function S(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),E(e,t)}function b(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var a=0,l=!0;n;)i[a]=n,n.isBuf||(l=!1),n=n.next,a+=1;i.allBuffers=l,T(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,p=n.encoding,u=n.callback;if(T(e,t,!1,t.objectMode?1:c.length,c,p,u),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function v(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),E(e,t)}))}function E(e,t){var n=x(t);return n&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(v,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}l.inherits(g,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:p.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]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===g&&e&&e._writableState instanceof y}})):c=function(e){return e instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(e,t,n){var r,s=this._writableState,o=!1,a=!s.objectMode&&(r=e,h.isBuffer(r)||r instanceof d);return a&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=s.defaultEncoding),"function"!=typeof n&&(n=m),s.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(a||function(e,t,n,r){var s=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),i.nextTick(r,o),s=!1),s}(this,s,e,n))&&(s.pendingcb++,o=function(e,t,n,r,i,s){if(!n){var o=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,n)),t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var a=t.objectMode?1:r.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:s,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else T(e,t,!1,a,r,i,s);return l}(this,s,a,e,t,n)),o},g.prototype.cork=function(){this._writableState.corked++},g.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||b(this,e))},g.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(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,E(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),g.prototype.destroy=f.destroy,g.prototype._undestroy=f.undestroy,g.prototype._destroy=function(e,t){this.end(),t(e)}},41207:(e,t,n)=>{var r=n(87264).Q,i=n(66346),s=i.Hash,o=i.Set;function a(e,t){return this.alt=t,this.pred=e,this}function l(e,t){return null===e&&(e=-1),null===t&&(t=new r),this.stateNumber=e,this.configs=t,this.edges=null,this.isAcceptState=!1,this.prediction=0,this.lexerActionExecutor=null,this.requiresFullContext=!1,this.predicates=null,this}a.prototype.toString=function(){return"("+this.pred+", "+this.alt+")"},l.prototype.getAltSet=function(){var e=new o;if(null!==this.configs)for(var t=0;t<this.configs.length;t++){var n=this.configs[t];e.add(n.alt)}return 0===e.length?null:e},l.prototype.equals=function(e){return this===e||e instanceof l&&this.configs.equals(e.configs)},l.prototype.toString=function(){var e=this.stateNumber+":"+this.configs;return this.isAcceptState&&(e+="=>",null!==this.predicates?e+=this.predicates:e+=this.prediction),e},l.prototype.hashCode=function(){var e=new s;return e.update(this.configs),this.isAcceptState&&(null!==this.predicates?e.update(this.predicates):e.update(this.prediction)),e.finish()},t.X=l,t.PredPrediction=a},41641:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[];for(let n=0;n<e.children.length;n++){let s=e.children[n];(0,r.isJSXText)(s)?(0,i.default)(s,t):((0,r.isJSXExpressionContainer)(s)&&(s=s.expression),(0,r.isJSXEmptyExpression)(s)||t.push(s))}return t};var r=n(63555),i=n(95694)},42018:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.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=n(82208),i=n(45741)},44304:(e,t,n)=>{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=n(63555)},44504:(e,t,n)=>{var r=n(66840),i=n(10848),s=n(36802),o=n(30896),a=n(76966),l=[].slice;function c(e,t){if(t||(t={}),t.model&&(this.model=t.model),t.comparator&&(this.comparator=t.comparator),t.parent&&(this.parent=t.parent),!this.mainIndex){var n=this.model&&this.model.prototype&&this.model.prototype.idAttribute;this.mainIndex=n||"id"}this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,a({silent:!0},t))}a(c.prototype,r,{initialize:function(){},isModel:function(e){return this.model&&e instanceof this.model},add:function(e,t){return this.set(e,a({merge:!1,add:!0,remove:!1},t))},parse:function(e,t){return e},serialize:function(){return this.map((function(e){if(e.serialize)return e.serialize();var t={};return a(t,e),delete t.collection,t}))},toJSON:function(){return this.serialize()},set:function(e,t){(t=a({add:!0,remove:!0,merge:!0},t)).parse&&(e=this.parse(e,t));var n,r,i,o,l,c,p,u=!s(e);e=u?e?[e]:[]:e.slice();var h=t.at,d=this.comparator&&null==h&&!1!==t.sort,f="string"==typeof this.comparator?this.comparator:null,m=[],y=[],g={},T=t.add,S=t.merge,b=t.remove,x=!(d||!T||!b)&&[],v=this.model&&this.model.prototype||Object.prototype;for(c=0,p=e.length;c<p;c++){if(i=e[c]||{},this.isModel(i)?n=r=i:v.generateId?n=v.generateId(i):void 0===(n=i[this.mainIndex])&&this._isDerivedIndex(v)&&(n=v._derived[this.mainIndex].fn.call(i)),o=this.get(n))b&&(g[o.cid||o[this.mainIndex]]=!0),S&&(i=i===r?r.attributes:i,t.parse&&(i=o.parse(i,t)),o.set?(o.set(i,t),d&&!l&&o.hasChanged(f)&&(l=!0)):a(o,i)),e[c]=o;else if(T){if(!(r=e[c]=this._prepareModel(i,t)))continue;m.push(r),this._addReference(r,t)}(r=o||r)&&(x&&(r.isNew&&r.isNew()||!r[this.mainIndex]||!g[r.cid||r[this.mainIndex]])&&x.push(r),g[r[this.mainIndex]]=!0)}if(b){for(c=0,p=this.length;c<p;c++)g[(r=this.models[c]).cid||r[this.mainIndex]]||y.push(r);for(y.length&&this.remove(y,t),c=0,p=m.length;c<p;c++)this._index(m[c])}if(m.length||x&&x.length)if(d&&(l=!0),null!=h)for(c=0,p=m.length;c<p;c++)this.models.splice(h+c,0,m[c]);else{var E=x||m;for(c=0,p=E.length;c<p;c++)this.models.push(E[c])}if(l&&this.sort({silent:!0}),!t.silent){for(c=0,p=m.length;c<p;c++)(r=m[c]).trigger?r.trigger("add",r,this,t):this.trigger("add",r,this,t);(l||x&&x.length)&&this.trigger("sort",this,t)}return u?e[0]:e},get:function(e,t){if(null!=e){var n=this.mainIndex,r=this._indexes[t||n];return r&&(r[e]||void 0!==e[n]&&r[e[n]])||this._indexes.cid[e]||this._indexes.cid[e.cid]}},at:function(e){return this.models[e]},remove:function(e,t){var n,r,i,o,a=!s(e);for(t||(t={}),n=0,r=(e=a?[e]:l.call(e)).length;n<r;n++)(i=e[n]=this.get(e[n]))&&(this._deIndex(i),o=this.models.indexOf(i),this.models.splice(o,1),t.silent||(t.index=o,i.trigger?i.trigger("remove",i,this,t):this.trigger("remove",i,this,t)),this._removeReference(i,t));return a?e[0]:e},reset:function(e,t){t||(t={});for(var n=0,r=this.models.length;n<r;n++)this._removeReference(this.models[n],t);return t.previousModels=this.models,this._reset(),e=this.add(e,a({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},sort:function(e){var t=this;if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return e||(e={}),"string"==typeof this.comparator?this.models.sort((function(e,n){return e.get?(e=e.get(t.comparator),n=n.get(t.comparator)):(e=e[t.comparator],n=n[t.comparator]),e>n||void 0===e?1:e<n||void 0===n?-1:0})):1===this.comparator.length?this.models.sort((function(e,n){return(e=t.comparator(e))>(n=t.comparator(n))||void 0===e?1:e<n||void 0===n?-1:0})):this.models.sort(o(this.comparator,this)),e.silent||this.trigger("sort",this,e),this},_reset:function(){var e=l.call(this.indexes||[]),t=0;e.push(this.mainIndex),e.push("cid");var n=e.length;for(this.models=[],this._indexes={};t<n;t++)this._indexes[e[t]]={}},_prepareModel:function(e,t){if(!this.model)return e;if(this.isModel(e))return e.collection||(e.collection=this),e;(t=t?a({},t):{}).collection=this;var n=new this.model(e,t);return n.validationError?(this.trigger("invalid",this,n.validationError,t),!1):n},_deIndex:function(e,t,n){var r;if(void 0===t)for(var i in this._indexes)r=e.hasOwnProperty(i)?e[i]:e.get&&e.get(i),delete this._indexes[i][r];else{if(void 0===this._indexes[t])throw new Error("Given attribute is not an index");delete this._indexes[t][n]}},_index:function(e,t){var n;if(void 0===t)for(var r in this._indexes)null!=(n=e.hasOwnProperty(r)?e[r]:e.get&&e.get(r))&&(this._indexes[r][n]=e);else{if(void 0===this._indexes[t])throw new Error("Given attribute is not an index");(n=e[t]||e.get&&e.get(t))&&(this._indexes[t][n]=e)}},_isDerivedIndex:function(e){return!(!e||"object"!=typeof e._derived)&&Object.keys(e._derived).indexOf(this.mainIndex)>=0},_addReference:function(e,t){this._index(e),e.collection||(e.collection=this),e.on&&e.on("all",this._onModelEvent,this)},_removeReference:function(e,t){this===e.collection&&delete e.collection,this._deIndex(e),e.off&&e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,n,r){var i=e.split(":")[0],s=e.split(":")[1];("add"!==i&&"remove"!==i||n===this)&&("destroy"===i&&this.remove(t,r),t&&"change"===i&&s&&this._indexes[s]&&(this._deIndex(t,s,t.previousAttributes()[s]),this._index(t,s)),this.trigger.apply(this,arguments))}}),Object.defineProperties(c.prototype,{length:{get:function(){return this.models.length}},isCollection:{get:function(){return!0}}}),["indexOf","lastIndexOf","every","some","forEach","map","filter","reduce","reduceRight"].forEach((function(e){c.prototype[e]=function(){return this.models[e].apply(this.models,arguments)}})),c.prototype.each=c.prototype.forEach,c.extend=i,e.exports=c},44529:(e,t)=>{function n(e){return void 0===e&&(e=null),this.readOnly=!1,this.verifyATN=null===e||e.verifyATN,this.generateRuleBypassTransitions=null!==e&&e.generateRuleBypassTransitions,this}n.defaultOptions=new n,n.defaultOptions.readOnly=!0,t.$=n},44775:(e,t,n)=>{var r=t;r.bignum=n(60581),r.define=n(35228).define,r.base=n(55128),r.constants=n(67966),r.decoders=n(32868),r.encoders=n(81324)},45080:(e,t,n)=>{var r=n(10441),i=n(11265),s=n(79696).Buffer,o=n(5339),a=n(84913),l=n(62053),c=n(23457);function p(e,t,n){a.call(this),this._cache=new h,this._cipher=new l.AES(t),this._prev=s.from(n),this._mode=e,this._autopadding=!0}n(25003)(p,a),p.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return s.concat(r)};var u=s.alloc(16,16);function h(){this.cache=s.allocUnsafe(0)}function d(e,t,n){var a=r[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=s.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=s.from(n)),"GCM"!==a.mode&&n.length!==a.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===a.type?new o(a.module,t,n):"auth"===a.type?new i(a.module,t,n):new p(a.module,t,n)}p.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")},p.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),n=-1;++n<e;)t.writeUInt8(e,n);return s.concat([this.cache,t])},t.createCipheriv=d,t.createCipher=function(e,t){var n=r[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=c(t,!1,n.key,n.iv);return d(e,i.key,i.iv)}},45741:(e,t,n)=>{var r=n(65994).process;Object.defineProperty(t,"__esModule",{value:!0});var i={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 ge.default}}),Object.defineProperty(t,"addComment",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"addComments",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"appendToMemberExpression",{enumerable:!0,get:function(){return j.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 g.default}}),Object.defineProperty(t,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"cloneNode",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"cloneWithoutLoc",{enumerable:!0,get:function(){return S.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 p.default}}),Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"ensureBlock",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"getFunctionName",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"inheritInnerComments",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"inheritLeadingComments",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"inheritTrailingComments",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(t,"inheritsComments",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return Q.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 ne.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(t,"isPlaceholderType",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(t,"isValidES3Identifier",{enumerable:!0,get:function(){return pe.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 P.default}}),Object.defineProperty(t,"removeProperties",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(t,"removePropertiesDeep",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"shallowEqual",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return k.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 X.default}}),Object.defineProperty(t,"traverseFast",{enumerable:!0,get:function(){return W.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=n(84579),o=n(79959),a=n(41641),l=n(17615),c=n(48051);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var p=n(93971),u=n(64008),h=n(89912),d=n(62062);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var f=n(82208);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var m=n(16938),y=n(16738),g=n(81339),T=n(63646),S=n(12520),b=n(15626),x=n(64697),v=n(25765),E=n(62563),w=n(60616),A=n(6057),P=n(38052),I=n(82129);Object.keys(I).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===I[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return I[e]}}))}));var C=n(62811);Object.keys(C).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===C[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return C[e]}}))}));var _=n(89859),N=n(81625),O=n(78529),k=n(70470),M=n(17916),L=n(29221),D=n(65987),B=n(39517),F=n(59563),R=n(35108);Object.keys(R).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===R[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return R[e]}}))}));var j=n(55186),U=n(479),V=n(42018),q=n(65830),K=n(37524),$=n(97884),Y=n(55110),z=n(68830),J=n(61957),H=n(35174),X=n(6564);Object.keys(X).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===X[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return X[e]}}))}));var W=n(49114),G=n(3903),Z=n(23781),Q=n(99636),ee=n(73416),te=n(23153),ne=n(62816),re=n(25129),ie=n(47188),se=n(59892),oe=n(55354),ae=n(61625),le=n(44304),ce=n(40453),pe=n(56773),ue=n(26228),he=n(60124),de=n(68740),fe=n(59751),me=n(83872),ye=n(63555);Object.keys(ye).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===ye[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ye[e]}}))}));var ge=n(74641),Te=n(713);t.react={isReactComponent:s.default,isCompatTag:o.default,buildChildren:a.default},t.toSequenceExpression=Te.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,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){if("object"!=typeof t||"object"!=typeof n||null==t||null==n)return t===n;if(t.type!==n.type)return!1;const i=Object.keys(r.NODE_FIELDS[t.type]||t.type),s=r.VISITOR_KEYS[t.type];for(const r of i){const i=t[r],o=n[r];if(typeof i!=typeof o)return!1;if(null!=i||null!=o){if(null==i||null==o)return!1;if(Array.isArray(i)){if(!Array.isArray(o))return!1;if(i.length!==o.length)return!1;for(let t=0;t<i.length;t++)if(!e(i[t],o[t]))return!1}else if("object"!=typeof i||null!=s&&s.includes(r)){if(!e(i,o))return!1}else for(const e of Object.keys(i))if(i[e]!==o[e])return!1}}return!0};var r=n(35108)},47375:(e,t,n)=>{var r=n(72994).Token;function i(e,t){return this.name="<empty>",this.strdata=e,this.decodeToUnicodeCodePoints=t||!1,function(e){if(e._index=0,e.data=[],e.decodeToUnicodeCodePoints)for(var t=0;t<e.strdata.length;){var n=e.strdata.codePointAt(t);e.data.push(n),t+=n<=65535?1:2}else for(t=0;t<e.strdata.length;t++){var r=e.strdata.charCodeAt(t);e.data.push(r)}e._size=e.data.length}(this),this}n(51184),n(59198),Object.defineProperty(i.prototype,"index",{get:function(){return this._index}}),Object.defineProperty(i.prototype,"size",{get:function(){return this._size}}),i.prototype.reset=function(){this._index=0},i.prototype.consume=function(){if(this._index>=this._size)throw"cannot consume EOF";this._index+=1},i.prototype.LA=function(e){if(0===e)return 0;e<0&&(e+=1);var t=this._index+e-1;return t<0||t>=this._size?r.EOF:this.data[t]},i.prototype.LT=function(e){return this.LA(e)},i.prototype.mark=function(){return-1},i.prototype.release=function(e){},i.prototype.seek=function(e){e<=this._index?this._index=e:this._index=Math.min(e,this._size)},i.prototype.getText=function(e,t){if(t>=this._size&&(t=this._size-1),e>=this._size)return"";if(this.decodeToUnicodeCodePoints){for(var n="",r=e;r<=t;r++)n+=String.fromCodePoint(this.data[r]);return n}return this.strdata.slice(e,t+1)},i.prototype.toString=function(){return this.strdata},t.InputStream=i},48051:(e,t,n)=>{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,i.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,i.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,i.default)("assertRegexLiteral","assertRegExpLiteral"),s("RegexLiteral",e,t)},t.assertRestElement=function(e,t){s("RestElement",e,t)},t.assertRestProperty=function(e,t){(0,i.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,i.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=n(23781),i=n(74641);function s(e,t,n){if(!(0,r.default)(e,t,n))throw new Error(`Expected type "${e}" with option ${JSON.stringify(n)}, but instead got "${t.type}".`)}},48122:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(31500);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},48457:(e,t,n)=>{var r=n(73261),i=n(8925),s=n(23781);const o=(0,r.defineAliasedType)("TypeScript"),a=(0,r.assertValueType)("boolean"),l=()=>({returnType:{validate:(0,r.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,r.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});o("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}}}),o("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,i.functionDeclarationCommon)(),l())}),o("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},(0,i.classMethodOrDeclareMethodCommon)(),l())}),o("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,r.validateType)("TSEntityName"),right:(0,r.validateType)("Identifier")}});const c=()=>({typeParameters:(0,r.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,r.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation")}),p={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:c()};o("TSCallSignatureDeclaration",p),o("TSConstructSignatureDeclaration",p);const u=()=>({key:(0,r.validateType)("Expression"),computed:{default:!1},optional:(0,r.validateOptional)(a)});o("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},u(),{readonly:(0,r.validateOptional)(a),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,r.assertOneOf)("get","set")}})}),o("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},c(),u(),{kind:{validate:(0,r.assertOneOf)("method","get","set")}})}),o("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,r.validateOptional)(a),static:(0,r.validateOptional)(a),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)o(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});o("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const d={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};o("TSFunctionType",Object.assign({},d,{fields:c()})),o("TSConstructorType",Object.assign({},d,{fields:Object.assign({},c(),{abstract:(0,r.validateOptional)(a)})})),o("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,r.validateType)("TSEntityName"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation")}}),o("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)(a)}}),o("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,r.validateType)("TSEntityName","TSImportType"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation")}}),o("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,r.validateArrayOfType)("TSTypeElement")}}),o("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,r.validateType)("TSType")}}),o("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,r.validateArrayOfType)("TSType","TSNamedTupleMember")}}),o("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,r.validateType)("TSType")}}),o("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,r.validateType)("TSType")}}),o("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,r.validateType)("Identifier"),optional:{validate:a,default:!1},elementType:(0,r.validateType)("TSType")}});const f={aliases:["TSType"],visitor:["types"],fields:{types:(0,r.validateArrayOfType)("TSType")}};o("TSUnionType",f),o("TSIntersectionType",f),o("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")}}),o("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,r.validateType)("TSTypeParameter")}}),o("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,r.validateType)("TSType")}}),o("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,r.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,r.validateType)("TSType")}}),o("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,r.validateType)("TSType"),indexType:(0,r.validateType)("TSType")}}),o("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")})}),o("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,n){if(e.quasis.length!==n.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.\nExpected ${n.length+1} quasis but got ${e.quasis.length}`)}))}}}),o("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){const e=(0,r.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0,r.assertOneOf)("-"),n=(0,r.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function i(r,i,o){(0,s.default)("UnaryExpression",o)?(t(o,"operator",o.operator),e(o,"argument",o.argument)):n(r,i,o)}return i.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],i}()}}}),o("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,r.validateType)("TSEntityName"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation")}}),o("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,r.validateOptional)(a),id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,r.validateOptional)((0,r.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,r.validateType)("TSInterfaceBody")}}),o("TSInterfaceBody",{visitor:["body"],fields:{body:(0,r.validateArrayOfType)("TSTypeElement")}}),o("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,r.validateOptional)(a),id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,r.validateType)("TSType")}}),o("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")}};o("TSAsExpression",m),o("TSSatisfiesExpression",m),o("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,r.validateType)("TSType"),expression:(0,r.validateType)("Expression")}}),o("TSEnumBody",{visitor:["members"],fields:{members:(0,r.validateArrayOfType)("TSEnumMember")}}),o("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,r.validateOptional)(a),const:(0,r.validateOptional)(a),id:(0,r.validateType)("Identifier"),members:(0,r.validateArrayOfType)("TSEnumMember"),initializer:(0,r.validateOptionalType)("Expression"),body:(0,r.validateOptionalType)("TSEnumBody")}}),o("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,r.validateType)("Identifier","StringLiteral"),initializer:(0,r.validateOptionalType)("Expression")}}),o("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,r.assertOneOf)("global","module","namespace")},declare:(0,r.validateOptional)(a)},{global:(0,r.validateOptional)(a)},{id:(0,r.validateType)("Identifier","StringLiteral"),body:(0,r.validateType)("TSModuleBlock","TSModuleDeclaration")})}),o("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,r.validateArrayOfType)("Statement")}}),o("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}}}),o("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,r.validate)(a)},{id:(0,r.validateType)("Identifier"),moduleReference:(0,r.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,r.assertOneOf)("type","value"),optional:!0}})}),o("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,r.validateType)("StringLiteral")}}),o("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,r.validateType)("Expression")}}),o("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,r.validateType)("Expression")}}),o("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,r.validateType)("Identifier")}}),o("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,r.assertNodeType)("TSType")}}}),o("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,r.validateArrayOfType)("TSType")}}),o("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,r.validateArrayOfType)("TSTypeParameter")}}),o("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}}})},48898:(e,t,n)=>{var r=n(72994).Token,i=n(70040).Interval,s=new i(-1,-2);function o(){return this}function a(){return o.call(this),this}function l(){return a.call(this),this}function c(){return l.call(this),this}function p(){return l.call(this),this}function u(){return p.call(this),this}function h(){return this}function d(){return this}function f(e){return p.call(this),this.parentCtx=null,this.symbol=e,this}function m(e){return f.call(this,e),this}function y(){return this}n(66346),a.prototype=Object.create(o.prototype),a.prototype.constructor=a,l.prototype=Object.create(a.prototype),l.prototype.constructor=l,c.prototype=Object.create(l.prototype),c.prototype.constructor=c,p.prototype=Object.create(l.prototype),p.prototype.constructor=p,u.prototype=Object.create(p.prototype),u.prototype.constructor=u,h.prototype.visit=function(e){return Array.isArray(e)?e.map((function(e){return e.accept(this)}),this):e.accept(this)},h.prototype.visitChildren=function(e){return e.children?this.visit(e.children):null},h.prototype.visitTerminal=function(e){},h.prototype.visitErrorNode=function(e){},d.prototype.visitTerminal=function(e){},d.prototype.visitErrorNode=function(e){},d.prototype.enterEveryRule=function(e){},d.prototype.exitEveryRule=function(e){},f.prototype=Object.create(p.prototype),f.prototype.constructor=f,f.prototype.getChild=function(e){return null},f.prototype.getSymbol=function(){return this.symbol},f.prototype.getParent=function(){return this.parentCtx},f.prototype.getPayload=function(){return this.symbol},f.prototype.getSourceInterval=function(){if(null===this.symbol)return s;var e=this.symbol.tokenIndex;return new i(e,e)},f.prototype.getChildCount=function(){return 0},f.prototype.accept=function(e){return e.visitTerminal(this)},f.prototype.getText=function(){return this.symbol.text},f.prototype.toString=function(){return this.symbol.type===r.EOF?"<EOF>":this.symbol.text},m.prototype=Object.create(f.prototype),m.prototype.constructor=m,m.prototype.isErrorNode=function(){return!0},m.prototype.accept=function(e){return e.visitErrorNode(this)},y.prototype.walk=function(e,t){if(t instanceof u||void 0!==t.isErrorNode&&t.isErrorNode())e.visitErrorNode(t);else if(t instanceof p)e.visitTerminal(t);else{this.enterRule(e,t);for(var n=0;n<t.getChildCount();n++){var r=t.getChild(n);this.walk(e,r)}this.exitRule(e,t)}},y.prototype.enterRule=function(e,t){var n=t.getRuleContext();e.enterEveryRule(n),n.enterRule(e)},y.prototype.exitRule=function(e,t){var n=t.getRuleContext();n.exitRule(e),e.exitEveryRule(n)},y.DEFAULT=new y,t.RuleNode=c,t.ErrorNode=u,t.TerminalNode=p,t.ErrorNodeImpl=m,t.TerminalNodeImpl=f,t.ParseTreeListener=d,t.ParseTreeVisitor=h,t.ParseTreeWalker=y,t.INVALID_INTERVAL=s},48966:(e,t,n)=>{t.RecognitionException=n(86587).RecognitionException,t.NoViableAltException=n(86587).NoViableAltException,t.LexerNoViableAltException=n(86587).LexerNoViableAltException,t.InputMismatchException=n(86587).InputMismatchException,t.FailedPredicateException=n(86587).FailedPredicateException,t.DiagnosticErrorListener=n(58369).DiagnosticErrorListener,t.BailErrorStrategy=n(24429).BailErrorStrategy,t.ErrorListener=n(93343).ErrorListener},49114:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(35108);const i=Symbol(),s=Symbol();function o(e,t,n){if(!e)return!1;const a=r.VISITOR_KEYS[e.type];if(!a)return!1;const l=t(e,n=n||{});if(void 0!==l)switch(l){case i:return!1;case s:return!0}for(const r of a){const i=e[r];if(i)if(Array.isArray(i)){for(const e of i)if(o(e,t,n))return!0}else if(o(i,t,n))return!0}return!1}o.skip=i,o.stop=s},49837:(e,t,n)=>{var r=n(10626),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=u;var s=Object.create(n(26571));s.inherits=n(25003);var o=n(3971),a=n(41175);s.inherits(u,o);for(var l=i(a.prototype),c=0;c<l.length;c++){var p=l[c];u.prototype[p]||(u.prototype[p]=a.prototype[p])}function u(e){if(!(this instanceof u))return new u(e);o.call(this,e),a.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)}},49871:(e,t,n)=>{t.atn=n(26597),t.codepointat=n(51184),t.dfa=n(16569),t.fromcodepoint=n(59198),t.tree=n(69036),t.error=n(48966),t.Token=n(72994).Token,t.CharStreams=n(21058).CharStreams,t.CommonToken=n(72994).CommonToken,t.InputStream=n(47375).InputStream,t.FileStream=n(4349).FileStream,t.CommonTokenStream=n(18949).CommonTokenStream,t.Lexer=n(18393).Lexer,t.Parser=n(36464).Parser;var r=n(10559);t.PredictionContextCache=r.PredictionContextCache,t.ParserRuleContext=n(29499).ParserRuleContext,t.Interval=n(70040).Interval,t.Utils=n(66346)},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"}}')},50659:(e,t,n)=>{var r=n(6617),i=n(76966),s=function(e){return i({},e)},o=n(80922),a=n(69140),l=n(60598),c=n(79682),p=n(46406),u=n(54200),h=n(72639),d=n(46971),f=n(70251),m=n(38275),y=n(64398),g=n(77504),T=n(93567),S=n(35040),b=n(39418),x=/^change:/,v=function(){};function E(e,t){t||(t={}),this.cid||(this.cid=r("state")),this._events={},this._values={},this._eventBubblingHandlerCache={},this._definition=Object.create(this._definition),t.parse&&(e=this.parse(e,t)),this.parent=t.parent,this.collection=t.collection,this._keyTree=new S,this._initCollections(),this._initChildren(),this._cache={},this._previousAttributes={},e&&this.set(e,i({silent:!0,initial:!0},t)),this._changed={},this._derived&&this._initDerived(),!1!==t.init&&this.initialize.apply(this,arguments)}function w(e,t,n,r){var i,s,o=e._definition[t]={};if(p(n))(i=e._ensureValidType(n))&&(o.type=i);else{if(Array.isArray(n)&&(n={type:(s=n)[0],required:s[1],default:s[2]}),(i=e._ensureValidType(n.type))&&(o.type=i),n.required&&(o.required=!0),n.default&&"object"==typeof n.default)throw new TypeError("The default value for "+t+" cannot be an object/array, must be a value or a function which returns a value/object/array");o.default=n.default,o.allowNull=!!n.allowNull&&n.allowNull,n.setOnce&&(o.setOnce=!0),o.required&&void 0===o.default&&!o.setOnce&&(o.default=e._getDefaultForType(i)),o.test=n.test,o.values=n.values}return r&&(o.session=!0),i||(i=p(n)?n:n.type,console.warn("Invalid data type of `"+i+"` for `"+t+"` property. Use one of the default types or define your own")),Object.defineProperty(e,t,{set:function(e){this.set(t,e)},get:function(){if(!this._values)throw Error('You may be trying to `extend` a state object with "'+t+'" which has been defined in `props` on the object being extended');var e=this._values[t],n=this._dataTypes[o.type];if(void 0!==e)return n&&n.get&&(e=n.get(e)),e;var r=y(o,"default");return this._values[t]=r,void 0!==r&&this._getOnChangeForType(o.type)(r,e,t),r}}),o}function A(e,t,n){(e._derived[t]={fn:d(n)?n:n.fn,cache:!1!==n.cache,depList:n.deps||[]}).depList.forEach((function(n){e._deps[n]=g(e._deps[n]||[],[t])})),Object.defineProperty(e,t,{get:function(){return this._getDerivedProperty(t)},set:function(){throw new TypeError("`"+t+"` is a derived property, it can't be set directly.")}})}i(E.prototype,T,{extraProperties:"ignore",idAttribute:"id",namespaceAttribute:"namespace",typeAttribute:"modelType",initialize:function(){return this},getId:function(){return this[this.idAttribute]},getNamespace:function(){return this[this.namespaceAttribute]},getType:function(){return this[this.typeAttribute]},isNew:function(){return null==this.getId()},escape:function(e){return a(this.get(e))},isValid:function(e){return this._validate({},i(e||{},{validate:!0}))},parse:function(e,t){return e},serialize:function(e){var t=i({props:!0},e),n=this.getAttributes(t,!0),r=function(e,t){n[t]=this[t].serialize()}.bind(this);return l(this._children,r),l(this._collections,r),n},set:function(e,t,n){var r,i,s,o,a,l,p,h,d,f,m,g,T,S,b,x,v,E=this,w=this.extraProperties;if(u(e)||null===e?(d=e,n=t):(d={})[e]=t,n=n||{},!this._validate(d,n))return!1;g=n.unset,m=n.silent,S=n.initial,r=this._changing,this._changing=!0,i=[],S?this._previousAttributes={}:r||(this._previousAttributes=this.attributes,this._changed={});for(var A=0,P=Object.keys(d),I=P.length;A<I;A++){if(s=typeof(o=d[h=P[A]]),T=this._values[h],!(a=this._definition[h])){if(this._children[h]||this._collections[h]){u(o)||(o={}),this[h].set(o,n);continue}if("ignore"===w)continue;if("reject"===w)throw new TypeError('No "'+h+'" property defined on '+(this.type||"this")+' model and extraProperties not set to "ignore" or "allow"');if("allow"===w)a=this._createPropertyDefinition(h,"any");else if(w)throw new TypeError('Invalid value for extraProperties: "'+w+'"')}if(x=this._getCompareForType(a.type),v=this._getOnChangeForType(a.type),(f=this._dataTypes[a.type])&&f.set&&(o=(l=f.set(o)).val,s=l.type),a.test&&(p=a.test.call(this,o,s)))throw new TypeError("Property '"+h+"' failed validation with error: "+p);if(void 0===o&&a.required)throw new TypeError("Required property '"+h+"' must be of type "+a.type+". Tried to set "+o);if(null===o&&a.required&&!a.allowNull)throw new TypeError("Property '"+h+"' must be of type "+a.type+" (cannot be null). Tried to set "+o);if(a.type&&"any"!==a.type&&a.type!==s&&null!=o)throw new TypeError("Property '"+h+"' must be of type "+a.type+". Tried to set "+o);if(a.values&&!c(a.values,o)){var C=y(a,"default");if(g&&void 0!==C)o=C;else if(!g||g&&void 0!==o)throw new TypeError("Property '"+h+"' must be one of values: "+a.values.join(", ")+". Tried to set "+o)}if(b=S||!x(T,o,h),a.setOnce&&void 0!==T&&b)throw new TypeError("Property '"+h+"' can only be set once.");b?(v(o,T,h),S||(this._changed[h]=o,this._previousAttributes[h]=T,g&&delete this._values[h],m||i.push({prev:T,val:o,key:h})),g||(this._values[h]=o)):delete this._changed[h]}if(i.length&&(this._pending=!0),i.forEach((function(e){E.trigger("change:"+e.key,E,e.val,n)})),r)return this;for(;this._pending;)this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this},get:function(e){return this[e]},toggle:function(e){var t=this._definition[e];if("boolean"===t.type)this[e]=!this[e];else{if(!t||!t.values)throw new TypeError("Can only toggle properties that are type `boolean` or have `values` array.");this[e]=b(t.values,this[e])}return this},previousAttributes:function(){return s(this._previousAttributes)},hasChanged:function(e){return null==e?!!Object.keys(this._changed).length:m(this._derived,e)?this._derived[e].depList.some((function(e){return this.hasChanged(e)}),this):m(this._changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&s(this._changed);var t,n,r=!1,i=this._changing?this._previousAttributes:this.attributes;for(var o in e)(n=this._definition[o])&&(this._getCompareForType(n.type)(i[o],t=e[o])||((r||(r={}))[o]=t));return r},toJSON:function(){return this.serialize()},unset:function(e,t){var n=this;(e=Array.isArray(e)?e:[e]).forEach((function(e){var r,s=n._definition[e];if(s)return s.required?(r=y(s,"default"),n.set(e,r,t)):n.set(e,r,i({},t,{unset:!0}))}))},clear:function(e){var t=this;return Object.keys(this.attributes).forEach((function(n){t.unset(n,e)})),this},previous:function(e){return null!=e&&Object.keys(this._previousAttributes).length?this._previousAttributes[e]:null},_getDefaultForType:function(e){var t=this._dataTypes[e];return t&&t.default},_getCompareForType:function(e){var t=this._dataTypes[e];return t&&t.compare?t.compare.bind(this):f},_getOnChangeForType:function(e){var t=this._dataTypes[e];return t&&t.onChange?t.onChange.bind(this):v},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=i({},this.attributes,e);var n=this.validationError=this.validate(e,t)||null;return!n||(this.trigger("invalid",this,n,i(t||{},{validationError:n})),!1)},_createPropertyDefinition:function(e,t,n){return w(this,e,t,n)},_ensureValidType:function(e){return c(["string","number","boolean","array","object","date","state","any"].concat(Object.keys(this._dataTypes)),e)?e:void 0},getAttributes:function(e,t){e=i({session:!1,props:!1,derived:!1},e||{});var n,r,s={};for(var o in this._definition)r=this._definition[o],(e.session&&r.session||e.props&&!r.session)&&(n=t?this._values[o]:this[o],t&&n&&d(n.serialize)&&(n=n.serialize()),void 0===n&&(n=y(r,"default")),void 0!==n&&(s[o]=n));if(e.derived)for(var a in this._derived)s[a]=this[a];return s},_initDerived:function(){var e=this;l(this._derived,(function(t,n){var r=e._derived[n];r.deps=r.depList;var i=function(){var t=r.fn.call(e);e._cache[n]===t&&r.cache||(r.cache&&(e._previousAttributes[n]=e._cache[n]),e._cache[n]=t,e.trigger("change:"+n,e,e._cache[n]))};r.deps.forEach((function(t){e._keyTree.add(t,i)}))})),this.on("all",(function(t){x.test(t)&&e._keyTree.get(t.split(":")[1]).forEach((function(e){e()}))}),this)},_getDerivedProperty:function(e,t){return this._derived[e].cache?(!t&&this._cache.hasOwnProperty(e)||(this._cache[e]=this._derived[e].fn.apply(this)),this._cache[e]):this._derived[e].fn.apply(this)},_initCollections:function(){var e;if(this._collections)for(e in this._collections)this._safeSet(e,new this._collections[e](null,{parent:this}))},_initChildren:function(){var e;if(this._children)for(e in this._children)this._safeSet(e,new this._children[e]({},{parent:this})),this.listenTo(this[e],"all",this._getCachedEventBubblingHandler(e))},_getCachedEventBubblingHandler:function(e){return this._eventBubblingHandlerCache[e]||(this._eventBubblingHandlerCache[e]=function(t,n,r){x.test(t)?this.trigger("change:"+e+"."+t.split(":")[1],n,r):"change"===t&&this.trigger("change",this)}.bind(this)),this._eventBubblingHandlerCache[e]},_verifyRequired:function(){var e=this.attributes;for(var t in this._definition)if(this._definition[t].required&&void 0===e[t])return!1;return!0},_safeSet:function(e,t){if(e in this)throw new Error("Encountered namespace collision while setting instance property `"+e+"`");return this[e]=t,this}}),Object.defineProperties(E.prototype,{attributes:{get:function(){return this.getAttributes({props:!0,session:!0})}},all:{get:function(){return this.getAttributes({session:!0,props:!0,derived:!0})}},isState:{get:function(){return!0},set:function(){}}});var P={string:{default:function(){return""}},date:{set:function(e){var t;if(null==e)t="object";else if(h(e))t="date",e=e.valueOf();else{var n=null,r=new Date(e).valueOf();isNaN(r)&&(r=new Date(parseInt(e,10)).valueOf(),isNaN(r)&&(n=!0)),e=r,t="date",n&&(t=typeof e)}return{val:e,type:t}},get:function(e){return null==e?e:new Date(e)},default:function(){return new Date}},array:{set:function(e){return{val:e,type:Array.isArray(e)?"array":typeof e}},default:function(){return[]}},object:{set:function(e){var t=typeof e;return"object"!==t&&void 0===e&&(e=null,t="object"),{val:e,type:t}},default:function(){return{}}},state:{set:function(e){return e instanceof E||e&&e.isState?{val:e,type:"state"}:{val:e,type:typeof e}},compare:function(e,t){return e===t},onChange:function(e,t,n){t&&this.stopListening(t,"all",this._getCachedEventBubblingHandler(n)),null!=e&&this.listenTo(e,"all",this._getCachedEventBubblingHandler(n))}}};E.extend=function(e){var t,n=this;t=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return n.apply(this,arguments)},i(t,n);var r=function(){this.constructor=t};if(r.prototype=n.prototype,t.prototype=new r,t.prototype._derived=i({},n.prototype._derived),t.prototype._deps=i({},n.prototype._deps),t.prototype._definition=i({},n.prototype._definition),t.prototype._collections=i({},n.prototype._collections),t.prototype._children=i({},n.prototype._children),t.prototype._dataTypes=i({},n.prototype._dataTypes||P),e)for(var s=["dataTypes","props","session","derived","collections","children"],a=0;a<arguments.length;a++){var c=arguments[a];c.dataTypes&&l(c.dataTypes,(function(e,n){t.prototype._dataTypes[n]=e})),c.props&&l(c.props,(function(e,n){w(t.prototype,n,e)})),c.session&&l(c.session,(function(e,n){w(t.prototype,n,e,!0)})),c.derived&&l(c.derived,(function(e,n){A(t.prototype,n,e)})),c.collections&&l(c.collections,(function(e,n){t.prototype._collections[n]=e})),c.children&&l(c.children,(function(e,n){t.prototype._children[n]=e})),i(t.prototype,o(c,s))}return t.__super__=n.prototype,t},e.exports=E},51028:(e,t,n)=>{var r=n(23234).a,i=n(70040).m;function s(e,t){return this.grammarType=e,this.maxTokenType=t,this.states=[],this.decisionToState=[],this.ruleToStartState=[],this.ruleToStopState=null,this.modeNameToStartState={},this.ruleToTokenType=null,this.lexerActions=null,this.modeToStartState=[],this}s.prototype.nextTokensInContext=function(e,t){return new r(this).LOOK(e,null,t)},s.prototype.nextTokensNoContext=function(e){return null!==e.nextTokenWithinRule||(e.nextTokenWithinRule=this.nextTokensInContext(e,null),e.nextTokenWithinRule.readOnly=!0),e.nextTokenWithinRule},s.prototype.nextTokens=function(e,t){return void 0===t?this.nextTokensNoContext(e):this.nextTokensInContext(e,t)},s.prototype.addState=function(e){null!==e&&(e.atn=this,e.stateNumber=this.states.length),this.states.push(e)},s.prototype.removeState=function(e){this.states[e.stateNumber]=null},s.prototype.defineDecisionState=function(e){return this.decisionToState.push(e),e.decision=this.decisionToState.length-1,e.decision},s.prototype.getDecisionState=function(e){return 0===this.decisionToState.length?null:this.decisionToState[e]};var o=n(72994).Token;s.prototype.getExpectedTokens=function(e,t){if(e<0||e>=this.states.length)throw"Invalid state number.";var n=this.states[e],r=this.nextTokens(n);if(!r.contains(o.EPSILON))return r;var s=new i;for(s.addSet(r),s.removeOne(o.EPSILON);null!==t&&t.invokingState>=0&&r.contains(o.EPSILON);){var a=this.states[t.invokingState].transitions[0];r=this.nextTokens(a.followState),s.addSet(r),s.removeOne(o.EPSILON),t=t.parentCtx}return r.contains(o.EPSILON)&&s.addOne(o.EOF),s},s.INVALID_ALT_NUMBER=0,t.ATN=s},51184:()=>{var e,t;String.prototype.codePointAt||(t=function(e){if(null==this)throw TypeError();var t=String(this),n=t.length,r=e?Number(e):0;if(r!=r&&(r=0),!(r<0||r>=n)){var i,s=t.charCodeAt(r);return s>=55296&&s<=56319&&n>r+1&&(i=t.charCodeAt(r+1))>=56320&&i<=57343?1024*(s-55296)+i-56320+65536:s}},(e=function(){try{var e={},t=Object.defineProperty,n=t(e,e,e)&&t}catch(e){}return n}())?e(String.prototype,"codePointAt",{value:t,configurable:!0,writable:!0}):String.prototype.codePointAt=t)},51596:(e,t)=>{function n(){}n.LEXER=0,n.PARSER=1,t.E=n},52625:(e,t,n)=>{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},n=a.ArrayExpression;return o(n.elements,t,"elements",e,1),t},t.arrayPattern=function(e){const t={type:"ArrayPattern",elements:e},n=a.ArrayPattern;return o(n.elements,t,"elements",e,1),t},t.arrayTypeAnnotation=function(e){const t={type:"ArrayTypeAnnotation",elementType:e},n=a.ArrayTypeAnnotation;return o(n.elementType,t,"elementType",e,1),t},t.arrowFunctionExpression=function(e,t,n=!1){const r={type:"ArrowFunctionExpression",params:e,body:t,async:n,expression:null},i=a.ArrowFunctionExpression;return o(i.params,r,"params",e,1),o(i.body,r,"body",t,1),o(i.async,r,"async",n),r},t.assignmentExpression=function(e,t,n){const r={type:"AssignmentExpression",operator:e,left:t,right:n},i=a.AssignmentExpression;return o(i.operator,r,"operator",e),o(i.left,r,"left",t,1),o(i.right,r,"right",n,1),r},t.assignmentPattern=function(e,t){const n={type:"AssignmentPattern",left:e,right:t},r=a.AssignmentPattern;return o(r.left,n,"left",e,1),o(r.right,n,"right",t,1),n},t.awaitExpression=function(e){const t={type:"AwaitExpression",argument:e},n=a.AwaitExpression;return o(n.argument,t,"argument",e,1),t},t.bigIntLiteral=function(e){"bigint"==typeof e&&(e=e.toString());const t={type:"BigIntLiteral",value:e},n=a.BigIntLiteral;return o(n.value,t,"value",e),t},t.binaryExpression=function(e,t,n){const r={type:"BinaryExpression",operator:e,left:t,right:n},i=a.BinaryExpression;return o(i.operator,r,"operator",e),o(i.left,r,"left",t,1),o(i.right,r,"right",n,1),r},t.bindExpression=function(e,t){const n={type:"BindExpression",object:e,callee:t},r=a.BindExpression;return o(r.object,n,"object",e,1),o(r.callee,n,"callee",t,1),n},t.blockStatement=function(e,t=[]){const n={type:"BlockStatement",body:e,directives:t},r=a.BlockStatement;return o(r.body,n,"body",e,1),o(r.directives,n,"directives",t,1),n},t.booleanLiteral=function(e){const t={type:"BooleanLiteral",value:e},n=a.BooleanLiteral;return o(n.value,t,"value",e),t},t.booleanLiteralTypeAnnotation=function(e){const t={type:"BooleanLiteralTypeAnnotation",value:e},n=a.BooleanLiteralTypeAnnotation;return o(n.value,t,"value",e),t},t.booleanTypeAnnotation=function(){return{type:"BooleanTypeAnnotation"}},t.breakStatement=function(e=null){const t={type:"BreakStatement",label:e},n=a.BreakStatement;return o(n.label,t,"label",e,1),t},t.callExpression=function(e,t){const n={type:"CallExpression",callee:e,arguments:t},r=a.CallExpression;return o(r.callee,n,"callee",e,1),o(r.arguments,n,"arguments",t,1),n},t.catchClause=function(e=null,t){const n={type:"CatchClause",param:e,body:t},r=a.CatchClause;return o(r.param,n,"param",e,1),o(r.body,n,"body",t,1),n},t.classAccessorProperty=function(e,t=null,n=null,r=null,i=!1,s=!1){const l={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:n,decorators:r,computed:i,static:s},c=a.ClassAccessorProperty;return o(c.key,l,"key",e,1),o(c.value,l,"value",t,1),o(c.typeAnnotation,l,"typeAnnotation",n,1),o(c.decorators,l,"decorators",r,1),o(c.computed,l,"computed",i),o(c.static,l,"static",s),l},t.classBody=function(e){const t={type:"ClassBody",body:e},n=a.ClassBody;return o(n.body,t,"body",e,1),t},t.classDeclaration=function(e=null,t=null,n,r=null){const i={type:"ClassDeclaration",id:e,superClass:t,body:n,decorators:r},s=a.ClassDeclaration;return o(s.id,i,"id",e,1),o(s.superClass,i,"superClass",t,1),o(s.body,i,"body",n,1),o(s.decorators,i,"decorators",r,1),i},t.classExpression=function(e=null,t=null,n,r=null){const i={type:"ClassExpression",id:e,superClass:t,body:n,decorators:r},s=a.ClassExpression;return o(s.id,i,"id",e,1),o(s.superClass,i,"superClass",t,1),o(s.body,i,"body",n,1),o(s.decorators,i,"decorators",r,1),i},t.classImplements=function(e,t=null){const n={type:"ClassImplements",id:e,typeParameters:t},r=a.ClassImplements;return o(r.id,n,"id",e,1),o(r.typeParameters,n,"typeParameters",t,1),n},t.classMethod=function(e="method",t,n,r,i=!1,s=!1,l=!1,c=!1){const p={type:"ClassMethod",kind:e,key:t,params:n,body:r,computed:i,static:s,generator:l,async:c},u=a.ClassMethod;return o(u.kind,p,"kind",e),o(u.key,p,"key",t,1),o(u.params,p,"params",n,1),o(u.body,p,"body",r,1),o(u.computed,p,"computed",i),o(u.static,p,"static",s),o(u.generator,p,"generator",l),o(u.async,p,"async",c),p},t.classPrivateMethod=function(e="method",t,n,r,i=!1){const s={type:"ClassPrivateMethod",kind:e,key:t,params:n,body:r,static:i},l=a.ClassPrivateMethod;return o(l.kind,s,"kind",e),o(l.key,s,"key",t,1),o(l.params,s,"params",n,1),o(l.body,s,"body",r,1),o(l.static,s,"static",i),s},t.classPrivateProperty=function(e,t=null,n=null,r=!1){const i={type:"ClassPrivateProperty",key:e,value:t,decorators:n,static:r},s=a.ClassPrivateProperty;return o(s.key,i,"key",e,1),o(s.value,i,"value",t,1),o(s.decorators,i,"decorators",n,1),o(s.static,i,"static",r),i},t.classProperty=function(e,t=null,n=null,r=null,i=!1,s=!1){const l={type:"ClassProperty",key:e,value:t,typeAnnotation:n,decorators:r,computed:i,static:s},c=a.ClassProperty;return o(c.key,l,"key",e,1),o(c.value,l,"value",t,1),o(c.typeAnnotation,l,"typeAnnotation",n,1),o(c.decorators,l,"decorators",r,1),o(c.computed,l,"computed",i),o(c.static,l,"static",s),l},t.conditionalExpression=function(e,t,n){const r={type:"ConditionalExpression",test:e,consequent:t,alternate:n},i=a.ConditionalExpression;return o(i.test,r,"test",e,1),o(i.consequent,r,"consequent",t,1),o(i.alternate,r,"alternate",n,1),r},t.continueStatement=function(e=null){const t={type:"ContinueStatement",label:e},n=a.ContinueStatement;return o(n.label,t,"label",e,1),t},t.debuggerStatement=function(){return{type:"DebuggerStatement"}},t.decimalLiteral=function(e){const t={type:"DecimalLiteral",value:e},n=a.DecimalLiteral;return o(n.value,t,"value",e),t},t.declareClass=function(e,t=null,n=null,r){const i={type:"DeclareClass",id:e,typeParameters:t,extends:n,body:r},s=a.DeclareClass;return o(s.id,i,"id",e,1),o(s.typeParameters,i,"typeParameters",t,1),o(s.extends,i,"extends",n,1),o(s.body,i,"body",r,1),i},t.declareExportAllDeclaration=function(e,t=null){const n={type:"DeclareExportAllDeclaration",source:e,attributes:t},r=a.DeclareExportAllDeclaration;return o(r.source,n,"source",e,1),o(r.attributes,n,"attributes",t,1),n},t.declareExportDeclaration=function(e=null,t=null,n=null,r=null){const i={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:n,attributes:r},s=a.DeclareExportDeclaration;return o(s.declaration,i,"declaration",e,1),o(s.specifiers,i,"specifiers",t,1),o(s.source,i,"source",n,1),o(s.attributes,i,"attributes",r,1),i},t.declareFunction=function(e){const t={type:"DeclareFunction",id:e},n=a.DeclareFunction;return o(n.id,t,"id",e,1),t},t.declareInterface=function(e,t=null,n=null,r){const i={type:"DeclareInterface",id:e,typeParameters:t,extends:n,body:r},s=a.DeclareInterface;return o(s.id,i,"id",e,1),o(s.typeParameters,i,"typeParameters",t,1),o(s.extends,i,"extends",n,1),o(s.body,i,"body",r,1),i},t.declareModule=function(e,t,n=null){const r={type:"DeclareModule",id:e,body:t,kind:n},i=a.DeclareModule;return o(i.id,r,"id",e,1),o(i.body,r,"body",t,1),o(i.kind,r,"kind",n),r},t.declareModuleExports=function(e){const t={type:"DeclareModuleExports",typeAnnotation:e},n=a.DeclareModuleExports;return o(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.declareOpaqueType=function(e,t=null,n=null){const r={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:n},i=a.DeclareOpaqueType;return o(i.id,r,"id",e,1),o(i.typeParameters,r,"typeParameters",t,1),o(i.supertype,r,"supertype",n,1),r},t.declareTypeAlias=function(e,t=null,n){const r={type:"DeclareTypeAlias",id:e,typeParameters:t,right:n},i=a.DeclareTypeAlias;return o(i.id,r,"id",e,1),o(i.typeParameters,r,"typeParameters",t,1),o(i.right,r,"right",n,1),r},t.declareVariable=function(e){const t={type:"DeclareVariable",id:e},n=a.DeclareVariable;return o(n.id,t,"id",e,1),t},t.declaredPredicate=function(e){const t={type:"DeclaredPredicate",value:e},n=a.DeclaredPredicate;return o(n.value,t,"value",e,1),t},t.decorator=function(e){const t={type:"Decorator",expression:e},n=a.Decorator;return o(n.expression,t,"expression",e,1),t},t.directive=function(e){const t={type:"Directive",value:e},n=a.Directive;return o(n.value,t,"value",e,1),t},t.directiveLiteral=function(e){const t={type:"DirectiveLiteral",value:e},n=a.DirectiveLiteral;return o(n.value,t,"value",e),t},t.doExpression=function(e,t=!1){const n={type:"DoExpression",body:e,async:t},r=a.DoExpression;return o(r.body,n,"body",e,1),o(r.async,n,"async",t),n},t.doWhileStatement=function(e,t){const n={type:"DoWhileStatement",test:e,body:t},r=a.DoWhileStatement;return o(r.test,n,"test",e,1),o(r.body,n,"body",t,1),n},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},n=a.EnumBooleanBody;return o(n.members,t,"members",e,1),t},t.enumBooleanMember=function(e){const t={type:"EnumBooleanMember",id:e,init:null},n=a.EnumBooleanMember;return o(n.id,t,"id",e,1),t},t.enumDeclaration=function(e,t){const n={type:"EnumDeclaration",id:e,body:t},r=a.EnumDeclaration;return o(r.id,n,"id",e,1),o(r.body,n,"body",t,1),n},t.enumDefaultedMember=function(e){const t={type:"EnumDefaultedMember",id:e},n=a.EnumDefaultedMember;return o(n.id,t,"id",e,1),t},t.enumNumberBody=function(e){const t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null},n=a.EnumNumberBody;return o(n.members,t,"members",e,1),t},t.enumNumberMember=function(e,t){const n={type:"EnumNumberMember",id:e,init:t},r=a.EnumNumberMember;return o(r.id,n,"id",e,1),o(r.init,n,"init",t,1),n},t.enumStringBody=function(e){const t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null},n=a.EnumStringBody;return o(n.members,t,"members",e,1),t},t.enumStringMember=function(e,t){const n={type:"EnumStringMember",id:e,init:t},r=a.EnumStringMember;return o(r.id,n,"id",e,1),o(r.init,n,"init",t,1),n},t.enumSymbolBody=function(e){const t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null},n=a.EnumSymbolBody;return o(n.members,t,"members",e,1),t},t.existsTypeAnnotation=function(){return{type:"ExistsTypeAnnotation"}},t.exportAllDeclaration=function(e){const t={type:"ExportAllDeclaration",source:e},n=a.ExportAllDeclaration;return o(n.source,t,"source",e,1),t},t.exportDefaultDeclaration=function(e){const t={type:"ExportDefaultDeclaration",declaration:e},n=a.ExportDefaultDeclaration;return o(n.declaration,t,"declaration",e,1),t},t.exportDefaultSpecifier=function(e){const t={type:"ExportDefaultSpecifier",exported:e},n=a.ExportDefaultSpecifier;return o(n.exported,t,"exported",e,1),t},t.exportNamedDeclaration=function(e=null,t=[],n=null){const r={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:n},i=a.ExportNamedDeclaration;return o(i.declaration,r,"declaration",e,1),o(i.specifiers,r,"specifiers",t,1),o(i.source,r,"source",n,1),r},t.exportNamespaceSpecifier=function(e){const t={type:"ExportNamespaceSpecifier",exported:e},n=a.ExportNamespaceSpecifier;return o(n.exported,t,"exported",e,1),t},t.exportSpecifier=function(e,t){const n={type:"ExportSpecifier",local:e,exported:t},r=a.ExportSpecifier;return o(r.local,n,"local",e,1),o(r.exported,n,"exported",t,1),n},t.expressionStatement=function(e){const t={type:"ExpressionStatement",expression:e},n=a.ExpressionStatement;return o(n.expression,t,"expression",e,1),t},t.file=function(e,t=null,n=null){const r={type:"File",program:e,comments:t,tokens:n},i=a.File;return o(i.program,r,"program",e,1),o(i.comments,r,"comments",t,1),o(i.tokens,r,"tokens",n),r},t.forInStatement=function(e,t,n){const r={type:"ForInStatement",left:e,right:t,body:n},i=a.ForInStatement;return o(i.left,r,"left",e,1),o(i.right,r,"right",t,1),o(i.body,r,"body",n,1),r},t.forOfStatement=function(e,t,n,r=!1){const i={type:"ForOfStatement",left:e,right:t,body:n,await:r},s=a.ForOfStatement;return o(s.left,i,"left",e,1),o(s.right,i,"right",t,1),o(s.body,i,"body",n,1),o(s.await,i,"await",r),i},t.forStatement=function(e=null,t=null,n=null,r){const i={type:"ForStatement",init:e,test:t,update:n,body:r},s=a.ForStatement;return o(s.init,i,"init",e,1),o(s.test,i,"test",t,1),o(s.update,i,"update",n,1),o(s.body,i,"body",r,1),i},t.functionDeclaration=function(e=null,t,n,r=!1,i=!1){const s={type:"FunctionDeclaration",id:e,params:t,body:n,generator:r,async:i},l=a.FunctionDeclaration;return o(l.id,s,"id",e,1),o(l.params,s,"params",t,1),o(l.body,s,"body",n,1),o(l.generator,s,"generator",r),o(l.async,s,"async",i),s},t.functionExpression=function(e=null,t,n,r=!1,i=!1){const s={type:"FunctionExpression",id:e,params:t,body:n,generator:r,async:i},l=a.FunctionExpression;return o(l.id,s,"id",e,1),o(l.params,s,"params",t,1),o(l.body,s,"body",n,1),o(l.generator,s,"generator",r),o(l.async,s,"async",i),s},t.functionTypeAnnotation=function(e=null,t,n=null,r){const i={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:n,returnType:r},s=a.FunctionTypeAnnotation;return o(s.typeParameters,i,"typeParameters",e,1),o(s.params,i,"params",t,1),o(s.rest,i,"rest",n,1),o(s.returnType,i,"returnType",r,1),i},t.functionTypeParam=function(e=null,t){const n={type:"FunctionTypeParam",name:e,typeAnnotation:t},r=a.FunctionTypeParam;return o(r.name,n,"name",e,1),o(r.typeAnnotation,n,"typeAnnotation",t,1),n},t.genericTypeAnnotation=function(e,t=null){const n={type:"GenericTypeAnnotation",id:e,typeParameters:t},r=a.GenericTypeAnnotation;return o(r.id,n,"id",e,1),o(r.typeParameters,n,"typeParameters",t,1),n},t.identifier=function(e){const t={type:"Identifier",name:e},n=a.Identifier;return o(n.name,t,"name",e),t},t.ifStatement=function(e,t,n=null){const r={type:"IfStatement",test:e,consequent:t,alternate:n},i=a.IfStatement;return o(i.test,r,"test",e,1),o(i.consequent,r,"consequent",t,1),o(i.alternate,r,"alternate",n,1),r},t.import=function(){return{type:"Import"}},t.importAttribute=function(e,t){const n={type:"ImportAttribute",key:e,value:t},r=a.ImportAttribute;return o(r.key,n,"key",e,1),o(r.value,n,"value",t,1),n},t.importDeclaration=function(e,t){const n={type:"ImportDeclaration",specifiers:e,source:t},r=a.ImportDeclaration;return o(r.specifiers,n,"specifiers",e,1),o(r.source,n,"source",t,1),n},t.importDefaultSpecifier=function(e){const t={type:"ImportDefaultSpecifier",local:e},n=a.ImportDefaultSpecifier;return o(n.local,t,"local",e,1),t},t.importExpression=function(e,t=null){const n={type:"ImportExpression",source:e,options:t},r=a.ImportExpression;return o(r.source,n,"source",e,1),o(r.options,n,"options",t,1),n},t.importNamespaceSpecifier=function(e){const t={type:"ImportNamespaceSpecifier",local:e},n=a.ImportNamespaceSpecifier;return o(n.local,t,"local",e,1),t},t.importSpecifier=function(e,t){const n={type:"ImportSpecifier",local:e,imported:t},r=a.ImportSpecifier;return o(r.local,n,"local",e,1),o(r.imported,n,"imported",t,1),n},t.indexedAccessType=function(e,t){const n={type:"IndexedAccessType",objectType:e,indexType:t},r=a.IndexedAccessType;return o(r.objectType,n,"objectType",e,1),o(r.indexType,n,"indexType",t,1),n},t.inferredPredicate=function(){return{type:"InferredPredicate"}},t.interfaceDeclaration=function(e,t=null,n=null,r){const i={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:n,body:r},s=a.InterfaceDeclaration;return o(s.id,i,"id",e,1),o(s.typeParameters,i,"typeParameters",t,1),o(s.extends,i,"extends",n,1),o(s.body,i,"body",r,1),i},t.interfaceExtends=function(e,t=null){const n={type:"InterfaceExtends",id:e,typeParameters:t},r=a.InterfaceExtends;return o(r.id,n,"id",e,1),o(r.typeParameters,n,"typeParameters",t,1),n},t.interfaceTypeAnnotation=function(e=null,t){const n={type:"InterfaceTypeAnnotation",extends:e,body:t},r=a.InterfaceTypeAnnotation;return o(r.extends,n,"extends",e,1),o(r.body,n,"body",t,1),n},t.interpreterDirective=function(e){const t={type:"InterpreterDirective",value:e},n=a.InterpreterDirective;return o(n.value,t,"value",e),t},t.intersectionTypeAnnotation=function(e){const t={type:"IntersectionTypeAnnotation",types:e},n=a.IntersectionTypeAnnotation;return o(n.types,t,"types",e,1),t},t.jSXAttribute=t.jsxAttribute=function(e,t=null){const n={type:"JSXAttribute",name:e,value:t},r=a.JSXAttribute;return o(r.name,n,"name",e,1),o(r.value,n,"value",t,1),n},t.jSXClosingElement=t.jsxClosingElement=function(e){const t={type:"JSXClosingElement",name:e},n=a.JSXClosingElement;return o(n.name,t,"name",e,1),t},t.jSXClosingFragment=t.jsxClosingFragment=function(){return{type:"JSXClosingFragment"}},t.jSXElement=t.jsxElement=function(e,t=null,n,r=null){const i={type:"JSXElement",openingElement:e,closingElement:t,children:n,selfClosing:r},s=a.JSXElement;return o(s.openingElement,i,"openingElement",e,1),o(s.closingElement,i,"closingElement",t,1),o(s.children,i,"children",n,1),o(s.selfClosing,i,"selfClosing",r),i},t.jSXEmptyExpression=t.jsxEmptyExpression=function(){return{type:"JSXEmptyExpression"}},t.jSXExpressionContainer=t.jsxExpressionContainer=function(e){const t={type:"JSXExpressionContainer",expression:e},n=a.JSXExpressionContainer;return o(n.expression,t,"expression",e,1),t},t.jSXFragment=t.jsxFragment=function(e,t,n){const r={type:"JSXFragment",openingFragment:e,closingFragment:t,children:n},i=a.JSXFragment;return o(i.openingFragment,r,"openingFragment",e,1),o(i.closingFragment,r,"closingFragment",t,1),o(i.children,r,"children",n,1),r},t.jSXIdentifier=t.jsxIdentifier=function(e){const t={type:"JSXIdentifier",name:e},n=a.JSXIdentifier;return o(n.name,t,"name",e),t},t.jSXMemberExpression=t.jsxMemberExpression=function(e,t){const n={type:"JSXMemberExpression",object:e,property:t},r=a.JSXMemberExpression;return o(r.object,n,"object",e,1),o(r.property,n,"property",t,1),n},t.jSXNamespacedName=t.jsxNamespacedName=function(e,t){const n={type:"JSXNamespacedName",namespace:e,name:t},r=a.JSXNamespacedName;return o(r.namespace,n,"namespace",e,1),o(r.name,n,"name",t,1),n},t.jSXOpeningElement=t.jsxOpeningElement=function(e,t,n=!1){const r={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:n},i=a.JSXOpeningElement;return o(i.name,r,"name",e,1),o(i.attributes,r,"attributes",t,1),o(i.selfClosing,r,"selfClosing",n),r},t.jSXOpeningFragment=t.jsxOpeningFragment=function(){return{type:"JSXOpeningFragment"}},t.jSXSpreadAttribute=t.jsxSpreadAttribute=function(e){const t={type:"JSXSpreadAttribute",argument:e},n=a.JSXSpreadAttribute;return o(n.argument,t,"argument",e,1),t},t.jSXSpreadChild=t.jsxSpreadChild=function(e){const t={type:"JSXSpreadChild",expression:e},n=a.JSXSpreadChild;return o(n.expression,t,"expression",e,1),t},t.jSXText=t.jsxText=function(e){const t={type:"JSXText",value:e},n=a.JSXText;return o(n.value,t,"value",e),t},t.labeledStatement=function(e,t){const n={type:"LabeledStatement",label:e,body:t},r=a.LabeledStatement;return o(r.label,n,"label",e,1),o(r.body,n,"body",t,1),n},t.logicalExpression=function(e,t,n){const r={type:"LogicalExpression",operator:e,left:t,right:n},i=a.LogicalExpression;return o(i.operator,r,"operator",e),o(i.left,r,"left",t,1),o(i.right,r,"right",n,1),r},t.memberExpression=function(e,t,n=!1,r=null){const i={type:"MemberExpression",object:e,property:t,computed:n,optional:r},s=a.MemberExpression;return o(s.object,i,"object",e,1),o(s.property,i,"property",t,1),o(s.computed,i,"computed",n),o(s.optional,i,"optional",r),i},t.metaProperty=function(e,t){const n={type:"MetaProperty",meta:e,property:t},r=a.MetaProperty;return o(r.meta,n,"meta",e,1),o(r.property,n,"property",t,1),n},t.mixedTypeAnnotation=function(){return{type:"MixedTypeAnnotation"}},t.moduleExpression=function(e){const t={type:"ModuleExpression",body:e},n=a.ModuleExpression;return o(n.body,t,"body",e,1),t},t.newExpression=function(e,t){const n={type:"NewExpression",callee:e,arguments:t},r=a.NewExpression;return o(r.callee,n,"callee",e,1),o(r.arguments,n,"arguments",t,1),n},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},n=a.NullableTypeAnnotation;return o(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.numberLiteral=function(e){return(0,i.default)("NumberLiteral","NumericLiteral","The node type "),l(e)},t.numberLiteralTypeAnnotation=function(e){const t={type:"NumberLiteralTypeAnnotation",value:e},n=a.NumberLiteralTypeAnnotation;return o(n.value,t,"value",e),t},t.numberTypeAnnotation=function(){return{type:"NumberTypeAnnotation"}},t.numericLiteral=l,t.objectExpression=function(e){const t={type:"ObjectExpression",properties:e},n=a.ObjectExpression;return o(n.properties,t,"properties",e,1),t},t.objectMethod=function(e="method",t,n,r,i=!1,s=!1,l=!1){const c={type:"ObjectMethod",kind:e,key:t,params:n,body:r,computed:i,generator:s,async:l},p=a.ObjectMethod;return o(p.kind,c,"kind",e),o(p.key,c,"key",t,1),o(p.params,c,"params",n,1),o(p.body,c,"body",r,1),o(p.computed,c,"computed",i),o(p.generator,c,"generator",s),o(p.async,c,"async",l),c},t.objectPattern=function(e){const t={type:"ObjectPattern",properties:e},n=a.ObjectPattern;return o(n.properties,t,"properties",e,1),t},t.objectProperty=function(e,t,n=!1,r=!1,i=null){const s={type:"ObjectProperty",key:e,value:t,computed:n,shorthand:r,decorators:i},l=a.ObjectProperty;return o(l.key,s,"key",e,1),o(l.value,s,"value",t,1),o(l.computed,s,"computed",n),o(l.shorthand,s,"shorthand",r),o(l.decorators,s,"decorators",i,1),s},t.objectTypeAnnotation=function(e,t=[],n=[],r=[],i=!1){const s={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:n,internalSlots:r,exact:i},l=a.ObjectTypeAnnotation;return o(l.properties,s,"properties",e,1),o(l.indexers,s,"indexers",t,1),o(l.callProperties,s,"callProperties",n,1),o(l.internalSlots,s,"internalSlots",r,1),o(l.exact,s,"exact",i),s},t.objectTypeCallProperty=function(e){const t={type:"ObjectTypeCallProperty",value:e,static:null},n=a.ObjectTypeCallProperty;return o(n.value,t,"value",e,1),t},t.objectTypeIndexer=function(e=null,t,n,r=null){const i={type:"ObjectTypeIndexer",id:e,key:t,value:n,variance:r,static:null},s=a.ObjectTypeIndexer;return o(s.id,i,"id",e,1),o(s.key,i,"key",t,1),o(s.value,i,"value",n,1),o(s.variance,i,"variance",r,1),i},t.objectTypeInternalSlot=function(e,t,n,r,i){const s={type:"ObjectTypeInternalSlot",id:e,value:t,optional:n,static:r,method:i},l=a.ObjectTypeInternalSlot;return o(l.id,s,"id",e,1),o(l.value,s,"value",t,1),o(l.optional,s,"optional",n),o(l.static,s,"static",r),o(l.method,s,"method",i),s},t.objectTypeProperty=function(e,t,n=null){const r={type:"ObjectTypeProperty",key:e,value:t,variance:n,kind:null,method:null,optional:null,proto:null,static:null},i=a.ObjectTypeProperty;return o(i.key,r,"key",e,1),o(i.value,r,"value",t,1),o(i.variance,r,"variance",n,1),r},t.objectTypeSpreadProperty=function(e){const t={type:"ObjectTypeSpreadProperty",argument:e},n=a.ObjectTypeSpreadProperty;return o(n.argument,t,"argument",e,1),t},t.opaqueType=function(e,t=null,n=null,r){const i={type:"OpaqueType",id:e,typeParameters:t,supertype:n,impltype:r},s=a.OpaqueType;return o(s.id,i,"id",e,1),o(s.typeParameters,i,"typeParameters",t,1),o(s.supertype,i,"supertype",n,1),o(s.impltype,i,"impltype",r,1),i},t.optionalCallExpression=function(e,t,n){const r={type:"OptionalCallExpression",callee:e,arguments:t,optional:n},i=a.OptionalCallExpression;return o(i.callee,r,"callee",e,1),o(i.arguments,r,"arguments",t,1),o(i.optional,r,"optional",n),r},t.optionalIndexedAccessType=function(e,t){const n={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null},r=a.OptionalIndexedAccessType;return o(r.objectType,n,"objectType",e,1),o(r.indexType,n,"indexType",t,1),n},t.optionalMemberExpression=function(e,t,n=!1,r){const i={type:"OptionalMemberExpression",object:e,property:t,computed:n,optional:r},s=a.OptionalMemberExpression;return o(s.object,i,"object",e,1),o(s.property,i,"property",t,1),o(s.computed,i,"computed",n),o(s.optional,i,"optional",r),i},t.parenthesizedExpression=function(e){const t={type:"ParenthesizedExpression",expression:e},n=a.ParenthesizedExpression;return o(n.expression,t,"expression",e,1),t},t.pipelineBareFunction=function(e){const t={type:"PipelineBareFunction",callee:e},n=a.PipelineBareFunction;return o(n.callee,t,"callee",e,1),t},t.pipelinePrimaryTopicReference=function(){return{type:"PipelinePrimaryTopicReference"}},t.pipelineTopicExpression=function(e){const t={type:"PipelineTopicExpression",expression:e},n=a.PipelineTopicExpression;return o(n.expression,t,"expression",e,1),t},t.placeholder=function(e,t){const n={type:"Placeholder",expectedNode:e,name:t},r=a.Placeholder;return o(r.expectedNode,n,"expectedNode",e),o(r.name,n,"name",t,1),n},t.privateName=function(e){const t={type:"PrivateName",id:e},n=a.PrivateName;return o(n.id,t,"id",e,1),t},t.program=function(e,t=[],n="script",r=null){const i={type:"Program",body:e,directives:t,sourceType:n,interpreter:r},s=a.Program;return o(s.body,i,"body",e,1),o(s.directives,i,"directives",t,1),o(s.sourceType,i,"sourceType",n),o(s.interpreter,i,"interpreter",r,1),i},t.qualifiedTypeIdentifier=function(e,t){const n={type:"QualifiedTypeIdentifier",id:e,qualification:t},r=a.QualifiedTypeIdentifier;return o(r.id,n,"id",e,1),o(r.qualification,n,"qualification",t,1),n},t.recordExpression=function(e){const t={type:"RecordExpression",properties:e},n=a.RecordExpression;return o(n.properties,t,"properties",e,1),t},t.regExpLiteral=c,t.regexLiteral=function(e,t=""){return(0,i.default)("RegexLiteral","RegExpLiteral","The node type "),c(e,t)},t.restElement=p,t.restProperty=function(e){return(0,i.default)("RestProperty","RestElement","The node type "),p(e)},t.returnStatement=function(e=null){const t={type:"ReturnStatement",argument:e},n=a.ReturnStatement;return o(n.argument,t,"argument",e,1),t},t.sequenceExpression=function(e){const t={type:"SequenceExpression",expressions:e},n=a.SequenceExpression;return o(n.expressions,t,"expressions",e,1),t},t.spreadElement=u,t.spreadProperty=function(e){return(0,i.default)("SpreadProperty","SpreadElement","The node type "),u(e)},t.staticBlock=function(e){const t={type:"StaticBlock",body:e},n=a.StaticBlock;return o(n.body,t,"body",e,1),t},t.stringLiteral=function(e){const t={type:"StringLiteral",value:e},n=a.StringLiteral;return o(n.value,t,"value",e),t},t.stringLiteralTypeAnnotation=function(e){const t={type:"StringLiteralTypeAnnotation",value:e},n=a.StringLiteralTypeAnnotation;return o(n.value,t,"value",e),t},t.stringTypeAnnotation=function(){return{type:"StringTypeAnnotation"}},t.super=function(){return{type:"Super"}},t.switchCase=function(e=null,t){const n={type:"SwitchCase",test:e,consequent:t},r=a.SwitchCase;return o(r.test,n,"test",e,1),o(r.consequent,n,"consequent",t,1),n},t.switchStatement=function(e,t){const n={type:"SwitchStatement",discriminant:e,cases:t},r=a.SwitchStatement;return o(r.discriminant,n,"discriminant",e,1),o(r.cases,n,"cases",t,1),n},t.symbolTypeAnnotation=function(){return{type:"SymbolTypeAnnotation"}},t.taggedTemplateExpression=function(e,t){const n={type:"TaggedTemplateExpression",tag:e,quasi:t},r=a.TaggedTemplateExpression;return o(r.tag,n,"tag",e,1),o(r.quasi,n,"quasi",t,1),n},t.templateElement=function(e,t=!1){const n={type:"TemplateElement",value:e,tail:t},r=a.TemplateElement;return o(r.value,n,"value",e),o(r.tail,n,"tail",t),n},t.templateLiteral=function(e,t){const n={type:"TemplateLiteral",quasis:e,expressions:t},r=a.TemplateLiteral;return o(r.quasis,n,"quasis",e,1),o(r.expressions,n,"expressions",t,1),n},t.thisExpression=function(){return{type:"ThisExpression"}},t.thisTypeAnnotation=function(){return{type:"ThisTypeAnnotation"}},t.throwStatement=function(e){const t={type:"ThrowStatement",argument:e},n=a.ThrowStatement;return o(n.argument,t,"argument",e,1),t},t.topicReference=function(){return{type:"TopicReference"}},t.tryStatement=function(e,t=null,n=null){const r={type:"TryStatement",block:e,handler:t,finalizer:n},i=a.TryStatement;return o(i.block,r,"block",e,1),o(i.handler,r,"handler",t,1),o(i.finalizer,r,"finalizer",n,1),r},t.tSAnyKeyword=t.tsAnyKeyword=function(){return{type:"TSAnyKeyword"}},t.tSArrayType=t.tsArrayType=function(e){const t={type:"TSArrayType",elementType:e},n=a.TSArrayType;return o(n.elementType,t,"elementType",e,1),t},t.tSAsExpression=t.tsAsExpression=function(e,t){const n={type:"TSAsExpression",expression:e,typeAnnotation:t},r=a.TSAsExpression;return o(r.expression,n,"expression",e,1),o(r.typeAnnotation,n,"typeAnnotation",t,1),n},t.tSBigIntKeyword=t.tsBigIntKeyword=function(){return{type:"TSBigIntKeyword"}},t.tSBooleanKeyword=t.tsBooleanKeyword=function(){return{type:"TSBooleanKeyword"}},t.tSCallSignatureDeclaration=t.tsCallSignatureDeclaration=function(e=null,t,n=null){const r={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:n},i=a.TSCallSignatureDeclaration;return o(i.typeParameters,r,"typeParameters",e,1),o(i.parameters,r,"parameters",t,1),o(i.typeAnnotation,r,"typeAnnotation",n,1),r},t.tSConditionalType=t.tsConditionalType=function(e,t,n,r){const i={type:"TSConditionalType",checkType:e,extendsType:t,trueType:n,falseType:r},s=a.TSConditionalType;return o(s.checkType,i,"checkType",e,1),o(s.extendsType,i,"extendsType",t,1),o(s.trueType,i,"trueType",n,1),o(s.falseType,i,"falseType",r,1),i},t.tSConstructSignatureDeclaration=t.tsConstructSignatureDeclaration=function(e=null,t,n=null){const r={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:n},i=a.TSConstructSignatureDeclaration;return o(i.typeParameters,r,"typeParameters",e,1),o(i.parameters,r,"parameters",t,1),o(i.typeAnnotation,r,"typeAnnotation",n,1),r},t.tSConstructorType=t.tsConstructorType=function(e=null,t,n=null){const r={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:n},i=a.TSConstructorType;return o(i.typeParameters,r,"typeParameters",e,1),o(i.parameters,r,"parameters",t,1),o(i.typeAnnotation,r,"typeAnnotation",n,1),r},t.tSDeclareFunction=t.tsDeclareFunction=function(e=null,t=null,n,r=null){const i={type:"TSDeclareFunction",id:e,typeParameters:t,params:n,returnType:r},s=a.TSDeclareFunction;return o(s.id,i,"id",e,1),o(s.typeParameters,i,"typeParameters",t,1),o(s.params,i,"params",n,1),o(s.returnType,i,"returnType",r,1),i},t.tSDeclareMethod=t.tsDeclareMethod=function(e=null,t,n=null,r,i=null){const s={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:n,params:r,returnType:i},l=a.TSDeclareMethod;return o(l.decorators,s,"decorators",e,1),o(l.key,s,"key",t,1),o(l.typeParameters,s,"typeParameters",n,1),o(l.params,s,"params",r,1),o(l.returnType,s,"returnType",i,1),s},t.tSEnumBody=t.tsEnumBody=function(e){const t={type:"TSEnumBody",members:e},n=a.TSEnumBody;return o(n.members,t,"members",e,1),t},t.tSEnumDeclaration=t.tsEnumDeclaration=function(e,t){const n={type:"TSEnumDeclaration",id:e,members:t},r=a.TSEnumDeclaration;return o(r.id,n,"id",e,1),o(r.members,n,"members",t,1),n},t.tSEnumMember=t.tsEnumMember=function(e,t=null){const n={type:"TSEnumMember",id:e,initializer:t},r=a.TSEnumMember;return o(r.id,n,"id",e,1),o(r.initializer,n,"initializer",t,1),n},t.tSExportAssignment=t.tsExportAssignment=function(e){const t={type:"TSExportAssignment",expression:e},n=a.TSExportAssignment;return o(n.expression,t,"expression",e,1),t},t.tSExpressionWithTypeArguments=t.tsExpressionWithTypeArguments=function(e,t=null){const n={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t},r=a.TSExpressionWithTypeArguments;return o(r.expression,n,"expression",e,1),o(r.typeParameters,n,"typeParameters",t,1),n},t.tSExternalModuleReference=t.tsExternalModuleReference=function(e){const t={type:"TSExternalModuleReference",expression:e},n=a.TSExternalModuleReference;return o(n.expression,t,"expression",e,1),t},t.tSFunctionType=t.tsFunctionType=function(e=null,t,n=null){const r={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:n},i=a.TSFunctionType;return o(i.typeParameters,r,"typeParameters",e,1),o(i.parameters,r,"parameters",t,1),o(i.typeAnnotation,r,"typeAnnotation",n,1),r},t.tSImportEqualsDeclaration=t.tsImportEqualsDeclaration=function(e,t){const n={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null},r=a.TSImportEqualsDeclaration;return o(r.id,n,"id",e,1),o(r.moduleReference,n,"moduleReference",t,1),n},t.tSImportType=t.tsImportType=function(e,t=null,n=null){const r={type:"TSImportType",argument:e,qualifier:t,typeParameters:n},i=a.TSImportType;return o(i.argument,r,"argument",e,1),o(i.qualifier,r,"qualifier",t,1),o(i.typeParameters,r,"typeParameters",n,1),r},t.tSIndexSignature=t.tsIndexSignature=function(e,t=null){const n={type:"TSIndexSignature",parameters:e,typeAnnotation:t},r=a.TSIndexSignature;return o(r.parameters,n,"parameters",e,1),o(r.typeAnnotation,n,"typeAnnotation",t,1),n},t.tSIndexedAccessType=t.tsIndexedAccessType=function(e,t){const n={type:"TSIndexedAccessType",objectType:e,indexType:t},r=a.TSIndexedAccessType;return o(r.objectType,n,"objectType",e,1),o(r.indexType,n,"indexType",t,1),n},t.tSInferType=t.tsInferType=function(e){const t={type:"TSInferType",typeParameter:e},n=a.TSInferType;return o(n.typeParameter,t,"typeParameter",e,1),t},t.tSInstantiationExpression=t.tsInstantiationExpression=function(e,t=null){const n={type:"TSInstantiationExpression",expression:e,typeParameters:t},r=a.TSInstantiationExpression;return o(r.expression,n,"expression",e,1),o(r.typeParameters,n,"typeParameters",t,1),n},t.tSInterfaceBody=t.tsInterfaceBody=function(e){const t={type:"TSInterfaceBody",body:e},n=a.TSInterfaceBody;return o(n.body,t,"body",e,1),t},t.tSInterfaceDeclaration=t.tsInterfaceDeclaration=function(e,t=null,n=null,r){const i={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:n,body:r},s=a.TSInterfaceDeclaration;return o(s.id,i,"id",e,1),o(s.typeParameters,i,"typeParameters",t,1),o(s.extends,i,"extends",n,1),o(s.body,i,"body",r,1),i},t.tSIntersectionType=t.tsIntersectionType=function(e){const t={type:"TSIntersectionType",types:e},n=a.TSIntersectionType;return o(n.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},n=a.TSLiteralType;return o(n.literal,t,"literal",e,1),t},t.tSMappedType=t.tsMappedType=function(e,t=null,n=null){const r={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:n},i=a.TSMappedType;return o(i.typeParameter,r,"typeParameter",e,1),o(i.typeAnnotation,r,"typeAnnotation",t,1),o(i.nameType,r,"nameType",n,1),r},t.tSMethodSignature=t.tsMethodSignature=function(e,t=null,n,r=null){const i={type:"TSMethodSignature",key:e,typeParameters:t,parameters:n,typeAnnotation:r,kind:null},s=a.TSMethodSignature;return o(s.key,i,"key",e,1),o(s.typeParameters,i,"typeParameters",t,1),o(s.parameters,i,"parameters",n,1),o(s.typeAnnotation,i,"typeAnnotation",r,1),i},t.tSModuleBlock=t.tsModuleBlock=function(e){const t={type:"TSModuleBlock",body:e},n=a.TSModuleBlock;return o(n.body,t,"body",e,1),t},t.tSModuleDeclaration=t.tsModuleDeclaration=function(e,t){const n={type:"TSModuleDeclaration",id:e,body:t,kind:null},r=a.TSModuleDeclaration;return o(r.id,n,"id",e,1),o(r.body,n,"body",t,1),n},t.tSNamedTupleMember=t.tsNamedTupleMember=function(e,t,n=!1){const r={type:"TSNamedTupleMember",label:e,elementType:t,optional:n},i=a.TSNamedTupleMember;return o(i.label,r,"label",e,1),o(i.elementType,r,"elementType",t,1),o(i.optional,r,"optional",n),r},t.tSNamespaceExportDeclaration=t.tsNamespaceExportDeclaration=function(e){const t={type:"TSNamespaceExportDeclaration",id:e},n=a.TSNamespaceExportDeclaration;return o(n.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},n=a.TSNonNullExpression;return o(n.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},n=a.TSOptionalType;return o(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSParameterProperty=t.tsParameterProperty=function(e){const t={type:"TSParameterProperty",parameter:e},n=a.TSParameterProperty;return o(n.parameter,t,"parameter",e,1),t},t.tSParenthesizedType=t.tsParenthesizedType=function(e){const t={type:"TSParenthesizedType",typeAnnotation:e},n=a.TSParenthesizedType;return o(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSPropertySignature=t.tsPropertySignature=function(e,t=null){const n={type:"TSPropertySignature",key:e,typeAnnotation:t},r=a.TSPropertySignature;return o(r.key,n,"key",e,1),o(r.typeAnnotation,n,"typeAnnotation",t,1),n},t.tSQualifiedName=t.tsQualifiedName=function(e,t){const n={type:"TSQualifiedName",left:e,right:t},r=a.TSQualifiedName;return o(r.left,n,"left",e,1),o(r.right,n,"right",t,1),n},t.tSRestType=t.tsRestType=function(e){const t={type:"TSRestType",typeAnnotation:e},n=a.TSRestType;return o(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSSatisfiesExpression=t.tsSatisfiesExpression=function(e,t){const n={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},r=a.TSSatisfiesExpression;return o(r.expression,n,"expression",e,1),o(r.typeAnnotation,n,"typeAnnotation",t,1),n},t.tSStringKeyword=t.tsStringKeyword=function(){return{type:"TSStringKeyword"}},t.tSSymbolKeyword=t.tsSymbolKeyword=function(){return{type:"TSSymbolKeyword"}},t.tSTemplateLiteralType=t.tsTemplateLiteralType=function(e,t){const n={type:"TSTemplateLiteralType",quasis:e,types:t},r=a.TSTemplateLiteralType;return o(r.quasis,n,"quasis",e,1),o(r.types,n,"types",t,1),n},t.tSThisType=t.tsThisType=function(){return{type:"TSThisType"}},t.tSTupleType=t.tsTupleType=function(e){const t={type:"TSTupleType",elementTypes:e},n=a.TSTupleType;return o(n.elementTypes,t,"elementTypes",e,1),t},t.tSTypeAliasDeclaration=t.tsTypeAliasDeclaration=function(e,t=null,n){const r={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:n},i=a.TSTypeAliasDeclaration;return o(i.id,r,"id",e,1),o(i.typeParameters,r,"typeParameters",t,1),o(i.typeAnnotation,r,"typeAnnotation",n,1),r},t.tSTypeAnnotation=t.tsTypeAnnotation=function(e){const t={type:"TSTypeAnnotation",typeAnnotation:e},n=a.TSTypeAnnotation;return o(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSTypeAssertion=t.tsTypeAssertion=function(e,t){const n={type:"TSTypeAssertion",typeAnnotation:e,expression:t},r=a.TSTypeAssertion;return o(r.typeAnnotation,n,"typeAnnotation",e,1),o(r.expression,n,"expression",t,1),n},t.tSTypeLiteral=t.tsTypeLiteral=function(e){const t={type:"TSTypeLiteral",members:e},n=a.TSTypeLiteral;return o(n.members,t,"members",e,1),t},t.tSTypeOperator=t.tsTypeOperator=function(e,t="keyof"){const n={type:"TSTypeOperator",typeAnnotation:e,operator:t},r=a.TSTypeOperator;return o(r.typeAnnotation,n,"typeAnnotation",e,1),o(r.operator,n,"operator",t),n},t.tSTypeParameter=t.tsTypeParameter=function(e=null,t=null,n){const r={type:"TSTypeParameter",constraint:e,default:t,name:n},i=a.TSTypeParameter;return o(i.constraint,r,"constraint",e,1),o(i.default,r,"default",t,1),o(i.name,r,"name",n),r},t.tSTypeParameterDeclaration=t.tsTypeParameterDeclaration=function(e){const t={type:"TSTypeParameterDeclaration",params:e},n=a.TSTypeParameterDeclaration;return o(n.params,t,"params",e,1),t},t.tSTypeParameterInstantiation=t.tsTypeParameterInstantiation=function(e){const t={type:"TSTypeParameterInstantiation",params:e},n=a.TSTypeParameterInstantiation;return o(n.params,t,"params",e,1),t},t.tSTypePredicate=t.tsTypePredicate=function(e,t=null,n=null){const r={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:n},i=a.TSTypePredicate;return o(i.parameterName,r,"parameterName",e,1),o(i.typeAnnotation,r,"typeAnnotation",t,1),o(i.asserts,r,"asserts",n),r},t.tSTypeQuery=t.tsTypeQuery=function(e,t=null){const n={type:"TSTypeQuery",exprName:e,typeParameters:t},r=a.TSTypeQuery;return o(r.exprName,n,"exprName",e,1),o(r.typeParameters,n,"typeParameters",t,1),n},t.tSTypeReference=t.tsTypeReference=function(e,t=null){const n={type:"TSTypeReference",typeName:e,typeParameters:t},r=a.TSTypeReference;return o(r.typeName,n,"typeName",e,1),o(r.typeParameters,n,"typeParameters",t,1),n},t.tSUndefinedKeyword=t.tsUndefinedKeyword=function(){return{type:"TSUndefinedKeyword"}},t.tSUnionType=t.tsUnionType=function(e){const t={type:"TSUnionType",types:e},n=a.TSUnionType;return o(n.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},n=a.TupleExpression;return o(n.elements,t,"elements",e,1),t},t.tupleTypeAnnotation=function(e){const t={type:"TupleTypeAnnotation",types:e},n=a.TupleTypeAnnotation;return o(n.types,t,"types",e,1),t},t.typeAlias=function(e,t=null,n){const r={type:"TypeAlias",id:e,typeParameters:t,right:n},i=a.TypeAlias;return o(i.id,r,"id",e,1),o(i.typeParameters,r,"typeParameters",t,1),o(i.right,r,"right",n,1),r},t.typeAnnotation=function(e){const t={type:"TypeAnnotation",typeAnnotation:e},n=a.TypeAnnotation;return o(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.typeCastExpression=function(e,t){const n={type:"TypeCastExpression",expression:e,typeAnnotation:t},r=a.TypeCastExpression;return o(r.expression,n,"expression",e,1),o(r.typeAnnotation,n,"typeAnnotation",t,1),n},t.typeParameter=function(e=null,t=null,n=null){const r={type:"TypeParameter",bound:e,default:t,variance:n,name:null},i=a.TypeParameter;return o(i.bound,r,"bound",e,1),o(i.default,r,"default",t,1),o(i.variance,r,"variance",n,1),r},t.typeParameterDeclaration=function(e){const t={type:"TypeParameterDeclaration",params:e},n=a.TypeParameterDeclaration;return o(n.params,t,"params",e,1),t},t.typeParameterInstantiation=function(e){const t={type:"TypeParameterInstantiation",params:e},n=a.TypeParameterInstantiation;return o(n.params,t,"params",e,1),t},t.typeofTypeAnnotation=function(e){const t={type:"TypeofTypeAnnotation",argument:e},n=a.TypeofTypeAnnotation;return o(n.argument,t,"argument",e,1),t},t.unaryExpression=function(e,t,n=!0){const r={type:"UnaryExpression",operator:e,argument:t,prefix:n},i=a.UnaryExpression;return o(i.operator,r,"operator",e),o(i.argument,r,"argument",t,1),o(i.prefix,r,"prefix",n),r},t.unionTypeAnnotation=function(e){const t={type:"UnionTypeAnnotation",types:e},n=a.UnionTypeAnnotation;return o(n.types,t,"types",e,1),t},t.updateExpression=function(e,t,n=!1){const r={type:"UpdateExpression",operator:e,argument:t,prefix:n},i=a.UpdateExpression;return o(i.operator,r,"operator",e),o(i.argument,r,"argument",t,1),o(i.prefix,r,"prefix",n),r},t.v8IntrinsicIdentifier=function(e){const t={type:"V8IntrinsicIdentifier",name:e},n=a.V8IntrinsicIdentifier;return o(n.name,t,"name",e),t},t.variableDeclaration=function(e,t){const n={type:"VariableDeclaration",kind:e,declarations:t},r=a.VariableDeclaration;return o(r.kind,n,"kind",e),o(r.declarations,n,"declarations",t,1),n},t.variableDeclarator=function(e,t=null){const n={type:"VariableDeclarator",id:e,init:t},r=a.VariableDeclarator;return o(r.id,n,"id",e,1),o(r.init,n,"init",t,1),n},t.variance=function(e){const t={type:"Variance",kind:e},n=a.Variance;return o(n.kind,t,"kind",e),t},t.voidPattern=function(){return{type:"VoidPattern"}},t.voidTypeAnnotation=function(){return{type:"VoidTypeAnnotation"}},t.whileStatement=function(e,t){const n={type:"WhileStatement",test:e,body:t},r=a.WhileStatement;return o(r.test,n,"test",e,1),o(r.body,n,"body",t,1),n},t.withStatement=function(e,t){const n={type:"WithStatement",object:e,body:t},r=a.WithStatement;return o(r.object,n,"object",e,1),o(r.body,n,"body",t,1),n},t.yieldExpression=function(e=null,t=!1){const n={type:"YieldExpression",argument:e,delegate:t},r=a.YieldExpression;return o(r.argument,n,"argument",e,1),o(r.delegate,n,"delegate",t),n};var r=n(59751),i=n(74641),s=n(73261);const{validateInternal:o}=r,{NODE_FIELDS:a}=s;function l(e){const t={type:"NumericLiteral",value:e},n=a.NumericLiteral;return o(n.value,t,"value",e),t}function c(e,t=""){const n={type:"RegExpLiteral",pattern:e,flags:t},r=a.RegExpLiteral;return o(r.pattern,n,"pattern",e),o(r.flags,n,"flags",t),n}function p(e){const t={type:"RestElement",argument:e},n=a.RestElement;return o(n.argument,t,"argument",e,1),t}function u(e){const t={type:"SpreadElement",argument:e},n=a.SpreadElement;return o(n.argument,t,"argument",e,1),t}},53896:(e,t,n)=>{var r=n(67787).Buffer;e.exports=function(e,t){for(var n=Math.min(e.length,t.length),i=new r(n),s=0;s<n;++s)i[s]=e[s]^t[s];return i}},54072:(e,t,n)=>{var r=n(25003),i=n(55128).Reporter,s=n(67787).Buffer;function o(e,t){i.call(this,t),s.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function a(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return e instanceof a||(e=new a(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=s.byteLength(e);else{if(!s.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}r(o,i),t.t=o,o.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},o.prototype.restore=function(e){var t=new o(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},o.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var n=new o(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},o.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.d=a,a.prototype.join=function(e,t){return e||(e=new s(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(e,t),t+=n.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):s.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},54390:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){const l=[];let c=!0;for(const p of t)if((0,i.isEmptyStatement)(p)||(c=!1),(0,i.isExpression)(p))l.push(p);else if((0,i.isExpressionStatement)(p))l.push(p.expression);else if((0,i.isVariableDeclaration)(p)){if("var"!==p.kind)return;for(const e of p.declarations){const t=(0,r.default)(e);for(const e of Object.keys(t))n.push({kind:p.kind,id:(0,a.default)(t[e])});e.init&&l.push((0,s.assignmentExpression)("=",e.id,e.init))}c=!0}else if((0,i.isIfStatement)(p)){const t=p.consequent?e([p.consequent],n):(0,o.buildUndefinedNode)(),r=p.alternate?e([p.alternate],n):(0,o.buildUndefinedNode)();if(!t||!r)return;l.push((0,s.conditionalExpression)(p.test,t,r))}else if((0,i.isBlockStatement)(p)){const t=e(p.body,n);if(!t)return;l.push(t)}else{if(!(0,i.isEmptyStatement)(p))return;0===t.indexOf(p)&&(c=!0)}return c&&l.push((0,o.buildUndefinedNode)()),1===l.length?l[0]:(0,s.sequenceExpression)(l)};var r=n(68830),i=n(63555),s=n(82208),o=n(62062),a=n(16938)},54409:(e,t,n)=>{e.exports=s;var r=n(29075),i=Object.create(n(26571));function s(e){if(!(this instanceof s))return new s(e);r.call(this,e)}i.inherits=n(25003),i.inherits(s,r),s.prototype._transform=function(e,t,n){n(null,e)}},54667:(e,t)=>{t.byteLength=function(e){var t=a(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,s=a(e),o=s[0],l=s[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,o,l)),p=0,u=l>0?o-4:o;for(n=0;n<u;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[p++]=t>>16&255,c[p++]=t>>8&255,c[p++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[p++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[p++]=t>>8&255,c[p++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,s=[],o=16383,a=0,c=r-i;a<c;a+=o)s.push(l(e,a,a+o>c?c:a+o));return 1===i?(t=e[r-1],s.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],s.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),s.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)n[o]=s[o],r[s.charCodeAt(o)]=o;function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var i,s,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(n[(s=i)>>18&63]+n[s>>12&63]+n[s>>6&63]+n[63&s]);return o.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),n=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":n[e.name]=e}}return n}},55128:(e,t,n)=>{var r=t;r.Reporter=n(74591).a,r.DecoderBuffer=n(54072).t,r.EncoderBuffer=n(54072).d,r.Node=n(37254)},55186:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n=!1){return e.object=(0,r.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!n,e};var r=n(82208)},55354:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){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:!n||"ObjectPattern"!==n.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==n||!n.source)&&t.local===e;case"TSEnumMember":return t.id!==e}return!0}},56049:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentPlaceholder=function(){this.tokenChar(63)},t.ArrayPattern=t.ArrayExpression=function(e){const t=e.elements,n=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<n-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),n=this.format.jsescOption,r=e.value,s=r+"";n.numbers?this.number(i(r,n),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)&&o(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value);if(this.print(e.key),e.shorthand&&o(e.key)&&o(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 n,r;if("bar"===this.format.recordAndTupleSyntaxType)n="{|",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).`);n="#{",r="}"}this.token(n),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 n=i(e.value,this.format.jsescOption);this.token(n)},t.TopicReference=function(){const{topicToken:e}=this.format;if(!c.has(e)){const t=JSON.stringify(e),n=Array.from(c,(e=>JSON.stringify(e)));throw new Error(`The "topicToken" generator option must be one of ${n.join(", ")} (${t} received instead).`)}this.token(e)},t.TupleExpression=function(e){const t=e.elements,n=t.length;let r,i;if("bar"===this.format.recordAndTupleSyntaxType)r="[|",i="|]";else{if("hash"!==this.format.recordAndTupleSyntaxType)throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);r="#[",i="]"}this.token(r);for(let e=0;e<t.length;e++){const r=t[e];r&&(e>0&&this.space(),this.print(r),(e<n-1||this.shouldPrintTrailingComma(i))&&this.token(",",!1,e))}this.token(i)},t.VoidPattern=function(){this.word("void")},t._getRawIdentifier=function(e){if(e===a)return l;a=e;const{name:t}=e,n=this.tokenMap.find(e,(e=>e.value===t));return n?(l=this._originalCode.slice(n.start,n.end),l):l=e.name};var r=n(45741),i=n(41498);const{isAssignmentPattern:s,isIdentifier:o}=r;let a=null,l="";const c=new Set(["^^","@@","^","%","#"])},56645:(e,t)=>{function n(){}function r(e){return this.actionType=e,this.isPositionDependent=!1,this}function i(){return r.call(this,n.SKIP),this}function s(e){return r.call(this,n.TYPE),this.type=e,this}function o(e){return r.call(this,n.PUSH_MODE),this.mode=e,this}function a(){return r.call(this,n.POP_MODE),this}function l(){return r.call(this,n.MORE),this}function c(e){return r.call(this,n.MODE),this.mode=e,this}function p(e,t){return r.call(this,n.CUSTOM),this.ruleIndex=e,this.actionIndex=t,this.isPositionDependent=!0,this}function u(e){return r.call(this,n.CHANNEL),this.channel=e,this}function h(e,t){return r.call(this,t.actionType),this.offset=e,this.action=t,this.isPositionDependent=!0,this}n.CHANNEL=0,n.CUSTOM=1,n.MODE=2,n.MORE=3,n.POP_MODE=4,n.PUSH_MODE=5,n.SKIP=6,n.TYPE=7,r.prototype.hashCode=function(){var e=new Hash;return this.updateHashCode(e),e.finish()},r.prototype.updateHashCode=function(e){e.update(this.actionType)},r.prototype.equals=function(e){return this===e},i.prototype=Object.create(r.prototype),i.prototype.constructor=i,i.INSTANCE=new i,i.prototype.execute=function(e){e.skip()},i.prototype.toString=function(){return"skip"},s.prototype=Object.create(r.prototype),s.prototype.constructor=s,s.prototype.execute=function(e){e.type=this.type},s.prototype.updateHashCode=function(e){e.update(this.actionType,this.type)},s.prototype.equals=function(e){return this===e||e instanceof s&&this.type===e.type},s.prototype.toString=function(){return"type("+this.type+")"},o.prototype=Object.create(r.prototype),o.prototype.constructor=o,o.prototype.execute=function(e){e.pushMode(this.mode)},o.prototype.updateHashCode=function(e){e.update(this.actionType,this.mode)},o.prototype.equals=function(e){return this===e||e instanceof o&&this.mode===e.mode},o.prototype.toString=function(){return"pushMode("+this.mode+")"},a.prototype=Object.create(r.prototype),a.prototype.constructor=a,a.INSTANCE=new a,a.prototype.execute=function(e){e.popMode()},a.prototype.toString=function(){return"popMode"},l.prototype=Object.create(r.prototype),l.prototype.constructor=l,l.INSTANCE=new l,l.prototype.execute=function(e){e.more()},l.prototype.toString=function(){return"more"},c.prototype=Object.create(r.prototype),c.prototype.constructor=c,c.prototype.execute=function(e){e.mode(this.mode)},c.prototype.updateHashCode=function(e){e.update(this.actionType,this.mode)},c.prototype.equals=function(e){return this===e||e instanceof c&&this.mode===e.mode},c.prototype.toString=function(){return"mode("+this.mode+")"},p.prototype=Object.create(r.prototype),p.prototype.constructor=p,p.prototype.execute=function(e){e.action(null,this.ruleIndex,this.actionIndex)},p.prototype.updateHashCode=function(e){e.update(this.actionType,this.ruleIndex,this.actionIndex)},p.prototype.equals=function(e){return this===e||e instanceof p&&this.ruleIndex===e.ruleIndex&&this.actionIndex===e.actionIndex},u.prototype=Object.create(r.prototype),u.prototype.constructor=u,u.prototype.execute=function(e){e._channel=this.channel},u.prototype.updateHashCode=function(e){e.update(this.actionType,this.channel)},u.prototype.equals=function(e){return this===e||e instanceof u&&this.channel===e.channel},u.prototype.toString=function(){return"channel("+this.channel+")"},h.prototype=Object.create(r.prototype),h.prototype.constructor=h,h.prototype.execute=function(e){this.action.execute(e)},h.prototype.updateHashCode=function(e){e.update(this.actionType,this.offset,this.action)},h.prototype.equals=function(e){return this===e||e instanceof h&&this.offset===e.offset&&this.action===e.action},t.LexerActionType=n,t.LexerSkipAction=i,t.LexerChannelAction=u,t.LexerCustomAction=p,t.LexerIndexedCustomAction=h,t.LexerMoreAction=l,t.LexerTypeAction=s,t.LexerPushModeAction=o,t.LexerPopModeAction=a,t.LexerModeAction=c},56773:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)&&!i.has(e)};var r=n(26228);const i=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,n)=>{var r=n(73261);const i=(0,r.defineAliasedType)("JSX");i("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")}}}),i("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),i("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}})}),i("JSXEmptyExpression",{}),i("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,r.assertNodeType)("Expression","JSXEmptyExpression")}}}),i("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,r.assertNodeType)("Expression")}}}),i("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,r.assertValueType)("string")}}}),i("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,r.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,r.assertNodeType)("JSXIdentifier")}}}),i("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,r.assertNodeType)("JSXIdentifier")},name:{validate:(0,r.assertNodeType)("JSXIdentifier")}}}),i("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}})}),i("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,r.assertNodeType)("Expression")}}}),i("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,r.assertValueType)("string")}}}),i("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")}}),i("JSXOpeningFragment",{aliases:["Immutable"]}),i("JSXClosingFragment",{aliases:["Immutable"]})},57350:(e,t,n)=>{var r=n(73261),i=n(85604),s=n(8925);const o=(0,r.defineAliasedType)("Miscellaneous");o("Noop",{visitor:[]}),o("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,r.assertNodeType)("Identifier")},expectedNode:{validate:(0,r.assertOneOf)(...i.PLACEHOLDERS)}},(0,s.patternLikeCommon)())}),o("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,r.assertValueType)("string")}}})},57585:(e,t,n)=>{var r=n(6617),i=/\s+/;t.triggerEvents=function(e,t){var n,r=-1,i=e.length,s=t[0],o=t[1],a=t[2];switch(t.length){case 0:for(;++r<i;)(n=e[r]).callback.call(n.ctx);return;case 1:for(;++r<i;)(n=e[r]).callback.call(n.ctx,s);return;case 2:for(;++r<i;)(n=e[r]).callback.call(n.ctx,s,o);return;case 3:for(;++r<i;)(n=e[r]).callback.call(n.ctx,s,o,a);return;default:for(;++r<i;)(n=e[r]).callback.apply(n.ctx,t);return}},t.eventsApi=function(e,t,n,r){if(!n)return!0;if("object"==typeof n){for(var s in n)e[t].apply(e,[s,n[s]].concat(r));return!1}if(i.test(n)){for(var o=n.split(i),a=0,l=o.length;a<l;a++)e[t].apply(e,[o[a]].concat(r));return!1}return!0},t.createListenMethod=function(e){return function(t,n,i){if(!t)throw new Error("Trying to listenTo event: '"+n+"' but the target object is undefined");if((this._listeningTo||(this._listeningTo={}))[t._listenId||(t._listenId=r("l"))]=t,i||"object"!=typeof n||(i=this),"function"!=typeof t[e])throw new Error("Trying to listenTo event: '"+n+"' on object: "+t.toString()+" but it does not have an 'on' method so is unbindable");return t[e](n,i,this),this}}},58314:(e,t,n)=>{e.exports=n(4716)},58369:(e,t,n)=>{var r=n(66346).BitSet,i=n(93343).ErrorListener,s=n(70040).Interval;function o(e){return i.call(this),e=e||!0,this.exactOnly=e,this}o.prototype=Object.create(i.prototype),o.prototype.constructor=o,o.prototype.reportAmbiguity=function(e,t,n,r,i,o,a){if(!this.exactOnly||i){var l="reportAmbiguity d="+this.getDecisionDescription(e,t)+": ambigAlts="+this.getConflictingAlts(o,a)+", input='"+e.getTokenStream().getText(new s(n,r))+"'";e.notifyErrorListeners(l)}},o.prototype.reportAttemptingFullContext=function(e,t,n,r,i,o){var a="reportAttemptingFullContext d="+this.getDecisionDescription(e,t)+", input='"+e.getTokenStream().getText(new s(n,r))+"'";e.notifyErrorListeners(a)},o.prototype.reportContextSensitivity=function(e,t,n,r,i,o){var a="reportContextSensitivity d="+this.getDecisionDescription(e,t)+", input='"+e.getTokenStream().getText(new s(n,r))+"'";e.notifyErrorListeners(a)},o.prototype.getDecisionDescription=function(e,t){var n=t.decision,r=t.atnStartState.ruleIndex,i=e.ruleNames;if(r<0||r>=i.length)return""+n;var s=i[r]||null;return null===s||0===s.length?""+n:n+" ("+s+")"},o.prototype.getConflictingAlts=function(e,t){if(null!==e)return e;for(var n=new r,i=0;i<t.items.length;i++)n.add(t.items[i].alt);return"{"+n.values().join(", ")+"}"},t.DiagnosticErrorListener=o},58777:(e,t,n)=>{var r=n(67787),i=r.Buffer;function s(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(s(r,t),t.Buffer=o),s(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},59198:()=>{var e,t,n,r;String.fromCodePoint||(e=function(){try{var e={},t=Object.defineProperty,n=t(e,e,e)&&t}catch(e){}return n}(),t=String.fromCharCode,n=Math.floor,r=function(e){var r,i,s=[],o=-1,a=arguments.length;if(!a)return"";for(var l="";++o<a;){var c=Number(arguments[o]);if(!isFinite(c)||c<0||c>1114111||n(c)!=c)throw RangeError("Invalid code point: "+c);c<=65535?s.push(c):(r=55296+((c-=65536)>>10),i=c%1024+56320,s.push(r,i)),(o+1==a||s.length>16384)&&(l+=t.apply(null,s),s.length=0)}return l},e?e(String,"fromCodePoint",{value:r,configurable:!0,writable:!0}):String.fromCodePoint=r)},59563:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(26228),i=n(82208);t.default=function e(t){if(void 0===t)return(0,i.identifier)("undefined");if(!0===t||!1===t)return(0,i.booleanLiteral)(t);if(null===t)return(0,i.nullLiteral)();if("string"==typeof t)return(0,i.stringLiteral)(t);if("number"==typeof t){let e;if(Number.isFinite(t))e=(0,i.numericLiteral)(Math.abs(t));else{let n;n=Number.isNaN(t)?(0,i.numericLiteral)(0):(0,i.numericLiteral)(1),e=(0,i.binaryExpression)("/",n,(0,i.numericLiteral)(0))}return(t<0||Object.is(t,-0))&&(e=(0,i.unaryExpression)("-",e)),e}if("bigint"==typeof t)return t<0?(0,i.unaryExpression)("-",(0,i.bigIntLiteral)(-t)):(0,i.bigIntLiteral)(t);if(function(e){return"[object RegExp]"===s(e)}(t)){const e=t.source,n=/\/([a-z]*)$/.exec(t.toString())[1];return(0,i.regExpLiteral)(e,n)}if(Array.isArray(t))return(0,i.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 n=[];for(const s of Object.keys(t)){let o,a=!1;(0,r.default)(s)?"__proto__"===s?(a=!0,o=(0,i.stringLiteral)(s)):o=(0,i.identifier)(s):o=(0,i.stringLiteral)(s),n.push((0,i.objectProperty)(o,e(t[s]),a))}return(0,i.objectExpression)(n)}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,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(!e)return;const o=r.NODE_FIELDS[e.type];if(!o)return;i(e,t,n,o[t]),s(e,t,n)},t.validateChild=s,t.validateField=i,t.validateInternal=function(e,t,n,i,s){if(null!=e&&e.validate&&(!e.optional||null!=i)&&(e.validate(t,n,i),s)){var o;const e=i.type;if(null==e)return;null==(o=r.NODE_PARENT_VALIDATIONS[e])||o.call(r.NODE_PARENT_VALIDATIONS,t,n,i)}};var r=n(35108);function i(e,t,n,r){null!=r&&r.validate&&(r.optional&&null==n||r.validate(e,t,n))}function s(e,t,n){var i;const s=null==n?void 0:n.type;null!=s&&(null==(i=r.NODE_PARENT_VALIDATIONS[s])||i.call(r.NODE_PARENT_VALIDATIONS,e,t,n))}},59892:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;const n=r.PLACEHOLDERS_ALIAS[e];return!(null==n||!n.includes(t))};var r=n(35108)},60124:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isVariableDeclaration)(e,{kind:"var"})&&!e[i]};var r=n(63555),i=Symbol.for("var used to be block scoped")},60581:function(e,t,n){!function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function s(e,t,n){if(s.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(67787).Buffer}catch(e){}function a(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function l(e,t,n){var r=a(e,n);return n-1>=t&&(r|=a(e,n-1)<<4),r}function c(e,t,n,r){for(var i=0,s=Math.min(e.length,n),o=t;o<s;o++){var a=e.charCodeAt(o)-48;i*=r,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}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,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,n):(this._parseBase(e,t,i),"le"===n&&this._initArray(this.toArray(),t,n)))},s.prototype._initNumber=function(e,t,n){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"===n&&this._initArray(this.toArray(),t,n)},s.prototype._initArray=function(e,t,n){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 i=0;i<this.length;i++)this.words[i]=0;var s,o,a=0;if("be"===n)for(i=e.length-1,s=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[s]|=o<<a&67108863,this.words[s+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===n)for(i=0,s=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[s]|=o<<a&67108863,this.words[s+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(e,t,n){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 i,s=0,o=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=l(e,t,r)<<s,this.words[o]|=67108863&i,s>=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=l(e,t,r)<<s,this.words[o]|=67108863&i,s>=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;this.strip()},s.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var s=e.length-n,o=s%r,a=Math.min(s,s-o)+n,l=0,p=n;p<a;p+=r)l=c(e,p,p+r,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==o){var u=1;for(l=c(e,p,e.length,t),p=0;p<o;p++)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.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},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var p=["","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"],u=[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],h=[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 d(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],s=0|t.words[0],o=i*s,a=67108863&o,l=o/67108864|0;n.words[0]=a;for(var c=1;c<r;c++){for(var p=l>>>26,u=67108863&l,h=Math.min(c,t.length-1),d=Math.max(0,c-e.length+1);d<=h;d++){var f=c-d|0;p+=(o=(i=0|e.words[f])*(s=0|t.words[d])+u)/67108864|0,u=67108863&o}n.words[c]=0|u,l=0|p}return 0!==l?n.words[c]=0|l:n.length--,n.strip()}s.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,s=0,o=0;o<this.length;o++){var a=this.words[o],l=(16777215&(a<<i|s)).toString(16);n=0!=(s=a>>>24-i&16777215)||o!==this.length-1?p[6-l.length]+l+n:l+n,(i+=2)>=26&&(i-=26,o--)}for(0!==s&&(n=s.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=u[e],d=h[e];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(d).toString(e);n=(f=f.idivn(d)).isZero()?m+n:p[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}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)},s.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},s.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},s.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),s=n||Math.max(1,i);r(i<=s,"byte array longer than desired length"),r(s>0,"Requested array length <= 0"),this.strip();var o,a,l="le"===t,c=new e(s),p=this.clone();if(l){for(a=0;!p.isZero();a++)o=p.andln(255),p.iushrn(8),c[a]=o;for(;a<s;a++)c[a]=0}else{for(a=0;a<s-i;a++)c[a]=0;for(a=0;!p.isZero();a++)o=p.andln(255),p.iushrn(8),c[s-a-1]=o}return c},Math.clz32?s.prototype._countBits=function(e){return 32-Math.clz32(e)}:s.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},s.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 8191&t||(n+=13,t>>>=13),127&t||(n+=7,t>>>=7),15&t||(n+=4,t>>>=4),3&t||(n+=2,t>>>=2),1&t||n++,n},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 n=this._zeroBits(this.words[t]);if(e+=n,26!==n)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 n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];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,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.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),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),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 n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},s.prototype.iadd=function(e){var t,n,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?(n=this,r=e):(n=e,r=this);for(var i=0,s=0;s<r.length;s++)t=(0|n.words[s])+(0|r.words[s])+i,this.words[s]=67108863&t,i=t>>>26;for(;0!==i&&s<n.length;s++)t=(0|n.words[s])+i,this.words[s]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;s<n.length;s++)this.words[s]=n.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 n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var s=0,o=0;o<r.length;o++)s=(t=(0|n.words[o])-(0|r.words[o])+s)>>26,this.words[o]=67108863&t;for(;0!==s&&o<n.length;o++)s=(t=(0|n.words[o])+s)>>26,this.words[o]=67108863&t;if(0===s&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(e){return this.clone().isub(e)};var f=function(e,t,n){var r,i,s,o=e.words,a=t.words,l=n.words,c=0,p=0|o[0],u=8191&p,h=p>>>13,d=0|o[1],f=8191&d,m=d>>>13,y=0|o[2],g=8191&y,T=y>>>13,S=0|o[3],b=8191&S,x=S>>>13,v=0|o[4],E=8191&v,w=v>>>13,A=0|o[5],P=8191&A,I=A>>>13,C=0|o[6],_=8191&C,N=C>>>13,O=0|o[7],k=8191&O,M=O>>>13,L=0|o[8],D=8191&L,B=L>>>13,F=0|o[9],R=8191&F,j=F>>>13,U=0|a[0],V=8191&U,q=U>>>13,K=0|a[1],$=8191&K,Y=K>>>13,z=0|a[2],J=8191&z,H=z>>>13,X=0|a[3],W=8191&X,G=X>>>13,Z=0|a[4],Q=8191&Z,ee=Z>>>13,te=0|a[5],ne=8191&te,re=te>>>13,ie=0|a[6],se=8191&ie,oe=ie>>>13,ae=0|a[7],le=8191&ae,ce=ae>>>13,pe=0|a[8],ue=8191&pe,he=pe>>>13,de=0|a[9],fe=8191&de,me=de>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(c+(r=Math.imul(u,V))|0)+((8191&(i=(i=Math.imul(u,q))+Math.imul(h,V)|0))<<13)|0;c=((s=Math.imul(h,q))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(f,V),i=(i=Math.imul(f,q))+Math.imul(m,V)|0,s=Math.imul(m,q);var ge=(c+(r=r+Math.imul(u,$)|0)|0)+((8191&(i=(i=i+Math.imul(u,Y)|0)+Math.imul(h,$)|0))<<13)|0;c=((s=s+Math.imul(h,Y)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(g,V),i=(i=Math.imul(g,q))+Math.imul(T,V)|0,s=Math.imul(T,q),r=r+Math.imul(f,$)|0,i=(i=i+Math.imul(f,Y)|0)+Math.imul(m,$)|0,s=s+Math.imul(m,Y)|0;var Te=(c+(r=r+Math.imul(u,J)|0)|0)+((8191&(i=(i=i+Math.imul(u,H)|0)+Math.imul(h,J)|0))<<13)|0;c=((s=s+Math.imul(h,H)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(b,V),i=(i=Math.imul(b,q))+Math.imul(x,V)|0,s=Math.imul(x,q),r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(T,$)|0,s=s+Math.imul(T,Y)|0,r=r+Math.imul(f,J)|0,i=(i=i+Math.imul(f,H)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,H)|0;var Se=(c+(r=r+Math.imul(u,W)|0)|0)+((8191&(i=(i=i+Math.imul(u,G)|0)+Math.imul(h,W)|0))<<13)|0;c=((s=s+Math.imul(h,G)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(E,V),i=(i=Math.imul(E,q))+Math.imul(w,V)|0,s=Math.imul(w,q),r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(x,$)|0,s=s+Math.imul(x,Y)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,H)|0)+Math.imul(T,J)|0,s=s+Math.imul(T,H)|0,r=r+Math.imul(f,W)|0,i=(i=i+Math.imul(f,G)|0)+Math.imul(m,W)|0,s=s+Math.imul(m,G)|0;var be=(c+(r=r+Math.imul(u,Q)|0)|0)+((8191&(i=(i=i+Math.imul(u,ee)|0)+Math.imul(h,Q)|0))<<13)|0;c=((s=s+Math.imul(h,ee)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(P,V),i=(i=Math.imul(P,q))+Math.imul(I,V)|0,s=Math.imul(I,q),r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(w,$)|0,s=s+Math.imul(w,Y)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,H)|0)+Math.imul(x,J)|0,s=s+Math.imul(x,H)|0,r=r+Math.imul(g,W)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(T,W)|0,s=s+Math.imul(T,G)|0,r=r+Math.imul(f,Q)|0,i=(i=i+Math.imul(f,ee)|0)+Math.imul(m,Q)|0,s=s+Math.imul(m,ee)|0;var xe=(c+(r=r+Math.imul(u,ne)|0)|0)+((8191&(i=(i=i+Math.imul(u,re)|0)+Math.imul(h,ne)|0))<<13)|0;c=((s=s+Math.imul(h,re)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(_,V),i=(i=Math.imul(_,q))+Math.imul(N,V)|0,s=Math.imul(N,q),r=r+Math.imul(P,$)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(I,$)|0,s=s+Math.imul(I,Y)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,H)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,H)|0,r=r+Math.imul(b,W)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(x,W)|0,s=s+Math.imul(x,G)|0,r=r+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(T,Q)|0,s=s+Math.imul(T,ee)|0,r=r+Math.imul(f,ne)|0,i=(i=i+Math.imul(f,re)|0)+Math.imul(m,ne)|0,s=s+Math.imul(m,re)|0;var ve=(c+(r=r+Math.imul(u,se)|0)|0)+((8191&(i=(i=i+Math.imul(u,oe)|0)+Math.imul(h,se)|0))<<13)|0;c=((s=s+Math.imul(h,oe)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(k,V),i=(i=Math.imul(k,q))+Math.imul(M,V)|0,s=Math.imul(M,q),r=r+Math.imul(_,$)|0,i=(i=i+Math.imul(_,Y)|0)+Math.imul(N,$)|0,s=s+Math.imul(N,Y)|0,r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,H)|0)+Math.imul(I,J)|0,s=s+Math.imul(I,H)|0,r=r+Math.imul(E,W)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(w,W)|0,s=s+Math.imul(w,G)|0,r=r+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(x,Q)|0,s=s+Math.imul(x,ee)|0,r=r+Math.imul(g,ne)|0,i=(i=i+Math.imul(g,re)|0)+Math.imul(T,ne)|0,s=s+Math.imul(T,re)|0,r=r+Math.imul(f,se)|0,i=(i=i+Math.imul(f,oe)|0)+Math.imul(m,se)|0,s=s+Math.imul(m,oe)|0;var Ee=(c+(r=r+Math.imul(u,le)|0)|0)+((8191&(i=(i=i+Math.imul(u,ce)|0)+Math.imul(h,le)|0))<<13)|0;c=((s=s+Math.imul(h,ce)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(D,V),i=(i=Math.imul(D,q))+Math.imul(B,V)|0,s=Math.imul(B,q),r=r+Math.imul(k,$)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(M,$)|0,s=s+Math.imul(M,Y)|0,r=r+Math.imul(_,J)|0,i=(i=i+Math.imul(_,H)|0)+Math.imul(N,J)|0,s=s+Math.imul(N,H)|0,r=r+Math.imul(P,W)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(I,W)|0,s=s+Math.imul(I,G)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(w,Q)|0,s=s+Math.imul(w,ee)|0,r=r+Math.imul(b,ne)|0,i=(i=i+Math.imul(b,re)|0)+Math.imul(x,ne)|0,s=s+Math.imul(x,re)|0,r=r+Math.imul(g,se)|0,i=(i=i+Math.imul(g,oe)|0)+Math.imul(T,se)|0,s=s+Math.imul(T,oe)|0,r=r+Math.imul(f,le)|0,i=(i=i+Math.imul(f,ce)|0)+Math.imul(m,le)|0,s=s+Math.imul(m,ce)|0;var we=(c+(r=r+Math.imul(u,ue)|0)|0)+((8191&(i=(i=i+Math.imul(u,he)|0)+Math.imul(h,ue)|0))<<13)|0;c=((s=s+Math.imul(h,he)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(R,V),i=(i=Math.imul(R,q))+Math.imul(j,V)|0,s=Math.imul(j,q),r=r+Math.imul(D,$)|0,i=(i=i+Math.imul(D,Y)|0)+Math.imul(B,$)|0,s=s+Math.imul(B,Y)|0,r=r+Math.imul(k,J)|0,i=(i=i+Math.imul(k,H)|0)+Math.imul(M,J)|0,s=s+Math.imul(M,H)|0,r=r+Math.imul(_,W)|0,i=(i=i+Math.imul(_,G)|0)+Math.imul(N,W)|0,s=s+Math.imul(N,G)|0,r=r+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(I,Q)|0,s=s+Math.imul(I,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(w,ne)|0,s=s+Math.imul(w,re)|0,r=r+Math.imul(b,se)|0,i=(i=i+Math.imul(b,oe)|0)+Math.imul(x,se)|0,s=s+Math.imul(x,oe)|0,r=r+Math.imul(g,le)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(T,le)|0,s=s+Math.imul(T,ce)|0,r=r+Math.imul(f,ue)|0,i=(i=i+Math.imul(f,he)|0)+Math.imul(m,ue)|0,s=s+Math.imul(m,he)|0;var Ae=(c+(r=r+Math.imul(u,fe)|0)|0)+((8191&(i=(i=i+Math.imul(u,me)|0)+Math.imul(h,fe)|0))<<13)|0;c=((s=s+Math.imul(h,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(R,$),i=(i=Math.imul(R,Y))+Math.imul(j,$)|0,s=Math.imul(j,Y),r=r+Math.imul(D,J)|0,i=(i=i+Math.imul(D,H)|0)+Math.imul(B,J)|0,s=s+Math.imul(B,H)|0,r=r+Math.imul(k,W)|0,i=(i=i+Math.imul(k,G)|0)+Math.imul(M,W)|0,s=s+Math.imul(M,G)|0,r=r+Math.imul(_,Q)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(N,Q)|0,s=s+Math.imul(N,ee)|0,r=r+Math.imul(P,ne)|0,i=(i=i+Math.imul(P,re)|0)+Math.imul(I,ne)|0,s=s+Math.imul(I,re)|0,r=r+Math.imul(E,se)|0,i=(i=i+Math.imul(E,oe)|0)+Math.imul(w,se)|0,s=s+Math.imul(w,oe)|0,r=r+Math.imul(b,le)|0,i=(i=i+Math.imul(b,ce)|0)+Math.imul(x,le)|0,s=s+Math.imul(x,ce)|0,r=r+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(T,ue)|0,s=s+Math.imul(T,he)|0;var Pe=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(m,fe)|0))<<13)|0;c=((s=s+Math.imul(m,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(R,J),i=(i=Math.imul(R,H))+Math.imul(j,J)|0,s=Math.imul(j,H),r=r+Math.imul(D,W)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul(B,W)|0,s=s+Math.imul(B,G)|0,r=r+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(M,Q)|0,s=s+Math.imul(M,ee)|0,r=r+Math.imul(_,ne)|0,i=(i=i+Math.imul(_,re)|0)+Math.imul(N,ne)|0,s=s+Math.imul(N,re)|0,r=r+Math.imul(P,se)|0,i=(i=i+Math.imul(P,oe)|0)+Math.imul(I,se)|0,s=s+Math.imul(I,oe)|0,r=r+Math.imul(E,le)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(w,le)|0,s=s+Math.imul(w,ce)|0,r=r+Math.imul(b,ue)|0,i=(i=i+Math.imul(b,he)|0)+Math.imul(x,ue)|0,s=s+Math.imul(x,he)|0;var Ie=(c+(r=r+Math.imul(g,fe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(T,fe)|0))<<13)|0;c=((s=s+Math.imul(T,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(R,W),i=(i=Math.imul(R,G))+Math.imul(j,W)|0,s=Math.imul(j,G),r=r+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,ee)|0)+Math.imul(B,Q)|0,s=s+Math.imul(B,ee)|0,r=r+Math.imul(k,ne)|0,i=(i=i+Math.imul(k,re)|0)+Math.imul(M,ne)|0,s=s+Math.imul(M,re)|0,r=r+Math.imul(_,se)|0,i=(i=i+Math.imul(_,oe)|0)+Math.imul(N,se)|0,s=s+Math.imul(N,oe)|0,r=r+Math.imul(P,le)|0,i=(i=i+Math.imul(P,ce)|0)+Math.imul(I,le)|0,s=s+Math.imul(I,ce)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(w,ue)|0,s=s+Math.imul(w,he)|0;var Ce=(c+(r=r+Math.imul(b,fe)|0)|0)+((8191&(i=(i=i+Math.imul(b,me)|0)+Math.imul(x,fe)|0))<<13)|0;c=((s=s+Math.imul(x,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(R,Q),i=(i=Math.imul(R,ee))+Math.imul(j,Q)|0,s=Math.imul(j,ee),r=r+Math.imul(D,ne)|0,i=(i=i+Math.imul(D,re)|0)+Math.imul(B,ne)|0,s=s+Math.imul(B,re)|0,r=r+Math.imul(k,se)|0,i=(i=i+Math.imul(k,oe)|0)+Math.imul(M,se)|0,s=s+Math.imul(M,oe)|0,r=r+Math.imul(_,le)|0,i=(i=i+Math.imul(_,ce)|0)+Math.imul(N,le)|0,s=s+Math.imul(N,ce)|0,r=r+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,he)|0)+Math.imul(I,ue)|0,s=s+Math.imul(I,he)|0;var _e=(c+(r=r+Math.imul(E,fe)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(w,fe)|0))<<13)|0;c=((s=s+Math.imul(w,me)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(R,ne),i=(i=Math.imul(R,re))+Math.imul(j,ne)|0,s=Math.imul(j,re),r=r+Math.imul(D,se)|0,i=(i=i+Math.imul(D,oe)|0)+Math.imul(B,se)|0,s=s+Math.imul(B,oe)|0,r=r+Math.imul(k,le)|0,i=(i=i+Math.imul(k,ce)|0)+Math.imul(M,le)|0,s=s+Math.imul(M,ce)|0,r=r+Math.imul(_,ue)|0,i=(i=i+Math.imul(_,he)|0)+Math.imul(N,ue)|0,s=s+Math.imul(N,he)|0;var Ne=(c+(r=r+Math.imul(P,fe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(I,fe)|0))<<13)|0;c=((s=s+Math.imul(I,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(R,se),i=(i=Math.imul(R,oe))+Math.imul(j,se)|0,s=Math.imul(j,oe),r=r+Math.imul(D,le)|0,i=(i=i+Math.imul(D,ce)|0)+Math.imul(B,le)|0,s=s+Math.imul(B,ce)|0,r=r+Math.imul(k,ue)|0,i=(i=i+Math.imul(k,he)|0)+Math.imul(M,ue)|0,s=s+Math.imul(M,he)|0;var Oe=(c+(r=r+Math.imul(_,fe)|0)|0)+((8191&(i=(i=i+Math.imul(_,me)|0)+Math.imul(N,fe)|0))<<13)|0;c=((s=s+Math.imul(N,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(R,le),i=(i=Math.imul(R,ce))+Math.imul(j,le)|0,s=Math.imul(j,ce),r=r+Math.imul(D,ue)|0,i=(i=i+Math.imul(D,he)|0)+Math.imul(B,ue)|0,s=s+Math.imul(B,he)|0;var ke=(c+(r=r+Math.imul(k,fe)|0)|0)+((8191&(i=(i=i+Math.imul(k,me)|0)+Math.imul(M,fe)|0))<<13)|0;c=((s=s+Math.imul(M,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(R,ue),i=(i=Math.imul(R,he))+Math.imul(j,ue)|0,s=Math.imul(j,he);var Me=(c+(r=r+Math.imul(D,fe)|0)|0)+((8191&(i=(i=i+Math.imul(D,me)|0)+Math.imul(B,fe)|0))<<13)|0;c=((s=s+Math.imul(B,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863;var Le=(c+(r=Math.imul(R,fe))|0)+((8191&(i=(i=Math.imul(R,me))+Math.imul(j,fe)|0))<<13)|0;return c=((s=Math.imul(j,me))+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,l[0]=ye,l[1]=ge,l[2]=Te,l[3]=Se,l[4]=be,l[5]=xe,l[6]=ve,l[7]=Ee,l[8]=we,l[9]=Ae,l[10]=Pe,l[11]=Ie,l[12]=Ce,l[13]=_e,l[14]=Ne,l[15]=Oe,l[16]=ke,l[17]=Me,l[18]=Le,0!==c&&(l[19]=c,n.length++),n};function m(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(f=d),s.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?f(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,s=0;s<n.length-1;s++){var o=i;i=0;for(var a=67108863&r,l=Math.min(s,t.length-1),c=Math.max(0,s-e.length+1);c<=l;c++){var p=s-c,u=(0|e.words[p])*(0|t.words[c]),h=67108863&u;a=67108863&(h=h+a|0),i+=(o=(o=o+(u/67108864|0)|0)+(h>>>26)|0)>>>26,o&=67108863}n.words[s]=a,r=o,o=i}return 0!==r?n.words[s]=r:n.length--,n.strip()}(this,e,t):m(this,e,t),n},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=s.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},y.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},y.prototype.permute=function(e,t,n,r,i,s){for(var o=0;o<s;o++)r[o]=t[e[o]],i[o]=n[e[o]]},y.prototype.transform=function(e,t,n,r,i,s){this.permute(s,e,t,n,r,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,l=Math.cos(2*Math.PI/a),c=Math.sin(2*Math.PI/a),p=0;p<i;p+=a)for(var u=l,h=c,d=0;d<o;d++){var f=n[p+d],m=r[p+d],y=n[p+d+o],g=r[p+d+o],T=u*y-h*g;g=u*g+h*y,y=T,n[p+d]=f+y,r[p+d]=m+g,n[p+d+o]=f-y,r[p+d+o]=m-g,d!==a&&(T=l*u-c*h,h=l*h+c*u,u=T)}},y.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},y.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},y.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},y.prototype.convert13b=function(e,t,n,i){for(var s=0,o=0;o<t;o++)s+=0|e[o],n[2*o]=8191&s,s>>>=13,n[2*o+1]=8191&s,s>>>=13;for(o=2*t;o<i;++o)n[o]=0;r(0===s),r(!(-8192&s))},y.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},y.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),s=this.stub(r),o=new Array(r),a=new Array(r),l=new Array(r),c=new Array(r),p=new Array(r),u=new Array(r),h=n.words;h.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,c,r),this.transform(o,s,a,l,r,i),this.transform(c,s,p,u,r,i);for(var d=0;d<r;d++){var f=a[d]*p[d]-l[d]*u[d];l[d]=a[d]*u[d]+l[d]*p[d],a[d]=f}return this.conjugate(a,l,r),this.transform(a,l,h,s,r,i),this.conjugate(h,s,r),this.normalize13b(h,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.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),m(this,e,t)},s.prototype.imul=function(e){return this.clone().mulTo(e,this)},s.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var i=(0|this.words[n])*e,s=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=s>>>26,this.words[n]=67108863&s}return 0!==t&&(this.words[n]=t,this.length++),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()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(0===t.length)return new s(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},s.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,s=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t<this.length;t++){var a=this.words[t]&s,l=(0|this.words[t])-a<<n;this.words[t]=l|o,o=a>>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},s.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},s.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var s=e%26,o=Math.min((e-s)/26,this.length),a=67108863^67108863>>>s<<s,l=n;if(i-=o,i=Math.max(0,i),l){for(var c=0;c<o;c++)l.words[c]=this.words[c];l.length=o}if(0===o);else if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var p=0;for(c=this.length-1;c>=0&&(0!==p||c>=i);c--){var u=0|this.words[c];this.words[c]=p<<26-s|u>>>s,p=u&a}return l&&0!==p&&(l.words[l.length++]=p),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},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,n=(e-t)/26,i=1<<t;return!(this.length<=n||!(this.words[n]&i))},s.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}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,n){var i,s,o=e.length+n;this._expand(o);var a=0;for(i=0;i<e.length;i++){s=(0|this.words[i+n])+a;var l=(0|e.words[i])*t;a=((s-=67108863&l)>>26)-(l/67108864|0),this.words[i+n]=67108863&s}for(;i<this.length-n;i++)a=(s=(0|this.words[i+n])+a)>>26,this.words[i+n]=67108863&s;if(0===a)return this.strip();for(r(-1===a),a=0,i=0;i<this.length;i++)a=(s=-(0|this.words[i])+a)>>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,o=0|i.words[i.length-1];0!=(n=26-this._countBits(o))&&(i=i.ushln(n),r.iushln(n),o=0|i.words[i.length-1]);var a,l=r.length-i.length;if("mod"!==t){(a=new s(null)).length=l+1,a.words=new Array(a.length);for(var c=0;c<a.length;c++)a.words[c]=0}var p=r.clone()._ishlnsubmul(i,1,l);0===p.negative&&(r=p,a&&(a.words[l]=1));for(var u=l-1;u>=0;u--){var h=67108864*(0|r.words[i.length+u])+(0|r.words[i.length+u-1]);for(h=Math.min(h/o|0,67108863),r._ishlnsubmul(i,h,u);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(i,1,u),r.isZero()||(r.negative^=1);a&&(a.words[u]=h)}return a&&a.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},s.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(o=a.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):this.negative&e.negative?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(o=a.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:a.div,mod:o}):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.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new s(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,o,a},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 n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),s=n.cmp(r);return s<0||1===i&&0===s?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},s.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},s.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},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,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new s(1),o=new s(0),a=new s(0),l=new s(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var p=n.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;)(i.isOdd()||o.isOdd())&&(i.iadd(p),o.isub(u)),i.iushrn(1),o.iushrn(1);for(var f=0,m=1;!(n.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(n.iushrn(f);f-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(p),l.isub(u)),a.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(a),o.isub(l)):(n.isub(t),a.isub(i),l.isub(o))}return{a,b:l,gcd:n.iushln(c)}},s.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,o=new s(1),a=new s(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,p=1;!(t.words[0]&p)&&c<26;++c,p<<=1);if(c>0)for(t.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var u=0,h=1;!(n.words[0]&h)&&u<26;++u,h<<=1);if(u>0)for(n.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(a)):(n.isub(t),a.isub(o))}return(i=0===t.cmpn(1)?o:a).cmpn(0)<0&&i.iadd(e),i},s.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var s=t;t=n,n=s}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.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,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var s=i,o=n;0!==s&&o<this.length;o++){var a=0|this.words[o];s=(a+=s)>>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<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,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(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 E(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 g={k256:null,p224:null,p192:null,p25519:null};function T(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 S(){T.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){T.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){T.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function v(){T.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(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 w(e){E.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)}T.prototype._tmp=function(){var e=new s(null);return e.words=new Array(Math.ceil(this.n/13)),e},T.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},T.prototype.split=function(e,t){e.iushrn(this.n,0,t)},T.prototype.imulK=function(e){return e.imul(this.k)},i(S,T),S.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i<r;i++)t.words[i]=e.words[i];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&n,i=10;i<e.length;i++){var o=0|e.words[i];e.words[i-10]=(o&n)<<4|s>>>22,s=o}s>>>=22,e.words[i-10]=s,0===s&&e.length>10?e.length-=10:e.length-=9},S.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=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},i(b,T),i(x,T),i(v,T),v.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},s._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new S;else if("p224"===e)t=new b;else if("p192"===e)t=new x;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new v}return g[e]=t,t},E.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},E.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")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},E.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new s(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);r(!i.isZero());var a=new s(1).toRed(this),l=a.redNeg(),c=this.m.subn(1).iushrn(1),p=this.m.bitLength();for(p=new s(2*p*p).toRed(this);0!==this.pow(p,c).cmp(l);)p.redIAdd(l);for(var u=this.pow(p,i),h=this.pow(e,i.addn(1).iushrn(1)),d=this.pow(e,i),f=o;0!==d.cmp(a);){for(var m=d,y=0;0!==m.cmp(a);y++)m=m.redSqr();r(y<f);var g=this.pow(u,new s(1).iushln(f-y-1));h=h.redMul(g),u=g.redSqr(),d=d.redMul(u),f=y}return h},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new s(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new s(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],o=0,a=0,l=t.bitLength()%26;for(0===l&&(l=26),r=t.length-1;r>=0;r--){for(var c=t.words[r],p=l-1;p>=0;p--){var u=c>>p&1;i!==n[0]&&(i=this.sqr(i)),0!==u||0!==o?(o<<=1,o|=u,(4==++a||0===r&&0===p)&&(i=this.mul(i,n[o]),a=0,o=0)):a=0}l=26}return i},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},s.mont=function(e){return new w(e)},i(w,E),w.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},w.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},w.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},w.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new s(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},w.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},60616:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e,t),(0,i.default)(e,t),(0,s.default)(e,t),e};var r=n(6057),i=n(62563),s=n(25765)},60634:(e,t,n)=>{var r=n(72994).Token,i=n(18393).Lexer,s=n(51028).ATN,o=n(16068).e,a=n(41207).X,l=(n(87264).Q,n(87264).F),c=n(10559).PredictionContext,p=n(10559).SingletonPredictionContext,u=n(81367).RuleStopState,h=n(470).I,d=n(10014).Transition,f=n(96160).I,m=n(86587).LexerNoViableAltException;function y(e){e.index=-1,e.line=0,e.column=-1,e.dfaState=null}function g(){return y(this),this}function T(e,t,n,r){return o.call(this,t,r),this.decisionToDFA=n,this.recog=e,this.startIndex=-1,this.line=1,this.column=0,this.mode=i.DEFAULT_MODE,this.prevAccept=new g,this}g.prototype.reset=function(){y(this)},T.prototype=Object.create(o.prototype),T.prototype.constructor=T,T.debug=!1,T.dfa_debug=!1,T.MIN_DFA_EDGE=0,T.MAX_DFA_EDGE=127,T.match_calls=0,T.prototype.copyState=function(e){this.column=e.column,this.line=e.line,this.mode=e.mode,this.startIndex=e.startIndex},T.prototype.match=function(e,t){this.match_calls+=1,this.mode=t;var n=e.mark();try{this.startIndex=e.index,this.prevAccept.reset();var r=this.decisionToDFA[t];return null===r.s0?this.matchATN(e):this.execATN(e,r.s0)}finally{e.release(n)}},T.prototype.reset=function(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=i.DEFAULT_MODE},T.prototype.matchATN=function(e){var t=this.atn.modeToStartState[this.mode];T.debug&&console.log("matchATN mode "+this.mode+" start: "+t);var n=this.mode,r=this.computeStartState(e,t),i=r.hasSemanticContext;r.hasSemanticContext=!1;var s=this.addDFAState(r);i||(this.decisionToDFA[this.mode].s0=s);var o=this.execATN(e,s);return T.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[n].toLexerString()),o},T.prototype.execATN=function(e,t){T.debug&&console.log("start state closure="+t.configs),t.isAcceptState&&this.captureSimState(this.prevAccept,e,t);for(var n=e.LA(1),i=t;;){T.debug&&console.log("execATN loop starting closure: "+i.configs);var s=this.getExistingTargetState(i,n);if(null===s&&(s=this.computeTargetState(e,i,n)),s===o.ERROR)break;if(n!==r.EOF&&this.consume(e),s.isAcceptState&&(this.captureSimState(this.prevAccept,e,s),n===r.EOF))break;n=e.LA(1),i=s}return this.failOrAccept(this.prevAccept,e,i.configs,n)},T.prototype.getExistingTargetState=function(e,t){if(null===e.edges||t<T.MIN_DFA_EDGE||t>T.MAX_DFA_EDGE)return null;var n=e.edges[t-T.MIN_DFA_EDGE];return void 0===n&&(n=null),T.debug&&null!==n&&console.log("reuse state "+e.stateNumber+" edge to "+n.stateNumber),n},T.prototype.computeTargetState=function(e,t,n){var r=new l;return this.getReachableConfigSet(e,t.configs,r,n),0===r.items.length?(r.hasSemanticContext||this.addDFAEdge(t,n,o.ERROR),o.ERROR):this.addDFAEdge(t,n,null,r)},T.prototype.failOrAccept=function(e,t,n,i){if(null!==this.prevAccept.dfaState){var s=e.dfaState.lexerActionExecutor;return this.accept(t,s,this.startIndex,e.index,e.line,e.column),e.dfaState.prediction}if(i===r.EOF&&t.index===this.startIndex)return r.EOF;throw new m(this.recog,t,this.startIndex,n)},T.prototype.getReachableConfigSet=function(e,t,n,i){for(var o=s.INVALID_ALT_NUMBER,a=0;a<t.items.length;a++){var l=t.items[a],c=l.alt===o;if(!c||!l.passedThroughNonGreedyDecision){T.debug&&console.log("testing %s at %s\n",this.getTokenName(i),l.toString(this.recog,!0));for(var p=0;p<l.state.transitions.length;p++){var u=l.state.transitions[p],d=this.getReachableTarget(u,i);if(null!==d){var f=l.lexerActionExecutor;null!==f&&(f=f.fixOffsetBeforeMatch(e.index-this.startIndex));var m=i===r.EOF,y=new h({state:d,lexerActionExecutor:f},l);this.closure(e,y,n,c,!0,m)&&(o=l.alt)}}}}},T.prototype.accept=function(e,t,n,r,i,s){T.debug&&console.log("ACTION %s\n",t),e.seek(r),this.line=i,this.column=s,null!==t&&null!==this.recog&&t.execute(this.recog,e,n)},T.prototype.getReachableTarget=function(e,t){return e.matches(t,0,i.MAX_CHAR_VALUE)?e.target:null},T.prototype.computeStartState=function(e,t){for(var n=c.EMPTY,r=new l,i=0;i<t.transitions.length;i++){var s=t.transitions[i].target,o=new h({state:s,alt:i+1,context:n},null);this.closure(e,o,r,!1,!1,!1)}return r},T.prototype.closure=function(e,t,n,r,i,s){var o=null;if(T.debug&&console.log("closure("+t.toString(this.recog,!0)+")"),t.state instanceof u){if(T.debug&&(null!==this.recog?console.log("closure at %s rule stop %s\n",this.recog.ruleNames[t.state.ruleIndex],t):console.log("closure at rule stop %s\n",t)),null===t.context||t.context.hasEmptyPath()){if(null===t.context||t.context.isEmpty())return n.add(t),!0;n.add(new h({state:t.state,context:c.EMPTY},t)),r=!0}if(null!==t.context&&!t.context.isEmpty())for(var a=0;a<t.context.length;a++)if(t.context.getReturnState(a)!==c.EMPTY_RETURN_STATE){var l=t.context.getParent(a),p=this.atn.states[t.context.getReturnState(a)];o=new h({state:p,context:l},t),r=this.closure(e,o,n,r,i,s)}return r}t.state.epsilonOnlyTransitions||r&&t.passedThroughNonGreedyDecision||n.add(t);for(var d=0;d<t.state.transitions.length;d++){var f=t.state.transitions[d];null!==(o=this.getEpsilonTarget(e,t,f,n,i,s))&&(r=this.closure(e,o,n,r,i,s))}return r},T.prototype.getEpsilonTarget=function(e,t,n,s,o,a){var l=null;if(n.serializationType===d.RULE){var c=p.create(t.context,n.followState.stateNumber);l=new h({state:n.target,context:c},t)}else{if(n.serializationType===d.PRECEDENCE)throw"Precedence predicates are not supported in lexers.";if(n.serializationType===d.PREDICATE)T.debug&&console.log("EVAL rule "+n.ruleIndex+":"+n.predIndex),s.hasSemanticContext=!0,this.evaluatePredicate(e,n.ruleIndex,n.predIndex,o)&&(l=new h({state:n.target},t));else if(n.serializationType===d.ACTION)if(null===t.context||t.context.hasEmptyPath()){var u=f.append(t.lexerActionExecutor,this.atn.lexerActions[n.actionIndex]);l=new h({state:n.target,lexerActionExecutor:u},t)}else l=new h({state:n.target},t);else n.serializationType===d.EPSILON?l=new h({state:n.target},t):n.serializationType!==d.ATOM&&n.serializationType!==d.RANGE&&n.serializationType!==d.SET||a&&n.matches(r.EOF,0,i.MAX_CHAR_VALUE)&&(l=new h({state:n.target},t))}return l},T.prototype.evaluatePredicate=function(e,t,n,r){if(null===this.recog)return!0;if(!r)return this.recog.sempred(null,t,n);var i=this.column,s=this.line,o=e.index,a=e.mark();try{return this.consume(e),this.recog.sempred(null,t,n)}finally{this.column=i,this.line=s,e.seek(o),e.release(a)}},T.prototype.captureSimState=function(e,t,n){e.index=t.index,e.line=this.line,e.column=this.column,e.dfaState=n},T.prototype.addDFAEdge=function(e,t,n,r){if(void 0===n&&(n=null),void 0===r&&(r=null),null===n&&null!==r){var i=r.hasSemanticContext;if(r.hasSemanticContext=!1,n=this.addDFAState(r),i)return n}return t<T.MIN_DFA_EDGE||t>T.MAX_DFA_EDGE||(T.debug&&console.log("EDGE "+e+" -> "+n+" upon "+t),null===e.edges&&(e.edges=[]),e.edges[t-T.MIN_DFA_EDGE]=n),n},T.prototype.addDFAState=function(e){for(var t=new a(null,e),n=null,r=0;r<e.items.length;r++){var i=e.items[r];if(i.state instanceof u){n=i;break}}null!==n&&(t.isAcceptState=!0,t.lexerActionExecutor=n.lexerActionExecutor,t.prediction=this.atn.ruleToTokenType[n.state.ruleIndex]);var s=this.decisionToDFA[this.mode],o=s.states.get(t);if(null!==o)return o;var l=t;return l.stateNumber=s.states.length,e.setReadonly(!0),l.configs=e,s.states.add(l),l},T.prototype.getDFA=function(e){return this.decisionToDFA[e]},T.prototype.getText=function(e){return e.getText(this.startIndex,e.index-1)},T.prototype.consume=function(e){e.LA(1)==="\n".charCodeAt(0)?(this.line+=1,this.column=0):this.column+=1,e.consume()},T.prototype.getTokenName=function(e){return-1===e?"EOF":"'"+String.fromCharCode(e)+"'"},t.LexerATNSimulator=T},60752:(e,t,n)=>{function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},61015:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(249),i=n(5981);t.default=class{constructor(e,t){var n;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=void 0;const s=this._map=new r.GenMapping({sourceRoot:e.sourceRoot});if(this._sourceFileName=null==(n=e.sourceFileName)?void 0:n.replace(/\\/g,"/"),this._rawMappings=void 0,e.inputSourceMap){this._inputMap=new i.TraceMap(e.inputSourceMap);const t=this._inputMap.resolvedSources;if(t.length)for(let e=0;e<t.length;e++){var o;(0,r.setSourceContent)(s,t[e],null==(o=this._inputMap.sourcesContent)?void 0:o[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,n,s,o,a){var l;let c;if(this._rawMappings=void 0,null!=t)if(this._inputMap){if(c=(0,i.originalPositionFor)(this._inputMap,{line:t,column:n}),!c.name&&o){const e=(0,i.originalPositionFor)(this._inputMap,o);e.name&&(s=e.name)}}else c={source:(null==a?void 0:a.replace(/\\/g,"/"))||this._sourceFileName,line:t,column:n};(0,r.maybeAddMapping)(this._map,{name:s,generated:e,source:null==(l=c)?void 0:l.source,original:c})}}},61625:(e,t,n)=>{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=n(63555)},61957:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(68830);t.default=function(e,t){return(0,r.default)(e,t,!0)}},62053:(e,t,n)=>{var r=n(79696).Buffer;function i(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,n=new Array(t),i=0;i<t;i++)n[i]=e.readUInt32BE(4*i);return n}function s(e){for(;0<e.length;e++)e[0]=0}function o(e,t,n,r,i){for(var s,o,a,l,c=n[0],p=n[1],u=n[2],h=n[3],d=e[0]^t[0],f=e[1]^t[1],m=e[2]^t[2],y=e[3]^t[3],g=4,T=1;T<i;T++)s=c[d>>>24]^p[f>>>16&255]^u[m>>>8&255]^h[255&y]^t[g++],o=c[f>>>24]^p[m>>>16&255]^u[y>>>8&255]^h[255&d]^t[g++],a=c[m>>>24]^p[y>>>16&255]^u[d>>>8&255]^h[255&f]^t[g++],l=c[y>>>24]^p[d>>>16&255]^u[f>>>8&255]^h[255&m]^t[g++],d=s,f=o,m=a,y=l;return s=(r[d>>>24]<<24|r[f>>>16&255]<<16|r[m>>>8&255]<<8|r[255&y])^t[g++],o=(r[f>>>24]<<24|r[m>>>16&255]<<16|r[y>>>8&255]<<8|r[255&d])^t[g++],a=(r[m>>>24]<<24|r[y>>>16&255]<<16|r[d>>>8&255]<<8|r[255&f])^t[g++],l=(r[y>>>24]<<24|r[d>>>16&255]<<16|r[f>>>8&255]<<8|r[255&m])^t[g++],[s>>>=0,o>>>=0,a>>>=0,l>>>=0]}var a=[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 n=[],r=[],i=[[],[],[],[]],s=[[],[],[],[]],o=0,a=0,l=0;l<256;++l){var c=a^a<<1^a<<2^a<<3^a<<4;c=c>>>8^255&c^99,n[o]=c,r[c]=o;var p=e[o],u=e[p],h=e[u],d=257*e[c]^16843008*c;i[0][o]=d<<24|d>>>8,i[1][o]=d<<16|d>>>16,i[2][o]=d<<8|d>>>24,i[3][o]=d,d=16843009*h^65537*u^257*p^16843008*o,s[0][c]=d<<24|d>>>8,s[1][c]=d<<16|d>>>16,s[2][c]=d<<8|d>>>24,s[3][c]=d,0===o?o=a=1:(o=p^e[e[e[h^p]]],a^=e[e[a]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:s}}();function c(e){this._key=i(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],s=0;s<t;s++)i[s]=e[s];for(s=t;s<r;s++){var o=i[s-1];s%t==0?(o=o<<8|o>>>24,o=l.SBOX[o>>>24]<<24|l.SBOX[o>>>16&255]<<16|l.SBOX[o>>>8&255]<<8|l.SBOX[255&o],o^=a[s/t|0]<<24):t>6&&s%t==4&&(o=l.SBOX[o>>>24]<<24|l.SBOX[o>>>16&255]<<16|l.SBOX[o>>>8&255]<<8|l.SBOX[255&o]),i[s]=i[s-t]^o}for(var c=[],p=0;p<r;p++){var u=r-p,h=i[u-(p%4?0:4)];c[p]=p<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=n,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return o(e=i(e),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},c.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var n=o(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),s=r.allocUnsafe(16);return s.writeUInt32BE(n[0],0),s.writeUInt32BE(n[3],4),s.writeUInt32BE(n[2],8),s.writeUInt32BE(n[1],12),s},c.prototype.scrub=function(){s(this._keySchedule),s(this._invKeySchedule),s(this._key)},e.exports.AES=c},62062:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.buildUndefinedNode=function(){return(0,r.unaryExpression)("void",(0,r.numericLiteral)(0),!0)};var r=n(82208)},62444:(e,t,n)=>{var r=n(67787).Buffer;const i=(()=>{const e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array.prototype),Symbol.toStringTag).get;return t=>e.call(t)})();function s(e){return"Uint8Array"===i(e)}function o(e){return"object"==typeof e&&null!=e&&Symbol.toStringTag in e&&("ArrayBuffer"===e[Symbol.toStringTag]||"SharedArrayBuffer"===e[Symbol.toStringTag])}function a(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 c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function p(e,t){return JSON.stringify(e,((e,t)=>"bigint"==typeof t?{$numberLong:`${t}`}:l(t)?Object.fromEntries(t):t))}const u=7,h=Symbol.for("@@mdb.bson.version"),d=2147483647,f=-2147483648,m=Math.pow(2,63)-1,y=-Math.pow(2,63),g=Math.pow(2,53),T=-Math.pow(2,53),S=1,b=2,x=3,v=4,E=5,w=6,A=7,P=8,I=9,C=10,_=11,N=12,O=13,k=14,M=15,L=16,D=17,B=18,F=19,R=255,j=127,U=0,V=4,q=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 K 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 $ extends K{get name(){return"BSONVersionError"}constructor(){super(`Unsupported BSON version, bson types must be from bson ${u}.x.x`)}}class Y extends K{get name(){return"BSONRuntimeError"}constructor(e){super(e)}}class z extends K{get name(){return"BSONOffsetError"}offset;constructor(e,t,n){super(`${e}. offset: ${t}`,n),this.offset=t}}let J,H;function X(e,t,n,r){if(r){J??=new TextDecoder("utf8",{fatal:!0});try{return J.decode(e.subarray(t,n))}catch(e){throw new K("Invalid UTF-8 string in BSON document",{cause:e})}}return H??=new TextDecoder("utf8",{fatal:!1}),H.decode(e.subarray(t,n))}function W(e,t,n){if(0===e.length)return"";const r=n-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 i=[];for(let r=t;r<n;r++){const t=e[r];if(t>127)return null;i.push(t)}return String.fromCharCode(...i)}function G(e){return ee.fromNumberArray(Array.from({length:e},(()=>Math.floor(256*Math.random()))))}function Z(e){return crypto.getRandomValues(ee.allocate(e))}const Q=(()=>{const{crypto:e}=globalThis;return null!=e&&"function"==typeof e.getRandomValues?Z:G})(),ee={isUint8Array:s,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 K("Cannot create Buffer from the passed potentialBuffer.")},allocate:e=>r.alloc(e),allocateUnsafe:e=>r.allocUnsafe(e),compare:(e,t)=>ee.toLocalBufferType(e).compare(t),concat:e=>r.concat(e),copy:(e,t,n,r,i)=>ee.toLocalBufferType(e).copy(t,n??0,r??0,i??e.length),equals:(e,t)=>ee.toLocalBufferType(e).equals(t),fromNumberArray:e=>r.from(e),fromBase64:e=>r.from(e,"base64"),fromUTF8:e=>r.from(e,"utf8"),toBase64:e=>ee.toLocalBufferType(e).toString("base64"),fromISO88591:e=>r.from(e,"binary"),toISO88591:e=>ee.toLocalBufferType(e).toString("binary"),fromHex:e=>r.from(e,"hex"),toHex:e=>ee.toLocalBufferType(e).toString("hex"),toUTF8(e,t,n,r){const i=n-t<=20?W(e,t,n):null;if(null!=i)return i;const s=ee.toLocalBufferType(e).toString("utf8",t,n);if(r)for(let r=0;r<s.length;r++)if(65533===s.charCodeAt(r)){X(e,t,n,!0);break}return s},utf8ByteLength:e=>r.byteLength(e,"utf8"),encodeUTF8Into(e,t,n){const r=function(e,t,n){if(0===t.length)return 0;if(t.length>25)return null;if(e.length-n<t.length)return null;for(let r=0,i=n;r<t.length;r++,i++){const n=t.charCodeAt(r);if(n>127)return null;e[i]=n}return t.length}(e,t,n);return null!=r?r:ee.toLocalBufferType(e).write(t,n,void 0,"utf8")},randomBytes:Q,swap32:e=>ee.toLocalBufferType(e).swap32()};function te(e){if(e<0)throw new RangeError(`The argument 'byteLength' is invalid. Received ${e}`);return ie.fromNumberArray(Array.from({length:e},(()=>Math.floor(256*Math.random()))))}const ne=(()=>{const{crypto:e}=globalThis;if(null!=e&&"function"==typeof e.getRandomValues)return t=>e.getRandomValues(ie.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 te})(),re=/(\d|[a-f])/i,ie={isUint8Array:s,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 K("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=>ie.allocate(e),compare(e,t){if(e===t)return 0;const n=Math.min(e.length,t.length);for(let r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return e.length<t.length?-1:e.length>t.length?1:0},concat(e){if(0===e.length)return ie.allocate(0);let t=0;for(const n of e)t+=n.length;const n=ie.allocate(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n},copy(e,t,n,r,i){if(void 0!==i&&i<0)throw new RangeError(`The value of "sourceEnd" is out of range. It must be >= 0. Received ${i}`);if(i=i??e.length,void 0!==r&&(r<0||r>i))throw new RangeError(`The value of "sourceStart" is out of range. It must be >= 0 and <= ${i}. Received ${r}`);if(r=r??0,void 0!==n&&n<0)throw new RangeError(`The value of "targetStart" is out of range. It must be >= 0. Received ${n}`);n=n??0;const s=e.subarray(r,i),o=Math.min(s.length,t.length-n);return o<=0?0:(t.set(s.subarray(0,o),n),o)},equals(e,t){if(e.byteLength!==t.byteLength)return!1;for(let n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0},fromNumberArray:e=>Uint8Array.from(e),fromBase64:e=>Uint8Array.from(atob(e),(e=>e.charCodeAt(0))),fromUTF8:e=>(new TextEncoder).encode(e),toBase64:e=>btoa(ie.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),n=[];for(let e=0;e<t.length;e+=2){const r=t[e],i=t[e+1];if(!re.test(r))break;if(!re.test(i))break;const s=Number.parseInt(`${r}${i}`,16);n.push(s)}return Uint8Array.from(n)},toHex:e=>Array.from(e,(e=>e.toString(16).padStart(2,"0"))).join(""),toUTF8(e,t,n,r){const i=n-t<=20?W(e,t,n):null;return null!=i?i:X(e,t,n,r)},utf8ByteLength:e=>(new TextEncoder).encode(e).byteLength,encodeUTF8Into(e,t,n){const r=(new TextEncoder).encode(t);return e.set(r,n),r.byteLength},randomBytes:ne,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 n=e[t],r=e[t+1],i=e[t+2],s=e[t+3];e[t]=s,e[t+1]=i,e[t+2]=r,e[t+3]=n}return e}},se="function"==typeof r&&!0!==r.prototype?._isBuffer?ee:ie,oe=Symbol.for("@@mdb.bson.type");class ae{get[oe](){return this._bsontype}get[h](){return u}[Symbol.for("nodejs.util.inspect.custom")](e,t,n){return this.inspect(e,t,n)}}const le=new Float64Array(1),ce=new Uint8Array(le.buffer,0,8);le[0]=-1;const pe=0===ce[7],ue={isBigEndian:pe,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)=>(BigInt(e[t+4]+256*e[t+5]+65536*e[t+6]+(e[t+7]<<24))<<32n)+BigInt(e[t]+256*e[t+1]+65536*e[t+2]+16777216*e[t+3]),getFloat64LE:pe?(e,t)=>(ce[7]=e[t],ce[6]=e[t+1],ce[5]=e[t+2],ce[4]=e[t+3],ce[3]=e[t+4],ce[2]=e[t+5],ce[1]=e[t+6],ce[0]=e[t+7],le[0]):(e,t)=>(ce[0]=e[t],ce[1]=e[t+1],ce[2]=e[t+2],ce[3]=e[t+3],ce[4]=e[t+4],ce[5]=e[t+5],ce[6]=e[t+6],ce[7]=e[t+7],le[0]),setInt32BE:(e,t,n)=>(e[t+3]=n,n>>>=8,e[t+2]=n,n>>>=8,e[t+1]=n,n>>>=8,e[t]=n,4),setInt32LE:(e,t,n)=>(e[t]=n,n>>>=8,e[t+1]=n,n>>>=8,e[t+2]=n,n>>>=8,e[t+3]=n,4),setBigInt64LE(e,t,n){const r=0xffffffffn;let i=Number(n&r);e[t]=i,i>>=8,e[t+1]=i,i>>=8,e[t+2]=i,i>>=8,e[t+3]=i;let s=Number(n>>32n&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:pe?(e,t,n)=>(le[0]=n,e[t]=ce[7],e[t+1]=ce[6],e[t+2]=ce[5],e[t+3]=ce[4],e[t+4]=ce[3],e[t+5]=ce[2],e[t+6]=ce[1],e[t+7]=ce[0],8):(e,t,n)=>(le[0]=n,e[t]=ce[0],e[t+1]=ce[1],e[t+2]=ce[2],e[t+3]=ce[3],e[t+4]=ce[4],e[t+5]=ce[5],e[t+6]=ce[6],e[t+7]=ce[7],8)};class he extends ae{get _bsontype(){return"Binary"}static BSON_BINARY_SUBTYPE_DEFAULT=0;static BUFFER_SIZE=256;static SUBTYPE_DEFAULT=0;static SUBTYPE_FUNCTION=1;static SUBTYPE_BYTE_ARRAY=2;static SUBTYPE_UUID_OLD=3;static SUBTYPE_UUID=4;static SUBTYPE_MD5=5;static SUBTYPE_ENCRYPTED=6;static SUBTYPE_COLUMN=7;static SUBTYPE_SENSITIVE=8;static SUBTYPE_VECTOR=9;static SUBTYPE_USER_DEFINED=128;static VECTOR_TYPE=Object.freeze({Int8:3,Float32:39,PackedBit:16});buffer;sub_type;position;constructor(e,t){if(super(),null!=e&&"string"==typeof e&&!ArrayBuffer.isView(e)&&!o(e)&&!Array.isArray(e))throw new K("Binary can only be constructed from Uint8Array or number[]");this.sub_type=t??he.BSON_BINARY_SUBTYPE_DEFAULT,null==e?(this.buffer=se.allocate(he.BUFFER_SIZE),this.position=0):(this.buffer=Array.isArray(e)?se.fromNumberArray(e):se.toLocalBufferType(e),this.position=this.buffer.byteLength)}put(e){if("string"==typeof e&&1!==e.length)throw new K("only accepts single character String");if("number"!=typeof e&&1!==e.length)throw new K("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 K("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=se.allocate(he.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=se.allocate(this.buffer.byteLength+e.length);t.set(this.buffer,0),this.buffer=t}if(ArrayBuffer.isView(e))this.buffer.set(se.toLocalBufferType(e),t),this.position=t+e.byteLength>this.position?t+e.length:this.position;else if("string"==typeof e)throw new K("input cannot be string")}read(e,t){const n=e+(t=t&&t>0?t:this.position);return this.buffer.subarray(e,n>this.position?this.position:n)}value(){return this.buffer.length===this.position?this.buffer:this.buffer.subarray(0,this.position)}length(){return this.position}toJSON(){return se.toBase64(this.buffer.subarray(0,this.position))}toString(e){return"hex"===e?se.toHex(this.buffer.subarray(0,this.position)):"base64"===e?se.toBase64(this.buffer.subarray(0,this.position)):se.toUTF8(this.buffer,0,this.position,!1)}toExtendedJSON(e){e=e||{},this.sub_type===he.SUBTYPE_VECTOR&&de(this);const t=se.toBase64(this.buffer),n=Number(this.sub_type).toString(16);return e.legacy?{$binary:t,$type:1===n.length?"0"+n:n}:{$binary:{base64:t,subType:1===n.length?"0"+n:n}}}toUUID(){if(this.sub_type===he.SUBTYPE_UUID)return new ye(this.buffer.subarray(0,this.position));throw new K(`Binary sub_type "${this.sub_type}" is not supported for converting to UUID. Only "${he.SUBTYPE_UUID}" is currently supported.`)}static createFromHexString(e,t){return new he(se.fromHex(e),t)}static createFromBase64(e,t){return new he(se.fromBase64(e),t)}static fromExtendedJSON(e,t){let n,r;if(t=t||{},"$binary"in e?t.legacy&&"string"==typeof e.$binary&&"$type"in e?(r=e.$type?parseInt(e.$type,16):0,n=se.fromBase64(e.$binary)):"string"!=typeof e.$binary&&(r=e.$binary.subType?parseInt(e.$binary.subType,16):0,n=se.fromBase64(e.$binary.base64)):"$uuid"in e&&(r=4,n=ye.bytesFromString(e.$uuid)),!n)throw new K(`Unexpected Binary Extended JSON format ${JSON.stringify(e)}`);return r===V?new ye(n):new he(n,r)}inspect(e,t,n){return n??=p,`Binary.createFromBase64(${n(se.toBase64(this.buffer.subarray(0,this.position)),t)}, ${n(this.sub_type,t)})`}toInt8Array(){if(this.sub_type!==he.SUBTYPE_VECTOR)throw new K("Binary sub_type is not Vector");if(this.buffer[0]!==he.VECTOR_TYPE.Int8)throw new K("Binary datatype field is not Int8");return de(this),new Int8Array(this.buffer.buffer.slice(this.buffer.byteOffset+2,this.buffer.byteOffset+this.position))}toFloat32Array(){if(this.sub_type!==he.SUBTYPE_VECTOR)throw new K("Binary sub_type is not Vector");if(this.buffer[0]!==he.VECTOR_TYPE.Float32)throw new K("Binary datatype field is not Float32");de(this);const e=new Uint8Array(this.buffer.buffer.slice(this.buffer.byteOffset+2,this.buffer.byteOffset+this.position));return ue.isBigEndian&&se.swap32(e),new Float32Array(e.buffer)}toPackedBits(){if(this.sub_type!==he.SUBTYPE_VECTOR)throw new K("Binary sub_type is not Vector");if(this.buffer[0]!==he.VECTOR_TYPE.PackedBit)throw new K("Binary datatype field is not packed bit");return de(this),new Uint8Array(this.buffer.buffer.slice(this.buffer.byteOffset+2,this.buffer.byteOffset+this.position))}toBits(){if(this.sub_type!==he.SUBTYPE_VECTOR)throw new K("Binary sub_type is not Vector");if(this.buffer[0]!==he.VECTOR_TYPE.PackedBit)throw new K("Binary datatype field is not packed bit");de(this);const e=8*(this.length()-2)-this.buffer[1],t=new Int8Array(e);for(let e=0;e<t.length;e++){const n=e/8|0,r=this.buffer[n+2]>>7-e%8&1;t[e]=r}return t}static fromInt8Array(e){const t=se.allocate(e.byteLength+2);t[0]=he.VECTOR_TYPE.Int8,t[1]=0;const n=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.set(n,2);const r=new this(t,this.SUBTYPE_VECTOR);return de(r),r}static fromFloat32Array(e){const t=se.allocate(e.byteLength+2);t[0]=he.VECTOR_TYPE.Float32,t[1]=0;const n=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.set(n,2),ue.isBigEndian&&se.swap32(new Uint8Array(t.buffer,2));const r=new this(t,this.SUBTYPE_VECTOR);return de(r),r}static fromPackedBits(e,t=0){const n=se.allocate(e.byteLength+2);n[0]=he.VECTOR_TYPE.PackedBit,n[1]=t,n.set(e,2);const r=new this(n,this.SUBTYPE_VECTOR);return de(r),r}static fromBits(e){const t=e.length+7>>>3,n=new Uint8Array(t+2);n[0]=he.VECTOR_TYPE.PackedBit;const r=e.length%8;n[1]=0===r?0:8-r;for(let t=0;t<e.length;t++){const r=t>>>3,i=e[t];if(0!==i&&1!==i)throw new K(`Invalid bit value at ${t}: must be 0 or 1, found ${e[t]}`);if(0===i)continue;const s=7-t%8;n[r+2]|=i<<s}return new this(n,he.SUBTYPE_VECTOR)}}function de(e){if(e.sub_type!==he.SUBTYPE_VECTOR)return;const t=e.position,n=e.buffer[0],r=e.buffer[1];if((n===he.VECTOR_TYPE.Float32||n===he.VECTOR_TYPE.Int8)&&0!==r)throw new K("Invalid Vector: padding must be zero for int8 and float32 vectors");if(n===he.VECTOR_TYPE.Float32&&0!==t&&t-2!=0&&(t-2)%4!=0)throw new K("Invalid Vector: Float32 vector must contain a multiple of 4 bytes");if(n===he.VECTOR_TYPE.PackedBit&&0!==r&&2===t)throw new K("Invalid Vector: padding must be zero for packed bit vectors that are empty");if(n===he.VECTOR_TYPE.PackedBit&&r>7)throw new K(`Invalid Vector: padding must be a value between 0 and 7. found: ${r}`)}const fe=/^[0-9A-F]{32}$/i,me=/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i;class ye extends he{constructor(e){let t;if(null==e)t=ye.generate();else if(e instanceof ye)t=se.toLocalBufferType(new Uint8Array(e.buffer));else if(ArrayBuffer.isView(e)&&16===e.byteLength)t=se.toLocalBufferType(e);else{if("string"!=typeof e)throw new K("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=ye.bytesFromString(e)}super(t,V)}get id(){return this.buffer}set id(e){this.buffer=e}toHexString(e=!0){return e?[se.toHex(this.buffer.subarray(0,4)),se.toHex(this.buffer.subarray(4,6)),se.toHex(this.buffer.subarray(6,8)),se.toHex(this.buffer.subarray(8,10)),se.toHex(this.buffer.subarray(10,16))].join("-"):se.toHex(this.buffer)}toString(e){return"hex"===e?se.toHex(this.id):"base64"===e?se.toBase64(this.id):this.toHexString()}toJSON(){return this.toHexString()}equals(e){if(!e)return!1;if(e instanceof ye)return se.equals(e.id,this.id);try{return se.equals(new ye(e).id,this.id)}catch{return!1}}toBinary(){return new he(this.id,he.SUBTYPE_UUID)}static generate(){const e=se.randomBytes(16);return e[6]=15&e[6]|64,e[8]=63&e[8]|128,e}static isValid(e){return!!e&&("string"==typeof e?ye.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=ye.bytesFromString(e);return new ye(t)}static createFromBase64(e){return new ye(se.fromBase64(e))}static bytesFromString(e){if(!ye.isValidUUIDString(e))throw new K("UUID string representation must be 32 hex digits or canonical hyphenated representation");return se.fromHex(e.replace(/-/g,""))}static isValidUUIDString(e){return fe.test(e)||me.test(e)}inspect(e,t,n){return n??=p,`new UUID(${n(this.toHexString(),t)})`}}class ge extends ae{get _bsontype(){return"Code"}code;scope;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 ge(e.$code,e.$scope)}inspect(e,t,n){n??=p;let r=n(this.code,t);const i=r.includes("\n");return null!=this.scope&&(r+=`,${i?"\n":" "}${n(this.scope,t)}`),`new Code(${i?"\n":""}${r}${i&&null===this.scope?"\n":""})`}}function Te(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 Se extends ae{get _bsontype(){return"DBRef"}collection;oid;db;fields;constructor(e,t,n,r){super();const i=e.split(".");2===i.length&&(n=i.shift(),e=i.shift()),this.collection=e,this.oid=t,this.db=n,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 Se(e.$ref,e.$id,e.$db,t)}inspect(e,t,n){n??=p;const r=[n(this.namespace,t),n(this.oid,t),...this.db?[n(this.db,t)]:[],...Object.keys(this.fields).length>0?[n(this.fields,t)]:[]];return r[1]=n===p?`new ObjectId(${r[1]})`:r[1],`new DBRef(${r.join(", ")})`}}function be(e){if(""===e)return e;let t=0;const n="-"===e[t],r="+"===e[t];(r||n)&&(t+=1);let i=!1;for(;t<e.length&&"0"===e[t];++t)i=!0;return i?`${n?"-":""}${e.length===t?"0":e.slice(t)}`:r?e.slice(1):e}let xe;try{xe=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 ve=4294967296,Ee=0x10000000000000000,we=Ee/2,Ae={},Pe={},Ie=/^(\+?0|(\+|-)?[1-9][0-9]*)$/;class Ce extends ae{get _bsontype(){return"Long"}get __isLong__(){return!0}high;low;unsigned;constructor(e=0,t,n){super();const r="boolean"==typeof t?t:Boolean(n),i="number"==typeof t?t:0,s="string"==typeof e?Ce.fromString(e,r):"bigint"==typeof e?Ce.fromBigInt(e,r):{low:0|e,high:0|i,unsigned:r};this.low=s.low,this.high=s.high,this.unsigned=s.unsigned}static TWO_PWR_24=Ce.fromInt(16777216);static MAX_UNSIGNED_VALUE=Ce.fromBits(-1,-1,!0);static ZERO=Ce.fromInt(0);static UZERO=Ce.fromInt(0,!0);static ONE=Ce.fromInt(1);static UONE=Ce.fromInt(1,!0);static NEG_ONE=Ce.fromInt(-1);static MAX_VALUE=Ce.fromBits(-1,2147483647,!1);static MIN_VALUE=Ce.fromBits(0,-2147483648,!1);static fromBits(e,t,n){return new Ce(e,t,n)}static fromInt(e,t){let n,r,i;return t?(i=0<=(e>>>=0)&&e<256)&&(r=Pe[e],r)?r:(n=Ce.fromBits(e,(0|e)<0?-1:0,!0),i&&(Pe[e]=n),n):(i=-128<=(e|=0)&&e<128)&&(r=Ae[e],r)?r:(n=Ce.fromBits(e,e<0?-1:0,!1),i&&(Ae[e]=n),n)}static fromNumber(e,t){if(isNaN(e))return t?Ce.UZERO:Ce.ZERO;if(t){if(e<0)return Ce.UZERO;if(e>=Ee)return Ce.MAX_UNSIGNED_VALUE}else{if(e<=-we)return Ce.MIN_VALUE;if(e+1>=we)return Ce.MAX_VALUE}return e<0?Ce.fromNumber(-e,t).neg():Ce.fromBits(e%ve|0,e/ve|0,t)}static fromBigInt(e,t){const n=0xffffffffn;return new Ce(Number(e&n),Number(e>>32n&n),t)}static _fromString(e,t,n){if(0===e.length)throw new K("empty string");if(n<2||36<n)throw new K("radix");let r;if((r=e.indexOf("-"))>0)throw new K("interior hyphen");if(0===r)return Ce._fromString(e.substring(1),t,n).neg();const i=Ce.fromNumber(Math.pow(n,8));let s=Ce.ZERO;for(let t=0;t<e.length;t+=8){const r=Math.min(8,e.length-t),o=parseInt(e.substring(t,t+r),n);if(r<8){const e=Ce.fromNumber(Math.pow(n,r));s=s.mul(e).add(Ce.fromNumber(o))}else s=s.mul(i),s=s.add(Ce.fromNumber(o))}return s.unsigned=t,s}static fromStringStrict(e,t,n){let r=!1;if("number"==typeof t?(n=t,t=!1):r=!!t,n??=10,e.trim()!==e)throw new K(`Input: '${e}' contains leading and/or trailing whitespace`);if(!function(e,t){const n="0123456789abcdefghijklmnopqrstuvwxyz".slice(0,t=t??10);return!new RegExp(`[^-+${n}]`,"i").test(e)&&e}(e,n))throw new K(`Input: '${e}' contains invalid characters for radix: ${n}`);const i=be(e),s=Ce._fromString(i,r,n);if(s.toString(n).toLowerCase()!==i.toLowerCase())throw new K(`Input: ${e} is not representable as ${s.unsigned?"an unsigned":"a signed"} 64-bit Long ${null!=n?`with radix: ${n}`:""}`);return s}static fromString(e,t,n){let r=!1;return"number"==typeof t?(n=t,t=!1):r=!!t,n??=10,"NaN"===e&&n<24||("Infinity"===e||"+Infinity"===e||"-Infinity"===e)&&n<35?Ce.ZERO:Ce._fromString(e,r,n)}static fromBytes(e,t,n){return n?Ce.fromBytesLE(e,t):Ce.fromBytesBE(e,t)}static fromBytesLE(e,t){return new Ce(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 Ce(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?Ce.fromNumber(e,t):"string"==typeof e?Ce.fromString(e,t):Ce.fromBits(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}add(e){Ce.isLong(e)||(e=Ce.fromValue(e));const t=this.high>>>16,n=65535&this.high,r=this.low>>>16,i=65535&this.low,s=e.high>>>16,o=65535&e.high,a=e.low>>>16;let l=0,c=0,p=0,u=0;return u+=i+(65535&e.low),p+=u>>>16,u&=65535,p+=r+a,c+=p>>>16,p&=65535,c+=n+o,l+=c>>>16,c&=65535,l+=t+s,l&=65535,Ce.fromBits(p<<16|u,l<<16|c,this.unsigned)}and(e){return Ce.isLong(e)||(e=Ce.fromValue(e)),Ce.fromBits(this.low&e.low,this.high&e.high,this.unsigned)}compare(e){if(Ce.isLong(e)||(e=Ce.fromValue(e)),this.eq(e))return 0;const t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?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(Ce.isLong(e)||(e=Ce.fromValue(e)),e.isZero())throw new K("division by zero");if(xe){if(!this.unsigned&&-2147483648===this.high&&-1===e.low&&-1===e.high)return this;const t=(this.unsigned?xe.div_u:xe.div_s)(this.low,this.high,e.low,e.high);return Ce.fromBits(t,xe.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?Ce.UZERO:Ce.ZERO;let t,n,r;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return Ce.UZERO;if(e.gt(this.shru(1)))return Ce.UONE;r=Ce.UZERO}else{if(this.eq(Ce.MIN_VALUE))return e.eq(Ce.ONE)||e.eq(Ce.NEG_ONE)?Ce.MIN_VALUE:e.eq(Ce.MIN_VALUE)?Ce.ONE:(t=this.shr(1).div(e).shl(1),t.eq(Ce.ZERO)?e.isNegative()?Ce.ONE:Ce.NEG_ONE:(n=this.sub(e.mul(t)),r=t.add(n.div(e)),r));if(e.eq(Ce.MIN_VALUE))return this.unsigned?Ce.UZERO:Ce.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=Ce.ZERO}for(n=this;n.gte(e);){t=Math.max(1,Math.floor(n.toNumber()/e.toNumber()));const i=Math.ceil(Math.log(t)/Math.LN2),s=i<=48?1:Math.pow(2,i-48);let o=Ce.fromNumber(t),a=o.mul(e);for(;a.isNegative()||a.gt(n);)t-=s,o=Ce.fromNumber(t,this.unsigned),a=o.mul(e);o.isZero()&&(o=Ce.ONE),r=r.add(o),n=n.sub(a)}return r}div(e){return this.divide(e)}equals(e){return Ce.isLong(e)||(e=Ce.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(Ce.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(Ce.isLong(e)||(e=Ce.fromValue(e)),xe){const t=(this.unsigned?xe.rem_u:xe.rem_s)(this.low,this.high,e.low,e.high);return Ce.fromBits(t,xe.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 Ce.ZERO;if(Ce.isLong(e)||(e=Ce.fromValue(e)),xe){const t=xe.mul(this.low,this.high,e.low,e.high);return Ce.fromBits(t,xe.get_high(),this.unsigned)}if(e.isZero())return Ce.ZERO;if(this.eq(Ce.MIN_VALUE))return e.isOdd()?Ce.MIN_VALUE:Ce.ZERO;if(e.eq(Ce.MIN_VALUE))return this.isOdd()?Ce.MIN_VALUE:Ce.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(Ce.TWO_PWR_24)&&e.lt(Ce.TWO_PWR_24))return Ce.fromNumber(this.toNumber()*e.toNumber(),this.unsigned);const t=this.high>>>16,n=65535&this.high,r=this.low>>>16,i=65535&this.low,s=e.high>>>16,o=65535&e.high,a=e.low>>>16,l=65535&e.low;let c=0,p=0,u=0,h=0;return h+=i*l,u+=h>>>16,h&=65535,u+=r*l,p+=u>>>16,u&=65535,u+=i*a,p+=u>>>16,u&=65535,p+=n*l,c+=p>>>16,p&=65535,p+=r*a,c+=p>>>16,p&=65535,p+=i*o,c+=p>>>16,p&=65535,c+=t*l+n*a+r*o+i*s,c&=65535,Ce.fromBits(u<<16|h,c<<16|p,this.unsigned)}mul(e){return this.multiply(e)}negate(){return!this.unsigned&&this.eq(Ce.MIN_VALUE)?Ce.MIN_VALUE:this.not().add(Ce.ONE)}neg(){return this.negate()}not(){return Ce.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 Ce.isLong(e)||(e=Ce.fromValue(e)),Ce.fromBits(this.low|e.low,this.high|e.high,this.unsigned)}shiftLeft(e){return Ce.isLong(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?Ce.fromBits(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):Ce.fromBits(0,this.low<<e-32,this.unsigned)}shl(e){return this.shiftLeft(e)}shiftRight(e){return Ce.isLong(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?Ce.fromBits(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):Ce.fromBits(this.high>>e-32,this.high>=0?0:-1,this.unsigned)}shr(e){return this.shiftRight(e)}shiftRightUnsigned(e){if(Ce.isLong(e)&&(e=e.toInt()),0==(e&=63))return this;{const t=this.high;if(e<32){const n=this.low;return Ce.fromBits(n>>>e|t<<32-e,t>>>e,this.unsigned)}return 32===e?Ce.fromBits(t,0,this.unsigned):Ce.fromBits(t>>>e-32,0,this.unsigned)}}shr_u(e){return this.shiftRightUnsigned(e)}shru(e){return this.shiftRightUnsigned(e)}subtract(e){return Ce.isLong(e)||(e=Ce.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)*ve+(this.low>>>0):this.high*ve+(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?Ce.fromBits(this.low,this.high,!1):this}toString(e){if((e=e||10)<2||36<e)throw new K("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(Ce.MIN_VALUE)){const t=Ce.fromNumber(e),n=this.div(t),r=n.mul(t).sub(this);return n.toString(e)+r.toInt().toString(e)}return"-"+this.neg().toString(e)}const t=Ce.fromNumber(Math.pow(e,6),this.unsigned);let n=this,r="";for(;;){const i=n.div(t);let s=(n.sub(i.mul(t)).toInt()>>>0).toString(e);if(n=i,n.isZero())return s+r;for(;s.length<6;)s="0"+s;r=""+s+r}}toUnsigned(){return this.unsigned?this:Ce.fromBits(this.low,this.high,!0)}xor(e){return Ce.isLong(e)||(e=Ce.fromValue(e)),Ce.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:n=!1,relaxed:r=!0}={...t};if(e.$numberLong.length>20)throw new K("$numberLong string is too long");if(!Ie.test(e.$numberLong))throw new K(`$numberLong string "${e.$numberLong}" is in an invalid format`);if(n){const t=BigInt(e.$numberLong);return BigInt.asIntN(64,t)}const i=Ce.fromString(e.$numberLong);return r?i.toNumber():i}inspect(e,t,n){return n??=p,`new Long(${n(this.toString(),t)}${this.unsigned?`, ${n(this.unsigned,t)}`:""})`}}const _e=/^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/,Ne=/^(\+|-)?(Infinity|inf)$/i,Oe=/^(\+|-)?NaN$/i,ke=6111,Me=-6176,Le=se.fromNumberArray([124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),De=se.fromNumberArray([248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),Be=se.fromNumberArray([120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),Fe=/^([-+])?(\d+)?$/;function Re(e){return!isNaN(parseInt(e,10))}function je(e){const t=Ce.fromNumber(1e9);let n=Ce.fromNumber(0);if(!(e.parts[0]||e.parts[1]||e.parts[2]||e.parts[3]))return{quotient:e,rem:n};for(let r=0;r<=3;r++)n=n.shiftLeft(32),n=n.add(new Ce(e.parts[r],0)),e.parts[r]=n.div(t).low,n=n.modulo(t);return{quotient:e,rem:n}}function Ue(e,t){throw new K(`"${e}" is not a valid Decimal128 string - ${t}`)}class Ve extends ae{get _bsontype(){return"Decimal128"}bytes;constructor(e){if(super(),"string"==typeof e)this.bytes=Ve.fromString(e).bytes;else{if(!(e instanceof Uint8Array||s(e)))throw new K("Decimal128 must take a Buffer or string");if(16!==e.byteLength)throw new K("Decimal128 must take a Buffer of 16 bytes");this.bytes=e}}static fromString(e){return Ve._fromString(e,{allowRounding:!1})}static fromStringWithRounding(e){return Ve._fromString(e,{allowRounding:!0})}static _fromString(e,t){let n=!1,r=!1,i=!1,s=!1,o=0,a=0,l=0,c=0,p=0;const u=[0];let h=0,d=0,f=0,m=0,y=new Ce(0,0),g=new Ce(0,0),T=0,S=0;if(e.length>=7e3)throw new K(e+" not a valid Decimal128 string");const b=e.match(_e),x=e.match(Ne),v=e.match(Oe);if(!b&&!x&&!v||0===e.length)throw new K(e+" not a valid Decimal128 string");if(b){const t=b[2],n=b[4],r=b[5],i=b[6];n&&void 0===i&&Ue(e,"missing exponent power"),n&&void 0===t&&Ue(e,"missing exponent base"),void 0===n&&(r||i)&&Ue(e,"missing e before exponent")}if("+"!==e[S]&&"-"!==e[S]||(r=!0,n="-"===e[S++]),!Re(e[S])&&"."!==e[S]){if("i"===e[S]||"I"===e[S])return new Ve(n?De:Be);if("N"===e[S])return new Ve(Le)}for(;Re(e[S])||"."===e[S];)"."!==e[S]?(h<34&&("0"!==e[S]||s)&&(s||(p=a),s=!0,u[d++]=parseInt(e[S],10),h+=1),s&&(l+=1),i&&(c+=1),a+=1,S+=1):(i&&Ue(e,"contains multiple periods"),i=!0,S+=1);if(i&&!a)throw new K(e+" not a valid Decimal128 string");if("e"===e[S]||"E"===e[S]){const t=e.substr(++S).match(Fe);if(!t||!t[2])return new Ve(Le);m=parseInt(t[0],10),S+=t[0].length}if(e[S])return new Ve(Le);if(h){if(f=h-1,o=l,1!==o)for(;"0"===e[p+o-1+Number(r)+Number(i)];)o-=1}else u[0]=0,l=1,h=1,o=0;for(m<=c&&c>m+16384?m=Me:m-=c;m>ke;){if(f+=1,f>=34){if(0===o){m=ke;break}Ue(e,"overflow")}m-=1}if(t.allowRounding){for(;m<Me||h<l;){if(0===f&&o<h){m=Me,o=0;break}if(h<l?l-=1:f-=1,m<ke)m+=1;else{if(u.join("").match(/^0+$/)){m=ke;break}Ue(e,"overflow")}}if(f+1<o){let t=a;i&&(p+=1,t+=1),r&&(p+=1,t+=1);const s=parseInt(e[p+f+1],10);let o=0;if(s>=5&&(o=1,5===s)){o=u[f]%2==1?1:0;for(let n=p+f+2;n<t;n++)if(parseInt(e[n],10)){o=1;break}}if(o){let e=f;for(;e>=0&&++u[e]>9;e--)if(u[e]=0,0===e){if(!(m<ke))return new Ve(n?De:Be);m+=1,u[e]=1}}}}else{for(;m<Me||h<l;){if(0===f){if(0===o){m=Me;break}Ue(e,"exponent underflow")}h<l?("0"!==e[l-1+Number(r)+Number(i)]&&0!==o&&Ue(e,"inexact rounding"),l-=1):(0!==u[f]&&Ue(e,"inexact rounding"),f-=1),m<ke?m+=1:Ue(e,"overflow")}f+1<o&&(i&&(p+=1),r&&(p+=1),0!==parseInt(e[p+f+1],10)&&Ue(e,"inexact rounding"))}if(y=Ce.fromNumber(0),g=Ce.fromNumber(0),0===o)y=Ce.fromNumber(0),g=Ce.fromNumber(0);else if(f<17){let e=0;for(g=Ce.fromNumber(u[e++]),y=new Ce(0,0);e<=f;e++)g=g.multiply(Ce.fromNumber(10)),g=g.add(Ce.fromNumber(u[e]))}else{let e=0;for(y=Ce.fromNumber(u[e++]);e<=f-17;e++)y=y.multiply(Ce.fromNumber(10)),y=y.add(Ce.fromNumber(u[e]));for(g=Ce.fromNumber(u[e++]);e<=f;e++)g=g.multiply(Ce.fromNumber(10)),g=g.add(Ce.fromNumber(u[e]))}const E=function(e,t){if(!e&&!t)return{high:Ce.fromNumber(0),low:Ce.fromNumber(0)};const n=e.shiftRightUnsigned(32),r=new Ce(e.getLowBits(),0),i=t.shiftRightUnsigned(32),s=new Ce(t.getLowBits(),0);let o=n.multiply(i),a=n.multiply(s);const l=r.multiply(i);let c=r.multiply(s);return o=o.add(a.shiftRightUnsigned(32)),a=new Ce(a.getLowBits(),0).add(l).add(c.shiftRightUnsigned(32)),o=o.add(a.shiftRightUnsigned(32)),c=a.shiftLeft(32).add(new Ce(c.getLowBits(),0)),{high:o,low:c}}(y,Ce.fromString("100000000000000000"));E.low=E.low.add(g),function(e,t){const n=e.high>>>0,r=t.high>>>0;return n<r||n===r&&e.low>>>0<t.low>>>0}(E.low,g)&&(E.high=E.high.add(Ce.fromNumber(1))),T=m+6176;const w={low:Ce.fromNumber(0),high:Ce.fromNumber(0)};E.high.shiftRightUnsigned(49).and(Ce.fromNumber(1)).equals(Ce.fromNumber(1))?(w.high=w.high.or(Ce.fromNumber(3).shiftLeft(61)),w.high=w.high.or(Ce.fromNumber(T).and(Ce.fromNumber(16383).shiftLeft(47))),w.high=w.high.or(E.high.and(Ce.fromNumber(0x7fffffffffff)))):(w.high=w.high.or(Ce.fromNumber(16383&T).shiftLeft(49)),w.high=w.high.or(E.high.and(Ce.fromNumber(562949953421311)))),w.low=E.low,n&&(w.high=w.high.or(Ce.fromString("9223372036854775808")));const A=se.allocateUnsafe(16);return S=0,A[S++]=255&w.low.low,A[S++]=w.low.low>>8&255,A[S++]=w.low.low>>16&255,A[S++]=w.low.low>>24&255,A[S++]=255&w.low.high,A[S++]=w.low.high>>8&255,A[S++]=w.low.high>>16&255,A[S++]=w.low.high>>24&255,A[S++]=255&w.high.low,A[S++]=w.high.low>>8&255,A[S++]=w.high.low>>16&255,A[S++]=w.high.low>>24&255,A[S++]=255&w.high.high,A[S++]=w.high.high>>8&255,A[S++]=w.high.high>>16&255,A[S++]=w.high.high>>24&255,new Ve(A)}toString(){let e,t=0;const n=new Array(36);for(let e=0;e<n.length;e++)n[e]=0;let r,i,s,o=0,a=!1,l={parts:[0,0,0,0]};const c=[];o=0;const p=this.bytes,u=p[o++]|p[o++]<<8|p[o++]<<16|p[o++]<<24,h=p[o++]|p[o++]<<8|p[o++]<<16|p[o++]<<24,d=p[o++]|p[o++]<<8|p[o++]<<16|p[o++]<<24,f=p[o++]|p[o++]<<8|p[o++]<<16|p[o++]<<24;o=0,(new Ce(u,h),new Ce(d,f)).lessThan(Ce.ZERO)&&c.push("-");const m=f>>26&31;if(m>>3==3){if(30===m)return c.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])a=!0;else for(s=3;s>=0;s--){let e=0;const t=je(l);if(l=t.quotient,e=t.rem.low,e)for(i=8;i>=0;i--)n[9*s+i]=e%10,e=Math.floor(e/10)}if(a)t=1,n[o]=0;else for(t=36;!n[o];)t-=1,o+=1;const g=t-1+y;if(g>=34||g<=-7||y>0){if(t>34)return c.push("0"),y>0?c.push(`E+${y}`):y<0&&c.push(`E${y}`),c.join("");c.push(`${n[o++]}`),t-=1,t&&c.push(".");for(let e=0;e<t;e++)c.push(`${n[o++]}`);c.push("E"),g>0?c.push(`+${g}`):c.push(`${g}`)}else if(y>=0)for(let e=0;e<t;e++)c.push(`${n[o++]}`);else{let e=t+y;if(e>0)for(let t=0;t<e;t++)c.push(`${n[o++]}`);else c.push("0");for(c.push(".");e++<0;)c.push("0");for(let r=0;r<t-Math.max(e-1,0);r++)c.push(`${n[o++]}`)}return c.join("")}toJSON(){return{$numberDecimal:this.toString()}}toExtendedJSON(){return{$numberDecimal:this.toString()}}static fromExtendedJSON(e){return Ve.fromString(e.$numberDecimal)}inspect(e,t,n){return n??=p,`new Decimal128(${n(this.toString(),t)})`}}class qe extends ae{get _bsontype(){return"Double"}value;constructor(e){super(),e instanceof Number&&(e=e.valueOf()),this.value=+e}static fromString(e){const t=Number(e);if("NaN"===e)return new qe(NaN);if("Infinity"===e)return new qe(1/0);if("-Infinity"===e)return new qe(-1/0);if(!Number.isFinite(t))throw new K(`Input: ${e} is not representable as a Double`);if(e.trim()!==e)throw new K(`Input: '${e}' contains whitespace`);if(""===e)throw new K("Input is an empty string");if(/[^-0-9.+eE]/.test(e))throw new K(`Input: '${e}' is not in decimal or exponential notation`);return new qe(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 n=parseFloat(e.$numberDouble);return t&&t.relaxed?n:new qe(n)}inspect(e,t,n){return n??=p,`new Double(${n(this.value,t)})`}}class Ke extends ae{get _bsontype(){return"Int32"}value;constructor(e){super(),e instanceof Number&&(e=e.valueOf()),this.value=0|+e}static fromString(e){const t=be(e),n=Number(e);if(d<n)throw new K(`Input: '${e}' is larger than the maximum value for Int32`);if(f>n)throw new K(`Input: '${e}' is smaller than the minimum value for Int32`);if(!Number.isSafeInteger(n))throw new K(`Input: '${e}' is not a safe integer`);if(n.toString()!==t)throw new K(`Input: '${e}' is not a valid Int32 string`);return new Ke(n)}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 Ke(e.$numberInt)}inspect(e,t,n){return n??=p,`new Int32(${n(this.value,t)})`}}class $e extends ae{get _bsontype(){return"MaxKey"}toExtendedJSON(){return{$maxKey:1}}static fromExtendedJSON(){return new $e}inspect(){return"new MaxKey()"}}class Ye extends ae{get _bsontype(){return"MinKey"}toExtendedJSON(){return{$minKey:1}}static fromExtendedJSON(){return new Ye}inspect(){return"new MinKey()"}}let ze=null;const Je=new WeakMap;class He extends ae{get _bsontype(){return"ObjectId"}static index=Math.floor(16777215*Math.random());static cacheHexString;buffer;constructor(e){let t;if(super(),"object"==typeof e&&e&&"id"in e){if("string"!=typeof e.id&&!ArrayBuffer.isView(e.id))throw new K("Argument passed in must have an id that is of type string or Buffer");t="toHexString"in e&&"function"==typeof e.toHexString?se.fromHex(e.toHexString()):e.id}else t=e;if(null==t)this.buffer=He.generate();else if(ArrayBuffer.isView(t)&&12===t.byteLength)this.buffer=se.toLocalBufferType(t);else{if("string"!=typeof t)throw new K("Argument passed in does not match the accepted types");if(!He.validateHexString(t))throw new K("input must be a 24 character hex string, 12 byte Uint8Array, or an integer");this.buffer=se.fromHex(t),He.cacheHexString&&Je.set(this,t)}}get id(){return this.buffer}set id(e){this.buffer=e,He.cacheHexString&&Je.set(this,se.toHex(e))}static validateHexString(e){if(24!==e?.length)return!1;for(let t=0;t<24;t++){const n=e.charCodeAt(t);if(!(n>=48&&n<=57||n>=97&&n<=102||n>=65&&n<=70))return!1}return!0}toHexString(){if(He.cacheHexString){const e=Je.get(this);if(e)return e}const e=se.toHex(this.id);return He.cacheHexString&&Je.set(this,e),e}static getInc(){return He.index=(He.index+1)%16777215}static generate(e){"number"!=typeof e&&(e=Math.floor(Date.now()/1e3));const t=He.getInc(),n=se.allocateUnsafe(12);return ue.setInt32BE(n,0,e),null===ze&&(ze=se.randomBytes(5)),n[4]=ze[0],n[5]=ze[1],n[6]=ze[2],n[7]=ze[3],n[8]=ze[4],n[11]=255&t,n[10]=t>>8&255,n[9]=t>>16&255,n}toString(e){return"base64"===e?se.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(He.is(e))return this.buffer[11]===e.buffer[11]&&se.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(),n=this.toHexString();return"string"==typeof t&&t.toLowerCase()===n}return!1}getTimestamp(){const e=new Date,t=ue.getUint32BE(this.buffer,0);return e.setTime(1e3*Math.floor(t)),e}static createPk(){return new He}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=se.allocate(12);for(let e=11;e>=4;e--)t[e]=0;return ue.setInt32BE(t,0,e),new He(t)}static createFromHexString(e){if(24!==e?.length)throw new K("hex string must be 24 characters");return new He(se.fromHex(e))}static createFromBase64(e){if(16!==e?.length)throw new K("base64 string must be 16 characters");return new He(se.fromBase64(e))}static isValid(e){if(null==e)return!1;if("string"==typeof e)return He.validateHexString(e);try{return new He(e),!0}catch{return!1}}toExtendedJSON(){return this.toHexString?{$oid:this.toHexString()}:{$oid:this.toString("hex")}}static fromExtendedJSON(e){return new He(e.$oid)}isCached(){return He.cacheHexString&&Je.has(this)}inspect(e,t,n){return n??=p,`new ObjectId(${n(this.toHexString(),t)})`}}function Xe(e,t,n){let r=5;if(Array.isArray(e))for(let i=0;i<e.length;i++)r+=We(i.toString(),e[i],t,!0,n);else{"function"==typeof e?.toBSON&&(e=e.toBSON());for(const i of Object.keys(e))r+=We(i,e[i],t,!1,n)}return r}function We(e,t,n=!1,r=!1,i=!1){switch("function"==typeof t?.toBSON&&(t=t.toBSON()),typeof t){case"string":return 1+se.utf8ByteLength(e)+1+4+se.utf8ByteLength(t)+1;case"number":return Math.floor(t)===t&&t>=T&&t<=g&&t>=f&&t<=d?(null!=e?se.utf8ByteLength(e)+1:0)+5:(null!=e?se.utf8ByteLength(e)+1:0)+9;case"undefined":return r||!i?(null!=e?se.utf8ByteLength(e)+1:0)+1:0;case"boolean":return(null!=e?se.utf8ByteLength(e)+1:0)+2;case"object":if(null!=t&&"string"==typeof t._bsontype&&t[h]!==u)throw new $;if(null==t||"MinKey"===t._bsontype||"MaxKey"===t._bsontype)return(null!=e?se.utf8ByteLength(e)+1:0)+1;if("ObjectId"===t._bsontype)return(null!=e?se.utf8ByteLength(e)+1:0)+13;if(t instanceof Date||c(t))return(null!=e?se.utf8ByteLength(e)+1:0)+9;if(ArrayBuffer.isView(t)||t instanceof ArrayBuffer||o(t))return(null!=e?se.utf8ByteLength(e)+1:0)+6+t.byteLength;if("Long"===t._bsontype||"Double"===t._bsontype||"Timestamp"===t._bsontype)return(null!=e?se.utf8ByteLength(e)+1:0)+9;if("Decimal128"===t._bsontype)return(null!=e?se.utf8ByteLength(e)+1:0)+17;if("Code"===t._bsontype)return null!=t.scope&&Object.keys(t.scope).length>0?(null!=e?se.utf8ByteLength(e)+1:0)+1+4+4+se.utf8ByteLength(t.code.toString())+1+Xe(t.scope,n,i):(null!=e?se.utf8ByteLength(e)+1:0)+1+4+se.utf8ByteLength(t.code.toString())+1;if("Binary"===t._bsontype){const n=t;return n.sub_type===he.SUBTYPE_BYTE_ARRAY?(null!=e?se.utf8ByteLength(e)+1:0)+(n.position+1+4+1+4):(null!=e?se.utf8ByteLength(e)+1:0)+(n.position+1+4+1)}if("Symbol"===t._bsontype)return(null!=e?se.utf8ByteLength(e)+1:0)+se.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?se.utf8ByteLength(e)+1:0)+1+Xe(r,n,i)}return t instanceof RegExp||a(t)?(null!=e?se.utf8ByteLength(e)+1:0)+1+se.utf8ByteLength(t.source)+1+(t.global?1:0)+(t.ignoreCase?1:0)+(t.multiline?1:0)+1:"BSONRegExp"===t._bsontype?(null!=e?se.utf8ByteLength(e)+1:0)+1+se.utf8ByteLength(t.pattern)+1+se.utf8ByteLength(t.options)+1:(null!=e?se.utf8ByteLength(e)+1:0)+Xe(t,n,i)+1;case"function":return n?(null!=e?se.utf8ByteLength(e)+1:0)+1+4+se.utf8ByteLength(t.toString())+1:0;case"bigint":return(null!=e?se.utf8ByteLength(e)+1:0)+9;case"symbol":return 0;default:throw new K("Unrecognized JS type: "+typeof t)}}class Ge extends ae{get _bsontype(){return"BSONRegExp"}pattern;options;constructor(e,t){if(super(),this.pattern=e,this.options=(t??"").split("").sort().join(""),-1!==this.pattern.indexOf("\0"))throw new K(`BSON Regex patterns cannot contain null bytes, found: ${JSON.stringify(this.pattern)}`);if(-1!==this.options.indexOf("\0"))throw new K(`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 K(`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 Ge(e.$regex,Ge.parseOptions(e.$options));if("BSONRegExp"===e.$regex._bsontype)return e}if("$regularExpression"in e)return new Ge(e.$regularExpression.pattern,Ge.parseOptions(e.$regularExpression.options));throw new K(`Unexpected BSONRegExp EJSON object form: ${JSON.stringify(e)}`)}inspect(e,t,n){const r=function(e){if(null!=e&&"object"==typeof e&&"stylize"in e&&"function"==typeof e.stylize)return e.stylize}(t)??(e=>e);return n??=p,`new BSONRegExp(${r(n(this.pattern),"regexp")}, ${r(n(this.options),"regexp")})`}}class Ze extends ae{get _bsontype(){return"BSONSymbol"}value;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 Ze(e.$symbol)}inspect(e,t,n){return n??=p,`new BSONSymbol(${n(this.value,t)})`}}const Qe=Ce;class et extends Qe{get _bsontype(){return"Timestamp"}get[oe](){return"Timestamp"}static MAX_VALUE=Ce.MAX_UNSIGNED_VALUE;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(Ce.isLong(e))super(e.low,e.high,!0);else{if("object"!=typeof e||!("t"in e)||!("i"in e))throw new K("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 K("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 K("Timestamp constructed from { t, i } must provide i as a number");const t=Number(e.t),n=Number(e.i);if(t<0||Number.isNaN(t))throw new K("Timestamp constructed from { t, i } must provide a positive t");if(n<0||Number.isNaN(n))throw new K("Timestamp constructed from { t, i } must provide a positive i");if(t>4294967295)throw new K("Timestamp constructed from { t, i } must provide t equal or less than uint32 max");if(n>4294967295)throw new K("Timestamp constructed from { t, i } must provide i equal or less than uint32 max");super(n,t,!0)}}}toJSON(){return{$timestamp:this.toString()}}static fromInt(e){return new et(Ce.fromInt(e,!0))}static fromNumber(e){return new et(Ce.fromNumber(e,!0))}static fromBits(e,t){return new et({i:e,t})}static fromString(e,t){return new et(Ce.fromString(e,!0,t))}toExtendedJSON(){return{$timestamp:{t:this.t,i:this.i}}}static fromExtendedJSON(e){const t=Ce.isLong(e.$timestamp.i)?e.$timestamp.i.getLowBitsUnsigned():e.$timestamp.i,n=Ce.isLong(e.$timestamp.t)?e.$timestamp.t.getLowBitsUnsigned():e.$timestamp.t;return new et({t:n,i:t})}inspect(e,t,n){return n??=p,`new Timestamp({ t: ${n(this.t,t)}, i: ${n(this.i,t)} })`}}const tt=Ce.fromNumber(g),nt=Ce.fromNumber(T);function rt(e,t,n){const r=(t=null==t?{}:t)&&t.index?t.index:0,i=ue.getInt32LE(e,r);if(i<5)throw new K(`bson size must be >= 5, is ${i}`);if(t.allowObjectSmallerThanBufferSize&&e.length<i)throw new K(`buffer length ${e.length} must be >= bson size ${i}`);if(!t.allowObjectSmallerThanBufferSize&&e.length!==i)throw new K(`buffer length ${e.length} must === bson size ${i}`);if(i+r>e.byteLength)throw new K(`(bson size ${i} + options.index ${r} must be <= buffer length ${e.byteLength})`);if(0!==e[r+i-1])throw new K("One object, sized correctly, with a spot for an EOO, but the EOO isn't 0x00");return st(e,r,t,n)}const it=/^\$ref$|^\$id$|^\$db$/;function st(e,t,n,r=!1){const i=null==n.fieldsAsRaw?null:n.fieldsAsRaw,s=null!=n.raw&&n.raw,o="boolean"==typeof n.bsonRegExp&&n.bsonRegExp,a=n.promoteBuffers??!1,l=n.promoteLongs??!0,c=n.promoteValues??!0,p=n.useBigInt64??!1;if(p&&!c)throw new K("Must either request bigint or Long for int64 deserialization");if(p&&!l)throw new K("Must either request bigint or Long for int64 deserialization");let u,h,d=!0;const f=(null==n.validation?{utf8:!0}:n.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 K("UTF-8 validation setting cannot be empty");if("boolean"!=typeof e[0])throw new K("Invalid UTF-8 validation option, must specify boolean values");if(u=e[0],!e.every((e=>e===u)))throw new K("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 K("corrupt bson message < 5 bytes long");const y=ue.getInt32LE(e,t);if(t+=4,y<5||y>e.length)throw new K("corrupt bson message");const g=r?[]:{};let T=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 K("Bad BSON Document: illegal CString");const y=r?T++:se.toUTF8(e,t,m,!1);let q,$=!0;if($=d||h?.has(y)?u:!u,!1!==U&&"$"===y[0]&&(U=it.test(y)),t=m+1,f===b){const n=ue.getInt32LE(e,t);if(t+=4,n<=0||n>e.length-t||0!==e[t+n-1])throw new K("bad string length in bson");q=se.toUTF8(e,t,t+n-1,$),t+=n}else if(f===A){const n=se.allocateUnsafe(12);for(let r=0;r<12;r++)n[r]=e[t+r];q=new He(n),t+=12}else if(f===L&&!1===c)q=new Ke(ue.getInt32LE(e,t)),t+=4;else if(f===L)q=ue.getInt32LE(e,t),t+=4;else if(f===S)q=ue.getFloat64LE(e,t),t+=8,!1===c&&(q=new qe(q));else if(f===I){const n=ue.getInt32LE(e,t),r=ue.getInt32LE(e,t+4);t+=8,q=new Date(new Ce(n,r).toNumber())}else if(f===P){if(0!==e[t]&&1!==e[t])throw new K("illegal boolean type value");q=1===e[t++]}else if(f===x){const r=t,i=ue.getInt32LE(e,t);if(i<=0||i>e.length-t)throw new K("bad embedded document length in bson");if(s)q=e.subarray(t,t+i);else{let t=n;d||(t={...n,validation:{utf8:$}}),q=st(e,r,t,!1)}t+=i}else if(f===v){const r=t,s=ue.getInt32LE(e,t);let o=n;const a=t+s;if(i&&i[y]&&(o={...n,raw:!0}),d||(o={...o,validation:{utf8:$}}),q=st(e,r,o,!0),0!==e[(t+=s)-1])throw new K("invalid array terminator byte");if(t!==a)throw new K("corrupted array bson")}else if(f===w)q=void 0;else if(f===C)q=null;else if(f===B)if(p)q=ue.getBigInt64LE(e,t),t+=8;else{const n=ue.getInt32LE(e,t),r=ue.getInt32LE(e,t+4);t+=8;const i=new Ce(n,r);q=l&&!0===c&&i.lessThanOrEqual(tt)&&i.greaterThanOrEqual(nt)?i.toNumber():i}else if(f===F){const n=se.allocateUnsafe(16);for(let r=0;r<16;r++)n[r]=e[t+r];t+=16,q=new Ve(n)}else if(f===E){let n=ue.getInt32LE(e,t);t+=4;const r=n,i=e[t++];if(n<0)throw new K("Negative binary type element size found");if(n>e.byteLength)throw new K("Binary type size larger than document size");if(i===he.SUBTYPE_BYTE_ARRAY){if(n=ue.getInt32LE(e,t),t+=4,n<0)throw new K("Negative binary type element size found for subtype 0x02");if(n>r-4)throw new K("Binary type with subtype 0x02 contains too long binary size");if(n<r-4)throw new K("Binary type with subtype 0x02 contains too short binary size")}a&&c?q=se.toLocalBufferType(e.subarray(t,t+n)):(q=new he(e.subarray(t,t+n),i),i===V&&ye.isValid(q)&&(q=q.toUUID())),t+=n}else if(f===_&&!1===o){for(m=t;0!==e[m]&&m<e.length;)m++;if(m>=e.length)throw new K("Bad BSON Document: illegal CString");const n=se.toUTF8(e,t,m,!1);for(m=t=m+1;0!==e[m]&&m<e.length;)m++;if(m>=e.length)throw new K("Bad BSON Document: illegal CString");const r=se.toUTF8(e,t,m,!1);t=m+1;const i=new Array(r.length);for(m=0;m<r.length;m++)switch(r[m]){case"m":i[m]="m";break;case"s":i[m]="g";break;case"i":i[m]="i"}q=new RegExp(n,i.join(""))}else if(f===_&&!0===o){for(m=t;0!==e[m]&&m<e.length;)m++;if(m>=e.length)throw new K("Bad BSON Document: illegal CString");const n=se.toUTF8(e,t,m,!1);for(m=t=m+1;0!==e[m]&&m<e.length;)m++;if(m>=e.length)throw new K("Bad BSON Document: illegal CString");const r=se.toUTF8(e,t,m,!1);t=m+1,q=new Ge(n,r)}else if(f===k){const n=ue.getInt32LE(e,t);if(t+=4,n<=0||n>e.length-t||0!==e[t+n-1])throw new K("bad string length in bson");const r=se.toUTF8(e,t,t+n-1,$);q=c?r:new Ze(r),t+=n}else if(f===D)q=new et({i:ue.getUint32LE(e,t),t:ue.getUint32LE(e,t+4)}),t+=8;else if(f===R)q=new Ye;else if(f===j)q=new $e;else if(f===O){const n=ue.getInt32LE(e,t);if(t+=4,n<=0||n>e.length-t||0!==e[t+n-1])throw new K("bad string length in bson");const r=se.toUTF8(e,t,t+n-1,$);q=new ge(r),t+=n}else if(f===M){const r=ue.getInt32LE(e,t);if(t+=4,r<13)throw new K("code_w_scope total size shorter minimum expected length");const i=ue.getInt32LE(e,t);if(t+=4,i<=0||i>e.length-t||0!==e[t+i-1])throw new K("bad string length in bson");const s=se.toUTF8(e,t,t+i-1,$),o=t+=i,a=ue.getInt32LE(e,t),l=st(e,o,n,!1);if(t+=a,r<8+a+i)throw new K("code_w_scope total size is too short, truncating scope");if(r>8+a+i)throw new K("code_w_scope total size is too long, clips outer document");q=new ge(s,l)}else{if(f!==N)throw new K(`Detected unknown BSON type ${f.toString(16)} for fieldname "${y}"`);{const n=ue.getInt32LE(e,t);if(t+=4,n<=0||n>e.length-t||0!==e[t+n-1])throw new K("bad string length in bson");const r=se.toUTF8(e,t,t+n-1,$);t+=n;const i=se.allocateUnsafe(12);for(let n=0;n<12;n++)i[n]=e[t+n];const s=new He(i);t+=12,q=new Se(r,s)}}"__proto__"===y?Object.defineProperty(g,y,{value:q,writable:!0,enumerable:!0,configurable:!0}):g[y]=q}if(y!==t-m){if(r)throw new K("corrupt array bson");throw new K("corrupt object bson")}if(!U)return g;if(Te(g)){const e=Object.assign({},g);return delete e.$ref,delete e.$id,delete e.$db,new Se(g.$ref,g.$id,g.$db,e)}return g}const ot=/\x00/,at=new Set(["$db","$ref","$id","$clusterTime"]);function lt(e,t,n,r){e[r++]=b,e[(r=r+se.encodeUTF8Into(e,t,r)+1)-1]=0;const i=se.encodeUTF8Into(e,n,r+4);return ue.setInt32LE(e,r,i+1),r=r+4+i,e[r++]=0,r}function ct(e,t,n,r){const i=!Object.is(n,-0)&&Number.isSafeInteger(n)&&n<=d&&n>=f?L:S;return e[r++]=i,r+=se.encodeUTF8Into(e,t,r),e[r++]=0,r+(i===L?ue.setInt32LE(e,r,n):ue.setFloat64LE(e,r,n))}function pt(e,t,n,r){return e[r++]=B,r+=se.encodeUTF8Into(e,t,r),e[r++]=0,r+ue.setBigInt64LE(e,r,n)}function ut(e,t,n,r){return e[r++]=C,r+=se.encodeUTF8Into(e,t,r),e[r++]=0,r}function ht(e,t,n,r){return e[r++]=P,r+=se.encodeUTF8Into(e,t,r),e[r++]=0,e[r++]=n?1:0,r}function dt(e,t,n,r){e[r++]=I,r+=se.encodeUTF8Into(e,t,r),e[r++]=0;const i=Ce.fromNumber(n.getTime()),s=i.getLowBits(),o=i.getHighBits();return(r+=ue.setInt32LE(e,r,s))+ue.setInt32LE(e,r,o)}function ft(e,t,n,r){if(e[r++]=_,r+=se.encodeUTF8Into(e,t,r),e[r++]=0,n.source&&null!=n.source.match(ot))throw new K("value "+n.source+" must not contain null bytes");return r+=se.encodeUTF8Into(e,n.source,r),e[r++]=0,n.ignoreCase&&(e[r++]=105),n.global&&(e[r++]=115),n.multiline&&(e[r++]=109),e[r++]=0,r}function mt(e,t,n,r){if(e[r++]=_,r+=se.encodeUTF8Into(e,t,r),e[r++]=0,null!=n.pattern.match(ot))throw new K("pattern "+n.pattern+" must not contain null bytes");r+=se.encodeUTF8Into(e,n.pattern,r),e[r++]=0;const i=n.options.split("").sort().join("");return r+=se.encodeUTF8Into(e,i,r),e[r++]=0,r}function yt(e,t,n,r){return null===n?e[r++]=C:"MinKey"===n._bsontype?e[r++]=R:e[r++]=j,r+=se.encodeUTF8Into(e,t,r),e[r++]=0,r}function gt(e,t,n,r){return e[r++]=A,r+=se.encodeUTF8Into(e,t,r),e[r++]=0,r+n.serializeInto(e,r)}function Tt(e,t,n,r){e[r++]=E,r+=se.encodeUTF8Into(e,t,r),e[r++]=0;const i=n.length;if(r+=ue.setInt32LE(e,r,i),e[r++]=U,i<=16)for(let t=0;t<i;t++)e[r+t]=n[t];else e.set(n,r);return r+i}function St(e,t,n,r,i,s,o,a,l){if(l.has(n))throw new K("Cannot convert circular structure to BSON");l.add(n),e[r++]=Array.isArray(n)?v:x,r+=se.encodeUTF8Into(e,t,r),e[r++]=0;const c=_t(e,n,i,r,s+1,o,a,l);return l.delete(n),c}function bt(e,t,n,r){e[r++]=F,r+=se.encodeUTF8Into(e,t,r),e[r++]=0;for(let t=0;t<16;t++)e[r+t]=n.bytes[t];return r+16}function xt(e,t,n,r){e[r++]="Long"===n._bsontype?B:D,r+=se.encodeUTF8Into(e,t,r),e[r++]=0;const i=n.getLowBits(),s=n.getHighBits();return(r+=ue.setInt32LE(e,r,i))+ue.setInt32LE(e,r,s)}function vt(e,t,n,r){return n=n.valueOf(),e[r++]=L,r+=se.encodeUTF8Into(e,t,r),e[r++]=0,r+ue.setInt32LE(e,r,n)}function Et(e,t,n,r){return e[r++]=S,r+=se.encodeUTF8Into(e,t,r),e[r++]=0,r+ue.setFloat64LE(e,r,n.value)}function wt(e,t,n,r){e[r++]=O,r+=se.encodeUTF8Into(e,t,r),e[r++]=0;const i=n.toString(),s=se.encodeUTF8Into(e,i,r+4)+1;return ue.setInt32LE(e,r,s),r=r+4+s-1,e[r++]=0,r}function At(e,t,n,r,i=!1,s=0,o=!1,a=!0,l){if(n.scope&&"object"==typeof n.scope){e[r++]=M,r+=se.encodeUTF8Into(e,t,r),e[r++]=0;let c=r;const p=n.code;r+=4;const u=se.encodeUTF8Into(e,p,r+4)+1;ue.setInt32LE(e,r,u),e[r+4+u-1]=0,r=r+u+4;const h=_t(e,n.scope,i,r,s+1,o,a,l);r=h-1;const d=h-c;c+=ue.setInt32LE(e,c,d),e[r++]=0}else{e[r++]=O,r+=se.encodeUTF8Into(e,t,r),e[r++]=0;const i=n.code.toString(),s=se.encodeUTF8Into(e,i,r+4)+1;ue.setInt32LE(e,r,s),r=r+4+s-1,e[r++]=0}return r}function Pt(e,t,n,r){e[r++]=E,r+=se.encodeUTF8Into(e,t,r),e[r++]=0;const i=n.buffer;let s=n.position;if(n.sub_type===he.SUBTYPE_BYTE_ARRAY&&(s+=4),r+=ue.setInt32LE(e,r,s),e[r++]=n.sub_type,n.sub_type===he.SUBTYPE_BYTE_ARRAY&&(s-=4,r+=ue.setInt32LE(e,r,s)),n.sub_type===he.SUBTYPE_VECTOR&&de(n),s<=16)for(let t=0;t<s;t++)e[r+t]=i[t];else e.set(i,r);return r+n.position}function It(e,t,n,r){e[r++]=k,r+=se.encodeUTF8Into(e,t,r),e[r++]=0;const i=se.encodeUTF8Into(e,n.value,r+4)+1;return ue.setInt32LE(e,r,i),r=r+4+i-1,e[r++]=0,r}function Ct(e,t,n,r,i,s,o){e[r++]=x,r+=se.encodeUTF8Into(e,t,r),e[r++]=0;let a=r,l={$ref:n.collection||n.namespace,$id:n.oid};null!=n.db&&(l.$db=n.db),l=Object.assign(l,n.fields);const c=_t(e,l,!1,r,i+1,s,!0,o),p=c-a;return a+=ue.setInt32LE(e,r,p),c}function _t(e,t,n,r,i,p,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 K("serialize does not support an array as the root input");if("object"!=typeof t)throw new K("serialize does not support non-object as the root input");if("_bsontype"in t&&"string"==typeof t._bsontype)throw new K("BSON types cannot be serialized as a document");if(c(t)||a(t)||s(t)||o(t))throw new K("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 o=`${r}`;let l=t[r];"function"==typeof l?.toBSON&&(l=l.toBSON());const y=typeof l;if(void 0===l)m=ut(e,o,0,m);else if(null===l)m=ut(e,o,0,m);else if("string"===y)m=lt(e,o,l,m);else if("number"===y)m=ct(e,o,l,m);else if("bigint"===y)m=pt(e,o,l,m);else if("boolean"===y)m=ht(e,o,l,m);else if("object"===y&&null==l._bsontype)m=l instanceof Date||c(l)?dt(e,o,l,m):l instanceof Uint8Array||s(l)?Tt(e,o,l,m):l instanceof RegExp||a(l)?ft(e,o,l,m):St(e,o,l,m,n,i,p,d,f);else if("object"===y){if(l[h]!==u)throw new $;if("ObjectId"===l._bsontype)m=gt(e,o,l,m);else if("Decimal128"===l._bsontype)m=bt(e,o,l,m);else if("Long"===l._bsontype||"Timestamp"===l._bsontype)m=xt(e,o,l,m);else if("Double"===l._bsontype)m=Et(e,o,l,m);else if("Code"===l._bsontype)m=At(e,o,l,m,n,i,p,d,f);else if("Binary"===l._bsontype)m=Pt(e,o,l,m);else if("BSONSymbol"===l._bsontype)m=It(e,o,l,m);else if("DBRef"===l._bsontype)m=Ct(e,o,l,m,i,p,f);else if("BSONRegExp"===l._bsontype)m=mt(e,o,l,m);else if("Int32"===l._bsontype)m=vt(e,o,l,m);else if("MinKey"===l._bsontype||"MaxKey"===l._bsontype)m=yt(e,o,l,m);else if(void 0!==l._bsontype)throw new K(`Unrecognized or invalid _bsontype: ${String(l._bsontype)}`)}else"function"===y&&p&&(m=wt(e,o,l,m))}else if(t instanceof Map||l(t)){const r=t.entries();let o=!1;for(;!o;){const t=r.next();if(o=!!t.done,o)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 g=typeof y;if("string"==typeof l&&!at.has(l)){if(null!=l.match(ot))throw new K("key "+l+" must not contain null bytes");if(n){if("$"===l[0])throw new K("key "+l+" must not start with '$'");if(l.includes("."))throw new K("key "+l+" must not contain '.'")}}if(void 0===y)!1===d&&(m=ut(e,l,0,m));else if(null===y)m=ut(e,l,0,m);else if("string"===g)m=lt(e,l,y,m);else if("number"===g)m=ct(e,l,y,m);else if("bigint"===g)m=pt(e,l,y,m);else if("boolean"===g)m=ht(e,l,y,m);else if("object"===g&&null==y._bsontype)m=y instanceof Date||c(y)?dt(e,l,y,m):y instanceof Uint8Array||s(y)?Tt(e,l,y,m):y instanceof RegExp||a(y)?ft(e,l,y,m):St(e,l,y,m,n,i,p,d,f);else if("object"===g){if(y[h]!==u)throw new $;if("ObjectId"===y._bsontype)m=gt(e,l,y,m);else if("Decimal128"===y._bsontype)m=bt(e,l,y,m);else if("Long"===y._bsontype||"Timestamp"===y._bsontype)m=xt(e,l,y,m);else if("Double"===y._bsontype)m=Et(e,l,y,m);else if("Code"===y._bsontype)m=At(e,l,y,m,n,i,p,d,f);else if("Binary"===y._bsontype)m=Pt(e,l,y,m);else if("BSONSymbol"===y._bsontype)m=It(e,l,y,m);else if("DBRef"===y._bsontype)m=Ct(e,l,y,m,i,p,f);else if("BSONRegExp"===y._bsontype)m=mt(e,l,y,m);else if("Int32"===y._bsontype)m=vt(e,l,y,m);else if("MinKey"===y._bsontype||"MaxKey"===y._bsontype)m=yt(e,l,y,m);else if(void 0!==y._bsontype)throw new K(`Unrecognized or invalid _bsontype: ${String(y._bsontype)}`)}else"function"===g&&p&&(m=wt(e,l,y,m))}}else{if("function"==typeof t?.toBSON&&null!=(t=t.toBSON())&&"object"!=typeof t)throw new K("toBSON function did not return an object");for(const r of Object.keys(t)){let o=t[r];"function"==typeof o?.toBSON&&(o=o.toBSON());const l=typeof o;if("string"==typeof r&&!at.has(r)){if(null!=r.match(ot))throw new K("key "+r+" must not contain null bytes");if(n){if("$"===r[0])throw new K("key "+r+" must not start with '$'");if(r.includes("."))throw new K("key "+r+" must not contain '.'")}}if(void 0===o)!1===d&&(m=ut(e,r,0,m));else if(null===o)m=ut(e,r,0,m);else if("string"===l)m=lt(e,r,o,m);else if("number"===l)m=ct(e,r,o,m);else if("bigint"===l)m=pt(e,r,o,m);else if("boolean"===l)m=ht(e,r,o,m);else if("object"===l&&null==o._bsontype)m=o instanceof Date||c(o)?dt(e,r,o,m):o instanceof Uint8Array||s(o)?Tt(e,r,o,m):o instanceof RegExp||a(o)?ft(e,r,o,m):St(e,r,o,m,n,i,p,d,f);else if("object"===l){if(o[h]!==u)throw new $;if("ObjectId"===o._bsontype)m=gt(e,r,o,m);else if("Decimal128"===o._bsontype)m=bt(e,r,o,m);else if("Long"===o._bsontype||"Timestamp"===o._bsontype)m=xt(e,r,o,m);else if("Double"===o._bsontype)m=Et(e,r,o,m);else if("Code"===o._bsontype)m=At(e,r,o,m,n,i,p,d,f);else if("Binary"===o._bsontype)m=Pt(e,r,o,m);else if("BSONSymbol"===o._bsontype)m=It(e,r,o,m);else if("DBRef"===o._bsontype)m=Ct(e,r,o,m,i,p,f);else if("BSONRegExp"===o._bsontype)m=mt(e,r,o,m);else if("Int32"===o._bsontype)m=vt(e,r,o,m);else if("MinKey"===o._bsontype||"MaxKey"===o._bsontype)m=yt(e,r,o,m);else if(void 0!==o._bsontype)throw new K(`Unrecognized or invalid _bsontype: ${String(o._bsontype)}`)}else"function"===l&&p&&(m=wt(e,r,o,m))}}f.delete(t),e[m++]=0;const y=m-r;return r+=ue.setInt32LE(e,r,y),m}const Nt={$oid:He,$binary:he,$uuid:he,$symbol:Ze,$numberInt:Ke,$numberDecimal:Ve,$numberDouble:qe,$numberLong:Ce,$minKey:Ye,$maxKey:$e,$regex:Ge,$regularExpression:Ge,$timestamp:et};function Ot(e,t={}){if("number"==typeof e){const n=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(n)return new Ke(e);if(r)return t.useBigInt64?BigInt(e):Ce.fromNumber(e)}return new qe(e)}if(null==e||"object"!=typeof e)return e;if(e.$undefined)return null;const n=Object.keys(e).filter((t=>t.startsWith("$")&&null!=e[t]));for(let r=0;r<n.length;r++){const i=Nt[n[r]];if(i)return i.fromExtendedJSON(e,t)}if(null!=e.$date){const n=e.$date,r=new Date;if(t.legacy)if("number"==typeof n)r.setTime(n);else if("string"==typeof n)r.setTime(Date.parse(n));else{if("bigint"!=typeof n)throw new Y("Unrecognized type for EJSON date: "+typeof n);r.setTime(Number(n))}else if("string"==typeof n)r.setTime(Date.parse(n));else if(Ce.isLong(n))r.setTime(n.toNumber());else if("number"==typeof n&&t.relaxed)r.setTime(n);else{if("bigint"!=typeof n)throw new Y("Unrecognized type for EJSON date: "+typeof n);r.setTime(Number(n))}return r}if(null!=e.$code){const t=Object.assign({},e);return e.$scope&&(t.$scope=Ot(e.$scope)),ge.fromExtendedJSON(e)}if(Te(e)||e.$dbPointer){const t=e.$ref?e:e.$dbPointer;if(t instanceof Se)return t;const n=Object.keys(t).filter((e=>e.startsWith("$")));let r=!0;if(n.forEach((e=>{-1===["$ref","$id","$db"].indexOf(e)&&(r=!1)})),r)return Se.fromExtendedJSON(t)}return e}function kt(e){const t=e.toISOString();return 0!==e.getUTCMilliseconds()?t:t.slice(0,-5)+"Z"}function Mt(e,t){if(e instanceof Map||l(e)){const n=Object.create(null);for(const[t,r]of e){if("string"!=typeof t)throw new K("Can only serialize maps with string keys");n[t]=r}return Mt(n,t)}if(("object"==typeof e||"function"==typeof e)&&null!==e){const n=t.seenObjects.findIndex((t=>t.obj===e));if(-1!==n){const e=t.seenObjects.map((e=>e.propertyName)),r=e.slice(0,n).map((e=>`${e} -> `)).join(""),i=e[n],s=" -> "+e.slice(n+1,e.length-1).map((e=>`${e} -> `)).join(""),o=e[e.length-1],a=" ".repeat(r.length+i.length/2),l="-".repeat(s.length+(i.length+o.length)/2-1);throw new K(`Converting circular structure to EJSON:\n ${r}${i}${s}${o}\n ${a}\\${l}/`)}t.seenObjects[t.seenObjects.length-1].obj=e}if(Array.isArray(e))return function(e,t){return e.map(((e,n)=>{t.seenObjects.push({propertyName:`index ${n}`,obj:null});try{return Mt(e,t)}finally{t.seenObjects.pop()}}))}(e,t);if(void 0===e)return t.ignoreUndefined?void 0:null;if(e instanceof Date||c(e)){const n=e.getTime(),r=n>-1&&n<2534023188e5;return t.legacy?t.relaxed&&r?{$date:e.getTime()}:{$date:kt(e)}:t.relaxed&&r?{$date:kt(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||a(e)){let n=e.flags;if(void 0===n){const t=e.toString().match(/[gimuy]*$/);t&&(n=t[0])}return new Ge(e.source,n).toExtendedJSON(t)}return null!=e&&"object"==typeof e?function(e,t){if(null==e||"object"!=typeof e)throw new K("not an object instance");const n=e._bsontype;if(void 0===n){const n={};for(const r of Object.keys(e)){t.seenObjects.push({propertyName:r,obj:null});try{const i=Mt(e[r],t);"__proto__"===r?Object.defineProperty(n,r,{value:i,writable:!0,enumerable:!0,configurable:!0}):n[r]=i}finally{t.seenObjects.pop()}}return n}if(null!=e&&"object"==typeof e&&"string"==typeof e._bsontype&&e[h]!==u)throw new $;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=Lt[e._bsontype];if(!t)throw new K("Unrecognized or invalid _bsontype: "+e._bsontype);r=t(r)}return"Code"===n&&r.scope?r=new ge(r.code,Mt(r.scope,t)):"DBRef"===n&&r.oid&&(r=new Se(Mt(r.collection,t),Mt(r.oid,t),Mt(r.db,t),Mt(r.fields,t))),r.toExtendedJSON(t)}throw new K("_bsontype must be a string, but was: "+typeof n)}(e,t):e}const Lt={Binary:e=>new he(e.value(),e.sub_type),Code:e=>new ge(e.code,e.scope),DBRef:e=>new Se(e.collection||e.namespace,e.oid,e.db,e.fields),Decimal128:e=>new Ve(e.bytes),Double:e=>new qe(e.value),Int32:e=>new Ke(e.value),Long:e=>Ce.fromBits(null!=e.low?e.low:e.low_,null!=e.low?e.high:e.high_,null!=e.low?e.unsigned:e.unsigned_),MaxKey:()=>new $e,MinKey:()=>new Ye,ObjectId:e=>new He(e),BSONRegExp:e=>new Ge(e.pattern,e.options),BSONSymbol:e=>new Ze(e.value),Timestamp:e=>et.fromBits(e.low,e.high)};function Dt(e,t){const n={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 K(`BSON Document field names cannot contain null bytes, found: ${JSON.stringify(e)}`);return Ot(t,n)}))}function Bt(e,t,n,r){null!=n&&"object"==typeof n&&(r=n,n=0),null==t||"object"!=typeof t||Array.isArray(t)||(r=t,t=void 0,n=0);const i=Mt(e,Object.assign({relaxed:!0,legacy:!1},r,{seenObjects:[{propertyName:"(root)",obj:null}]}));return JSON.stringify(i,t,n)}const Ft=Object.create(null);Ft.parse=Dt,Ft.stringify=Bt,Ft.serialize=function(e,t){return t=t||{},JSON.parse(Bt(e,t))},Ft.deserialize=function(e,t){return t=t||{},Dt(JSON.stringify(e),t)},Object.freeze(Ft);function Rt(e,t){try{return ue.getNonnegativeInt32LE(e,t)}catch(e){throw new z("BSON size cannot be negative",t,{cause:e})}}function jt(e,t){let n=t;for(;0!==e[n];n++);if(n===e.length-1)throw new z("Null terminator not found",t);return n}const Ut=Object.create(null);Ut.parseToElements=function(e,t=0){if(t??=0,e.length<5)throw new z(`Input must be at least 5 bytes, got ${e.length} bytes`,t);const n=Rt(e,t);if(n>e.length-t)throw new z(`Parsed documentSize (${n} bytes) does not match input length (${e.length} bytes)`,t);if(0!==e[t+n-1])throw new z("BSON documents must end in 0x00",t+n);const r=[];let i=t+4;for(;i<=n+t;){const s=e[i];if(i+=1,0===s){if(i-t!==n)throw new z("Invalid 0x00 type byte",i);break}const o=i,a=jt(e,i)-o;let l;if(i+=a+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=jt(e,jt(e,i)+1)+1-i;else if(3===s||4===s||15===s)l=Rt(e,i);else{if(2!==s&&5!==s&&12!==s&&13!==s&&14!==s)throw new z(`Invalid 0x${s.toString(16).padStart(2,"0")} type byte`,i);l=Rt(e,i)+4,5===s&&(l+=1),12===s&&(l+=12)}if(l>n)throw new z("value reports length larger than document",i);r.push([s,o,a,i,l]),i+=l}return r},Ut.ByteUtils=se,Ut.NumberUtils=ue,Object.freeze(Ut);const Vt=17825792;let qt=se.allocate(Vt);function Kt(e){qt.length<e&&(qt=se.allocate(e))}function $t(e,t={}){const n="boolean"==typeof t.checkKeys&&t.checkKeys,r="boolean"==typeof t.serializeFunctions&&t.serializeFunctions,i="boolean"!=typeof t.ignoreUndefined||t.ignoreUndefined,s="number"==typeof t.minInternalBufferSize?t.minInternalBufferSize:Vt;qt.length<s&&(qt=se.allocate(s));const o=_t(qt,e,n,0,0,r,i,null),a=se.allocateUnsafe(o);return a.set(qt.subarray(0,o),0),a}function Yt(e,t,n={}){const r="boolean"==typeof n.checkKeys&&n.checkKeys,i="boolean"==typeof n.serializeFunctions&&n.serializeFunctions,s="boolean"!=typeof n.ignoreUndefined||n.ignoreUndefined,o="number"==typeof n.index?n.index:0,a=_t(qt,e,r,0,0,i,s,null);return t.set(qt.subarray(0,a),o),o+a-1}function zt(e,t={}){return rt(se.toLocalBufferType(e),t)}function Jt(e,t={}){return Xe(e,"boolean"==typeof(t=t||{}).serializeFunctions&&t.serializeFunctions,"boolean"!=typeof t.ignoreUndefined||t.ignoreUndefined)}function Ht(e,t,n,r,i,s){const o=Object.assign({allowObjectSmallerThanBufferSize:!0,index:0},s),a=se.toLocalBufferType(e);let l=t;for(let e=0;e<n;e++){const t=ue.getInt32LE(a,l);o.index=l,r[i+e]=rt(a,o),l+=t}return l}var Xt=Object.freeze({__proto__:null,BSONError:K,BSONOffsetError:z,BSONRegExp:Ge,BSONRuntimeError:Y,BSONSymbol:Ze,BSONType:q,BSONValue:ae,BSONVersionError:$,Binary:he,ByteUtils:se,Code:ge,DBRef:Se,Decimal128:Ve,Double:qe,EJSON:Ft,Int32:Ke,Long:Ce,MaxKey:$e,MinKey:Ye,NumberUtils:ue,ObjectId:He,Timestamp:et,UUID:ye,bsonType:oe,calculateObjectSize:Jt,deserialize:zt,deserializeStream:Ht,onDemand:Ut,serialize:$t,serializeWithBufferAndIndex:Yt,setInternalBufferSize:Kt});t.BSON=Xt,t.BSONError=K,t.BSONOffsetError=z,t.BSONRegExp=Ge,t.BSONRuntimeError=Y,t.BSONSymbol=Ze,t.BSONType=q,t.BSONValue=ae,t.BSONVersionError=$,t.Binary=he,t.ByteUtils=se,t.Code=ge,t.DBRef=Se,t.Decimal128=Ve,t.Double=qe,t.EJSON=Ft,t.Int32=Ke,t.Long=Ce,t.MaxKey=$e,t.MinKey=Ye,t.NumberUtils=ue,t.ObjectId=He,t.Timestamp=et,t.UUID=ye,t.bsonType=oe,t.calculateObjectSize=Jt,t.deserialize=zt,t.deserializeStream=Ht,t.onDemand=Ut,t.serialize=$t,t.serializeWithBufferAndIndex=Yt,t.setInternalBufferSize=Kt},62563:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)("leadingComments",e,t)};var r=n(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 n=t.LOGICAL_OPERATORS=["||","&&","??"],r=(t.UPDATE_OPERATORS=["++","--"],t.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="]),i=t.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],s=t.COMPARISON_BINARY_OPERATORS=[...i,"in","instanceof"],o=t.BOOLEAN_BINARY_OPERATORS=[...s,...r],a=t.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],l=(t.BINARY_OPERATORS=["+",...a,...o,"|>"],t.ASSIGNMENT_OPERATORS=["=","+=",...a.map((e=>e+"=")),...n.map((e=>e+"="))],t.BOOLEAN_UNARY_OPERATORS=["delete","!"]),c=t.NUMBER_UNARY_OPERATORS=["+","-","~"],p=t.STRING_UNARY_OPERATORS=["typeof"];t.UNARY_OPERATORS=["void","throw",...l,...c,...p],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,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isVariableDeclaration)(e)&&("var"!==e.kind||e[i])};var r=n(63555),i=Symbol.for("var used to be block scoped")},63387:(e,t,n)=>{n(66346).Set;var r=n(66346).Map,i=n(66346).BitSet,s=n(66346).AltDict,o=n(51028).ATN,a=n(81367).RuleStopState,l=n(87264).Q,c=n(470).G,p=n(7842).Ij,u=(n(66346).Hash,n(66346).hashStuff);function h(){return this}n(66346).equalArrays,h.SLL=0,h.LL=1,h.LL_EXACT_AMBIG_DETECTION=2,h.hasSLLConflictTerminatingPrediction=function(e,t){if(h.allConfigsInRuleStopStates(t))return!0;if(e===h.SLL&&t.hasSemanticContext){for(var n=new l,r=0;r<t.items.length;r++){var i=t.items[r];i=new c({semanticContext:p.NONE},i),n.add(i)}t=n}var s=h.getConflictingAltSubsets(t);return h.hasConflictingAltSet(s)&&!h.hasStateAssociatedWithOneAlt(t)},h.hasConfigInRuleStopState=function(e){for(var t=0;t<e.items.length;t++)if(e.items[t].state instanceof a)return!0;return!1},h.allConfigsInRuleStopStates=function(e){for(var t=0;t<e.items.length;t++)if(!(e.items[t].state instanceof a))return!1;return!0},h.resolvesToJustOneViableAlt=function(e){return h.getSingleViableAlt(e)},h.allSubsetsConflict=function(e){return!h.hasNonConflictingAltSet(e)},h.hasNonConflictingAltSet=function(e){for(var t=0;t<e.length;t++)if(1===e[t].length)return!0;return!1},h.hasConflictingAltSet=function(e){for(var t=0;t<e.length;t++)if(e[t].length>1)return!0;return!1},h.allSubsetsEqual=function(e){for(var t=null,n=0;n<e.length;n++){var r=e[n];if(null===t)t=r;else if(r!==t)return!1}return!0},h.getUniqueAlt=function(e){var t=h.getAlts(e);return 1===t.length?t.minValue():o.INVALID_ALT_NUMBER},h.getAlts=function(e){var t=new i;return e.map((function(e){t.or(e)})),t},h.getConflictingAltSubsets=function(e){var t=new r;return t.hashFunction=function(e){u(e.state.stateNumber,e.context)},t.equalsFunction=function(e,t){return e.state.stateNumber==t.state.stateNumber&&e.context.equals(t.context)},e.items.map((function(e){var n=t.get(e);null===n&&(n=new i,t.put(e,n)),n.add(e.alt)})),t.getValues()},h.getStateToAltMap=function(e){var t=new s;return e.items.map((function(e){var n=t.get(e.state);null===n&&(n=new i,t.put(e.state,n)),n.add(e.alt)})),t},h.hasStateAssociatedWithOneAlt=function(e){for(var t=h.getStateToAltMap(e).values(),n=0;n<t.length;n++)if(1===t[n].length)return!0;return!1},h.getSingleViableAlt=function(e){for(var t=null,n=0;n<e.length;n++){var r=e[n].minValue();if(null===t)t=r;else if(t!==r)return o.INVALID_ALT_NUMBER}return t},t.PredictionMode=h},63555:(e,t,n)=>{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,i.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,i.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,i.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,i.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,i.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=n(3903),i=n(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,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,!0,!0)};var r=n(16938)},64008:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,i.default)(e);return 1===t.length?t[0]:(0,r.unionTypeAnnotation)(t)};var r=n(82208),i=n(97884)},64697:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(!n||!e)return e;const r=`${t}Comments`;return e[r]?"leading"===t?e[r]=n.concat(e[r]):e[r].push(...n):e[r]=n,e}},65830:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){const n=t.preserveComments?i:s;for(const t of n)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=n(62811);const i=["tokens","start","end","loc","raw","rawValue"],s=[...r.COMMENT_KEYS,"comments",...i]},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,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(63555),i=n(16938),s=n(37524);function o(e,t=e.key){let n;return"method"===e.kind?o.increment()+"":(n=(0,r.isIdentifier)(t)?t.name:(0,r.isStringLiteral)(t)?JSON.stringify(t.value):JSON.stringify((0,s.default)((0,i.default)(t))),e.computed&&(n=`[${n}]`),e.static&&(n=`static:${n}`),n)}o.uid=0,o.increment=function(){return o.uid>=Number.MAX_SAFE_INTEGER?o.uid=0:o.uid++}},66277:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.nodes=void 0;var r=n(45741);const{FLIPPED_ALIAS_KEYS:i,isArrayExpression:s,isAssignmentExpression:o,isBinary:a,isBlockStatement:l,isCallExpression:c,isFunction:p,isIdentifier:u,isLiteral:h,isMemberExpression:d,isObjectExpression:f,isOptionalCallExpression:m,isOptionalMemberExpression:y,isStringLiteral:g}=r;function T(e,t){return e?(d(e)||y(e)?(T(e.object,t),e.computed&&T(e.property,t)):a(e)||o(e)?(T(e.left,t),T(e.right,t)):c(e)||m(e)?(t.hasCall=!0,T(e.callee,t)):p(e)?t.hasFunction=!0:u(e)&&(t.hasHelper=t.hasHelper||e.callee&&b(e.callee)),t):t}function S(e){return T(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function b(e){return!!e&&(d(e)?b(e.object)||b(e.property):u(e)?"require"===e.name||95===e.name.charCodeAt(0):c(e)?b(e.callee):!(!a(e)&&!o(e))&&(u(e.left)&&b(e.left)||b(e.right)))}function x(e){return h(e)||f(e)||s(e)||u(e)||d(e)}const v=t.nodes={AssignmentExpression(e){const t=S(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(p(e.left)||p(e.right))return 2},Literal(e){if(g(e)&&"use strict"===e.value)return 2},CallExpression(e){if(p(e.callee)||b(e))return 3},OptionalCallExpression(e){if(p(e.callee))return 3},VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){const n=e.declarations[t];let r=b(n.id)&&!x(n.init);if(!r&&n.init){const e=S(n.init);r=b(n.init)&&e.hasCall||e.hasFunction}if(r)return 3}},IfStatement(e){if(l(e.consequent))return 3}};v.ObjectProperty=v.ObjectTypeProperty=v.ObjectMethod=function(e,t){if(t.properties[0]===e)return 1},v.ObjectTypeCallProperty=function(e,t){var n;if(t.callProperties[0]===e&&(null==(n=t.properties)||!n.length))return 1},v.ObjectTypeIndexer=function(e,t){var n,r;if(!(t.indexers[0]!==e||null!=(n=t.properties)&&n.length||null!=(r=t.callProperties)&&r.length))return 1},v.ObjectTypeInternalSlot=function(e,t){var n,r,i;if(!(t.internalSlots[0]!==e||null!=(n=t.properties)&&n.length||null!=(r=t.callProperties)&&r.length||null!=(i=t.indexers)&&i.length))return 1},[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach((function([e,t]){[e].concat(i[e]||[]).forEach((function(e){const n=t?3:0;v[e]=()=>n}))}))},66318:(e,t,n)=>{var r=n(65994).process;e.exports=r.hrtime||function(e){var t=.001*s.call(i),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]};var i=n.g.performance||{},s=i.now||i.mozNow||i.msNow||i.oNow||i.webkitNow||function(){return(new Date).getTime()}},66346:(e,t)=>{function n(e){return"["+e.join(", ")+"]"}function r(e,t){return e.equals(t)}function i(e){return e.hashCode()}function s(e,t){return this.data={},this.hashFunction=e||i,this.equalsFunction=t||r,this}function o(){return this.data=[],this}function a(e,t){return this.data={},this.hashFunction=e||i,this.equalsFunction=t||r,this}function l(){return this.data={},this}function c(){return this}function p(){return this.count=0,this.hash=0,this}String.prototype.seed=String.prototype.seed||Math.round(Math.random()*Math.pow(2,32)),String.prototype.hashCode=function(){var e,t,n,r,i,s,o,a,l=this.toString();for(e=3&l.length,t=l.length-e,n=String.prototype.seed,i=3432918353,s=461845907,a=0;a<t;)o=255&l.charCodeAt(a)|(255&l.charCodeAt(++a))<<8|(255&l.charCodeAt(++a))<<16|(255&l.charCodeAt(++a))<<24,++a,n=27492+(65535&(r=5*(65535&(n=(n^=o=(65535&(o=(o=(65535&o)*i+(((o>>>16)*i&65535)<<16)&4294967295)<<15|o>>>17))*s+(((o>>>16)*s&65535)<<16)&4294967295)<<13|n>>>19))+((5*(n>>>16)&65535)<<16)&4294967295))+((58964+(r>>>16)&65535)<<16);switch(o=0,e){case 3:o^=(255&l.charCodeAt(a+2))<<16;case 2:o^=(255&l.charCodeAt(a+1))<<8;case 1:n^=o=(65535&(o=(o=(65535&(o^=255&l.charCodeAt(a)))*i+(((o>>>16)*i&65535)<<16)&4294967295)<<15|o>>>17))*s+(((o>>>16)*s&65535)<<16)&4294967295}return n^=l.length,n=2246822507*(65535&(n^=n>>>16))+((2246822507*(n>>>16)&65535)<<16)&4294967295,n=3266489909*(65535&(n^=n>>>13))+((3266489909*(n>>>16)&65535)<<16)&4294967295,(n^=n>>>16)>>>0},Object.defineProperty(s.prototype,"length",{get:function(){var e=0;for(var t in this.data)0===t.indexOf("hash_")&&(e+=this.data[t].length);return e}}),s.prototype.add=function(e){var t="hash_"+this.hashFunction(e);if(t in this.data){for(var n=this.data[t],r=0;r<n.length;r++)if(this.equalsFunction(e,n[r]))return n[r];return n.push(e),e}return this.data[t]=[e],e},s.prototype.contains=function(e){return null!=this.get(e)},s.prototype.get=function(e){var t="hash_"+this.hashFunction(e);if(t in this.data)for(var n=this.data[t],r=0;r<n.length;r++)if(this.equalsFunction(e,n[r]))return n[r];return null},s.prototype.values=function(){var e=[];for(var t in this.data)0===t.indexOf("hash_")&&(e=e.concat(this.data[t]));return e},s.prototype.toString=function(){return n(this.values())},o.prototype.add=function(e){this.data[e]=!0},o.prototype.or=function(e){var t=this;Object.keys(e.data).map((function(e){t.add(e)}))},o.prototype.remove=function(e){delete this.data[e]},o.prototype.contains=function(e){return!0===this.data[e]},o.prototype.values=function(){return Object.keys(this.data)},o.prototype.minValue=function(){return Math.min.apply(null,this.values())},o.prototype.hashCode=function(){var e=new p;return e.update(this.values()),e.finish()},o.prototype.equals=function(e){return e instanceof o&&this.hashCode()===e.hashCode()},Object.defineProperty(o.prototype,"length",{get:function(){return this.values().length}}),o.prototype.toString=function(){return"{"+this.values().join(", ")+"}"},Object.defineProperty(a.prototype,"length",{get:function(){var e=0;for(var t in this.data)0===t.indexOf("hash_")&&(e+=this.data[t].length);return e}}),a.prototype.put=function(e,t){var n="hash_"+this.hashFunction(e);if(n in this.data){for(var r=this.data[n],i=0;i<r.length;i++){var s=r[i];if(this.equalsFunction(e,s.key)){var o=s.value;return s.value=t,o}}return r.push({key:e,value:t}),t}return this.data[n]=[{key:e,value:t}],t},a.prototype.containsKey=function(e){var t="hash_"+this.hashFunction(e);if(t in this.data)for(var n=this.data[t],r=0;r<n.length;r++){var i=n[r];if(this.equalsFunction(e,i.key))return!0}return!1},a.prototype.get=function(e){var t="hash_"+this.hashFunction(e);if(t in this.data)for(var n=this.data[t],r=0;r<n.length;r++){var i=n[r];if(this.equalsFunction(e,i.key))return i.value}return null},a.prototype.entries=function(){var e=[];for(var t in this.data)0===t.indexOf("hash_")&&(e=e.concat(this.data[t]));return e},a.prototype.getKeys=function(){return this.entries().map((function(e){return e.key}))},a.prototype.getValues=function(){return this.entries().map((function(e){return e.value}))},a.prototype.toString=function(){return"["+this.entries().map((function(e){return"{"+e.key+":"+e.value+"}"})).join(", ")+"]"},l.prototype.get=function(e){return(e="k-"+e)in this.data?this.data[e]:null},l.prototype.put=function(e,t){e="k-"+e,this.data[e]=t},l.prototype.values=function(){var e=this.data;return Object.keys(this.data).map((function(t){return e[t]}))},p.prototype.update=function(){for(var e=0;e<arguments.length;e++){var t=arguments[e];if(null!=t)if(Array.isArray(t))this.update.apply(t);else{var n=0;switch(typeof t){case"undefined":case"function":continue;case"number":case"boolean":n=t;break;case"string":n=t.hashCode();break;default:t.updateHashCode(this);continue}n=(n*=3432918353)<<15|n>>>17,n*=461845907,this.count=this.count+1;var r=this.hash^n;r=5*(r=r<<13|r>>>19)+3864292196,this.hash=r}}},p.prototype.finish=function(){var e=this.hash^4*this.count;return e^=e>>>16,e*=2246822507,e^=e>>>13,(e*=3266489909)^e>>>16},c.prototype.get=function(e,t){var n=this[e]||null;return null===n?null:n[t]||null},c.prototype.set=function(e,t,n){var r=this[e]||null;null===r&&(r={},this[e]=r),r[t]=n},t.Hash=p,t.Set=s,t.Map=a,t.BitSet=o,t.AltDict=l,t.DoubleDict=c,t.hashStuff=function(){var e=new p;return e.update.apply(arguments),e.finish()},t.escapeWhitespace=function(e,t){return e=e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r"),t&&(e=e.replace(/ /g,"·")),e},t.arrayToString=n,t.titleCase=function(e){return e.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1)}))},t.equalArrays=function(e,t){if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e==t)return!0;if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!=t[n]&&!e[n].equals(t[n]))return!1;return!0}},66840:(e,t,n)=>{var r=n(59830),i=n(63655),s=n(96830),o=n(76966),a=n(88141),l=Array.prototype.slice,c=n(36173),p={on:function(e,t,n){return c.eventsApi(this,"on",e,[t,n])&&t?(this._events||(this._events={}),(this._events[e]||(this._events[e]=[])).push({callback:t,context:n,ctx:n||this}),this):this},once:function(e,t,n){if(!c.eventsApi(this,"once",e,[t,n])||!t)return this;var i=this,s=r((function(){i.off(e,s),t.apply(this,arguments)}));return s._callback=t,this.on(e,s,n)},off:function(e,t,n){var r,s,o,a,l,p,u,h;if(!this._events||!c.eventsApi(this,"off",e,[t,n]))return this;if(!e&&!t&&!n)return this._events=void 0,this;for(l=0,p=(a=e?[e]:i(this._events)).length;l<p;l++)if(e=a[l],o=this._events[e]){if(this._events[e]=r=[],t||n)for(u=0,h=o.length;u<h;u++)s=o[u],(t&&t!==s.callback&&t!==s.callback._callback||n&&n!==s.context)&&r.push(s);r.length||delete this._events[e]}return this},trigger:function(e){if(!this._events)return this;var t=l.call(arguments,1);if(!c.eventsApi(this,"trigger",e,t))return this;var n=this._events[e],r=this._events.all;return n&&c.triggerEvents(n,t),r&&c.triggerEvents(r,arguments),this},stopListening:function(e,t,n){var r=this._listeningTo;if(!r)return this;var i=!t&&!n;n||"object"!=typeof t||(n=this),e&&((r={})[e._listenId]=e);var o=this;return a(r,(function(e,r){e.off(t,n,o),(i||s(e._events))&&delete o._listeningTo[r]})),this},createEmitter:function(e){return o(e||{},p)},listenTo:c.createListenMethod("on"),listenToOnce:c.createListenMethod("once"),listenToAndRun:function(e,t,n){return this.listenTo.apply(this,arguments),n||"object"!=typeof t||(n=this),n.apply(this),this}};p.bind=p.on,p.unbind=p.off,p.removeListener=p.off,p.removeAllListeners=p.off,p.emit=p.trigger,e.exports=p},67787:(e,t,n)=>{const r=n(54667),i=n(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 o=2147483647;function a(e){if(e>o)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,n){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 c(e,t,n)}function c(e,t,n){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 n=0|m(e,t);let r=a(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(X(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(X(e,ArrayBuffer)||e&&X(e.buffer,ArrayBuffer))return d(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(X(e,SharedArrayBuffer)||e&&X(e.buffer,SharedArrayBuffer)))return d(e,t,n);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,n);const i=function(e){if(l.isBuffer(e)){const t=0|f(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||W(e.length)?a(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function p(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 p(e),a(e<0?0:0|f(e))}function h(e){const t=e.length<0?0:0|f(e.length),n=a(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function d(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,l.prototype),r}function f(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||X(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 n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(e).length;default:if(i)return r?-1:z(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return _(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function T(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),W(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:S(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function S(e,t,n,r,i){let s,o=1,a=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;o=2,a/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){let r=-1;for(s=n;s<a;s++)if(c(e,s)===c(t,-1===r?0:s-r)){if(-1===r&&(r=s),s-r+1===l)return r*o}else-1!==r&&(s-=s-r),r=-1}else for(n+l>a&&(n=a-l),s=n;s>=0;s--){let n=!0;for(let r=0;r<l;r++)if(c(e,s+r)!==c(t,r)){n=!1;break}if(n)return s}return-1}function b(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const s=t.length;let o;for(r>s/2&&(r=s/2),o=0;o<r;++o){const r=parseInt(t.substr(2*o,2),16);if(W(r))return o;e[n+o]=r}return o}function x(e,t,n,r){return H(z(t,e.length-n),e,n,r)}function v(e,t,n,r){return H(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function E(e,t,n,r){return H(J(t),e,n,r)}function w(e,t,n,r){return H(function(e,t){let n,r,i;const s=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,s.push(i),s.push(r);return s}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let s=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,a,l;switch(o){case 1:t<128&&(s=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(s=l));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(s=l));break;case 4:n=e[i+1],r=e[i+2],a=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,l>65535&&l<1114112&&(s=l))}}null===s?(s=65533,o=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=o}return function(e){const t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=I));return n}(r)}t.kMaxLength=o,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,n){return c(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return p(e),e<=0?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)}(e,t,n)},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(X(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),X(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 n=e.length,r=t.length;for(let i=0,s=Math.min(n,r);i<s;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?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 n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=l.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(X(t,Uint8Array))i+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=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)g(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)g(this,t,t+3),g(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)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?P(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 n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},s&&(l.prototype[s]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(X(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===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let s=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0);const a=Math.min(s,o),c=this.slice(r,i),p=e.slice(t,n);for(let e=0;e<a;++e)if(c[e]!==p[e]){s=c[e],o=p[e];break}return s<o?-1:o<s?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return T(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return T(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<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 b(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":case"latin1":case"binary":return v(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);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,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function _(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function N(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=G[e[r]];return i}function O(e,t,n){const r=e.slice(t,n);let i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}function k(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,i,s){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function L(e,t,n,r,i){q(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function D(e,t,n,r,i){q(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));e[n+7]=s,s>>=8,e[n+6]=s,s>>=8,e[n+5]=s,s>>=8,e[n+4]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function B(e,t,n,r,i,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,s){return t=+t,n>>>=0,s||B(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,s){return t=+t,n>>>=0,s||B(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),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,n){e>>>=0,t>>>=0,n||k(e,t,this.length);let r=this[e],i=1,s=0;for(;++s<t&&(i*=256);)r+=this[e+s]*i;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||k(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||k(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||k(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||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=Z((function(e){K(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),l.prototype.readBigUInt64BE=Z((function(e){K(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||k(e,t,this.length);let r=this[e],i=1,s=0;for(;++s<t&&(i*=256);)r+=this[e+s]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||k(e,t,this.length);let r=t,i=1,s=this[e+--r];for(;r>0&&(i*=256);)s+=this[e+--r]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s},l.prototype.readInt8=function(e,t){return e>>>=0,t||k(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||k(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||k(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||k(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||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=Z((function(e){K(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),l.prototype.readBigInt64BE=Z((function(e){K(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(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]+n)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||k(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||k(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||k(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||k(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,s=0;for(this[t]=255&e;++s<n&&(i*=256);)this[t+s]=e/i&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,s=1;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||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,n){return e=+e,t>>>=0,n||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,n){return e=+e,t>>>=0,n||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,n){return e=+e,t>>>=0,n||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=Z((function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Z((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);M(this,e,t,n,r-1,-r)}let i=0,s=1,o=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===o&&0!==this[t+i-1]&&(o=1),this[t+i]=(e/s|0)-o&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);M(this,e,t,n,r-1,-r)}let i=n-1,s=1,o=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/s|0)-o&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||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,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||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,n){return e=+e,t>>>=0,n||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=Z((function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Z((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=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-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=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<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const s=l.isBuffer(e)?e:l.from(e,r),o=s.length;if(0===o)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=s[i%o]}return this};const j={};function U(e,t,n){j[e]=class extends n{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="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function q(e,t,n,r,i,s){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let i;throw i=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 <= ${n}${r}`,new j.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){K(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||$(t,e.length-(n+1))}(r,i,s)}function K(e,t){if("number"!=typeof e)throw new j.ERR_INVALID_ARG_TYPE(t,"number",e)}function $(e,t,n){if(Math.floor(e)!==e)throw K(e,n),new j.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new j.ERR_BUFFER_OUT_OF_BOUNDS;throw new j.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?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,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=V(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=V(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const Y=/[^+/0-9A-Za-z-_]/g;function z(e,t){let n;t=t||1/0;const r=e.length;let i=null;const s=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&s.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function J(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 H(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function X(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function W(e){return e!=e}const G=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function Z(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},67966:(e,t,n)=>{var r=t;r._reverse=function(e){var t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);var r=e[n];t[r]=n})),t},r.der=n(4045)},68044:(e,t,n)=>{var r=n(79696).Buffer,i=n(53896);function s(e,t,n){var s=t.length,o=i(t,e._cache);return e._cache=e._cache.slice(s),e._prev=r.concat([e._prev,n?t:o]),o}t.encrypt=function(e,t,n){for(var i,o=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)){o=r.concat([o,s(e,t,n)]);break}i=e._cache.length,o=r.concat([o,s(e,t.slice(0,i),n)]),t=t.slice(i)}return o}},68667:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatement=function(e){var t;this.tokenChar(123);const n=this.enterDelimited(),r=null==(t=e.directives)?void 0:t.length;if(r){var i;const t=e.body.length?2:1;this.printSequence(e.directives,!0,t),null!=(i=e.directives[r-1].trailingComments)&&i.length||this.newline(t)}this.printSequence(e.body,!0),n(),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:i}=e;if(r.test(i)){if(n.test(i))throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");this.token(`'${i}'`)}else this.token(`"${i}"`)},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 n=null==(t=e.directives)?void 0:t.length;if(n){var r;const t=e.body.length?2:1;this.printSequence(e.directives,void 0,t),null!=(r=e.directives[n-1].trailingComments)&&r.length||this.newline(t)}this.printSequence(e.body)};const n=/(?:^|[^\\])(?:\\\\)*'/,r=/(?:^|[^\\])(?:\\\\)*"/},68740:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(!i(e))return!1;const s=Array.isArray(t)?t:t.split("."),o=[];let a;for(a=e;i(a);a=null!=(l=a.object)?l:a.meta){var l;o.push(a.property)}if(o.push(a),o.length<s.length)return!1;if(!n&&o.length>s.length)return!1;for(let e=0,t=o.length-1;e<s.length;e++,t--){const n=o[t];let i;if((0,r.isIdentifier)(n))i=n.name;else if((0,r.isStringLiteral)(n))i=n.value;else if((0,r.isThisExpression)(n))i="this";else if((0,r.isSuper)(n))i="super";else{if(!(0,r.isPrivateName)(n))return!1;i="#"+n.id.name}if(s[e]!==i)return!1}return!0};var r=n(63555);function i(e){return(0,r.isMemberExpression)(e)||(0,r.isMetaProperty)(e)}},68830:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(63555);function i(e,t,n,s){const o=[].concat(e),a=Object.create(null);for(;o.length;){const e=o.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?(a[e.name]=a[e.name]||[]).push(e):a[e.name]=e;continue}if((0,r.isExportDeclaration)(e)&&!(0,r.isExportAllDeclaration)(e)){(0,r.isDeclaration)(e.declaration)&&o.push(e.declaration);continue}if(n){if((0,r.isFunctionDeclaration)(e)){o.push(e.id);continue}if((0,r.isFunctionExpression)(e))continue}const l=i.keys[e.type];if(l)for(let t=0;t<l.length;t++){const n=e[l[t]];n&&(Array.isArray(n)?o.push(...n):o.push(n))}}return a}i.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"]}},69036:(e,t,n)=>{var r=n(48898);t.Trees=n(23438).Trees,t.RuleNode=r.RuleNode,t.ParseTreeListener=r.ParseTreeListener,t.ParseTreeVisitor=r.ParseTreeVisitor,t.ParseTreeWalker=r.ParseTreeWalker},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}},70040:(e,t,n)=>{var r=n(72994).Token;function i(e,t){return this.start=e,this.stop=t,this}function s(){this.intervals=null,this.readOnly=!1}i.prototype.contains=function(e){return e>=this.start&&e<this.stop},i.prototype.toString=function(){return this.start===this.stop-1?this.start.toString():this.start.toString()+".."+(this.stop-1).toString()},Object.defineProperty(i.prototype,"length",{get:function(){return this.stop-this.start}}),s.prototype.first=function(e){return null===this.intervals||0===this.intervals.length?r.INVALID_TYPE:this.intervals[0].start},s.prototype.addOne=function(e){this.addInterval(new i(e,e+1))},s.prototype.addRange=function(e,t){this.addInterval(new i(e,t+1))},s.prototype.addInterval=function(e){if(null===this.intervals)this.intervals=[],this.intervals.push(e);else{for(var t=0;t<this.intervals.length;t++){var n=this.intervals[t];if(e.stop<n.start)return void this.intervals.splice(t,0,e);if(e.stop===n.start)return void(this.intervals[t].start=e.start);if(e.start<=n.stop)return this.intervals[t]=new i(Math.min(n.start,e.start),Math.max(n.stop,e.stop)),void this.reduce(t)}this.intervals.push(e)}},s.prototype.addSet=function(e){if(null!==e.intervals)for(var t=0;t<e.intervals.length;t++){var n=e.intervals[t];this.addInterval(new i(n.start,n.stop))}return this},s.prototype.reduce=function(e){if(e<this.intervalslength-1){var t=this.intervals[e],n=this.intervals[e+1];t.stop>=n.stop?(this.intervals.pop(e+1),this.reduce(e)):t.stop>=n.start&&(this.intervals[e]=new i(t.start,n.stop),this.intervals.pop(e+1))}},s.prototype.complement=function(e,t){var n=new s;n.addInterval(new i(e,t+1));for(var r=0;r<this.intervals.length;r++)n.removeRange(this.intervals[r]);return n},s.prototype.contains=function(e){if(null===this.intervals)return!1;for(var t=0;t<this.intervals.length;t++)if(this.intervals[t].contains(e))return!0;return!1},Object.defineProperty(s.prototype,"length",{get:function(){var e=0;return this.intervals.map((function(t){e+=t.length})),e}}),s.prototype.removeRange=function(e){if(e.start===e.stop-1)this.removeOne(e.start);else if(null!==this.intervals)for(var t=0,n=0;n<this.intervals.length;n++){var r=this.intervals[t];if(e.stop<=r.start)return;if(e.start>r.start&&e.stop<r.stop){this.intervals[t]=new i(r.start,e.start);var s=new i(e.stop,r.stop);return void this.intervals.splice(t,0,s)}e.start<=r.start&&e.stop>=r.stop?(this.intervals.splice(t,1),t-=1):e.start<r.stop?this.intervals[t]=new i(r.start,e.start):e.stop<r.stop&&(this.intervals[t]=new i(e.stop,r.stop)),t+=1}},s.prototype.removeOne=function(e){if(null!==this.intervals)for(var t=0;t<this.intervals.length;t++){var n=this.intervals[t];if(e<n.start)return;if(e===n.start&&e===n.stop-1)return void this.intervals.splice(t,1);if(e===n.start)return void(this.intervals[t]=new i(n.start+1,n.stop));if(e===n.stop-1)return void(this.intervals[t]=new i(n.start,n.stop-1));if(e<n.stop-1){var r=new i(n.start,e);return n.start=e+1,void this.intervals.splice(t,0,r)}}},s.prototype.toString=function(e,t,n){return e=e||null,t=t||null,n=n||!1,null===this.intervals?"{}":null!==e||null!==t?this.toTokenString(e,t):n?this.toCharString():this.toIndexString()},s.prototype.toCharString=function(){for(var e=[],t=0;t<this.intervals.length;t++){var n=this.intervals[t];n.stop===n.start+1?n.start===r.EOF?e.push("<EOF>"):e.push("'"+String.fromCharCode(n.start)+"'"):e.push("'"+String.fromCharCode(n.start)+"'..'"+String.fromCharCode(n.stop-1)+"'")}return e.length>1?"{"+e.join(", ")+"}":e[0]},s.prototype.toIndexString=function(){for(var e=[],t=0;t<this.intervals.length;t++){var n=this.intervals[t];n.stop===n.start+1?n.start===r.EOF?e.push("<EOF>"):e.push(n.start.toString()):e.push(n.start.toString()+".."+(n.stop-1).toString())}return e.length>1?"{"+e.join(", ")+"}":e[0]},s.prototype.toTokenString=function(e,t){for(var n=[],r=0;r<this.intervals.length;r++)for(var i=this.intervals[r],s=i.start;s<i.stop;s++)n.push(this.elementName(e,t,s));return n.length>1?"{"+n.join(", ")+"}":n[0]},s.prototype.elementName=function(e,t,n){return n===r.EOF?"<EOF>":n===r.EPSILON?"<EPSILON>":e[n]||t[n]},t.Interval=i,t.m=s},70161:(e,t,n)=>{function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},70243:function(e,t,n){!function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function s(e,t,n){if(s.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(67787).Buffer}catch(e){}function a(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function l(e,t,n){var r=a(e,n);return n-1>=t&&(r|=a(e,n-1)<<4),r}function c(e,t,n,i){for(var s=0,o=0,a=Math.min(e.length,n),l=t;l<a;l++){var c=e.charCodeAt(l)-48;s*=i,o=c>=49?c-49+10:c>=17?c-17+10:c,r(c>=0&&o<i,"Invalid character"),s+=o}return s}function p(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,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,n):(this._parseBase(e,t,i),"le"===n&&this._initArray(this.toArray(),t,n)))},s.prototype._initNumber=function(e,t,n){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"===n&&this._initArray(this.toArray(),t,n)},s.prototype._initArray=function(e,t,n){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 i=0;i<this.length;i++)this.words[i]=0;var s,o,a=0;if("be"===n)for(i=e.length-1,s=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[s]|=o<<a&67108863,this.words[s+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===n)for(i=0,s=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[s]|=o<<a&67108863,this.words[s+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this._strip()},s.prototype._parseHex=function(e,t,n){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 i,s=0,o=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=l(e,t,r)<<s,this.words[o]|=67108863&i,s>=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=l(e,t,r)<<s,this.words[o]|=67108863&i,s>=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;this._strip()},s.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var s=e.length-n,o=s%r,a=Math.min(s,s-o)+n,l=0,p=n;p<a;p+=r)l=c(e,p,p+r,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==o){var u=1;for(l=c(e,p,e.length,t),p=0;p<o;p++)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){p(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,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],s=0|t.words[0],o=i*s,a=67108863&o,l=o/67108864|0;n.words[0]=a;for(var c=1;c<r;c++){for(var p=l>>>26,u=67108863&l,h=Math.min(c,t.length-1),d=Math.max(0,c-e.length+1);d<=h;d++){var f=c-d|0;p+=(o=(i=0|e.words[f])*(s=0|t.words[d])+u)/67108864|0,u=67108863&o}n.words[c]=0|u,l=0|p}return 0!==l?n.words[c]=0|l:n.length--,n._strip()}s.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,s=0,o=0;o<this.length;o++){var a=this.words[o],l=(16777215&(a<<i|s)).toString(16);s=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),n=0!==s||o!==this.length-1?h[6-l.length]+l+n:l+n}for(0!==s&&(n=s.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=d[e],p=f[e];n="";var u=this.clone();for(u.negative=0;!u.isZero();){var m=u.modrn(p).toString(e);n=(u=u.idivn(p)).isZero()?m+n:h[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}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)},o&&(s.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),s.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},s.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),s=n||Math.max(1,i);r(i<=s,"byte array longer than desired length"),r(s>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,s);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,i),o},s.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,s=0;i<this.length;i++){var o=this.words[i]<<s|r;e[n++]=255&o,n<e.length&&(e[n++]=o>>8&255),n<e.length&&(e[n++]=o>>16&255),6===s?(n<e.length&&(e[n++]=o>>24&255),r=0,s=0):(r=o>>>24,s+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},s.prototype._toArrayLikeBE=function(e,t){for(var n=e.length-1,r=0,i=0,s=0;i<this.length;i++){var o=this.words[i]<<s|r;e[n--]=255&o,n>=0&&(e[n--]=o>>8&255),n>=0&&(e[n--]=o>>16&255),6===s?(n>=0&&(e[n--]=o>>24&255),r=0,s=0):(r=o>>>24,s+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?s.prototype._countBits=function(e){return 32-Math.clz32(e)}:s.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},s.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 8191&t||(n+=13,t>>>=13),127&t||(n+=7,t>>>=7),15&t||(n+=4,t>>>=4),3&t||(n+=2,t>>>=2),1&t||n++,n},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 n=this._zeroBits(this.words[t]);if(e+=n,26!==n)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 n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];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,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.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),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),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 n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},s.prototype.iadd=function(e){var t,n,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?(n=this,r=e):(n=e,r=this);for(var i=0,s=0;s<r.length;s++)t=(0|n.words[s])+(0|r.words[s])+i,this.words[s]=67108863&t,i=t>>>26;for(;0!==i&&s<n.length;s++)t=(0|n.words[s])+i,this.words[s]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;s<n.length;s++)this.words[s]=n.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 n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var s=0,o=0;o<r.length;o++)s=(t=(0|n.words[o])-(0|r.words[o])+s)>>26,this.words[o]=67108863&t;for(;0!==s&&o<n.length;o++)s=(t=(0|n.words[o])+s)>>26,this.words[o]=67108863&t;if(0===s&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(e){return this.clone().isub(e)};var y=function(e,t,n){var r,i,s,o=e.words,a=t.words,l=n.words,c=0,p=0|o[0],u=8191&p,h=p>>>13,d=0|o[1],f=8191&d,m=d>>>13,y=0|o[2],g=8191&y,T=y>>>13,S=0|o[3],b=8191&S,x=S>>>13,v=0|o[4],E=8191&v,w=v>>>13,A=0|o[5],P=8191&A,I=A>>>13,C=0|o[6],_=8191&C,N=C>>>13,O=0|o[7],k=8191&O,M=O>>>13,L=0|o[8],D=8191&L,B=L>>>13,F=0|o[9],R=8191&F,j=F>>>13,U=0|a[0],V=8191&U,q=U>>>13,K=0|a[1],$=8191&K,Y=K>>>13,z=0|a[2],J=8191&z,H=z>>>13,X=0|a[3],W=8191&X,G=X>>>13,Z=0|a[4],Q=8191&Z,ee=Z>>>13,te=0|a[5],ne=8191&te,re=te>>>13,ie=0|a[6],se=8191&ie,oe=ie>>>13,ae=0|a[7],le=8191&ae,ce=ae>>>13,pe=0|a[8],ue=8191&pe,he=pe>>>13,de=0|a[9],fe=8191&de,me=de>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(c+(r=Math.imul(u,V))|0)+((8191&(i=(i=Math.imul(u,q))+Math.imul(h,V)|0))<<13)|0;c=((s=Math.imul(h,q))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(f,V),i=(i=Math.imul(f,q))+Math.imul(m,V)|0,s=Math.imul(m,q);var ge=(c+(r=r+Math.imul(u,$)|0)|0)+((8191&(i=(i=i+Math.imul(u,Y)|0)+Math.imul(h,$)|0))<<13)|0;c=((s=s+Math.imul(h,Y)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(g,V),i=(i=Math.imul(g,q))+Math.imul(T,V)|0,s=Math.imul(T,q),r=r+Math.imul(f,$)|0,i=(i=i+Math.imul(f,Y)|0)+Math.imul(m,$)|0,s=s+Math.imul(m,Y)|0;var Te=(c+(r=r+Math.imul(u,J)|0)|0)+((8191&(i=(i=i+Math.imul(u,H)|0)+Math.imul(h,J)|0))<<13)|0;c=((s=s+Math.imul(h,H)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(b,V),i=(i=Math.imul(b,q))+Math.imul(x,V)|0,s=Math.imul(x,q),r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(T,$)|0,s=s+Math.imul(T,Y)|0,r=r+Math.imul(f,J)|0,i=(i=i+Math.imul(f,H)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,H)|0;var Se=(c+(r=r+Math.imul(u,W)|0)|0)+((8191&(i=(i=i+Math.imul(u,G)|0)+Math.imul(h,W)|0))<<13)|0;c=((s=s+Math.imul(h,G)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(E,V),i=(i=Math.imul(E,q))+Math.imul(w,V)|0,s=Math.imul(w,q),r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(x,$)|0,s=s+Math.imul(x,Y)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,H)|0)+Math.imul(T,J)|0,s=s+Math.imul(T,H)|0,r=r+Math.imul(f,W)|0,i=(i=i+Math.imul(f,G)|0)+Math.imul(m,W)|0,s=s+Math.imul(m,G)|0;var be=(c+(r=r+Math.imul(u,Q)|0)|0)+((8191&(i=(i=i+Math.imul(u,ee)|0)+Math.imul(h,Q)|0))<<13)|0;c=((s=s+Math.imul(h,ee)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(P,V),i=(i=Math.imul(P,q))+Math.imul(I,V)|0,s=Math.imul(I,q),r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(w,$)|0,s=s+Math.imul(w,Y)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,H)|0)+Math.imul(x,J)|0,s=s+Math.imul(x,H)|0,r=r+Math.imul(g,W)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(T,W)|0,s=s+Math.imul(T,G)|0,r=r+Math.imul(f,Q)|0,i=(i=i+Math.imul(f,ee)|0)+Math.imul(m,Q)|0,s=s+Math.imul(m,ee)|0;var xe=(c+(r=r+Math.imul(u,ne)|0)|0)+((8191&(i=(i=i+Math.imul(u,re)|0)+Math.imul(h,ne)|0))<<13)|0;c=((s=s+Math.imul(h,re)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(_,V),i=(i=Math.imul(_,q))+Math.imul(N,V)|0,s=Math.imul(N,q),r=r+Math.imul(P,$)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(I,$)|0,s=s+Math.imul(I,Y)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,H)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,H)|0,r=r+Math.imul(b,W)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(x,W)|0,s=s+Math.imul(x,G)|0,r=r+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(T,Q)|0,s=s+Math.imul(T,ee)|0,r=r+Math.imul(f,ne)|0,i=(i=i+Math.imul(f,re)|0)+Math.imul(m,ne)|0,s=s+Math.imul(m,re)|0;var ve=(c+(r=r+Math.imul(u,se)|0)|0)+((8191&(i=(i=i+Math.imul(u,oe)|0)+Math.imul(h,se)|0))<<13)|0;c=((s=s+Math.imul(h,oe)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(k,V),i=(i=Math.imul(k,q))+Math.imul(M,V)|0,s=Math.imul(M,q),r=r+Math.imul(_,$)|0,i=(i=i+Math.imul(_,Y)|0)+Math.imul(N,$)|0,s=s+Math.imul(N,Y)|0,r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,H)|0)+Math.imul(I,J)|0,s=s+Math.imul(I,H)|0,r=r+Math.imul(E,W)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(w,W)|0,s=s+Math.imul(w,G)|0,r=r+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(x,Q)|0,s=s+Math.imul(x,ee)|0,r=r+Math.imul(g,ne)|0,i=(i=i+Math.imul(g,re)|0)+Math.imul(T,ne)|0,s=s+Math.imul(T,re)|0,r=r+Math.imul(f,se)|0,i=(i=i+Math.imul(f,oe)|0)+Math.imul(m,se)|0,s=s+Math.imul(m,oe)|0;var Ee=(c+(r=r+Math.imul(u,le)|0)|0)+((8191&(i=(i=i+Math.imul(u,ce)|0)+Math.imul(h,le)|0))<<13)|0;c=((s=s+Math.imul(h,ce)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(D,V),i=(i=Math.imul(D,q))+Math.imul(B,V)|0,s=Math.imul(B,q),r=r+Math.imul(k,$)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(M,$)|0,s=s+Math.imul(M,Y)|0,r=r+Math.imul(_,J)|0,i=(i=i+Math.imul(_,H)|0)+Math.imul(N,J)|0,s=s+Math.imul(N,H)|0,r=r+Math.imul(P,W)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(I,W)|0,s=s+Math.imul(I,G)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(w,Q)|0,s=s+Math.imul(w,ee)|0,r=r+Math.imul(b,ne)|0,i=(i=i+Math.imul(b,re)|0)+Math.imul(x,ne)|0,s=s+Math.imul(x,re)|0,r=r+Math.imul(g,se)|0,i=(i=i+Math.imul(g,oe)|0)+Math.imul(T,se)|0,s=s+Math.imul(T,oe)|0,r=r+Math.imul(f,le)|0,i=(i=i+Math.imul(f,ce)|0)+Math.imul(m,le)|0,s=s+Math.imul(m,ce)|0;var we=(c+(r=r+Math.imul(u,ue)|0)|0)+((8191&(i=(i=i+Math.imul(u,he)|0)+Math.imul(h,ue)|0))<<13)|0;c=((s=s+Math.imul(h,he)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(R,V),i=(i=Math.imul(R,q))+Math.imul(j,V)|0,s=Math.imul(j,q),r=r+Math.imul(D,$)|0,i=(i=i+Math.imul(D,Y)|0)+Math.imul(B,$)|0,s=s+Math.imul(B,Y)|0,r=r+Math.imul(k,J)|0,i=(i=i+Math.imul(k,H)|0)+Math.imul(M,J)|0,s=s+Math.imul(M,H)|0,r=r+Math.imul(_,W)|0,i=(i=i+Math.imul(_,G)|0)+Math.imul(N,W)|0,s=s+Math.imul(N,G)|0,r=r+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(I,Q)|0,s=s+Math.imul(I,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(w,ne)|0,s=s+Math.imul(w,re)|0,r=r+Math.imul(b,se)|0,i=(i=i+Math.imul(b,oe)|0)+Math.imul(x,se)|0,s=s+Math.imul(x,oe)|0,r=r+Math.imul(g,le)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(T,le)|0,s=s+Math.imul(T,ce)|0,r=r+Math.imul(f,ue)|0,i=(i=i+Math.imul(f,he)|0)+Math.imul(m,ue)|0,s=s+Math.imul(m,he)|0;var Ae=(c+(r=r+Math.imul(u,fe)|0)|0)+((8191&(i=(i=i+Math.imul(u,me)|0)+Math.imul(h,fe)|0))<<13)|0;c=((s=s+Math.imul(h,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(R,$),i=(i=Math.imul(R,Y))+Math.imul(j,$)|0,s=Math.imul(j,Y),r=r+Math.imul(D,J)|0,i=(i=i+Math.imul(D,H)|0)+Math.imul(B,J)|0,s=s+Math.imul(B,H)|0,r=r+Math.imul(k,W)|0,i=(i=i+Math.imul(k,G)|0)+Math.imul(M,W)|0,s=s+Math.imul(M,G)|0,r=r+Math.imul(_,Q)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(N,Q)|0,s=s+Math.imul(N,ee)|0,r=r+Math.imul(P,ne)|0,i=(i=i+Math.imul(P,re)|0)+Math.imul(I,ne)|0,s=s+Math.imul(I,re)|0,r=r+Math.imul(E,se)|0,i=(i=i+Math.imul(E,oe)|0)+Math.imul(w,se)|0,s=s+Math.imul(w,oe)|0,r=r+Math.imul(b,le)|0,i=(i=i+Math.imul(b,ce)|0)+Math.imul(x,le)|0,s=s+Math.imul(x,ce)|0,r=r+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(T,ue)|0,s=s+Math.imul(T,he)|0;var Pe=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(m,fe)|0))<<13)|0;c=((s=s+Math.imul(m,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(R,J),i=(i=Math.imul(R,H))+Math.imul(j,J)|0,s=Math.imul(j,H),r=r+Math.imul(D,W)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul(B,W)|0,s=s+Math.imul(B,G)|0,r=r+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(M,Q)|0,s=s+Math.imul(M,ee)|0,r=r+Math.imul(_,ne)|0,i=(i=i+Math.imul(_,re)|0)+Math.imul(N,ne)|0,s=s+Math.imul(N,re)|0,r=r+Math.imul(P,se)|0,i=(i=i+Math.imul(P,oe)|0)+Math.imul(I,se)|0,s=s+Math.imul(I,oe)|0,r=r+Math.imul(E,le)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(w,le)|0,s=s+Math.imul(w,ce)|0,r=r+Math.imul(b,ue)|0,i=(i=i+Math.imul(b,he)|0)+Math.imul(x,ue)|0,s=s+Math.imul(x,he)|0;var Ie=(c+(r=r+Math.imul(g,fe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(T,fe)|0))<<13)|0;c=((s=s+Math.imul(T,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(R,W),i=(i=Math.imul(R,G))+Math.imul(j,W)|0,s=Math.imul(j,G),r=r+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,ee)|0)+Math.imul(B,Q)|0,s=s+Math.imul(B,ee)|0,r=r+Math.imul(k,ne)|0,i=(i=i+Math.imul(k,re)|0)+Math.imul(M,ne)|0,s=s+Math.imul(M,re)|0,r=r+Math.imul(_,se)|0,i=(i=i+Math.imul(_,oe)|0)+Math.imul(N,se)|0,s=s+Math.imul(N,oe)|0,r=r+Math.imul(P,le)|0,i=(i=i+Math.imul(P,ce)|0)+Math.imul(I,le)|0,s=s+Math.imul(I,ce)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(w,ue)|0,s=s+Math.imul(w,he)|0;var Ce=(c+(r=r+Math.imul(b,fe)|0)|0)+((8191&(i=(i=i+Math.imul(b,me)|0)+Math.imul(x,fe)|0))<<13)|0;c=((s=s+Math.imul(x,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(R,Q),i=(i=Math.imul(R,ee))+Math.imul(j,Q)|0,s=Math.imul(j,ee),r=r+Math.imul(D,ne)|0,i=(i=i+Math.imul(D,re)|0)+Math.imul(B,ne)|0,s=s+Math.imul(B,re)|0,r=r+Math.imul(k,se)|0,i=(i=i+Math.imul(k,oe)|0)+Math.imul(M,se)|0,s=s+Math.imul(M,oe)|0,r=r+Math.imul(_,le)|0,i=(i=i+Math.imul(_,ce)|0)+Math.imul(N,le)|0,s=s+Math.imul(N,ce)|0,r=r+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,he)|0)+Math.imul(I,ue)|0,s=s+Math.imul(I,he)|0;var _e=(c+(r=r+Math.imul(E,fe)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(w,fe)|0))<<13)|0;c=((s=s+Math.imul(w,me)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(R,ne),i=(i=Math.imul(R,re))+Math.imul(j,ne)|0,s=Math.imul(j,re),r=r+Math.imul(D,se)|0,i=(i=i+Math.imul(D,oe)|0)+Math.imul(B,se)|0,s=s+Math.imul(B,oe)|0,r=r+Math.imul(k,le)|0,i=(i=i+Math.imul(k,ce)|0)+Math.imul(M,le)|0,s=s+Math.imul(M,ce)|0,r=r+Math.imul(_,ue)|0,i=(i=i+Math.imul(_,he)|0)+Math.imul(N,ue)|0,s=s+Math.imul(N,he)|0;var Ne=(c+(r=r+Math.imul(P,fe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(I,fe)|0))<<13)|0;c=((s=s+Math.imul(I,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(R,se),i=(i=Math.imul(R,oe))+Math.imul(j,se)|0,s=Math.imul(j,oe),r=r+Math.imul(D,le)|0,i=(i=i+Math.imul(D,ce)|0)+Math.imul(B,le)|0,s=s+Math.imul(B,ce)|0,r=r+Math.imul(k,ue)|0,i=(i=i+Math.imul(k,he)|0)+Math.imul(M,ue)|0,s=s+Math.imul(M,he)|0;var Oe=(c+(r=r+Math.imul(_,fe)|0)|0)+((8191&(i=(i=i+Math.imul(_,me)|0)+Math.imul(N,fe)|0))<<13)|0;c=((s=s+Math.imul(N,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(R,le),i=(i=Math.imul(R,ce))+Math.imul(j,le)|0,s=Math.imul(j,ce),r=r+Math.imul(D,ue)|0,i=(i=i+Math.imul(D,he)|0)+Math.imul(B,ue)|0,s=s+Math.imul(B,he)|0;var ke=(c+(r=r+Math.imul(k,fe)|0)|0)+((8191&(i=(i=i+Math.imul(k,me)|0)+Math.imul(M,fe)|0))<<13)|0;c=((s=s+Math.imul(M,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(R,ue),i=(i=Math.imul(R,he))+Math.imul(j,ue)|0,s=Math.imul(j,he);var Me=(c+(r=r+Math.imul(D,fe)|0)|0)+((8191&(i=(i=i+Math.imul(D,me)|0)+Math.imul(B,fe)|0))<<13)|0;c=((s=s+Math.imul(B,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863;var Le=(c+(r=Math.imul(R,fe))|0)+((8191&(i=(i=Math.imul(R,me))+Math.imul(j,fe)|0))<<13)|0;return c=((s=Math.imul(j,me))+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,l[0]=ye,l[1]=ge,l[2]=Te,l[3]=Se,l[4]=be,l[5]=xe,l[6]=ve,l[7]=Ee,l[8]=we,l[9]=Ae,l[10]=Pe,l[11]=Ie,l[12]=Ce,l[13]=_e,l[14]=Ne,l[15]=Oe,l[16]=ke,l[17]=Me,l[18]=Le,0!==c&&(l[19]=c,n.length++),n};function g(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,s=0;s<n.length-1;s++){var o=i;i=0;for(var a=67108863&r,l=Math.min(s,t.length-1),c=Math.max(0,s-e.length+1);c<=l;c++){var p=s-c,u=(0|e.words[p])*(0|t.words[c]),h=67108863&u;a=67108863&(h=h+a|0),i+=(o=(o=o+(u/67108864|0)|0)+(h>>>26)|0)>>>26,o&=67108863}n.words[s]=a,r=o,o=i}return 0!==r?n.words[s]=r:n.length--,n._strip()}function T(e,t,n){return g(e,t,n)}function S(e,t){this.x=e,this.y=t}Math.imul||(y=m),s.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):n<63?m(this,e,t):n<1024?g(this,e,t):T(this,e,t)},S.prototype.makeRBT=function(e){for(var t=new Array(e),n=s.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},S.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},S.prototype.permute=function(e,t,n,r,i,s){for(var o=0;o<s;o++)r[o]=t[e[o]],i[o]=n[e[o]]},S.prototype.transform=function(e,t,n,r,i,s){this.permute(s,e,t,n,r,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,l=Math.cos(2*Math.PI/a),c=Math.sin(2*Math.PI/a),p=0;p<i;p+=a)for(var u=l,h=c,d=0;d<o;d++){var f=n[p+d],m=r[p+d],y=n[p+d+o],g=r[p+d+o],T=u*y-h*g;g=u*g+h*y,y=T,n[p+d]=f+y,r[p+d]=m+g,n[p+d+o]=f-y,r[p+d+o]=m-g,d!==a&&(T=l*u-c*h,h=l*h+c*u,u=T)}},S.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},S.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},S.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},S.prototype.convert13b=function(e,t,n,i){for(var s=0,o=0;o<t;o++)s+=0|e[o],n[2*o]=8191&s,s>>>=13,n[2*o+1]=8191&s,s>>>=13;for(o=2*t;o<i;++o)n[o]=0;r(0===s),r(!(-8192&s))},S.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},S.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),s=this.stub(r),o=new Array(r),a=new Array(r),l=new Array(r),c=new Array(r),p=new Array(r),u=new Array(r),h=n.words;h.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,c,r),this.transform(o,s,a,l,r,i),this.transform(c,s,p,u,r,i);for(var d=0;d<r;d++){var f=a[d]*p[d]-l[d]*u[d];l[d]=a[d]*u[d]+l[d]*p[d],a[d]=f}return this.conjugate(a,l,r),this.transform(a,l,h,s,r,i),this.conjugate(h,s,r),this.normalize13b(h,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n._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),T(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 n=0,i=0;i<this.length;i++){var s=(0|this.words[i])*e,o=(67108863&s)+(67108863&n);n>>=26,n+=s/67108864|0,n+=o>>>26,this.words[i]=67108863&o}return 0!==n&&(this.words[i]=n,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()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=e.words[r]>>>i&1}return t}(e);if(0===t.length)return new s(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},s.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,s=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t<this.length;t++){var a=this.words[t]&s,l=(0|this.words[t])-a<<n;this.words[t]=l|o,o=a>>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},s.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},s.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var s=e%26,o=Math.min((e-s)/26,this.length),a=67108863^67108863>>>s<<s,l=n;if(i-=o,i=Math.max(0,i),l){for(var c=0;c<o;c++)l.words[c]=this.words[c];l.length=o}if(0===o);else if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var p=0;for(c=this.length-1;c>=0&&(0!==p||c>=i);c--){var u=0|this.words[c];this.words[c]=p<<26-s|u>>>s,p=u&a}return l&&0!==p&&(l.words[l.length++]=p),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},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,n=(e-t)/26,i=1<<t;return!(this.length<=n||!(this.words[n]&i))},s.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}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,n){var i,s,o=e.length+n;this._expand(o);var a=0;for(i=0;i<e.length;i++){s=(0|this.words[i+n])+a;var l=(0|e.words[i])*t;a=((s-=67108863&l)>>26)-(l/67108864|0),this.words[i+n]=67108863&s}for(;i<this.length-n;i++)a=(s=(0|this.words[i+n])+a)>>26,this.words[i+n]=67108863&s;if(0===a)return this._strip();for(r(-1===a),a=0,i=0;i<this.length;i++)a=(s=-(0|this.words[i])+a)>>26,this.words[i]=67108863&s;return this.negative=1,this._strip()},s.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,o=0|i.words[i.length-1];0!=(n=26-this._countBits(o))&&(i=i.ushln(n),r.iushln(n),o=0|i.words[i.length-1]);var a,l=r.length-i.length;if("mod"!==t){(a=new s(null)).length=l+1,a.words=new Array(a.length);for(var c=0;c<a.length;c++)a.words[c]=0}var p=r.clone()._ishlnsubmul(i,1,l);0===p.negative&&(r=p,a&&(a.words[l]=1));for(var u=l-1;u>=0;u--){var h=67108864*(0|r.words[i.length+u])+(0|r.words[i.length+u-1]);for(h=Math.min(h/o|0,67108863),r._ishlnsubmul(i,h,u);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(i,1,u),r.isZero()||(r.negative^=1);a&&(a.words[u]=h)}return a&&a._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},s.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(o=a.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):this.negative&e.negative?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(o=a.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:a.div,mod:o}):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 i,o,a},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 n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),s=n.cmp(r);return s<0||1===i&&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 n=(1<<26)%e,i=0,s=this.length-1;s>=0;s--)i=(n*i+(0|this.words[s]))%e;return t?-i:i},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 n=0,i=this.length-1;i>=0;i--){var s=(0|this.words[i])+67108864*n;this.words[i]=s/e|0,n=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,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new s(1),o=new s(0),a=new s(0),l=new s(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var p=n.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;)(i.isOdd()||o.isOdd())&&(i.iadd(p),o.isub(u)),i.iushrn(1),o.iushrn(1);for(var f=0,m=1;!(n.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(n.iushrn(f);f-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(p),l.isub(u)),a.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(a),o.isub(l)):(n.isub(t),a.isub(i),l.isub(o))}return{a,b:l,gcd:n.iushln(c)}},s.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,o=new s(1),a=new s(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,p=1;!(t.words[0]&p)&&c<26;++c,p<<=1);if(c>0)for(t.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var u=0,h=1;!(n.words[0]&h)&&u<26;++u,h<<=1);if(u>0)for(n.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(a)):(n.isub(t),a.isub(o))}return(i=0===t.cmpn(1)?o:a).cmpn(0)<0&&i.iadd(e),i},s.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var s=t;t=n,n=s}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.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,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var s=i,o=n;0!==s&&o<this.length;o++){var a=0|this.words[o];s=(a+=s)>>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<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,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(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 P(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 b={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 v(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function P(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){P.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,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},x.prototype.split=function(e,t){e.iushrn(this.n,0,t)},x.prototype.imulK=function(e){return e.imul(this.k)},i(v,x),v.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i<r;i++)t.words[i]=e.words[i];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&n,i=10;i<e.length;i++){var o=0|e.words[i];e.words[i-10]=(o&n)<<4|s>>>22,s=o}s>>>=22,e.words[i-10]=s,0===s&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=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},i(E,x),i(w,x),i(A,x),A.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},s._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new E;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return b[e]=t,t},P.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},P.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")},P.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(p(e,e.umod(this.m)._forceRed(this)),e)},P.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},P.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},P.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},P.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},P.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},P.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},P.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},P.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},P.prototype.isqr=function(e){return this.imul(e,e.clone())},P.prototype.sqr=function(e){return this.mul(e,e)},P.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new s(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);r(!i.isZero());var a=new s(1).toRed(this),l=a.redNeg(),c=this.m.subn(1).iushrn(1),p=this.m.bitLength();for(p=new s(2*p*p).toRed(this);0!==this.pow(p,c).cmp(l);)p.redIAdd(l);for(var u=this.pow(p,i),h=this.pow(e,i.addn(1).iushrn(1)),d=this.pow(e,i),f=o;0!==d.cmp(a);){for(var m=d,y=0;0!==m.cmp(a);y++)m=m.redSqr();r(y<f);var g=this.pow(u,new s(1).iushln(f-y-1));h=h.redMul(g),u=g.redSqr(),d=d.redMul(u),f=y}return h},P.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},P.prototype.pow=function(e,t){if(t.isZero())return new s(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new s(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],o=0,a=0,l=t.bitLength()%26;for(0===l&&(l=26),r=t.length-1;r>=0;r--){for(var c=t.words[r],p=l-1;p>=0;p--){var u=c>>p&1;i!==n[0]&&(i=this.sqr(i)),0!==u||0!==o?(o<<=1,o|=u,(4==++a||0===r&&0===p)&&(i=this.mul(i,n[o]),a=0,o=0)):a=0}l=26}return i},P.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},P.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},s.mont=function(e){return new I(e)},i(I,P),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 n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},I.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new s(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},I.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},70257:(e,t,n)=>{t.Ay=void 0;var r=n(61015),i=n(88497);t.Ay=function(e,t={},n){const s=function(e,t,n){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(n.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 i;r.decoratorsBeforeExport=t.decoratorsBeforeExport,r.jsescOption.json=t.jsonCompatibleStrings,r.recordAndTupleSyntaxType=null!=(i=t.recordAndTupleSyntaxType)?i:"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:o,shouldPrintComment:a}=r;return s&&!a(s)&&(r.auxiliaryCommentBefore=void 0),o&&!a(o)&&(r.auxiliaryCommentAfter=void 0),r}(n,t,e),o=t.sourceMaps?new r.default(t,n):null;return new i.default(s,o,e.tokens,"string"==typeof n?n:null).generate(e)}},70470:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=e.key||e.property){return!e.computed&&(0,r.isIdentifier)(t)&&(t=(0,i.stringLiteral)(t.name)),t};var r=n(63555),i=n(82208)},71535:(e,t,n)=>{var r=n(53896);t.encrypt=function(e,t){var n=r(t,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},t.decrypt=function(e,t){var n=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return r(i,n)}},72994:(e,t)=>{function n(){return this.source=null,this.type=null,this.channel=null,this.start=null,this.stop=null,this.tokenIndex=null,this.line=null,this.column=null,this._text=null,this}function r(e,t,i,s,o){return n.call(this),this.source=void 0!==e?e:r.EMPTY_SOURCE,this.type=void 0!==t?t:null,this.channel=void 0!==i?i:n.DEFAULT_CHANNEL,this.start=void 0!==s?s:-1,this.stop=void 0!==o?o:-1,this.tokenIndex=-1,null!==this.source[0]?(this.line=e[0].line,this.column=e[0].column):this.column=-1,this}n.INVALID_TYPE=0,n.EPSILON=-2,n.MIN_USER_TOKEN_TYPE=1,n.EOF=-1,n.DEFAULT_CHANNEL=0,n.HIDDEN_CHANNEL=1,Object.defineProperty(n.prototype,"text",{get:function(){return this._text},set:function(e){this._text=e}}),n.prototype.getTokenSource=function(){return this.source[0]},n.prototype.getInputStream=function(){return this.source[1]},r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.EMPTY_SOURCE=[null,null],r.prototype.clone=function(){var e=new r(this.source,this.type,this.channel,this.start,this.stop);return e.tokenIndex=this.tokenIndex,e.line=this.line,e.column=this.column,e.text=this.text,e},Object.defineProperty(r.prototype,"text",{get:function(){if(null!==this._text)return this._text;var e=this.getInputStream();if(null===e)return null;var t=e.size;return this.start<t&&this.stop<t?e.getText(this.start,this.stop):"<EOF>"},set:function(e){this._text=e}}),r.prototype.toString=function(){var e=this.text;return e=null!==e?e.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"<no text>","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+e+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"},t.Token=n,t.CommonToken=r},73019:(e,t,n)=>{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||c(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|=i.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&&a(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(o(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})&&!a(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 n=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),n(),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:n,property:r}=e;if(this.print(e.object),!t&&a(r))throw new TypeError("Got a MemberExpression for MemberExpression property");o(r)&&"number"==typeof r.value&&(t=!0),n&&this.token("?."),t?(this.tokenChar(91),this.print(r),this.tokenChar(93)):(n||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=n(45741),i=n(36306);const{isCallExpression:s,isLiteral:o,isMemberExpression:a,isNewExpression:l,isPattern:c}=r},73261:(e,t,n)=>{var r=n(65994).process;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=g,t.assertNodeOrValueType=function(...e){function t(t,n,r){const o=d(r);for(const a of e)if(o===a||(0,i.default)(a,r))return void(0,s.validateChild)(t,n,r);throw new TypeError(`Property ${n} 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=S,t.assertOneOf=function(...e){function t(t,n,r){if(!e.includes(r))throw new TypeError(`Property ${n} 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 n=e;for(;e;){const{type:e}=n;if("OptionalCallExpression"!==e){if("OptionalMemberExpression"!==e)break;if(n.optional)return;n=n.object}else{if(n.optional)return;n=n.callee}}throw new TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${null==(t=n)?void 0:t.type}`)}},t.assertShape=function(e){const t=Object.keys(e);function n(n,r,i){const o=[];for(const r of t)try{(0,s.validateField)(n,r,i[r],e[r])}catch(e){if(e instanceof TypeError){o.push(e.message);continue}throw e}if(o.length)throw new TypeError(`Property ${r} of ${n.type} expected to have the following:\n${o.join("\n")}`)}return n.shapeOf=e,n},t.assertValueType=b,t.chain=x,t.default=A,t.defineAliasedType=function(...e){return(t,n={})=>{let r=n.aliases;var i;r||(n.inherits&&(r=null==(i=w[n.inherits].aliases)?void 0:i.slice()),null!=r||(r=[]),n.aliases=r);const s=e.filter((e=>!r.includes(e)));r.unshift(...s),A(t,n)}},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:S(...e),optional:!0}},t.validateType=function(...e){return f(S(...e))};var i=n(23781),s=n(59751);const o=t.VISITOR_KEYS={},a=t.ALIAS_KEYS={},l=t.FLIPPED_ALIAS_KEYS={},c=t.NODE_FIELDS={},p=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(b("array"),g(e))}function y(...e){return m(S(...e))}function g(e){const t=r.env.BABEL_TYPES_8_BREAKING?s.validateChild:()=>{};function n(n,r,i){if(!Array.isArray(i))return;let s=0;const o={toString:()=>`${r}[${s}]`};for(;s<i.length;s++){const r=i[s];e(n,o,r),t(n,o,r)}}return n.each=e,n}const T=t.allExpandedTypes=[];function S(...e){const t=new Set;function n(n,r,o){const a=null==o?void 0:o.type;if(null!=a){if(t.has(a))return void(0,s.validateChild)(n,r,o);if("Placeholder"===a)for(const t of e)if((0,i.default)(t,o))return void(0,s.validateChild)(n,r,o)}throw new TypeError(`Property ${r} of ${n.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(a)}`)}return T.push({types:e,set:t}),n.oneOfNodeTypes=e,n}function b(e){function t(t,n,r){if(d(r)!==e)throw new TypeError(`Property ${n} expected type of ${e} but got ${d(r)}`)}return t.type=e,t}function x(...e){function t(...t){for(const n of e)n(...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 v=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]),E=new Set(["default","optional","deprecated","validate"]),w={};function A(e,t={}){const n=t.inherits&&w[t.inherits]||{};let r=t.fields;if(!r&&(r={},n.fields)){const e=Object.getOwnPropertyNames(n.fields);for(const t of e){const e=n.fields[t],i=e.default;if(Array.isArray(i)?i.length>0:i&&"object"==typeof i)throw new Error("field defaults can only be primitives or empty arrays currently");r[t]={default:Array.isArray(i)?[]:i,optional:e.optional,deprecated:e.deprecated,validate:e.validate}}}const i=t.visitor||n.visitor||[],s=t.aliases||n.aliases||[],f=t.builder||n.builder||t.visitor||[];for(const n of Object.keys(t))if(!v.has(n))throw new Error(`Unknown type option "${n}" on ${e}`);t.deprecatedAlias&&(u[t.deprecatedAlias]=e);for(const e of i.concat(f))r[e]=r[e]||{};for(const t of Object.keys(r)){const n=r[t];void 0===n.default||f.includes(t)||(n.optional=!0),void 0===n.default?n.default=null:n.validate||null==n.default||(n.validate=b(d(n.default)));for(const r of Object.keys(n))if(!E.has(r))throw new Error(`Unknown field key "${r}" on ${e}.${t}`)}o[e]=t.visitor=i,p[e]=t.builder=f,c[e]=t.fields=r,a[e]=t.aliases=s,s.forEach((t=>{l[t]=l[t]||[],l[t].push(e)})),t.validate&&(h[e]=t.validate),w[e]=t}},73416:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isFunctionDeclaration)(e)||(0,r.isClassDeclaration)(e)||(0,i.default)(e)};var r=n(63555),i=n(62816)},74591:(e,t,n)=>{var r=n(25003);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function s(e,t){this.path=e,this.rethrow(t)}t.a=i,i.prototype.isError=function(e){return e instanceof s},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,n){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n},i.prototype.error=function(e){var t,n=this._reporterState,r=e instanceof s;if(t=r?e:new s(n.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(s,Error),s.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,s),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},74641:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r="",i=e){if(n.has(i))return;n.add(i);const{internal:s,trace:o}=function(){const{stackTraceLimit:e,prepareStackTrace:t}=Error;let n;if(Error.stackTraceLimit=4,Error.prepareStackTrace=function(e,t){n=t},(new Error).stack,Error.stackTraceLimit=e,Error.prepareStackTrace=t,!n)return{internal:!1,trace:""};const r=n.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${o}`)};const n=new Set},74763:(e,t,n)=>{var r=n(72994).CommonToken;function i(){return this}function s(e){return i.call(this),this.copyText=void 0!==e&&e,this}s.prototype=Object.create(i.prototype),s.prototype.constructor=s,s.DEFAULT=new s,s.prototype.create=function(e,t,n,i,s,o,a,l){var c=new r(e,t,i,s,o);return c.line=a,c.column=l,null!==n?c.text=n:this.copyText&&null!==e[1]&&(c.text=e[1].getText(s,o)),c},s.prototype.createThin=function(e,t){var n=new r(null,e);return n.text=t,n},t.p=s},74941:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){const n=Array.from(t),s=new Map,o=new Map,a=new Set,l=[];for(let t=0;t<n.length;t++){const c=n[t];if(!c)continue;if(l.includes(c))continue;if((0,r.isTSAnyKeyword)(c))return[c];if((0,r.isTSBaseType)(c)){o.set(c.type,c);continue}if((0,r.isTSUnionType)(c)){a.has(c.types)||(n.push(...c.types),a.add(c.types));continue}const p="typeParameters";if((0,r.isTSTypeReference)(c)&&c[p]){const t=c[p],n=i(c.typeName);if(s.has(n)){let r=s.get(n);const i=r[p];i?(i.params.push(...t.params),i.params=e(i.params)):r=t}else s.set(n,c)}else l.push(c)}for(const[,e]of o)l.push(e);for(const[,e]of s)l.push(e);return l};var r=n(63555);function i(e){return(0,r.isIdentifier)(e)?e.name:(0,r.isThisExpression)(e)?"this":`${e.right.name}.${i(e.left)}`}},77171:(e,t,n)=>{var r=n(72994).Token,i=n(18393).Lexer,s=n(70040).Interval;function o(){return this}function a(e){return o.call(this),this.tokenSource=e,this.tokens=[],this.index=-1,this.fetchedEOF=!1,this}a.prototype=Object.create(o.prototype),a.prototype.constructor=a,a.prototype.mark=function(){return 0},a.prototype.release=function(e){},a.prototype.reset=function(){this.seek(0)},a.prototype.seek=function(e){this.lazyInit(),this.index=this.adjustSeekIndex(e)},a.prototype.get=function(e){return this.lazyInit(),this.tokens[e]},a.prototype.consume=function(){if(!(this.index>=0&&(this.fetchedEOF?this.index<this.tokens.length-1:this.index<this.tokens.length))&&this.LA(1)===r.EOF)throw"cannot consume EOF";this.sync(this.index+1)&&(this.index=this.adjustSeekIndex(this.index+1))},a.prototype.sync=function(e){var t=e-this.tokens.length+1;return!(t>0)||this.fetch(t)>=t},a.prototype.fetch=function(e){if(this.fetchedEOF)return 0;for(var t=0;t<e;t++){var n=this.tokenSource.nextToken();if(n.tokenIndex=this.tokens.length,this.tokens.push(n),n.type===r.EOF)return this.fetchedEOF=!0,t+1}return e},a.prototype.getTokens=function(e,t,n){if(void 0===n&&(n=null),e<0||t<0)return null;this.lazyInit();var i=[];t>=this.tokens.length&&(t=this.tokens.length-1);for(var s=e;s<t;s++){var o=this.tokens[s];if(o.type===r.EOF)break;(null===n||n.contains(o.type))&&i.push(o)}return i},a.prototype.LA=function(e){return this.LT(e).type},a.prototype.LB=function(e){return this.index-e<0?null:this.tokens[this.index-e]},a.prototype.LT=function(e){if(this.lazyInit(),0===e)return null;if(e<0)return this.LB(-e);var t=this.index+e-1;return this.sync(t),t>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[t]},a.prototype.adjustSeekIndex=function(e){return e},a.prototype.lazyInit=function(){-1===this.index&&this.setup()},a.prototype.setup=function(){this.sync(0),this.index=this.adjustSeekIndex(0)},a.prototype.setTokenSource=function(e){this.tokenSource=e,this.tokens=[],this.index=-1,this.fetchedEOF=!1},a.prototype.nextTokenOnChannel=function(e,t){if(this.sync(e),e>=this.tokens.length)return-1;for(var n=this.tokens[e];n.channel!==this.channel;){if(n.type===r.EOF)return-1;e+=1,this.sync(e),n=this.tokens[e]}return e},a.prototype.previousTokenOnChannel=function(e,t){for(;e>=0&&this.tokens[e].channel!==t;)e-=1;return e},a.prototype.getHiddenTokensToRight=function(e,t){if(void 0===t&&(t=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw e+" not in 0.."+this.tokens.length-1;var n=this.nextTokenOnChannel(e+1,i.DEFAULT_TOKEN_CHANNEL),r=e+1,s=-1===n?this.tokens.length-1:n;return this.filterForChannel(r,s,t)},a.prototype.getHiddenTokensToLeft=function(e,t){if(void 0===t&&(t=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw e+" not in 0.."+this.tokens.length-1;var n=this.previousTokenOnChannel(e-1,i.DEFAULT_TOKEN_CHANNEL);if(n===e-1)return null;var r=n+1,s=e-1;return this.filterForChannel(r,s,t)},a.prototype.filterForChannel=function(e,t,n){for(var r=[],s=e;s<t+1;s++){var o=this.tokens[s];-1===n?o.channel!==i.DEFAULT_TOKEN_CHANNEL&&r.push(o):o.channel===n&&r.push(o)}return 0===r.length?null:r},a.prototype.getSourceName=function(){return this.tokenSource.getSourceName()},a.prototype.getText=function(e){this.lazyInit(),this.fill(),null==e&&(e=new s(0,this.tokens.length-1));var t=e.start;t instanceof r&&(t=t.tokenIndex);var n=e.stop;if(n instanceof r&&(n=n.tokenIndex),null===t||null===n||t<0||n<0)return"";n>=this.tokens.length&&(n=this.tokens.length-1);for(var i="",o=t;o<n+1;o++){var a=this.tokens[o];if(a.type===r.EOF)break;i+=a.text}return i},a.prototype.fill=function(){for(this.lazyInit();1e3===this.fetch(1e3););},t.f=a},78529:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.isBlockStatement)(e))return e;let n=[];return(0,r.isEmptyStatement)(e)?n=[]:((0,r.isStatement)(e)||(e=(0,r.isFunction)(t)?(0,i.returnStatement)(e):(0,i.expressionStatement)(e)),n=[e]),(0,i.blockStatement)(n)};var r=n(63555),i=n(82208)},79959:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!e&&/^[a-z]/.test(e)}},80264:(e,t,n)=>{var r=n(28525),i=n(90686),s=n(10441),o=n(69445),a=n(23457);function l(e,t,n){if(e=e.toLowerCase(),s[e])return i.createCipheriv(e,t,n);if(o[e])return new r({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function c(e,t,n){if(e=e.toLowerCase(),s[e])return i.createDecipheriv(e,t,n);if(o[e])return new r({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var n,r;if(e=e.toLowerCase(),s[e])n=s[e].key,r=s[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");n=8*o[e].key,r=o[e].iv}var i=a(t,!1,n,r);return l(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=l,t.createDecipher=t.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),s[e])n=s[e].key,r=s[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");n=8*o[e].key,r=o[e].iv}var i=a(t,!1,n,r);return c(e,i.key,i.iv)},t.createDecipheriv=t.Decipheriv=c,t.listCiphers=t.getCiphers=function(){return Object.keys(o).concat(i.getCiphers())}},80816:(e,t,n)=>{(t=e.exports=n(3971)).Stream=t,t.Readable=t,t.Writable=n(41175),t.Duplex=n(49837),t.Transform=n(29075),t.PassThrough=n(54409)},81204:(e,t,n)=>{var r=n(66346).Set,i=n(41207).X,s=n(81367).StarLoopEntryState,o=n(87264).Q,a=n(4768).DFASerializer,l=n(4768).LexerDFASerializer;function c(e,t){if(void 0===t&&(t=0),this.atnStartState=e,this.decision=t,this._states=new r,this.s0=null,this.precedenceDfa=!1,e instanceof s&&e.isPrecedenceDecision){this.precedenceDfa=!0;var n=new i(null,new o);n.edges=[],n.isAcceptState=!1,n.requiresFullContext=!1,this.s0=n}return this}c.prototype.getPrecedenceStartState=function(e){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return e<0||e>=this.s0.edges.length?null:this.s0.edges[e]||null},c.prototype.setPrecedenceStartState=function(e,t){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";e<0||(this.s0.edges[e]=t)},c.prototype.setPrecedenceDfa=function(e){if(this.precedenceDfa!==e){if(this._states=new DFAStatesSet,e){var t=new i(null,new o);t.edges=[],t.isAcceptState=!1,t.requiresFullContext=!1,this.s0=t}else this.s0=null;this.precedenceDfa=e}},Object.defineProperty(c.prototype,"states",{get:function(){return this._states}}),c.prototype.sortedStates=function(){return this._states.values().sort((function(e,t){return e.stateNumber-t.stateNumber}))},c.prototype.toString=function(e,t){return e=e||null,t=t||null,null===this.s0?"":new a(this,e,t).toString()},c.prototype.toLexerString=function(){return null===this.s0?"":new l(this).toString()},t.DFA=c},81324:(e,t,n)=>{var r=t;r.der=n(4715),r.pem=n(27022)},81339:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)};var r=n(16938)},81367:(e,t)=>{function n(){return this.atn=null,this.stateNumber=n.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null,this}function r(){return n.call(this),this.stateType=n.BASIC,this}function i(){return n.call(this),this.decision=-1,this.nonGreedy=!1,this}function s(){return i.call(this),this.endState=null,this}function o(){return s.call(this),this.stateType=n.BLOCK_START,this}function a(){return n.call(this),this.stateType=n.BLOCK_END,this.startState=null,this}function l(){return n.call(this),this.stateType=n.RULE_STOP,this}function c(){return n.call(this),this.stateType=n.RULE_START,this.stopState=null,this.isPrecedenceRule=!1,this}function p(){return i.call(this),this.stateType=n.PLUS_LOOP_BACK,this}function u(){return s.call(this),this.stateType=n.PLUS_BLOCK_START,this.loopBackState=null,this}function h(){return s.call(this),this.stateType=n.STAR_BLOCK_START,this}function d(){return n.call(this),this.stateType=n.STAR_LOOP_BACK,this}function f(){return i.call(this),this.stateType=n.STAR_LOOP_ENTRY,this.loopBackState=null,this.isPrecedenceDecision=null,this}function m(){return n.call(this),this.stateType=n.LOOP_END,this.loopBackState=null,this}function y(){return i.call(this),this.stateType=n.TOKEN_START,this}n.INVALID_TYPE=0,n.BASIC=1,n.RULE_START=2,n.BLOCK_START=3,n.PLUS_BLOCK_START=4,n.STAR_BLOCK_START=5,n.TOKEN_START=6,n.RULE_STOP=7,n.BLOCK_END=8,n.STAR_LOOP_BACK=9,n.STAR_LOOP_ENTRY=10,n.PLUS_LOOP_BACK=11,n.LOOP_END=12,n.serializationNames=["INVALID","BASIC","RULE_START","BLOCK_START","PLUS_BLOCK_START","STAR_BLOCK_START","TOKEN_START","RULE_STOP","BLOCK_END","STAR_LOOP_BACK","STAR_LOOP_ENTRY","PLUS_LOOP_BACK","LOOP_END"],n.INVALID_STATE_NUMBER=-1,n.prototype.toString=function(){return this.stateNumber},n.prototype.equals=function(e){return e instanceof n&&this.stateNumber===e.stateNumber},n.prototype.isNonGreedyExitState=function(){return!1},n.prototype.addTransition=function(e,t){void 0===t&&(t=-1),0===this.transitions.length?this.epsilonOnlyTransitions=e.isEpsilon:this.epsilonOnlyTransitions!==e.isEpsilon&&(this.epsilonOnlyTransitions=!1),-1===t?this.transitions.push(e):this.transitions.splice(t,1,e)},r.prototype=Object.create(n.prototype),r.prototype.constructor=r,i.prototype=Object.create(n.prototype),i.prototype.constructor=i,s.prototype=Object.create(i.prototype),s.prototype.constructor=s,o.prototype=Object.create(s.prototype),o.prototype.constructor=o,a.prototype=Object.create(n.prototype),a.prototype.constructor=a,l.prototype=Object.create(n.prototype),l.prototype.constructor=l,c.prototype=Object.create(n.prototype),c.prototype.constructor=c,p.prototype=Object.create(i.prototype),p.prototype.constructor=p,u.prototype=Object.create(s.prototype),u.prototype.constructor=u,h.prototype=Object.create(s.prototype),h.prototype.constructor=h,d.prototype=Object.create(n.prototype),d.prototype.constructor=d,f.prototype=Object.create(i.prototype),f.prototype.constructor=f,m.prototype=Object.create(n.prototype),m.prototype.constructor=m,y.prototype=Object.create(i.prototype),y.prototype.constructor=y,t.ATNState=n,t.BasicState=r,t.DecisionState=i,t.BlockStartState=s,t.BlockEndState=a,t.LoopEndState=m,t.RuleStartState=c,t.RuleStopState=l,t.TokensStartState=y,t.PlusLoopbackState=p,t.StarLoopbackState=d,t.StarLoopEntryState=f,t.PlusBlockStartState=u,t.StarBlockStartState=h,t.BasicBlockStartState=o},81540:(e,t,n)=>{var r=n(11265),i=n(79696).Buffer,s=n(10441),o=n(5339),a=n(84913),l=n(62053),c=n(23457);function p(e,t,n){a.call(this),this._cache=new u,this._last=void 0,this._cipher=new l.AES(t),this._prev=i.from(n),this._mode=e,this._autopadding=!0}function u(){this.cache=i.allocUnsafe(0)}function h(e,t,n){var a=s[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=i.from(n)),"GCM"!==a.mode&&n.length!==a.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=i.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===a.type?new o(a.module,t,n,!0):"auth"===a.type?new r(a.module,t,n,!0):new p(a.module,t,n)}n(25003)(p,a),p.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return i.concat(r)},p.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 n=-1;++n<t;)if(e[n+(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")},p.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},u.prototype.add=function(e){this.cache=i.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 n=s[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=c(t,!1,n.key,n.iv);return h(e,r.key,r.iv)},t.createDecipheriv=h},81625:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"eval"!==(e=(0,r.default)(e))&&"arguments"!==e||(e="_"+e),e};var r=n(29221)},82129:(e,t,n)=>{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=n(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 i=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=i},82208:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=n(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 i=n(496);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}))},83872:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=e.split(".");return e=>(0,r.default)(e,n,t)};var r=n(68740)},84579:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const r=(0,n(83872).default)("React.Component");t.default=r},85604:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLACEHOLDERS_FLIPPED_ALIAS=t.PLACEHOLDERS_ALIAS=t.PLACEHOLDERS=void 0;var r=n(73261);const i=t.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],s=t.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(const e of i){const t=r.ALIAS_KEYS[e];null!=t&&t.length&&(s[e]=t)}const o=t.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(s).forEach((e=>{s[e].forEach((t=>{hasOwnProperty.call(o,t)||(o[t]=[]),o[t].push(e)}))}))},86587:(e,t,n)=>{var r=n(10014).PredicateTransition;function i(e){return Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,i):(new Error).stack,this.message=e.message,this.recognizer=e.recognizer,this.input=e.input,this.ctx=e.ctx,this.offendingToken=null,this.offendingState=-1,null!==this.recognizer&&(this.offendingState=this.recognizer.state),this}function s(e,t,n,r){return i.call(this,{message:"",recognizer:e,input:t,ctx:null}),this.startIndex=n,this.deadEndConfigs=r,this}function o(e,t,n,r,s,o){o=o||e._ctx,r=r||e.getCurrentToken(),n=n||e.getCurrentToken(),t=t||e.getInputStream(),i.call(this,{message:"",recognizer:e,input:t,ctx:o}),this.deadEndConfigs=s,this.startToken=n,this.offendingToken=r}function a(e){i.call(this,{message:"",recognizer:e,input:e.getInputStream(),ctx:e._ctx}),this.offendingToken=e.getCurrentToken()}function l(e,t,n){i.call(this,{message:this.formatMessage(t,n||null),recognizer:e,input:e.getInputStream(),ctx:e._ctx});var s=e._interp.atn.states[e.state].transitions[0];return s instanceof r?(this.ruleIndex=s.ruleIndex,this.predicateIndex=s.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=t,this.offendingToken=e.getCurrentToken(),this}function c(){return Error.call(this),Error.captureStackTrace(this,c),this}i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i.prototype.getExpectedTokens=function(){return null!==this.recognizer?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null},i.prototype.toString=function(){return this.message},s.prototype=Object.create(i.prototype),s.prototype.constructor=s,s.prototype.toString=function(){var e="";return this.startIndex>=0&&this.startIndex<this.input.size&&(e=this.input.getText((this.startIndex,this.startIndex))),"LexerNoViableAltException"+e},o.prototype=Object.create(i.prototype),o.prototype.constructor=o,a.prototype=Object.create(i.prototype),a.prototype.constructor=a,l.prototype=Object.create(i.prototype),l.prototype.constructor=l,l.prototype.formatMessage=function(e,t){return null!==t?t:"failed predicate: {"+e+"}?"},c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,t.RecognitionException=i,t.NoViableAltException=o,t.LexerNoViableAltException=s,t.InputMismatchException=a,t.FailedPredicateException=l,t.ParseCancellationException=c},86809:(e,t)=>{function n(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,n){var r;let i=0;null!=(r=e.tokenMap)&&r.startMatches(t,n)&&(i=1,e.token(n)),e.printJoin(t.types,void 0,void 0,(function(e){this.space(),this.token(n,null,e+i),this.space()}))}function i(e,t){!0!==t&&e.token(t)}function s(e){o(this,e,(()=>{var t;return this.printList(e.members,null==(t=this.shouldPrintTrailingComma("}"))||t,!0,!0)}))}function o(e,t,n){e.token("{");const r=e.enterDelimited();n(),r(),e.rightBrace(t)}function a(e,t,n){var r;const i=new Set;for(const e of n)e&&i.add(e);null==(r=e.tokenMap)||r.find(t,(t=>{if(i.has(t.value))return e.token(t.value),e.space(),i.delete(t.value),0===i.size}));for(const t of i)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:n,typeAnnotation:r}=e;this.print(n,!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),n(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),n(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:n,id:r}=e;t&&(this.word("declare"),this.space()),n&&(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:n}=e;this.print(t),n&&(this.space(),this.tokenChar(61),this.space(),this.print(n))},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:n}=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(n),this.semicolon()},t.TSImportType=function(e){const{argument:t,qualifier:n,options:r}=e;this.word("import"),this.tokenChar(40),this.print(t),r&&(this.tokenChar(44),this.print(r)),this.tokenChar(41),n&&(this.tokenChar(46),this.print(n));const i=e.typeParameters;i&&this.print(i)},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),n(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){o(this,e,(()=>this.printJoin(e.body,!0,!0)))},t.TSInterfaceDeclaration=function(e){const{declare:t,id:n,typeParameters:r,extends:i,body:s}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(n),this.print(r),null!=i&&i.length&&(this.space(),this.word("extends"),this.space(),this.printList(i)),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:n,readonly:r,typeAnnotation:s}=e;this.tokenChar(123);const o=this.enterDelimited();this.space(),r&&(i(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),n&&(i(this,n),this.tokenChar(63)),s&&(this.tokenChar(58),this.space(),this.print(s)),this.space(),o(),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),n(this,e)},t.TSModuleBlock=function(e){o(this,e,(()=>this.printSequence(e.body,!0)))},t.TSModuleDeclaration=function(e){const{declare:t,id:n,kind:r}=e;t&&(this.word("declare"),this.space());{if(e.global||(this.word(null!=r?r:"Identifier"===n.type?"namespace":"module"),this.space()),this.print(n),!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),n(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:n,typeParameters:r,typeAnnotation:i}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(n),this.print(r),this.space(),this.tokenChar(61),this.space(),this.print(i),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:n}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(n)},t.TSTypeLiteral=function(e){o(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 n="ArrowFunctionExpression"===t.type&&1===e.params.length;this.tokenMap&&null!=e.start&&null!=e.end&&(n&&(n=!!this.tokenMap.find(e,(e=>this.tokenMap.matchesOriginal(e,",")))),n||(n=this.shouldPrintTrailingComma(">"))),this.printList(e.params,n),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,n="ClassAccessorProperty"===e.type||"ClassProperty"===e.type;a(this,e,[n&&e.declare&&"declare",!t&&e.accessibility]),e.static&&(this.word("static"),this.space()),a(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(n||t)&&e.readonly&&"readonly"])},t.tsPrintFunctionOrConstructorType=function(e){const{typeParameters:t}=e,n=e.parameters;this.print(t),this.tokenChar(40),this._parameters(n,")"),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,n=e.parameters;this.print(t),this.tokenChar(40),this._parameters(n,")");const r=e.typeAnnotation;this.print(r)}},87264:(e,t,n)=>{var r=n(51028).ATN,i=n(66346),s=i.Hash,o=i.Set,a=n(7842).Ij,l=n(10559).merge;function c(e){return e.hashCodeForConfigSet()}function p(e,t){return e===t||null!==e&&null!==t&&e.equalsForConfigSet(t)}function u(e){return this.configLookup=new o(c,p),this.fullCtx=void 0===e||e,this.readOnly=!1,this.configs=[],this.uniqueAlt=0,this.conflictingAlts=null,this.hasSemanticContext=!1,this.dipsIntoOuterContext=!1,this.cachedHashCode=-1,this}function h(){return u.call(this),this.configLookup=new o,this}u.prototype.add=function(e,t){if(void 0===t&&(t=null),this.readOnly)throw"This set is readonly";e.semanticContext!==a.NONE&&(this.hasSemanticContext=!0),e.reachesIntoOuterContext>0&&(this.dipsIntoOuterContext=!0);var n=this.configLookup.add(e);if(n===e)return this.cachedHashCode=-1,this.configs.push(e),!0;var r=!this.fullCtx,i=l(n.context,e.context,r,t);return n.reachesIntoOuterContext=Math.max(n.reachesIntoOuterContext,e.reachesIntoOuterContext),e.precedenceFilterSuppressed&&(n.precedenceFilterSuppressed=!0),n.context=i,!0},u.prototype.getStates=function(){for(var e=new o,t=0;t<this.configs.length;t++)e.add(this.configs[t].state);return e},u.prototype.getPredicates=function(){for(var e=[],t=0;t<this.configs.length;t++){var n=this.configs[t].semanticContext;n!==a.NONE&&e.push(n.semanticContext)}return e},Object.defineProperty(u.prototype,"items",{get:function(){return this.configs}}),u.prototype.optimizeConfigs=function(e){if(this.readOnly)throw"This set is readonly";if(0!==this.configLookup.length)for(var t=0;t<this.configs.length;t++){var n=this.configs[t];n.context=e.getCachedContext(n.context)}},u.prototype.addAll=function(e){for(var t=0;t<e.length;t++)this.add(e[t]);return!1},u.prototype.equals=function(e){return this===e||e instanceof u&&i.equalArrays(this.configs,e.configs)&&this.fullCtx===e.fullCtx&&this.uniqueAlt===e.uniqueAlt&&this.conflictingAlts===e.conflictingAlts&&this.hasSemanticContext===e.hasSemanticContext&&this.dipsIntoOuterContext===e.dipsIntoOuterContext},u.prototype.hashCode=function(){var e=new s;return this.updateHashCode(e),e.finish()},u.prototype.updateHashCode=function(e){this.readOnly?(-1===this.cachedHashCode&&((e=new s).update(this.configs),this.cachedHashCode=e.finish()),e.update(this.cachedHashCode)):e.update(this.configs)},Object.defineProperty(u.prototype,"length",{get:function(){return this.configs.length}}),u.prototype.isEmpty=function(){return 0===this.configs.length},u.prototype.contains=function(e){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.contains(e)},u.prototype.containsFast=function(e){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.containsFast(e)},u.prototype.clear=function(){if(this.readOnly)throw"This set is readonly";this.configs=[],this.cachedHashCode=-1,this.configLookup=new o},u.prototype.setReadonly=function(e){this.readOnly=e,e&&(this.configLookup=null)},u.prototype.toString=function(){return i.arrayToString(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==r.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(null!==this.conflictingAlts?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")},h.prototype=Object.create(u.prototype),h.prototype.constructor=h,t.Q=u,t.F=h},88497:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(1123),i=n(36306),s=i,o=n(45741),a=n(98703),l=n(34228),c=n(89887);const{isExpression:p,isFunction:u,isStatement:h,isClassBody:d,isTSInterfaceBody:f,isTSEnumMember:m}=o,y=/e/i,g=/\.0+$/,T=/[\n\r\u2028\u2029]/,S=/[\n\r\u2028\u2029]|\*\//;function b(e){return"CommentLine"===e.type||T.test(e.value)}const{needsParens:x}=s;class v{constructor(e,t,n,s){this.tokenContext=i.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=n,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|=i.TokenContext.forInitHead|i.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=i.TokenContext.normal}enterForXStatementInit(e){return e?(this.tokenContext|=i.TokenContext.forOfHead,null):(this.tokenContext|=i.TokenContext.forInHead|i.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=i.TokenContext.normal)}enterDelimited(){const e=this.tokenContext,t=this._noLineTerminatorAfterNode;return e&i.TokenContext.forInOrInitHeadAccumulate||null!==t?(this._noLineTerminatorAfterNode=null,this.tokenContext=i.TokenContext.normal,()=>{this._noLineTerminatorAfterNode=t,this.tokenContext=e}):()=>{}}generate(e){return this.format.preserveFormat&&(this.tokenMap=new a.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&=i.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)&&!g.test(e)&&46!==e.charCodeAt(e.length-1)}token(e,t=!1,n=0){this.tokenContext&=i.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e,n),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e,n);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&=i.TokenContext.forInOrInitHeadAccumulatePassThroughMask;const t=String.fromCharCode(e);this._maybePrintInnerComments(t),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(t);const n=this.getLastChar();(43===e&&43===n||45===e&&45===n||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,n){t&&!this.format.preserveFormat&&(this._catchUp(e,t),this._buf.sourceWithOffset(e,t,n))}sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;const n=this._buf._sourcePosition;n.identifierNamePos=t,n.identifierName=e}_space(){this._queue(32)}_newline(){this._queue(10)}_catchUpToCurrentToken(e,t=0){const n=this.tokenMap.findMatching(this._currentNode,e,t);n&&this._catchUpTo(n.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:n}=this;if(!n.preserveFormat)return void(n.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:n}){const r=e-this._buf.getCurrentLine();if(r>0&&this._noLineTerminator)return;for(let e=0;e<r;e++)this._newline();const i=r>0?t:t-this._buf.getCurrentColumn();if(i>0){const e=this._originalCode?this._originalCode.slice(n-i,n).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(i);this._append(e,!1)}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(e){this._noLineTerminator=!0,this.print(e)}print(e,t,n){var r,o,a;if(!e)return;this._endsWithInnerRaw=!1;const l=e.type,c=this.format,u=c.concise;e._compact&&(c.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&&c.preserveFormat||m&&c.retainFunctionParens&&"FunctionExpression"===l||x(e,d,this.tokenContext,c.preserveFormat?this._boundGetRawIdentifier:void 0);if(!y&&m&&null!=(o=e.leadingComments)&&o.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 g,T,S=!1;var v;!y&&this._noLineTerminator&&(null!=(a=e.leadingComments)&&a.some(b)||this.format.retainLines&&e.loc&&e.loc.start.line>this._buf.getCurrentLine())&&(y=!0,S=!0),y||(t||(t=d&&this._noLineTerminatorAfterNode===d&&s.isLastChild(d,e)),t&&(null!=(v=e.trailingComments)&&v.some(b)?p(e)&&(y=!0):(g=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=e))),y&&(this.tokenChar(40),S&&this.indent(),this._endsWithInnerRaw=!1,this.tokenContext&i.TokenContext.forInOrInitHeadAccumulate&&(T=this.tokenContext,this.tokenContext=i.TokenContext.normal),g=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._lastCommentLine=0,this._printLeadingComments(e,d);const E="Program"===l||"File"===l?null:e.loc;this.exactSource(E,h.bind(this,e,d)),y?(this._printTrailingComments(e,d),S&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=t,T&&(this.tokenContext=T)):t&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(e,d)):this._printTrailingComments(e,d,n),this._currentNode=d,c.concise=u,this._insideAux=f,void 0!==g&&(this._noLineTerminatorAfterNode=g),this._endsWithInnerRaw=!1}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)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,n,r,i,s,o,a){if(null==e||!e.length)return;if(null==n&&this.format.retainLines){var l;const t=null==(l=e[0].loc)?void 0:l.start.line;null!=t&&t!==this._buf.getCurrentLine()&&(n=!0)}n&&this.indent();const c={addNewlines:s,nextNodeStartLine:0},p=null==r?void 0:r.bind(this),u=e.length;for(let n=0;n<u;n++){const r=e[n];var h;if(r&&(t&&this._printNewline(0===n,c),this.print(r,void 0,a||0),null==o||o(r,n),null!=p&&(n<u-1?p(n,!1):i&&p(n,!0)),t))if(null!=(h=r.trailingComments)&&h.length||(this._lastCommentLine=0),n+1===u)this.newline(1);else{var d;const t=e[n+1];c.nextNodeStartLine=(null==(d=t.loc)?void 0:d.start.line)||0,this._printNewline(!0,c)}}n&&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,n){const{innerComments:r,trailingComments:i}=e;null!=r&&r.length&&this._printComments(2,r,e,t,n),null!=i&&i.length&&this._printComments(2,i,e,t,n)}_printLeadingComments(e,t){const n=e.leadingComments;null!=n&&n.length&&this._printComments(0,n,e,t)}_maybePrintInnerComments(e,t){var n;this._endsWithInnerRaw&&this.printInnerComments(null==(n=this.tokenMap)?void 0:n.findMatching(this._currentNode,e,t)),this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(e){const t=this._currentNode,n=t.innerComments;if(null==n||!n.length)return;const r=this.endsWith(32),i=this._indentInnerComments,s=this._printedComments.size;i&&this.indent(),this._printComments(1,n,t,void 0,void 0,e),r&&s!==this._printedComments.size&&this.space(),i&&this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(e,t,n,r){this.printJoin(e,!0,null!=t&&t,void 0,void 0,r,void 0,n)}printList(e,t,n,r,i,s){this.printJoin(e,n,r,null!=i?i:E,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 n=this.format;if(n.retainLines||n.compact)return;if(n.concise)return void this.space();if(!e)return;const r=t.nextNodeStartLine,i=this._lastCommentLine;if(r>0&&i>0){const e=r-i;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&&S.test(e.value))return 2;if(t&&this.tokenMap){const n=this.tokenMap.find(this._currentNode,(t=>t.value===e.value));if(n&&n.start>t.start)return 2}return this._printedComments.add(e),this.format.shouldPrintComment(e.value)?1:0}_printComment(e,t){const n=this._noLineTerminator,r="CommentBlock"===e.type,i=r&&1!==t&&!this._noLineTerminator;i&&this._buf.hasContent()&&2!==t&&this.newline(1);const s=this.getLastChar();let o;if(91!==s&&123!==s&&40!==s&&this.space(),r){if(o=`/*${e.value}*/`,this.format.indent.adjustMultilineComment){var a;const t=null==(a=e.loc)?void 0:a.start.column;if(t){const e=new RegExp("\\n\\s{1,"+t+"}","g");o=o.replace(e,"\n")}if(this.format.concise)o=o.replace(/\n(?!$)/g,"\n");else{let e=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(e+=this._getIndent()),o=o.replace(/\n(?!$)/g,`\n${" ".repeat(e)}`)}}}else o=n?`/*${e.value}*/`:`//${e.value}`;if(this._endsWithDiv&&this._space(),this.tokenMap){const{_printSemicolonBeforeNextToken:t,_printSemicolonBeforeNextNode:n}=this;this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1,this.source("start",e.loc),this._append(o,r),this._printSemicolonBeforeNextNode=n,this._printSemicolonBeforeNextToken=t}else this.source("start",e.loc),this._append(o,r);r||n||this.newline(1,!0),i&&3!==t&&this.newline(1)}_printComments(e,t,n,r,i=0,s){const o=n.loc,a=t.length;let l=!!o;const c=l?o.start.line:0,p=l?o.end.line:0;let y=0,g=0;const S=this._noLineTerminator?function(){}:this.newline.bind(this);for(let o=0;o<a;o++){const b=t[o],x=this._shouldPrintComment(b,s);if(2===x){l=!1;break}if(l&&b.loc&&1===x){const t=b.loc.start.line,n=b.loc.end.line;if(0===e){let e=0;0===o?!this._buf.hasContent()||"CommentLine"!==b.type&&t===n||(e=g=1):e=t-y,y=n,S(e),this._printComment(b,1),o+1===a&&(S(Math.max(c-y,g)),y=c)}else if(1===e){const e=t-(0===o?c:y);y=n,S(e),this._printComment(b,1),o+1===a&&(S(Math.min(1,p-y)),y=p)}else{const e=t-(0===o?p-i:y);y=n,S(e),this._printComment(b,1)}}else{if(l=!1,1!==x)continue;if(1===a){const t=b.loc?b.loc.start.line===b.loc.end.line:!T.test(b.value),i=t&&!h(n)&&!d(r)&&!f(r)&&!m(n);0===e?this._printComment(b,i&&"ObjectExpression"!==n.type||t&&u(r,{body:n})?1:0):i&&2===e?this._printComment(b,1):this._printComment(b,0)}else 1!==e||"ObjectExpression"===n.type&&n.properties.length>1||"ClassBody"===n.type||"TSInterfaceBody"===n.type?this._printComment(b,0):this._printComment(b,0===o?2:o===a-1?3:0)}}2===e&&l&&y&&(this._lastCommentLine=y)}}function E(e,t){this.token(",",!1,e),t||this.space()}Object.assign(v.prototype,l),(0,c.addDeprecatedGenerators)(v),t.default=v},89135:(e,t,n)=>{var r=n(79696).Buffer,i=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 o(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},o.prototype._multiply=function(){for(var e,t,n,r=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],o=-1;++o<128;){for(!!(this.state[~~(o/8)]&1<<7-o%8)&&(i[0]^=r[0],i[1]^=r[1],i[2]^=r[2],i[3]^=r[3]),n=!!(1&r[3]),t=3;t>0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=s(i)},o.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)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(s([0,e,0,t])),this.state},e.exports=o},89779:(e,t,n)=>{var r=n(10626);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,s=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return s||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(i,this,e)):r.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,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,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t="body"){const n=(0,r.default)(e[t],e);return e[t]=n,n};var r=n(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,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.map((e=>(0,s.isTSTypeAnnotation)(e)?e.typeAnnotation:e)),n=(0,i.default)(t);return 1===n.length?n[0]:(0,r.tsUnionType)(n)};var r=n(82208),i=n(74941),s=n(63555)},90686:(e,t,n)=>{var r=n(45080),i=n(81540),s=n(50006);t.createCipher=t.Cipher=r.createCipher,t.createCipheriv=t.Cipheriv=r.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(s)}},92339:(e,t,n)=>{var r=n(58777).Buffer,i=n(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,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);for(var t,n,i=r.allocUnsafe(e>>>0),s=this.head,o=0;s;)t=i,n=o,s.data.copy(t,n),o+=s.data.length,s=s.next;return i},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},92494:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isKeyword=function(e){return n.has(e)},t.isReservedWord=s,t.isStrictBindOnlyReservedWord=a,t.isStrictBindReservedWord=function(e,t){return o(e,t)||a(e)},t.isStrictReservedWord=o;const n=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"]),i=new Set(["eval","arguments"]);function s(e,t){return t&&"await"===e||"enum"===e}function o(e,t){return s(e,t)||r.has(e)}function a(e){return i.has(e)}},93343:(e,t)=>{function n(){return this}function r(){return n.call(this),this}function i(e){if(n.call(this),null===e)throw"delegates";return this.delegates=e,this}n.prototype.syntaxError=function(e,t,n,r,i,s){},n.prototype.reportAmbiguity=function(e,t,n,r,i,s,o){},n.prototype.reportAttemptingFullContext=function(e,t,n,r,i,s){},n.prototype.reportContextSensitivity=function(e,t,n,r,i,s){},r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.INSTANCE=new r,r.prototype.syntaxError=function(e,t,n,r,i,s){console.error("line "+n+":"+r+" "+i)},i.prototype=Object.create(n.prototype),i.prototype.constructor=i,i.prototype.syntaxError=function(e,t,n,r,i,s){this.delegates.map((function(o){o.syntaxError(e,t,n,r,i,s)}))},i.prototype.reportAmbiguity=function(e,t,n,r,i,s,o){this.delegates.map((function(a){a.reportAmbiguity(e,t,n,r,i,s,o)}))},i.prototype.reportAttemptingFullContext=function(e,t,n,r,i,s){this.delegates.map((function(o){o.reportAttemptingFullContext(e,t,n,r,i,s)}))},i.prototype.reportContextSensitivity=function(e,t,n,r,i,s){this.delegates.map((function(o){o.reportContextSensitivity(e,t,n,r,i,s)}))},t.ErrorListener=n,t.q=r,t.X=i},93567:(e,t,n)=>{var r=n(59830),i=n(63655),s=n(96830),o=n(76966),a=n(88141),l=Array.prototype.slice,c=n(57585),p={on:function(e,t,n){return c.eventsApi(this,"on",e,[t,n])&&t?(this._events||(this._events={}),(this._events[e]||(this._events[e]=[])).push({callback:t,context:n,ctx:n||this}),this):this},once:function(e,t,n){if(!c.eventsApi(this,"once",e,[t,n])||!t)return this;var i=this,s=r((function(){i.off(e,s),t.apply(this,arguments)}));return s._callback=t,this.on(e,s,n)},off:function(e,t,n){var r,s,o,a,l,p,u,h;if(!this._events||!c.eventsApi(this,"off",e,[t,n]))return this;if(!e&&!t&&!n)return this._events=void 0,this;for(l=0,p=(a=e?[e]:i(this._events)).length;l<p;l++)if(e=a[l],o=this._events[e]){if(this._events[e]=r=[],t||n)for(u=0,h=o.length;u<h;u++)s=o[u],(t&&t!==s.callback&&t!==s.callback._callback||n&&n!==s.context)&&r.push(s);r.length||delete this._events[e]}return this},trigger:function(e){if(!this._events)return this;var t=l.call(arguments,1);if(!c.eventsApi(this,"trigger",e,t))return this;var n=this._events[e],r=this._events.all;return n&&c.triggerEvents(n,t),r&&c.triggerEvents(r,arguments),this},stopListening:function(e,t,n){var r=this._listeningTo;if(!r)return this;var i=!t&&!n;n||"object"!=typeof t||(n=this),e&&((r={})[e._listenId]=e);var o=this;return a(r,(function(e,r){e.off(t,n,o),(i||s(e._events))&&delete o._listeningTo[r]})),this},createEmitter:function(e){return o(e||{},p)},listenTo:c.createListenMethod("on"),listenToOnce:c.createListenMethod("once"),listenToAndRun:function(e,t,n){return this.listenTo.apply(this,arguments),n||"object"!=typeof t||(n=this),n.apply(this),this}};p.bind=p.on,p.unbind=p.off,p.removeListener=p.off,p.removeAllListeners=p.off,p.emit=p.trigger,e.exports=p},93862:(e,t,n)=>{var r=n(25003),i=n(67787).Buffer,s=n(5555);function o(e){s.call(this,e),this.enc="pem"}r(o,s),e.exports=o,o.prototype.decode=function(e,t){for(var n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,a=-1,l=-1,c=0;c<n.length;c++){var p=n[c].match(o);if(null!==p&&p[2]===r){if(-1!==a){if("END"!==p[1])break;l=c;break}if("BEGIN"!==p[1])break;a=c}}if(-1===a||-1===l)throw new Error("PEM section not found for: "+r);var u=n.slice(a+1,l).join("");u.replace(/[^a-z0-9\+\/=]+/gi,"");var h=new i(u,"base64");return s.prototype.decode.call(this,h,t)}},93971:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(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=p,t.isIdentifierName=function(e){let t=!0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(55296==(64512&r)&&n+1<e.length){const t=e.charCodeAt(++n);56320==(64512&t)&&(r=65536+((1023&r)<<10)+(1023&t))}if(t){if(t=!1,!c(r))return!1}else if(!p(r))return!1}return!t},t.isIdentifierStart=c;let n="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",r="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const i=new RegExp("["+n+"]"),s=new RegExp("["+n+r+"]");n=r=null;const o=[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],a=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,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 n=65536;for(let r=0,i=t.length;r<i;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function c(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&i.test(String.fromCharCode(e)):l(e,o)))}function p(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,o)||l(e,a))))}},95694:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=e.value.split(/\r\n|\n|\r/);let s=0;for(let e=0;e<n.length;e++)/[^ \t]/.exec(n[e])&&(s=e);let o="";for(let e=0;e<n.length;e++){const t=n[e],r=0===e,i=e===n.length-1,a=e===s;let l=t.replace(/\t/g," ");r||(l=l.replace(/^ +/,"")),i||(l=l.replace(/ +$/,"")),l&&(a||(l+=" "),o+=l)}o&&t.push((0,i.inherits)((0,r.stringLiteral)(o),e))};var r=n(82208),i=n(45741)},96160:(e,t,n)=>{var r=n(66346).hashStuff,i=n(56645).LexerIndexedCustomAction;function s(e){return this.lexerActions=null===e?[]:e,this.cachedHashCode=r(e),this}s.append=function(e,t){return new s(null===e?[t]:e.lexerActions.concat([t]))},s.prototype.fixOffsetBeforeMatch=function(e){for(var t=null,n=0;n<this.lexerActions.length;n++)!this.lexerActions[n].isPositionDependent||this.lexerActions[n]instanceof i||(null===t&&(t=this.lexerActions.concat([])),t[n]=new i(e,this.lexerActions[n]));return null===t?this:new s(t)},s.prototype.execute=function(e,t,n){var r=!1,s=t.index;try{for(var o=0;o<this.lexerActions.length;o++){var a=this.lexerActions[o];if(a instanceof i){var l=a.offset;t.seek(n+l),a=a.action,r=n+l!==s}else a.isPositionDependent&&(t.seek(s),r=!1);a.execute(e)}}finally{r&&t.seek(s)}},s.prototype.hashCode=function(){return this.cachedHashCode},s.prototype.updateHashCode=function(e){e.update(this.cachedHashCode)},s.prototype.equals=function(e){if(this===e)return!0;if(e instanceof s){if(this.cachedHashCode!=e.cachedHashCode)return!1;if(this.lexerActions.length!=e.lexerActions.length)return!1;for(var t=this.lexerActions.length,n=0;n<t;++n)if(!this.lexerActions[n].equals(e.lexerActions[n]))return!1;return!0}return!1},t.I=s},96196:(e,t,n)=>{function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},96268:(e,t,n)=>{var r=n(79696).Buffer,i=n(70243),s=n(79548).ec,o=n(28113),a=n(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,n,c,p){var u=o(n);if("ec"===u.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(e,t,n){var r=a[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var i=new s(r),o=n.data.subjectPrivateKey.data;return i.verify(t,e,o)}(e,t,u)}if("dsa"===u.type){if("dsa"!==c)throw new Error("wrong public key type");return function(e,t,n){var r=n.data.p,s=n.data.q,a=n.data.g,c=n.data.pub_key,p=o.signature.decode(e,"der"),u=p.s,h=p.r;l(u,s),l(h,s);var d=i.mont(r),f=u.invm(s);return 0===a.toRed(d).redPow(new i(t).mul(f).mod(s)).fromRed().mul(c.toRed(d).redPow(h.mul(f).mod(s)).fromRed()).mod(r).mod(s).cmp(h)}(e,t,u)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");t=r.concat([p,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=i.mont(u.modulus);e=(e=new i(e).toRed(y)).redPow(new i(u.publicExponent)),e=r.from(e.fromRed().toArray());var g=f<8?1:0;for(h=Math.min(e.length,d.length),e.length!==d.length&&(g=1),m=-1;++m<h;)g|=e[m]^d[m];return 0===g}},97232:(e,t,n)=>{var r=n(65994).process,i=n(73261);(0,i.default)("ArgumentPlaceholder",{}),(0,i.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:r.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,i.assertNodeType)("Expression")},callee:{validate:(0,i.assertNodeType)("Expression")}}:{object:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})}}}),(0,i.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,i.assertNodeType)("Expression")}}}),(0,i.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,i.assertNodeType)("BlockStatement")},async:{validate:(0,i.assertValueType)("boolean"),default:!1}}}),(0,i.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,i.assertNodeType)("Identifier")}}}),(0,i.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,i.validateArrayOfType)("ObjectProperty","SpreadElement")}}),(0,i.default)("TupleExpression",{fields:{elements:{validate:(0,i.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,i.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,i.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,i.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,i.assertNodeType)("Program")}},aliases:["Expression"]}),(0,i.default)("TopicReference",{aliases:["Expression"]}),(0,i.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,i.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,i.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,i.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,i.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]}),(0,i.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})},97884:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){const n=Array.from(t),s=new Map,o=new Map,a=new Set,l=[];for(let t=0;t<n.length;t++){const c=n[t];if(c&&!l.includes(c)){if((0,r.isAnyTypeAnnotation)(c))return[c];if((0,r.isFlowBaseAnnotation)(c))o.set(c.type,c);else if((0,r.isUnionTypeAnnotation)(c))a.has(c.types)||(n.push(...c.types),a.add(c.types));else if((0,r.isGenericTypeAnnotation)(c)){const t=i(c.id);if(s.has(t)){let n=s.get(t);n.typeParameters?c.typeParameters&&(n.typeParameters.params.push(...c.typeParameters.params),n.typeParameters.params=e(n.typeParameters.params)):n=c.typeParameters}else s.set(t,c)}else l.push(c)}}for(const[,e]of o)l.push(e);for(const[,e]of s)l.push(e);return l};var r=n(63555);function i(e){return(0,r.isIdentifier)(e)?e.name:`${e.id.name}.${i(e.qualification)}`}},98109:(e,t,n)=>{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 i.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return i.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return i.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return i.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return i.isStrictReservedWord}});var r=n(94198),i=n(92494)},98703:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TokenMap=void 0;var r=n(45741);const{traverseFast:i,VISITOR_KEYS:s}=r;t.TokenMap=class{constructor(e,t,n){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=n,i(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 n=this._nodesToTokenIndexes.get(e);if(n)for(let e=0;e<n.length;e++){const r=n[e],i=this._tokens[r];if(t(i,r))return i}return null}findLastIndex(e,t){const n=this._nodesToTokenIndexes.get(e);if(n)for(let e=n.length-1;e>=0;e--){const r=n[e];if(t(this._tokens[r],r))return r}return-1}findMatching(e,t,n=0){const r=this._nodesToTokenIndexes.get(e);if(r){let i=0;const s=n;if(s>1){const r=this._nodesOccurrencesCountCache.get(e);r&&r.test===t&&r.count<s&&(i=r.i+1,n-=r.count+1)}for(;i<r.length;i++){const o=this._tokens[r[i]];if(this.matchesOriginal(o,t)){if(0===n)return s>0&&this._nodesOccurrencesCountCache.set(e,{test:t,count:s,i}),o;n--}}}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 n=this._nodesToTokenIndexes.get(e);if(!n)return!1;const r=this._tokens[n[0]];return r.start===e.start&&this.matchesOriginal(r,t)}endMatches(e,t){const n=this._nodesToTokenIndexes.get(e);if(!n)return!1;const r=this._tokens[n[n.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:n}=this._findTokensOfNode(e,0,this._tokens.length-1);let r=t;const i=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 n of t){const t=e[n];t&&(Array.isArray(t)?yield*t:yield t)}}(e);"ExportNamedDeclaration"!==e.type&&"ExportDefaultDeclaration"!==e.type||!e.declaration||"ClassDeclaration"!==e.declaration.type||i.next();const o=[];for(const e of i){if(null==e)continue;if(null==e.start||null==e.end)continue;const t=this._findTokensOfNode(e,r,n),i=t.first;for(let e=r;e<i;e++)o.push(e);r=t.last+1}for(let e=r;e<=n;e++)o.push(e);return o}_findTokensOfNode(e,t,n){const r=this._tokensCache.get(e);if(r)return r;const i=this._findFirstTokenOfNode(e.start,t,n),s=this._findLastTokenOfNode(e.end,i,n);return this._tokensCache.set(e,{first:i,last:s}),{first:i,last:s}}_findFirstTokenOfNode(e,t,n){for(;t<=n;){const r=n+t>>1;if(e<this._tokens[r].start)n=r-1;else{if(!(e>this._tokens[r].start))return r;t=r+1}}return t}_findLastTokenOfNode(e,t,n){for(;t<=n;){const r=n+t>>1;if(e<this._tokens[r].end)n=r-1;else{if(!(e>this._tokens[r].end))return r;t=r+1}}return n}}},99636:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(n&&"Identifier"===e.type&&"ObjectProperty"===t.type&&"ObjectExpression"===n.type)return!1;const i=r.default.keys[t.type];if(i)for(let n=0;n<i.length;n++){const r=t[i[n]];if(Array.isArray(r)){if(r.includes(e))return!0}else if(r===e)return!0}return!1};var r=n(68830)}};
|