13221 lines
4.4 MiB
Executable File
13221 lines
4.4 MiB
Executable File
var Tyt=Object.create;var G7e=Object.defineProperty;var kyt=Object.getOwnPropertyDescriptor;var xyt=Object.getOwnPropertyNames;var Cyt=Object.getPrototypeOf,wyt=Object.prototype.hasOwnProperty;var Lye=(Q=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(Q,{get:(R,me)=>(typeof require<"u"?require:R)[me]}):Q)(function(Q){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+Q+'" is not supported')});var XD=(Q,R)=>()=>(R||Q((R={exports:{}}).exports,R),R.exports);var Iyt=(Q,R,me,Te)=>{if(R&&typeof R=="object"||typeof R=="function")for(let ze of xyt(R))!wyt.call(Q,ze)&&ze!==me&&G7e(Q,ze,{get:()=>R[ze],enumerable:!(Te=kyt(R,ze))||Te.enumerable});return Q};var Vh=(Q,R,me)=>(me=Q!=null?Tyt(Cyt(Q)):{},Iyt(R||!Q||!Q.__esModule?G7e(me,"default",{value:Q,enumerable:!0}):me,Q));var l5e=XD(()=>{});var _ve=XD(()=>{});var u5e=XD(()=>{});var p5e=XD(()=>{});var f5e=XD(()=>{});var _5e=XD(()=>{});var d5e=XD(()=>{});var Yg=XD((B0t,CY)=>{var m5e={};(Q=>{"use strict";var R=Object.defineProperty,me=Object.getOwnPropertyDescriptor,Te=Object.getOwnPropertyNames,ze=Object.prototype.hasOwnProperty,it=(e,t)=>{for(var n in t)R(e,n,{get:t[n],enumerable:!0})},xr=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Te(t))!ze.call(e,s)&&s!==n&&R(e,s,{get:()=>t[s],enumerable:!(i=me(t,s))||i.enumerable});return e},Ir=e=>e,vi={};it(vi,{ANONYMOUS:()=>a$,AccessFlags:()=>EZ,AssertionLevel:()=>zY,AssignmentDeclarationKind:()=>BZ,AssignmentKind:()=>fre,Associativity:()=>bre,BreakpointResolver:()=>iH,BuilderFileEmit:()=>moe,BuilderProgramKind:()=>koe,BuilderState:()=>fm,CallHierarchy:()=>dC,CharacterCodes:()=>XZ,CheckFlags:()=>IZ,CheckMode:()=>PU,ClassificationType:()=>hq,ClassificationTypeNames:()=>Cce,CommentDirectiveType:()=>fZ,Comparison:()=>Va,CompletionInfoFlags:()=>yce,CompletionTriggerKind:()=>mq,Completions:()=>vC,ContainerFlags:()=>Qse,ContextFlags:()=>vZ,Debug:()=>w,DiagnosticCategory:()=>zO,Diagnostics:()=>_,DocumentHighlights:()=>O5,ElementFlags:()=>AZ,EmitFlags:()=>fB,EmitHint:()=>tee,EmitOnly:()=>dZ,EndOfLineState:()=>Sce,ExitStatus:()=>mZ,ExportKind:()=>mle,Extension:()=>YZ,ExternalEmitHelpers:()=>eee,FileIncludeKind:()=>rB,FilePreprocessingDiagnosticsKind:()=>_Z,FileSystemEntryKind:()=>uee,FileWatcherEventKind:()=>oee,FindAllReferences:()=>jo,FlattenLevel:()=>hae,FlowFlags:()=>BO,ForegroundColorEscapeSequences:()=>soe,FunctionFlags:()=>yre,GeneratedIdentifierFlags:()=>tB,GetLiteralTextFlags:()=>Pte,GoToDefinition:()=>aD,HighlightSpanKind:()=>gce,IdentifierNameMap:()=>FI,ImportKind:()=>dle,ImportsNotUsedAsValues:()=>qZ,IndentStyle:()=>hce,IndexFlags:()=>NZ,IndexKind:()=>OZ,InferenceFlags:()=>LZ,InferencePriority:()=>jZ,InlayHintKind:()=>mce,InlayHints:()=>QH,InternalEmitFlags:()=>ZZ,InternalNodeBuilderFlags:()=>SZ,InternalSymbolName:()=>DZ,IntersectionFlags:()=>yZ,InvalidatedProjectKind:()=>qoe,JSDocParsingMode:()=>aee,JsDoc:()=>_1,JsTyping:()=>Wb,JsxEmit:()=>VZ,JsxFlags:()=>cZ,JsxReferenceKind:()=>MZ,LanguageFeatureMinimumTarget:()=>Jl,LanguageServiceMode:()=>_ce,LanguageVariant:()=>QZ,LexicalEnvironmentFlags:()=>nee,ListFormat:()=>iee,LogLevel:()=>XY,MapCode:()=>KH,MemberOverrideStatus:()=>gZ,ModifierFlags:()=>ZW,ModuleDetectionKind:()=>zZ,ModuleInstanceState:()=>$se,ModuleKind:()=>kw,ModuleResolutionKind:()=>Tw,ModuleSpecifierEnding:()=>gne,NavigateTo:()=>Wle,NavigationBar:()=>zle,NewLineKind:()=>$Z,NodeBuilderFlags:()=>bZ,NodeCheckFlags:()=>sB,NodeFactoryFlags:()=>$ne,NodeFlags:()=>YW,NodeResolutionFeatures:()=>jse,ObjectFlags:()=>oB,OperationCanceledException:()=>bP,OperatorPrecedence:()=>Sre,OrganizeImports:()=>d1,OrganizeImportsMode:()=>dq,OuterExpressionKinds:()=>ree,OutliningElementsCollector:()=>YH,OutliningSpanKind:()=>vce,OutputFileType:()=>bce,PackageJsonAutoImportPreference:()=>fce,PackageJsonDependencyGroup:()=>pce,PatternMatchKind:()=>C$,PollingInterval:()=>_B,PollingWatchKind:()=>UZ,PragmaKindFlags:()=>see,PredicateSemantics:()=>lZ,PreparePasteEdits:()=>_Q,PrivateIdentifierKind:()=>nie,ProcessLevel:()=>Sae,ProgramUpdateLevel:()=>eoe,QuotePreference:()=>$ce,RegularExpressionFlags:()=>uZ,RelationComparisonResult:()=>eB,Rename:()=>yL,ScriptElementKind:()=>kce,ScriptElementKindModifier:()=>xce,ScriptKind:()=>lB,ScriptSnapshot:()=>$j,ScriptTarget:()=>HZ,SemanticClassificationFormat:()=>dce,SemanticMeaning:()=>wce,SemicolonPreference:()=>gq,SignatureCheckMode:()=>AU,SignatureFlags:()=>cB,SignatureHelp:()=>ZR,SignatureInfo:()=>doe,SignatureKind:()=>RZ,SmartSelectionRange:()=>tQ,SnippetKind:()=>pB,StatisticType:()=>tce,StructureIsReused:()=>nB,SymbolAccessibility:()=>xZ,SymbolDisplay:()=>dv,SymbolDisplayPartKind:()=>Qj,SymbolFlags:()=>iB,SymbolFormatFlags:()=>kZ,SyntaxKind:()=>XW,Ternary:()=>WZ,ThrottledCancellationToken:()=>Que,TokenClass:()=>Tce,TokenFlags:()=>pZ,TransformFlags:()=>uB,TypeFacts:()=>DU,TypeFlags:()=>aB,TypeFormatFlags:()=>TZ,TypeMapKind:()=>FZ,TypePredicateKind:()=>CZ,TypeReferenceSerializationKind:()=>wZ,UnionReduction:()=>hZ,UpToDateStatusType:()=>Woe,VarianceFlags:()=>PZ,Version:()=>Zd,VersionRange:()=>WO,WatchDirectoryFlags:()=>KZ,WatchDirectoryKind:()=>JZ,WatchFileKind:()=>GZ,WatchLogLevel:()=>roe,WatchType:()=>Xl,accessPrivateIdentifier:()=>gae,addEmitFlags:()=>qm,addEmitHelper:()=>O2,addEmitHelpers:()=>vh,addInternalEmitFlags:()=>_k,addNodeFactoryPatcher:()=>g0e,addObjectAllocatorPatcher:()=>e0e,addRange:()=>Gn,addRelatedInfo:()=>Xs,addSyntheticLeadingComment:()=>Ib,addSyntheticTrailingComment:()=>FA,addToSeen:()=>dd,advancedAsyncSuperHelper:()=>i7,affectsDeclarationPathOptionDeclarations:()=>cse,affectsEmitOptionDeclarations:()=>ose,allKeysStartWithDot:()=>Y7,altDirectorySeparator:()=>VO,and:()=>FO,append:()=>Fr,appendIfUnique:()=>qh,arrayFrom:()=>ds,arrayIsEqualTo:()=>qf,arrayIsHomogeneous:()=>xne,arrayOf:()=>jY,arrayReverseIterator:()=>AW,arrayToMap:()=>yw,arrayToMultiMap:()=>uM,arrayToNumericMap:()=>WY,assertType:()=>Ave,assign:()=>WT,asyncSuperHelper:()=>n7,attachFileToDiagnostics:()=>w2,base64decode:()=>Gre,base64encode:()=>zre,binarySearch:()=>Xv,binarySearchKey:()=>Vx,bindSourceFile:()=>Kse,breakIntoCharacterSpans:()=>Ele,breakIntoWordSpans:()=>Nle,buildLinkParts:()=>tle,buildOpts:()=>w4,buildOverload:()=>r6e,bundlerModuleNameResolver:()=>Lse,canBeConvertedToAsync:()=>E$,canHaveDecorators:()=>US,canHaveExportModifier:()=>K6,canHaveFlowNode:()=>$w,canHaveIllegalDecorators:()=>LJ,canHaveIllegalModifiers:()=>Gie,canHaveIllegalType:()=>G0e,canHaveIllegalTypeParameters:()=>zie,canHaveJSDoc:()=>h6,canHaveLocals:()=>Tg,canHaveModifiers:()=>yd,canHaveModuleSpecifier:()=>lre,canHaveSymbol:()=>rm,canIncludeBindAndCheckDiagnostics:()=>wA,canJsonReportNoInputFiles:()=>N4,canProduceDiagnostics:()=>G4,canUsePropertyAccess:()=>GG,canWatchAffectingLocation:()=>Eoe,canWatchAtTypes:()=>Aoe,canWatchDirectoryOrFile:()=>EV,canWatchDirectoryOrFilePath:()=>nR,cartesianProduct:()=>QY,cast:()=>Zs,chainBundle:()=>pm,chainDiagnosticMessages:()=>Ns,changeAnyExtension:()=>hM,changeCompilerHostLikeToUseCache:()=>yE,changeExtension:()=>tv,changeFullExtension:()=>HO,changesAffectModuleResolution:()=>SF,changesAffectingProgramStructure:()=>Ste,characterCodeToRegularExpressionFlag:()=>xB,childIsDecorated:()=>HP,classElementOrClassElementParameterIsDecorated:()=>kz,classHasClassThisAssignment:()=>VU,classHasDeclaredOrExplicitlyAssignedName:()=>qU,classHasExplicitlyAssignedName:()=>pj,classOrConstructorParameterIsDecorated:()=>Ky,classicNameResolver:()=>Vse,classifier:()=>Zue,cleanExtendedConfigCache:()=>hj,clear:()=>sd,clearMap:()=>cf,clearSharedExtendedConfigFileWatcher:()=>aV,climbPastPropertyAccess:()=>Yj,clone:()=>BY,cloneCompilerOptions:()=>Fq,closeFileWatcher:()=>Fd,closeFileWatcherOf:()=>J_,codefix:()=>tp,collapseTextChangeRangesAcrossMultipleVersions:()=>Mee,collectExternalModuleInfo:()=>zU,combine:()=>Ux,combinePaths:()=>Jn,commandLineOptionOfCustomType:()=>pse,commentPragmas:()=>GO,commonOptionsWithBuild:()=>E7,compact:()=>cM,compareBooleans:()=>C0,compareDataObjects:()=>gG,compareDiagnostics:()=>vA,compareEmitHelpers:()=>sie,compareNumberOfDirectorySeparators:()=>q6,comparePaths:()=>Hh,comparePathsCaseInsensitive:()=>ebe,comparePathsCaseSensitive:()=>Zve,comparePatternKeys:()=>SU,compareProperties:()=>VY,compareStringsCaseInsensitive:()=>fM,compareStringsCaseInsensitiveEslintCompatible:()=>GY,compareStringsCaseSensitive:()=>Eu,compareStringsCaseSensitiveUI:()=>_M,compareTextSpans:()=>RO,compareValues:()=>Po,compilerOptionsAffectDeclarationPath:()=>une,compilerOptionsAffectEmit:()=>lne,compilerOptionsAffectSemanticDiagnostics:()=>cne,compilerOptionsDidYouMeanDiagnostics:()=>O7,compilerOptionsIndicateEsModules:()=>Gq,computeCommonSourceDirectoryOfFilenames:()=>noe,computeLineAndCharacterOfPosition:()=>ww,computeLineOfPosition:()=>CP,computeLineStarts:()=>e2,computePositionOfLineAndCharacter:()=>YO,computeSignatureWithDiagnostics:()=>CV,computeSuggestionDiagnostics:()=>D$,computedOptions:()=>bA,concatenate:()=>Qi,concatenateDiagnosticMessageChains:()=>tne,consumesNodeCoreModules:()=>w5,contains:()=>ws,containsIgnoredPath:()=>PA,containsObjectRestOrSpread:()=>T4,containsParseError:()=>l2,containsPath:()=>A_,convertCompilerOptionsForTelemetry:()=>wse,convertCompilerOptionsFromJson:()=>X1e,convertJsonOption:()=>Dk,convertToBase64:()=>Bre,convertToJson:()=>P4,convertToObject:()=>bse,convertToOptionsWithAbsolutePaths:()=>W7,convertToRelativePath:()=>kP,convertToTSConfig:()=>iU,convertTypeAcquisitionFromJson:()=>Y1e,copyComments:()=>jk,copyEntries:()=>TF,copyLeadingComments:()=>YI,copyProperties:()=>jW,copyTrailingAsLeadingComments:()=>xR,copyTrailingComments:()=>RE,couldStartTrivia:()=>vee,countWhere:()=>Jy,createAbstractBuilder:()=>ike,createAccessorPropertyBackingField:()=>zJ,createAccessorPropertyGetRedirector:()=>Kie,createAccessorPropertySetRedirector:()=>Xie,createBaseNodeFactory:()=>Gne,createBinaryExpressionTrampoline:()=>w7,createBuilderProgram:()=>wV,createBuilderProgramUsingIncrementalBuildInfo:()=>Ioe,createBuilderStatusReporter:()=>Wj,createCacheableExportInfoMap:()=>h$,createCachedDirectoryStructureHost:()=>mj,createClassifier:()=>Rxe,createCommentDirectivesMap:()=>Ite,createCompilerDiagnostic:()=>fc,createCompilerDiagnosticForInvalidCustomType:()=>fse,createCompilerDiagnosticFromMessageChain:()=>C8,createCompilerHost:()=>ioe,createCompilerHostFromProgramHost:()=>qV,createCompilerHostWorker:()=>yj,createDetachedDiagnostic:()=>C2,createDiagnosticCollection:()=>lA,createDiagnosticForFileFromMessageChain:()=>yz,createDiagnosticForNode:()=>_n,createDiagnosticForNodeArray:()=>Ww,createDiagnosticForNodeArrayFromMessageChain:()=>QM,createDiagnosticForNodeFromMessageChain:()=>uh,createDiagnosticForNodeInSourceFile:()=>N_,createDiagnosticForRange:()=>zte,createDiagnosticMessageChainFromDiagnostic:()=>Bte,createDiagnosticReporter:()=>aC,createDocumentPositionMapper:()=>pae,createDocumentRegistry:()=>ble,createDocumentRegistryInternal:()=>T$,createEmitAndSemanticDiagnosticsBuilderProgram:()=>AV,createEmitHelperFactory:()=>iie,createEmptyExports:()=>d4,createEvaluator:()=>Rne,createExpressionForJsxElement:()=>Oie,createExpressionForJsxFragment:()=>Fie,createExpressionForObjectLiteralElementLike:()=>jie,createExpressionForPropertyName:()=>NJ,createExpressionFromEntityName:()=>m4,createExternalHelpersImportDeclarationIfNeeded:()=>OJ,createFileDiagnostic:()=>wl,createFileDiagnosticFromMessageChain:()=>NF,createFlowNode:()=>Ng,createForOfBindingStatement:()=>EJ,createFutureSourceFile:()=>N5,createGetCanonicalFileName:()=>hu,createGetIsolatedDeclarationErrors:()=>Uae,createGetSourceFile:()=>pV,createGetSymbolAccessibilityDiagnosticForNode:()=>n1,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Jae,createGetSymbolWalker:()=>Xse,createIncrementalCompilerHost:()=>Lj,createIncrementalProgram:()=>Loe,createJsxFactoryExpression:()=>AJ,createLanguageService:()=>Kue,createLanguageServiceSourceFile:()=>X5,createMemberAccessForPropertyName:()=>wk,createModeAwareCache:()=>EI,createModeAwareCacheKey:()=>nE,createModeMismatchDetails:()=>rz,createModuleNotFoundChain:()=>xF,createModuleResolutionCache:()=>NI,createModuleResolutionLoader:()=>hV,createModuleResolutionLoaderUsingGlobalCache:()=>Ooe,createModuleSpecifierResolutionHost:()=>o1,createMultiMap:()=>od,createNameResolver:()=>$G,createNodeConverters:()=>Vne,createNodeFactory:()=>t4,createOptionNameMap:()=>M7,createOverload:()=>mQ,createPackageJsonImportFilter:()=>ZI,createPackageJsonInfo:()=>l$,createParenthesizerRules:()=>Jne,createPatternMatcher:()=>Cle,createPrinter:()=>jb,createPrinterWithDefaults:()=>Yae,createPrinterWithRemoveComments:()=>HS,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>Zae,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>sV,createProgram:()=>eR,createProgramDiagnostics:()=>foe,createProgramHost:()=>$V,createPropertyNameNodeForIdentifierOrLiteral:()=>Q6,createQueue:()=>pM,createRange:()=>O_,createRedirectedBuilderProgram:()=>PV,createResolutionCache:()=>MV,createRuntimeTypeSerializer:()=>wae,createScanner:()=>ih,createSemanticDiagnosticsBuilderProgram:()=>nke,createSet:()=>LW,createSolutionBuilder:()=>Joe,createSolutionBuilderHost:()=>zoe,createSolutionBuilderWithWatch:()=>Uoe,createSolutionBuilderWithWatchHost:()=>Goe,createSortedArray:()=>PW,createSourceFile:()=>X2,createSourceMapGenerator:()=>aae,createSourceMapSource:()=>b0e,createSuperAccessVariableStatement:()=>_j,createSymbolTable:()=>Qs,createSymlinkCache:()=>wG,createSyntacticTypeNodeBuilder:()=>cce,createSystemWatchFunctions:()=>pee,createTextChange:()=>hR,createTextChangeFromStartLength:()=>p5,createTextChangeRange:()=>IM,createTextRangeFromNode:()=>Wq,createTextRangeFromSpan:()=>u5,createTextSpan:()=>yu,createTextSpanFromBounds:()=>$c,createTextSpanFromNode:()=>Np,createTextSpanFromRange:()=>pv,createTextSpanFromStringLiteralLikeContent:()=>Lq,createTextWriter:()=>D6,createTokenRange:()=>pG,createTypeChecker:()=>iae,createTypeReferenceDirectiveResolutionCache:()=>Q7,createTypeReferenceResolutionLoader:()=>Sj,createWatchCompilerHost:()=>dke,createWatchCompilerHostOfConfigFile:()=>HV,createWatchCompilerHostOfFilesAndCompilerOptions:()=>QV,createWatchFactory:()=>VV,createWatchHost:()=>UV,createWatchProgram:()=>KV,createWatchStatusReporter:()=>RV,createWriteFileMeasuringIO:()=>fV,declarationNameToString:()=>To,decodeMappings:()=>LU,decodedTextSpanIntersectsWith:()=>wM,deduplicate:()=>oS,defaultHoverMaximumTruncationLength:()=>vte,defaultInitCompilerOptions:()=>h1e,defaultMaximumTruncationLength:()=>zP,diagnosticCategoryName:()=>zT,diagnosticToString:()=>ZS,diagnosticsEqualityComparer:()=>w8,directoryProbablyExists:()=>sm,directorySeparator:()=>Ro,displayPart:()=>pf,displayPartsToString:()=>jR,disposeEmitNodes:()=>iJ,documentSpansEqual:()=>Qq,dumpTracingLegend:()=>oZ,elementAt:()=>Kv,elideNodes:()=>Qie,emitDetachedComments:()=>Are,emitFiles:()=>nV,emitFilesAndReportErrors:()=>Rj,emitFilesAndReportErrorsAndGetExitStatus:()=>JV,emitModuleKindIsNonNodeESM:()=>G6,emitNewLineBeforeLeadingCommentOfPosition:()=>Pre,emitResolverSkipsTypeChecking:()=>rV,emitSkippedWithNoDiagnostics:()=>bV,emptyArray:()=>Ke,emptyFileSystemEntries:()=>RG,emptyMap:()=>Gl,emptyOptions:()=>vd,endsWith:()=>Bo,ensurePathIsNonModuleName:()=>GT,ensureScriptKind:()=>F8,ensureTrailingDirectorySeparator:()=>Ml,entityNameToString:()=>kf,enumerateInsertsAndDeletes:()=>LO,equalOwnProperties:()=>LY,equateStringsCaseInsensitive:()=>tb,equateStringsCaseSensitive:()=>uS,equateValues:()=>eb,escapeJsxAttributeString:()=>$z,escapeLeadingUnderscores:()=>gc,escapeNonAsciiString:()=>s8,escapeSnippetText:()=>RS,escapeString:()=>Dg,escapeTemplateSubstitution:()=>Vz,evaluatorResult:()=>Ol,every:()=>Fi,exclusivelyPrefixedNodeCoreModules:()=>X8,executeCommandLine:()=>$ke,expandPreOrPostfixIncrementOrDecrementExpression:()=>S7,explainFiles:()=>LV,explainIfFileIsRedirectAndImpliedFormat:()=>WV,exportAssignmentIsAlias:()=>S6,expressionResultIsUnused:()=>wne,extend:()=>FW,extensionFromPath:()=>xA,extensionIsTS:()=>z8,extensionsNotSupportingExtensionlessResolution:()=>B8,externalHelpersModuleNameText:()=>_b,factory:()=>A,fileExtensionIs:()=>uc,fileExtensionIsOneOf:()=>Bc,fileIncludeReasonToDiagnostics:()=>GV,fileShouldUseJavaScriptRequire:()=>g$,filter:()=>Mn,filterMutate:()=>xW,filterSemanticDiagnostics:()=>Cj,find:()=>Bn,findAncestor:()=>vr,findBestPatternMatch:()=>UW,findChildOfKind:()=>lo,findComputedPropertyNameCacheAssignment:()=>I7,findConfigFile:()=>lV,findConstructorDeclaration:()=>Z6,findContainingList:()=>n5,findDiagnosticForNode:()=>ple,findFirstNonJsxWhitespaceToken:()=>Rce,findIndex:()=>Tc,findLast:()=>aS,findLastIndex:()=>EO,findListItemInfo:()=>Mce,findModifier:()=>QI,findNextToken:()=>YS,findPackageJson:()=>ule,findPackageJsons:()=>c$,findPrecedingMatchingToken:()=>c5,findPrecedingToken:()=>Al,findSuperStatementIndexPath:()=>oj,findTokenOnLeftOfPosition:()=>IE,findUseStrictPrologue:()=>RJ,first:()=>Ra,firstDefined:()=>fo,firstDefinedIterator:()=>Em,firstIterator:()=>NW,firstOrOnly:()=>f$,firstOrUndefined:()=>_l,firstOrUndefinedIterator:()=>MO,fixupCompilerOptions:()=>N$,flatMap:()=>Ma,flatMapIterator:()=>CW,flatMapToMutable:()=>uP,flatten:()=>ad,flattenCommaList:()=>Yie,flattenDestructuringAssignment:()=>Nk,flattenDestructuringBinding:()=>$S,flattenDiagnosticMessageText:()=>tg,forEach:()=>or,forEachAncestor:()=>Tte,forEachAncestorDirectory:()=>xP,forEachAncestorDirectoryStoppingAtGlobalCache:()=>Eg,forEachChild:()=>Ms,forEachChildRecursively:()=>K2,forEachDynamicImportOrRequireCall:()=>Y8,forEachEmittedFile:()=>YU,forEachEnclosingBlockScopeContainer:()=>jte,forEachEntry:()=>Rl,forEachExternalModuleToImportFrom:()=>v$,forEachImportClauseDeclaration:()=>ure,forEachKey:()=>ch,forEachLeadingCommentRange:()=>bM,forEachNameInAccessChainWalkingLeft:()=>Kre,forEachNameOfDefaultExport:()=>R5,forEachOptionsSyntaxByName:()=>ZG,forEachProjectReference:()=>RA,forEachPropertyAssignment:()=>Gw,forEachResolvedProjectReference:()=>XG,forEachReturnStatement:()=>hb,forEachRight:()=>Zg,forEachTrailingCommentRange:()=>SM,forEachTsConfigPropArray:()=>e6,forEachUnique:()=>Xq,forEachYieldExpression:()=>Vte,formatColorAndReset:()=>QS,formatDiagnostic:()=>_V,formatDiagnostics:()=>ETe,formatDiagnosticsWithColorAndContext:()=>coe,formatGeneratedName:()=>Y0,formatGeneratedNamePart:()=>II,formatLocation:()=>dV,formatMessage:()=>I2,formatStringFromArgs:()=>mh,formatting:()=>vl,generateDjb2Hash:()=>SP,generateTSConfig:()=>Sse,getAdjustedReferenceLocation:()=>Aq,getAdjustedRenameLocation:()=>s5,getAliasDeclarationFromName:()=>Oz,getAllAccessorDeclarations:()=>PS,getAllDecoratorsOfClass:()=>JU,getAllDecoratorsOfClassElement:()=>lj,getAllJSDocTags:()=>sF,getAllJSDocTagsOfKind:()=>kbe,getAllKeys:()=>wve,getAllProjectOutputs:()=>dj,getAllSuperTypeNodes:()=>nA,getAllowImportingTsExtensions:()=>nne,getAllowJSCompilerOption:()=>xb,getAllowSyntheticDefaultImports:()=>D2,getAncestor:()=>j0,getAnyExtensionFromPath:()=>Xx,getAreDeclarationMapsEnabled:()=>I8,getAssignedExpandoInitializer:()=>f2,getAssignedName:()=>rF,getAssignmentDeclarationKind:()=>Hc,getAssignmentDeclarationPropertyAccessKind:()=>f6,getAssignmentTargetKind:()=>yb,getAutomaticTypeDirectiveNames:()=>$7,getBaseFileName:()=>dl,getBinaryOperatorPrecedence:()=>C6,getBuildInfo:()=>iV,getBuildInfoFileVersionMap:()=>DV,getBuildInfoText:()=>Kae,getBuildOrderFromAnyBuildOrder:()=>sR,getBuilderCreationParameters:()=>Pj,getBuilderFileEmit:()=>Lb,getCanonicalDiagnostic:()=>Gte,getCheckFlags:()=>Cc,getClassExtendsHeritageElement:()=>CS,getClassLikeDeclarationOfSymbol:()=>iy,getCombinedLocalAndExportSymbolFlags:()=>rI,getCombinedModifierFlags:()=>I0,getCombinedNodeFlags:()=>Kh,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>AB,getCommentRange:()=>$m,getCommonSourceDirectory:()=>hE,getCommonSourceDirectoryOfConfig:()=>Mk,getCompilerOptionValue:()=>A8,getConditions:()=>Rb,getConfigFileParsingDiagnostics:()=>KS,getConstantValue:()=>Kne,getContainerFlags:()=>kU,getContainerNode:()=>Fk,getContainingClass:()=>cu,getContainingClassExcludingClassDecorators:()=>BF,getContainingClassStaticBlock:()=>Zte,getContainingFunction:()=>i_,getContainingFunctionDeclaration:()=>Yte,getContainingFunctionOrClassStaticBlock:()=>WF,getContainingNodeArray:()=>Ine,getContainingObjectLiteralElement:()=>LR,getContextualTypeFromParent:()=>b5,getContextualTypeFromParentOrAncestorTypeNode:()=>i5,getDeclarationDiagnostics:()=>Vae,getDeclarationEmitExtensionForPath:()=>c8,getDeclarationEmitOutputFilePath:()=>Cre,getDeclarationEmitOutputFilePathWorker:()=>o8,getDeclarationFileExtension:()=>P7,getDeclarationFromName:()=>rA,getDeclarationModifierFlagsFromSymbol:()=>j_,getDeclarationOfKind:()=>$o,getDeclarationsOfKind:()=>bte,getDeclaredExpandoInitializer:()=>YP,getDecorators:()=>ab,getDefaultCompilerOptions:()=>K5,getDefaultFormatCodeSettings:()=>Hj,getDefaultLibFileName:()=>kM,getDefaultLibFilePath:()=>Xue,getDefaultLikeExportInfo:()=>M5,getDefaultLikeExportNameFromDeclaration:()=>_$,getDefaultResolutionModeForFileWorker:()=>xj,getDiagnosticText:()=>Qp,getDiagnosticsWithinSpan:()=>fle,getDirectoryPath:()=>ti,getDirectoryToWatchFailedLookupLocation:()=>NV,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>Moe,getDocumentPositionMapper:()=>I$,getDocumentSpansEqualityComparer:()=>Kq,getESModuleInterop:()=>Vm,getEditsForFileRename:()=>Tle,getEffectiveBaseTypeNode:()=>im,getEffectiveConstraintOfTypeParameter:()=>Aw,getEffectiveContainerForJSDocTemplateTag:()=>YF,getEffectiveImplementsTypeNodes:()=>Qw,getEffectiveInitializer:()=>l6,getEffectiveJSDocHost:()=>F0,getEffectiveModifierFlags:()=>Mu,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Rre,getEffectiveModifierFlagsNoCache:()=>Ore,getEffectiveReturnTypeNode:()=>wf,getEffectiveSetAccessorTypeAnnotationNode:()=>tG,getEffectiveTypeAnnotationNode:()=>ml,getEffectiveTypeParameterDeclarations:()=>ob,getEffectiveTypeRoots:()=>rE,getElementOrPropertyAccessArgumentExpressionOrName:()=>XF,getElementOrPropertyAccessName:()=>Zh,getElementsOfBindingOrAssignmentPattern:()=>wI,getEmitDeclarations:()=>lf,getEmitFlags:()=>Oa,getEmitHelpers:()=>sJ,getEmitModuleDetectionKind:()=>ine,getEmitModuleFormatOfFileWorker:()=>SE,getEmitModuleKind:()=>_p,getEmitModuleResolutionKind:()=>Ku,getEmitScriptTarget:()=>xa,getEmitStandardClassFields:()=>xG,getEnclosingBlockScopeContainer:()=>nm,getEnclosingContainer:()=>EF,getEncodedSemanticClassifications:()=>b$,getEncodedSyntacticClassifications:()=>S$,getEndLinePosition:()=>UM,getEntityNameFromTypeNode:()=>n6,getEntrypointsFromPackageJsonInfo:()=>yU,getErrorCountForSummary:()=>Nj,getErrorSpanForNode:()=>ZT,getErrorSummaryText:()=>FV,getEscapedTextOfIdentifierOrLiteral:()=>aA,getEscapedTextOfJsxAttributeName:()=>NA,getEscapedTextOfJsxNamespacedName:()=>N2,getExpandoInitializer:()=>R0,getExportAssignmentExpression:()=>Fz,getExportInfoMap:()=>AR,getExportNeedsImportStarHelper:()=>fae,getExpressionAssociativity:()=>Jz,getExpressionPrecedence:()=>cA,getExternalHelpersModuleName:()=>h4,getExternalModuleImportEqualsDeclarationExpression:()=>QP,getExternalModuleName:()=>d2,getExternalModuleNameFromDeclaration:()=>kre,getExternalModuleNameFromPath:()=>Kz,getExternalModuleNameLiteral:()=>Q2,getExternalModuleRequireArgument:()=>Cz,getFallbackOptions:()=>X4,getFileEmitOutput:()=>_oe,getFileMatcherPatterns:()=>O8,getFileNamesFromConfigSpecs:()=>eE,getFileWatcherEventKind:()=>gB,getFilesInErrorForSummary:()=>Mj,getFirstConstructorWithBody:()=>_h,getFirstIdentifier:()=>wp,getFirstNonSpaceCharacterPosition:()=>ile,getFirstProjectOutput:()=>tV,getFixableErrorSpanExpression:()=>u$,getFormatCodeSettingsForWriting:()=>A5,getFullWidth:()=>GM,getFunctionFlags:()=>Yc,getHeritageClause:()=>T6,getHostSignatureFromJSDoc:()=>O0,getIdentifierAutoGenerate:()=>k0e,getIdentifierGeneratedImportReference:()=>rie,getIdentifierTypeArguments:()=>dk,getImmediatelyInvokedFunctionExpression:()=>N0,getImpliedNodeFormatForEmitWorker:()=>Rk,getImpliedNodeFormatForFile:()=>Z4,getImpliedNodeFormatForFileWorker:()=>kj,getImportNeedsImportDefaultHelper:()=>BU,getImportNeedsImportStarHelper:()=>sj,getIndentString:()=>a8,getInferredLibraryNameResolveFrom:()=>Tj,getInitializedVariables:()=>gA,getInitializerOfBinaryExpression:()=>Pz,getInitializerOfBindingOrAssignmentElement:()=>v4,getInterfaceBaseTypeNodes:()=>iA,getInternalEmitFlags:()=>Rd,getInvokedExpression:()=>JF,getIsFileExcluded:()=>hle,getIsolatedModules:()=>md,getJSDocAugmentsTag:()=>Jee,getJSDocClassTag:()=>MB,getJSDocCommentRanges:()=>bz,getJSDocCommentsAndTags:()=>Az,getJSDocDeprecatedTag:()=>RB,getJSDocDeprecatedTagNoCache:()=>Kee,getJSDocEnumTag:()=>OB,getJSDocHost:()=>kS,getJSDocImplementsTags:()=>Uee,getJSDocOverloadTags:()=>Nz,getJSDocOverrideTagNoCache:()=>Qee,getJSDocParameterTags:()=>Pw,getJSDocParameterTagsNoCache:()=>Wee,getJSDocPrivateTag:()=>vbe,getJSDocPrivateTagNoCache:()=>qee,getJSDocProtectedTag:()=>bbe,getJSDocProtectedTagNoCache:()=>$ee,getJSDocPublicTag:()=>ybe,getJSDocPublicTagNoCache:()=>Vee,getJSDocReadonlyTag:()=>Sbe,getJSDocReadonlyTagNoCache:()=>Hee,getJSDocReturnTag:()=>Xee,getJSDocReturnType:()=>PM,getJSDocRoot:()=>Hw,getJSDocSatisfiesExpressionType:()=>UG,getJSDocSatisfiesTag:()=>FB,getJSDocTags:()=>P0,getJSDocTemplateTag:()=>Tbe,getJSDocThisTag:()=>nF,getJSDocType:()=>qy,getJSDocTypeAliasName:()=>jJ,getJSDocTypeAssertionType:()=>xI,getJSDocTypeParameterDeclarations:()=>_8,getJSDocTypeParameterTags:()=>Bee,getJSDocTypeParameterTagsNoCache:()=>zee,getJSDocTypeTag:()=>D0,getJSXImplicitImportBase:()=>J6,getJSXRuntimeImport:()=>N8,getJSXTransformEnabled:()=>E8,getKeyForCompilerOptions:()=>_U,getLanguageVariant:()=>j6,getLastChild:()=>hG,getLeadingCommentRanges:()=>nh,getLeadingCommentRangesOfNode:()=>vz,getLeftmostAccessExpression:()=>nI,getLeftmostExpression:()=>iI,getLibFileNameFromLibReference:()=>KG,getLibNameFromLibReference:()=>QG,getLibraryNameFromLibFileName:()=>yV,getLineAndCharacterOfPosition:()=>Hs,getLineInfo:()=>jU,getLineOfLocalPosition:()=>uA,getLineStartPositionForPosition:()=>bd,getLineStarts:()=>th,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>$re,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>qre,getLinesBetweenPositions:()=>wP,getLinesBetweenRangeEndAndRangeStart:()=>fG,getLinesBetweenRangeEndPositions:()=>Ybe,getLiteralText:()=>Ate,getLocalNameForExternalImport:()=>CI,getLocalSymbolForExportDefault:()=>dA,getLocaleSpecificMessage:()=>Es,getLocaleTimeString:()=>iR,getMappedContextSpan:()=>Yq,getMappedDocumentSpan:()=>h5,getMappedLocation:()=>EE,getMatchedFileSpec:()=>BV,getMatchedIncludeSpec:()=>zV,getMeaningFromDeclaration:()=>Kj,getMeaningFromLocation:()=>Ok,getMembersOfDeclaration:()=>qte,getModeForFileReference:()=>loe,getModeForResolutionAtIndex:()=>jTe,getModeForUsageLocation:()=>gV,getModifiedTime:()=>Kx,getModifiers:()=>fS,getModuleInstanceState:()=>ly,getModuleNameStringLiteralAt:()=>tR,getModuleSpecifierEndingPreference:()=>hne,getModuleSpecifierResolverHost:()=>Jq,getNameForExportedSymbol:()=>I5,getNameFromImportAttribute:()=>H8,getNameFromIndexInfo:()=>Lte,getNameFromPropertyName:()=>vR,getNameOfAccessExpression:()=>vG,getNameOfCompilerOptionValue:()=>L7,getNameOfDeclaration:()=>Ss,getNameOfExpando:()=>wz,getNameOfJSDocTypedef:()=>Lee,getNameOfScriptTarget:()=>P8,getNameOrArgument:()=>p6,getNameTable:()=>nH,getNamespaceDeclarationNode:()=>qw,getNewLineCharacter:()=>Zy,getNewLineKind:()=>PR,getNewLineOrDefaultFromHost:()=>py,getNewTargetContainer:()=>tre,getNextJSDocCommentLocation:()=>Ez,getNodeChildren:()=>DJ,getNodeForGeneratedName:()=>S4,getNodeId:()=>qa,getNodeKind:()=>XS,getNodeModifiers:()=>DE,getNodeModulePathParts:()=>V8,getNonAssignedNameOfDeclaration:()=>tF,getNonAssignmentOperatorForCompoundAssignment:()=>uE,getNonAugmentationDeclaration:()=>fz,getNonDecoratorTokenPosOfNode:()=>az,getNonIncrementalBuildInfoRoots:()=>Doe,getNonModifierTokenPosOfNode:()=>Dte,getNormalizedAbsolutePath:()=>as,getNormalizedAbsolutePathWithoutRoot:()=>bB,getNormalizedPathComponents:()=>$O,getObjectFlags:()=>jn,getOperatorAssociativity:()=>Uz,getOperatorPrecedence:()=>x6,getOptionFromName:()=>ZJ,getOptionsForLibraryResolution:()=>dU,getOptionsNameMap:()=>PI,getOptionsSyntaxByArrayElementValue:()=>YG,getOptionsSyntaxByValue:()=>Wne,getOrCreateEmitNode:()=>Ou,getOrUpdate:()=>pP,getOriginalNode:()=>sc,getOriginalNodeId:()=>Ep,getOutputDeclarationFileName:()=>gE,getOutputDeclarationFileNameWorker:()=>ZU,getOutputExtension:()=>H4,getOutputFileNames:()=>PTe,getOutputJSFileNameWorker:()=>eV,getOutputPathsFor:()=>mE,getOwnEmitOutputFilePath:()=>xre,getOwnKeys:()=>Nm,getOwnValues:()=>qx,getPackageJsonTypesVersionsPaths:()=>q7,getPackageNameFromTypesPackageName:()=>aE,getPackageScopeForPath:()=>sE,getParameterSymbolFromJSDoc:()=>y6,getParentNodeInSpan:()=>SR,getParseTreeNode:()=>As,getParsedCommandLineOfConfigFile:()=>I4,getPathComponents:()=>Nu,getPathFromPathComponents:()=>w0,getPathUpdater:()=>x$,getPathsBasePath:()=>l8,getPatternFromSpec:()=>PG,getPendingEmitKindWithSeen:()=>Dj,getPositionOfLineAndCharacter:()=>yM,getPossibleGenericSignatures:()=>Nq,getPossibleOriginalInputExtensionForExtension:()=>Xz,getPossibleOriginalInputPathWithoutChangingExt:()=>Yz,getPossibleTypeArgumentsInfo:()=>Mq,getPreEmitDiagnostics:()=>ATe,getPrecedingNonSpaceCharacterPosition:()=>y5,getPrivateIdentifier:()=>UU,getProperties:()=>GU,getProperty:()=>lM,getPropertyAssignmentAliasLikeExpression:()=>hre,getPropertyNameForPropertyNameNode:()=>ok,getPropertyNameFromType:()=>W_,getPropertyNameOfBindingOrAssignmentElement:()=>FJ,getPropertySymbolFromBindingElement:()=>g5,getPropertySymbolsFromContextualType:()=>Y5,getQuoteFromPreference:()=>Vq,getQuotePreference:()=>Mf,getRangesWhere:()=>DW,getRefactorContextSpan:()=>uC,getReferencedFileLocation:()=>bE,getRegexFromPattern:()=>ev,getRegularExpressionForWildcard:()=>SA,getRegularExpressionsForWildcards:()=>M8,getRelativePathFromDirectory:()=>n_,getRelativePathFromFile:()=>Cw,getRelativePathToDirectoryOrUrl:()=>Zx,getRenameLocation:()=>kR,getReplacementSpanForContextToken:()=>jq,getResolutionDiagnostic:()=>TV,getResolutionModeOverride:()=>LI,getResolveJsonModule:()=>ES,getResolvePackageJsonExports:()=>W6,getResolvePackageJsonImports:()=>B6,getResolvedExternalModuleName:()=>Qz,getResolvedModuleFromResolution:()=>c2,getResolvedTypeReferenceDirectiveFromResolution:()=>kF,getRestIndicatorOfBindingOrAssignmentElement:()=>x7,getRestParameterElementType:()=>Sz,getRightMostAssignedExpression:()=>u6,getRootDeclaration:()=>zm,getRootDirectoryOfResolutionCache:()=>Roe,getRootLength:()=>em,getScriptKind:()=>r$,getScriptKindFromFileName:()=>j8,getScriptTargetFeatures:()=>oz,getSelectedEffectiveModifierFlags:()=>b2,getSelectedSyntacticModifierFlags:()=>Nre,getSemanticClassifications:()=>yle,getSemanticJsxChildren:()=>Xw,getSetAccessorTypeAnnotationNode:()=>Ire,getSetAccessorValueParameter:()=>pA,getSetExternalModuleIndicator:()=>L6,getShebang:()=>ZO,getSingleVariableOfVariableStatement:()=>h2,getSnapshotText:()=>lC,getSnippetElement:()=>aJ,getSourceFileOfModule:()=>JM,getSourceFileOfNode:()=>Nr,getSourceFilePathInNewDir:()=>p8,getSourceFileVersionAsHashFromText:()=>Oj,getSourceFilesToEmit:()=>u8,getSourceMapRange:()=>nv,getSourceMapper:()=>Rle,getSourceTextOfNodeFromSourceFile:()=>hS,getSpanOfTokenAtPosition:()=>jm,getSpellingSuggestion:()=>pS,getStartPositionOfLine:()=>db,getStartPositionOfRange:()=>mA,getStartsOnNewLine:()=>OA,getStaticPropertiesAndClassStaticBlock:()=>cj,getStrictOptionValue:()=>Ru,getStringComparer:()=>bw,getSubPatternFromSpec:()=>R8,getSuperCallFromStatement:()=>aj,getSuperContainer:()=>t6,getSupportedCodeFixes:()=>tH,getSupportedExtensions:()=>TA,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>V6,getSwitchedType:()=>s$,getSymbolId:()=>sa,getSymbolNameForPrivateIdentifier:()=>k6,getSymbolTarget:()=>n$,getSyntacticClassifications:()=>vle,getSyntacticModifierFlags:()=>Xy,getSyntacticModifierFlagsNoCache:()=>iG,getSynthesizedDeepClone:()=>to,getSynthesizedDeepCloneWithReplacements:()=>e4,getSynthesizedDeepClones:()=>OS,getSynthesizedDeepClonesWithReplacements:()=>eJ,getSyntheticLeadingComments:()=>uI,getSyntheticTrailingComments:()=>s4,getTargetLabel:()=>Zj,getTargetOfBindingOrAssignmentElement:()=>Nb,getTemporaryModuleResolutionState:()=>iE,getTextOfConstantValue:()=>Ete,getTextOfIdentifierOrLiteral:()=>R_,getTextOfJSDocComment:()=>AM,getTextOfJsxAttributeName:()=>Y6,getTextOfJsxNamespacedName:()=>MA,getTextOfNode:()=>pc,getTextOfNodeFromSourceText:()=>JP,getTextOfPropertyName:()=>p2,getThisContainer:()=>fp,getThisParameter:()=>IS,getTokenAtPosition:()=>Ii,getTokenPosOfNode:()=>mb,getTokenSourceMapRange:()=>S0e,getTouchingPropertyName:()=>Kp,getTouchingToken:()=>$I,getTrailingCommentRanges:()=>sb,getTrailingSemicolonDeferringWriter:()=>Hz,getTransformers:()=>$ae,getTsBuildInfoEmitOutputFilePath:()=>i1,getTsConfigObjectLiteralExpression:()=>$P,getTsConfigPropArrayElementValue:()=>LF,getTypeAnnotationNode:()=>Dre,getTypeArgumentOrTypeParameterList:()=>zce,getTypeKeywordOfTypeOnlyImport:()=>Hq,getTypeNode:()=>eie,getTypeNodeIfAccessible:()=>FE,getTypeParameterFromJsDoc:()=>pre,getTypeParameterOwner:()=>dbe,getTypesPackageName:()=>Z7,getUILocale:()=>JY,getUniqueName:()=>Lk,getUniqueSymbolId:()=>nle,getUseDefineForClassFields:()=>z6,getWatchErrorSummaryDiagnosticMessage:()=>OV,getWatchFactory:()=>cV,group:()=>vw,groupBy:()=>OW,guessIndentation:()=>hte,handleNoEmitOptions:()=>SV,handleWatchOptionsConfigDirTemplateSubstitution:()=>B7,hasAbstractModifier:()=>AS,hasAccessorModifier:()=>Gm,hasAmbientModifier:()=>nG,hasChangesInResolutions:()=>nz,hasContextSensitiveParameters:()=>U8,hasDecorators:()=>a_,hasDocComment:()=>Wce,hasDynamicName:()=>ey,hasEffectiveModifier:()=>If,hasEffectiveModifiers:()=>rG,hasEffectiveReadonlyModifier:()=>lk,hasExtension:()=>xw,hasImplementationTSFileExtension:()=>mne,hasIndexSignature:()=>i$,hasInferredType:()=>K8,hasInitializer:()=>Hy,hasInvalidEscape:()=>qz,hasJSDocNodes:()=>Hf,hasJSDocParameterTags:()=>Gee,hasJSFileExtension:()=>gh,hasJsonModuleEmitEnabled:()=>D8,hasOnlyExpressionInitializer:()=>XT,hasOverrideModifier:()=>d8,hasPossibleExternalModuleReference:()=>Fte,hasProperty:()=>_o,hasPropertyAccessExpressionWithName:()=>pR,hasQuestionToken:()=>m2,hasRecordedExternalHelpers:()=>Bie,hasResolutionModeOverride:()=>Nne,hasRestParameter:()=>YB,hasScopeMarker:()=>cte,hasStaticModifier:()=>Cl,hasSyntacticModifier:()=>ri,hasSyntacticModifiers:()=>Ere,hasTSFileExtension:()=>pk,hasTabstop:()=>Pne,hasTrailingDirectorySeparator:()=>nb,hasType:()=>yF,hasTypeArguments:()=>Gbe,hasZeroOrOneAsteriskCharacter:()=>CG,hostGetCanonicalFileName:()=>ty,hostUsesCaseSensitiveFileNames:()=>ck,idText:()=>Fn,identifierIsThisKeyword:()=>eG,identifierToKeywordKind:()=>VT,identity:()=>Do,identitySourceMapConsumer:()=>WU,ignoreSourceNewlines:()=>cJ,ignoredPaths:()=>UO,importFromModuleSpecifier:()=>eA,importSyntaxAffectsModuleResolution:()=>kG,indexOfAnyCharCode:()=>EY,indexOfNode:()=>jw,indicesOf:()=>NO,inferredTypesContainingFile:()=>vE,injectClassNamedEvaluationHelperBlockIfMissing:()=>fj,injectClassThisAssignmentIfMissing:()=>bae,insertImports:()=>$q,insertSorted:()=>Qv,insertStatementAfterCustomPrologue:()=>YT,insertStatementAfterStandardPrologue:()=>Obe,insertStatementsAfterCustomPrologue:()=>iz,insertStatementsAfterStandardPrologue:()=>lh,intersperse:()=>oM,intrinsicTagNameToString:()=>VG,introducesArgumentsExoticObject:()=>Qte,inverseJsxOptionMap:()=>C4,isAbstractConstructorSymbol:()=>Hre,isAbstractModifier:()=>fie,isAccessExpression:()=>Oo,isAccessibilityModifier:()=>Oq,isAccessor:()=>pb,isAccessorModifier:()=>dJ,isAliasableExpression:()=>ZF,isAmbientModule:()=>pp,isAmbientPropertyDeclaration:()=>dz,isAnyDirectorySeparator:()=>hB,isAnyImportOrBareOrAccessedRequire:()=>Rte,isAnyImportOrReExport:()=>$M,isAnyImportOrRequireStatement:()=>Ote,isAnyImportSyntax:()=>u2,isAnySupportedFileExtension:()=>f0e,isApplicableVersionedTypesKey:()=>O4,isArgumentExpressionOfElementAccess:()=>xq,isArray:()=>gs,isArrayBindingElement:()=>fF,isArrayBindingOrAssignmentElement:()=>FM,isArrayBindingOrAssignmentPattern:()=>qB,isArrayBindingPattern:()=>ov,isArrayLiteralExpression:()=>Tu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>uv,isArrayTypeNode:()=>l4,isArrowFunction:()=>Fo,isAsExpression:()=>mI,isAssertClause:()=>bie,isAssertEntry:()=>N0e,isAssertionExpression:()=>gS,isAssertsKeyword:()=>uie,isAssignmentDeclaration:()=>XP,isAssignmentExpression:()=>Hl,isAssignmentOperator:()=>ry,isAssignmentPattern:()=>WP,isAssignmentTarget:()=>vb,isAsteriskToken:()=>o4,isAsyncFunction:()=>sA,isAsyncModifier:()=>LA,isAutoAccessorPropertyDeclaration:()=>Gp,isAwaitExpression:()=>Ab,isAwaitKeyword:()=>_J,isBigIntLiteral:()=>pI,isBinaryExpression:()=>vn,isBinaryLogicalOperator:()=>P6,isBinaryOperatorToken:()=>Hie,isBindableObjectDefinePropertyCall:()=>nk,isBindableStaticAccessExpression:()=>TS,isBindableStaticElementAccessExpression:()=>KF,isBindableStaticNameExpression:()=>ik,isBindingElement:()=>Da,isBindingElementOfBareOrAccessedRequire:()=>ire,isBindingName:()=>QT,isBindingOrAssignmentElement:()=>ite,isBindingOrAssignmentPattern:()=>RM,isBindingPattern:()=>Ls,isBlock:()=>Bs,isBlockLike:()=>pC,isBlockOrCatchScoped:()=>cz,isBlockScope:()=>mz,isBlockScopedContainerTopLevel:()=>Mte,isBooleanLiteral:()=>LP,isBreakOrContinueStatement:()=>RP,isBreakStatement:()=>P0e,isBuildCommand:()=>rce,isBuildInfoFile:()=>Hae,isBuilderProgram:()=>jV,isBundle:()=>xie,isCallChain:()=>qT,isCallExpression:()=>Ws,isCallExpressionTarget:()=>yq,isCallLikeExpression:()=>mS,isCallLikeOrFunctionLikeExpression:()=>$B,isCallOrNewExpression:()=>Om,isCallOrNewExpressionTarget:()=>vq,isCallSignatureDeclaration:()=>B2,isCallToHelper:()=>jA,isCaseBlock:()=>VA,isCaseClause:()=>vI,isCaseKeyword:()=>die,isCaseOrDefaultClause:()=>gF,isCatchClause:()=>GS,isCatchClauseVariableDeclaration:()=>Dne,isCatchClauseVariableDeclarationOrBindingElement:()=>lz,isCheckJsEnabledForFile:()=>CA,isCircularBuildOrder:()=>oC,isClassDeclaration:()=>hl,isClassElement:()=>cl,isClassExpression:()=>Zc,isClassInstanceProperty:()=>rte,isClassLike:()=>ni,isClassMemberModifier:()=>JB,isClassNamedEvaluationHelperBlock:()=>iC,isClassOrTypeElement:()=>pF,isClassStaticBlockDeclaration:()=>zc,isClassThisAssignmentBlock:()=>fE,isColonToken:()=>cie,isCommaExpression:()=>g4,isCommaListExpression:()=>JA,isCommaSequence:()=>KA,isCommaToken:()=>oie,isComment:()=>l5,isCommonJsExportPropertyAssignment:()=>FF,isCommonJsExportedExpression:()=>$te,isCompoundAssignment:()=>lE,isComputedNonLiteralName:()=>HM,isComputedPropertyName:()=>na,isConciseBody:()=>dF,isConditionalExpression:()=>vk,isConditionalTypeNode:()=>jS,isConstAssertion:()=>qG,isConstTypeReference:()=>Nd,isConstructSignatureDeclaration:()=>zA,isConstructorDeclaration:()=>yc,isConstructorTypeNode:()=>fI,isContextualKeyword:()=>t8,isContinueStatement:()=>D0e,isCustomPrologue:()=>ZM,isDebuggerStatement:()=>A0e,isDeclaration:()=>ql,isDeclarationBindingElement:()=>MM,isDeclarationFileName:()=>Kl,isDeclarationName:()=>Ig,isDeclarationNameOfEnumOrNamespace:()=>dG,isDeclarationReadonly:()=>KM,isDeclarationStatement:()=>fte,isDeclarationWithTypeParameterChildren:()=>hz,isDeclarationWithTypeParameters:()=>gz,isDecorator:()=>Il,isDecoratorTarget:()=>Dce,isDefaultClause:()=>qA,isDefaultImport:()=>sk,isDefaultModifier:()=>c7,isDefaultedExpandoInitializer:()=>sre,isDeleteExpression:()=>gie,isDeleteTarget:()=>Rz,isDeprecatedDeclaration:()=>D5,isDestructuringAssignment:()=>Yy,isDiskPathRoot:()=>yB,isDoStatement:()=>I0e,isDocumentRegistryEntry:()=>ER,isDotDotDotToken:()=>a7,isDottedName:()=>E6,isDynamicName:()=>n8,isEffectiveExternalModule:()=>Lw,isEffectiveStrictModeSourceFile:()=>_z,isElementAccessChain:()=>jB,isElementAccessExpression:()=>xo,isEmittedFileOfProgram:()=>toe,isEmptyArrayLiteral:()=>Wre,isEmptyBindingElement:()=>Oee,isEmptyBindingPattern:()=>Ree,isEmptyObjectLiteral:()=>lG,isEmptyStatement:()=>hJ,isEmptyStringLiteral:()=>xz,isEntityName:()=>xp,isEntityNameExpression:()=>mo,isEnumConst:()=>E0,isEnumDeclaration:()=>H0,isEnumMember:()=>oy,isEqualityOperatorKind:()=>S5,isEqualsGreaterThanToken:()=>lie,isExclamationToken:()=>c4,isExcludedFile:()=>kse,isExclusivelyTypeOnlyImportOrExport:()=>mV,isExpandoPropertyDeclaration:()=>M2,isExportAssignment:()=>Qo,isExportDeclaration:()=>tl,isExportModifier:()=>L2,isExportName:()=>T7,isExportNamespaceAsDefaultDeclaration:()=>DF,isExportOrDefaultModifier:()=>b4,isExportSpecifier:()=>Xu,isExportsIdentifier:()=>rk,isExportsOrModuleExportsOrAlias:()=>VS,isExpression:()=>ht,isExpressionNode:()=>wg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>Ece,isExpressionOfOptionalChainRoot:()=>oF,isExpressionStatement:()=>Ql,isExpressionWithTypeArguments:()=>sy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>g8,isExternalModule:()=>Pl,isExternalModuleAugmentation:()=>vS,isExternalModuleImportEqualsDeclaration:()=>M0,isExternalModuleIndicator:()=>LM,isExternalModuleNameRelative:()=>Ul,isExternalModuleReference:()=>ay,isExternalModuleSymbol:()=>a2,isExternalOrCommonJsModule:()=>xf,isFileLevelReservedGeneratedIdentifier:()=>NM,isFileLevelUniqueName:()=>wF,isFileProbablyExternalModule:()=>k4,isFirstDeclarationOfSymbolParameter:()=>Zq,isFixablePromiseHandler:()=>A$,isForInOrOfStatement:()=>KT,isForInStatement:()=>_7,isForInitializer:()=>E_,isForOfStatement:()=>p4,isForStatement:()=>$0,isFullSourceFile:()=>ph,isFunctionBlock:()=>bS,isFunctionBody:()=>QB,isFunctionDeclaration:()=>Gc,isFunctionExpression:()=>Ao,isFunctionExpressionOrArrowFunction:()=>Cb,isFunctionLike:()=>Fs,isFunctionLikeDeclaration:()=>yo,isFunctionLikeKind:()=>r2,isFunctionLikeOrClassStaticBlockDeclaration:()=>Mw,isFunctionOrConstructorTypeNode:()=>nte,isFunctionOrModuleBlock:()=>UB,isFunctionSymbol:()=>cre,isFunctionTypeNode:()=>Pg,isGeneratedIdentifier:()=>ec,isGeneratedPrivateIdentifier:()=>HT,isGetAccessor:()=>ah,isGetAccessorDeclaration:()=>B_,isGetOrSetAccessorDeclaration:()=>EM,isGlobalScopeAugmentation:()=>Cg,isGlobalSourceFile:()=>Qy,isGrammarError:()=>wte,isHeritageClause:()=>Af,isHoistedFunction:()=>RF,isHoistedVariableStatement:()=>OF,isIdentifier:()=>Be,isIdentifierANonContextualKeyword:()=>Wz,isIdentifierName:()=>gre,isIdentifierOrThisTypeNode:()=>Uie,isIdentifierPart:()=>Qh,isIdentifierStart:()=>Sg,isIdentifierText:()=>af,isIdentifierTypePredicate:()=>Kte,isIdentifierTypeReference:()=>kne,isIfStatement:()=>q0,isIgnoredFileFromWildCardWatching:()=>K4,isImplicitGlob:()=>DG,isImportAttribute:()=>Sie,isImportAttributeName:()=>tte,isImportAttributes:()=>Tk,isImportCall:()=>Up,isImportClause:()=>Ld,isImportDeclaration:()=>ac,isImportEqualsDeclaration:()=>Dl,isImportKeyword:()=>BA,isImportMeta:()=>zw,isImportOrExportSpecifier:()=>lb,isImportOrExportSpecifierName:()=>rle,isImportSpecifier:()=>gp,isImportTypeAssertionContainer:()=>E0e,isImportTypeNode:()=>Hm,isImportable:()=>y$,isInComment:()=>lv,isInCompoundLikeAssignment:()=>Mz,isInExpressionContext:()=>UF,isInJSDoc:()=>KP,isInJSFile:()=>dn,isInJSXText:()=>Lce,isInJsonFile:()=>qF,isInNonReferenceComment:()=>Uce,isInReferenceComment:()=>Jce,isInRightSideOfInternalImportEqualsDeclaration:()=>Xj,isInString:()=>cC,isInTemplateString:()=>Eq,isInTopLevelContext:()=>zF,isInTypeQuery:()=>v2,isIncrementalBuildInfo:()=>rR,isIncrementalBundleEmitBuildInfo:()=>Toe,isIncrementalCompilation:()=>NS,isIndexSignatureDeclaration:()=>Pb,isIndexedAccessTypeNode:()=>LS,isInferTypeNode:()=>gk,isInfinityOrNaNString:()=>AA,isInitializedProperty:()=>B4,isInitializedVariable:()=>F6,isInsideJsxElement:()=>o5,isInsideJsxElementOrAttribute:()=>jce,isInsideNodeModules:()=>wR,isInsideTemplateLiteral:()=>gR,isInstanceOfExpression:()=>h8,isInstantiatedModule:()=>NU,isInterfaceDeclaration:()=>uu,isInternalDeclaration:()=>yte,isInternalModuleImportEqualsDeclaration:()=>tk,isInternalName:()=>MJ,isIntersectionTypeNode:()=>J2,isIntrinsicJsxName:()=>Yw,isIterationStatement:()=>fb,isJSDoc:()=>um,isJSDocAllType:()=>Iie,isJSDocAugmentsTag:()=>H2,isJSDocAuthorTag:()=>F0e,isJSDocCallbackTag:()=>SJ,isJSDocClassTag:()=>Pie,isJSDocCommentContainingNode:()=>hF,isJSDocConstructSignature:()=>g2,isJSDocDeprecatedTag:()=>wJ,isJSDocEnumTag:()=>_4,isJSDocFunctionType:()=>SI,isJSDocImplementsTag:()=>v7,isJSDocImportTag:()=>Zm,isJSDocIndexSignature:()=>HF,isJSDocLikeText:()=>GJ,isJSDocLink:()=>Cie,isJSDocLinkCode:()=>wie,isJSDocLinkLike:()=>s2,isJSDocLinkPlain:()=>R0e,isJSDocMemberName:()=>X0,isJSDocNameReference:()=>$A,isJSDocNamepathType:()=>O0e,isJSDocNamespaceBody:()=>Dbe,isJSDocNode:()=>Rw,isJSDocNonNullableType:()=>m7,isJSDocNullableType:()=>bI,isJSDocOptionalParameter:()=>q8,isJSDocOptionalType:()=>bJ,isJSDocOverloadTag:()=>TI,isJSDocOverrideTag:()=>h7,isJSDocParameterTag:()=>c_,isJSDocPrivateTag:()=>kJ,isJSDocPropertyLikeTag:()=>OP,isJSDocPropertyTag:()=>Aie,isJSDocProtectedTag:()=>xJ,isJSDocPublicTag:()=>TJ,isJSDocReadonlyTag:()=>CJ,isJSDocReturnTag:()=>y7,isJSDocSatisfiesExpression:()=>JG,isJSDocSatisfiesTag:()=>b7,isJSDocSeeTag:()=>j0e,isJSDocSignature:()=>cv,isJSDocTag:()=>Ow,isJSDocTemplateTag:()=>hd,isJSDocThisTag:()=>IJ,isJSDocThrowsTag:()=>W0e,isJSDocTypeAlias:()=>fd,isJSDocTypeAssertion:()=>JS,isJSDocTypeExpression:()=>K0,isJSDocTypeLiteral:()=>xk,isJSDocTypeTag:()=>HA,isJSDocTypedefTag:()=>Ck,isJSDocUnknownTag:()=>L0e,isJSDocUnknownType:()=>Die,isJSDocVariadicType:()=>g7,isJSXTagName:()=>Uw,isJsonEqual:()=>G8,isJsonSourceFile:()=>M_,isJsxAttribute:()=>Ym,isJsxAttributeLike:()=>mF,isJsxAttributeName:()=>Ene,isJsxAttributes:()=>zS,isJsxCallLike:()=>gte,isJsxChild:()=>zM,isJsxClosingElement:()=>BS,isJsxClosingFragment:()=>kie,isJsxElement:()=>Xm,isJsxExpression:()=>yI,isJsxFragment:()=>Q0,isJsxNamespacedName:()=>lm,isJsxOpeningElement:()=>cm,isJsxOpeningFragment:()=>Wd,isJsxOpeningLikeElement:()=>Qu,isJsxOpeningLikeElementTagName:()=>Pce,isJsxSelfClosingElement:()=>kk,isJsxSpreadAttribute:()=>$2,isJsxTagNameExpression:()=>BP,isJsxText:()=>F2,isJumpStatementTarget:()=>fR,isKeyword:()=>qp,isKeywordOrPunctuation:()=>e8,isKnownSymbol:()=>oA,isLabelName:()=>Tq,isLabelOfLabeledStatement:()=>Sq,isLabeledStatement:()=>Eb,isLateVisibilityPaintedStatement:()=>AF,isLeftHandSideExpression:()=>Jp,isLet:()=>MF,isLineBreak:()=>qu,isLiteralComputedPropertyDeclarationName:()=>b6,isLiteralExpression:()=>$T,isLiteralExpressionOfObject:()=>zB,isLiteralImportTypeNode:()=>Yh,isLiteralKind:()=>FP,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>e5,isLiteralTypeLiteral:()=>ote,isLiteralTypeNode:()=>av,isLocalName:()=>cy,isLogicalOperator:()=>Fre,isLogicalOrCoalescingAssignmentExpression:()=>sG,isLogicalOrCoalescingAssignmentOperator:()=>fA,isLogicalOrCoalescingBinaryExpression:()=>A6,isLogicalOrCoalescingBinaryOperator:()=>m8,isMappedTypeNode:()=>yk,isMemberName:()=>sh,isMetaProperty:()=>bk,isMethodDeclaration:()=>hc,isMethodOrAccessor:()=>n2,isMethodSignature:()=>jd,isMinusToken:()=>fJ,isMissingDeclaration:()=>M0e,isMissingPackageJsonInfo:()=>Rse,isModifier:()=>la,isModifierKind:()=>ub,isModifierLike:()=>tc,isModuleAugmentationExternal:()=>pz,isModuleBlock:()=>Qm,isModuleBody:()=>lte,isModuleDeclaration:()=>el,isModuleExportName:()=>d7,isModuleExportsAccessExpression:()=>fh,isModuleIdentifier:()=>Iz,isModuleName:()=>$ie,isModuleOrEnumDeclaration:()=>WM,isModuleReference:()=>dte,isModuleSpecifierLike:()=>m5,isModuleWithStringLiteralName:()=>PF,isNameOfFunctionDeclaration:()=>wq,isNameOfModuleDeclaration:()=>Cq,isNamedDeclaration:()=>Vl,isNamedEvaluation:()=>Cf,isNamedEvaluationSource:()=>Bz,isNamedExportBindings:()=>WB,isNamedExports:()=>G_,isNamedImportBindings:()=>KB,isNamedImports:()=>Km,isNamedImportsOrExports:()=>k8,isNamedTupleMember:()=>_I,isNamespaceBody:()=>Ibe,isNamespaceExport:()=>Ag,isNamespaceExportDeclaration:()=>f4,isNamespaceImport:()=>bh,isNamespaceReexportDeclaration:()=>nre,isNewExpression:()=>WS,isNewExpressionTarget:()=>CE,isNewScopeNode:()=>Lne,isNoSubstitutionTemplateLiteral:()=>mk,isNodeArray:()=>_S,isNodeArrayMultiLine:()=>Vre,isNodeDescendantOf:()=>xS,isNodeKind:()=>lF,isNodeLikeSystem:()=>$W,isNodeModulesDirectory:()=>QO,isNodeWithPossibleHoistedDeclaration:()=>dre,isNonContextualKeyword:()=>Lz,isNonGlobalAmbientModule:()=>uz,isNonNullAccess:()=>Ane,isNonNullChain:()=>cF,isNonNullExpression:()=>V2,isNonStaticMethodOrAccessorWithPrivateName:()=>_ae,isNotEmittedStatement:()=>Tie,isNullishCoalesce:()=>LB,isNumber:()=>Yv,isNumericLiteral:()=>Hp,isNumericLiteralName:()=>yh,isObjectBindingElementWithoutPropertyName:()=>bR,isObjectBindingOrAssignmentElement:()=>OM,isObjectBindingOrAssignmentPattern:()=>VB,isObjectBindingPattern:()=>o_,isObjectLiteralElement:()=>XB,isObjectLiteralElementLike:()=>Xh,isObjectLiteralExpression:()=>Sa,isObjectLiteralMethod:()=>pd,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>jF,isObjectTypeDeclaration:()=>x2,isOmittedExpression:()=>Fl,isOptionalChain:()=>$u,isOptionalChainRoot:()=>NP,isOptionalDeclaration:()=>E2,isOptionalJSDocPropertyLikeTag:()=>X6,isOptionalTypeNode:()=>l7,isOuterExpression:()=>k7,isOutermostOptionalChain:()=>MP,isOverrideModifier:()=>_ie,isPackageJsonInfo:()=>H7,isPackedArrayLiteral:()=>zG,isParameter:()=>Gi,isParameterPropertyDeclaration:()=>Tf,isParameterPropertyModifier:()=>jP,isParenthesizedExpression:()=>Pp,isParenthesizedTypeNode:()=>hk,isParseTreeNode:()=>EP,isPartOfParameterDeclaration:()=>L0,isPartOfTypeNode:()=>Wm,isPartOfTypeOnlyImportOrExportDeclaration:()=>ete,isPartOfTypeQuery:()=>VF,isPartiallyEmittedExpression:()=>hie,isPatternMatch:()=>OO,isPinnedComment:()=>IF,isPlainJsFile:()=>GP,isPlusToken:()=>pJ,isPossiblyTypeArgumentPosition:()=>mR,isPostfixUnaryExpression:()=>gJ,isPrefixUnaryExpression:()=>V0,isPrimitiveLiteralValue:()=>Q8,isPrivateIdentifier:()=>zi,isPrivateIdentifierClassElementDeclaration:()=>Hu,isPrivateIdentifierPropertyAccessExpression:()=>Nw,isPrivateIdentifierSymbol:()=>vre,isProgramUptoDate:()=>vV,isPrologueDirective:()=>Lm,isPropertyAccessChain:()=>aF,isPropertyAccessEntityNameExpression:()=>N6,isPropertyAccessExpression:()=>Ln,isPropertyAccessOrQualifiedName:()=>jM,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>ste,isPropertyAssignment:()=>yl,isPropertyDeclaration:()=>hs,isPropertyName:()=>ol,isPropertyNameLiteral:()=>Bm,isPropertySignature:()=>mp,isPrototypeAccess:()=>Tb,isPrototypePropertyAssignment:()=>_6,isPunctuation:()=>jz,isPushOrUnshiftIdentifier:()=>zz,isQualifiedName:()=>Ip,isQuestionDotToken:()=>o7,isQuestionOrExclamationToken:()=>Jie,isQuestionOrPlusOrMinusToken:()=>qie,isQuestionToken:()=>Db,isReadonlyKeyword:()=>pie,isReadonlyKeywordOrPlusOrMinusToken:()=>Vie,isRecognizedTripleSlashComment:()=>sz,isReferenceFileLocation:()=>WI,isReferencedFile:()=>s1,isRegularExpressionLiteral:()=>lJ,isRequireCall:()=>Vp,isRequireVariableStatement:()=>o6,isRestParameter:()=>kg,isRestTypeNode:()=>u7,isReturnStatement:()=>Qf,isReturnStatementWithFixablePromiseHandler:()=>F5,isRightSideOfAccessExpression:()=>cG,isRightSideOfInstanceofExpression:()=>Lre,isRightSideOfPropertyAccess:()=>UI,isRightSideOfQualifiedName:()=>Ace,isRightSideOfQualifiedNameOrPropertyAccess:()=>_A,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>jre,isRootedDiskPath:()=>Sf,isSameEntityName:()=>Vw,isSatisfiesExpression:()=>gI,isSemicolonClassElement:()=>yie,isSetAccessor:()=>Fm,isSetAccessorDeclaration:()=>uf,isShiftOperatorOrHigher:()=>WJ,isShorthandAmbientModuleSymbol:()=>qM,isShorthandPropertyAssignment:()=>Fu,isSideEffectImport:()=>HG,isSignedNumericLiteral:()=>r8,isSimpleCopiableExpression:()=>qS,isSimpleInlineableExpression:()=>eg,isSimpleParameterList:()=>z4,isSingleOrDoubleQuote:()=>c6,isSolutionConfig:()=>cU,isSourceElement:()=>Mne,isSourceFile:()=>Li,isSourceFileFromLibrary:()=>eD,isSourceFileJS:()=>Cp,isSourceFileNotJson:()=>$F,isSourceMapping:()=>uae,isSpecialPropertyDeclaration:()=>ore,isSpreadAssignment:()=>Sh,isSpreadElement:()=>z_,isStatement:()=>Ei,isStatementButNotDeclaration:()=>BM,isStatementOrBlock:()=>_te,isStatementWithLocals:()=>Cte,isStatic:()=>Ks,isStaticModifier:()=>W2,isString:()=>Is,isStringANonContextualKeyword:()=>y2,isStringAndEmptyAnonymousObjectIntersection:()=>Gce,isStringDoubleQuoted:()=>QF,isStringLiteral:()=>ya,isStringLiteralLike:()=>Ha,isStringLiteralOrJsxExpression:()=>mte,isStringLiteralOrTemplate:()=>ale,isStringOrNumericLiteralLike:()=>s_,isStringOrRegularExpressionOrTemplateLiteral:()=>Rq,isStringTextContainingNode:()=>GB,isSuperCall:()=>ek,isSuperKeyword:()=>WA,isSuperProperty:()=>of,isSupportedSourceFileName:()=>MG,isSwitchStatement:()=>UA,isSyntaxList:()=>kI,isSyntheticExpression:()=>w0e,isSyntheticReference:()=>q2,isTagName:()=>kq,isTaggedTemplateExpression:()=>U0,isTaggedTemplateTag:()=>Ice,isTemplateExpression:()=>f7,isTemplateHead:()=>j2,isTemplateLiteral:()=>i2,isTemplateLiteralKind:()=>cb,isTemplateLiteralToken:()=>Yee,isTemplateLiteralTypeNode:()=>mie,isTemplateLiteralTypeSpan:()=>mJ,isTemplateMiddle:()=>uJ,isTemplateMiddleOrTemplateTail:()=>uF,isTemplateSpan:()=>hI,isTemplateTail:()=>s7,isTextWhiteSpaceLike:()=>Hce,isThis:()=>VI,isThisContainerOrFunctionBlock:()=>ere,isThisIdentifier:()=>Sb,isThisInTypeQuery:()=>DS,isThisInitializedDeclaration:()=>GF,isThisInitializedObjectBindingExpression:()=>rre,isThisProperty:()=>r6,isThisTypeNode:()=>GA,isThisTypeParameter:()=>EA,isThisTypePredicate:()=>Xte,isThrowStatement:()=>vJ,isToken:()=>t2,isTokenKind:()=>BB,isTraceEnabled:()=>Mb,isTransientSymbol:()=>oh,isTrivia:()=>Kw,isTryStatement:()=>Sk,isTupleTypeNode:()=>G2,isTypeAlias:()=>g6,isTypeAliasDeclaration:()=>gd,isTypeAssertionExpression:()=>p7,isTypeDeclaration:()=>A2,isTypeElement:()=>dS,isTypeKeyword:()=>PE,isTypeKeywordTokenOrIdentifier:()=>f5,isTypeLiteralNode:()=>Dp,isTypeNode:()=>yi,isTypeNodeKind:()=>yG,isTypeOfExpression:()=>dI,isTypeOnlyExportDeclaration:()=>Zee,isTypeOnlyImportDeclaration:()=>Ew,isTypeOnlyImportOrExportDeclaration:()=>$y,isTypeOperatorNode:()=>J0,isTypeParameterDeclaration:()=>Ho,isTypePredicateNode:()=>z2,isTypeQueryNode:()=>FS,isTypeReferenceNode:()=>Pf,isTypeReferenceType:()=>vF,isTypeUsableAsPropertyName:()=>L_,isUMDExportSymbol:()=>T8,isUnaryExpression:()=>HB,isUnaryExpressionWithWrite:()=>ate,isUnicodeIdentifierStart:()=>XO,isUnionTypeNode:()=>sv,isUrl:()=>_ee,isValidBigIntString:()=>J8,isValidESSymbolDeclaration:()=>Hte,isValidTypeOnlyAliasUseSite:()=>B0,isValueSignatureDeclaration:()=>ak,isVarAwaitUsing:()=>XM,isVarConst:()=>Bw,isVarConstLike:()=>Ute,isVarUsing:()=>YM,isVariableDeclaration:()=>li,isVariableDeclarationInVariableStatement:()=>qP,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>SS,isVariableDeclarationInitializedToRequire:()=>a6,isVariableDeclarationList:()=>lu,isVariableLike:()=>VP,isVariableStatement:()=>Qc,isVoidExpression:()=>U2,isWatchSet:()=>mG,isWhileStatement:()=>yJ,isWhiteSpaceLike:()=>rh,isWhiteSpaceSingleLine:()=>Rm,isWithStatement:()=>vie,isWriteAccess:()=>k2,isWriteOnlyAccess:()=>S8,isYieldExpression:()=>u4,jsxModeNeedsExplicitImport:()=>m$,keywordPart:()=>Rf,last:()=>ka,lastOrUndefined:()=>Wo,length:()=>Dr,libMap:()=>$J,libs:()=>A7,lineBreakPart:()=>XI,loadModuleFromGlobalCache:()=>qse,loadWithModeAwareCache:()=>Y4,makeIdentifierFromModuleName:()=>Nte,makeImport:()=>Bb,makeStringLiteral:()=>AE,mangleScopedPackageName:()=>RI,map:()=>kr,mapAllOrFail:()=>wW,mapDefined:()=>Ji,mapDefinedIterator:()=>Hv,mapEntries:()=>RY,mapIterator:()=>lP,mapOneOrMany:()=>p$,mapToDisplayParts:()=>zb,matchFiles:()=>AG,matchPatternOrExact:()=>OG,matchedText:()=>HY,matchesExclude:()=>J7,matchesExcludeWorker:()=>U7,maxBy:()=>WW,maybeBind:()=>Js,maybeSetLocalizedDiagnosticMessages:()=>ene,memoize:()=>up,memoizeOne:()=>Mm,min:()=>BW,minAndMax:()=>bne,missingFileModifiedTime:()=>bf,modifierToFlag:()=>S2,modifiersToFlags:()=>Jm,moduleExportNameIsDefault:()=>xg,moduleExportNameTextEscaped:()=>yS,moduleExportNameTextUnescaped:()=>gb,moduleOptionDeclaration:()=>sse,moduleResolutionIsEqualTo:()=>kte,moduleResolutionNameAndModeGetter:()=>bj,moduleResolutionOptionDeclarations:()=>QJ,moduleResolutionSupportsPackageJsonExportsAndImports:()=>sI,moduleResolutionUsesNodeModules:()=>_5,moduleSpecifierToValidIdentifier:()=>DR,moduleSpecifiers:()=>uy,moduleSupportsImportAttributes:()=>one,moduleSymbolToValidIdentifier:()=>IR,moveEmitHelpers:()=>Yne,moveRangeEnd:()=>v8,moveRangePastDecorators:()=>ny,moveRangePastModifiers:()=>Um,moveRangePos:()=>W0,moveSyntheticComments:()=>Qne,mutateMap:()=>yA,mutateMapSkippingNewValues:()=>dh,needsParentheses:()=>v5,needsScopeMarker:()=>_F,newCaseClauseTracker:()=>E5,newPrivateEnvironment:()=>mae,noEmitNotification:()=>V4,noEmitSubstitution:()=>dE,noTransformers:()=>qae,noTruncationMaximumTruncationLength:()=>ez,nodeCanBeDecorated:()=>i6,nodeCoreModules:()=>lI,nodeHasName:()=>DM,nodeIsDecorated:()=>Jw,nodeIsMissing:()=>xc,nodeIsPresent:()=>ud,nodeIsSynthesized:()=>ko,nodeModuleNameResolver:()=>Wse,nodeModulesPathPart:()=>Th,nodeNextJsonConfigResolver:()=>Bse,nodeOrChildIsDecorated:()=>s6,nodeOverlapsWithStartEnd:()=>t5,nodePosToString:()=>Ebe,nodeSeenTracker:()=>HI,nodeStartsNewLexicalEnvironment:()=>Gz,noop:()=>no,noopFileWatcher:()=>GI,normalizePath:()=>ra,normalizeSlashes:()=>ou,normalizeSpans:()=>PB,not:()=>jO,notImplemented:()=>ea,notImplementedResolver:()=>Xae,nullNodeConverters:()=>qne,nullParenthesizerRules:()=>Une,nullTransformationContext:()=>$4,objectAllocator:()=>bu,operatorPart:()=>NE,optionDeclarations:()=>Bd,optionMapToObject:()=>j7,optionsAffectingProgramStructure:()=>lse,optionsForBuild:()=>XJ,optionsForWatch:()=>Z2,optionsHaveChanges:()=>o2,or:()=>vf,orderedRemoveItem:()=>_P,orderedRemoveItemAt:()=>rb,packageIdToPackageName:()=>CF,packageIdToString:()=>A0,parameterIsThisKeyword:()=>bb,parameterNamePart:()=>Kce,parseBaseNodeFactory:()=>Zie,parseBigInt:()=>Tne,parseBuildCommand:()=>hse,parseCommandLine:()=>mse,parseCommandLineWorker:()=>YJ,parseConfigFileTextToJson:()=>eU,parseConfigFileWithSystem:()=>Foe,parseConfigHostFromCompilerHostLike:()=>wj,parseCustomTypeOption:()=>R7,parseIsolatedEntityName:()=>Y2,parseIsolatedJSDocComment:()=>tse,parseJSDocTypeExpressionForTests:()=>l1e,parseJsonConfigFileContent:()=>W1e,parseJsonSourceFileConfigFileContent:()=>A4,parseJsonText:()=>x4,parseListTypeOption:()=>_se,parseNodeFactory:()=>Z0,parseNodeModuleFromPath:()=>R4,parsePackageName:()=>X7,parsePseudoBigInt:()=>IA,parseValidBigInt:()=>WG,pasteEdits:()=>dQ,patchWriteFileEnsuringDirectory:()=>fee,pathContainsNodeModules:()=>Ob,pathIsAbsolute:()=>TP,pathIsBareSpecifier:()=>vB,pathIsRelative:()=>$f,patternText:()=>$Y,performIncrementalCompilation:()=>joe,performance:()=>rZ,positionBelongsToNode:()=>Iq,positionIsASICandidate:()=>T5,positionIsSynthesized:()=>am,positionsAreOnSameLine:()=>F_,preProcessFile:()=>Hxe,probablyUsesSemicolons:()=>CR,processCommentPragmas:()=>VJ,processPragmasIntoFields:()=>qJ,processTaggedTemplateExpression:()=>$U,programContainsEsModules:()=>qce,programContainsModules:()=>Vce,projectReferenceIsEqualTo:()=>tz,propertyNamePart:()=>Xce,pseudoBigIntToString:()=>MS,punctuationPart:()=>ep,pushIfUnique:()=>D_,quote:()=>OE,quotePreferenceFromString:()=>Uq,rangeContainsPosition:()=>qI,rangeContainsPositionExclusive:()=>_R,rangeContainsRange:()=>$p,rangeContainsRangeExclusive:()=>Nce,rangeContainsStartEnd:()=>dR,rangeEndIsOnSameLineAsRangeStart:()=>O6,rangeEndPositionsAreOnSameLine:()=>Jre,rangeEquals:()=>EW,rangeIsOnSingleLine:()=>uk,rangeOfNode:()=>jG,rangeOfTypeParameters:()=>LG,rangeOverlapsWithStartEnd:()=>wE,rangeStartIsOnSameLineAsRangeEnd:()=>Ure,rangeStartPositionsAreOnSameLine:()=>b8,readBuilderProgram:()=>jj,readConfigFile:()=>D4,readJson:()=>tI,readJsonConfigFile:()=>yse,readJsonOrUndefined:()=>uG,reduceEachLeadingCommentRange:()=>See,reduceEachTrailingCommentRange:()=>Tee,reduceLeft:()=>lp,reduceLeftIterator:()=>hw,reducePathComponents:()=>Yx,refactor:()=>_C,regExpEscape:()=>a0e,regularExpressionFlagToCharacterCode:()=>sbe,relativeComplement:()=>OY,removeAllComments:()=>n4,removeEmitHelper:()=>T0e,removeExtension:()=>$6,removeFileExtension:()=>dp,removeIgnoredPath:()=>Aj,removeMinAndVersionNumbers:()=>JW,removePrefix:()=>dP,removeSuffix:()=>Sw,removeTrailingDirectorySeparator:()=>Vy,repeatString:()=>yR,replaceElement:()=>RW,replaceFirstStar:()=>fk,resolutionExtensionIsTSOrJson:()=>kA,resolveConfigFileProjectName:()=>XV,resolveJSModule:()=>Fse,resolveLibrary:()=>K7,resolveModuleName:()=>Pk,resolveModuleNameFromCache:()=>mSe,resolvePackageNameToPackageJson:()=>fU,resolvePath:()=>ib,resolveProjectReferencePath:()=>sC,resolveTripleslashReference:()=>uV,resolveTypeReferenceDirective:()=>Nse,resolvingEmptyArray:()=>ZB,returnFalse:()=>$h,returnNoopFileWatcher:()=>TE,returnTrue:()=>cS,returnUndefined:()=>lS,returnsPromise:()=>P$,rewriteModuleSpecifier:()=>rC,sameFlatMap:()=>NY,sameMap:()=>fl,sameMapping:()=>sTe,scanTokenAtPosition:()=>Jte,scanner:()=>pu,semanticDiagnosticsOptionDeclarations:()=>ase,serializeCompilerOptions:()=>sU,server:()=>K6e,servicesVersion:()=>jCe,setCommentRange:()=>gl,setConfigFileInOptions:()=>aU,setConstantValue:()=>Xne,setEmitFlags:()=>yn,setGetSourceFileAsHashVersioned:()=>Fj,setIdentifierAutoGenerate:()=>a4,setIdentifierGeneratedImportReference:()=>tie,setIdentifierTypeArguments:()=>iv,setInternalEmitFlags:()=>i4,setLocalizedDiagnosticMessages:()=>Zre,setNodeChildren:()=>Eie,setNodeFlags:()=>Cne,setObjectAllocator:()=>Yre,setOriginalNode:()=>Rn,setParent:()=>Ka,setParentRecursive:()=>z0,setPrivateIdentifier:()=>Ek,setSnippetElement:()=>oJ,setSourceMapRange:()=>Ia,setStackTraceLimit:()=>Gve,setStartsOnNewLine:()=>t7,setSyntheticLeadingComments:()=>G0,setSyntheticTrailingComments:()=>R2,setSys:()=>Hve,setSysLog:()=>lee,setTextRange:()=>mt,setTextRangeEnd:()=>cI,setTextRangePos:()=>DA,setTextRangePosEnd:()=>om,setTextRangePosWidth:()=>BG,setTokenSourceMapRange:()=>Hne,setTypeNode:()=>Zne,setUILocale:()=>UY,setValueDeclaration:()=>ZP,shouldAllowImportingTsExtension:()=>OI,shouldPreserveConstEnums:()=>kb,shouldRewriteModuleSpecifier:()=>m6,shouldUseUriStyleNodeCoreModules:()=>P5,showModuleSpecifier:()=>Qre,signatureHasRestParameter:()=>Zu,signatureToDisplayParts:()=>t$,single:()=>MW,singleElementArray:()=>Qx,singleIterator:()=>MY,singleOrMany:()=>vg,singleOrUndefined:()=>eh,skipAlias:()=>vu,skipConstraint:()=>zq,skipOuterExpressions:()=>Nc,skipParentheses:()=>Qa,skipPartiallyEmittedExpressions:()=>Md,skipTrivia:()=>ha,skipTypeChecking:()=>oI,skipTypeCheckingIgnoringNoCheck:()=>Sne,skipTypeParentheses:()=>tA,skipWhile:()=>KY,sliceAfter:()=>FG,some:()=>_t,sortAndDeduplicate:()=>fP,sortAndDeduplicateDiagnostics:()=>Dw,sourceFileAffectingCompilerOptions:()=>KJ,sourceFileMayBeEmitted:()=>wS,sourceMapCommentRegExp:()=>OU,sourceMapCommentRegExpDontCareLineStart:()=>oae,spacePart:()=>Ic,spanMap:()=>IW,startEndContainsRange:()=>_G,startEndOverlapsWithStartEnd:()=>r5,startOnNewLine:()=>Yu,startTracing:()=>aZ,startsWith:()=>Zi,startsWithDirectory:()=>TB,startsWithUnderscore:()=>d$,startsWithUseStrict:()=>Lie,stringContainsAt:()=>_le,stringToToken:()=>JT,stripQuotes:()=>_d,supportedDeclarationExtensions:()=>W8,supportedJSExtensionsFlat:()=>aI,supportedLocaleDirectories:()=>jee,supportedTSExtensionsFlat:()=>EG,supportedTSImplementationExtensions:()=>U6,suppressLeadingAndTrailingTrivia:()=>Df,suppressLeadingTrivia:()=>tJ,suppressTrailingTrivia:()=>Bne,symbolEscapedNameNoDefault:()=>d5,symbolName:()=>kc,symbolNameNoDefault:()=>qq,symbolToDisplayParts:()=>ME,sys:()=>Nl,sysLog:()=>gM,tagNamesAreEquivalent:()=>t1,takeWhile:()=>qW,targetOptionDeclaration:()=>HJ,targetToLibMap:()=>kee,testFormatSettings:()=>gxe,textChangeRangeIsUnchanged:()=>Nee,textChangeRangeNewSpan:()=>AP,textChanges:()=>gn,textOrKeywordPart:()=>e$,textPart:()=>f_,textRangeContainsPositionInclusive:()=>xM,textRangeContainsTextSpan:()=>wee,textRangeIntersectsWithTextSpan:()=>Aee,textSpanContainsPosition:()=>IB,textSpanContainsTextRange:()=>DB,textSpanContainsTextSpan:()=>Cee,textSpanEnd:()=>mc,textSpanIntersection:()=>Eee,textSpanIntersectsWith:()=>CM,textSpanIntersectsWithPosition:()=>Pee,textSpanIntersectsWithTextSpan:()=>Dee,textSpanIsEmpty:()=>xee,textSpanOverlap:()=>Iee,textSpanOverlapsWith:()=>_be,textSpansEqual:()=>KI,textToKeywordObj:()=>KO,timestamp:()=>bo,toArray:()=>$x,toBuilderFileEmit:()=>Coe,toBuilderStateFileInfoForMultiEmit:()=>xoe,toEditorSettings:()=>FR,toFileNameLowerCase:()=>Zv,toPath:()=>So,toProgramEmitPending:()=>woe,toSorted:()=>yf,tokenIsIdentifierOrKeyword:()=>zp,tokenIsIdentifierOrKeywordOrGreaterThan:()=>mee,tokenToString:()=>ta,trace:()=>ls,tracing:()=>mn,tracingEnabled:()=>mM,transferSourceFileChildren:()=>Nie,transform:()=>$Ce,transformClassFields:()=>Cae,transformDeclarations:()=>XU,transformECMAScriptModule:()=>KU,transformES2015:()=>Wae,transformES2016:()=>Lae,transformES2017:()=>Pae,transformES2018:()=>Aae,transformES2019:()=>Eae,transformES2020:()=>Nae,transformES2021:()=>Mae,transformESDecorators:()=>Dae,transformESNext:()=>Rae,transformGenerators:()=>Bae,transformImpliedNodeFormatDependentModule:()=>Gae,transformJsx:()=>jae,transformLegacyDecorators:()=>Iae,transformModule:()=>QU,transformNamedEvaluation:()=>Ef,transformNodes:()=>q4,transformSystemModule:()=>zae,transformTypeScript:()=>xae,transpile:()=>n2e,transpileDeclaration:()=>t2e,transpileModule:()=>Fle,transpileOptionValueCompilerOptions:()=>use,tryAddToSet:()=>Uy,tryAndIgnoreErrors:()=>C5,tryCast:()=>Hn,tryDirectoryExists:()=>x5,tryExtractTSExtension:()=>y8,tryFileExists:()=>jE,tryGetClassExtendingExpressionWithTypeArguments:()=>aG,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>oG,tryGetDirectories:()=>k5,tryGetExtensionFromPath:()=>hh,tryGetImportFromModuleSpecifier:()=>d6,tryGetJSDocSatisfiesTypeNode:()=>$8,tryGetModuleNameFromFile:()=>y4,tryGetModuleSpecifierFromDeclaration:()=>_2,tryGetNativePerformanceHooks:()=>tZ,tryGetPropertyAccessOrIdentifierToString:()=>M6,tryGetPropertyNameOfBindingOrAssignmentElement:()=>C7,tryGetSourceMappingURL:()=>cae,tryGetTextOfPropertyName:()=>UP,tryParseJson:()=>R6,tryParsePattern:()=>P2,tryParsePatterns:()=>H6,tryParseRawSourceMap:()=>lae,tryReadDirectory:()=>o$,tryReadFile:()=>ZA,tryRemoveDirectoryPrefix:()=>IG,tryRemoveExtension:()=>vne,tryRemovePrefix:()=>VW,tryRemoveSuffix:()=>qY,tscBuildOption:()=>Ik,typeAcquisitionDeclarations:()=>N7,typeAliasNamePart:()=>Yce,typeDirectiveIsEqualTo:()=>xte,typeKeywords:()=>Bq,typeParameterNamePart:()=>Zce,typeToDisplayParts:()=>TR,unchangedPollThresholds:()=>JO,unchangedTextChangeRange:()=>eF,unescapeLeadingUnderscores:()=>Ai,unmangleScopedPackageName:()=>F4,unorderedRemoveItem:()=>Hx,unprefixedNodeCoreModules:()=>jne,unreachableCodeIsError:()=>sne,unsetNodeChildren:()=>PJ,unusedLabelIsError:()=>ane,unwrapInnermostStatementOfLabel:()=>Tz,unwrapParenthesizedExpression:()=>One,updateErrorForNoInputFiles:()=>G7,updateLanguageServiceSourceFile:()=>rH,updateMissingFilePathsWatch:()=>oV,updateResolutionField:()=>AI,updateSharedExtendedConfigFileWatcher:()=>gj,updateSourceFile:()=>JJ,updateWatchingWildcardDirectories:()=>Q4,usingSingleLineStringWriter:()=>Fw,utf16EncodeAsString:()=>PP,validateLocaleAndSetLanguage:()=>EB,version:()=>Vi,versionMajorMinor:()=>Yi,visitArray:()=>oE,visitCommaListElements:()=>W4,visitEachChild:()=>Pr,visitFunctionBody:()=>p_,visitIterationBody:()=>Ap,visitLexicalEnvironment:()=>RU,visitNode:()=>rt,visitNodes:()=>Br,visitParameterList:()=>wc,walkUpBindingElementsAndPatterns:()=>UT,walkUpOuterExpressions:()=>Wie,walkUpParenthesizedExpressions:()=>Od,walkUpParenthesizedTypes:()=>v6,walkUpParenthesizedTypesAndGetParentAndChild:()=>mre,whitespaceOrMapCommentRegExp:()=>FU,writeCommentRange:()=>eI,writeFile:()=>f8,writeFileEnsuringDirectories:()=>Zz,zipWith:()=>LT}),Q.exports=Ir(vi);var Yi="5.9",Vi="5.9.3",Va=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Va||{}),Ke=[],Gl=new Map;function Dr(e){return e!==void 0?e.length:0}function or(e,t){if(e!==void 0)for(let n=0;n<e.length;n++){let i=t(e[n],n);if(i)return i}}function Zg(e,t){if(e!==void 0)for(let n=e.length-1;n>=0;n--){let i=t(e[n],n);if(i)return i}}function fo(e,t){if(e!==void 0)for(let n=0;n<e.length;n++){let i=t(e[n],n);if(i!==void 0)return i}}function Em(e,t){for(let n of e){let i=t(n);if(i!==void 0)return i}}function hw(e,t,n){let i=n;if(e){let s=0;for(let o of e)i=t(i,o,s),s++}return i}function LT(e,t,n){let i=[];w.assertEqual(e.length,t.length);for(let s=0;s<e.length;s++)i.push(n(e[s],t[s],s));return i}function oM(e,t){if(e.length<=1)return e;let n=[];for(let i=0,s=e.length;i<s;i++)i!==0&&n.push(t),n.push(e[i]);return n}function Fi(e,t){if(e!==void 0){for(let n=0;n<e.length;n++)if(!t(e[n],n))return!1}return!0}function Bn(e,t,n){if(e!==void 0)for(let i=n??0;i<e.length;i++){let s=e[i];if(t(s,i))return s}}function aS(e,t,n){if(e!==void 0)for(let i=n??e.length-1;i>=0;i--){let s=e[i];if(t(s,i))return s}}function Tc(e,t,n){if(e===void 0)return-1;for(let i=n??0;i<e.length;i++)if(t(e[i],i))return i;return-1}function EO(e,t,n){if(e===void 0)return-1;for(let i=n??e.length-1;i>=0;i--)if(t(e[i],i))return i;return-1}function ws(e,t,n=eb){if(e!==void 0){for(let i=0;i<e.length;i++)if(n(e[i],t))return!0}return!1}function EY(e,t,n){for(let i=n??0;i<e.length;i++)if(ws(t,e.charCodeAt(i)))return i;return-1}function Jy(e,t){let n=0;if(e!==void 0)for(let i=0;i<e.length;i++){let s=e[i];t(s,i)&&n++}return n}function Mn(e,t){if(e!==void 0){let n=e.length,i=0;for(;i<n&&t(e[i]);)i++;if(i<n){let s=e.slice(0,i);for(i++;i<n;){let o=e[i];t(o)&&s.push(o),i++}return s}}return e}function xW(e,t){let n=0;for(let i=0;i<e.length;i++)t(e[i],i,e)&&(e[n]=e[i],n++);e.length=n}function sd(e){e.length=0}function kr(e,t){let n;if(e!==void 0){n=[];for(let i=0;i<e.length;i++)n.push(t(e[i],i))}return n}function*lP(e,t){for(let n of e)yield t(n)}function fl(e,t){if(e!==void 0)for(let n=0;n<e.length;n++){let i=e[n],s=t(i,n);if(i!==s){let o=e.slice(0,n);for(o.push(s),n++;n<e.length;n++)o.push(t(e[n],n));return o}}return e}function ad(e){let t=[];for(let n=0;n<e.length;n++){let i=e[n];i&&(gs(i)?Gn(t,i):t.push(i))}return t}function Ma(e,t){let n;if(e!==void 0)for(let i=0;i<e.length;i++){let s=t(e[i],i);s&&(gs(s)?n=Gn(n,s):n=Fr(n,s))}return n??Ke}function uP(e,t){let n=[];if(e!==void 0)for(let i=0;i<e.length;i++){let s=t(e[i],i);s&&(gs(s)?Gn(n,s):n.push(s))}return n}function*CW(e,t){for(let n of e){let i=t(n);i&&(yield*i)}}function NY(e,t){let n;if(e!==void 0)for(let i=0;i<e.length;i++){let s=e[i],o=t(s,i);(n||s!==o||gs(o))&&(n||(n=e.slice(0,i)),gs(o)?Gn(n,o):n.push(o))}return n??e}function wW(e,t){let n=[];for(let i=0;i<e.length;i++){let s=t(e[i],i);if(s===void 0)return;n.push(s)}return n}function Ji(e,t){let n=[];if(e!==void 0)for(let i=0;i<e.length;i++){let s=t(e[i],i);s!==void 0&&n.push(s)}return n}function*Hv(e,t){for(let n of e){let i=t(n);i!==void 0&&(yield i)}}function pP(e,t,n){if(e.has(t))return e.get(t);let i=n();return e.set(t,i),i}function Uy(e,t){return e.has(t)?!1:(e.add(t),!0)}function*MY(e){yield e}function IW(e,t,n){let i;if(e!==void 0){i=[];let s=e.length,o,c,p=0,u=0;for(;p<s;){for(;u<s;){let g=e[u];if(c=t(g,u),u===0)o=c;else if(c!==o)break;u++}if(p<u){let g=n(e.slice(p,u),o,p,u);g&&i.push(g),p=u}o=c,u++}}return i}function RY(e,t){if(e===void 0)return;let n=new Map;return e.forEach((i,s)=>{let[o,c]=t(s,i);n.set(o,c)}),n}function _t(e,t){if(e!==void 0)if(t!==void 0){for(let n=0;n<e.length;n++)if(t(e[n]))return!0}else return e.length>0;return!1}function DW(e,t,n){let i;for(let s=0;s<e.length;s++)t(e[s])?i=i===void 0?s:i:i!==void 0&&(n(i,s),i=void 0);i!==void 0&&n(i,e.length)}function Qi(e,t){return t===void 0||t.length===0?e:e===void 0||e.length===0?t:[...e,...t]}function dLe(e,t){return t}function NO(e){return e.map(dLe)}function mLe(e,t,n){let i=NO(e);yLe(e,i,n);let s=e[i[0]],o=[i[0]];for(let c=1;c<i.length;c++){let p=i[c],u=e[p];t(s,u)||(o.push(p),s=u)}return o.sort(),o.map(c=>e[c])}function gLe(e,t){let n=[];for(let i=0;i<e.length;i++)D_(n,e[i],t);return n}function oS(e,t,n){return e.length===0?[]:e.length===1?e.slice():n?mLe(e,t,n):gLe(e,t)}function hLe(e,t){if(e.length===0)return Ke;let n=e[0],i=[n];for(let s=1;s<e.length;s++){let o=e[s];switch(t(o,n)){case!0:case 0:continue;case-1:return w.fail("Array is unsorted.")}i.push(n=o)}return i}function PW(){return[]}function Qv(e,t,n,i,s){if(e.length===0)return e.push(t),!0;let o=Xv(e,t,Do,n);if(o<0){if(i&&!s){let c=~o;if(c>0&&i(t,e[c-1]))return!1;if(c<e.length&&i(t,e[c]))return e.splice(c,1,t),!0}return e.splice(~o,0,t),!0}return s?(e.splice(o,0,t),!0):!1}function fP(e,t,n){return hLe(yf(e,t),n??t??Eu)}function qf(e,t,n=eb){if(e===void 0||t===void 0)return e===t;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!n(e[i],t[i],i))return!1;return!0}function cM(e){let t;if(e!==void 0)for(let n=0;n<e.length;n++){let i=e[n];(t??!i)&&(t??(t=e.slice(0,n)),i&&t.push(i))}return t??e}function OY(e,t,n){if(!t||!e||t.length===0||e.length===0)return t;let i=[];e:for(let s=0,o=0;o<t.length;o++){o>0&&w.assertGreaterThanOrEqual(n(t[o],t[o-1]),0);t:for(let c=s;s<e.length;s++)switch(s>c&&w.assertGreaterThanOrEqual(n(e[s],e[s-1]),0),n(t[o],e[s])){case-1:i.push(t[o]);continue e;case 0:continue e;case 1:continue t}}return i}function Fr(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Ux(e,t){return e===void 0?t:t===void 0?e:gs(e)?gs(t)?Qi(e,t):Fr(e,t):gs(t)?Fr(t,e):[e,t]}function FY(e,t){return t<0?e.length+t:t}function Gn(e,t,n,i){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(n,i);n=n===void 0?0:FY(t,n),i=i===void 0?t.length:FY(t,i);for(let s=n;s<i&&s<t.length;s++)t[s]!==void 0&&e.push(t[s]);return e}function D_(e,t,n){return ws(e,t,n)?!1:(e.push(t),!0)}function qh(e,t,n){return e!==void 0?(D_(e,t,n),e):[t]}function yLe(e,t,n){t.sort((i,s)=>n(e[i],e[s])||Po(i,s))}function yf(e,t){return e.length===0?Ke:e.slice().sort(t)}function*AW(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function EW(e,t,n,i){for(;n<i;){if(e[n]!==t[n])return!1;n++}return!0}var Kv=Array.prototype.at?(e,t)=>e?.at(t):(e,t)=>{if(e!==void 0&&(t=FY(e,t),t<e.length))return e[t]};function _l(e){return e===void 0||e.length===0?void 0:e[0]}function MO(e){if(e!==void 0)for(let t of e)return t}function Ra(e){return w.assert(e.length!==0),e[0]}function NW(e){for(let t of e)return t;w.fail("iterator is empty")}function Wo(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function ka(e){return w.assert(e.length!==0),e[e.length-1]}function eh(e){return e!==void 0&&e.length===1?e[0]:void 0}function MW(e){return w.checkDefined(eh(e))}function vg(e){return e!==void 0&&e.length===1?e[0]:e}function RW(e,t,n){let i=e.slice(0);return i[t]=n,i}function Xv(e,t,n,i,s){return Vx(e,n(t),n,i,s)}function Vx(e,t,n,i,s){if(!_t(e))return-1;let o=s??0,c=e.length-1;for(;o<=c;){let p=o+(c-o>>1),u=n(e[p],p);switch(i(u,t)){case-1:o=p+1;break;case 0:return p;case 1:c=p-1;break}}return~o}function lp(e,t,n,i,s){if(e&&e.length>0){let o=e.length;if(o>0){let c=i===void 0||i<0?0:i,p=s===void 0||c+s>o-1?o-1:c+s,u;for(arguments.length<=2?(u=e[c],c++):u=n;c<=p;)u=t(u,e[c],c),c++;return u}}return n}var x0=Object.prototype.hasOwnProperty;function _o(e,t){return x0.call(e,t)}function lM(e,t){return x0.call(e,t)?e[t]:void 0}function Nm(e){let t=[];for(let n in e)x0.call(e,n)&&t.push(n);return t}function wve(e){let t=[];do{let n=Object.getOwnPropertyNames(e);for(let i of n)D_(t,i)}while(e=Object.getPrototypeOf(e));return t}function qx(e){let t=[];for(let n in e)x0.call(e,n)&&t.push(e[n]);return t}function jY(e,t){let n=new Array(e);for(let i=0;i<e;i++)n[i]=t(i);return n}function ds(e,t){let n=[];for(let i of e)n.push(t?t(i):i);return n}function WT(e,...t){for(let n of t)if(n!==void 0)for(let i in n)_o(n,i)&&(e[i]=n[i]);return e}function LY(e,t,n=eb){if(e===t)return!0;if(!e||!t)return!1;for(let i in e)if(x0.call(e,i)&&(!x0.call(t,i)||!n(e[i],t[i])))return!1;for(let i in t)if(x0.call(t,i)&&!x0.call(e,i))return!1;return!0}function yw(e,t,n=Do){let i=new Map;for(let s=0;s<e.length;s++){let o=e[s],c=t(o);c!==void 0&&i.set(c,n(o))}return i}function WY(e,t,n=Do){let i=[];for(let s=0;s<e.length;s++){let o=e[s];i[t(o)]=n(o)}return i}function uM(e,t,n=Do){let i=od();for(let s=0;s<e.length;s++){let o=e[s];i.add(t(o),n(o))}return i}function vw(e,t,n=Do){return ds(uM(e,t).values(),n)}function OW(e,t){let n={};if(e!==void 0)for(let i=0;i<e.length;i++){let s=e[i],o=`${t(s)}`;(n[o]??(n[o]=[])).push(s)}return n}function BY(e){let t={};for(let n in e)x0.call(e,n)&&(t[n]=e[n]);return t}function FW(e,t){let n={};for(let i in t)x0.call(t,i)&&(n[i]=t[i]);for(let i in e)x0.call(e,i)&&(n[i]=e[i]);return n}function jW(e,t){for(let n in t)x0.call(t,n)&&(e[n]=t[n])}function Js(e,t){return t?.bind(e)}function od(){let e=new Map;return e.add=vLe,e.remove=bLe,e}function vLe(e,t){let n=this.get(e);return n!==void 0?n.push(t):this.set(e,n=[t]),n}function bLe(e,t){let n=this.get(e);n!==void 0&&(Hx(n,t),n.length||this.delete(e))}function pM(e){let t=e?.slice()??[],n=0;function i(){return n===t.length}function s(...c){t.push(...c)}function o(){if(i())throw new Error("Queue is empty");let c=t[n];if(t[n]=void 0,n++,n>100&&n>t.length>>1){let p=t.length-n;t.copyWithin(0,n),t.length=p,n=0}return c}return{enqueue:s,dequeue:o,isEmpty:i}}function LW(e,t){let n=new Map,i=0;function*s(){for(let c of n.values())gs(c)?yield*c:yield c}let o={has(c){let p=e(c);if(!n.has(p))return!1;let u=n.get(p);return gs(u)?ws(u,c,t):t(u,c)},add(c){let p=e(c);if(n.has(p)){let u=n.get(p);if(gs(u))ws(u,c,t)||(u.push(c),i++);else{let g=u;t(g,c)||(n.set(p,[g,c]),i++)}}else n.set(p,c),i++;return this},delete(c){let p=e(c);if(!n.has(p))return!1;let u=n.get(p);if(gs(u)){for(let g=0;g<u.length;g++)if(t(u[g],c))return u.length===1?n.delete(p):u.length===2?n.set(p,u[1-g]):Pve(u,g),i--,!0}else if(t(u,c))return n.delete(p),i--,!0;return!1},clear(){n.clear(),i=0},get size(){return i},forEach(c){for(let p of ds(n.values()))if(gs(p))for(let u of p)c(u,u,o);else{let u=p;c(u,u,o)}},keys(){return s()},values(){return s()},*entries(){for(let c of s())yield[c,c]},[Symbol.iterator]:()=>s(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return o}function gs(e){return Array.isArray(e)}function $x(e){return gs(e)?e:[e]}function Is(e){return typeof e=="string"}function Yv(e){return typeof e=="number"}function Hn(e,t){return e!==void 0&&t(e)?e:void 0}function Zs(e,t){return e!==void 0&&t(e)?e:w.fail(`Invalid cast. The supplied value ${e} did not pass the test '${w.getFunctionName(t)}'.`)}function no(e){}function $h(){return!1}function cS(){return!0}function lS(){}function Do(e){return e}function SLe(e){return e.toLowerCase()}var Ive=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function Zv(e){return Ive.test(e)?e.replace(Ive,SLe):e}function ea(){throw new Error("Not implemented")}function up(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Mm(e){let t=new Map;return n=>{let i=`${typeof n}:${n}`,s=t.get(i);return s===void 0&&!t.has(i)&&(s=e(n),t.set(i,s)),s}}var zY=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(zY||{});function eb(e,t){return e===t}function tb(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function uS(e,t){return eb(e,t)}function Dve(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function Po(e,t){return Dve(e,t)}function RO(e,t){return Po(e?.start,t?.start)||Po(e?.length,t?.length)}function WW(e,t,n){for(let i=0;i<e.length;i++)t=Math.max(t,n(e[i]));return t}function BW(e,t){return lp(e,(n,i)=>t(n,i)===-1?n:i)}function fM(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),e<t?-1:e>t?1:0)}function GY(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),e<t?-1:e>t?1:0)}function Eu(e,t){return Dve(e,t)}function bw(e){return e?fM:Eu}var TLe=(()=>{return t;function e(n,i,s){if(n===i)return 0;if(n===void 0)return-1;if(i===void 0)return 1;let o=s(n,i);return o<0?-1:o>0?1:0}function t(n){let i=new Intl.Collator(n,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(s,o)=>e(s,o,i)}})(),zW,GW;function JY(){return GW}function UY(e){GW!==e&&(GW=e,zW=void 0)}function _M(e,t){return zW??(zW=TLe(GW)),zW(e,t)}function VY(e,t,n,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[n],t[n])}function C0(e,t){return Po(e?1:0,t?1:0)}function pS(e,t,n){let i=Math.max(2,Math.floor(e.length*.34)),s=Math.floor(e.length*.4)+1,o;for(let c of t){let p=n(c);if(p!==void 0&&Math.abs(p.length-e.length)<=i){if(p===e||p.length<3&&p.toLowerCase()!==e.toLowerCase())continue;let u=kLe(e,p,s-.1);if(u===void 0)continue;w.assert(u<s),s=u,o=c}}return o}function kLe(e,t,n){let i=new Array(t.length+1),s=new Array(t.length+1),o=n+.01;for(let p=0;p<=t.length;p++)i[p]=p;for(let p=1;p<=e.length;p++){let u=e.charCodeAt(p-1),g=Math.ceil(p>n?p-n:1),d=Math.floor(t.length>n+p?n+p:t.length);s[0]=p;let h=p;for(let T=1;T<g;T++)s[T]=o;for(let T=g;T<=d;T++){let x=e[p-1].toLowerCase()===t[T-1].toLowerCase()?i[T-1]+.1:i[T-1]+2,I=u===t.charCodeAt(T-1)?i[T-1]:Math.min(i[T]+1,s[T-1]+1,x);s[T]=I,h=Math.min(h,I)}for(let T=d+1;T<=t.length;T++)s[T]=o;if(h>n)return;let S=i;i=s,s=S}let c=i[t.length];return c>n?void 0:c}function Bo(e,t,n){let i=e.length-t.length;return i>=0&&(n?tb(e.slice(i),t):e.indexOf(t,i)===i)}function Sw(e,t){return Bo(e,t)?e.slice(0,e.length-t.length):e}function qY(e,t){return Bo(e,t)?e.slice(0,e.length-t.length):void 0}function JW(e){let t=e.length;for(let n=t-1;n>0;n--){let i=e.charCodeAt(n);if(i>=48&&i<=57)do--n,i=e.charCodeAt(n);while(n>0&&i>=48&&i<=57);else if(n>4&&(i===110||i===78)){if(--n,i=e.charCodeAt(n),i!==105&&i!==73||(--n,i=e.charCodeAt(n),i!==109&&i!==77))break;--n,i=e.charCodeAt(n)}else break;if(i!==45&&i!==46)break;t=n}return t===e.length?e:e.slice(0,t)}function _P(e,t){for(let n=0;n<e.length;n++)if(e[n]===t)return rb(e,n),!0;return!1}function rb(e,t){for(let n=t;n<e.length-1;n++)e[n]=e[n+1];e.pop()}function Pve(e,t){e[t]=e[e.length-1],e.pop()}function Hx(e,t){return xLe(e,n=>n===t)}function xLe(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return Pve(e,n),!0;return!1}function hu(e){return e?Do:Zv}function $Y({prefix:e,suffix:t}){return`${e}*${t}`}function HY(e,t){return w.assert(OO(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function UW(e,t,n){let i,s=-1;for(let o=0;o<e.length;o++){let c=e[o],p=t(c);p.prefix.length>s&&OO(p,n)&&(s=p.prefix.length,i=c)}return i}function Zi(e,t,n){return n?tb(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function dP(e,t){return Zi(e,t)?e.substr(t.length):e}function VW(e,t,n=Do){return Zi(n(e),n(t))?e.substring(t.length):void 0}function OO({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&Zi(n,e)&&Bo(n,t)}function FO(e,t){return n=>e(n)&&t(n)}function vf(...e){return(...t)=>{let n;for(let i of e)if(n=i(...t),n)return n;return n}}function jO(e){return(...t)=>!e(...t)}function Ave(e){}function Qx(e){return e===void 0?void 0:[e]}function LO(e,t,n,i,s,o){o??(o=no);let c=0,p=0,u=e.length,g=t.length,d=!1;for(;c<u&&p<g;){let h=e[c],S=t[p],T=n(h,S);T===-1?(i(h),c++,d=!0):T===1?(s(S),p++,d=!0):(o(S,h),c++,p++)}for(;c<u;)i(e[c++]),d=!0;for(;p<g;)s(t[p++]),d=!0;return d}function QY(e){let t=[];return Eve(e,t,void 0,0),t}function Eve(e,t,n,i){for(let s of e[i]){let o;n?(o=n.slice(),o.push(s)):o=[s],i===e.length-1?t.push(o):Eve(e,t,o,i+1)}}function qW(e,t){if(e!==void 0){let n=e.length,i=0;for(;i<n&&t(e[i]);)i++;return e.slice(0,i)}}function KY(e,t){if(e!==void 0){let n=e.length,i=0;for(;i<n&&t(e[i]);)i++;return e.slice(i)}}function $W(){return typeof process<"u"&&!!process.nextTick&&!process.browser&&typeof Lye<"u"}var XY=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(XY||{}),w;(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function n(qe){return e.currentLogLevel<=qe}e.shouldLog=n;function i(qe,bt){e.loggingHost&&n(qe)&&e.loggingHost.log(qe,bt)}function s(qe){i(3,qe)}e.log=s,(qe=>{function bt(ei){i(1,ei)}qe.error=bt;function ar(ei){i(2,ei)}qe.warn=ar;function tn(ei){i(3,ei)}qe.log=tn;function Xn(ei){i(4,ei)}qe.trace=Xn})(s=e.log||(e.log={}));let o={};function c(){return t}e.getAssertionLevel=c;function p(qe){let bt=t;if(t=qe,qe>bt)for(let ar of Nm(o)){let tn=o[ar];tn!==void 0&&e[ar]!==tn.assertion&&qe>=tn.level&&(e[ar]=tn,o[ar]=void 0)}}e.setAssertionLevel=p;function u(qe){return t>=qe}e.shouldAssert=u;function g(qe,bt){return u(qe)?!0:(o[bt]={level:qe,assertion:e[bt]},e[bt]=no,!1)}function d(qe,bt){debugger;let ar=new Error(qe?`Debug Failure. ${qe}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(ar,bt||d),ar}e.fail=d;function h(qe,bt,ar){return d(`${bt||"Unexpected node."}\r
|
|
Node ${Se(qe.kind)} was unexpected.`,ar||h)}e.failBadSyntaxKind=h;function S(qe,bt,ar,tn){qe||(bt=bt?`False expression: ${bt}`:"False expression.",ar&&(bt+=`\r
|
|
Verbose Debug Information: `+(typeof ar=="string"?ar:ar())),d(bt,tn||S))}e.assert=S;function T(qe,bt,ar,tn,Xn){if(qe!==bt){let ei=ar?tn?`${ar} ${tn}`:ar:"";d(`Expected ${qe} === ${bt}. ${ei}`,Xn||T)}}e.assertEqual=T;function x(qe,bt,ar,tn){qe>=bt&&d(`Expected ${qe} < ${bt}. ${ar||""}`,tn||x)}e.assertLessThan=x;function I(qe,bt,ar){qe>bt&&d(`Expected ${qe} <= ${bt}`,ar||I)}e.assertLessThanOrEqual=I;function P(qe,bt,ar){qe<bt&&d(`Expected ${qe} >= ${bt}`,ar||P)}e.assertGreaterThanOrEqual=P;function E(qe,bt,ar){qe==null&&d(bt,ar||E)}e.assertIsDefined=E;function F(qe,bt,ar){return E(qe,bt,ar||F),qe}e.checkDefined=F;function O(qe,bt,ar){for(let tn of qe)E(tn,bt,ar||O)}e.assertEachIsDefined=O;function W(qe,bt,ar){return O(qe,bt,ar||W),qe}e.checkEachDefined=W;function z(qe,bt="Illegal value:",ar){let tn=typeof qe=="object"&&_o(qe,"kind")&&_o(qe,"pos")?"SyntaxKind: "+Se(qe.kind):JSON.stringify(qe);return d(`${bt} ${tn}`,ar||z)}e.assertNever=z;function $(qe,bt,ar,tn){g(1,"assertEachNode")&&S(bt===void 0||Fi(qe,bt),ar||"Unexpected node.",()=>`Node array did not pass test '${oe(bt)}'.`,tn||$)}e.assertEachNode=$;function X(qe,bt,ar,tn){g(1,"assertNode")&&S(qe!==void 0&&(bt===void 0||bt(qe)),ar||"Unexpected node.",()=>`Node ${Se(qe?.kind)} did not pass test '${oe(bt)}'.`,tn||X)}e.assertNode=X;function U(qe,bt,ar,tn){g(1,"assertNotNode")&&S(qe===void 0||bt===void 0||!bt(qe),ar||"Unexpected node.",()=>`Node ${Se(qe.kind)} should not have passed test '${oe(bt)}'.`,tn||U)}e.assertNotNode=U;function _e(qe,bt,ar,tn){g(1,"assertOptionalNode")&&S(bt===void 0||qe===void 0||bt(qe),ar||"Unexpected node.",()=>`Node ${Se(qe?.kind)} did not pass test '${oe(bt)}'.`,tn||_e)}e.assertOptionalNode=_e;function re(qe,bt,ar,tn){g(1,"assertOptionalToken")&&S(bt===void 0||qe===void 0||qe.kind===bt,ar||"Unexpected node.",()=>`Node ${Se(qe?.kind)} was not a '${Se(bt)}' token.`,tn||re)}e.assertOptionalToken=re;function V(qe,bt,ar){g(1,"assertMissingNode")&&S(qe===void 0,bt||"Unexpected node.",()=>`Node ${Se(qe.kind)} was unexpected'.`,ar||V)}e.assertMissingNode=V;function ce(qe){}e.type=ce;function oe(qe){if(typeof qe!="function")return"";if(_o(qe,"name"))return qe.name;{let bt=Function.prototype.toString.call(qe),ar=/^function\s+([\w$]+)\s*\(/.exec(bt);return ar?ar[1]:""}}e.getFunctionName=oe;function le(qe){return`{ name: ${Ai(qe.escapedName)}; flags: ${ae(qe.flags)}; declarations: ${kr(qe.declarations,bt=>Se(bt.kind))} }`}e.formatSymbol=le;function de(qe=0,bt,ar){let tn=H(bt);if(qe===0)return tn.length>0&&tn[0][0]===0?tn[0][1]:"0";if(ar){let Xn=[],ei=qe;for(let[Mi,js]of tn){if(Mi>qe)break;Mi!==0&&Mi&qe&&(Xn.push(js),ei&=~Mi)}if(ei===0)return Xn.join("|")}else for(let[Xn,ei]of tn)if(Xn===qe)return ei;return qe.toString()}e.formatEnum=de;let ve=new Map;function H(qe){let bt=ve.get(qe);if(bt)return bt;let ar=[];for(let Xn in qe){let ei=qe[Xn];typeof ei=="number"&&ar.push([ei,Xn])}let tn=yf(ar,(Xn,ei)=>Po(Xn[0],ei[0]));return ve.set(qe,tn),tn}function Se(qe){return de(qe,XW,!1)}e.formatSyntaxKind=Se;function Je(qe){return de(qe,pB,!1)}e.formatSnippetKind=Je;function ye(qe){return de(qe,lB,!1)}e.formatScriptKind=ye;function ee(qe){return de(qe,YW,!0)}e.formatNodeFlags=ee;function ge(qe){return de(qe,sB,!0)}e.formatNodeCheckFlags=ge;function ke(qe){return de(qe,ZW,!0)}e.formatModifierFlags=ke;function Oe(qe){return de(qe,uB,!0)}e.formatTransformFlags=Oe;function nt(qe){return de(qe,fB,!0)}e.formatEmitFlags=nt;function ae(qe){return de(qe,iB,!0)}e.formatSymbolFlags=ae;function Ue(qe){return de(qe,aB,!0)}e.formatTypeFlags=Ue;function te(qe){return de(qe,cB,!0)}e.formatSignatureFlags=te;function Ne(qe){return de(qe,oB,!0)}e.formatObjectFlags=Ne;function Ie(qe){return de(qe,BO,!0)}e.formatFlowFlags=Ie;function xe(qe){return de(qe,eB,!0)}e.formatRelationComparisonResult=xe;function Qe(qe){return de(qe,PU,!0)}e.formatCheckMode=Qe;function St(qe){return de(qe,AU,!0)}e.formatSignatureCheckMode=St;function Bt(qe){return de(qe,DU,!0)}e.formatTypeFacts=Bt;let fr=!1,Mr;function ft(qe){"__debugFlowFlags"in qe||Object.defineProperties(qe,{__tsDebuggerDisplay:{value(){let bt=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",ar=this.flags&-2048;return`${bt}${ar?` (${Ie(ar)})`:""}`}},__debugFlowFlags:{get(){return de(this.flags,BO,!0)}},__debugToString:{value(){return _i(this)}}})}function qt(qe){return fr&&(typeof Object.setPrototypeOf=="function"?(Mr||(Mr=Object.create(Object.prototype),ft(Mr)),Object.setPrototypeOf(qe,Mr)):ft(qe)),qe}e.attachFlowNodeDebugInfo=qt;let Hr;function bi(qe){"__tsDebuggerDisplay"in qe||Object.defineProperties(qe,{__tsDebuggerDisplay:{value(bt){return bt=String(bt).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${bt}`}}})}function us(qe){fr&&(typeof Object.setPrototypeOf=="function"?(Hr||(Hr=Object.create(Array.prototype),bi(Hr)),Object.setPrototypeOf(qe,Hr)):bi(qe))}e.attachNodeArrayDebugInfo=us;function At(){if(fr)return;let qe=new WeakMap,bt=new WeakMap;Object.defineProperties(bu.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let tn=this.flags&33554432?"TransientSymbol":"Symbol",Xn=this.flags&-33554433;return`${tn} '${kc(this)}'${Xn?` (${ae(Xn)})`:""}`}},__debugFlags:{get(){return ae(this.flags)}}}),Object.defineProperties(bu.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let tn=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Xn=this.flags&524288?this.objectFlags&-1344:0;return`${tn}${this.symbol?` '${kc(this.symbol)}'`:""}${Xn?` (${Ne(Xn)})`:""}`}},__debugFlags:{get(){return Ue(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Ne(this.objectFlags):""}},__debugTypeToString:{value(){let tn=qe.get(this);return tn===void 0&&(tn=this.checker.typeToString(this),qe.set(this,tn)),tn}}}),Object.defineProperties(bu.getSignatureConstructor().prototype,{__debugFlags:{get(){return te(this.flags)}},__debugSignatureToString:{value(){var tn;return(tn=this.checker)==null?void 0:tn.signatureToString(this)}}});let ar=[bu.getNodeConstructor(),bu.getIdentifierConstructor(),bu.getTokenConstructor(),bu.getSourceFileConstructor()];for(let tn of ar)_o(tn.prototype,"__debugKind")||Object.defineProperties(tn.prototype,{__tsDebuggerDisplay:{value(){return`${ec(this)?"GeneratedIdentifier":Be(this)?`Identifier '${Fn(this)}'`:zi(this)?`PrivateIdentifier '${Fn(this)}'`:ya(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Hp(this)?`NumericLiteral ${this.text}`:pI(this)?`BigIntLiteral ${this.text}n`:Ho(this)?"TypeParameterDeclaration":Gi(this)?"ParameterDeclaration":yc(this)?"ConstructorDeclaration":B_(this)?"GetAccessorDeclaration":uf(this)?"SetAccessorDeclaration":B2(this)?"CallSignatureDeclaration":zA(this)?"ConstructSignatureDeclaration":Pb(this)?"IndexSignatureDeclaration":z2(this)?"TypePredicateNode":Pf(this)?"TypeReferenceNode":Pg(this)?"FunctionTypeNode":fI(this)?"ConstructorTypeNode":FS(this)?"TypeQueryNode":Dp(this)?"TypeLiteralNode":l4(this)?"ArrayTypeNode":G2(this)?"TupleTypeNode":l7(this)?"OptionalTypeNode":u7(this)?"RestTypeNode":sv(this)?"UnionTypeNode":J2(this)?"IntersectionTypeNode":jS(this)?"ConditionalTypeNode":gk(this)?"InferTypeNode":hk(this)?"ParenthesizedTypeNode":GA(this)?"ThisTypeNode":J0(this)?"TypeOperatorNode":LS(this)?"IndexedAccessTypeNode":yk(this)?"MappedTypeNode":av(this)?"LiteralTypeNode":_I(this)?"NamedTupleMember":Hm(this)?"ImportTypeNode":Se(this.kind)}${this.flags?` (${ee(this.flags)})`:""}`}},__debugKind:{get(){return Se(this.kind)}},__debugNodeFlags:{get(){return ee(this.flags)}},__debugModifierFlags:{get(){return ke(Ore(this))}},__debugTransformFlags:{get(){return Oe(this.transformFlags)}},__debugIsParseTreeNode:{get(){return EP(this)}},__debugEmitFlags:{get(){return nt(Oa(this))}},__debugGetText:{value(Xn){if(ko(this))return"";let ei=bt.get(this);if(ei===void 0){let Mi=As(this),js=Mi&&Nr(Mi);ei=js?hS(js,Mi,Xn):"",bt.set(this,ei)}return ei}}});fr=!0}e.enableDebugInfo=At;function Un(qe){let bt=qe&7,ar=bt===0?"in out":bt===3?"[bivariant]":bt===2?"in":bt===1?"out":bt===4?"[independent]":"";return qe&8?ar+=" (unmeasurable)":qe&16&&(ar+=" (unreliable)"),ar}e.formatVariance=Un;class rs{__debugToString(){var bt;switch(this.kind){case 3:return((bt=this.debugInfo)==null?void 0:bt.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return LT(this.sources,this.targets||kr(this.sources,()=>"any"),(ar,tn)=>`${ar.__debugTypeToString()} -> ${typeof tn=="string"?tn:tn.__debugTypeToString()}`).join(", ");case 2:return LT(this.sources,this.targets,(ar,tn)=>`${ar.__debugTypeToString()} -> ${tn().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
|
|
`).join(`
|
|
`)}
|
|
m2: ${this.mapper2.__debugToString().split(`
|
|
`).join(`
|
|
`)}`;default:return z(this)}}}e.DebugTypeMapper=rs;function zn(qe){return e.isDebugging?Object.setPrototypeOf(qe,rs.prototype):qe}e.attachDebugPrototypeIfDebug=zn;function Sn(qe){return console.log(_i(qe))}e.printControlFlowGraph=Sn;function _i(qe){let bt=-1;function ar(q){return q.id||(q.id=bt,bt--),q.id}let tn;(q=>{q.lr="\u2500",q.ud="\u2502",q.dr="\u256D",q.dl="\u256E",q.ul="\u256F",q.ur="\u2570",q.udr="\u251C",q.udl="\u2524",q.dlr="\u252C",q.ulr="\u2534",q.udlr="\u256B"})(tn||(tn={}));let Xn;(q=>{q[q.None=0]="None",q[q.Up=1]="Up",q[q.Down=2]="Down",q[q.Left=4]="Left",q[q.Right=8]="Right",q[q.UpDown=3]="UpDown",q[q.LeftRight=12]="LeftRight",q[q.UpLeft=5]="UpLeft",q[q.UpRight=9]="UpRight",q[q.DownLeft=6]="DownLeft",q[q.DownRight=10]="DownRight",q[q.UpDownLeft=7]="UpDownLeft",q[q.UpDownRight=11]="UpDownRight",q[q.UpLeftRight=13]="UpLeftRight",q[q.DownLeftRight=14]="DownLeftRight",q[q.UpDownLeftRight=15]="UpDownLeftRight",q[q.NoChildren=16]="NoChildren"})(Xn||(Xn={}));let ei=2032,Mi=882,js=Object.create(null),oa=[],wr=[],Ds=Pt(qe,new Set);for(let q of oa)q.text=Ae(q.flowNode,q.circular),kt(q);let tt=Tt(Ds),Mt=Rt(tt);return Ye(Ds,0),wt();function se(q){return!!(q.flags&128)}function pt(q){return!!(q.flags&12)&&!!q.antecedent}function Z(q){return!!(q.flags&ei)}function Ee(q){return!!(q.flags&Mi)}function et(q){let vt=[];for(let jt of q.edges)jt.source===q&&vt.push(jt.target);return vt}function at(q){let vt=[];for(let jt of q.edges)jt.target===q&&vt.push(jt.source);return vt}function Pt(q,vt){let jt=ar(q),Ce=js[jt];if(Ce&&vt.has(q))return Ce.circular=!0,Ce={id:-1,flowNode:q,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},oa.push(Ce),Ce;if(vt.add(q),!Ce)if(js[jt]=Ce={id:jt,flowNode:q,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},oa.push(Ce),pt(q))for(let ut of q.antecedent)Le(Ce,ut,vt);else Z(q)&&Le(Ce,q.antecedent,vt);return vt.delete(q),Ce}function Le(q,vt,jt){let Ce=Pt(vt,jt),ut={source:q,target:Ce};wr.push(ut),q.edges.push(ut),Ce.edges.push(ut)}function kt(q){if(q.level!==-1)return q.level;let vt=0;for(let jt of at(q))vt=Math.max(vt,kt(jt)+1);return q.level=vt}function Tt(q){let vt=0;for(let jt of et(q))vt=Math.max(vt,Tt(jt));return vt+1}function Rt(q){let vt=j(Array(q),0);for(let jt of oa)vt[jt.level]=Math.max(vt[jt.level],jt.text.length);return vt}function Ye(q,vt){if(q.lane===-1){q.lane=vt,q.endLane=vt;let jt=et(q);for(let Ce=0;Ce<jt.length;Ce++){Ce>0&&vt++;let ut=jt[Ce];Ye(ut,vt),ut.endLane>q.endLane&&(vt=ut.endLane)}q.endLane=vt}}function Gt(q){if(q&2)return"Start";if(q&4)return"Branch";if(q&8)return"Loop";if(q&16)return"Assignment";if(q&32)return"True";if(q&64)return"False";if(q&128)return"SwitchClause";if(q&256)return"ArrayMutation";if(q&512)return"Call";if(q&1024)return"ReduceLabel";if(q&1)return"Unreachable";throw new Error}function ln(q){let vt=Nr(q);return hS(vt,q,!1)}function Ae(q,vt){let jt=Gt(q.flags);if(vt&&(jt=`${jt}#${ar(q)}`),se(q)){let Ce=[],{switchStatement:ut,clauseStart:Qt,clauseEnd:Zr}=q.node;for(let jr=Qt;jr<Zr;jr++){let Jr=ut.caseBlock.clauses[jr];qA(Jr)?Ce.push("default"):Ce.push(ln(Jr.expression))}jt+=` (${Ce.join(", ")})`}else Ee(q)&&q.node&&(jt+=` (${ln(q.node)})`);return vt==="circularity"?`Circular(${jt})`:jt}function wt(){let q=Mt.length,vt=WW(oa,0,Zr=>Zr.lane)+1,jt=j(Array(vt),""),Ce=Mt.map(()=>Array(vt)),ut=Mt.map(()=>j(Array(vt),0));for(let Zr of oa){Ce[Zr.level][Zr.lane]=Zr;let jr=et(Zr);for(let ct=0;ct<jr.length;ct++){let It=jr[ct],Ot=8;It.lane===Zr.lane&&(Ot|=4),ct>0&&(Ot|=1),ct<jr.length-1&&(Ot|=2),ut[Zr.level][It.lane]|=Ot}jr.length===0&&(ut[Zr.level][Zr.lane]|=16);let Jr=at(Zr);for(let ct=0;ct<Jr.length;ct++){let It=Jr[ct],Ot=4;ct>0&&(Ot|=1),ct<Jr.length-1&&(Ot|=2),ut[Zr.level-1][It.lane]|=Ot}}for(let Zr=0;Zr<q;Zr++)for(let jr=0;jr<vt;jr++){let Jr=Zr>0?ut[Zr-1][jr]:0,ct=jr>0?ut[Zr][jr-1]:0,It=ut[Zr][jr];It||(Jr&8&&(It|=12),ct&2&&(It|=3),ut[Zr][jr]=It)}for(let Zr=0;Zr<q;Zr++)for(let jr=0;jr<jt.length;jr++){let Jr=ut[Zr][jr],ct=Jr&4?"\u2500":" ",It=Ce[Zr][jr];It?(Qt(jr,It.text),Zr<q-1&&(Qt(jr," "),Qt(jr,je(ct,Mt[Zr]-It.text.length)))):Zr<q-1&&Qt(jr,je(ct,Mt[Zr]+1)),Qt(jr,fe(Jr)),Qt(jr,Jr&8&&Zr<q-1&&!Ce[Zr+1][jr]?"\u2500":" ")}return`
|
|
${jt.join(`
|
|
`)}
|
|
`;function Qt(Zr,jr){jt[Zr]+=jr}}function fe(q){switch(q){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256F";case 9:return"\u2570";case 6:return"\u256E";case 10:return"\u256D";case 7:return"\u2524";case 11:return"\u251C";case 13:return"\u2534";case 14:return"\u252C";case 15:return"\u256B"}return" "}function j(q,vt){if(q.fill)q.fill(vt);else for(let jt=0;jt<q.length;jt++)q[jt]=vt;return q}function je(q,vt){if(q.repeat)return vt>0?q.repeat(vt):"";let jt="";for(;jt.length<vt;)jt+=q;return jt}}e.formatControlFlowGraph=_i})(w||(w={}));var CLe=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,wLe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,ILe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,DLe=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,PLe=/^[a-z0-9-]+$/i,Nve=/^(?:0|[1-9]\d*)$/,YY=class CO{constructor(t,n=0,i=0,s="",o=""){typeof t=="string"&&({major:t,minor:n,patch:i,prerelease:s,build:o}=w.checkDefined(Mve(t),"Invalid version")),w.assert(t>=0,"Invalid argument: major"),w.assert(n>=0,"Invalid argument: minor"),w.assert(i>=0,"Invalid argument: patch");let c=s?gs(s)?s:s.split("."):Ke,p=o?gs(o)?o:o.split("."):Ke;w.assert(Fi(c,u=>ILe.test(u)),"Invalid argument: prerelease"),w.assert(Fi(p,u=>PLe.test(u)),"Invalid argument: build"),this.major=t,this.minor=n,this.patch=i,this.prerelease=c,this.build=p}static tryParse(t){let n=Mve(t);if(!n)return;let{major:i,minor:s,patch:o,prerelease:c,build:p}=n;return new CO(i,s,o,c,p)}compareTo(t){return this===t?0:t===void 0?1:Po(this.major,t.major)||Po(this.minor,t.minor)||Po(this.patch,t.patch)||ALe(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new CO(this.major+1,0,0);case"minor":return new CO(this.major,this.minor+1,0);case"patch":return new CO(this.major,this.minor,this.patch+1);default:return w.assertNever(t)}}with(t){let{major:n=this.major,minor:i=this.minor,patch:s=this.patch,prerelease:o=this.prerelease,build:c=this.build}=t;return new CO(n,i,s,o,c)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return _t(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),_t(this.build)&&(t+=`+${this.build.join(".")}`),t}};YY.zero=new YY(0,0,0,["0"]);var Zd=YY;function Mve(e){let t=CLe.exec(e);if(!t)return;let[,n,i="0",s="0",o="",c=""]=t;if(!(o&&!wLe.test(o))&&!(c&&!DLe.test(c)))return{major:parseInt(n,10),minor:parseInt(i,10),patch:parseInt(s,10),prerelease:o,build:c}}function ALe(e,t){if(e===t)return 0;if(e.length===0)return t.length===0?0:1;if(t.length===0)return-1;let n=Math.min(e.length,t.length);for(let i=0;i<n;i++){let s=e[i],o=t[i];if(s===o)continue;let c=Nve.test(s),p=Nve.test(o);if(c||p){if(c!==p)return c?-1:1;let u=Po(+s,+o);if(u)return u}else{let u=Eu(s,o);if(u)return u}}return Po(e.length,t.length)}var WO=class g5e{constructor(t){this._alternatives=t?w.checkDefined(Rve(t),"Invalid range spec."):Ke}static tryParse(t){let n=Rve(t);if(n){let i=new g5e("");return i._alternatives=n,i}}test(t){return typeof t=="string"&&(t=new Zd(t)),LLe(t,this._alternatives)}toString(){return zLe(this._alternatives)}},ELe=/\|\|/,NLe=/\s+/,MLe=/^([x*0]|[1-9]\d*)(?:\.([x*0]|[1-9]\d*)(?:\.([x*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,RLe=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,OLe=/^([~^<>=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i;function Rve(e){let t=[];for(let n of e.trim().split(ELe)){if(!n)continue;let i=[];n=n.trim();let s=RLe.exec(n);if(s){if(!FLe(s[1],s[2],i))return}else for(let o of n.split(NLe)){let c=OLe.exec(o.trim());if(!c||!jLe(c[1],c[2],i))return}t.push(i)}return t}function ZY(e){let t=MLe.exec(e);if(!t)return;let[,n,i="*",s="*",o,c]=t;return{version:new Zd(cd(n)?0:parseInt(n,10),cd(n)||cd(i)?0:parseInt(i,10),cd(n)||cd(i)||cd(s)?0:parseInt(s,10),o,c),major:n,minor:i,patch:s}}function FLe(e,t,n){let i=ZY(e);if(!i)return!1;let s=ZY(t);return s?(cd(i.major)||n.push(bg(">=",i.version)),cd(s.major)||n.push(cd(s.minor)?bg("<",s.version.increment("major")):cd(s.patch)?bg("<",s.version.increment("minor")):bg("<=",s.version)),!0):!1}function jLe(e,t,n){let i=ZY(t);if(!i)return!1;let{version:s,major:o,minor:c,patch:p}=i;if(cd(o))(e==="<"||e===">")&&n.push(bg("<",Zd.zero));else switch(e){case"~":n.push(bg(">=",s)),n.push(bg("<",s.increment(cd(c)?"major":"minor")));break;case"^":n.push(bg(">=",s)),n.push(bg("<",s.increment(s.major>0||cd(c)?"major":s.minor>0||cd(p)?"minor":"patch")));break;case"<":case">=":n.push(cd(c)||cd(p)?bg(e,s.with({prerelease:"0"})):bg(e,s));break;case"<=":case">":n.push(cd(c)?bg(e==="<="?"<":">=",s.increment("major").with({prerelease:"0"})):cd(p)?bg(e==="<="?"<":">=",s.increment("minor").with({prerelease:"0"})):bg(e,s));break;case"=":case void 0:cd(c)||cd(p)?(n.push(bg(">=",s.with({prerelease:"0"}))),n.push(bg("<",s.increment(cd(c)?"major":"minor").with({prerelease:"0"})))):n.push(bg("=",s));break;default:return!1}return!0}function cd(e){return e==="*"||e==="x"||e==="X"}function bg(e,t){return{operator:e,operand:t}}function LLe(e,t){if(t.length===0)return!0;for(let n of t)if(WLe(e,n))return!0;return!1}function WLe(e,t){for(let n of t)if(!BLe(e,n.operator,n.operand))return!1;return!0}function BLe(e,t,n){let i=e.compareTo(n);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return w.assertNever(t)}}function zLe(e){return kr(e,GLe).join(" || ")||"*"}function GLe(e){return kr(e,JLe).join(" ")}function JLe(e){return`${e.operator}${e.operand}`}function ULe(){if($W())try{let{performance:e}=l5e();if(e)return{shouldWriteNativeEvents:!1,performance:e}}catch{}if(typeof performance=="object")return{shouldWriteNativeEvents:!0,performance}}function VLe(){let e=ULe();if(!e)return;let{shouldWriteNativeEvents:t,performance:n}=e,i={shouldWriteNativeEvents:t,performance:void 0,performanceTime:void 0};return typeof n.timeOrigin=="number"&&typeof n.now=="function"&&(i.performanceTime=n),i.performanceTime&&typeof n.mark=="function"&&typeof n.measure=="function"&&typeof n.clearMarks=="function"&&typeof n.clearMeasures=="function"&&(i.performance=n),i}var eZ=VLe(),Ove=eZ?.performanceTime;function tZ(){return eZ}var bo=Ove?()=>Ove.now():Date.now,rZ={};it(rZ,{clearMarks:()=>zve,clearMeasures:()=>Bve,createTimer:()=>HW,createTimerIf:()=>Fve,disable:()=>sZ,enable:()=>KW,forEachMark:()=>Wve,forEachMeasure:()=>QW,getCount:()=>Lve,getDuration:()=>vP,isEnabled:()=>iZ,mark:()=>dc,measure:()=>P_,nullTimer:()=>nZ});var mP,BT;function Fve(e,t,n,i){return e?HW(t,n,i):nZ}function HW(e,t,n){let i=0;return{enter:s,exit:o};function s(){++i===1&&dc(t)}function o(){--i===0?(dc(n),P_(e,t,n)):i<0&&w.fail("enter/exit count does not match.")}}var nZ={enter:no,exit:no},gP=!1,jve=bo(),hP=new Map,dM=new Map,yP=new Map;function dc(e){if(gP){let t=dM.get(e)??0;dM.set(e,t+1),hP.set(e,bo()),BT?.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function P_(e,t,n){if(gP){let i=(n!==void 0?hP.get(n):void 0)??bo(),s=(t!==void 0?hP.get(t):void 0)??jve,o=yP.get(e)||0;yP.set(e,o+(i-s)),BT?.measure(e,t,n)}}function Lve(e){return dM.get(e)||0}function vP(e){return yP.get(e)||0}function QW(e){yP.forEach((t,n)=>e(n,t))}function Wve(e){hP.forEach((t,n)=>e(n))}function Bve(e){e!==void 0?yP.delete(e):yP.clear(),BT?.clearMeasures(e)}function zve(e){e!==void 0?(dM.delete(e),hP.delete(e)):(dM.clear(),hP.clear()),BT?.clearMarks(e)}function iZ(){return gP}function KW(e=Nl){var t;return gP||(gP=!0,mP||(mP=tZ()),mP?.performance&&(jve=mP.performance.timeOrigin,(mP.shouldWriteNativeEvents||(t=e?.cpuProfilingEnabled)!=null&&t.call(e)||e?.debugMode)&&(BT=mP.performance))),!0}function sZ(){gP&&(hP.clear(),dM.clear(),yP.clear(),BT=void 0,gP=!1)}var mn,mM;(e=>{let t,n=0,i=0,s,o=[],c,p=[];function u(X,U,_e){if(w.assert(!mn,"Tracing already started"),t===void 0)try{t=_ve()}catch(le){throw new Error(`tracing requires having fs
|
|
(original error: ${le.message||le})`)}s=X,o.length=0,c===void 0&&(c=Jn(U,"legend.json")),t.existsSync(U)||t.mkdirSync(U,{recursive:!0});let re=s==="build"?`.${process.pid}-${++n}`:s==="server"?`.${process.pid}`:"",V=Jn(U,`trace${re}.json`),ce=Jn(U,`types${re}.json`);p.push({configFilePath:_e,tracePath:V,typesPath:ce}),i=t.openSync(V,"w"),mn=e;let oe={cat:"__metadata",ph:"M",ts:1e3*bo(),pid:1,tid:1};t.writeSync(i,`[
|
|
`+[{name:"process_name",args:{name:"tsc"},...oe},{name:"thread_name",args:{name:"Main"},...oe},{name:"TracingStartedInBrowser",...oe,cat:"disabled-by-default-devtools.timeline"}].map(le=>JSON.stringify(le)).join(`,
|
|
`))}e.startTracing=u;function g(){w.assert(mn,"Tracing is not in progress"),w.assert(!!o.length==(s!=="server")),t.writeSync(i,`
|
|
]
|
|
`),t.closeSync(i),mn=void 0,o.length?z(o):p[p.length-1].typesPath=void 0}e.stopTracing=g;function d(X){s!=="server"&&o.push(X)}e.recordType=d;let h;(X=>{X.Parse="parse",X.Program="program",X.Bind="bind",X.Check="check",X.CheckTypes="checkTypes",X.Emit="emit",X.Session="session"})(h=e.Phase||(e.Phase={}));function S(X,U,_e){O("I",X,U,_e,'"s":"g"')}e.instant=S;let T=[];function x(X,U,_e,re=!1){re&&O("B",X,U,_e),T.push({phase:X,name:U,args:_e,time:1e3*bo(),separateBeginAndEnd:re})}e.push=x;function I(X){w.assert(T.length>0),F(T.length-1,1e3*bo(),X),T.length--}e.pop=I;function P(){let X=1e3*bo();for(let U=T.length-1;U>=0;U--)F(U,X);T.length=0}e.popAll=P;let E=1e3*10;function F(X,U,_e){let{phase:re,name:V,args:ce,time:oe,separateBeginAndEnd:le}=T[X];le?(w.assert(!_e,"`results` are not supported for events with `separateBeginAndEnd`"),O("E",re,V,ce,void 0,U)):E-oe%E<=U-oe&&O("X",re,V,{...ce,results:_e},`"dur":${U-oe}`,oe)}function O(X,U,_e,re,V,ce=1e3*bo()){s==="server"&&U==="checkTypes"||(dc("beginTracing"),t.writeSync(i,`,
|
|
{"pid":1,"tid":1,"ph":"${X}","cat":"${U}","ts":${ce},"name":"${_e}"`),V&&t.writeSync(i,`,${V}`),re&&t.writeSync(i,`,"args":${JSON.stringify(re)}`),t.writeSync(i,"}"),dc("endTracing"),P_("Tracing","beginTracing","endTracing"))}function W(X){let U=Nr(X);return U?{path:U.path,start:_e(Hs(U,X.pos)),end:_e(Hs(U,X.end))}:void 0;function _e(re){return{line:re.line+1,character:re.character+1}}}function z(X){var U,_e,re,V,ce,oe,le,de,ve,H,Se,Je,ye,ee,ge,ke,Oe,nt,ae;dc("beginDumpTypes");let Ue=p[p.length-1].typesPath,te=t.openSync(Ue,"w"),Ne=new Map;t.writeSync(te,"[");let Ie=X.length;for(let xe=0;xe<Ie;xe++){let Qe=X[xe],St=Qe.objectFlags,Bt=Qe.aliasSymbol??Qe.symbol,fr;if(St&16|Qe.flags&2944)try{fr=(U=Qe.checker)==null?void 0:U.typeToString(Qe)}catch{fr=void 0}let Mr={};if(Qe.flags&8388608){let zn=Qe;Mr={indexedAccessObjectType:(_e=zn.objectType)==null?void 0:_e.id,indexedAccessIndexType:(re=zn.indexType)==null?void 0:re.id}}let ft={};if(St&4){let zn=Qe;ft={instantiatedType:(V=zn.target)==null?void 0:V.id,typeArguments:(ce=zn.resolvedTypeArguments)==null?void 0:ce.map(Sn=>Sn.id),referenceLocation:W(zn.node)}}let qt={};if(Qe.flags&16777216){let zn=Qe;qt={conditionalCheckType:(oe=zn.checkType)==null?void 0:oe.id,conditionalExtendsType:(le=zn.extendsType)==null?void 0:le.id,conditionalTrueType:((de=zn.resolvedTrueType)==null?void 0:de.id)??-1,conditionalFalseType:((ve=zn.resolvedFalseType)==null?void 0:ve.id)??-1}}let Hr={};if(Qe.flags&33554432){let zn=Qe;Hr={substitutionBaseType:(H=zn.baseType)==null?void 0:H.id,constraintType:(Se=zn.constraint)==null?void 0:Se.id}}let bi={};if(St&1024){let zn=Qe;bi={reverseMappedSourceType:(Je=zn.source)==null?void 0:Je.id,reverseMappedMappedType:(ye=zn.mappedType)==null?void 0:ye.id,reverseMappedConstraintType:(ee=zn.constraintType)==null?void 0:ee.id}}let us={};if(St&256){let zn=Qe;us={evolvingArrayElementType:zn.elementType.id,evolvingArrayFinalType:(ge=zn.finalArrayType)==null?void 0:ge.id}}let At,Un=Qe.checker.getRecursionIdentity(Qe);Un&&(At=Ne.get(Un),At||(At=Ne.size,Ne.set(Un,At)));let rs={id:Qe.id,intrinsicName:Qe.intrinsicName,symbolName:Bt?.escapedName&&Ai(Bt.escapedName),recursionId:At,isTuple:St&8?!0:void 0,unionTypes:Qe.flags&1048576?(ke=Qe.types)==null?void 0:ke.map(zn=>zn.id):void 0,intersectionTypes:Qe.flags&2097152?Qe.types.map(zn=>zn.id):void 0,aliasTypeArguments:(Oe=Qe.aliasTypeArguments)==null?void 0:Oe.map(zn=>zn.id),keyofType:Qe.flags&4194304?(nt=Qe.type)==null?void 0:nt.id:void 0,...Mr,...ft,...qt,...Hr,...bi,...us,destructuringPattern:W(Qe.pattern),firstDeclaration:W((ae=Bt?.declarations)==null?void 0:ae[0]),flags:w.formatTypeFlags(Qe.flags).split("|"),display:fr};t.writeSync(te,JSON.stringify(rs)),xe<Ie-1&&t.writeSync(te,`,
|
|
`)}t.writeSync(te,`]
|
|
`),t.closeSync(te),dc("endDumpTypes"),P_("Dump types","beginDumpTypes","endDumpTypes")}function $(){c&&t.writeFileSync(c,JSON.stringify(p))}e.dumpLegend=$})(mM||(mM={}));var aZ=mM.startTracing,oZ=mM.dumpLegend,XW=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.DeferKeyword=166]="DeferKeyword",e[e.QualifiedName=167]="QualifiedName",e[e.ComputedPropertyName=168]="ComputedPropertyName",e[e.TypeParameter=169]="TypeParameter",e[e.Parameter=170]="Parameter",e[e.Decorator=171]="Decorator",e[e.PropertySignature=172]="PropertySignature",e[e.PropertyDeclaration=173]="PropertyDeclaration",e[e.MethodSignature=174]="MethodSignature",e[e.MethodDeclaration=175]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=176]="ClassStaticBlockDeclaration",e[e.Constructor=177]="Constructor",e[e.GetAccessor=178]="GetAccessor",e[e.SetAccessor=179]="SetAccessor",e[e.CallSignature=180]="CallSignature",e[e.ConstructSignature=181]="ConstructSignature",e[e.IndexSignature=182]="IndexSignature",e[e.TypePredicate=183]="TypePredicate",e[e.TypeReference=184]="TypeReference",e[e.FunctionType=185]="FunctionType",e[e.ConstructorType=186]="ConstructorType",e[e.TypeQuery=187]="TypeQuery",e[e.TypeLiteral=188]="TypeLiteral",e[e.ArrayType=189]="ArrayType",e[e.TupleType=190]="TupleType",e[e.OptionalType=191]="OptionalType",e[e.RestType=192]="RestType",e[e.UnionType=193]="UnionType",e[e.IntersectionType=194]="IntersectionType",e[e.ConditionalType=195]="ConditionalType",e[e.InferType=196]="InferType",e[e.ParenthesizedType=197]="ParenthesizedType",e[e.ThisType=198]="ThisType",e[e.TypeOperator=199]="TypeOperator",e[e.IndexedAccessType=200]="IndexedAccessType",e[e.MappedType=201]="MappedType",e[e.LiteralType=202]="LiteralType",e[e.NamedTupleMember=203]="NamedTupleMember",e[e.TemplateLiteralType=204]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=205]="TemplateLiteralTypeSpan",e[e.ImportType=206]="ImportType",e[e.ObjectBindingPattern=207]="ObjectBindingPattern",e[e.ArrayBindingPattern=208]="ArrayBindingPattern",e[e.BindingElement=209]="BindingElement",e[e.ArrayLiteralExpression=210]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=211]="ObjectLiteralExpression",e[e.PropertyAccessExpression=212]="PropertyAccessExpression",e[e.ElementAccessExpression=213]="ElementAccessExpression",e[e.CallExpression=214]="CallExpression",e[e.NewExpression=215]="NewExpression",e[e.TaggedTemplateExpression=216]="TaggedTemplateExpression",e[e.TypeAssertionExpression=217]="TypeAssertionExpression",e[e.ParenthesizedExpression=218]="ParenthesizedExpression",e[e.FunctionExpression=219]="FunctionExpression",e[e.ArrowFunction=220]="ArrowFunction",e[e.DeleteExpression=221]="DeleteExpression",e[e.TypeOfExpression=222]="TypeOfExpression",e[e.VoidExpression=223]="VoidExpression",e[e.AwaitExpression=224]="AwaitExpression",e[e.PrefixUnaryExpression=225]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=226]="PostfixUnaryExpression",e[e.BinaryExpression=227]="BinaryExpression",e[e.ConditionalExpression=228]="ConditionalExpression",e[e.TemplateExpression=229]="TemplateExpression",e[e.YieldExpression=230]="YieldExpression",e[e.SpreadElement=231]="SpreadElement",e[e.ClassExpression=232]="ClassExpression",e[e.OmittedExpression=233]="OmittedExpression",e[e.ExpressionWithTypeArguments=234]="ExpressionWithTypeArguments",e[e.AsExpression=235]="AsExpression",e[e.NonNullExpression=236]="NonNullExpression",e[e.MetaProperty=237]="MetaProperty",e[e.SyntheticExpression=238]="SyntheticExpression",e[e.SatisfiesExpression=239]="SatisfiesExpression",e[e.TemplateSpan=240]="TemplateSpan",e[e.SemicolonClassElement=241]="SemicolonClassElement",e[e.Block=242]="Block",e[e.EmptyStatement=243]="EmptyStatement",e[e.VariableStatement=244]="VariableStatement",e[e.ExpressionStatement=245]="ExpressionStatement",e[e.IfStatement=246]="IfStatement",e[e.DoStatement=247]="DoStatement",e[e.WhileStatement=248]="WhileStatement",e[e.ForStatement=249]="ForStatement",e[e.ForInStatement=250]="ForInStatement",e[e.ForOfStatement=251]="ForOfStatement",e[e.ContinueStatement=252]="ContinueStatement",e[e.BreakStatement=253]="BreakStatement",e[e.ReturnStatement=254]="ReturnStatement",e[e.WithStatement=255]="WithStatement",e[e.SwitchStatement=256]="SwitchStatement",e[e.LabeledStatement=257]="LabeledStatement",e[e.ThrowStatement=258]="ThrowStatement",e[e.TryStatement=259]="TryStatement",e[e.DebuggerStatement=260]="DebuggerStatement",e[e.VariableDeclaration=261]="VariableDeclaration",e[e.VariableDeclarationList=262]="VariableDeclarationList",e[e.FunctionDeclaration=263]="FunctionDeclaration",e[e.ClassDeclaration=264]="ClassDeclaration",e[e.InterfaceDeclaration=265]="InterfaceDeclaration",e[e.TypeAliasDeclaration=266]="TypeAliasDeclaration",e[e.EnumDeclaration=267]="EnumDeclaration",e[e.ModuleDeclaration=268]="ModuleDeclaration",e[e.ModuleBlock=269]="ModuleBlock",e[e.CaseBlock=270]="CaseBlock",e[e.NamespaceExportDeclaration=271]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=272]="ImportEqualsDeclaration",e[e.ImportDeclaration=273]="ImportDeclaration",e[e.ImportClause=274]="ImportClause",e[e.NamespaceImport=275]="NamespaceImport",e[e.NamedImports=276]="NamedImports",e[e.ImportSpecifier=277]="ImportSpecifier",e[e.ExportAssignment=278]="ExportAssignment",e[e.ExportDeclaration=279]="ExportDeclaration",e[e.NamedExports=280]="NamedExports",e[e.NamespaceExport=281]="NamespaceExport",e[e.ExportSpecifier=282]="ExportSpecifier",e[e.MissingDeclaration=283]="MissingDeclaration",e[e.ExternalModuleReference=284]="ExternalModuleReference",e[e.JsxElement=285]="JsxElement",e[e.JsxSelfClosingElement=286]="JsxSelfClosingElement",e[e.JsxOpeningElement=287]="JsxOpeningElement",e[e.JsxClosingElement=288]="JsxClosingElement",e[e.JsxFragment=289]="JsxFragment",e[e.JsxOpeningFragment=290]="JsxOpeningFragment",e[e.JsxClosingFragment=291]="JsxClosingFragment",e[e.JsxAttribute=292]="JsxAttribute",e[e.JsxAttributes=293]="JsxAttributes",e[e.JsxSpreadAttribute=294]="JsxSpreadAttribute",e[e.JsxExpression=295]="JsxExpression",e[e.JsxNamespacedName=296]="JsxNamespacedName",e[e.CaseClause=297]="CaseClause",e[e.DefaultClause=298]="DefaultClause",e[e.HeritageClause=299]="HeritageClause",e[e.CatchClause=300]="CatchClause",e[e.ImportAttributes=301]="ImportAttributes",e[e.ImportAttribute=302]="ImportAttribute",e[e.AssertClause=301]="AssertClause",e[e.AssertEntry=302]="AssertEntry",e[e.ImportTypeAssertionContainer=303]="ImportTypeAssertionContainer",e[e.PropertyAssignment=304]="PropertyAssignment",e[e.ShorthandPropertyAssignment=305]="ShorthandPropertyAssignment",e[e.SpreadAssignment=306]="SpreadAssignment",e[e.EnumMember=307]="EnumMember",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.JSDocTypeExpression=310]="JSDocTypeExpression",e[e.JSDocNameReference=311]="JSDocNameReference",e[e.JSDocMemberName=312]="JSDocMemberName",e[e.JSDocAllType=313]="JSDocAllType",e[e.JSDocUnknownType=314]="JSDocUnknownType",e[e.JSDocNullableType=315]="JSDocNullableType",e[e.JSDocNonNullableType=316]="JSDocNonNullableType",e[e.JSDocOptionalType=317]="JSDocOptionalType",e[e.JSDocFunctionType=318]="JSDocFunctionType",e[e.JSDocVariadicType=319]="JSDocVariadicType",e[e.JSDocNamepathType=320]="JSDocNamepathType",e[e.JSDoc=321]="JSDoc",e[e.JSDocComment=321]="JSDocComment",e[e.JSDocText=322]="JSDocText",e[e.JSDocTypeLiteral=323]="JSDocTypeLiteral",e[e.JSDocSignature=324]="JSDocSignature",e[e.JSDocLink=325]="JSDocLink",e[e.JSDocLinkCode=326]="JSDocLinkCode",e[e.JSDocLinkPlain=327]="JSDocLinkPlain",e[e.JSDocTag=328]="JSDocTag",e[e.JSDocAugmentsTag=329]="JSDocAugmentsTag",e[e.JSDocImplementsTag=330]="JSDocImplementsTag",e[e.JSDocAuthorTag=331]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=332]="JSDocDeprecatedTag",e[e.JSDocClassTag=333]="JSDocClassTag",e[e.JSDocPublicTag=334]="JSDocPublicTag",e[e.JSDocPrivateTag=335]="JSDocPrivateTag",e[e.JSDocProtectedTag=336]="JSDocProtectedTag",e[e.JSDocReadonlyTag=337]="JSDocReadonlyTag",e[e.JSDocOverrideTag=338]="JSDocOverrideTag",e[e.JSDocCallbackTag=339]="JSDocCallbackTag",e[e.JSDocOverloadTag=340]="JSDocOverloadTag",e[e.JSDocEnumTag=341]="JSDocEnumTag",e[e.JSDocParameterTag=342]="JSDocParameterTag",e[e.JSDocReturnTag=343]="JSDocReturnTag",e[e.JSDocThisTag=344]="JSDocThisTag",e[e.JSDocTypeTag=345]="JSDocTypeTag",e[e.JSDocTemplateTag=346]="JSDocTemplateTag",e[e.JSDocTypedefTag=347]="JSDocTypedefTag",e[e.JSDocSeeTag=348]="JSDocSeeTag",e[e.JSDocPropertyTag=349]="JSDocPropertyTag",e[e.JSDocThrowsTag=350]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=351]="JSDocSatisfiesTag",e[e.JSDocImportTag=352]="JSDocImportTag",e[e.SyntaxList=353]="SyntaxList",e[e.NotEmittedStatement=354]="NotEmittedStatement",e[e.NotEmittedTypeElement=355]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.SyntheticReferenceExpression=358]="SyntheticReferenceExpression",e[e.Count=359]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=166]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=183]="FirstTypeNode",e[e.LastTypeNode=206]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=166]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=244]="FirstStatement",e[e.LastStatement=260]="LastStatement",e[e.FirstNode=167]="FirstNode",e[e.FirstJSDocNode=310]="FirstJSDocNode",e[e.LastJSDocNode=352]="LastJSDocNode",e[e.FirstJSDocTagNode=328]="FirstJSDocTagNode",e[e.LastJSDocTagNode=352]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=166]="LastContextualKeyword",e))(XW||{}),YW=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(YW||{}),ZW=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(ZW||{}),cZ=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(cZ||{}),eB=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(eB||{}),lZ=(e=>(e[e.None=0]="None",e[e.Always=1]="Always",e[e.Never=2]="Never",e[e.Sometimes=3]="Sometimes",e))(lZ||{}),tB=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(tB||{}),uZ=(e=>(e[e.None=0]="None",e[e.HasIndices=1]="HasIndices",e[e.Global=2]="Global",e[e.IgnoreCase=4]="IgnoreCase",e[e.Multiline=8]="Multiline",e[e.DotAll=16]="DotAll",e[e.Unicode=32]="Unicode",e[e.UnicodeSets=64]="UnicodeSets",e[e.Sticky=128]="Sticky",e[e.AnyUnicodeMode=96]="AnyUnicodeMode",e[e.Modifiers=28]="Modifiers",e))(uZ||{}),pZ=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.PrecedingJSDocLeadingAsterisks=32768]="PrecedingJSDocLeadingAsterisks",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(pZ||{}),BO=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(BO||{}),fZ=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(fZ||{}),bP=class{},rB=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(rB||{}),_Z=(e=>(e[e.FilePreprocessingLibReferenceDiagnostic=0]="FilePreprocessingLibReferenceDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(_Z||{}),dZ=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e[e.BuilderSignature=2]="BuilderSignature",e))(dZ||{}),nB=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(nB||{}),mZ=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(mZ||{}),gZ=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(gZ||{}),hZ=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(hZ||{}),yZ=(e=>(e[e.None=0]="None",e[e.NoSupertypeReduction=1]="NoSupertypeReduction",e[e.NoConstraintReduction=2]="NoConstraintReduction",e))(yZ||{}),vZ=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(vZ||{}),bZ=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(bZ||{}),SZ=(e=>(e[e.None=0]="None",e[e.WriteComputedProps=1]="WriteComputedProps",e[e.NoSyntacticPrinter=2]="NoSyntacticPrinter",e[e.DoNotIncludeSymbolChain=4]="DoNotIncludeSymbolChain",e[e.AllowUnresolvedNames=8]="AllowUnresolvedNames",e))(SZ||{}),TZ=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",e))(TZ||{}),kZ=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(kZ||{}),xZ=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e[e.NotResolved=3]="NotResolved",e))(xZ||{}),CZ=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(CZ||{}),wZ=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(wZ||{}),iB=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(iB||{}),IZ=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(IZ||{}),DZ=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(DZ||{}),sB=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(sB||{}),aB=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(aB||{}),oB=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(oB||{}),PZ=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(PZ||{}),AZ=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(AZ||{}),EZ=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.AllowMissing=16]="AllowMissing",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(EZ||{}),NZ=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(NZ||{}),MZ=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(MZ||{}),RZ=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(RZ||{}),cB=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(cB||{}),OZ=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(OZ||{}),FZ=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(FZ||{}),jZ=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(jZ||{}),LZ=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(LZ||{}),WZ=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(WZ||{}),BZ=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(BZ||{}),zO=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(zO||{});function zT(e,t=!0){let n=zO[e.category];return t?n.toLowerCase():n}var Tw=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(Tw||{}),zZ=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(zZ||{}),GZ=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(GZ||{}),JZ=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(JZ||{}),UZ=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(UZ||{}),kw=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.Node18=101]="Node18",e[e.Node20=102]="Node20",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(kw||{}),VZ=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(VZ||{}),qZ=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(qZ||{}),$Z=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))($Z||{}),lB=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(lB||{}),HZ=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(HZ||{}),QZ=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(QZ||{}),KZ=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(KZ||{}),XZ=(e=>(e[e.EOF=-1]="EOF",e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(XZ||{}),YZ=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(YZ||{}),uB=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(uB||{}),pB=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(pB||{}),fB=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(fB||{}),ZZ=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(ZZ||{}),Jl={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99},eee=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.SetFunctionName=4194304]="SetFunctionName",e[e.PropKey=8388608]="PropKey",e[e.AddDisposableResourceAndDisposeResources=16777216]="AddDisposableResourceAndDisposeResources",e[e.RewriteRelativeImportExtension=33554432]="RewriteRelativeImportExtension",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(eee||{}),tee=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))(tee||{}),ree=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.ExpressionsWithTypeArguments=16]="ExpressionsWithTypeArguments",e[e.Satisfies=32]="Satisfies",e[e.Assertions=38]="Assertions",e[e.All=63]="All",e[e.ExcludeJSDocTypeAssertion=-2147483648]="ExcludeJSDocTypeAssertion",e))(ree||{}),nee=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(nee||{}),iee=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(iee||{}),see=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(see||{}),GO={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},aee=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(aee||{});function SP(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n);return t.toString()}function Gve(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}var oee=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(oee||{}),_B=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(_B||{}),bf=new Date(0);function Kx(e,t){return e.getModifiedTime(t)||bf}function cee(e){return{250:e.Low,500:e.Medium,2e3:e.High}}var dB={Low:32,Medium:64,High:256},mB=cee(dB),JO=cee(dB);function qLe(e){if(!e.getEnvironmentVariable)return;let t=s("TSC_WATCH_POLLINGINTERVAL",_B);mB=o("TSC_WATCH_POLLINGCHUNKSIZE",dB)||mB,JO=o("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",dB)||JO;function n(c,p){return e.getEnvironmentVariable(`${c}_${p.toUpperCase()}`)}function i(c){let p;return u("Low"),u("Medium"),u("High"),p;function u(g){let d=n(c,g);d&&((p||(p={}))[g]=Number(d))}}function s(c,p){let u=i(c);if(u)return g("Low"),g("Medium"),g("High"),!0;return!1;function g(d){p[d]=u[d]||p[d]}}function o(c,p){let u=i(c);return(t||u)&&cee(u?{...p,...u}:p)}}function Jve(e,t,n,i,s){let o=n;for(let p=t.length;i&&p;c(),p--){let u=t[n];if(u){if(u.isClosed){t[n]=void 0;continue}}else continue;i--;let g=KLe(u,Kx(e,u.fileName));if(u.isClosed){t[n]=void 0;continue}s?.(u,n,g),t[n]&&(o<n&&(t[o]=u,t[n]=void 0),o++)}return n;function c(){n++,n===t.length&&(o<n&&(t.length=o),n=0,o=0)}}function $Le(e){let t=[],n=[],i=p(250),s=p(500),o=p(2e3);return c;function c(P,E,F){let O={fileName:P,callback:E,unchangedPolls:0,mtime:Kx(e,P)};return t.push(O),S(O,F),{close:()=>{O.isClosed=!0,Hx(t,O)}}}function p(P){let E=[];return E.pollingInterval=P,E.pollIndex=0,E.pollScheduled=!1,E}function u(P,E){E.pollIndex=d(E,E.pollingInterval,E.pollIndex,mB[E.pollingInterval]),E.length?I(E.pollingInterval):(w.assert(E.pollIndex===0),E.pollScheduled=!1)}function g(P,E){d(n,250,0,n.length),u(P,E),!E.pollScheduled&&n.length&&I(250)}function d(P,E,F,O){return Jve(e,P,F,O,W);function W(z,$,X){X?(z.unchangedPolls=0,P!==n&&(P[$]=void 0,T(z))):z.unchangedPolls!==JO[E]?z.unchangedPolls++:P===n?(z.unchangedPolls=1,P[$]=void 0,S(z,250)):E!==2e3&&(z.unchangedPolls++,P[$]=void 0,S(z,E===250?500:2e3))}}function h(P){switch(P){case 250:return i;case 500:return s;case 2e3:return o}}function S(P,E){h(E).push(P),x(E)}function T(P){n.push(P),x(250)}function x(P){h(P).pollScheduled||I(P)}function I(P){h(P).pollScheduled=e.setTimeout(P===250?g:u,P,P===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",h(P))}}function HLe(e,t,n,i){let s=od(),o=i?new Map:void 0,c=new Map,p=hu(t);return u;function u(d,h,S,T){let x=p(d);s.add(x,h).length===1&&o&&o.set(x,n(d)||bf);let I=ti(x)||".",P=c.get(I)||g(ti(d)||".",I,T);return P.referenceCount++,{close:()=>{P.referenceCount===1?(P.close(),c.delete(I)):P.referenceCount--,s.remove(x,h)}}}function g(d,h,S){let T=e(d,1,(x,I)=>{if(!Is(I))return;let P=as(I,d),E=p(P),F=P&&s.get(E);if(F){let O,W=1;if(o){let z=o.get(E);if(x==="change"&&(O=n(P)||bf,O.getTime()===z.getTime()))return;O||(O=n(P)||bf),o.set(E,O),z===bf?W=0:O===bf&&(W=2)}for(let z of F)z(P,W,O)}},!1,500,S);return T.referenceCount=0,c.set(h,T),T}}function QLe(e){let t=[],n=0,i;return s;function s(p,u){let g={fileName:p,callback:u,mtime:Kx(e,p)};return t.push(g),c(),{close:()=>{g.isClosed=!0,Hx(t,g)}}}function o(){i=void 0,n=Jve(e,t,n,mB[250]),c()}function c(){!t.length||i||(i=e.setTimeout(o,2e3,"pollQueue"))}}function Uve(e,t,n,i,s){let c=hu(t)(n),p=e.get(c);return p?p.callbacks.push(i):e.set(c,{watcher:s((u,g,d)=>{var h;return(h=e.get(c))==null?void 0:h.callbacks.slice().forEach(S=>S(u,g,d))}),callbacks:[i]}),{close:()=>{let u=e.get(c);u&&(!_P(u.callbacks,i)||u.callbacks.length||(e.delete(c),J_(u)))}}}function KLe(e,t){let n=e.mtime.getTime(),i=t.getTime();return n!==i?(e.mtime=t,e.callback(e.fileName,gB(n,i),t),!0):!1}function gB(e,t){return e===0?0:t===0?2:1}var UO=["/node_modules/.","/.git","/.#"],Vve=no;function gM(e){return Vve(e)}function lee(e){Vve=e}function XLe({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:n,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:s,realpath:o,setTimeout:c,clearTimeout:p}){let u=new Map,g=od(),d=new Map,h,S=bw(!t),T=hu(t);return(U,_e,re,V)=>re?x(U,V,_e):e(U,_e,re,V);function x(U,_e,re,V){let ce=T(U),oe=u.get(ce);oe?oe.refCount++:(oe={watcher:e(U,de=>{var ve;$(de,_e)||(_e?.synchronousWatchDirectory?((ve=u.get(ce))!=null&&ve.targetWatcher||I(U,ce,de),z(U,ce,_e)):P(U,ce,de,_e))},!1,_e),refCount:1,childWatches:Ke,targetWatcher:void 0,links:void 0},u.set(ce,oe),z(U,ce,_e)),V&&(oe.links??(oe.links=new Set)).add(V);let le=re&&{dirName:U,callback:re};return le&&g.add(ce,le),{dirName:U,close:()=>{var de;let ve=w.checkDefined(u.get(ce));le&&g.remove(ce,le),V&&((de=ve.links)==null||de.delete(V)),ve.refCount--,!ve.refCount&&(u.delete(ce),ve.links=void 0,J_(ve),W(ve),ve.childWatches.forEach(Fd))}}}function I(U,_e,re,V){var ce,oe;let le,de;Is(re)?le=re:de=re,g.forEach((ve,H)=>{if(!(de&&de.get(H)===!0)&&(H===_e||Zi(_e,H)&&_e[H.length]===Ro))if(de)if(V){let Se=de.get(H);Se?Se.push(...V):de.set(H,V.slice())}else de.set(H,!0);else ve.forEach(({callback:Se})=>Se(le))}),(oe=(ce=u.get(_e))==null?void 0:ce.links)==null||oe.forEach(ve=>{let H=Se=>Jn(ve,n_(U,Se,T));de?I(ve,T(ve),de,V?.map(H)):I(ve,T(ve),H(le))})}function P(U,_e,re,V){let ce=u.get(_e);if(ce&&s(U,1)){E(U,_e,re,V);return}I(U,_e,re),W(ce),O(ce)}function E(U,_e,re,V){let ce=d.get(_e);ce?ce.fileNames.push(re):d.set(_e,{dirName:U,options:V,fileNames:[re]}),h&&(p(h),h=void 0),h=c(F,1e3,"timerToUpdateChildWatches")}function F(){var U;h=void 0,gM(`sysLog:: onTimerToUpdateChildWatches:: ${d.size}`);let _e=bo(),re=new Map;for(;!h&&d.size;){let ce=d.entries().next();w.assert(!ce.done);let{value:[oe,{dirName:le,options:de,fileNames:ve}]}=ce;d.delete(oe);let H=z(le,oe,de);(U=u.get(oe))!=null&&U.targetWatcher||I(le,oe,re,H?void 0:ve)}gM(`sysLog:: invokingWatchers:: Elapsed:: ${bo()-_e}ms:: ${d.size}`),g.forEach((ce,oe)=>{let le=re.get(oe);le&&ce.forEach(({callback:de,dirName:ve})=>{gs(le)?le.forEach(de):de(ve)})});let V=bo()-_e;gM(`sysLog:: Elapsed:: ${V}ms:: onTimerToUpdateChildWatches:: ${d.size} ${h}`)}function O(U){if(!U)return;let _e=U.childWatches;U.childWatches=Ke;for(let re of _e)re.close(),O(u.get(T(re.dirName)))}function W(U){U?.targetWatcher&&(U.targetWatcher.close(),U.targetWatcher=void 0)}function z(U,_e,re){let V=u.get(_e);if(!V)return!1;let ce=ra(o(U)),oe,le;return S(ce,U)===0?oe=LO(s(U,1)?Ji(i(U),H=>{let Se=as(H,U);return!$(Se,re)&&S(Se,ra(o(Se)))===0?Se:void 0}):Ke,V.childWatches,(H,Se)=>S(H,Se.dirName),de,Fd,ve):V.targetWatcher&&S(ce,V.targetWatcher.dirName)===0?(oe=!1,w.assert(V.childWatches===Ke)):(W(V),V.targetWatcher=x(ce,re,void 0,U),V.childWatches.forEach(Fd),oe=!0),V.childWatches=le||Ke,oe;function de(H){let Se=x(H,re);ve(Se)}function ve(H){(le||(le=[])).push(H)}}function $(U,_e){return _t(UO,re=>X(U,re))||qve(U,_e,t,n)}function X(U,_e){return U.includes(_e)?!0:t?!1:T(U).includes(_e)}}var uee=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(uee||{});function YLe(e){return(t,n,i)=>e(n===1?"change":"rename","",i)}function ZLe(e,t,n){return(i,s,o)=>{i==="rename"?(o||(o=n(e)||bf),t(e,o!==bf?0:2,o)):t(e,1,o)}}function qve(e,t,n,i){return(t?.excludeDirectories||t?.excludeFiles)&&(J7(e,t?.excludeFiles,n,i())||J7(e,t?.excludeDirectories,n,i()))}function $ve(e,t,n,i,s){return(o,c)=>{if(o==="rename"){let p=c?ra(Jn(e,c)):e;(!c||!qve(p,n,i,s))&&t(p)}}}function pee({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:n,clearTimeout:i,fsWatchWorker:s,fileSystemEntryExists:o,useCaseSensitiveFileNames:c,getCurrentDirectory:p,fsSupportsRecursiveFsWatch:u,getAccessibleSortedChildDirectories:g,realpath:d,tscWatchFile:h,useNonPollingWatchers:S,tscWatchDirectory:T,inodeWatching:x,fsWatchWithTimestamp:I,sysLog:P}){let E=new Map,F=new Map,O=new Map,W,z,$,X,U=!1;return{watchFile:_e,watchDirectory:le};function _e(ee,ge,ke,Oe){Oe=ce(Oe,S);let nt=w.checkDefined(Oe.watchFile);switch(nt){case 0:return H(ee,ge,250,void 0);case 1:return H(ee,ge,ke,void 0);case 2:return re()(ee,ge,ke,void 0);case 3:return V()(ee,ge,void 0,void 0);case 4:return Se(ee,0,ZLe(ee,ge,t),!1,ke,X4(Oe));case 5:return $||($=HLe(Se,c,t,I)),$(ee,ge,ke,X4(Oe));default:w.assertNever(nt)}}function re(){return W||(W=$Le({getModifiedTime:t,setTimeout:n}))}function V(){return z||(z=QLe({getModifiedTime:t,setTimeout:n}))}function ce(ee,ge){if(ee&&ee.watchFile!==void 0)return ee;switch(h){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return oe(4,1,ee);case"UseFsEventsWithFallbackDynamicPolling":return oe(4,2,ee);case"UseFsEventsOnParentDirectory":ge=!0;default:return ge?oe(5,1,ee):{watchFile:4}}}function oe(ee,ge,ke){let Oe=ke?.fallbackPolling;return{watchFile:ee,fallbackPolling:Oe===void 0?ge:Oe}}function le(ee,ge,ke,Oe){return u?Se(ee,1,$ve(ee,ge,Oe,c,p),ke,500,X4(Oe)):(X||(X=XLe({useCaseSensitiveFileNames:c,getCurrentDirectory:p,fileSystemEntryExists:o,getAccessibleSortedChildDirectories:g,watchDirectory:de,realpath:d,setTimeout:n,clearTimeout:i})),X(ee,ge,ke,Oe))}function de(ee,ge,ke,Oe){w.assert(!ke);let nt=ve(Oe),ae=w.checkDefined(nt.watchDirectory);switch(ae){case 1:return H(ee,()=>ge(ee),500,void 0);case 2:return re()(ee,()=>ge(ee),500,void 0);case 3:return V()(ee,()=>ge(ee),void 0,void 0);case 0:return Se(ee,1,$ve(ee,ge,Oe,c,p),ke,500,X4(nt));default:w.assertNever(ae)}}function ve(ee){if(ee&&ee.watchDirectory!==void 0)return ee;switch(T){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:let ge=ee?.fallbackPolling;return{watchDirectory:0,fallbackPolling:ge!==void 0?ge:void 0}}}function H(ee,ge,ke,Oe){return Uve(E,c,ee,ge,nt=>e(ee,nt,ke,Oe))}function Se(ee,ge,ke,Oe,nt,ae){return Uve(Oe?O:F,c,ee,ke,Ue=>Je(ee,ge,Ue,Oe,nt,ae))}function Je(ee,ge,ke,Oe,nt,ae){let Ue,te;x&&(Ue=ee.substring(ee.lastIndexOf(Ro)),te=Ue.slice(Ro.length));let Ne=o(ee,ge)?xe():Bt();return{close:()=>{Ne&&(Ne.close(),Ne=void 0)}};function Ie(fr){Ne&&(P(`sysLog:: ${ee}:: Changing watcher to ${fr===xe?"Present":"Missing"}FileSystemEntryWatcher`),Ne.close(),Ne=fr())}function xe(){if(U)return P(`sysLog:: ${ee}:: Defaulting to watchFile`),St();try{let fr=(ge===1||!I?s:ye)(ee,Oe,x?Qe:ke);return fr.on("error",()=>{ke("rename",""),Ie(Bt)}),fr}catch(fr){return U||(U=fr.code==="ENOSPC"),P(`sysLog:: ${ee}:: Changing to watchFile`),St()}}function Qe(fr,Mr){let ft;if(Mr&&Bo(Mr,"~")&&(ft=Mr,Mr=Mr.slice(0,Mr.length-1)),fr==="rename"&&(!Mr||Mr===te||Bo(Mr,Ue))){let qt=t(ee)||bf;ft&&ke(fr,ft,qt),ke(fr,Mr,qt),x?Ie(qt===bf?Bt:xe):qt===bf&&Ie(Bt)}else ft&&ke(fr,ft),ke(fr,Mr)}function St(){return _e(ee,YLe(ke),nt,ae)}function Bt(){return _e(ee,(fr,Mr,ft)=>{Mr===0&&(ft||(ft=t(ee)||bf),ft!==bf&&(ke("rename","",ft),Ie(xe)))},nt,ae)}}function ye(ee,ge,ke){let Oe=t(ee)||bf;return s(ee,ge,(nt,ae,Ue)=>{nt==="change"&&(Ue||(Ue=t(ee)||bf),Ue.getTime()===Oe.getTime())||(Oe=Ue||t(ee)||bf,ke(nt,ae,Oe))})}}function fee(e){let t=e.writeFile;e.writeFile=(n,i,s)=>Zz(n,i,!!s,(o,c,p)=>t.call(e,o,c,p),o=>e.createDirectory(o),o=>e.directoryExists(o))}var Nl=(()=>{function t(){let i=/^native |^\([^)]+\)$|^(?:internal[\\/]|[\w\s]+(?:\.js)?$)/,s=_ve(),o=u5e(),c=p5e(),p;try{p=f5e()}catch{p=void 0}let u,g="./profile.cpuprofile",d=process.platform==="darwin",h=process.platform==="linux"||d,S={throwIfNoEntry:!1},T=c.platform(),x=re(),I=s.realpathSync.native?process.platform==="win32"?ge:s.realpathSync.native:s.realpathSync,P=__filename.endsWith("sys.js")?o.join(o.dirname(__dirname),"__fake__.js"):__filename,E=process.platform==="win32"||d,F=up(()=>process.cwd()),{watchFile:O,watchDirectory:W}=pee({pollingWatchFileWorker:ce,getModifiedTime:Oe,setTimeout,clearTimeout,fsWatchWorker:oe,useCaseSensitiveFileNames:x,getCurrentDirectory:F,fileSystemEntryExists:Se,fsSupportsRecursiveFsWatch:E,getAccessibleSortedChildDirectories:te=>ve(te).directories,realpath:ke,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:h,fsWatchWithTimestamp:d,sysLog:gM}),z={args:process.argv.slice(2),newLine:c.EOL,useCaseSensitiveFileNames:x,write(te){process.stdout.write(te)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:le,writeFile:de,watchFile:O,watchDirectory:W,preferNonRecursiveWatch:!E,resolvePath:te=>o.resolve(te),fileExists:Je,directoryExists:ye,getAccessibleFileSystemEntries:ve,createDirectory(te){if(!z.directoryExists(te))try{s.mkdirSync(te)}catch(Ne){if(Ne.code!=="EEXIST")throw Ne}},getExecutingFilePath(){return P},getCurrentDirectory:F,getDirectories:ee,getEnvironmentVariable(te){return process.env[te]||""},readDirectory:H,getModifiedTime:Oe,setModifiedTime:nt,deleteFile:ae,createHash:p?Ue:SP,createSHA256Hash:p?Ue:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(te){let Ne=$(te);return Ne?.isFile()?Ne.size:0},exit(te){_e(()=>process.exit(te))},enableCPUProfiler:X,disableCPUProfiler:_e,cpuProfilingEnabled:()=>!!u||ws(process.execArgv,"--cpu-prof")||ws(process.execArgv,"--prof"),realpath:ke,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||_t(process.execArgv,te=>/^--(?:inspect|debug)(?:-brk)?(?:=\d+)?$/i.test(te))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{_5e().install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1B[2J\x1B[3J\x1B[H")},setBlocking:()=>{var te;let Ne=(te=process.stdout)==null?void 0:te._handle;Ne&&Ne.setBlocking&&Ne.setBlocking(!0)},base64decode:te=>Buffer.from(te,"base64").toString("utf8"),base64encode:te=>Buffer.from(te).toString("base64"),require:(te,Ne)=>{try{let Ie=Fse(Ne,te,z);return{module:Lye(Ie),modulePath:Ie,error:void 0}}catch(Ie){return{module:void 0,modulePath:void 0,error:Ie}}}};return z;function $(te){try{return s.statSync(te,S)}catch{return}}function X(te,Ne){if(u)return Ne(),!1;let Ie=d5e();if(!Ie||!Ie.Session)return Ne(),!1;let xe=new Ie.Session;return xe.connect(),xe.post("Profiler.enable",()=>{xe.post("Profiler.start",()=>{u=xe,g=te,Ne()})}),!0}function U(te){let Ne=0,Ie=new Map,xe=ou(o.dirname(P)),Qe=`file://${em(xe)===1?"":"/"}${xe}`;for(let St of te.nodes)if(St.callFrame.url){let Bt=ou(St.callFrame.url);A_(Qe,Bt,x)?St.callFrame.url=Zx(Qe,Bt,Qe,hu(x),!0):i.test(Bt)||(St.callFrame.url=(Ie.has(Bt)?Ie:Ie.set(Bt,`external${Ne}.js`)).get(Bt),Ne++)}return te}function _e(te){if(u&&u!=="stopping"){let Ne=u;return u.post("Profiler.stop",(Ie,{profile:xe})=>{var Qe;if(!Ie){(Qe=$(g))!=null&&Qe.isDirectory()&&(g=o.join(g,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`));try{s.mkdirSync(o.dirname(g),{recursive:!0})}catch{}s.writeFileSync(g,JSON.stringify(U(xe)))}u=void 0,Ne.disconnect(),te()}),u="stopping",!0}else return te(),!1}function re(){return T==="win32"||T==="win64"?!1:!Je(V(__filename))}function V(te){return te.replace(/\w/g,Ne=>{let Ie=Ne.toUpperCase();return Ne===Ie?Ne.toLowerCase():Ie})}function ce(te,Ne,Ie){s.watchFile(te,{persistent:!0,interval:Ie},Qe);let xe;return{close:()=>s.unwatchFile(te,Qe)};function Qe(St,Bt){let fr=+Bt.mtime==0||xe===2;if(+St.mtime==0){if(fr)return;xe=2}else if(fr)xe=0;else{if(+St.mtime==+Bt.mtime)return;xe=1}Ne(te,xe,St.mtime)}}function oe(te,Ne,Ie){return s.watch(te,E?{persistent:!0,recursive:!!Ne}:{persistent:!0},Ie)}function le(te,Ne){let Ie;try{Ie=s.readFileSync(te)}catch{return}let xe=Ie.length;if(xe>=2&&Ie[0]===254&&Ie[1]===255){xe&=-2;for(let Qe=0;Qe<xe;Qe+=2){let St=Ie[Qe];Ie[Qe]=Ie[Qe+1],Ie[Qe+1]=St}return Ie.toString("utf16le",2)}return xe>=2&&Ie[0]===255&&Ie[1]===254?Ie.toString("utf16le",2):xe>=3&&Ie[0]===239&&Ie[1]===187&&Ie[2]===191?Ie.toString("utf8",3):Ie.toString("utf8")}function de(te,Ne,Ie){Ie&&(Ne="\uFEFF"+Ne);let xe;try{xe=s.openSync(te,"w"),s.writeSync(xe,Ne,void 0,"utf8")}finally{xe!==void 0&&s.closeSync(xe)}}function ve(te){try{let Ne=s.readdirSync(te||".",{withFileTypes:!0}),Ie=[],xe=[];for(let Qe of Ne){let St=typeof Qe=="string"?Qe:Qe.name;if(St==="."||St==="..")continue;let Bt;if(typeof Qe=="string"||Qe.isSymbolicLink()){let fr=Jn(te,St);if(Bt=$(fr),!Bt)continue}else Bt=Qe;Bt.isFile()?Ie.push(St):Bt.isDirectory()&&xe.push(St)}return Ie.sort(),xe.sort(),{files:Ie,directories:xe}}catch{return RG}}function H(te,Ne,Ie,xe,Qe){return AG(te,Ne,Ie,xe,x,process.cwd(),Qe,ve,ke)}function Se(te,Ne){let Ie=$(te);if(!Ie)return!1;switch(Ne){case 0:return Ie.isFile();case 1:return Ie.isDirectory();default:return!1}}function Je(te){return Se(te,0)}function ye(te){return Se(te,1)}function ee(te){return ve(te).directories.slice()}function ge(te){return te.length<260?s.realpathSync.native(te):s.realpathSync(te)}function ke(te){try{return I(te)}catch{return te}}function Oe(te){var Ne;return(Ne=$(te))==null?void 0:Ne.mtime}function nt(te,Ne){try{s.utimesSync(te,Ne,Ne)}catch{return}}function ae(te){try{return s.unlinkSync(te)}catch{return}}function Ue(te){let Ne=p.createHash("sha256");return Ne.update(te),Ne.digest("hex")}}let n;return $W()&&(n=t()),n&&fee(n),n})();function Hve(e){Nl=e}Nl&&Nl.getEnvironmentVariable&&(qLe(Nl),w.setAssertionLevel(/^development$/i.test(Nl.getEnvironmentVariable("NODE_ENV"))?1:0)),Nl&&Nl.debugMode&&(w.isDebugging=!0);var Ro="/",VO="\\",Qve="://",e9e=/\\/g;function hB(e){return e===47||e===92}function _ee(e){return qO(e)<0}function Sf(e){return qO(e)>0}function yB(e){let t=qO(e);return t>0&&t===e.length}function TP(e){return qO(e)!==0}function $f(e){return/^\.\.?(?:$|[\\/])/.test(e)}function vB(e){return!TP(e)&&!$f(e)}function xw(e){return dl(e).includes(".")}function uc(e,t){return e.length>t.length&&Bo(e,t)}function Bc(e,t){for(let n of t)if(uc(e,n))return!0;return!1}function nb(e){return e.length>0&&hB(e.charCodeAt(e.length-1))}function Kve(e){return e>=97&&e<=122||e>=65&&e<=90}function t9e(e,t){let n=e.charCodeAt(t);if(n===58)return t+1;if(n===37&&e.charCodeAt(t+1)===51){let i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function qO(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let i=e.indexOf(t===47?Ro:VO,2);return i<0?e.length:i+1}if(Kve(t)&&e.charCodeAt(1)===58){let i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}let n=e.indexOf(Qve);if(n!==-1){let i=n+Qve.length,s=e.indexOf(Ro,i);if(s!==-1){let o=e.slice(0,n),c=e.slice(i,s);if(o==="file"&&(c===""||c==="localhost")&&Kve(e.charCodeAt(s+1))){let p=t9e(e,s+2);if(p!==-1){if(e.charCodeAt(p)===47)return~(p+1);if(p===e.length)return~p}}return~(s+1)}return~e.length}return 0}function em(e){let t=qO(e);return t<0?~t:t}function ti(e){e=ou(e);let t=em(e);return t===e.length?e:(e=Vy(e),e.slice(0,Math.max(t,e.lastIndexOf(Ro))))}function dl(e,t,n){if(e=ou(e),em(e)===e.length)return"";e=Vy(e);let s=e.slice(Math.max(em(e),e.lastIndexOf(Ro)+1)),o=t!==void 0&&n!==void 0?Xx(s,t,n):void 0;return o?s.slice(0,s.length-o.length):s}function Xve(e,t,n){if(Zi(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let i=e.slice(e.length-t.length);if(n(i,t))return i}}function r9e(e,t,n){if(typeof t=="string")return Xve(e,t,n)||"";for(let i of t){let s=Xve(e,i,n);if(s)return s}return""}function Xx(e,t,n){if(t)return r9e(Vy(e),t,n?tb:uS);let i=dl(e),s=i.lastIndexOf(".");return s>=0?i.substring(s):""}function n9e(e,t){let n=e.substring(0,t),i=e.substring(t).split(Ro);return i.length&&!Wo(i)&&i.pop(),[n,...i]}function Nu(e,t=""){return e=Jn(t,e),n9e(e,em(e))}function w0(e,t){return e.length===0?"":(e[0]&&Ml(e[0]))+e.slice(1,t).join(Ro)}function ou(e){return e.includes("\\")?e.replace(e9e,Ro):e}function Yx(e){if(!_t(e))return[];let t=[e[0]];for(let n=1;n<e.length;n++){let i=e[n];if(i&&i!=="."){if(i===".."){if(t.length>1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function Jn(e,...t){e&&(e=ou(e));for(let n of t)n&&(n=ou(n),!e||em(n)!==0?e=n:e=Ml(e)+n);return e}function ib(e,...t){return ra(_t(t)?Jn(e,...t):ou(e))}function $O(e,t){return Yx(Nu(e,t))}function as(e,t){let n=em(e);n===0&&t?(e=Jn(t,e),n=em(e)):e=ou(e);let i=Yve(e);if(i!==void 0)return i.length>n?Vy(i):i;let s=e.length,o=e.substring(0,n),c,p=n,u=p,g=p,d=n!==0;for(;p<s;){u=p;let h=e.charCodeAt(p);for(;h===47&&p+1<s;)p++,h=e.charCodeAt(p);p>u&&(c??(c=e.substring(0,u-1)),u=p);let S=e.indexOf(Ro,p+1);S===-1&&(S=s);let T=S-u;if(T===1&&e.charCodeAt(p)===46)c??(c=e.substring(0,g));else if(T===2&&e.charCodeAt(p)===46&&e.charCodeAt(p+1)===46)if(!d)c!==void 0?c+=c.length===n?"..":"/..":g=p+2;else if(c===void 0)g-2>=0?c=e.substring(0,Math.max(n,e.lastIndexOf(Ro,g-2))):c=e.substring(0,g);else{let x=c.lastIndexOf(Ro);x!==-1?c=c.substring(0,Math.max(n,x)):c=o,c.length===n&&(d=n!==0)}else c!==void 0?(c.length!==n&&(c+=Ro),d=!0,c+=e.substring(u,S)):(d=!0,g=S);p=S+1}return c??(s>n?Vy(e):e)}function ra(e){e=ou(e);let t=Yve(e);return t!==void 0?t:(t=as(e,""),t&&nb(e)?Ml(t):t)}function Yve(e){if(!SB.test(e))return e;let t=e.replace(/\/\.\//g,"/");if(t.startsWith("./")&&(t=t.slice(2)),t!==e&&(e=t,!SB.test(e)))return e}function i9e(e){return e.length===0?"":e.slice(1).join(Ro)}function bB(e,t){return i9e($O(e,t))}function So(e,t,n){let i=Sf(e)?ra(e):as(e,t);return n(i)}function Vy(e){return nb(e)?e.substr(0,e.length-1):e}function Ml(e){return nb(e)?e:e+Ro}function GT(e){return!TP(e)&&!$f(e)?"./"+e:e}function hM(e,t,n,i){let s=n!==void 0&&i!==void 0?Xx(e,n,i):Xx(e);return s?e.slice(0,e.length-s.length)+(Zi(t,".")?t:"."+t):e}function HO(e,t){let n=P7(e);return n?e.slice(0,e.length-n.length)+(Zi(t,".")?t:"."+t):hM(e,t)}var SB=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function dee(e,t,n){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;let i=e.substring(0,em(e)),s=t.substring(0,em(t)),o=fM(i,s);if(o!==0)return o;let c=e.substring(i.length),p=t.substring(s.length);if(!SB.test(c)&&!SB.test(p))return n(c,p);let u=Yx(Nu(e)),g=Yx(Nu(t)),d=Math.min(u.length,g.length);for(let h=1;h<d;h++){let S=n(u[h],g[h]);if(S!==0)return S}return Po(u.length,g.length)}function Zve(e,t){return dee(e,t,Eu)}function ebe(e,t){return dee(e,t,fM)}function Hh(e,t,n,i){return typeof n=="string"?(e=Jn(n,e),t=Jn(n,t)):typeof n=="boolean"&&(i=n),dee(e,t,bw(i))}function A_(e,t,n,i){if(typeof n=="string"?(e=Jn(n,e),t=Jn(n,t)):typeof n=="boolean"&&(i=n),e===void 0||t===void 0)return!1;if(e===t)return!0;let s=Yx(Nu(e)),o=Yx(Nu(t));if(o.length<s.length)return!1;let c=i?tb:uS;for(let p=0;p<s.length;p++)if(!(p===0?tb:c)(s[p],o[p]))return!1;return!0}function TB(e,t,n){let i=n(e),s=n(t);return Zi(i,s+"/")||Zi(i,s+"\\")}function tbe(e,t,n,i){let s=Yx(Nu(e)),o=Yx(Nu(t)),c;for(c=0;c<s.length&&c<o.length;c++){let g=i(s[c]),d=i(o[c]);if(!(c===0?tb:n)(g,d))break}if(c===0)return o;let p=o.slice(c),u=[];for(;c<s.length;c++)u.push("..");return["",...u,...p]}function n_(e,t,n){w.assert(em(e)>0==em(t)>0,"Paths must either both be absolute or both be relative");let o=tbe(e,t,(typeof n=="boolean"?n:!1)?tb:uS,typeof n=="function"?n:Do);return w0(o)}function kP(e,t,n){return Sf(e)?Zx(t,e,t,n,!1):e}function Cw(e,t,n){return GT(n_(ti(e),t,n))}function Zx(e,t,n,i,s){let o=tbe(ib(n,e),ib(n,t),uS,i),c=o[0];if(s&&Sf(c)){let p=c.charAt(0)===Ro?"file://":"file:///";o[0]=p+c}return w0(o)}function xP(e,t){for(;;){let n=t(e);if(n!==void 0)return n;let i=ti(e);if(i===e)return;e=i}}function QO(e){return Bo(e,"/node_modules")}function b(e,t,n,i,s,o,c){return{code:e,category:t,key:n,message:i,reportsUnnecessary:s,elidedInCompatabilityPyramid:o,reportsDeprecated:c}}var _={Unterminated_string_literal:b(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:b(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:b(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:b(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:b(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:b(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:b(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:b(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:b(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:b(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:b(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:b(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:b(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:b(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:b(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:b(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:b(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:b(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:b(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:b(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:b(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:b(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:b(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:b(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:b(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:b(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:b(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:b(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:b(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:b(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:b(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:b(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:b(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:b(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:b(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:b(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:b(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:b(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:b(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:b(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:b(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:b(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:b(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:b(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:b(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:b(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:b(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:b(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:b(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:b(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise<T> type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:b(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:b(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:b(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:b(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:b(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:b(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:b(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:b(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:b(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:b(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:b(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:b(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:b(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:b(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:b(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:b(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:b(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:b(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:b(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:b(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:b(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:b(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:b(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:b(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:b(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:b(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:b(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:b(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:b(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:b(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:b(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:b(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:b(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:b(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:b(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:b(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:b(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:b(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:b(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:b(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:b(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:b(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:b(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:b(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:b(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:b(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:b(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:b(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:b(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:b(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:b(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:b(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:b(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:b(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:b(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:b(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:b(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:b(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:b(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:b(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:b(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:b(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:b(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:b(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:b(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:b(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:b(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:b(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:b(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:b(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:b(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:b(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:b(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:b(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:b(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:b(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:b(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:b(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:b(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:b(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:b(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:b(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:b(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:b(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:b(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:b(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:b(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:b(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:b(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:b(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:b(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:b(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:b(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:b(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:b(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:b(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:b(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:b(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:b(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:b(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:b(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:b(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:b(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:b(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:b(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:b(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:b(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:b(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:b(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:b(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:b(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:b(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:b(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:b(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:b(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:b(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:b(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:b(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:b(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:b(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:b(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:b(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:b(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:b(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:b(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:b(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:b(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:b(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:b(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:b(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:b(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:b(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:b(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:b(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:b(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:b(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:b(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:b(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:b(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:b(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:b(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:b(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:b(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:b(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:b(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:b(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:b(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:b(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:b(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:b(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:b(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:b(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:b(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:b(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:b(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:b(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:b(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:b(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:b(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:b(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:b(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:b(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:b(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:b(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:b(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:b(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:b(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:b(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:b(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:b(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:b(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:b(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:b(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:b(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:b(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:b(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:b(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:b(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:b(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:b(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:b(1286,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:b(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:b(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:b(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:b(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:b(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:b(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:b(1293,1,"ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled:b(1294,1,"This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294","This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript:b(1295,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript."),with_statements_are_not_allowed_in_an_async_function_block:b(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:b(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:b(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:b(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:b(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:b(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:b(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:b(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:b(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:b(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:b(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext:b(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve:b(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'node20', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:b(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:b(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:b(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:b(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:b(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:b(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:b(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:b(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:b(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:b(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:b(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:b(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:b(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:b(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:b(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:b(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext:b(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', or 'nodenext'."),A_label_is_not_allowed_here:b(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:b(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:b(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:b(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:b(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:b(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:b(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:b(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:b(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:b(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:b(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:b(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:b(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:b(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:b(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:b(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:b(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:b(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:b(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:b(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:b(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:b(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:b(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:b(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:b(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:b(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:b(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:b(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:b(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:b(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:b(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:b(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:b(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:b(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:b(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:b(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:b(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:b(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:b(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:b(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:b(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:b(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:b(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:b(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:b(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:b(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:b(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:b(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:b(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:b(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:b(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:b(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:b(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:b(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:b(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:b(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:b(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:b(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:b(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:b(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:b(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:b(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:b(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:b(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:b(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:b(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:b(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:b(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:b(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:b(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:b(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:b(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:b(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:b(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:b(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:b(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:b(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:b(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:b(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:b(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:b(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:b(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:b(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:b(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:b(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:b(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:b(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:b(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:b(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:b(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:b(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:b(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:b(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:b(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:b(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:b(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:b(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:b(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:b(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:b(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:b(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:b(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:b(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:b(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:b(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:b(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:b(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:b(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:b(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:b(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:b(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:b(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:b(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:b(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:b(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:b(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:b(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:b(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:b(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:b(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:b(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:b(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:b(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:b(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:b(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:b(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:b(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:b(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:b(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:b(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:b(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:b(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:b(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:b(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:b(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:b(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:b(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:b(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:b(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:b(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:b(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:b(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:b(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:b(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:b(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:b(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:b(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:b(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:b(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:b(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:b(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:b(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:b(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:b(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:b(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:b(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:b(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:b(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:b(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:b(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:b(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:b(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:b(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:b(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:b(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:b(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:b(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:b(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:b(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:b(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:b(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:b(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:b(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:b(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:b(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:b(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:b(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:b(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:b(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:b(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:b(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543",`Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'.`),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:b(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),using_declarations_are_not_allowed_in_ambient_contexts:b(1545,1,"using_declarations_are_not_allowed_in_ambient_contexts_1545","'using' declarations are not allowed in ambient contexts."),await_using_declarations_are_not_allowed_in_ambient_contexts:b(1546,1,"await_using_declarations_are_not_allowed_in_ambient_contexts_1546","'await using' declarations are not allowed in ambient contexts."),The_types_of_0_are_incompatible_between_these_types:b(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:b(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:b(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:b(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:b(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:b(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:b(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:b(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:b(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:b(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:b(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:b(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:b(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:b(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:b(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:b(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:b(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:b(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:b(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:b(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:b(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:b(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:b(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:b(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:b(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:b(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:b(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:b(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:b(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:b(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:b(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:b(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:b(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:b(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:b(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:b(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:b(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:b(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:b(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:b(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:b(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:b(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:b(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:b(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:b(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:b(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:b(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:b(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:b(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:b(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:b(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:b(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:b(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:b(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:b(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:b(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:b(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:b(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:b(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:b(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:b(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:b(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:b(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:b(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:b(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:b(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:b(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:b(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:b(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:b(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:b(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:b(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:b(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:b(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:b(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:b(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:b(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:b(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:b(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:b(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:b(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:b(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:b(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:b(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:b(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:b(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:b(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:b(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:b(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:b(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:b(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:b(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:b(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:b(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:b(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:b(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:b(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:b(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:b(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:b(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:b(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:b(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:b(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:b(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:b(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:b(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:b(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:b(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:b(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:b(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:b(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:b(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:b(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:b(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:b(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:b(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:b(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:b(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:b(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:b(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:b(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:b(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:b(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:b(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:b(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:b(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:b(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:b(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:b(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:b(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:b(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:b(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:b(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:b(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:b(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:b(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:b(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:b(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:b(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:b(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:b(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:b(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:b(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:b(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:b(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:b(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:b(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:b(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:b(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:b(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:b(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:b(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:b(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:b(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:b(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:b(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:b(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:b(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:b(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:b(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:b(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:b(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:b(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:b(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:b(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:b(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:b(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:b(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:b(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:b(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:b(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:b(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:b(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:b(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:b(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:b(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:b(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:b(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:b(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:b(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:b(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:b(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:b(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:b(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:b(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:b(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:b(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:b(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:b(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:b(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:b(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:b(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:b(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:b(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:b(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:b(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:b(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:b(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:b(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:b(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:b(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:b(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:b(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:b(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:b(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:b(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:b(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:b(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:b(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:b(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:b(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:b(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:b(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:b(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:b(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:b(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:b(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:b(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:b(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:b(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:b(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:b(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:b(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:b(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:b(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:b(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:b(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:b(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:b(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:b(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:b(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:b(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:b(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:b(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:b(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:b(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:b(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:b(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:b(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:b(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:b(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:b(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:b(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:b(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:b(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:b(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:b(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:b(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:b(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:b(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:b(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:b(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:b(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:b(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:b(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:b(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:b(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:b(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:b(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:b(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:b(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:b(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:b(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:b(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:b(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:b(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:b(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:b(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:b(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:b(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:b(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:b(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:b(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:b(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:b(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:b(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:b(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:b(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:b(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:b(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:b(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:b(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:b(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:b(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:b(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:b(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:b(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:b(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:b(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:b(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:b(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:b(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:b(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:b(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:b(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:b(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:b(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:b(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:b(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:b(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:b(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:b(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:b(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:b(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:b(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:b(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:b(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:b(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:b(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:b(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:b(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:b(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:b(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:b(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:b(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:b(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:b(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:b(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:b(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:b(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:b(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:b(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:b(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:b(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:b(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:b(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:b(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:b(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:b(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:b(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:b(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:b(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:b(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:b(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:b(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:b(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:b(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:b(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:b(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:b(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:b(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:b(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:b(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:b(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:b(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:b(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:b(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:b(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:b(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:b(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:b(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:b(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:b(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:b(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:b(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:b(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:b(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:b(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:b(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:b(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:b(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:b(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:b(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:b(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:b(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:b(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:b(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:b(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:b(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:b(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:b(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:b(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:b(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:b(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:b(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:b(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:b(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:b(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:b(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:b(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:b(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:b(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:b(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:b(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:b(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:b(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:b(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:b(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:b(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:b(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:b(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:b(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0:b(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 and above with module {0}."),Cannot_find_lib_definition_for_0:b(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:b(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:b(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:b(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:b(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:b(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:b(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:b(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:b(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:b(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:b(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:b(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:b(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:b(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:b(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:b(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:b(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:b(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:b(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:b(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:b(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:b(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:b(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:b(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:b(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:b(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:b(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:b(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:b(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:b(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:b(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:b(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:b(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:b(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:b(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:b(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:b(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:b(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:b(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:b(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:b(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:b(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:b(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:b(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:b(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:b(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:b(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:b(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:b(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:b(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:b(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:b(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:b(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:b(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:b(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:b(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:b(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:b(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:b(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:b(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:b(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:b(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:b(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:b(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:b(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:b(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:b(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:b(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:b(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:b(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:b(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:b(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:b(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:b(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:b(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:b(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:b(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:b(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:b(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:b(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:b(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:b(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:b(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:b(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:b(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:b(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:b(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:b(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks:b(2815,1,"arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815","'arguments' cannot be referenced in property initializers or class static initialization blocks."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:b(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:b(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:b(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:b(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:b(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:b(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:b(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:b(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:b(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:b(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:b(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:b(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:b(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:b(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:b(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:b(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:b(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:b(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:b(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:b(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:b(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:b(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:b(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:b(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:b(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:b(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:b(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:b(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:b(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:b(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:b(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:b(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:b(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:b(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:b(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:b(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:b(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:b(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:b(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:b(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:b(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:b(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:b(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:b(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:b(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:b(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:b(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:b(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:b(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:b(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:b(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:b(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:b(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert:b(2880,1,"Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880","Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),This_expression_is_never_nullish:b(2881,1,"This_expression_is_never_nullish_2881","This expression is never nullish."),Import_declaration_0_is_using_private_name_1:b(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:b(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:b(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:b(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:b(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:b(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:b(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:b(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:b(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:b(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:b(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:b(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:b(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:b(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:b(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:b(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:b(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:b(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:b(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:b(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:b(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:b(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:b(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:b(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:b(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:b(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:b(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:b(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:b(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:b(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:b(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:b(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:b(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:b(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:b(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:b(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:b(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:b(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:b(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:b(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:b(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:b(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:b(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:b(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:b(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:b(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:b(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:b(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:b(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected:b(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:b(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:b(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:b(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:b(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:b(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:b(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:b(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:b(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:b(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:b(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:b(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:b(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:b(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:b(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:b(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:b(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:b(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:b(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:b(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:b(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:b(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:b(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:b(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:b(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:b(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:b(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic:b(4127,1,"This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127","This member cannot have an 'override' modifier because its name is dynamic."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:b(4128,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128","This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),The_current_host_does_not_support_the_0_option:b(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:b(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:b(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:b(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:b(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:b(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:b(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:b(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:b(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:b(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:b(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:b(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:b(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:b(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:b(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:b(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:b(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:b(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:b(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:b(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:b(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:b(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:b(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:b(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:b(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:b(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:b(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:b(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:b(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:b(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:b(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:b(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:b(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:b(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:b(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:b(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:b(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:b(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:b(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:b(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:b(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:b(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:b(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:b(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:b(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:b(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:b(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:b(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:b(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:b(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:b(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:b(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:b(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:b(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:b(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:b(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:b(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:b(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:b(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:b(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:b(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:b(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:b(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:b(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:b(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:b(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:b(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:b(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:b(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:b(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:b(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:b(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:b(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:b(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:b(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:b(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:b(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:b(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:b(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:b(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:b(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:b(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:b(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:b(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:b(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:b(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:b(6024,3,"options_6024","options"),file:b(6025,3,"file_6025","file"),Examples_Colon_0:b(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:b(6027,3,"Options_Colon_6027","Options:"),Version_0:b(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:b(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:b(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:b(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:b(6034,3,"KIND_6034","KIND"),FILE:b(6035,3,"FILE_6035","FILE"),VERSION:b(6036,3,"VERSION_6036","VERSION"),LOCATION:b(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:b(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:b(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:b(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:b(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:b(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:b(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:b(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:b(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:b(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unable_to_open_file_0:b(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:b(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:b(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:b(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:b(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:b(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:b(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:b(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:b(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:b(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:b(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:b(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:b(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:b(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:b(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:b(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:b(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:b(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:b(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:b(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:b(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:b(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:b(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:b(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:b(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:b(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:b(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:b(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:b(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:b(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:b(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:b(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:b(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:b(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:b(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:b(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:b(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:b(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:b(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:b(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:b(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:b(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:b(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:b(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:b(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:b(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:b(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:b(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:b(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:b(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:b(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:b(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:b(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:b(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:b(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:b(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:b(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:b(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:b(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:b(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:b(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:b(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:b(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:b(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:b(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:b(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:b(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:b(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:b(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:b(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:b(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:b(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:b(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:b(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:b(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:b(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:b(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:b(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:b(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:b(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:b(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:b(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:b(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:b(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:b(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:b(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:b(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:b(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:b(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:b(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:b(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:b(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:b(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:b(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:b(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:b(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:b(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:b(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:b(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:b(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:b(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:b(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:b(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:b(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:b(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:b(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:b(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:b(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:b(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:b(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:b(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:b(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:b(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:b(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:b(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:b(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:b(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:b(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:b(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:b(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:b(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:b(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:b(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:b(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:b(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:b(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:b(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:b(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:b(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:b(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:b(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:b(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:b(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:b(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:b(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:b(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:b(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:b(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:b(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:b(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:b(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:b(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:b(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:b(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:b(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:b(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:b(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:b(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:b(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:b(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:b(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:b(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:b(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:b(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:b(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:b(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:b(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:b(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:b(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:b(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:b(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:b(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:b(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:b(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:b(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:b(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:b(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:b(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:b(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:b(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:b(6244,3,"Modules_6244","Modules"),File_Management:b(6245,3,"File_Management_6245","File Management"),Emit:b(6246,3,"Emit_6246","Emit"),JavaScript_Support:b(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:b(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:b(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:b(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:b(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:b(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:b(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:b(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:b(6255,3,"Projects_6255","Projects"),Output_Formatting:b(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:b(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:b(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:b(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:b(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:b(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:b(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:b(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:b(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:b(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:b(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:b(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:b(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:b(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:b(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:b(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:b(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:b(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:b(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:b(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:b(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:b(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:b(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:b(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:b(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),File_Layout:b(6284,3,"File_Layout_6284","File Layout"),Environment_Settings:b(6285,3,"Environment_Settings_6285","Environment Settings"),See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule:b(6286,3,"See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule_6286","See also https://aka.ms/tsconfig/module"),For_nodejs_Colon:b(6287,3,"For_nodejs_Colon_6287","For nodejs:"),and_npm_install_D_types_Slashnode:b(6290,3,"and_npm_install_D_types_Slashnode_6290","and npm install -D @types/node"),Other_Outputs:b(6291,3,"Other_Outputs_6291","Other Outputs"),Stricter_Typechecking_Options:b(6292,3,"Stricter_Typechecking_Options_6292","Stricter Typechecking Options"),Style_Options:b(6293,3,"Style_Options_6293","Style Options"),Recommended_Options:b(6294,3,"Recommended_Options_6294","Recommended Options"),Enable_project_compilation:b(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:b(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:b(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:b(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:b(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:b(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:b(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:b(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:b(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:b(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:b(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:b(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:b(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:b(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:b(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:b(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:b(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:b(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:b(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:b(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:b(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:b(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:b(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:b(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:b(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:b(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:b(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:b(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:b(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:b(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:b(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:b(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:b(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:b(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:b(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:b(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:b(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:b(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:b(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:b(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:b(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:b(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:b(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:b(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:b(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:b(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:b(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:b(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:b(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:b(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:b(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:b(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:b(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:b(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:b(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:b(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:b(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:b(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:b(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:b(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:b(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:b(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:b(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:b(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:b(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:b(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:b(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:b(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:b(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:b(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:b(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:b(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:b(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:b(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:b(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:b(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:b(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files:b(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:b(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:b(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:b(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:b(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:b(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:b(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:b(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:b(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:b(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:b(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:b(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:b(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:b(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:b(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:b(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:b(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:b(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:b(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:b(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:b(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:b(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:b(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:b(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:b(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:b(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:b(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:b(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:b(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:b(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:b(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:b(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:b(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:b(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:b(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:b(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:b(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:b(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:b(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:b(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:b(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:b(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:b(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:b(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:b(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:b(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:b(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:b(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:b(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:b(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:b(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:b(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:b(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:b(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:b(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:b(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:b(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:b(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:b(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:b(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:b(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:b(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:b(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:b(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:b(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:b(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:b(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:b(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:b(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:b(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:b(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:b(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:b(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:b(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:b(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:b(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:b(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:b(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:b(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:b(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:b(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:b(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:b(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:b(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:b(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:b(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:b(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:b(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:b(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:b(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:b(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:b(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:b(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:b(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:b(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:b(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:b(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:b(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:b(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:b(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:b(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:b(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:b(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:b(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:b(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:b(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:b(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:b(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:b(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:b(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:b(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:b(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:b(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:b(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:b(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:b(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:b(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript:b(6721,3,"Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721","Do not allow runtime constructs that are not part of ECMAScript."),Default_catch_clause_variables_as_unknown_instead_of_any:b(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:b(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:b(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:b(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:b(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),Enable_lib_replacement:b(6808,3,"Enable_lib_replacement_6808","Enable lib replacement."),one_of_Colon:b(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:b(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:b(6902,3,"type_Colon_6902","type:"),default_Colon:b(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:b(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:b(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:b(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:b(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:b(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:b(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:b(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:b(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:b(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:b(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:b(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:b(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:b(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:b(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:b(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:b(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:b(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:b(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:b(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:b(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:b(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:b(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:b(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:b(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:b(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:b(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:b(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:b(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:b(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:b(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:b(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:b(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:b(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:b(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:b(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:b(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:b(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:b(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:b(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:b(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:b(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:b(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:b(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:b(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:b(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:b(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:b(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:b(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:b(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:b(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:b(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:b(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:b(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:b(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:b(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:b(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:b(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:b(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:b(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:b(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:b(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:b(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:b(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:b(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:b(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:b(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:b(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:b(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:b(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:b(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:b(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:b(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:b(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:b(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:b(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:b(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:b(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:b(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:b(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:b(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:b(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:b(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:b(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:b(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:b(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:b(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:b(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:b(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:b(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:b(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:b(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:b(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:b(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:b(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:b(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:b(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:b(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:b(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:b(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:b(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:b(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:b(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:b(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:b(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:b(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:b(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:b(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:b(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:b(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:b(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:b(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:b(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:b(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:b(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:b(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:b(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:b(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:b(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:b(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:b(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:b(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:b(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:b(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:b(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:b(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:b(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:b(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:b(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:b(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:b(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:b(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:b(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:b(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:b(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:b(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:b(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:b(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:b(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:b(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:b(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:b(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:b(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:b(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:b(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:b(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:b(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:b(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:b(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:b(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:b(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:b(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:b(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:b(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:b(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:b(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:b(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:b(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:b(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:b(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:b(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:b(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:b(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:b(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:b(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:b(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:b(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:b(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:b(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:b(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:b(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:b(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:b(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:b(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:b(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:b(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:b(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:b(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:b(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:b(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:b(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:b(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:b(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:b(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:b(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:b(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:b(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:b(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:b(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:b(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:b(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:b(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:b(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:b(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:b(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:b(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:b(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:b(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:b(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:b(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:b(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:b(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:b(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:b(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:b(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:b(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:b(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:b(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:b(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:b(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:b(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:b(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:b(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:b(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:b(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:b(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:b(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:b(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:b(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:b(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:b(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:b(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:b(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:b(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:b(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:b(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:b(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:b(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:b(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:b(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:b(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:b(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:b(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:b(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:b(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:b(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:b(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:b(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:b(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:b(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:b(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:b(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:b(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:b(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:b(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:b(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:b(95005,3,"Extract_function_95005","Extract function"),Extract_constant:b(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:b(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:b(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:b(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:b(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:b(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:b(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:b(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:b(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:b(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:b(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:b(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:b(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:b(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:b(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:b(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:b(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:b(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:b(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:b(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:b(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:b(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:b(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:b(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:b(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:b(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:b(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:b(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:b(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:b(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:b(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:b(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:b(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:b(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:b(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:b(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:b(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:b(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:b(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:b(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:b(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:b(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:b(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:b(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:b(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:b(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:b(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:b(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:b(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:b(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:b(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:b(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:b(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:b(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:b(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:b(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:b(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:b(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:b(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:b(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:b(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:b(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:b(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:b(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:b(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:b(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:b(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:b(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:b(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:b(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:b(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:b(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:b(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:b(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:b(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:b(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:b(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:b(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:b(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:b(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:b(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:b(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:b(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:b(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:b(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:b(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:b(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:b(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:b(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:b(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:b(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:b(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:b(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:b(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:b(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:b(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:b(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:b(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:b(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:b(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:b(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:b(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:b(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:b(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:b(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:b(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:b(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:b(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:b(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:b(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:b(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:b(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:b(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:b(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:b(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:b(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:b(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:b(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:b(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:b(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:b(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:b(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:b(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:b(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:b(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:b(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:b(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:b(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:b(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:b(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:b(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:b(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:b(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:b(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:b(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:b(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:b(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:b(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:b(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:b(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:b(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:b(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:b(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:b(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:b(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:b(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:b(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:b(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:b(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:b(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:b(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:b(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:b(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:b(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:b(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:b(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:b(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:b(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:b(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:b(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:b(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:b(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:b(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:b(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:b(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:b(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:b(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:b(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:b(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:b(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:b(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:b(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:b(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:b(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:b(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:b(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:b(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:b(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:b(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:b(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:b(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:b(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:b(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:b(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:b(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:b(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:b(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:b(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:b(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:b(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:b(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:b(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:b(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:b(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:b(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:b(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:b(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:b(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:b(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:b(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:b(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:b(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:b(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:b(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:b(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:b(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:b(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:b(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:b(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:b(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:b(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:b(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:b(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:b(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:b(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:b(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:b(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:b(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:b(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:b(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:b(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:b(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:b(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:b(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:b(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:b(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:b(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:b(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:b(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:b(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:b(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:b(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:b(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'."),Default_imports_are_not_allowed_in_a_deferred_import:b(18058,1,"Default_imports_are_not_allowed_in_a_deferred_import_18058","Default imports are not allowed in a deferred import."),Named_imports_are_not_allowed_in_a_deferred_import:b(18059,1,"Named_imports_are_not_allowed_in_a_deferred_import_18059","Named imports are not allowed in a deferred import."),Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve:b(18060,1,"Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve_18060","Deferred imports are only supported when the '--module' flag is set to 'esnext' or 'preserve'."),_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer:b(18061,1,"_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer_18061","'{0}' is not a valid meta-property for keyword 'import'. Did you mean 'meta' or 'defer'?")};function zp(e){return e>=80}function mee(e){return e===32||zp(e)}var KO={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,defer:166,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},s9e=new Map(Object.entries(KO)),rbe=new Map(Object.entries({...KO,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,"</":31,">>":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),nbe=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),a9e=new Map([[1,Jl.RegularExpressionFlagsHasIndices],[16,Jl.RegularExpressionFlagsDotAll],[32,Jl.RegularExpressionFlagsUnicode],[64,Jl.RegularExpressionFlagsUnicodeSets],[128,Jl.RegularExpressionFlagsSticky]]),o9e=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],c9e=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],l9e=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],u9e=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],p9e=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,f9e=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,_9e=/@(?:see|link)/i;function kB(e,t){if(e<t[0])return!1;let n=0,i=t.length,s;for(;n+1<i;){if(s=n+(i-n)/2,s-=s%2,t[s]<=e&&e<=t[s+1])return!0;e<t[s]?i=s:n=s+2}return!1}function XO(e,t){return t>=2?kB(e,l9e):kB(e,o9e)}function d9e(e,t){return t>=2?kB(e,u9e):kB(e,c9e)}function ibe(e){let t=[];return e.forEach((n,i)=>{t[n]=i}),t}var m9e=ibe(rbe);function ta(e){return m9e[e]}function JT(e){return rbe.get(e)}var g9e=ibe(nbe);function sbe(e){return g9e[e]}function xB(e){return nbe.get(e)}function e2(e){let t=[],n=0,i=0;for(;n<e.length;){let s=e.charCodeAt(n);switch(n++,s){case 13:e.charCodeAt(n)===10&&n++;case 10:t.push(i),i=n;break;default:s>127&&qu(s)&&(t.push(i),i=n);break}}return t.push(i),t}function yM(e,t,n,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,i):YO(th(e),t,n,e.text,i)}function YO(e,t,n,i,s){(t<0||t>=e.length)&&(s?t=t<0?0:t>=e.length?e.length-1:t:w.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?qf(e,e2(i)):"unknown"}`));let o=e[t]+n;return s?o>e[t+1]?e[t+1]:typeof i=="string"&&o>i.length?i.length:o:(t<e.length-1?w.assert(o<e[t+1]):i!==void 0&&w.assert(o<=i.length),o)}function th(e){return e.lineMap||(e.lineMap=e2(e.text))}function ww(e,t){let n=CP(e,t);return{line:n,character:t-e[n]}}function CP(e,t,n){let i=Xv(e,t,Do,Po,n);return i<0&&(i=~i-1,w.assert(i!==-1,"position cannot precede the beginning of the file")),i}function wP(e,t,n){if(t===n)return 0;let i=th(e),s=Math.min(t,n),o=s===n,c=o?t:n,p=CP(i,s),u=CP(i,c,p);return o?p-u:u-p}function Hs(e,t){return ww(th(e),t)}function rh(e){return Rm(e)||qu(e)}function Rm(e){return e===32||e===9||e===11||e===12||e===160||e===133||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function qu(e){return e===10||e===13||e===8232||e===8233}function Iw(e){return e>=48&&e<=57}function gee(e){return Iw(e)||e>=65&&e<=70||e>=97&&e<=102}function hee(e){return e>=65&&e<=90||e>=97&&e<=122}function abe(e){return hee(e)||Iw(e)||e===95}function yee(e){return e>=48&&e<=55}function vee(e,t){let n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return t===0;default:return n>127}}function ha(e,t,n,i,s){if(am(t))return t;let o=!1;for(;;){let c=e.charCodeAt(t);switch(c){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,n)return t;o=!!s;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(e.charCodeAt(t+1)===47){for(t+=2;t<e.length&&!qu(e.charCodeAt(t));)t++;o=!1;continue}if(e.charCodeAt(t+1)===42){for(t+=2;t<e.length;){if(e.charCodeAt(t)===42&&e.charCodeAt(t+1)===47){t+=2;break}t++}o=!1;continue}break;case 60:case 124:case 61:case 62:if(IP(e,t)){t=vM(e,t),o=!1;continue}break;case 35:if(t===0&&obe(e,t)){t=cbe(e,t),o=!1;continue}break;case 42:if(o){t++,o=!1;continue}break;default:if(c>127&&rh(c)){t++;continue}break}return t}}var CB=7;function IP(e,t){if(w.assert(t>=0),t===0||qu(e.charCodeAt(t-1))){let n=e.charCodeAt(t);if(t+CB<e.length){for(let i=0;i<CB;i++)if(e.charCodeAt(t+i)!==n)return!1;return n===61||e.charCodeAt(t+CB)===32}}return!1}function vM(e,t,n){n&&n(_.Merge_conflict_marker_encountered,t,CB);let i=e.charCodeAt(t),s=e.length;if(i===60||i===62)for(;t<s&&!qu(e.charCodeAt(t));)t++;else for(w.assert(i===124||i===61);t<s;){let o=e.charCodeAt(t);if((o===61||o===62)&&o!==i&&IP(e,t))break;t++}return t}var bee=/^#!.*/;function obe(e,t){return w.assert(t===0),bee.test(e)}function cbe(e,t){let n=bee.exec(e)[0];return t=t+n.length,t}function wB(e,t,n,i,s,o,c){let p,u,g,d,h=!1,S=i,T=c;if(n===0){S=!0;let x=ZO(t);x&&(n=x.length)}e:for(;n>=0&&n<t.length;){let x=t.charCodeAt(n);switch(x){case 13:t.charCodeAt(n+1)===10&&n++;case 10:if(n++,i)break e;S=!0,h&&(d=!0);continue;case 9:case 11:case 12:case 32:n++;continue;case 47:let I=t.charCodeAt(n+1),P=!1;if(I===47||I===42){let E=I===47?2:3,F=n;if(n+=2,I===47)for(;n<t.length;){if(qu(t.charCodeAt(n))){P=!0;break}n++}else for(;n<t.length;){if(t.charCodeAt(n)===42&&t.charCodeAt(n+1)===47){n+=2;break}n++}if(S){if(h&&(T=s(p,u,g,d,o,T),!e&&T))return T;p=F,u=n,g=E,d=P,h=!0}continue}break e;default:if(x>127&&rh(x)){h&&qu(x)&&(d=!0),n++;continue}break e}}return h&&(T=s(p,u,g,d,o,T)),T}function bM(e,t,n,i){return wB(!1,e,t,!1,n,i)}function SM(e,t,n,i){return wB(!1,e,t,!0,n,i)}function See(e,t,n,i,s){return wB(!0,e,t,!1,n,i,s)}function Tee(e,t,n,i,s){return wB(!0,e,t,!0,n,i,s)}function lbe(e,t,n,i,s,o=[]){return o.push({kind:n,pos:e,end:t,hasTrailingNewLine:i}),o}function nh(e,t){return See(e,t,lbe,void 0,void 0)}function sb(e,t){return Tee(e,t,lbe,void 0,void 0)}function ZO(e){let t=bee.exec(e);if(t)return t[0]}function Sg(e,t){return hee(e)||e===36||e===95||e>127&&XO(e,t)}function Qh(e,t,n){return abe(e)||e===36||(n===1?e===45||e===58:!1)||e>127&&d9e(e,t)}function af(e,t,n){let i=DP(e,0);if(!Sg(i,t))return!1;for(let s=tm(i);s<e.length;s+=tm(i))if(!Qh(i=DP(e,s),t,n))return!1;return!0}function ih(e,t,n=0,i,s,o,c){var p=i,u,g,d,h,S,T,x,I,P=0,E=0,F=0;js(p,o,c);var O={getTokenFullStart:()=>d,getStartPos:()=>d,getTokenEnd:()=>u,getTextPos:()=>u,getToken:()=>S,getTokenStart:()=>h,getTokenPos:()=>h,getTokenText:()=>p.substring(h,u),getTokenValue:()=>T,hasUnicodeEscape:()=>(x&1024)!==0,hasExtendedUnicodeEscape:()=>(x&8)!==0,hasPrecedingLineBreak:()=>(x&1)!==0,hasPrecedingJSDocComment:()=>(x&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(x&32768)!==0,isIdentifier:()=>S===80||S>118,isReservedWord:()=>S>=83&&S<=118,isUnterminated:()=>(x&4)!==0,getCommentDirectives:()=>I,getNumericLiteralFlags:()=>x&25584,getTokenFlags:()=>x,reScanGreaterToken:Ie,reScanAsteriskEqualsToken:xe,reScanSlashToken:Qe,reScanTemplateToken:ft,reScanTemplateHeadOrNoSubstitutionTemplate:qt,scanJsxIdentifier:rs,scanJsxAttributeValue:zn,reScanJsxAttributeValue:Sn,reScanJsxToken:Hr,reScanLessThanToken:bi,reScanHashToken:us,reScanQuestionToken:At,reScanInvalidIdentifier:te,scanJsxToken:Un,scanJsDocToken:qe,scanJSDocCommentTextToken:_i,scan:ae,getText:ei,clearCommentDirectives:Mi,setText:js,setScriptTarget:wr,setLanguageVariant:Ds,setScriptKind:tt,setJSDocParsingMode:Mt,setOnError:oa,resetTokenState:se,setTextPos:se,setSkipJsDocLeadingAsterisks:pt,tryScan:Xn,lookAhead:tn,scanRange:ar};return w.isDebugging&&Object.defineProperty(O,"__debugShowCurrentPositionInText",{get:()=>{let Z=O.getText();return Z.slice(0,O.getTokenFullStart())+"\u2551"+Z.slice(O.getTokenFullStart())}}),O;function W(Z){return DP(p,Z)}function z(Z){return Z>=0&&Z<g?W(Z):-1}function $(Z){return p.charCodeAt(Z)}function X(Z){return Z>=0&&Z<g?$(Z):-1}function U(Z,Ee=u,et,at){if(s){let Pt=u;u=Ee,s(Z,et||0,at),u=Pt}}function _e(){let Z=u,Ee=!1,et=!1,at="";for(;;){let Pt=$(u);if(Pt===95){x|=512,Ee?(Ee=!1,et=!0,at+=p.substring(Z,u)):(x|=16384,U(et?_.Multiple_consecutive_numeric_separators_are_not_permitted:_.Numeric_separators_are_not_allowed_here,u,1)),u++,Z=u;continue}if(Iw(Pt)){Ee=!0,et=!1,u++;continue}break}return $(u-1)===95&&(x|=16384,U(_.Numeric_separators_are_not_allowed_here,u-1,1)),at+p.substring(Z,u)}function re(){let Z=u,Ee;if($(u)===48)if(u++,$(u)===95)x|=16896,U(_.Numeric_separators_are_not_allowed_here,u,1),u--,Ee=_e();else if(!ce())x|=8192,Ee=""+ +T;else if(!T)Ee="0";else{T=""+parseInt(T,8),x|=32;let kt=S===41,Tt=(kt?"-":"")+"0o"+(+T).toString(8);return kt&&Z--,U(_.Octal_literals_are_not_allowed_Use_the_syntax_0,Z,u-Z,Tt),9}else Ee=_e();let et,at;$(u)===46&&(u++,et=_e());let Pt=u;if($(u)===69||$(u)===101){u++,x|=16,($(u)===43||$(u)===45)&&u++;let kt=u,Tt=_e();Tt?(at=p.substring(Pt,kt)+Tt,Pt=u):U(_.Digit_expected)}let Le;if(x&512?(Le=Ee,et&&(Le+="."+et),at&&(Le+=at)):Le=p.substring(Z,Pt),x&8192)return U(_.Decimals_with_leading_zeros_are_not_allowed,Z,Pt-Z),T=""+ +Le,9;if(et!==void 0||x&16)return V(Z,et===void 0&&!!(x&16)),T=""+ +Le,9;{T=Le;let kt=nt();return V(Z),kt}}function V(Z,Ee){if(!Sg(W(u),e))return;let et=u,{length:at}=ge();at===1&&p[et]==="n"?U(Ee?_.A_bigint_literal_cannot_use_exponential_notation:_.A_bigint_literal_must_be_an_integer,Z,et-Z+1):(U(_.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,et,at),u=et)}function ce(){let Z=u,Ee=!0;for(;Iw(X(u));)yee($(u))||(Ee=!1),u++;return T=p.substring(Z,u),Ee}function oe(Z,Ee){let et=de(Z,!1,Ee);return et?parseInt(et,16):-1}function le(Z,Ee){return de(Z,!0,Ee)}function de(Z,Ee,et){let at=[],Pt=!1,Le=!1;for(;at.length<Z||Ee;){let kt=$(u);if(et&&kt===95){x|=512,Pt?(Pt=!1,Le=!0):U(Le?_.Multiple_consecutive_numeric_separators_are_not_permitted:_.Numeric_separators_are_not_allowed_here,u,1),u++;continue}if(Pt=et,kt>=65&&kt<=70)kt+=32;else if(!(kt>=48&&kt<=57||kt>=97&&kt<=102))break;at.push(kt),u++,Le=!1}return at.length<Z&&(at=[]),$(u-1)===95&&U(_.Numeric_separators_are_not_allowed_here,u-1,1),String.fromCharCode(...at)}function ve(Z=!1){let Ee=$(u);u++;let et="",at=u;for(;;){if(u>=g){et+=p.substring(at,u),x|=4,U(_.Unterminated_string_literal);break}let Pt=$(u);if(Pt===Ee){et+=p.substring(at,u),u++;break}if(Pt===92&&!Z){et+=p.substring(at,u),et+=Se(3),at=u;continue}if((Pt===10||Pt===13)&&!Z){et+=p.substring(at,u),x|=4,U(_.Unterminated_string_literal);break}u++}return et}function H(Z){let Ee=$(u)===96;u++;let et=u,at="",Pt;for(;;){if(u>=g){at+=p.substring(et,u),x|=4,U(_.Unterminated_template_literal),Pt=Ee?15:18;break}let Le=$(u);if(Le===96){at+=p.substring(et,u),u++,Pt=Ee?15:18;break}if(Le===36&&u+1<g&&$(u+1)===123){at+=p.substring(et,u),u+=2,Pt=Ee?16:17;break}if(Le===92){at+=p.substring(et,u),at+=Se(1|(Z?2:0)),et=u;continue}if(Le===13){at+=p.substring(et,u),u++,u<g&&$(u)===10&&u++,at+=`
|
|
`,et=u;continue}u++}return w.assert(Pt!==void 0),T=at,Pt}function Se(Z){let Ee=u;if(u++,u>=g)return U(_.Unexpected_end_of_text),"";let et=$(u);switch(u++,et){case 48:if(u>=g||!Iw($(u)))return"\0";case 49:case 50:case 51:u<g&&yee($(u))&&u++;case 52:case 53:case 54:case 55:if(u<g&&yee($(u))&&u++,x|=2048,Z&6){let Le=parseInt(p.substring(Ee+1,u),8);return Z&4&&!(Z&32)&&et!==48?U(_.Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead,Ee,u-Ee,"\\x"+Le.toString(16).padStart(2,"0")):U(_.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,Ee,u-Ee,"\\x"+Le.toString(16).padStart(2,"0")),String.fromCharCode(Le)}return p.substring(Ee,u);case 56:case 57:return x|=2048,Z&6?(Z&4&&!(Z&32)?U(_.Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class,Ee,u-Ee):U(_.Escape_sequence_0_is_not_allowed,Ee,u-Ee,p.substring(Ee,u)),String.fromCharCode(et)):p.substring(Ee,u);case 98:return"\b";case 116:return" ";case 110:return`
|
|
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(u<g&&$(u)===123){u-=2;let Le=Je(!!(Z&6));return Z&17||(x|=2048,Z&6&&U(_.Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,Ee,u-Ee)),Le}for(;u<Ee+6;u++)if(!(u<g&&gee($(u))))return x|=2048,Z&6&&U(_.Hexadecimal_digit_expected),p.substring(Ee,u);x|=1024;let at=parseInt(p.substring(Ee+2,u),16),Pt=String.fromCharCode(at);if(Z&16&&at>=55296&&at<=56319&&u+6<g&&p.substring(u,u+2)==="\\u"&&$(u+2)!==123){let Le=u,kt=u+2;for(;kt<Le+6;kt++)if(!gee($(kt)))return Pt;let Tt=parseInt(p.substring(Le+2,kt),16);if(Tt>=56320&&Tt<=57343)return u=kt,Pt+String.fromCharCode(Tt)}return Pt;case 120:for(;u<Ee+4;u++)if(!(u<g&&gee($(u))))return x|=2048,Z&6&&U(_.Hexadecimal_digit_expected),p.substring(Ee,u);return x|=4096,String.fromCharCode(parseInt(p.substring(Ee+2,u),16));case 13:u<g&&$(u)===10&&u++;case 10:case 8232:case 8233:return"";default:return(Z&16||Z&4&&!(Z&8)&&Qh(et,e))&&U(_.This_character_cannot_be_escaped_in_a_regular_expression,u-2,2),String.fromCharCode(et)}}function Je(Z){let Ee=u;u+=3;let et=u,at=le(1,!1),Pt=at?parseInt(at,16):-1,Le=!1;return Pt<0?(Z&&U(_.Hexadecimal_digit_expected),Le=!0):Pt>1114111&&(Z&&U(_.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,et,u-et),Le=!0),u>=g?(Z&&U(_.Unexpected_end_of_text),Le=!0):$(u)===125?u++:(Z&&U(_.Unterminated_Unicode_escape_sequence),Le=!0),Le?(x|=2048,p.substring(Ee,u)):(x|=8,PP(Pt))}function ye(){if(u+5<g&&$(u+1)===117){let Z=u;u+=2;let Ee=oe(4,!1);return u=Z,Ee}return-1}function ee(){if(W(u+1)===117&&W(u+2)===123){let Z=u;u+=3;let Ee=le(1,!1),et=Ee?parseInt(Ee,16):-1;return u=Z,et}return-1}function ge(){let Z="",Ee=u;for(;u<g;){let et=W(u);if(Qh(et,e))u+=tm(et);else if(et===92){if(et=ee(),et>=0&&Qh(et,e)){Z+=Je(!0),Ee=u;continue}if(et=ye(),!(et>=0&&Qh(et,e)))break;x|=1024,Z+=p.substring(Ee,u),Z+=PP(et),u+=6,Ee=u}else break}return Z+=p.substring(Ee,u),Z}function ke(){let Z=T.length;if(Z>=2&&Z<=12){let Ee=T.charCodeAt(0);if(Ee>=97&&Ee<=122){let et=s9e.get(T);if(et!==void 0)return S=et}}return S=80}function Oe(Z){let Ee="",et=!1,at=!1;for(;;){let Pt=$(u);if(Pt===95){x|=512,et?(et=!1,at=!0):U(at?_.Multiple_consecutive_numeric_separators_are_not_permitted:_.Numeric_separators_are_not_allowed_here,u,1),u++;continue}if(et=!0,!Iw(Pt)||Pt-48>=Z)break;Ee+=p[u],u++,at=!1}return $(u-1)===95&&U(_.Numeric_separators_are_not_allowed_here,u-1,1),Ee}function nt(){return $(u)===110?(T+="n",x&384&&(T=IA(T)+"n"),u++,10):(T=""+(x&128?parseInt(T.slice(2),2):x&256?parseInt(T.slice(2),8):+T),9)}function ae(){for(d=u,x=0;;){if(h=u,u>=g)return S=1;let Z=W(u);if(u===0&&Z===35&&obe(p,u)){if(u=cbe(p,u),t)continue;return S=6}switch(Z){case 10:case 13:if(x|=1,t){u++;continue}else return Z===13&&u+1<g&&$(u+1)===10?u+=2:u++,S=4;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 8203:case 8239:case 8287:case 12288:case 65279:if(t){u++;continue}else{for(;u<g&&Rm($(u));)u++;return S=5}case 33:return $(u+1)===61?$(u+2)===61?(u+=3,S=38):(u+=2,S=36):(u++,S=54);case 34:case 39:return T=ve(),S=11;case 96:return S=H(!1);case 37:return $(u+1)===61?(u+=2,S=70):(u++,S=45);case 38:return $(u+1)===38?$(u+2)===61?(u+=3,S=77):(u+=2,S=56):$(u+1)===61?(u+=2,S=74):(u++,S=51);case 40:return u++,S=21;case 41:return u++,S=22;case 42:if($(u+1)===61)return u+=2,S=67;if($(u+1)===42)return $(u+2)===61?(u+=3,S=68):(u+=2,S=43);if(u++,P&&(x&32768)===0&&x&1){x|=32768;continue}return S=42;case 43:return $(u+1)===43?(u+=2,S=46):$(u+1)===61?(u+=2,S=65):(u++,S=40);case 44:return u++,S=28;case 45:return $(u+1)===45?(u+=2,S=47):$(u+1)===61?(u+=2,S=66):(u++,S=41);case 46:return Iw($(u+1))?(re(),S=9):$(u+1)===46&&$(u+2)===46?(u+=3,S=26):(u++,S=25);case 47:if($(u+1)===47){for(u+=2;u<g&&!qu($(u));)u++;if(I=fr(I,p.slice(h,u),p9e,h),t)continue;return S=2}if($(u+1)===42){u+=2;let kt=$(u)===42&&$(u+1)!==47,Tt=!1,Rt=h;for(;u<g;){let Ye=$(u);if(Ye===42&&$(u+1)===47){u+=2,Tt=!0;break}u++,qu(Ye)&&(Rt=u,x|=1)}if(kt&&Ue()&&(x|=2),I=fr(I,p.slice(Rt,u),f9e,Rt),Tt||U(_.Asterisk_Slash_expected),t)continue;return Tt||(x|=4),S=3}return $(u+1)===61?(u+=2,S=69):(u++,S=44);case 48:if(u+2<g&&($(u+1)===88||$(u+1)===120))return u+=2,T=le(1,!0),T||(U(_.Hexadecimal_digit_expected),T="0"),T="0x"+T,x|=64,S=nt();if(u+2<g&&($(u+1)===66||$(u+1)===98))return u+=2,T=Oe(2),T||(U(_.Binary_digit_expected),T="0"),T="0b"+T,x|=128,S=nt();if(u+2<g&&($(u+1)===79||$(u+1)===111))return u+=2,T=Oe(8),T||(U(_.Octal_digit_expected),T="0"),T="0o"+T,x|=256,S=nt();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return S=re();case 58:return u++,S=59;case 59:return u++,S=27;case 60:if(IP(p,u)){if(u=vM(p,u,U),t)continue;return S=7}return $(u+1)===60?$(u+2)===61?(u+=3,S=71):(u+=2,S=48):$(u+1)===61?(u+=2,S=33):n===1&&$(u+1)===47&&$(u+2)!==42?(u+=2,S=31):(u++,S=30);case 61:if(IP(p,u)){if(u=vM(p,u,U),t)continue;return S=7}return $(u+1)===61?$(u+2)===61?(u+=3,S=37):(u+=2,S=35):$(u+1)===62?(u+=2,S=39):(u++,S=64);case 62:if(IP(p,u)){if(u=vM(p,u,U),t)continue;return S=7}return u++,S=32;case 63:return $(u+1)===46&&!Iw($(u+2))?(u+=2,S=29):$(u+1)===63?$(u+2)===61?(u+=3,S=78):(u+=2,S=61):(u++,S=58);case 91:return u++,S=23;case 93:return u++,S=24;case 94:return $(u+1)===61?(u+=2,S=79):(u++,S=53);case 123:return u++,S=19;case 124:if(IP(p,u)){if(u=vM(p,u,U),t)continue;return S=7}return $(u+1)===124?$(u+2)===61?(u+=3,S=76):(u+=2,S=57):$(u+1)===61?(u+=2,S=75):(u++,S=52);case 125:return u++,S=20;case 126:return u++,S=55;case 64:return u++,S=60;case 92:let Ee=ee();if(Ee>=0&&Sg(Ee,e))return T=Je(!0)+ge(),S=ke();let et=ye();return et>=0&&Sg(et,e)?(u+=6,x|=1024,T=String.fromCharCode(et)+ge(),S=ke()):(U(_.Invalid_character),u++,S=0);case 35:if(u!==0&&p[u+1]==="!")return U(_.can_only_be_used_at_the_start_of_a_file,u,2),u++,S=0;let at=W(u+1);if(at===92){u++;let kt=ee();if(kt>=0&&Sg(kt,e))return T="#"+Je(!0)+ge(),S=81;let Tt=ye();if(Tt>=0&&Sg(Tt,e))return u+=6,x|=1024,T="#"+String.fromCharCode(Tt)+ge(),S=81;u--}return Sg(at,e)?(u++,Ne(at,e)):(T="#",U(_.Invalid_character,u++,tm(Z))),S=81;case 65533:return U(_.File_appears_to_be_binary,0,0),u=g,S=8;default:let Pt=Ne(Z,e);if(Pt)return S=Pt;if(Rm(Z)){u+=tm(Z);continue}else if(qu(Z)){x|=1,u+=tm(Z);continue}let Le=tm(Z);return U(_.Invalid_character,u,Le),u+=Le,S=0}}}function Ue(){switch(F){case 0:return!0;case 1:return!1}return E!==3&&E!==4?!0:F===3?!1:_9e.test(p.slice(d,u))}function te(){w.assert(S===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),u=h=d,x=0;let Z=W(u),Ee=Ne(Z,99);return Ee?S=Ee:(u+=tm(Z),S)}function Ne(Z,Ee){let et=Z;if(Sg(et,Ee)){for(u+=tm(et);u<g&&Qh(et=W(u),Ee);)u+=tm(et);return T=p.substring(h,u),et===92&&(T+=ge()),ke()}}function Ie(){if(S===32){if($(u)===62)return $(u+1)===62?$(u+2)===61?(u+=3,S=73):(u+=2,S=50):$(u+1)===61?(u+=2,S=72):(u++,S=49);if($(u)===61)return u++,S=34}return S}function xe(){return w.assert(S===67,"'reScanAsteriskEqualsToken' should only be called on a '*='"),u=h+1,S=64}function Qe(Z){if(S===44||S===69){let Ee=h+1;u=Ee;let et=!1,at=!1,Pt=!1;for(;;){let kt=X(u);if(kt===-1||qu(kt)){x|=4;break}if(et)et=!1;else{if(kt===47&&!Pt)break;kt===91?Pt=!0:kt===92?et=!0:kt===93?Pt=!1:!Pt&&kt===40&&X(u+1)===63&&X(u+2)===60&&X(u+3)!==61&&X(u+3)!==33&&(at=!0)}u++}let Le=u;if(x&4){u=Ee,et=!1;let kt=0,Tt=!1,Rt=0;for(;u<Le;){let Ye=$(u);if(et)et=!1;else if(Ye===92)et=!0;else if(Ye===91)kt++;else if(Ye===93&&kt)kt--;else if(!kt){if(Ye===123)Tt=!0;else if(Ye===125&&Tt)Tt=!1;else if(!Tt){if(Ye===40)Rt++;else if(Ye===41&&Rt)Rt--;else if(Ye===41||Ye===93||Ye===125)break}}u++}for(;rh(X(u-1))||X(u-1)===59;)u--;U(_.Unterminated_regular_expression_literal,h,u-h)}else{u++;let kt=0;for(;;){let Tt=z(u);if(Tt===-1||!Qh(Tt,e))break;let Rt=tm(Tt);if(Z){let Ye=xB(Tt);Ye===void 0?U(_.Unknown_regular_expression_flag,u,Rt):kt&Ye?U(_.Duplicate_regular_expression_flag,u,Rt):((kt|Ye)&96)===96?U(_.The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously,u,Rt):(kt|=Ye,Bt(Ye,Rt))}u+=Rt}Z&&ar(Ee,Le-Ee,()=>{St(kt,!0,at)})}T=p.substring(h,u),S=14}return S}function St(Z,Ee,et){var at=!!(Z&64),Pt=!!(Z&96),Le=Pt||!Ee,kt=!1,Tt=0,Rt,Ye,Gt,ln=[],Ae;function wt(Nt){for(;;){if(ln.push(Ae),Ae=void 0,fe(Nt),Ae=ln.pop(),X(u)!==124)return;u++}}function fe(Nt){let mr=!1;for(;;){let Tr=u,Cr=X(u);switch(Cr){case-1:return;case 94:case 36:u++,mr=!1;break;case 92:switch(u++,X(u)){case 98:case 66:u++,mr=!1;break;default:je(),mr=!0;break}break;case 40:if(u++,X(u)===63)switch(u++,X(u)){case 61:case 33:u++,mr=!Le;break;case 60:let Vs=u;switch(u++,X(u)){case 61:case 33:u++,mr=!1;break;default:jt(!1),ur(62),e<5&&U(_.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later,Vs,u-Vs),Tt++,mr=!0;break}break;default:let qs=u,xs=j(0);X(u)===45&&(u++,j(xs),u===qs+1&&U(_.Subpattern_flags_must_be_present_when_there_is_a_minus_sign,qs,u-qs)),ur(58),mr=!0;break}else Tt++,mr=!0;wt(!0),ur(41);break;case 123:u++;let rr=u;ce();let di=T;if(!Le&&!di){mr=!0;break}if(X(u)===44){u++,ce();let Vs=T;if(di)Vs&&Number.parseInt(di)>Number.parseInt(Vs)&&(Le||X(u)===125)&&U(_.Numbers_out_of_order_in_quantifier,rr,u-rr);else if(Vs||X(u)===125)U(_.Incomplete_quantifier_Digit_expected,rr,0);else{U(_.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,Tr,1,String.fromCharCode(Cr)),mr=!0;break}}else if(!di){Le&&U(_.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,Tr,1,String.fromCharCode(Cr)),mr=!0;break}if(X(u)!==125)if(Le)U(_._0_expected,u,0,"}"),u--;else{mr=!0;break}case 42:case 43:case 63:u++,X(u)===63&&u++,mr||U(_.There_is_nothing_available_for_repetition,Tr,u-Tr),mr=!1;break;case 46:u++,mr=!0;break;case 91:u++,at?Qt():ut(),ur(93),mr=!0;break;case 41:if(Nt)return;case 93:case 125:(Le||Cr===41)&&U(_.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,u,1,String.fromCharCode(Cr)),u++,mr=!0;break;case 47:case 124:return;default:hr(),mr=!0;break}}}function j(Nt){for(;;){let mr=z(u);if(mr===-1||!Qh(mr,e))break;let Tr=tm(mr),Cr=xB(mr);Cr===void 0?U(_.Unknown_regular_expression_flag,u,Tr):Nt&Cr?U(_.Duplicate_regular_expression_flag,u,Tr):Cr&28?(Nt|=Cr,Bt(Cr,Tr)):U(_.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern,u,Tr),u+=Tr}return Nt}function je(){switch(w.assertEqual($(u-1),92),X(u)){case 107:u++,X(u)===60?(u++,jt(!0),ur(62)):(Le||et)&&U(_.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets,u-2,2);break;case 113:if(at){u++,U(_.q_is_only_available_inside_character_class,u-2,2);break}default:w.assert(Ot()||q()||vt(!0));break}}function q(){w.assertEqual($(u-1),92);let Nt=X(u);if(Nt>=49&&Nt<=57){let mr=u;return ce(),Gt=Fr(Gt,{pos:mr,end:u,value:+T}),!0}return!1}function vt(Nt){w.assertEqual($(u-1),92);let mr=X(u);switch(mr){case-1:return U(_.Undetermined_character_escape,u-1,1),"\\";case 99:if(u++,mr=X(u),hee(mr))return u++,String.fromCharCode(mr&31);if(Le)U(_.c_must_be_followed_by_an_ASCII_letter,u-2,2);else if(Nt)return u--,"\\";return String.fromCharCode(mr);case 94:case 36:case 47:case 92:case 46:case 42:case 43:case 63:case 40:case 41:case 91:case 93:case 123:case 125:case 124:return u++,String.fromCharCode(mr);default:return u--,Se(4|(Ee?8:0)|(Pt?16:0)|(Nt?32:0))}}function jt(Nt){w.assertEqual($(u-1),60),h=u,Ne(z(u),e),u===h?U(_.Expected_a_capturing_group_name):Nt?Ye=Fr(Ye,{pos:h,end:u,name:T}):Ae?.has(T)||ln.some(mr=>mr?.has(T))?U(_.Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other,h,u-h):(Ae??(Ae=new Set),Ae.add(T),Rt??(Rt=new Set),Rt.add(T))}function Ce(Nt){return Nt===93||Nt===-1||u>=g}function ut(){for(w.assertEqual($(u-1),91),X(u)===94&&u++;;){let Nt=X(u);if(Ce(Nt))return;let mr=u,Tr=It();if(X(u)===45){u++;let Cr=X(u);if(Ce(Cr))return;!Tr&&Le&&U(_.A_character_class_range_must_not_be_bounded_by_another_character_class,mr,u-1-mr);let rr=u,di=It();if(!di&&Le){U(_.A_character_class_range_must_not_be_bounded_by_another_character_class,rr,u-rr);continue}if(!Tr)continue;let Vs=DP(Tr,0),qs=DP(di,0);Tr.length===tm(Vs)&&di.length===tm(qs)&&Vs>qs&&U(_.Range_out_of_order_in_character_class,mr,u-mr)}}}function Qt(){w.assertEqual($(u-1),91);let Nt=!1;X(u)===94&&(u++,Nt=!0);let mr=!1,Tr=X(u);if(Ce(Tr))return;let Cr=u,rr;switch(p.slice(u,u+2)){case"--":case"&&":U(_.Expected_a_class_set_operand),kt=!1;break;default:rr=jr();break}switch(X(u)){case 45:if(X(u+1)===45){Nt&&kt&&U(_.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,Cr,u-Cr),mr=kt,Zr(3),kt=!Nt&&mr;return}break;case 38:if(X(u+1)===38){Zr(2),Nt&&kt&&U(_.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,Cr,u-Cr),mr=kt,kt=!Nt&&mr;return}else U(_.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,u,1,String.fromCharCode(Tr));break;default:Nt&&kt&&U(_.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,Cr,u-Cr),mr=kt;break}for(;Tr=X(u),Tr!==-1;){switch(Tr){case 45:if(u++,Tr=X(u),Ce(Tr)){kt=!Nt&&mr;return}if(Tr===45){u++,U(_.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,u-2,2),Cr=u-2,rr=p.slice(Cr,u);continue}else{rr||U(_.A_character_class_range_must_not_be_bounded_by_another_character_class,Cr,u-1-Cr);let di=u,Vs=jr();if(Nt&&kt&&U(_.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,di,u-di),mr||(mr=kt),!Vs){U(_.A_character_class_range_must_not_be_bounded_by_another_character_class,di,u-di);break}if(!rr)break;let qs=DP(rr,0),xs=DP(Vs,0);rr.length===tm(qs)&&Vs.length===tm(xs)&&qs>xs&&U(_.Range_out_of_order_in_character_class,Cr,u-Cr)}break;case 38:Cr=u,u++,X(u)===38?(u++,U(_.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,u-2,2),X(u)===38&&(U(_.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,u,1,String.fromCharCode(Tr)),u++)):U(_.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,u-1,1,String.fromCharCode(Tr)),rr=p.slice(Cr,u);continue}if(Ce(X(u)))break;switch(Cr=u,p.slice(u,u+2)){case"--":case"&&":U(_.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,u,2),u+=2,rr=p.slice(Cr,u);break;default:rr=jr();break}}kt=!Nt&&mr}function Zr(Nt){let mr=kt;for(;;){let Tr=X(u);if(Ce(Tr))break;switch(Tr){case 45:u++,X(u)===45?(u++,Nt!==3&&U(_.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,u-2,2)):U(_.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,u-1,1);break;case 38:u++,X(u)===38?(u++,Nt!==2&&U(_.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,u-2,2),X(u)===38&&(U(_.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,u,1,String.fromCharCode(Tr)),u++)):U(_.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,u-1,1,String.fromCharCode(Tr));break;default:switch(Nt){case 3:U(_._0_expected,u,0,"--");break;case 2:U(_._0_expected,u,0,"&&");break;default:break}break}if(Tr=X(u),Ce(Tr)){U(_.Expected_a_class_set_operand);break}jr(),mr&&(mr=kt)}kt=mr}function jr(){switch(kt=!1,X(u)){case-1:return"";case 91:return u++,Qt(),ur(93),"";case 92:if(u++,Ot())return"";if(X(u)===113)return u++,X(u)===123?(u++,Jr(),ur(125),""):(U(_.q_must_be_followed_by_string_alternatives_enclosed_in_braces,u-2,2),"q");u--;default:return ct()}}function Jr(){w.assertEqual($(u-1),123);let Nt=0;for(;;)switch(X(u)){case-1:return;case 125:Nt!==1&&(kt=!0);return;case 124:Nt!==1&&(kt=!0),u++,o=u,Nt=0;break;default:ct(),Nt++;break}}function ct(){let Nt=X(u);if(Nt===-1)return"";if(Nt===92){u++;let mr=X(u);switch(mr){case 98:return u++,"\b";case 38:case 45:case 33:case 35:case 37:case 44:case 58:case 59:case 60:case 61:case 62:case 64:case 96:case 126:return u++,String.fromCharCode(mr);default:return vt(!1)}}else if(Nt===X(u+1))switch(Nt){case 38:case 33:case 35:case 37:case 42:case 43:case 44:case 46:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 96:case 126:return U(_.A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash,u,2),u+=2,p.substring(u-2,u)}switch(Nt){case 47:case 40:case 41:case 91:case 93:case 123:case 125:case 45:case 124:return U(_.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,u,1,String.fromCharCode(Nt)),u++,String.fromCharCode(Nt)}return hr()}function It(){if(X(u)===92){u++;let Nt=X(u);switch(Nt){case 98:return u++,"\b";case 45:return u++,String.fromCharCode(Nt);default:return Ot()?"":vt(!1)}}else return hr()}function Ot(){w.assertEqual($(u-1),92);let Nt=!1,mr=u-1,Tr=X(u);switch(Tr){case 100:case 68:case 115:case 83:case 119:case 87:return u++,!0;case 80:Nt=!0;case 112:if(u++,X(u)===123){u++;let Cr=u,rr=Ht();if(X(u)===61){let di=ube.get(rr);if(u===Cr)U(_.Expected_a_Unicode_property_name);else if(di===void 0){U(_.Unknown_Unicode_property_name,Cr,u-Cr);let xs=pS(rr,ube.keys(),Do);xs&&U(_.Did_you_mean_0,Cr,u-Cr,xs)}u++;let Vs=u,qs=Ht();if(u===Vs)U(_.Expected_a_Unicode_property_value);else if(di!==void 0&&!TM[di].has(qs)){U(_.Unknown_Unicode_property_value,Vs,u-Vs);let xs=pS(qs,TM[di],Do);xs&&U(_.Did_you_mean_0,Vs,u-Vs,xs)}}else if(u===Cr)U(_.Expected_a_Unicode_property_name_or_value);else if(fbe.has(rr))at?Nt?U(_.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,Cr,u-Cr):kt=!0:U(_.Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set,Cr,u-Cr);else if(!TM.General_Category.has(rr)&&!pbe.has(rr)){U(_.Unknown_Unicode_property_name_or_value,Cr,u-Cr);let di=pS(rr,[...TM.General_Category,...pbe,...fbe],Do);di&&U(_.Did_you_mean_0,Cr,u-Cr,di)}ur(125),Pt||U(_.Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,mr,u-mr)}else if(Le)U(_._0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces,u-2,2,String.fromCharCode(Tr));else return u--,!1;return!0}return!1}function Ht(){let Nt="";for(;;){let mr=X(u);if(mr===-1||!abe(mr))break;Nt+=String.fromCharCode(mr),u++}return Nt}function hr(){let Nt=Pt?tm(z(u)):1;return u+=Nt,Nt>0?p.substring(u-Nt,u):""}function ur(Nt){X(u)===Nt?u++:U(_._0_expected,u,0,String.fromCharCode(Nt))}wt(!1),or(Ye,Nt=>{if(!Rt?.has(Nt.name)&&(U(_.There_is_no_capturing_group_named_0_in_this_regular_expression,Nt.pos,Nt.end-Nt.pos,Nt.name),Rt)){let mr=pS(Nt.name,Rt,Do);mr&&U(_.Did_you_mean_0,Nt.pos,Nt.end-Nt.pos,mr)}}),or(Gt,Nt=>{Nt.value>Tt&&(Tt?U(_.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression,Nt.pos,Nt.end-Nt.pos,Tt):U(_.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression,Nt.pos,Nt.end-Nt.pos))})}function Bt(Z,Ee){let et=a9e.get(Z);et&&e<et&&U(_.This_regular_expression_flag_is_only_available_when_targeting_0_or_later,u,Ee,P8(et))}function fr(Z,Ee,et,at){let Pt=Mr(Ee.trimStart(),et);return Pt===void 0?Z:Fr(Z,{range:{pos:at,end:u},type:Pt})}function Mr(Z,Ee){let et=Ee.exec(Z);if(et)switch(et[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function ft(Z){return u=h,S=H(!Z)}function qt(){return u=h,S=H(!0)}function Hr(Z=!0){return u=h=d,S=Un(Z)}function bi(){return S===48?(u=h+1,S=30):S}function us(){return S===81?(u=h+1,S=63):S}function At(){return w.assert(S===61,"'reScanQuestionToken' should only be called on a '??'"),u=h+1,S=58}function Un(Z=!0){if(d=h=u,u>=g)return S=1;let Ee=$(u);if(Ee===60)return $(u+1)===47?(u+=2,S=31):(u++,S=30);if(Ee===123)return u++,S=19;let et=0;for(;u<g&&(Ee=$(u),Ee!==123);){if(Ee===60){if(IP(p,u))return u=vM(p,u,U),S=7;break}if(Ee===62&&U(_.Unexpected_token_Did_you_mean_or_gt,u,1),Ee===125&&U(_.Unexpected_token_Did_you_mean_or_rbrace,u,1),qu(Ee)&&et===0)et=-1;else{if(!Z&&qu(Ee)&&et>0)break;rh(Ee)||(et=u)}u++}return T=p.substring(d,u),et===-1?13:12}function rs(){if(zp(S)){for(;u<g;){if($(u)===45){T+="-",u++;continue}let Ee=u;if(T+=ge(),u===Ee)break}return ke()}return S}function zn(){switch(d=u,$(u)){case 34:case 39:return T=ve(!0),S=11;default:return ae()}}function Sn(){return u=h=d,zn()}function _i(Z){if(d=h=u,x=0,u>=g)return S=1;for(let Ee=$(u);u<g&&!qu(Ee)&&Ee!==96;Ee=W(++u))if(!Z){if(Ee===123)break;if(Ee===64&&u-1>=0&&Rm($(u-1))&&!(u+1<g&&rh($(u+1))))break}return u===h?qe():(T=p.substring(h,u),S=82)}function qe(){if(d=h=u,x=0,u>=g)return S=1;let Z=W(u);switch(u+=tm(Z),Z){case 9:case 11:case 12:case 32:for(;u<g&&Rm($(u));)u++;return S=5;case 64:return S=60;case 13:$(u)===10&&u++;case 10:return x|=1,S=4;case 42:return S=42;case 123:return S=19;case 125:return S=20;case 91:return S=23;case 93:return S=24;case 40:return S=21;case 41:return S=22;case 60:return S=30;case 62:return S=32;case 61:return S=64;case 44:return S=28;case 46:return S=25;case 96:return S=62;case 35:return S=63;case 92:u--;let Ee=ee();if(Ee>=0&&Sg(Ee,e))return T=Je(!0)+ge(),S=ke();let et=ye();return et>=0&&Sg(et,e)?(u+=6,x|=1024,T=String.fromCharCode(et)+ge(),S=ke()):(u++,S=0)}if(Sg(Z,e)){let Ee=Z;for(;u<g&&Qh(Ee=W(u),e)||Ee===45;)u+=tm(Ee);return T=p.substring(h,u),Ee===92&&(T+=ge()),S=ke()}else return S=0}function bt(Z,Ee){let et=u,at=d,Pt=h,Le=S,kt=T,Tt=x,Rt=Z();return(!Rt||Ee)&&(u=et,d=at,h=Pt,S=Le,T=kt,x=Tt),Rt}function ar(Z,Ee,et){let at=g,Pt=u,Le=d,kt=h,Tt=S,Rt=T,Ye=x,Gt=I;js(p,Z,Ee);let ln=et();return g=at,u=Pt,d=Le,h=kt,S=Tt,T=Rt,x=Ye,I=Gt,ln}function tn(Z){return bt(Z,!0)}function Xn(Z){return bt(Z,!1)}function ei(){return p}function Mi(){I=void 0}function js(Z,Ee,et){p=Z||"",g=et===void 0?p.length:Ee+et,se(Ee||0)}function oa(Z){s=Z}function wr(Z){e=Z}function Ds(Z){n=Z}function tt(Z){E=Z}function Mt(Z){F=Z}function se(Z){w.assert(Z>=0),u=Z,d=Z,h=Z,S=0,T=void 0,x=0}function pt(Z){P+=Z?1:-1}}function DP(e,t){return e.codePointAt(t)}function tm(e){return e>=65536?2:e===-1?0:1}function h9e(e){if(w.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)}var y9e=String.fromCodePoint?e=>String.fromCodePoint(e):h9e;function PP(e){return y9e(e)}var ube=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),pbe=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),fbe=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),TM={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};TM.Script_Extensions=TM.Script;function Ul(e){return $f(e)||Sf(e)}function Dw(e){return fP(e,vA,w8)}var kee=new Map([[99,"lib.esnext.full.d.ts"],[11,"lib.es2024.full.d.ts"],[10,"lib.es2023.full.d.ts"],[9,"lib.es2022.full.d.ts"],[8,"lib.es2021.full.d.ts"],[7,"lib.es2020.full.d.ts"],[6,"lib.es2019.full.d.ts"],[5,"lib.es2018.full.d.ts"],[4,"lib.es2017.full.d.ts"],[3,"lib.es2016.full.d.ts"],[2,"lib.es6.d.ts"]]);function kM(e){let t=xa(e);switch(t){case 99:case 11:case 10:case 9:case 8:case 7:case 6:case 5:case 4:case 3:case 2:return kee.get(t);default:return"lib.d.ts"}}function mc(e){return e.start+e.length}function xee(e){return e.length===0}function IB(e,t){return t>=e.start&&t<mc(e)}function xM(e,t){return t>=e.pos&&t<=e.end}function Cee(e,t){return t.start>=e.start&&mc(t)<=mc(e)}function DB(e,t){return t.pos>=e.start&&t.end<=mc(e)}function wee(e,t){return t.start>=e.pos&&mc(t)<=e.end}function _be(e,t){return Iee(e,t)!==void 0}function Iee(e,t){let n=Eee(e,t);return n&&n.length===0?void 0:n}function Dee(e,t){return wM(e.start,e.length,t.start,t.length)}function CM(e,t,n){return wM(e.start,e.length,t,n)}function wM(e,t,n,i){let s=e+t,o=n+i;return n<=s&&o>=e}function Pee(e,t){return t<=mc(e)&&t>=e.start}function Aee(e,t){return CM(t,e.pos,e.end-e.pos)}function Eee(e,t){let n=Math.max(e.start,t.start),i=Math.min(mc(e),mc(t));return n<=i?$c(n,i):void 0}function PB(e){e=e.filter(i=>i.length>0).sort((i,s)=>i.start!==s.start?i.start-s.start:i.length-s.length);let t=[],n=0;for(;n<e.length;){let i=e[n],s=n+1;for(;s<e.length&&Dee(i,e[s]);){let o=Math.min(i.start,e[s].start),c=Math.max(mc(i),mc(e[s]));i=$c(o,c),s++}n=s,t.push(i)}return t}function yu(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function $c(e,t){return yu(e,t-e)}function AP(e){return yu(e.span.start,e.newLength)}function Nee(e){return xee(e.span)&&e.newLength===0}function IM(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}var eF=IM(yu(0,0),0);function Mee(e){if(e.length===0)return eF;if(e.length===1)return e[0];let t=e[0],n=t.span.start,i=mc(t.span),s=n+t.newLength;for(let o=1;o<e.length;o++){let c=e[o],p=n,u=i,g=s,d=c.span.start,h=mc(c.span),S=d+c.newLength;n=Math.min(p,d),i=Math.max(u,u+(h-g)),s=Math.max(S,S+(g-h))}return IM($c(n,i),s-n)}function dbe(e){if(e&&e.kind===169){for(let t=e;t;t=t.parent)if(Fs(t)||ni(t)||t.kind===265)return t}}function Tf(e,t){return Gi(e)&&ri(e,31)&&t.kind===177}function Ree(e){return Ls(e)?Fi(e.elements,Oee):!1}function Oee(e){return Fl(e)?!0:Ree(e.name)}function UT(e){let t=e.parent;for(;Da(t.parent);)t=t.parent.parent;return t.parent}function Fee(e,t){Da(e)&&(e=UT(e));let n=t(e);return e.kind===261&&(e=e.parent),e&&e.kind===262&&(n|=t(e),e=e.parent),e&&e.kind===244&&(n|=t(e)),n}function I0(e){return Fee(e,Mu)}function AB(e){return Fee(e,Rre)}function Kh(e){return Fee(e,v9e)}function v9e(e){return e.flags}var jee=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"];function EB(e,t,n){let i=e.toLowerCase(),s=/^([a-z]+)(?:[_-]([a-z]+))?$/.exec(i);if(!s){n&&n.push(fc(_.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}let o=s[1],c=s[2];ws(jee,i)&&!p(o,c,n)&&p(o,void 0,n),UY(e);function p(u,g,d){let h=ra(t.getExecutingFilePath()),S=ti(h),T=Jn(S,u);if(g&&(T=T+"-"+g),T=t.resolvePath(Jn(T,"diagnosticMessages.generated.json")),!t.fileExists(T))return!1;let x="";try{x=t.readFile(T)}catch{return d&&d.push(fc(_.Unable_to_open_file_0,T)),!1}try{Zre(JSON.parse(x))}catch{return d&&d.push(fc(_.Corrupted_locale_file_0,T)),!1}return!0}}function sc(e,t){if(e)for(;e.original!==void 0;)e=e.original;return!e||!t||t(e)?e:void 0}function vr(e,t){for(;e;){let n=t(e);if(n==="quit")return;if(n)return e;e=e.parent}}function EP(e){return(e.flags&16)===0}function As(e,t){if(e===void 0||EP(e))return e;for(e=e.original;e;){if(EP(e))return!t||t(e)?e:void 0;e=e.original}}function gc(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Ai(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function Fn(e){return Ai(e.escapedText)}function VT(e){let t=JT(e.escapedText);return t?Hn(t,qp):void 0}function kc(e){return e.valueDeclaration&&Hu(e.valueDeclaration)?Fn(e.valueDeclaration.name):Ai(e.escapedName)}function mbe(e){let t=e.parent.parent;if(t){if(ql(t))return NB(t);switch(t.kind){case 244:if(t.declarationList&&t.declarationList.declarations[0])return NB(t.declarationList.declarations[0]);break;case 245:let n=t.expression;switch(n.kind===227&&n.operatorToken.kind===64&&(n=n.left),n.kind){case 212:return n.name;case 213:let i=n.argumentExpression;if(Be(i))return i}break;case 218:return NB(t.expression);case 257:{if(ql(t.statement)||ht(t.statement))return NB(t.statement);break}}}}function NB(e){let t=Ss(e);return t&&Be(t)?t:void 0}function DM(e,t){return!!(Vl(e)&&Be(e.name)&&Fn(e.name)===Fn(t)||Qc(e)&&_t(e.declarationList.declarations,n=>DM(n,t)))}function Lee(e){return e.name||mbe(e)}function Vl(e){return!!e.name}function tF(e){switch(e.kind){case 80:return e;case 349:case 342:{let{name:n}=e;if(n.kind===167)return n.right;break}case 214:case 227:{let n=e;switch(Hc(n)){case 1:case 4:case 5:case 3:return XF(n.left);case 7:case 8:case 9:return n.arguments[1];default:return}}case 347:return Lee(e);case 341:return mbe(e);case 278:{let{expression:n}=e;return Be(n)?n:void 0}case 213:let t=e;if(KF(t))return t.argumentExpression}return e.name}function Ss(e){if(e!==void 0)return tF(e)||(Ao(e)||Fo(e)||Zc(e)?rF(e):void 0)}function rF(e){if(e.parent){if(yl(e.parent)||Da(e.parent))return e.parent.name;if(vn(e.parent)&&e===e.parent.right){if(Be(e.parent.left))return e.parent.left;if(Oo(e.parent.left))return XF(e.parent.left)}else if(li(e.parent)&&Be(e.parent.name))return e.parent.name}else return}function ab(e){if(a_(e))return Mn(e.modifiers,Il)}function fS(e){if(ri(e,98303))return Mn(e.modifiers,la)}function gbe(e,t){if(e.name)if(Be(e.name)){let n=e.name.escapedText;return iF(e.parent,t).filter(i=>c_(i)&&Be(i.name)&&i.name.escapedText===n)}else{let n=e.parent.parameters.indexOf(e);w.assert(n>-1,"Parameters should always be in their parents' parameter list");let i=iF(e.parent,t).filter(c_);if(n<i.length)return[i[n]]}return Ke}function Pw(e){return gbe(e,!1)}function Wee(e){return gbe(e,!0)}function hbe(e,t){let n=e.name.escapedText;return iF(e.parent,t).filter(i=>hd(i)&&i.typeParameters.some(s=>s.name.escapedText===n))}function Bee(e){return hbe(e,!1)}function zee(e){return hbe(e,!0)}function Gee(e){return!!ld(e,c_)}function Jee(e){return ld(e,H2)}function Uee(e){return sF(e,v7)}function MB(e){return ld(e,Pie)}function ybe(e){return ld(e,TJ)}function Vee(e){return ld(e,TJ,!0)}function vbe(e){return ld(e,kJ)}function qee(e){return ld(e,kJ,!0)}function bbe(e){return ld(e,xJ)}function $ee(e){return ld(e,xJ,!0)}function Sbe(e){return ld(e,CJ)}function Hee(e){return ld(e,CJ,!0)}function Qee(e){return ld(e,h7,!0)}function RB(e){return ld(e,wJ)}function Kee(e){return ld(e,wJ,!0)}function OB(e){return ld(e,_4)}function nF(e){return ld(e,IJ)}function Xee(e){return ld(e,y7)}function Tbe(e){return ld(e,hd)}function FB(e){return ld(e,b7)}function D0(e){let t=ld(e,HA);if(t&&t.typeExpression&&t.typeExpression.type)return t}function qy(e){let t=ld(e,HA);return!t&&Gi(e)&&(t=Bn(Pw(e),n=>!!n.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function PM(e){let t=Xee(e);if(t&&t.typeExpression)return t.typeExpression.type;let n=D0(e);if(n&&n.typeExpression){let i=n.typeExpression.type;if(Dp(i)){let s=Bn(i.members,B2);return s&&s.type}if(Pg(i)||SI(i))return i.type}}function iF(e,t){var n;if(!h6(e))return Ke;let i=(n=e.jsDoc)==null?void 0:n.jsDocCache;if(i===void 0||t){let s=Az(e,t);w.assert(s.length<2||s[0]!==s[1]),i=Ma(s,o=>um(o)?o.tags:o),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function P0(e){return iF(e,!1)}function ld(e,t,n){return Bn(iF(e,n),t)}function sF(e,t){return P0(e).filter(t)}function kbe(e,t){return P0(e).filter(n=>n.kind===t)}function AM(e){return typeof e=="string"?e:e?.map(t=>t.kind===322?t.text:b9e(t)).join("")}function b9e(e){let t=e.kind===325?"link":e.kind===326?"linkcode":"linkplain",n=e.name?kf(e.name):"",i=e.name&&(e.text===""||e.text.startsWith("://"))?"":" ";return`{@${t} ${n}${i}${e.text}}`}function ob(e){if(cv(e)){if(TI(e.parent)){let t=Hw(e.parent);if(t&&Dr(t.tags))return Ma(t.tags,n=>hd(n)?n.typeParameters:void 0)}return Ke}if(fd(e))return w.assert(e.parent.kind===321),Ma(e.parent.tags,t=>hd(t)?t.typeParameters:void 0);if(e.typeParameters||zie(e)&&e.typeParameters)return e.typeParameters;if(dn(e)){let t=_8(e);if(t.length)return t;let n=qy(e);if(n&&Pg(n)&&n.typeParameters)return n.typeParameters}return Ke}function Aw(e){return e.constraint?e.constraint:hd(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function sh(e){return e.kind===80||e.kind===81}function EM(e){return e.kind===179||e.kind===178}function aF(e){return Ln(e)&&!!(e.flags&64)}function jB(e){return xo(e)&&!!(e.flags&64)}function qT(e){return Ws(e)&&!!(e.flags&64)}function $u(e){let t=e.kind;return!!(e.flags&64)&&(t===212||t===213||t===214||t===236)}function NP(e){return $u(e)&&!V2(e)&&!!e.questionDotToken}function oF(e){return NP(e.parent)&&e.parent.expression===e}function MP(e){return!$u(e.parent)||NP(e.parent)||e!==e.parent.expression}function LB(e){return e.kind===227&&e.operatorToken.kind===61}function Nd(e){return Pf(e)&&Be(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function Md(e){return Nc(e,8)}function cF(e){return V2(e)&&!!(e.flags&64)}function RP(e){return e.kind===253||e.kind===252}function WB(e){return e.kind===281||e.kind===280}function OP(e){return e.kind===349||e.kind===342}function lF(e){return e>=167}function BB(e){return e>=0&&e<=166}function t2(e){return BB(e.kind)}function _S(e){return _o(e,"pos")&&_o(e,"end")}function FP(e){return 9<=e&&e<=15}function $T(e){return FP(e.kind)}function zB(e){switch(e.kind){case 211:case 210:case 14:case 219:case 232:return!0}return!1}function cb(e){return 15<=e&&e<=18}function Yee(e){return cb(e.kind)}function uF(e){let t=e.kind;return t===17||t===18}function lb(e){return gp(e)||Xu(e)}function Ew(e){switch(e.kind){case 277:return e.isTypeOnly||e.parent.parent.phaseModifier===156;case 275:return e.parent.phaseModifier===156;case 274:return e.phaseModifier===156;case 272:return e.isTypeOnly}return!1}function Zee(e){switch(e.kind){case 282:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 279:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 281:return e.parent.isTypeOnly}return!1}function $y(e){return Ew(e)||Zee(e)}function ete(e){return vr(e,$y)!==void 0}function GB(e){return e.kind===11||cb(e.kind)}function tte(e){return ya(e)||Be(e)}function ec(e){var t;return Be(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function HT(e){var t;return zi(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function NM(e){let t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function Hu(e){return(hs(e)||n2(e))&&zi(e.name)}function Nw(e){return Ln(e)&&zi(e.name)}function ub(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function jP(e){return!!(S2(e)&31)}function JB(e){return jP(e)||e===126||e===164||e===129}function la(e){return ub(e.kind)}function xp(e){let t=e.kind;return t===167||t===80}function ol(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===168}function QT(e){let t=e.kind;return t===80||t===207||t===208}function Fs(e){return!!e&&r2(e.kind)}function Mw(e){return!!e&&(r2(e.kind)||zc(e))}function yo(e){return e&&xbe(e.kind)}function LP(e){return e.kind===112||e.kind===97}function xbe(e){switch(e){case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function r2(e){switch(e){case 174:case 180:case 324:case 181:case 182:case 185:case 318:case 186:return!0;default:return xbe(e)}}function UB(e){return Li(e)||Qm(e)||Bs(e)&&Fs(e.parent)}function cl(e){let t=e.kind;return t===177||t===173||t===175||t===178||t===179||t===182||t===176||t===241}function ni(e){return e&&(e.kind===264||e.kind===232)}function pb(e){return e&&(e.kind===178||e.kind===179)}function Gp(e){return hs(e)&&Gm(e)}function rte(e){return dn(e)&&M2(e)?(!TS(e)||!Tb(e.expression))&&!ik(e,!0):e.parent&&ni(e.parent)&&hs(e)&&!Gm(e)}function n2(e){switch(e.kind){case 175:case 178:case 179:return!0;default:return!1}}function tc(e){return la(e)||Il(e)}function dS(e){let t=e.kind;return t===181||t===180||t===172||t===174||t===182||t===178||t===179||t===355}function pF(e){return dS(e)||cl(e)}function Xh(e){let t=e.kind;return t===304||t===305||t===306||t===175||t===178||t===179}function yi(e){return yG(e.kind)}function nte(e){switch(e.kind){case 185:case 186:return!0}return!1}function Ls(e){if(e){let t=e.kind;return t===208||t===207}return!1}function WP(e){let t=e.kind;return t===210||t===211}function fF(e){let t=e.kind;return t===209||t===233}function MM(e){switch(e.kind){case 261:case 170:case 209:return!0}return!1}function ite(e){return li(e)||Gi(e)||OM(e)||FM(e)}function RM(e){return VB(e)||qB(e)}function VB(e){switch(e.kind){case 207:case 211:return!0}return!1}function OM(e){switch(e.kind){case 209:case 304:case 305:case 306:return!0}return!1}function qB(e){switch(e.kind){case 208:case 210:return!0}return!1}function FM(e){switch(e.kind){case 209:case 233:case 231:case 210:case 211:case 80:case 212:case 213:return!0}return Hl(e,!0)}function ste(e){let t=e.kind;return t===212||t===167||t===206}function jM(e){let t=e.kind;return t===212||t===167}function $B(e){return mS(e)||Cb(e)}function mS(e){switch(e.kind){case 214:case 215:case 216:case 171:case 287:case 286:case 290:return!0;case 227:return e.operatorToken.kind===104;default:return!1}}function Om(e){return e.kind===214||e.kind===215}function i2(e){let t=e.kind;return t===229||t===15}function Jp(e){return Cbe(Md(e).kind)}function Cbe(e){switch(e){case 212:case 213:case 215:case 214:case 285:case 286:case 289:case 216:case 210:case 218:case 211:case 232:case 219:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 229:case 97:case 106:case 110:case 112:case 108:case 236:case 234:case 237:case 102:case 283:return!0;default:return!1}}function HB(e){return wbe(Md(e).kind)}function wbe(e){switch(e){case 225:case 226:case 221:case 222:case 223:case 224:case 217:return!0;default:return Cbe(e)}}function ate(e){switch(e.kind){case 226:return!0;case 225:return e.operator===46||e.operator===47;default:return!1}}function ote(e){switch(e.kind){case 106:case 112:case 97:case 225:return!0;default:return $T(e)}}function ht(e){return S9e(Md(e).kind)}function S9e(e){switch(e){case 228:case 230:case 220:case 227:case 231:case 235:case 233:case 357:case 356:case 239:return!0;default:return wbe(e)}}function gS(e){let t=e.kind;return t===217||t===235}function fb(e,t){switch(e.kind){case 249:case 250:case 251:case 247:case 248:return!0;case 257:return t&&fb(e.statement,t)}return!1}function T9e(e){return Qo(e)||tl(e)}function cte(e){return _t(e,T9e)}function _F(e){return!$M(e)&&!Qo(e)&&!ri(e,32)&&!pp(e)}function LM(e){return $M(e)||Qo(e)||ri(e,32)}function KT(e){return e.kind===250||e.kind===251}function dF(e){return Bs(e)||ht(e)}function QB(e){return Bs(e)}function E_(e){return lu(e)||ht(e)}function lte(e){let t=e.kind;return t===269||t===268||t===80}function Ibe(e){let t=e.kind;return t===269||t===268}function Dbe(e){let t=e.kind;return t===80||t===268}function KB(e){let t=e.kind;return t===276||t===275}function WM(e){return e.kind===268||e.kind===267}function rm(e){switch(e.kind){case 220:case 227:case 209:case 214:case 180:case 264:case 232:case 176:case 177:case 186:case 181:case 213:case 267:case 307:case 278:case 279:case 282:case 263:case 219:case 185:case 178:case 80:case 274:case 272:case 277:case 182:case 265:case 339:case 341:case 318:case 342:case 349:case 324:case 347:case 323:case 292:case 293:case 294:case 201:case 175:case 174:case 268:case 203:case 281:case 271:case 275:case 215:case 15:case 9:case 211:case 170:case 212:case 304:case 173:case 172:case 179:case 305:case 308:case 306:case 11:case 266:case 188:case 169:case 261:return!0;default:return!1}}function Tg(e){switch(e.kind){case 220:case 242:case 180:case 270:case 300:case 176:case 195:case 177:case 186:case 181:case 249:case 250:case 251:case 263:case 219:case 185:case 178:case 182:case 339:case 341:case 318:case 324:case 347:case 201:case 175:case 174:case 268:case 179:case 308:case 266:return!0;default:return!1}}function k9e(e){return e===220||e===209||e===264||e===232||e===176||e===177||e===267||e===307||e===282||e===263||e===219||e===178||e===274||e===272||e===277||e===265||e===292||e===175||e===174||e===268||e===271||e===275||e===281||e===170||e===304||e===173||e===172||e===179||e===305||e===266||e===169||e===261||e===347||e===339||e===349||e===203}function ute(e){return e===263||e===283||e===264||e===265||e===266||e===267||e===268||e===273||e===272||e===279||e===278||e===271}function pte(e){return e===253||e===252||e===260||e===247||e===245||e===243||e===250||e===251||e===249||e===246||e===257||e===254||e===256||e===258||e===259||e===244||e===248||e===255||e===354}function ql(e){return e.kind===169?e.parent&&e.parent.kind!==346||dn(e):k9e(e.kind)}function fte(e){return ute(e.kind)}function BM(e){return pte(e.kind)}function Ei(e){let t=e.kind;return pte(t)||ute(t)||x9e(e)}function x9e(e){return e.kind!==242||e.parent!==void 0&&(e.parent.kind===259||e.parent.kind===300)?!1:!bS(e)}function _te(e){let t=e.kind;return pte(t)||ute(t)||t===242}function dte(e){let t=e.kind;return t===284||t===167||t===80}function BP(e){let t=e.kind;return t===110||t===80||t===212||t===296}function zM(e){let t=e.kind;return t===285||t===295||t===286||t===12||t===289}function mF(e){let t=e.kind;return t===292||t===294}function mte(e){let t=e.kind;return t===11||t===295}function Qu(e){let t=e.kind;return t===287||t===286}function gte(e){let t=e.kind;return t===287||t===286||t===290}function gF(e){let t=e.kind;return t===297||t===298}function Rw(e){return e.kind>=310&&e.kind<=352}function hF(e){return e.kind===321||e.kind===320||e.kind===322||s2(e)||Ow(e)||xk(e)||cv(e)}function Ow(e){return e.kind>=328&&e.kind<=352}function Fm(e){return e.kind===179}function ah(e){return e.kind===178}function Hf(e){if(!h6(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function yF(e){return!!e.type}function Hy(e){return!!e.initializer}function XT(e){switch(e.kind){case 261:case 170:case 209:case 173:case 304:case 307:return!0;default:return!1}}function XB(e){return e.kind===292||e.kind===294||Xh(e)}function vF(e){return e.kind===184||e.kind===234}var Pbe=1073741823;function hte(e){let t=Pbe;for(let n of e){if(!n.length)continue;let i=0;for(;i<n.length&&i<t&&rh(n.charCodeAt(i));i++);if(i<t&&(t=i),t===0)return 0}return t===Pbe?void 0:t}function Ha(e){return e.kind===11||e.kind===15}function s2(e){return e.kind===325||e.kind===326||e.kind===327}function YB(e){let t=Wo(e.parameters);return!!t&&kg(t)}function kg(e){let t=c_(e)?e.typeExpression&&e.typeExpression.type:e.type;return e.dotDotDotToken!==void 0||!!t&&t.kind===319}function Abe(e,t){return t.text.substring(e.pos,e.end).includes("@internal")}function yte(e,t){t??(t=Nr(e));let n=As(e);if(n&&n.kind===170){let s=n.parent.parameters.indexOf(n),o=s>0?n.parent.parameters[s-1]:void 0,c=t.text,p=o?Qi(sb(c,ha(c,o.end+1,!1,!0)),nh(c,e.pos)):sb(c,ha(c,e.pos,!1,!0));return _t(p)&&Abe(ka(p),t)}let i=n&&vz(n,t);return!!or(i,s=>Abe(s,t))}var ZB=[],_b="tslib",zP=160,ez=1e6,vte=500;function $o(e,t){let n=e.declarations;if(n){for(let i of n)if(i.kind===t)return i}}function bte(e,t){return Mn(e.declarations||Ke,n=>n.kind===t)}function Qs(e){let t=new Map;if(e)for(let n of e)t.set(n.escapedName,n);return t}function oh(e){return(e.flags&33554432)!==0}function a2(e){return!!(e.flags&1536)&&e.escapedName.charCodeAt(0)===34}var bF=C9e();function C9e(){var e="";let t=n=>e+=n;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(n,i)=>t(n),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&rh(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:no,decreaseIndent:no,clear:()=>e=""}}function SF(e,t){return e.configFilePath!==t.configFilePath||w9e(e,t)}function w9e(e,t){return o2(e,t,QJ)}function Ste(e,t){return o2(e,t,lse)}function o2(e,t,n){return e!==t&&n.some(i=>!G8(A8(e,i),A8(t,i)))}function Tte(e,t){for(;;){let n=t(e);if(n==="quit")return;if(n!==void 0)return n;if(Li(e))return;e=e.parent}}function Rl(e,t){let n=e.entries();for(let[i,s]of n){let o=t(s,i);if(o)return o}}function ch(e,t){let n=e.keys();for(let i of n){let s=t(i);if(s)return s}}function TF(e,t){e.forEach((n,i)=>{t.set(i,n)})}function Fw(e){let t=bF.getText();try{return e(bF),bF.getText()}finally{bF.clear(),bF.writeKeyword(t)}}function GM(e){return e.end-e.pos}function tz(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function kte(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&I9e(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function c2(e){return e.resolvedModule}function kF(e){return e.resolvedTypeReferenceDirective}function xF(e,t,n,i,s){var o;let c=(o=t.getResolvedModule(e,n,i))==null?void 0:o.alternateResult,p=c&&(Ku(t.getCompilerOptions())===2?[_.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[c]]:[_.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[c,c.includes(Th+"@types/")?`@types/${RI(s)}`:s]]),u=p?Ns(void 0,p[0],...p[1]):t.typesPackageExists(s)?Ns(void 0,_.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,s,RI(s)):t.packageBundlesTypes(s)?Ns(void 0,_.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,s,n):Ns(void 0,_.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,RI(s));return u&&(u.repopulateInfo=()=>({moduleReference:n,mode:i,packageName:s===n?void 0:s})),u}function rz(e){let t=hh(e.fileName),n=e.packageJsonScope,i=t===".ts"?".mts":t===".js"?".mjs":void 0,s=n&&!n.contents.packageJsonContent.type?i?Ns(void 0,_.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,i,Jn(n.packageDirectory,"package.json")):Ns(void 0,_.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Jn(n.packageDirectory,"package.json")):i?Ns(void 0,_.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,i):Ns(void 0,_.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module);return s.repopulateInfo=()=>!0,s}function I9e(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version&&e.peerDependencies===t.peerDependencies}function CF({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function A0(e){return`${CF(e)}@${e.version}${e.peerDependencies??""}`}function xte(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function nz(e,t,n,i){w.assert(e.length===t.length);for(let s=0;s<e.length;s++){let o=t[s],c=e[s],p=n(c);if(p?!o||!i(p,o):o)return!0}return!1}function l2(e){return D9e(e),(e.flags&1048576)!==0}function D9e(e){e.flags&2097152||(((e.flags&262144)!==0||Ms(e,l2))&&(e.flags|=1048576),e.flags|=2097152)}function Nr(e){for(;e&&e.kind!==308;)e=e.parent;return e}function JM(e){return Nr(e.valueDeclaration||fz(e))}function GP(e,t){return!!e&&(e.scriptKind===1||e.scriptKind===2)&&!e.checkJsDirective&&t===void 0}function Cte(e){switch(e.kind){case 242:case 270:case 249:case 250:case 251:return!0}return!1}function db(e,t){return w.assert(e>=0),th(t)[e]}function Ebe(e){let t=Nr(e),n=Hs(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function UM(e,t){w.assert(e>=0);let n=th(t),i=e,s=t.text;if(i+1===n.length)return s.length-1;{let o=n[i],c=n[i+1]-1;for(w.assert(qu(s.charCodeAt(c)));o<=c&&qu(s.charCodeAt(c));)c--;return c}}function wF(e,t,n){return!(n&&n(t))&&!e.identifiers.has(t)}function xc(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function ud(e){return!xc(e)}function wte(e,t){return Ho(e)?t===e.expression:zc(e)?t===e.modifiers:mp(e)?t===e.initializer:hs(e)?t===e.questionToken&&Gp(e):yl(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||VM(e.modifiers,t,tc):Fu(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||VM(e.modifiers,t,tc):hc(e)?t===e.exclamationToken:yc(e)?t===e.typeParameters||t===e.type||VM(e.typeParameters,t,Ho):B_(e)?t===e.typeParameters||VM(e.typeParameters,t,Ho):uf(e)?t===e.typeParameters||t===e.type||VM(e.typeParameters,t,Ho):f4(e)?t===e.modifiers||VM(e.modifiers,t,tc):!1}function VM(e,t,n){return!e||gs(t)||!n(t)?!1:ws(e,t)}function Nbe(e,t,n){if(t===void 0||t.length===0)return e;let i=0;for(;i<e.length&&n(e[i]);++i);return e.splice(i,0,...t),e}function Mbe(e,t,n){if(t===void 0)return e;let i=0;for(;i<e.length&&n(e[i]);++i);return e.splice(i,0,t),e}function Rbe(e){return Lm(e)||!!(Oa(e)&2097152)}function lh(e,t){return Nbe(e,t,Lm)}function iz(e,t){return Nbe(e,t,Rbe)}function Obe(e,t){return Mbe(e,t,Lm)}function YT(e,t){return Mbe(e,t,Rbe)}function sz(e,t,n){if(e.charCodeAt(t+1)===47&&t+2<n&&e.charCodeAt(t+2)===47){let i=e.substring(t,n);return!!(j9e.test(i)||B9e.test(i)||z9e.test(i)||L9e.test(i)||W9e.test(i)||G9e.test(i))}return!1}function IF(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===33}function Ite(e,t){let n=new Map(t.map(c=>[`${Hs(e,c.range.end).line}`,c])),i=new Map;return{getUnusedExpectations:s,markUsed:o};function s(){return ds(n.entries()).filter(([c,p])=>p.type===0&&!i.get(c)).map(([c,p])=>p)}function o(c){return n.has(`${c}`)?(i.set(`${c}`,!0),!0):!1}}function mb(e,t,n){if(xc(e))return e.pos;if(Rw(e)||e.kind===12)return ha((t??Nr(e)).text,e.pos,!1,!0);if(n&&Hf(e))return mb(e.jsDoc[0],t);if(e.kind===353){t??(t=Nr(e));let i=_l(DJ(e,t));if(i)return mb(i,t,n)}return ha((t??Nr(e)).text,e.pos,!1,!1,KP(e))}function az(e,t){let n=!xc(e)&&yd(e)?aS(e.modifiers,Il):void 0;return n?ha((t||Nr(e)).text,n.end):mb(e,t)}function Dte(e,t){let n=!xc(e)&&yd(e)&&e.modifiers?ka(e.modifiers):void 0;return n?ha((t||Nr(e)).text,n.end):mb(e,t)}function hS(e,t,n=!1){return JP(e.text,t,n)}function P9e(e){return!!vr(e,K0)}function DF(e){return!!(tl(e)&&e.exportClause&&Ag(e.exportClause)&&xg(e.exportClause.name))}function gb(e){return e.kind===11?e.text:Ai(e.escapedText)}function yS(e){return e.kind===11?gc(e.text):e.escapedText}function xg(e){return(e.kind===11?e.text:e.escapedText)==="default"}function JP(e,t,n=!1){if(xc(t))return"";let i=e.substring(n?t.pos:ha(e,t.pos),t.end);return P9e(t)&&(i=i.split(/\r\n|\n|\r/).map(s=>s.replace(/^\s*\*/,"").trimStart()).join(`
|
|
`)),i}function pc(e,t=!1){return hS(Nr(e),e,t)}function A9e(e){return e.pos}function jw(e,t){return Xv(e,t,A9e,Po)}function Oa(e){let t=e.emitNode;return t&&t.flags||0}function Rd(e){let t=e.emitNode;return t&&t.internalFlags||0}var oz=up(()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Iterator:new Map(Object.entries({es2015:Ke})),AsyncIterator:new Map(Object.entries({es2015:Ke})),ArrayBuffer:new Map(Object.entries({es2024:["maxByteLength","resizable","resize","detached","transfer","transferToFixedLength"]})),Atomics:new Map(Object.entries({es2017:["add","and","compareExchange","exchange","isLockFree","load","or","store","sub","wait","notify","xor"],es2024:["waitAsync"],esnext:["pause"]})),SharedArrayBuffer:new Map(Object.entries({es2017:["byteLength","slice"],es2024:["growable","maxByteLength","grow"]})),AsyncIterable:new Map(Object.entries({es2018:Ke})),AsyncIterableIterator:new Map(Object.entries({es2018:Ke})),AsyncGenerator:new Map(Object.entries({es2018:Ke})),AsyncGeneratorFunction:new Map(Object.entries({es2018:Ke})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"],es2024:["unicodeSets"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"],esnext:["fromAsync"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"],es2024:["groupBy"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],esnext:["f16round"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),MapConstructor:new Map(Object.entries({es2024:["groupBy"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"],esnext:["union","intersection","difference","symmetricDifference","isSubsetOf","isSupersetOf","isDisjointFrom"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"],es2024:["withResolvers"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"],es2024:["isWellFormed","toWellFormed"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:Ke,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"],esnext:["metadata","dispose","asyncDispose"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],esnext:["setFloat16","getFloat16"]})),BigInt:new Map(Object.entries({es2020:Ke})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float16Array:new Map(Object.entries({esnext:Ke})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigInt64Array:new Map(Object.entries({es2020:Ke,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigUint64Array:new Map(Object.entries({es2020:Ke,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),Pte=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(Pte||{});function Ate(e,t,n){if(t&&E9e(e,n))return hS(t,e);switch(e.kind){case 11:{let i=n&2?$z:n&1||Oa(e)&16777216?Dg:s8;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{let i=n&1||Oa(e)&16777216?Dg:s8,s=e.rawText??Vz(i(e.text,96));switch(e.kind){case 15:return"`"+s+"`";case 16:return"`"+s+"${";case 17:return"}"+s+"${";case 18:return"}"+s+"`"}break}case 9:case 10:return e.text;case 14:return n&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return w.fail(`Literal kind '${e.kind}' not accounted for.`)}function E9e(e,t){if(ko(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(Hp(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!pI(e)}function Ete(e){return Is(e)?`"${Dg(e)}"`:""+e}function Nte(e){return dl(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function cz(e){return(Kh(e)&7)!==0||lz(e)}function lz(e){let t=zm(e);return t.kind===261&&t.parent.kind===300}function pp(e){return el(e)&&(e.name.kind===11||Cg(e))}function PF(e){return el(e)&&e.name.kind===11}function uz(e){return el(e)&&ya(e.name)}function N9e(e){return el(e)||Be(e)}function qM(e){return M9e(e.valueDeclaration)}function M9e(e){return!!e&&e.kind===268&&!e.body}function Mte(e){return e.kind===308||e.kind===268||Mw(e)}function Cg(e){return!!(e.flags&2048)}function vS(e){return pp(e)&&pz(e)}function pz(e){switch(e.parent.kind){case 308:return Pl(e.parent);case 269:return pp(e.parent.parent)&&Li(e.parent.parent.parent)&&!Pl(e.parent.parent.parent)}return!1}function fz(e){var t;return(t=e.declarations)==null?void 0:t.find(n=>!vS(n)&&!(el(n)&&Cg(n)))}function R9e(e){return e===1||100<=e&&e<=199}function Lw(e,t){return Pl(e)||R9e(_p(t))&&!!e.commonJsModuleIndicator}function _z(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:!!(Ru(t,"alwaysStrict")||Lie(e.statements)||Pl(e)||md(t))}function dz(e){return!!(e.flags&33554432)||ri(e,128)}function mz(e,t){switch(e.kind){case 308:case 270:case 300:case 268:case 249:case 250:case 251:case 177:case 175:case 178:case 179:case 263:case 219:case 220:case 173:case 176:return!0;case 242:return!Mw(t)}return!1}function gz(e){switch(w.type(e),e.kind){case 339:case 347:case 324:return!0;default:return hz(e)}}function hz(e){switch(w.type(e),e.kind){case 180:case 181:case 174:case 182:case 185:case 186:case 318:case 264:case 232:case 265:case 266:case 346:case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function u2(e){switch(e.kind){case 273:case 272:return!0;default:return!1}}function Rte(e){return u2(e)||SS(e)}function Ote(e){return u2(e)||o6(e)}function AF(e){switch(e.kind){case 273:case 272:case 244:case 264:case 263:case 268:case 266:case 265:case 267:return!0;default:return!1}}function Fte(e){return $M(e)||el(e)||Hm(e)||Up(e)}function $M(e){return u2(e)||tl(e)}function EF(e){return vr(e.parent,t=>!!(kU(t)&1))}function nm(e){return vr(e.parent,t=>mz(t,t.parent))}function jte(e,t){let n=nm(e);for(;n;)t(n),n=nm(n)}function To(e){return!e||GM(e)===0?"(Missing)":pc(e)}function Lte(e){return e.declaration?To(e.declaration.parameters[0].name):void 0}function HM(e){return e.kind===168&&!s_(e.expression)}function UP(e){var t;switch(e.kind){case 80:case 81:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 10:case 15:return gc(e.text);case 168:return s_(e.expression)?gc(e.expression.text):void 0;case 296:return N2(e);default:return w.assertNever(e)}}function p2(e){return w.checkDefined(UP(e))}function kf(e){switch(e.kind){case 110:return"this";case 81:case 80:return GM(e)===0?Fn(e):pc(e);case 167:return kf(e.left)+"."+kf(e.right);case 212:return Be(e.name)||zi(e.name)?kf(e.expression)+"."+kf(e.name):w.assertNever(e.name);case 312:return kf(e.left)+"#"+kf(e.right);case 296:return kf(e.namespace)+":"+kf(e.name);default:return w.assertNever(e)}}function _n(e,t,...n){let i=Nr(e);return N_(i,e,t,...n)}function Ww(e,t,n,...i){let s=ha(e.text,t.pos);return wl(e,s,t.end-s,n,...i)}function N_(e,t,n,...i){let s=ZT(e,t);return wl(e,s.start,s.length,n,...i)}function uh(e,t,n,i){let s=ZT(e,t);return NF(e,s.start,s.length,n,i)}function QM(e,t,n,i){let s=ha(e.text,t.pos);return NF(e,s,t.end-s,n,i)}function Wte(e,t,n){w.assertGreaterThanOrEqual(t,0),w.assertGreaterThanOrEqual(n,0),w.assertLessThanOrEqual(t,e.length),w.assertLessThanOrEqual(t+n,e.length)}function NF(e,t,n,i,s){return Wte(e.text,t,n),{file:e,start:t,length:n,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:s,canonicalHead:i.canonicalHead}}function yz(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function Bte(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function zte(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function Gte(e,...t){return{code:e.code,messageText:I2(e,...t)}}function jm(e,t){let n=ih(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);n.scan();let i=n.getTokenStart();return $c(i,n.getTokenEnd())}function Jte(e,t){let n=ih(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function O9e(e,t){let n=ha(e.text,t.pos);if(t.body&&t.body.kind===242){let{line:i}=Hs(e,t.body.pos),{line:s}=Hs(e,t.body.end);if(i<s)return yu(n,UM(i,e)-n+1)}return $c(n,t.end)}function ZT(e,t){let n=t;switch(t.kind){case 308:{let o=ha(e.text,0,!1);return o===e.text.length?yu(0,0):jm(e,o)}case 261:case 209:case 264:case 232:case 265:case 268:case 267:case 307:case 263:case 219:case 175:case 178:case 179:case 266:case 173:case 172:case 275:n=t.name;break;case 220:return O9e(e,t);case 297:case 298:{let o=ha(e.text,t.pos),c=t.statements.length>0?t.statements[0].pos:t.end;return $c(o,c)}case 254:case 230:{let o=ha(e.text,t.pos);return jm(e,o)}case 239:{let o=ha(e.text,t.expression.end);return jm(e,o)}case 351:{let o=ha(e.text,t.tagName.pos);return jm(e,o)}case 177:{let o=t,c=ha(e.text,o.pos),p=ih(e.languageVersion,!0,e.languageVariant,e.text,void 0,c),u=p.scan();for(;u!==137&&u!==1;)u=p.scan();let g=p.getTokenEnd();return $c(c,g)}}if(n===void 0)return jm(e,t.pos);w.assert(!um(n));let i=xc(n),s=i||F2(t)?n.pos:ha(e.text,n.pos);return i?(w.assert(s===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),w.assert(s===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(w.assert(s>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),w.assert(s<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),$c(s,n.end)}function Qy(e){return e.kind===308&&!xf(e)}function xf(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function M_(e){return e.scriptKind===6}function E0(e){return!!(I0(e)&4096)}function KM(e){return!!(I0(e)&8&&!Tf(e,e.parent))}function XM(e){return(Kh(e)&7)===6}function YM(e){return(Kh(e)&7)===4}function Bw(e){return(Kh(e)&7)===2}function Ute(e){let t=Kh(e)&7;return t===2||t===4||t===6}function MF(e){return(Kh(e)&7)===1}function ek(e){return e.kind===214&&e.expression.kind===108}function Up(e){if(e.kind!==214)return!1;let t=e.expression;return t.kind===102||bk(t)&&t.keywordToken===102&&t.name.escapedText==="defer"}function zw(e){return bk(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function Yh(e){return Hm(e)&&av(e.argument)&&ya(e.argument.literal)}function Lm(e){return e.kind===245&&e.expression.kind===11}function ZM(e){return!!(Oa(e)&2097152)}function RF(e){return ZM(e)&&Gc(e)}function F9e(e){return Be(e.name)&&!e.initializer}function OF(e){return ZM(e)&&Qc(e)&&Fi(e.declarationList.declarations,F9e)}function vz(e,t){return e.kind!==12?nh(t.text,e.pos):void 0}function bz(e,t){let n=e.kind===170||e.kind===169||e.kind===219||e.kind===220||e.kind===218||e.kind===261||e.kind===282?Qi(sb(t,e.pos),nh(t,e.pos)):nh(t,e.pos);return Mn(n,i=>i.end<=e.end&&t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}var j9e=/^\/\/\/\s*<reference\s+path\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,L9e=/^\/\/\/\s*<reference\s+types\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,W9e=/^\/\/\/\s*<reference\s+lib\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,B9e=/^\/\/\/\s*<amd-dependency\s+path\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,z9e=/^\/\/\/\s*<amd-module\s+(?:\S.*?)??\/>/,G9e=/^\/\/\/\s*<reference\s+no-default-lib\s*=\s*(?:'[^']*'|"[^"]*")\s*\/>/;function Wm(e){if(183<=e.kind&&e.kind<=206)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==223;case 234:return Fbe(e);case 169:return e.parent.kind===201||e.parent.kind===196;case 80:(e.parent.kind===167&&e.parent.right===e||e.parent.kind===212&&e.parent.name===e)&&(e=e.parent),w.assert(e.kind===80||e.kind===167||e.kind===212,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 167:case 212:case 110:{let{parent:t}=e;if(t.kind===187)return!1;if(t.kind===206)return!t.isTypeOf;if(183<=t.kind&&t.kind<=206)return!0;switch(t.kind){case 234:return Fbe(t);case 169:return e===t.constraint;case 346:return e===t.constraint;case 173:case 172:case 170:case 261:return e===t.type;case 263:case 219:case 220:case 177:case 175:case 174:case 178:case 179:return e===t.type;case 180:case 181:case 182:return e===t.type;case 217:return e===t.type;case 214:case 215:case 216:return ws(t.typeArguments,e)}}}return!1}function Fbe(e){return v7(e.parent)||H2(e.parent)||Af(e.parent)&&!g8(e)}function hb(e,t){return n(e);function n(i){switch(i.kind){case 254:return t(i);case 270:case 242:case 246:case 247:case 248:case 249:case 250:case 251:case 255:case 256:case 297:case 298:case 257:case 259:case 300:return Ms(i,n)}}}function Vte(e,t){return n(e);function n(i){switch(i.kind){case 230:t(i);let s=i.expression;s&&n(s);return;case 267:case 265:case 268:case 266:return;default:if(Fs(i)){if(i.name&&i.name.kind===168){n(i.name.expression);return}}else Wm(i)||Ms(i,n)}}}function Sz(e){return e&&e.kind===189?e.elementType:e&&e.kind===184?eh(e.typeArguments):void 0}function qte(e){switch(e.kind){case 265:case 264:case 232:case 188:return e.members;case 211:return e.properties}}function VP(e){if(e)switch(e.kind){case 209:case 307:case 170:case 304:case 173:case 172:case 305:case 261:return!0}return!1}function qP(e){return e.parent.kind===262&&e.parent.parent.kind===244}function $te(e){return dn(e)?Sa(e.parent)&&vn(e.parent.parent)&&Hc(e.parent.parent)===2||FF(e.parent):!1}function FF(e){return dn(e)?vn(e)&&Hc(e)===1:!1}function Hte(e){return(li(e)?Bw(e)&&Be(e.name)&&qP(e):hs(e)?lk(e)&&Cl(e):mp(e)&&lk(e))||FF(e)}function Qte(e){switch(e.kind){case 175:case 174:case 177:case 178:case 179:case 263:case 219:return!0}return!1}function Tz(e,t){for(;;){if(t&&t(e),e.statement.kind!==257)return e.statement;e=e.statement}}function bS(e){return e&&e.kind===242&&Fs(e.parent)}function pd(e){return e&&e.kind===175&&e.parent.kind===211}function jF(e){return(e.kind===175||e.kind===178||e.kind===179)&&(e.parent.kind===211||e.parent.kind===232)}function Kte(e){return e&&e.kind===1}function Xte(e){return e&&e.kind===0}function Gw(e,t,n,i){return or(e?.properties,s=>{if(!yl(s))return;let o=UP(s.name);return t===o||i&&i===o?n(s):void 0})}function $P(e){if(e&&e.statements.length){let t=e.statements[0].expression;return Hn(t,Sa)}}function LF(e,t,n){return e6(e,t,i=>Tu(i.initializer)?Bn(i.initializer.elements,s=>ya(s)&&s.text===n):void 0)}function e6(e,t,n){return Gw($P(e),t,n)}function i_(e){return vr(e.parent,Fs)}function Yte(e){return vr(e.parent,yo)}function cu(e){return vr(e.parent,ni)}function Zte(e){return vr(e.parent,t=>ni(t)||Fs(t)?"quit":zc(t))}function WF(e){return vr(e.parent,Mw)}function BF(e){let t=vr(e.parent,n=>ni(n)?"quit":Il(n));return t&&ni(t.parent)?cu(t.parent):cu(t??e)}function fp(e,t,n){for(w.assert(e.kind!==308);;){if(e=e.parent,!e)return w.fail();switch(e.kind){case 168:if(n&&ni(e.parent.parent))return e;e=e.parent.parent;break;case 171:e.parent.kind===170&&cl(e.parent.parent)?e=e.parent.parent:cl(e.parent)&&(e=e.parent);break;case 220:if(!t)continue;case 263:case 219:case 268:case 176:case 173:case 172:case 175:case 174:case 177:case 178:case 179:case 180:case 181:case 182:case 267:case 308:return e}}}function ere(e){switch(e.kind){case 220:case 263:case 219:case 173:return!0;case 242:switch(e.parent.kind){case 177:case 175:case 178:case 179:return!0;default:return!1}default:return!1}}function zF(e){Be(e)&&(hl(e.parent)||Gc(e.parent))&&e.parent.name===e&&(e=e.parent);let t=fp(e,!0,!1);return Li(t)}function tre(e){let t=fp(e,!1,!1);if(t)switch(t.kind){case 177:case 263:case 219:return t}}function t6(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 168:e=e.parent;break;case 263:case 219:case 220:if(!t)continue;case 173:case 172:case 175:case 174:case 177:case 178:case 179:case 176:return e;case 171:e.parent.kind===170&&cl(e.parent.parent)?e=e.parent.parent:cl(e.parent)&&(e=e.parent);break}}}function N0(e){if(e.kind===219||e.kind===220){let t=e,n=e.parent;for(;n.kind===218;)t=n,n=n.parent;if(n.kind===214&&n.expression===t)return n}}function of(e){let t=e.kind;return(t===212||t===213)&&e.expression.kind===108}function r6(e){let t=e.kind;return(t===212||t===213)&&e.expression.kind===110}function GF(e){var t;return!!e&&li(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function rre(e){return!!e&&(Fu(e)||yl(e))&&vn(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function n6(e){switch(e.kind){case 184:return e.typeName;case 234:return mo(e.expression)?e.expression:void 0;case 80:case 167:return e}}function JF(e){switch(e.kind){case 216:return e.tag;case 287:case 286:return e.tagName;case 227:return e.right;case 290:return e;default:return e.expression}}function i6(e,t,n,i){if(e&&Vl(t)&&zi(t.name))return!1;switch(t.kind){case 264:return!0;case 232:return!e;case 173:return n!==void 0&&(e?hl(n):ni(n)&&!AS(t)&&!nG(t));case 178:case 179:case 175:return t.body!==void 0&&n!==void 0&&(e?hl(n):ni(n));case 170:return e?n!==void 0&&n.body!==void 0&&(n.kind===177||n.kind===175||n.kind===179)&&IS(n)!==t&&i!==void 0&&i.kind===264:!1}return!1}function Jw(e,t,n,i){return a_(t)&&i6(e,t,n,i)}function s6(e,t,n,i){return Jw(e,t,n,i)||HP(e,t,n)}function HP(e,t,n){switch(t.kind){case 264:return _t(t.members,i=>s6(e,i,t,n));case 232:return!e&&_t(t.members,i=>s6(e,i,t,n));case 175:case 179:case 177:return _t(t.parameters,i=>Jw(e,i,t,n));default:return!1}}function Ky(e,t){if(Jw(e,t))return!0;let n=_h(t);return!!n&&HP(e,n,t)}function kz(e,t,n){let i;if(pb(t)){let{firstAccessor:s,secondAccessor:o,setAccessor:c}=PS(n.members,t),p=a_(s)?s:o&&a_(o)?o:void 0;if(!p||t!==p)return!1;i=c?.parameters}else hc(t)&&(i=t.parameters);if(Jw(e,t,n))return!0;if(i){for(let s of i)if(!bb(s)&&Jw(e,s,t,n))return!0}return!1}function xz(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return xz(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function Uw(e){let{parent:t}=e;return t.kind===287||t.kind===286||t.kind===288?t.tagName===e:!1}function wg(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 210:case 211:case 212:case 213:case 214:case 215:case 216:case 235:case 217:case 239:case 236:case 218:case 219:case 232:case 220:case 223:case 221:case 222:case 225:case 226:case 227:case 228:case 231:case 229:case 233:case 285:case 286:case 289:case 230:case 224:return!0;case 237:return!Up(e.parent)||e.parent.expression!==e;case 234:return!Af(e.parent)&&!H2(e.parent);case 167:for(;e.parent.kind===167;)e=e.parent;return e.parent.kind===187||s2(e.parent)||$A(e.parent)||X0(e.parent)||Uw(e);case 312:for(;X0(e.parent);)e=e.parent;return e.parent.kind===187||s2(e.parent)||$A(e.parent)||X0(e.parent)||Uw(e);case 81:return vn(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===187||s2(e.parent)||$A(e.parent)||X0(e.parent)||Uw(e))return!0;case 9:case 10:case 11:case 15:case 110:return UF(e);default:return!1}}function UF(e){let{parent:t}=e;switch(t.kind){case 261:case 170:case 173:case 172:case 307:case 304:case 209:return t.initializer===e;case 245:case 246:case 247:case 248:case 254:case 255:case 256:case 297:case 258:return t.expression===e;case 249:let n=t;return n.initializer===e&&n.initializer.kind!==262||n.condition===e||n.incrementor===e;case 250:case 251:let i=t;return i.initializer===e&&i.initializer.kind!==262||i.expression===e;case 217:case 235:return e===t.expression;case 240:return e===t.expression;case 168:return e===t.expression;case 171:case 295:case 294:case 306:return!0;case 234:return t.expression===e&&!Wm(t);case 305:return t.objectAssignmentInitializer===e;case 239:return e===t.expression;default:return wg(t)}}function VF(e){for(;e.kind===167||e.kind===80;)e=e.parent;return e.kind===187}function nre(e){return Ag(e)&&!!e.parent.moduleSpecifier}function M0(e){return e.kind===272&&e.moduleReference.kind===284}function QP(e){return w.assert(M0(e)),e.moduleReference.expression}function Cz(e){return SS(e)&&nI(e.initializer).arguments[0]}function tk(e){return e.kind===272&&e.moduleReference.kind!==284}function ph(e){return e?.kind===308}function Cp(e){return dn(e)}function dn(e){return!!e&&!!(e.flags&524288)}function qF(e){return!!e&&!!(e.flags&134217728)}function $F(e){return!M_(e)}function KP(e){return!!e&&!!(e.flags&16777216)}function HF(e){return Pf(e)&&Be(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function Vp(e,t){if(e.kind!==214)return!1;let{expression:n,arguments:i}=e;if(n.kind!==80||n.escapedText!=="require"||i.length!==1)return!1;let s=i[0];return!t||Ha(s)}function a6(e){return jbe(e,!1)}function SS(e){return jbe(e,!0)}function ire(e){return Da(e)&&SS(e.parent.parent)}function jbe(e,t){return li(e)&&!!e.initializer&&Vp(t?nI(e.initializer):e.initializer,!0)}function o6(e){return Qc(e)&&e.declarationList.declarations.length>0&&Fi(e.declarationList.declarations,t=>a6(t))}function c6(e){return e===39||e===34}function QF(e,t){return hS(t,e).charCodeAt(0)===34}function XP(e){return vn(e)||Oo(e)||Be(e)||Ws(e)}function l6(e){return dn(e)&&e.initializer&&vn(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&mo(e.name)&&Vw(e.name,e.initializer.left)?e.initializer.right:e.initializer}function YP(e){let t=l6(e);return t&&R0(t,Tb(e.name))}function J9e(e,t){return or(e.properties,n=>yl(n)&&Be(n.name)&&n.name.escapedText==="value"&&n.initializer&&R0(n.initializer,t))}function f2(e){if(e&&e.parent&&vn(e.parent)&&e.parent.operatorToken.kind===64){let t=Tb(e.parent.left);return R0(e.parent.right,t)||U9e(e.parent.left,e.parent.right,t)}if(e&&Ws(e)&&nk(e)){let t=J9e(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function R0(e,t){if(Ws(e)){let n=Qa(e.expression);return n.kind===219||n.kind===220?e:void 0}if(e.kind===219||e.kind===232||e.kind===220||Sa(e)&&(e.properties.length===0||t))return e}function U9e(e,t,n){let i=vn(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&R0(t.right,n);if(i&&Vw(e,t.left))return i}function sre(e){let t=li(e.parent)?e.parent.name:vn(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&R0(e.right,Tb(t))&&mo(t)&&Vw(t,e.left)}function wz(e){if(vn(e.parent)){let t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&vn(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Be(t.left))return t.left}else if(li(e.parent))return e.parent.name}function Vw(e,t){return Bm(e)&&Bm(t)?R_(e)===R_(t):sh(e)&&are(t)&&(t.expression.kind===110||Be(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?Vw(e,p6(t)):are(e)&&are(t)?Zh(e)===Zh(t)&&Vw(e.expression,t.expression):!1}function u6(e){for(;Hl(e,!0);)e=e.right;return e}function rk(e){return Be(e)&&e.escapedText==="exports"}function Iz(e){return Be(e)&&e.escapedText==="module"}function fh(e){return(Ln(e)||Dz(e))&&Iz(e.expression)&&Zh(e)==="exports"}function Hc(e){let t=V9e(e);return t===5||dn(e)?t:0}function nk(e){return Dr(e.arguments)===3&&Ln(e.expression)&&Be(e.expression.expression)&&Fn(e.expression.expression)==="Object"&&Fn(e.expression.name)==="defineProperty"&&s_(e.arguments[1])&&ik(e.arguments[0],!0)}function are(e){return Ln(e)||Dz(e)}function Dz(e){return xo(e)&&s_(e.argumentExpression)}function TS(e,t){return Ln(e)&&(!t&&e.expression.kind===110||Be(e.name)&&ik(e.expression,!0))||KF(e,t)}function KF(e,t){return Dz(e)&&(!t&&e.expression.kind===110||mo(e.expression)||TS(e.expression,!0))}function ik(e,t){return mo(e)||TS(e,t)}function p6(e){return Ln(e)?e.name:e.argumentExpression}function V9e(e){if(Ws(e)){if(!nk(e))return 0;let t=e.arguments[0];return rk(t)||fh(t)?8:TS(t)&&Zh(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!Oo(e.left)||q9e(u6(e))?0:ik(e.left.expression,!0)&&Zh(e.left)==="prototype"&&Sa(Pz(e))?6:f6(e.left)}function q9e(e){return U2(e)&&Hp(e.expression)&&e.expression.text==="0"}function XF(e){if(Ln(e))return e.name;let t=Qa(e.argumentExpression);return Hp(t)||Ha(t)?t:e}function Zh(e){let t=XF(e);if(t){if(Be(t))return t.escapedText;if(Ha(t)||Hp(t))return gc(t.text)}}function f6(e){if(e.expression.kind===110)return 4;if(fh(e))return 2;if(ik(e.expression,!0)){if(Tb(e.expression))return 3;let t=e;for(;!Be(t.expression);)t=t.expression;let n=t.expression;if((n.escapedText==="exports"||n.escapedText==="module"&&Zh(t)==="exports")&&TS(e))return 1;if(ik(e,!0)||xo(e)&&n8(e))return 5}return 0}function Pz(e){for(;vn(e.right);)e=e.right;return e.right}function _6(e){return vn(e)&&Hc(e)===3}function ore(e){return dn(e)&&e.parent&&e.parent.kind===245&&(!xo(e)||Dz(e))&&!!D0(e.parent)}function ZP(e,t){let{valueDeclaration:n}=e;(!n||!(t.flags&33554432&&!dn(t)&&!(n.flags&33554432))&&XP(n)&&!XP(t)||n.kind!==t.kind&&N9e(n))&&(e.valueDeclaration=t)}function cre(e){if(!e||!e.valueDeclaration)return!1;let t=e.valueDeclaration;return t.kind===263||li(t)&&t.initializer&&Fs(t.initializer)}function lre(e){switch(e?.kind){case 261:case 209:case 273:case 279:case 272:case 274:case 281:case 275:case 282:case 277:case 206:return!0}return!1}function _2(e){var t,n;switch(e.kind){case 261:case 209:return(t=vr(e.initializer,i=>Vp(i,!0)))==null?void 0:t.arguments[0];case 273:case 279:case 352:return Hn(e.moduleSpecifier,Ha);case 272:return Hn((n=Hn(e.moduleReference,ay))==null?void 0:n.expression,Ha);case 274:case 281:return Hn(e.parent.moduleSpecifier,Ha);case 275:case 282:return Hn(e.parent.parent.moduleSpecifier,Ha);case 277:return Hn(e.parent.parent.parent.moduleSpecifier,Ha);case 206:return Yh(e)?e.argument.literal:void 0;default:w.assertNever(e)}}function eA(e){return d6(e)||w.failBadSyntaxKind(e.parent)}function d6(e){switch(e.parent.kind){case 273:case 279:case 352:return e.parent;case 284:return e.parent.parent;case 214:return Up(e.parent)||Vp(e.parent,!1)?e.parent:void 0;case 202:if(!ya(e))break;return Hn(e.parent.parent,Hm);default:return}}function m6(e,t){return!!t.rewriteRelativeImportExtensions&&$f(e)&&!Kl(e)&&pk(e)}function d2(e){switch(e.kind){case 273:case 279:case 352:return e.moduleSpecifier;case 272:return e.moduleReference.kind===284?e.moduleReference.expression:void 0;case 206:return Yh(e)?e.argument.literal:void 0;case 214:return e.arguments[0];case 268:return e.name.kind===11?e.name:void 0;default:return w.assertNever(e)}}function qw(e){switch(e.kind){case 273:return e.importClause&&Hn(e.importClause.namedBindings,bh);case 272:return e;case 279:return e.exportClause&&Hn(e.exportClause,Ag);default:return w.assertNever(e)}}function sk(e){return(e.kind===273||e.kind===352)&&!!e.importClause&&!!e.importClause.name}function ure(e,t){if(e.name){let n=t(e);if(n)return n}if(e.namedBindings){let n=bh(e.namedBindings)?t(e.namedBindings):or(e.namedBindings.elements,t);if(n)return n}}function m2(e){switch(e.kind){case 170:case 175:case 174:case 305:case 304:case 173:case 172:return e.questionToken!==void 0}return!1}function g2(e){let t=SI(e)?_l(e.parameters):void 0,n=Hn(t&&t.name,Be);return!!n&&n.escapedText==="new"}function fd(e){return e.kind===347||e.kind===339||e.kind===341}function g6(e){return fd(e)||gd(e)}function $9e(e){return Ql(e)&&vn(e.expression)&&e.expression.operatorToken.kind===64?u6(e.expression):void 0}function Lbe(e){return Ql(e)&&vn(e.expression)&&Hc(e.expression)!==0&&vn(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function Wbe(e){switch(e.kind){case 244:let t=h2(e);return t&&t.initializer;case 173:return e.initializer;case 304:return e.initializer}}function h2(e){return Qc(e)?_l(e.declarationList.declarations):void 0}function Bbe(e){return el(e)&&e.body&&e.body.kind===268?e.body:void 0}function $w(e){if(e.kind>=244&&e.kind<=260)return!0;switch(e.kind){case 80:case 110:case 108:case 167:case 237:case 213:case 212:case 209:case 219:case 220:case 175:case 178:case 179:return!0;default:return!1}}function h6(e){switch(e.kind){case 220:case 227:case 242:case 253:case 180:case 297:case 264:case 232:case 176:case 177:case 186:case 181:case 252:case 260:case 247:case 213:case 243:case 1:case 267:case 307:case 278:case 279:case 282:case 245:case 250:case 251:case 249:case 263:case 219:case 185:case 178:case 80:case 246:case 273:case 272:case 182:case 265:case 318:case 324:case 257:case 175:case 174:case 268:case 203:case 271:case 211:case 170:case 218:case 212:case 304:case 173:case 172:case 254:case 241:case 179:case 305:case 306:case 256:case 258:case 259:case 266:case 169:case 261:case 244:case 248:case 255:return!0;default:return!1}}function Az(e,t){let n;VP(e)&&Hy(e)&&Hf(e.initializer)&&(n=Gn(n,zbe(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(Hf(i)&&(n=Gn(n,zbe(e,i.jsDoc))),i.kind===170){n=Gn(n,(t?Wee:Pw)(i));break}if(i.kind===169){n=Gn(n,(t?zee:Bee)(i));break}i=Ez(i)}return n||Ke}function zbe(e,t){let n=ka(t);return Ma(t,i=>{if(i===n){let s=Mn(i.tags,o=>H9e(e,o));return i.tags===s?[i]:s}else return Mn(i.tags,TI)})}function H9e(e,t){return!(HA(t)||b7(t))||!t.parent||!um(t.parent)||!Pp(t.parent.parent)||t.parent.parent===e}function Ez(e){let t=e.parent;if(t.kind===304||t.kind===278||t.kind===173||t.kind===245&&e.kind===212||t.kind===254||Bbe(t)||Hl(e))return t;if(t.parent&&(h2(t.parent)===e||Hl(t)))return t.parent;if(t.parent&&t.parent.parent&&(h2(t.parent.parent)||Wbe(t.parent.parent)===e||Lbe(t.parent.parent)))return t.parent.parent}function y6(e){if(e.symbol)return e.symbol;if(!Be(e.name))return;let t=e.name.escapedText,n=O0(e);if(!n)return;let i=Bn(n.parameters,s=>s.name.kind===80&&s.name.escapedText===t);return i&&i.symbol}function YF(e){if(um(e.parent)&&e.parent.tags){let t=Bn(e.parent.tags,fd);if(t)return t}return O0(e)}function Nz(e){return sF(e,TI)}function O0(e){let t=F0(e);if(t)return mp(t)&&t.type&&Fs(t.type)?t.type:Fs(t)?t:void 0}function F0(e){let t=kS(e);if(t)return Lbe(t)||$9e(t)||Wbe(t)||h2(t)||Bbe(t)||t}function kS(e){let t=Hw(e);if(!t)return;let n=t.parent;if(n&&n.jsDoc&&t===Wo(n.jsDoc))return n}function Hw(e){return vr(e.parent,um)}function pre(e){let t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&Bn(n,i=>i.name.escapedText===t)}function Gbe(e){return!!e.typeArguments}var fre=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(fre||{});function _re(e){let t=e.parent;for(;;){switch(t.kind){case 227:let n=t,i=n.operatorToken.kind;return ry(i)&&n.left===e?n:void 0;case 225:case 226:let s=t,o=s.operator;return o===46||o===47?s:void 0;case 250:case 251:let c=t;return c.initializer===e?c:void 0;case 218:case 210:case 231:case 236:e=t;break;case 306:e=t.parent;break;case 305:if(t.name!==e)return;e=t.parent;break;case 304:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function yb(e){let t=_re(e);if(!t)return 0;switch(t.kind){case 227:let n=t.operatorToken.kind;return n===64||fA(n)?1:2;case 225:case 226:return 2;case 250:case 251:return 1}}function vb(e){return!!_re(e)}function Q9e(e){let t=Qa(e.right);return t.kind===227&&WJ(t.operatorToken.kind)}function Mz(e){let t=_re(e);return!!t&&Hl(t,!0)&&Q9e(t)}function dre(e){switch(e.kind){case 242:case 244:case 255:case 246:case 256:case 270:case 297:case 298:case 257:case 249:case 250:case 251:case 247:case 248:case 259:case 300:return!0}return!1}function ak(e){return Ao(e)||Fo(e)||n2(e)||Gc(e)||yc(e)}function Jbe(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function v6(e){return Jbe(e,197)}function Od(e){return Jbe(e,218)}function mre(e){let t;for(;e&&e.kind===197;)t=e,e=e.parent;return[t,e]}function tA(e){for(;hk(e);)e=e.type;return e}function Qa(e,t){return Nc(e,t?-2147483647:1)}function Rz(e){return e.kind!==212&&e.kind!==213?!1:(e=Od(e.parent),e&&e.kind===221)}function xS(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Ig(e){return!Li(e)&&!Ls(e)&&ql(e.parent)&&e.parent.name===e}function rA(e){let t=e.parent;switch(e.kind){case 11:case 15:case 9:if(na(t))return t.parent;case 80:if(ql(t))return t.name===e?t:void 0;if(Ip(t)){let n=t.parent;return c_(n)&&n.name===t?n:void 0}else{let n=t.parent;return vn(n)&&Hc(n)!==0&&(n.left.symbol||n.symbol)&&Ss(n)===e?n:void 0}case 81:return ql(t)&&t.name===e?t:void 0;default:return}}function b6(e){return s_(e)&&e.parent.kind===168&&ql(e.parent.parent)}function gre(e){let t=e.parent;switch(t.kind){case 173:case 172:case 175:case 174:case 178:case 179:case 307:case 304:case 212:return t.name===e;case 167:return t.right===e;case 209:case 277:return t.propertyName===e;case 282:case 292:case 286:case 287:case 288:return!0}return!1}function Oz(e){switch(e.parent.kind){case 274:case 277:case 275:case 282:case 278:case 272:case 281:return e.parent;case 167:do e=e.parent;while(e.parent.kind===167);return Oz(e)}}function ZF(e){return mo(e)||Zc(e)}function S6(e){let t=Fz(e);return ZF(t)}function Fz(e){return Qo(e)?e.expression:e.right}function hre(e){return e.kind===305?e.name:e.kind===304?e.initializer:e.parent.right}function im(e){let t=CS(e);if(t&&dn(e)){let n=Jee(e);if(n)return n.class}return t}function CS(e){let t=T6(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function Qw(e){if(dn(e))return Uee(e).map(t=>t.class);{let t=T6(e.heritageClauses,119);return t?.types}}function nA(e){return uu(e)?iA(e)||Ke:ni(e)&&Qi(Qx(im(e)),Qw(e))||Ke}function iA(e){let t=T6(e.heritageClauses,96);return t?t.types:void 0}function T6(e,t){if(e){for(let n of e)if(n.token===t)return n}}function j0(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function qp(e){return 83<=e&&e<=166}function jz(e){return 19<=e&&e<=79}function e8(e){return qp(e)||jz(e)}function t8(e){return 128<=e&&e<=166}function Lz(e){return qp(e)&&!t8(e)}function y2(e){let t=JT(e);return t!==void 0&&Lz(t)}function Wz(e){let t=VT(e);return!!t&&!t8(t)}function Kw(e){return 2<=e&&e<=7}var yre=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(yre||{});function Yc(e){if(!e)return 4;let t=0;switch(e.kind){case 263:case 219:case 175:e.asteriskToken&&(t|=1);case 220:ri(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function sA(e){switch(e.kind){case 263:case 219:case 220:case 175:return e.body!==void 0&&e.asteriskToken===void 0&&ri(e,1024)}return!1}function s_(e){return Ha(e)||Hp(e)}function r8(e){return V0(e)&&(e.operator===40||e.operator===41)&&Hp(e.operand)}function ey(e){let t=Ss(e);return!!t&&n8(t)}function n8(e){if(!(e.kind===168||e.kind===213))return!1;let t=xo(e)?Qa(e.argumentExpression):e.expression;return!s_(t)&&!r8(t)}function ok(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:case 10:return gc(e.text);case 168:let t=e.expression;return s_(t)?gc(t.text):r8(t)?t.operator===41?ta(t.operator)+t.operand.text:t.operand.text:void 0;case 296:return N2(e);default:return w.assertNever(e)}}function Bm(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function R_(e){return sh(e)?Fn(e):lm(e)?MA(e):e.text}function aA(e){return sh(e)?e.escapedText:lm(e)?N2(e):gc(e.text)}function k6(e,t){return`__#${sa(e)}@${t}`}function oA(e){return Zi(e.escapedName,"__@")}function vre(e){return Zi(e.escapedName,"__#")}function K9e(e){return Be(e)?Fn(e)==="__proto__":ya(e)&&e.text==="__proto__"}function i8(e,t){switch(e=Nc(e),e.kind){case 232:if(qU(e))return!1;break;case 219:if(e.name)return!1;break;case 220:break;default:return!1}return typeof t=="function"?t(e):!0}function Bz(e){switch(e.kind){case 304:return!K9e(e.name);case 305:return!!e.objectAssignmentInitializer;case 261:return Be(e.name)&&!!e.initializer;case 170:return Be(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 209:return Be(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 173:return!!e.initializer;case 227:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return Be(e.left)}break;case 278:return!0}return!1}function Cf(e,t){if(!Bz(e))return!1;switch(e.kind){case 304:return i8(e.initializer,t);case 305:return i8(e.objectAssignmentInitializer,t);case 261:case 170:case 209:case 173:return i8(e.initializer,t);case 227:return i8(e.right,t);case 278:return i8(e.expression,t)}}function zz(e){return e.escapedText==="push"||e.escapedText==="unshift"}function L0(e){return zm(e).kind===170}function zm(e){for(;e.kind===209;)e=e.parent.parent;return e}function Gz(e){let t=e.kind;return t===177||t===219||t===263||t===220||t===175||t===178||t===179||t===268||t===308}function ko(e){return am(e.pos)||am(e.end)}var bre=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(bre||{});function Jz(e){let t=Ube(e),n=e.kind===215&&e.arguments!==void 0;return Uz(e.kind,t,n)}function Uz(e,t,n){switch(e){case 215:return n?0:1;case 225:case 222:case 223:case 221:case 224:case 228:case 230:return 1;case 227:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function cA(e){let t=Ube(e),n=e.kind===215&&e.arguments!==void 0;return x6(e.kind,t,n)}function Ube(e){return e.kind===227?e.operatorToken.kind:e.kind===225||e.kind===226?e.operator:e.kind}var Sre=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.LogicalOR=5]="LogicalOR",e[e.Coalesce=5]="Coalesce",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(Sre||{});function x6(e,t,n){switch(e){case 357:return 0;case 231:return 1;case 230:return 2;case 228:return 4;case 227:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return C6(t)}case 217:case 236:case 225:case 222:case 223:case 221:case 224:return 16;case 226:return 17;case 214:return 18;case 215:return n?19:18;case 216:case 212:case 213:case 237:return 19;case 235:case 239:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 210:case 211:case 219:case 220:case 232:case 14:case 15:case 229:case 218:case 233:case 285:case 286:case 289:return 20;default:return-1}}function C6(e){switch(e){case 61:return 5;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function Xw(e){return Mn(e,t=>{switch(t.kind){case 295:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function lA(){let e=[],t=[],n=new Map,i=!1;return{add:o,lookup:s,getGlobalDiagnostics:c,getDiagnostics:p};function s(u){let g;if(u.file?g=n.get(u.file.fileName):g=e,!g)return;let d=Xv(g,u,Do,rne);if(d>=0)return g[d];if(~d>0&&w8(u,g[~d-1]))return g[~d-1]}function o(u){let g;u.file?(g=n.get(u.file.fileName),g||(g=[],n.set(u.file.fileName,g),Qv(t,u.file.fileName,Eu))):(i&&(i=!1,e=e.slice()),g=e),Qv(g,u,rne,w8)}function c(){return i=!0,e}function p(u){if(u)return n.get(u)||[];let g=uP(t,d=>n.get(d));return e.length&&g.unshift(...e),g}}var X9e=/\$\{/g;function Vz(e){return e.replace(X9e,"\\${")}function Tre(e){return!!((e.templateFlags||0)&2048)}function qz(e){return e&&!!(mk(e)?Tre(e):Tre(e.head)||_t(e.templateSpans,t=>Tre(t.literal)))}var Y9e=/[\\"\u0000-\u001f\u2028\u2029\u0085]/g,Z9e=/[\\'\u0000-\u001f\u2028\u2029\u0085]/g,eWe=/\r\n|[\\`\u0000-\u0009\u000b-\u001f\u2028\u2029\u0085]/g,tWe=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));function Vbe(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function rWe(e,t,n){if(e.charCodeAt(0)===0){let i=n.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return tWe.get(e)||Vbe(e.charCodeAt(0))}function Dg(e,t){let n=t===96?eWe:t===39?Z9e:Y9e;return e.replace(n,rWe)}var qbe=/[^\u0000-\u007F]/g;function s8(e,t){return e=Dg(e,t),qbe.test(e)?e.replace(qbe,n=>Vbe(n.charCodeAt(0))):e}var nWe=/["\u0000-\u001f\u2028\u2029\u0085]/g,iWe=/['\u0000-\u001f\u2028\u2029\u0085]/g,sWe=new Map(Object.entries({'"':""","'":"'"}));function aWe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function oWe(e){return e.charCodeAt(0)===0?"�":sWe.get(e)||aWe(e.charCodeAt(0))}function $z(e,t){let n=t===39?iWe:nWe;return e.replace(n,oWe)}function _d(e){let t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&cWe(e.charCodeAt(0))?e.substring(1,t-1):e}function cWe(e){return e===39||e===34||e===96}function Yw(e){let t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}var w6=[""," "];function a8(e){let t=w6[1];for(let n=w6.length;n<=e;n++)w6.push(w6[n-1]+t);return w6[e]}function I6(){return w6[1].length}function D6(e){var t,n,i,s,o,c=!1;function p(I){let P=e2(I);P.length>1?(s=s+P.length-1,o=t.length-I.length+ka(P),i=o-t.length===0):i=!1}function u(I){I&&I.length&&(i&&(I=a8(n)+I,i=!1),t+=I,p(I))}function g(I){I&&(c=!1),u(I)}function d(I){I&&(c=!0),u(I)}function h(){t="",n=0,i=!0,s=0,o=0,c=!1}function S(I){I!==void 0&&(t+=I,p(I),c=!1)}function T(I){I&&I.length&&g(I)}function x(I){(!i||I)&&(t+=e,s++,o=t.length,i=!0,c=!1)}return h(),{write:g,rawWrite:S,writeLiteral:T,writeLine:x,increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>s,getColumn:()=>i?n*I6():t.length-o,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>c,hasTrailingWhitespace:()=>!!t.length&&rh(t.charCodeAt(t.length-1)),clear:h,writeKeyword:g,writeOperator:g,writeParameter:g,writeProperty:g,writePunctuation:g,writeSpace:g,writeStringLiteral:g,writeSymbol:(I,P)=>g(I),writeTrailingSemicolon:g,writeComment:d}}function Hz(e){let t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(i){n(),e.writeLiteral(i)},writeStringLiteral(i){n(),e.writeStringLiteral(i)},writeSymbol(i,s){n(),e.writeSymbol(i,s)},writePunctuation(i){n(),e.writePunctuation(i)},writeKeyword(i){n(),e.writeKeyword(i)},writeOperator(i){n(),e.writeOperator(i)},writeParameter(i){n(),e.writeParameter(i)},writeSpace(i){n(),e.writeSpace(i)},writeProperty(i){n(),e.writeProperty(i)},writeComment(i){n(),e.writeComment(i)},writeLine(){n(),e.writeLine()},increaseIndent(){n(),e.increaseIndent()},decreaseIndent(){n(),e.decreaseIndent()}}}function ck(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function ty(e){return hu(ck(e))}function Qz(e,t,n){return t.moduleName||Kz(e,t.fileName,n&&n.fileName)}function $be(e,t){return e.getCanonicalFileName(as(t,e.getCurrentDirectory()))}function kre(e,t,n){let i=t.getExternalModuleFileFromDeclaration(n);if(!i||i.isDeclarationFile)return;let s=d2(n);if(!(s&&Ha(s)&&!$f(s.text)&&!$be(e,i.path).includes($be(e,Ml(e.getCommonSourceDirectory())))))return Qz(e,i)}function Kz(e,t,n){let i=u=>e.getCanonicalFileName(u),s=So(n?ti(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),o=as(t,e.getCurrentDirectory()),c=Zx(s,o,s,i,!1),p=dp(c);return n?GT(p):p}function xre(e,t,n){let i=t.getCompilerOptions(),s;return i.outDir?s=dp(p8(e,t,i.outDir)):s=dp(e),s+n}function Cre(e,t){return o8(e,t.getCompilerOptions(),t)}function o8(e,t,n){let i=t.declarationDir||t.outDir,s=i?wre(e,i,n.getCurrentDirectory(),n.getCommonSourceDirectory(),c=>n.getCanonicalFileName(c)):e,o=c8(s);return dp(s)+o}function c8(e){return Bc(e,[".mjs",".mts"])?".d.mts":Bc(e,[".cjs",".cts"])?".d.cts":Bc(e,[".json"])?".d.json.ts":".d.ts"}function Xz(e){return Bc(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Bc(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Bc(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Yz(e,t,n,i){return n?ib(i(),n_(n,e,t)):e}function l8(e,t){var n;if(e.paths)return e.baseUrl??w.checkDefined(e.pathsBasePath||((n=t.getCurrentDirectory)==null?void 0:n.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function u8(e,t,n){let i=e.getCompilerOptions();if(i.outFile){let s=_p(i),o=i.emitDeclarationOnly||s===2||s===4;return Mn(e.getSourceFiles(),c=>(o||!Pl(c))&&wS(c,e,n))}else{let s=t===void 0?e.getSourceFiles():[t];return Mn(s,o=>wS(o,e,n))}}function wS(e,t,n){let i=t.getCompilerOptions();if(i.noEmitForJsFiles&&Cp(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(n)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!M_(e))return!0;if(t.getRedirectFromSourceFile(e.fileName))return!1;if(i.outFile)return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){let s=as(hE(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),o=wre(e.fileName,i.outDir,t.getCurrentDirectory(),s,t.getCanonicalFileName);if(Hh(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function p8(e,t,n){return wre(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function wre(e,t,n,i,s){let o=as(e,n);return o=s(o).indexOf(s(i))===0?o.substring(i.length):o,Jn(t,o)}function f8(e,t,n,i,s,o,c){e.writeFile(n,i,s,p=>{t.add(fc(_.Could_not_write_file_0_Colon_1,n,p))},o,c)}function Hbe(e,t,n){if(e.length>em(e)&&!n(e)){let i=ti(e);Hbe(i,t,n),t(e)}}function Zz(e,t,n,i,s,o){try{i(e,t,n)}catch{Hbe(ti(ra(e)),s,o),i(e,t,n)}}function uA(e,t){let n=th(e);return CP(n,t)}function Zw(e,t){return CP(e,t)}function _h(e){return Bn(e.members,t=>yc(t)&&ud(t.body))}function pA(e){if(e&&e.parameters.length>0){let t=e.parameters.length===2&&bb(e.parameters[0]);return e.parameters[t?1:0]}}function Ire(e){let t=pA(e);return t&&t.type}function IS(e){if(e.parameters.length&&!cv(e)){let t=e.parameters[0];if(bb(t))return t}}function bb(e){return Sb(e.name)}function Sb(e){return!!e&&e.kind===80&&eG(e)}function v2(e){return!!vr(e,t=>t.kind===187?!0:t.kind===80||t.kind===167?!1:"quit")}function DS(e){if(!Sb(e))return!1;for(;Ip(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===187}function eG(e){return e.escapedText==="this"}function PS(e,t){let n,i,s,o;return ey(t)?(n=t,t.kind===178?s=t:t.kind===179?o=t:w.fail("Accessor has wrong kind")):or(e,c=>{if(pb(c)&&Ks(c)===Ks(t)){let p=ok(c.name),u=ok(t.name);p===u&&(n?i||(i=c):n=c,c.kind===178&&!s&&(s=c),c.kind===179&&!o&&(o=c))}}),{firstAccessor:n,secondAccessor:i,getAccessor:s,setAccessor:o}}function ml(e){if(!dn(e)&&Gc(e)||gd(e))return;let t=e.type;return t||!dn(e)?t:OP(e)?e.typeExpression&&e.typeExpression.type:qy(e)}function Dre(e){return e.type}function wf(e){return cv(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(dn(e)?PM(e):void 0)}function _8(e){return Ma(P0(e),t=>lWe(t)?t.typeParameters:void 0)}function lWe(e){return hd(e)&&!(e.parent.kind===321&&(e.parent.tags.some(fd)||e.parent.tags.some(TI)))}function tG(e){let t=pA(e);return t&&ml(t)}function uWe(e,t,n,i){pWe(e,t,n.pos,i)}function pWe(e,t,n,i){i&&i.length&&n!==i[0].pos&&Zw(e,n)!==Zw(e,i[0].pos)&&t.writeLine()}function Pre(e,t,n,i){n!==i&&Zw(e,n)!==Zw(e,i)&&t.writeLine()}function fWe(e,t,n,i,s,o,c,p){if(i&&i.length>0){s&&n.writeSpace(" ");let u=!1;for(let g of i)u&&(n.writeSpace(" "),u=!1),p(e,t,n,g.pos,g.end,c),g.hasTrailingNewLine?n.writeLine():u=!0;u&&o&&n.writeSpace(" ")}}function Are(e,t,n,i,s,o,c){let p,u;if(c?s.pos===0&&(p=Mn(nh(e,s.pos),g)):p=nh(e,s.pos),p){let d=[],h;for(let S of p){if(h){let T=Zw(t,h.end);if(Zw(t,S.pos)>=T+2)break}d.push(S),h=S}if(d.length){let S=Zw(t,ka(d).end);Zw(t,ha(e,s.pos))>=S+2&&(uWe(t,n,s,p),fWe(e,t,n,d,!1,!0,o,i),u={nodePos:s.pos,detachedCommentEndPos:ka(d).end})}}return u;function g(d){return IF(e,d.pos)}}function eI(e,t,n,i,s,o){if(e.charCodeAt(i+1)===42){let c=ww(t,i),p=t.length,u;for(let g=i,d=c.line;g<s;d++){let h=d+1===p?e.length+1:t[d+1];if(g!==i){u===void 0&&(u=Qbe(e,t[c.line],i));let T=n.getIndent()*I6()-u+Qbe(e,g,h);if(T>0){let x=T%I6(),I=a8((T-x)/I6());for(n.rawWrite(I);x;)n.rawWrite(" "),x--}else n.rawWrite("")}_We(e,s,n,o,g,h),g=h}}else n.writeComment(e.substring(i,s))}function _We(e,t,n,i,s,o){let c=Math.min(t,o-1),p=e.substring(s,c).trim();p?(n.writeComment(p),c!==t&&n.writeLine()):n.rawWrite(i)}function Qbe(e,t,n){let i=0;for(;t<n&&Rm(e.charCodeAt(t));t++)e.charCodeAt(t)===9?i+=I6()-i%I6():i++;return i}function rG(e){return Mu(e)!==0}function Ere(e){return Xy(e)!==0}function If(e,t){return!!b2(e,t)}function ri(e,t){return!!Nre(e,t)}function Ks(e){return cl(e)&&Cl(e)||zc(e)}function Cl(e){return ri(e,256)}function d8(e){return If(e,16)}function AS(e){return ri(e,64)}function nG(e){return ri(e,128)}function Gm(e){return ri(e,512)}function lk(e){return If(e,8)}function a_(e){return ri(e,32768)}function b2(e,t){return Mu(e)&t}function Nre(e,t){return Xy(e)&t}function Mre(e,t,n){return e.kind>=0&&e.kind<=166?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=iG(e)|536870912),n||t&&dn(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=Kbe(e)|268435456),Xbe(e.modifierFlagsCache)):dWe(e.modifierFlagsCache))}function Mu(e){return Mre(e,!0)}function Rre(e){return Mre(e,!0,!0)}function Xy(e){return Mre(e,!1)}function Kbe(e){let t=0;return e.parent&&!Gi(e)&&(dn(e)&&(Vee(e)&&(t|=8388608),qee(e)&&(t|=16777216),$ee(e)&&(t|=33554432),Hee(e)&&(t|=67108864),Qee(e)&&(t|=134217728)),Kee(e)&&(t|=65536)),t}function dWe(e){return e&65535}function Xbe(e){return e&131071|(e&260046848)>>>23}function mWe(e){return Xbe(Kbe(e))}function Ore(e){return iG(e)|mWe(e)}function iG(e){let t=yd(e)?Jm(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function Jm(e){let t=0;if(e)for(let n of e)t|=S2(n.kind);return t}function S2(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 171:return 32768}return 0}function P6(e){return e===57||e===56}function Fre(e){return P6(e)||e===54}function fA(e){return e===76||e===77||e===78}function sG(e){return vn(e)&&fA(e.operatorToken.kind)}function m8(e){return P6(e)||e===61}function A6(e){return vn(e)&&m8(e.operatorToken.kind)}function ry(e){return e>=64&&e<=79}function aG(e){let t=oG(e);return t&&!t.isImplements?t.class:void 0}function oG(e){if(sy(e)){if(Af(e.parent)&&ni(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(H2(e.parent)){let t=F0(e.parent);if(t&&ni(t))return{class:t,isImplements:!1}}}}function Hl(e,t){return vn(e)&&(t?e.operatorToken.kind===64:ry(e.operatorToken.kind))&&Jp(e.left)}function Yy(e){if(Hl(e,!0)){let t=e.left.kind;return t===211||t===210}return!1}function g8(e){return aG(e)!==void 0}function mo(e){return e.kind===80||N6(e)}function wp(e){switch(e.kind){case 80:return e;case 167:do e=e.left;while(e.kind!==80);return e;case 212:do e=e.expression;while(e.kind!==80);return e}}function E6(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===237||e.kind===212&&E6(e.expression)||e.kind===218&&E6(e.expression)}function N6(e){return Ln(e)&&Be(e.name)&&mo(e.expression)}function M6(e){if(Ln(e)){let t=M6(e.expression);if(t!==void 0)return t+"."+kf(e.name)}else if(xo(e)){let t=M6(e.expression);if(t!==void 0&&ol(e.argumentExpression))return t+"."+ok(e.argumentExpression)}else{if(Be(e))return Ai(e.escapedText);if(lm(e))return MA(e)}}function Tb(e){return TS(e)&&Zh(e)==="prototype"}function _A(e){return e.parent.kind===167&&e.parent.right===e||e.parent.kind===212&&e.parent.name===e||e.parent.kind===237&&e.parent.name===e}function cG(e){return!!e.parent&&(Ln(e.parent)&&e.parent.name===e||xo(e.parent)&&e.parent.argumentExpression===e)}function jre(e){return Ip(e.parent)&&e.parent.right===e||Ln(e.parent)&&e.parent.name===e||X0(e.parent)&&e.parent.right===e}function h8(e){return vn(e)&&e.operatorToken.kind===104}function Lre(e){return h8(e.parent)&&e===e.parent.right}function lG(e){return e.kind===211&&e.properties.length===0}function Wre(e){return e.kind===210&&e.elements.length===0}function dA(e){if(!(!gWe(e)||!e.declarations)){for(let t of e.declarations)if(t.localSymbol)return t.localSymbol}}function gWe(e){return e&&Dr(e.declarations)>0&&ri(e.declarations[0],2048)}function y8(e){return Bn(UWe,t=>uc(e,t))}function hWe(e){let t=[],n=e.length;for(let i=0;i<n;i++){let s=e.charCodeAt(i);s<128?t.push(s):s<2048?(t.push(s>>6|192),t.push(s&63|128)):s<65536?(t.push(s>>12|224),t.push(s>>6&63|128),t.push(s&63|128)):s<131072?(t.push(s>>18|240),t.push(s>>12&63|128),t.push(s>>6&63|128),t.push(s&63|128)):w.assert(!1,"Unexpected code point")}return t}var T2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Bre(e){let t="",n=hWe(e),i=0,s=n.length,o,c,p,u;for(;i<s;)o=n[i]>>2,c=(n[i]&3)<<4|n[i+1]>>4,p=(n[i+1]&15)<<2|n[i+2]>>6,u=n[i+2]&63,i+1>=s?p=u=64:i+2>=s&&(u=64),t+=T2.charAt(o)+T2.charAt(c)+T2.charAt(p)+T2.charAt(u),i+=3;return t}function yWe(e){let t="",n=0,i=e.length;for(;n<i;){let s=e[n];if(s<128)t+=String.fromCharCode(s),n++;else if((s&192)===192){let o=s&63;n++;let c=e[n];for(;(c&192)===128;)o=o<<6|c&63,n++,c=e[n];t+=String.fromCharCode(o)}else t+=String.fromCharCode(s),n++}return t}function zre(e,t){return e&&e.base64encode?e.base64encode(t):Bre(t)}function Gre(e,t){if(e&&e.base64decode)return e.base64decode(t);let n=t.length,i=[],s=0;for(;s<n&&t.charCodeAt(s)!==T2.charCodeAt(64);){let o=T2.indexOf(t[s]),c=T2.indexOf(t[s+1]),p=T2.indexOf(t[s+2]),u=T2.indexOf(t[s+3]),g=(o&63)<<2|c>>4&3,d=(c&15)<<4|p>>2&15,h=(p&3)<<6|u&63;d===0&&p!==0?i.push(g):h===0&&u!==0?i.push(g,d):i.push(g,d,h),s+=4}return yWe(i)}function uG(e,t){let n=Is(t)?t:t.readFile(e);if(!n)return;let i=R6(n);if(i===void 0){let s=eU(e,n);s.error||(i=s.config)}return i}function tI(e,t){return uG(e,t)||{}}function R6(e){try{return JSON.parse(e)}catch{return}}function sm(e,t){return!t.directoryExists||t.directoryExists(e)}var vWe=`\r
|
|
`,bWe=`
|
|
`;function Zy(e){switch(e.newLine){case 0:return vWe;case 1:case void 0:return bWe}}function O_(e,t=e){return w.assert(t>=e||t===-1),{pos:e,end:t}}function v8(e,t){return O_(e.pos,t)}function W0(e,t){return O_(t,e.end)}function ny(e){let t=yd(e)?aS(e.modifiers,Il):void 0;return t&&!am(t.end)?W0(e,t.end):e}function Um(e){if(hs(e)||hc(e))return W0(e,e.name.pos);let t=yd(e)?Wo(e.modifiers):void 0;return t&&!am(t.end)?W0(e,t.end):ny(e)}function pG(e,t){return O_(e,e+ta(t).length)}function uk(e,t){return Ure(e,e,t)}function b8(e,t,n){return F_(mA(e,n,!1),mA(t,n,!1),n)}function Jre(e,t,n){return F_(e.end,t.end,n)}function Ure(e,t,n){return F_(mA(e,n,!1),t.end,n)}function O6(e,t,n){return F_(e.end,mA(t,n,!1),n)}function fG(e,t,n,i){let s=mA(t,n,i);return wP(n,e.end,s)}function Ybe(e,t,n){return wP(n,e.end,t.end)}function Vre(e,t){return!F_(e.pos,e.end,t)}function F_(e,t,n){return wP(n,e,t)===0}function mA(e,t,n){return am(e.pos)?-1:ha(t.text,e.pos,!1,n)}function qre(e,t,n,i){let s=ha(n.text,e,!1,i),o=SWe(s,t,n);return wP(n,o??t,s)}function $re(e,t,n,i){let s=ha(n.text,e,!1,i);return wP(n,e,Math.min(t,s))}function $p(e,t){return _G(e.pos,e.end,t)}function _G(e,t,n){return e<=n.pos&&t>=n.end}function SWe(e,t=0,n){for(;e-- >t;)if(!rh(n.text.charCodeAt(e)))return e}function dG(e){let t=As(e);if(t)switch(t.parent.kind){case 267:case 268:return t===t.parent.name}return!1}function gA(e){return Mn(e.declarations,F6)}function F6(e){return li(e)&&e.initializer!==void 0}function mG(e){return e.watch&&_o(e,"watch")}function Fd(e){e.close()}function Cc(e){return e.flags&33554432?e.links.checkFlags:0}function j_(e,t=!1){if(e.valueDeclaration){let n=t&&e.declarations&&Bn(e.declarations,uf)||e.flags&32768&&Bn(e.declarations,B_)||e.valueDeclaration,i=I0(n);return e.parent&&e.parent.flags&32?i:i&-8}if(Cc(e)&6){let n=e.links.checkFlags,i=n&1024?2:n&256?1:4,s=n&2048?256:0;return i|s}return e.flags&4194304?257:0}function vu(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function rI(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function S8(e){return hA(e)===1}function k2(e){return hA(e)!==0}function hA(e){let{parent:t}=e;switch(t?.kind){case 218:return hA(t);case 226:case 225:let{operator:n}=t;return n===46||n===47?2:0;case 227:let{left:i,operatorToken:s}=t;return i===e&&ry(s.kind)?s.kind===64?1:2:0;case 212:return t.name!==e?0:hA(t);case 304:{let o=hA(t.parent);return e===t.name?TWe(o):o}case 305:return e===t.objectAssignmentInitializer?0:hA(t.parent);case 210:return hA(t);case 250:case 251:return e===t.initializer?1:0;default:return 0}}function TWe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return w.assertNever(e)}}function gG(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(typeof e[n]=="object"){if(!gG(e[n],t[n]))return!1}else if(typeof e[n]!="function"&&e[n]!==t[n])return!1;return!0}function cf(e,t){e.forEach(t),e.clear()}function dh(e,t,n){let{onDeleteValue:i,onExistingValue:s}=n;e.forEach((o,c)=>{var p;t?.has(c)?s&&s(o,(p=t.get)==null?void 0:p.call(t,c),c):(e.delete(c),i(o,c))})}function yA(e,t,n){dh(e,t,n);let{createNewValue:i}=n;t?.forEach((s,o)=>{e.has(o)||e.set(o,i(o,s))})}function Hre(e){if(e.flags&32){let t=iy(e);return!!t&&ri(t,64)}return!1}function iy(e){var t;return(t=e.declarations)==null?void 0:t.find(ni)}function jn(e){return e.flags&3899393?e.objectFlags:0}function T8(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&f4(e.declarations[0])}function Qre({moduleSpecifier:e}){return ya(e)?e.text:pc(e)}function hG(e){let t;return Ms(e,n=>{ud(n)&&(t=n)},n=>{for(let i=n.length-1;i>=0;i--)if(ud(n[i])){t=n[i];break}}),t}function dd(e,t){return e.has(t)?!1:(e.add(t),!0)}function x2(e){return ni(e)||uu(e)||Dp(e)}function yG(e){return e>=183&&e<=206||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===234||e===313||e===314||e===315||e===316||e===317||e===318||e===319}function Oo(e){return e.kind===212||e.kind===213}function vG(e){return e.kind===212?e.name:(w.assert(e.kind===213),e.argumentExpression)}function k8(e){return e.kind===276||e.kind===280}function nI(e){for(;Oo(e);)e=e.expression;return e}function Kre(e,t){if(Oo(e.parent)&&cG(e))return n(e.parent);function n(i){if(i.kind===212){let s=t(i.name);if(s!==void 0)return s}else if(i.kind===213)if(Be(i.argumentExpression)||Ha(i.argumentExpression)){let s=t(i.argumentExpression);if(s!==void 0)return s}else return;if(Oo(i.expression))return n(i.expression);if(Be(i.expression))return t(i.expression)}}function iI(e,t){for(;;){switch(e.kind){case 226:e=e.operand;continue;case 227:e=e.left;continue;case 228:e=e.condition;continue;case 216:e=e.tag;continue;case 214:if(t)return e;case 235:case 213:case 212:case 236:case 356:case 239:e=e.expression;continue}return e}}function kWe(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function xWe(e,t){this.flags=t,(w.isDebugging||mn)&&(this.checker=e)}function CWe(e,t){this.flags=t,w.isDebugging&&(this.checker=e)}function Xre(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function wWe(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function IWe(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function DWe(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(i=>i)}var bu={getNodeConstructor:()=>Xre,getTokenConstructor:()=>wWe,getIdentifierConstructor:()=>IWe,getPrivateIdentifierConstructor:()=>Xre,getSourceFileConstructor:()=>Xre,getSymbolConstructor:()=>kWe,getTypeConstructor:()=>xWe,getSignatureConstructor:()=>CWe,getSourceMapSourceConstructor:()=>DWe},Zbe=[];function e0e(e){Zbe.push(e),e(bu)}function Yre(e){Object.assign(bu,e),or(Zbe,t=>t(bu))}function mh(e,t){return e.replace(/\{(\d+)\}/g,(n,i)=>""+w.checkDefined(t[+i]))}var x8;function Zre(e){x8=e}function ene(e){!x8&&e&&(x8=e())}function Es(e){return x8&&x8[e.key]||e.message}function C2(e,t,n,i,s,...o){n+i>t.length&&(i=t.length-n),Wte(t,n,i);let c=Es(s);return _t(o)&&(c=mh(c,o)),{file:void 0,start:n,length:i,messageText:c,category:s.category,code:s.code,reportsUnnecessary:s.reportsUnnecessary,fileName:e}}function PWe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function t0e(e,t){let n=t.fileName||"",i=t.text.length;w.assertEqual(e.fileName,n),w.assertLessThanOrEqual(e.start,i),w.assertLessThanOrEqual(e.start+e.length,i);let s={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){s.relatedInformation=[];for(let o of e.relatedInformation)PWe(o)&&o.fileName===n?(w.assertLessThanOrEqual(o.start,i),w.assertLessThanOrEqual(o.start+o.length,i),s.relatedInformation.push(t0e(o,t))):s.relatedInformation.push(o)}return s}function w2(e,t){let n=[];for(let i of e)n.push(t0e(i,t));return n}function wl(e,t,n,i,...s){Wte(e.text,t,n);let o=Es(i);return _t(s)&&(o=mh(o,s)),{file:e,start:t,length:n,messageText:o,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function I2(e,...t){let n=Es(e);return _t(t)&&(n=mh(n,t)),n}function fc(e,...t){let n=Es(e);return _t(t)&&(n=mh(n,t)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function C8(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function Ns(e,t,...n){let i=Es(t);return _t(n)&&(i=mh(i,n)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function tne(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function bG(e){return e.file?e.file.path:void 0}function vA(e,t){return rne(e,t)||AWe(e,t)||0}function rne(e,t){let n=SG(e),i=SG(t);return Eu(bG(e),bG(t))||Po(e.start,t.start)||Po(e.length,t.length)||Po(n,i)||EWe(e,t)||0}function AWe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?Po(t.relatedInformation.length,e.relatedInformation.length)||or(e.relatedInformation,(n,i)=>{let s=t.relatedInformation[i];return vA(n,s)})||0:e.relatedInformation?-1:1}function EWe(e,t){let n=TG(e),i=TG(t);typeof n!="string"&&(n=n.messageText),typeof i!="string"&&(i=i.messageText);let s=typeof e.messageText!="string"?e.messageText.next:void 0,o=typeof t.messageText!="string"?t.messageText.next:void 0,c=Eu(n,i);return c||(c=NWe(s,o),c)?c:e.canonicalHead&&!t.canonicalHead?-1:t.canonicalHead&&!e.canonicalHead?1:0}function NWe(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:r0e(e,t)||n0e(e,t)}function r0e(e,t){if(e===void 0&&t===void 0)return 0;if(e===void 0)return 1;if(t===void 0)return-1;let n=Po(t.length,e.length);if(n)return n;for(let i=0;i<t.length;i++)if(n=r0e(e[i].next,t[i].next),n)return n;return 0}function n0e(e,t){let n;for(let i=0;i<t.length;i++){if(n=Eu(e[i].messageText,t[i].messageText),n)return n;if(e[i].next!==void 0&&(n=n0e(e[i].next,t[i].next),n))return n}return 0}function w8(e,t){let n=SG(e),i=SG(t),s=TG(e),o=TG(t);return Eu(bG(e),bG(t))===0&&Po(e.start,t.start)===0&&Po(e.length,t.length)===0&&Po(n,i)===0&&MWe(s,o)}function SG(e){var t;return((t=e.canonicalHead)==null?void 0:t.code)||e.code}function TG(e){var t;return((t=e.canonicalHead)==null?void 0:t.messageText)||e.messageText}function MWe(e,t){let n=typeof e=="string"?e:e.messageText,i=typeof t=="string"?t:t.messageText;return Eu(n,i)===0}function j6(e){return e===4||e===2||e===1||e===6?1:0}function i0e(e){if(e.transformFlags&2)return Qu(e)||Q0(e)?e:Ms(e,i0e)}function RWe(e){return e.isDeclarationFile?void 0:i0e(e)}function OWe(e,t){return(Rk(e,t)===99||Bc(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function L6(e){switch(ine(e)){case 3:return s=>{s.externalModuleIndicator=k4(s)||!s.isDeclarationFile||void 0};case 1:return s=>{s.externalModuleIndicator=k4(s)};case 2:let t=[k4];(e.jsx===4||e.jsx===5)&&t.push(RWe),t.push(OWe);let n=vf(...t);return s=>{s.externalModuleIndicator=n(s,e)}}}function kG(e){let t=Ku(e);return 3<=t&&t<=99||W6(e)||B6(e)}function Dbt(e){return e}var Su={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!!(e.allowImportingTsExtensions||e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(e.target===0?void 0:e.target)??(e.module===100&&9||e.module===101&&9||e.module===102&&10||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:Su.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(Su.module.computeValue(e)){case 1:t=2;break;case 100:case 101:case 102:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>{if(e.moduleDetection!==void 0)return e.moduleDetection;let t=Su.module.computeValue(e);return 100<=t&&t<=199?3:2}},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(Su.module.computeValue(e)){case 100:case 101:case 102:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:Su.esModuleInterop.computeValue(e)||Su.module.computeValue(e)===4||Su.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=Su.moduleResolution.computeValue(e);if(!sI(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let t=Su.moduleResolution.computeValue(e);if(!sI(t))return!1;if(e.resolvePackageJsonImports!==void 0)return e.resolvePackageJsonImports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>{if(e.resolveJsonModule!==void 0)return e.resolveJsonModule;switch(Su.module.computeValue(e)){case 102:case 199:return!0}return Su.moduleResolution.computeValue(e)===100}},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||Su.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&Su.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?Su.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>Ru(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>Ru(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>Ru(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>Ru(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>Ru(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>Ru(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>Ru(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>Ru(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>Ru(e,"useUnknownInCatchVariables")}},bA=Su,nne=Su.allowImportingTsExtensions.computeValue,xa=Su.target.computeValue,_p=Su.module.computeValue,Ku=Su.moduleResolution.computeValue,ine=Su.moduleDetection.computeValue,md=Su.isolatedModules.computeValue,Vm=Su.esModuleInterop.computeValue,D2=Su.allowSyntheticDefaultImports.computeValue,W6=Su.resolvePackageJsonExports.computeValue,B6=Su.resolvePackageJsonImports.computeValue,ES=Su.resolveJsonModule.computeValue,lf=Su.declaration.computeValue,kb=Su.preserveConstEnums.computeValue,NS=Su.incremental.computeValue,I8=Su.declarationMap.computeValue,xb=Su.allowJs.computeValue,z6=Su.useDefineForClassFields.computeValue;function G6(e){return e>=5&&e<=99}function D8(e){switch(_p(e)){case 0:case 4:case 3:return!1}return!0}function sne(e){return e.allowUnreachableCode===!1}function ane(e){return e.allowUnusedLabels===!1}function sI(e){return e>=3&&e<=99||e===100}function one(e){return 101<=e&&e<=199||e===200||e===99}function Ru(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function P8(e){return Rl(HJ.type,(t,n)=>t===e?n:void 0)}function xG(e){return e.useDefineForClassFields!==!1&&xa(e)>=9}function cne(e,t){return o2(t,e,ase)}function lne(e,t){return o2(t,e,ose)}function une(e,t){return o2(t,e,cse)}function A8(e,t){return t.strictFlag?Ru(e,t.name):t.allowJsFlag?xb(e):e[t.name]}function E8(e){let t=e.jsx;return t===2||t===4||t===5}function J6(e,t){let n=t?.pragmas.get("jsximportsource"),i=gs(n)?n[n.length-1]:n,s=t?.pragmas.get("jsxruntime"),o=gs(s)?s[s.length-1]:s;if(o?.arguments.factory!=="classic")return e.jsx===4||e.jsx===5||e.jsxImportSource||i||o?.arguments.factory==="automatic"?i?.arguments.factory||e.jsxImportSource||"react":void 0}function N8(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function CG(e){let t=!1;for(let n=0;n<e.length;n++)if(e.charCodeAt(n)===42)if(!t)t=!0;else return!1;return!0}function wG(e,t){let n,i,s,o=!1;return{getSymlinkedFiles:()=>s,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(u,g)=>(s||(s=new Map)).set(u,g),setSymlinkedDirectory:(u,g)=>{let d=So(u,e,t);PA(d)||(d=Ml(d),g!==!1&&!n?.has(d)&&(i||(i=od())).add(g.realPath,u),(n||(n=new Map)).set(d,g))},setSymlinksFromResolutions(u,g,d){w.assert(!o),o=!0,u(h=>p(this,h.resolvedModule)),g(h=>p(this,h.resolvedTypeReferenceDirective)),d.forEach(h=>p(this,h.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>o,setSymlinksFromResolution(u){p(this,u)},hasAnySymlinks:c};function c(){return!!s?.size||!!n&&!!Rl(n,u=>!!u)}function p(u,g){if(!g||!g.originalPath||!g.resolvedFileName)return;let{resolvedFileName:d,originalPath:h}=g;u.setSymlinkedFile(So(h,e,t),d);let[S,T]=FWe(d,h,e,t)||Ke;S&&T&&u.setSymlinkedDirectory(T,{real:Ml(S),realPath:Ml(So(S,e,t))})}}function FWe(e,t,n,i){let s=Nu(as(e,n)),o=Nu(as(t,n)),c=!1;for(;s.length>=2&&o.length>=2&&!s0e(s[s.length-2],i)&&!s0e(o[o.length-2],i)&&i(s[s.length-1])===i(o[o.length-1]);)s.pop(),o.pop(),c=!0;return c?[w0(s),w0(o)]:void 0}function s0e(e,t){return e!==void 0&&(t(e)==="node_modules"||Zi(e,"@"))}function jWe(e){return hB(e.charCodeAt(0))?e.slice(1):void 0}function IG(e,t,n){let i=VW(e,t,n);return i===void 0?void 0:jWe(i)}var pne=/[^\w\s/]/g;function a0e(e){return e.replace(pne,LWe)}function LWe(e){return"\\"+e}var WWe=[42,63],BWe=["node_modules","bower_components","jspm_packages"],fne=`(?!(?:${BWe.join("|")})(?:/|$))`,o0e={singleAsteriskRegexFragment:"(?:[^./]|(?:\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(?:/${fne}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>dne(e,o0e.singleAsteriskRegexFragment)},c0e={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(?:/${fne}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>dne(e,c0e.singleAsteriskRegexFragment)},l0e={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(?:/.+?)?",replaceWildcardCharacter:e=>dne(e,l0e.singleAsteriskRegexFragment)},_ne={files:o0e,directories:c0e,exclude:l0e};function SA(e,t,n){let i=M8(e,t,n);return!i||!i.length?void 0:`^(?:${i.map(c=>`(?:${c})`).join("|")})${n==="exclude"?"(?:$|/)":"$"}`}function M8(e,t,n){if(!(e===void 0||e.length===0))return Ma(e,i=>i&&R8(i,t,n,_ne[n]))}function DG(e){return!/[.*?]/.test(e)}function PG(e,t,n){let i=e&&R8(e,t,n,_ne[n]);return i&&`^(?:${i})${n==="exclude"?"(?:$|/)":"$"}`}function R8(e,t,n,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:s,replaceWildcardCharacter:o}=_ne[n]){let c="",p=!1,u=$O(e,t),g=ka(u);if(n!=="exclude"&&g==="**")return;u[0]=Vy(u[0]),DG(g)&&u.push("**","*");let d=0;for(let h of u){if(h==="**")c+=s;else if(n==="directories"&&(c+="(?:",d++),p&&(c+=Ro),n!=="exclude"){let S="";h.charCodeAt(0)===42?(S+="(?:[^./]"+i+")?",h=h.substr(1)):h.charCodeAt(0)===63&&(S+="[^./]",h=h.substr(1)),S+=h.replace(pne,o),S!==h&&(c+=fne),c+=S}else c+=h.replace(pne,o);p=!0}for(;d>0;)c+=")?",d--;return c}function dne(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function O8(e,t,n,i,s){e=ra(e),s=ra(s);let o=Jn(s,e);return{includeFilePatterns:kr(M8(n,o,"files"),c=>`^${c}$`),includeFilePattern:SA(n,o,"files"),includeDirectoryPattern:SA(n,o,"directories"),excludePattern:SA(t,o,"exclude"),basePaths:zWe(e,n,i)}}function ev(e,t){return new RegExp(e,t?"":"i")}function AG(e,t,n,i,s,o,c,p,u){e=ra(e),o=ra(o);let g=O8(e,n,i,s,o),d=g.includeFilePatterns&&g.includeFilePatterns.map(E=>ev(E,s)),h=g.includeDirectoryPattern&&ev(g.includeDirectoryPattern,s),S=g.excludePattern&&ev(g.excludePattern,s),T=d?d.map(()=>[]):[[]],x=new Map,I=hu(s);for(let E of g.basePaths)P(E,Jn(o,E),c);return ad(T);function P(E,F,O){let W=I(u(F));if(x.has(W))return;x.set(W,!0);let{files:z,directories:$}=p(E);for(let X of yf(z,Eu)){let U=Jn(E,X),_e=Jn(F,X);if(!(t&&!Bc(U,t))&&!(S&&S.test(_e)))if(!d)T[0].push(U);else{let re=Tc(d,V=>V.test(_e));re!==-1&&T[re].push(U)}}if(!(O!==void 0&&(O--,O===0)))for(let X of yf($,Eu)){let U=Jn(E,X),_e=Jn(F,X);(!h||h.test(_e))&&(!S||!S.test(_e))&&P(U,_e,O)}}}function zWe(e,t,n){let i=[e];if(t){let s=[];for(let o of t){let c=Sf(o)?o:ra(Jn(e,o));s.push(GWe(c))}s.sort(bw(!n));for(let o of s)Fi(i,c=>!A_(c,o,e,!n))&&i.push(o)}return i}function GWe(e){let t=EY(e,WWe);return t<0?xw(e)?Vy(ti(e)):e:e.substring(0,e.lastIndexOf(Ro,t))}function F8(e,t){return t||j8(e)||3}function j8(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var L8=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],EG=ad(L8),JWe=[...L8,[".json"]],UWe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],VWe=[[".js",".jsx"],[".mjs"],[".cjs"]],aI=ad(VWe),NG=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],qWe=[...NG,[".json"]],W8=[".d.ts",".d.cts",".d.mts"],U6=[".ts",".cts",".mts",".tsx"],B8=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"];function TA(e,t){let n=e&&xb(e);if(!t||t.length===0)return n?NG:L8;let i=n?NG:L8,s=ad(i);return[...i,...Ji(t,c=>c.scriptKind===7||n&&$We(c.scriptKind)&&!s.includes(c.extension)?[c.extension]:void 0)]}function V6(e,t){return!e||!ES(e)?t:t===NG?qWe:t===L8?JWe:[...t,[".json"]]}function $We(e){return e===1||e===2}function gh(e){return _t(aI,t=>uc(e,t))}function pk(e){return _t(EG,t=>uc(e,t))}function mne(e){return _t(U6,t=>uc(e,t))&&!Kl(e)}var gne=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(gne||{});function HWe({imports:e},t=vf(gh,pk)){return fo(e,({text:n})=>$f(n)&&!Bc(n,B8)?t(n):void 0)||!1}function hne(e,t,n,i){let s=Ku(n),o=3<=s&&s<=99;if(e==="js"||t===99&&o)return OI(n)&&c()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!OI(n))return i&&HWe(i)?2:0;return c();function c(){let p=!1,u=i?.imports.length?i.imports:i&&Cp(i)?QWe(i).map(g=>g.arguments[0]):Ke;for(let g of u)if($f(g.text)){if(o&&t===1&&gV(i,g,n)===99||Bc(g.text,B8))continue;if(pk(g.text))return 3;gh(g.text)&&(p=!0)}return p?2:0}}function QWe(e){let t=0,n;for(let i of e.statements){if(t>3)break;o6(i)?n=Qi(n,i.declarationList.declarations.map(s=>s.initializer)):Ql(i)&&Vp(i.expression,!0)?n=Fr(n,i.expression):t++}return n||Ke}function MG(e,t,n){if(!e)return!1;let i=TA(t,n);for(let s of ad(V6(t,i)))if(uc(e,s))return!0;return!1}function u0e(e){let t=e.match(/\//g);return t?t.length:0}function q6(e,t){return Po(u0e(e),u0e(t))}var yne=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function dp(e){for(let t of yne){let n=vne(e,t);if(n!==void 0)return n}return e}function vne(e,t){return uc(e,t)?$6(e,t):void 0}function $6(e,t){return e.substring(0,e.length-t.length)}function tv(e,t){return hM(e,t,yne,!1)}function P2(e){let t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}var p0e=new WeakMap;function H6(e){let t=p0e.get(e);if(t!==void 0)return t;let n,i,s=Nm(e);for(let o of s){let c=P2(o);c!==void 0&&(typeof c=="string"?(n??(n=new Set)).add(c):(i??(i=[])).push(c))}return p0e.set(e,t={matchableStringSet:n,patterns:i}),t}function am(e){return!(e>=0)}function z8(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||Zi(e,".d.")&&Bo(e,".ts")}function kA(e){return z8(e)||e===".json"}function xA(e){let t=hh(e);return t!==void 0?t:w.fail(`File ${e} has unknown extension.`)}function f0e(e){return hh(e)!==void 0}function hh(e){return Bn(yne,t=>uc(e,t))}function CA(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}var RG={files:Ke,directories:Ke};function OG(e,t){let{matchableStringSet:n,patterns:i}=e;if(n?.has(t))return t;if(!(i===void 0||i.length===0))return UW(i,s=>s,t)}function FG(e,t){let n=e.indexOf(t);return w.assert(n!==-1),e.slice(n)}function Xs(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),w.assert(e.relatedInformation!==Ke,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function bne(e,t){w.assert(e.length!==0);let n=t(e[0]),i=n;for(let s=1;s<e.length;s++){let o=t(e[s]);o<n?n=o:o>i&&(i=o)}return{min:n,max:i}}function jG(e){return{pos:mb(e),end:e.end}}function LG(e,t){let n=t.pos-1,i=Math.min(e.text.length,ha(e.text,t.end)+1);return{pos:n,end:i}}function oI(e,t,n){return _0e(e,t,n,!1)}function Sne(e,t,n){return _0e(e,t,n,!0)}function _0e(e,t,n,i){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||!i&&t.noCheck||n.isSourceOfProjectReferenceRedirect(e.fileName)||!wA(e,t)}function wA(e,t){if(e.checkJsDirective&&e.checkJsDirective.enabled===!1)return!1;if(e.scriptKind===3||e.scriptKind===4||e.scriptKind===5)return!0;let i=(e.scriptKind===1||e.scriptKind===2)&&CA(e,t);return GP(e,t.checkJs)||i||e.scriptKind===7}function G8(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&LY(e,t,G8)}function IA(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let g=e.length-1,d=0;for(;e.charCodeAt(d)===48;)d++;return e.slice(d,g)||"0"}let n=2,i=e.length-1,s=(i-n)*t,o=new Uint16Array((s>>>4)+(s&15?1:0));for(let g=i-1,d=0;g>=n;g--,d+=t){let h=d>>>4,S=e.charCodeAt(g),x=(S<=57?S-48:10+S-(S<=70?65:97))<<(d&15);o[h]|=x;let I=x>>>16;I&&(o[h+1]|=I)}let c="",p=o.length-1,u=!0;for(;u;){let g=0;u=!1;for(let d=p;d>=0;d--){let h=g<<16|o[d],S=h/10|0;o[d]=S,g=h-S*10,S&&!u&&(p=d,u=!0)}c=g+c}return c}function MS({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Tne(e){if(J8(e,!1))return WG(e)}function WG(e){let t=e.startsWith("-"),n=IA(`${t?e.slice(1):e}n`);return{negative:t,base10Value:n}}function J8(e,t){if(e==="")return!1;let n=ih(99,!1),i=!0;n.setOnError(()=>i=!1),n.setText(e+"n");let s=n.scan(),o=s===41;o&&(s=n.scan());let c=n.getTokenFlags();return i&&s===10&&n.getTokenEnd()===e.length+1&&!(c&512)&&(!t||e===MS({negative:o,base10Value:IA(n.getTokenValue())}))}function B0(e){return!!(e.flags&33554432)||KP(e)||VF(e)||YWe(e)||XWe(e)||!(wg(e)||KWe(e))}function KWe(e){return Be(e)&&Fu(e.parent)&&e.parent.name===e}function XWe(e){for(;e.kind===80||e.kind===212;)e=e.parent;if(e.kind!==168)return!1;if(ri(e.parent,64))return!0;let t=e.parent.parent.kind;return t===265||t===188}function YWe(e){if(e.kind!==80)return!1;let t=vr(e.parent,n=>{switch(n.kind){case 299:return!0;case 212:case 234:return!1;default:return"quit"}});return t?.token===119||t?.parent.kind===265}function kne(e){return Pf(e)&&Be(e.typeName)}function xne(e,t=eb){if(e.length<2)return!0;let n=e[0];for(let i=1,s=e.length;i<s;i++){let o=e[i];if(!t(n,o))return!1}return!0}function DA(e,t){return e.pos=t,e}function cI(e,t){return e.end=t,e}function om(e,t,n){return cI(DA(e,t),n)}function BG(e,t,n){return om(e,t,t+n)}function Cne(e,t){return e&&(e.flags=t),e}function Ka(e,t){return e&&t&&(e.parent=t),e}function z0(e,t){if(!e)return e;return K2(e,Rw(e)?n:s),e;function n(o,c){if(t&&o.parent===c)return"skip";Ka(o,c)}function i(o){if(Hf(o))for(let c of o.jsDoc)n(c,o),K2(c,n)}function s(o,c){return n(o,c)||i(o)}}function ZWe(e){return!Fl(e)}function zG(e){return Tu(e)&&Fi(e.elements,ZWe)}function wne(e){for(w.assertIsDefined(e.parent);;){let t=e.parent;if(Pp(t)){e=t;continue}if(Ql(t)||U2(t)||$0(t)&&(t.initializer===e||t.incrementor===e))return!0;if(JA(t)){if(e!==ka(t.elements))return!0;e=t;continue}if(vn(t)&&t.operatorToken.kind===28){if(e===t.left)return!0;e=t;continue}return!1}}function PA(e){return _t(UO,t=>e.includes(t))}function Ine(e){if(!e.parent)return;switch(e.kind){case 169:let{parent:n}=e;return n.kind===196?void 0:n.typeParameters;case 170:return e.parent.parameters;case 205:return e.parent.templateSpans;case 240:return e.parent.templateSpans;case 171:{let{parent:i}=e;return US(i)?i.modifiers:void 0}case 299:return e.parent.heritageClauses}let{parent:t}=e;if(Ow(e))return xk(e.parent)?void 0:e.parent.tags;switch(t.kind){case 188:case 265:return dS(e)?t.members:void 0;case 193:case 194:return t.types;case 190:case 210:case 357:case 276:case 280:return t.elements;case 211:case 293:return t.properties;case 214:case 215:return yi(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 285:case 289:return zM(e)?t.children:void 0;case 287:case 286:return yi(e)?t.typeArguments:void 0;case 242:case 297:case 298:case 269:return t.statements;case 270:return t.clauses;case 264:case 232:return cl(e)?t.members:void 0;case 267:return oy(e)?t.members:void 0;case 308:return t.statements}}function U8(e){if(!e.typeParameters){if(_t(e.parameters,t=>!ml(t)))return!0;if(e.kind!==220){let t=_l(e.parameters);if(!(t&&bb(t)))return!0}}return!1}function AA(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function Dne(e){return e.kind===261&&e.parent.kind===300}function Cb(e){return e.kind===219||e.kind===220}function RS(e){return e.replace(/\$/g,()=>"\\$")}function yh(e){return(+e).toString()===e}function Q6(e,t,n,i,s){let o=s&&e==="new";return!o&&af(e,t)?A.createIdentifier(e):!i&&!o&&yh(e)&&+e>=0?A.createNumericLiteral(+e):A.createStringLiteral(e,!!n)}function EA(e){return!!(e.flags&262144&&e.isThisType)}function V8(e){let t=0,n=0,i=0,s=0,o;(g=>{g[g.BeforeNodeModules=0]="BeforeNodeModules",g[g.NodeModules=1]="NodeModules",g[g.Scope=2]="Scope",g[g.PackageContent=3]="PackageContent"})(o||(o={}));let c=0,p=0,u=0;for(;p>=0;)switch(c=p,p=e.indexOf("/",c+1),u){case 0:e.indexOf(Th,c)===c&&(t=c,n=p,u=1);break;case 1:case 2:u===1&&e.charAt(c+1)==="@"?u=2:(i=p,u=3);break;case 3:e.indexOf(Th,c)===c?u=1:u=3;break}return s=c,u>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:n,packageRootIndex:i,fileNameIndex:s}:void 0}function A2(e){switch(e.kind){case 169:case 264:case 265:case 266:case 267:case 347:case 339:case 341:return!0;case 274:return e.phaseModifier===156;case 277:return e.parent.parent.phaseModifier===156;case 282:return e.parent.parent.isTypeOnly;default:return!1}}function K6(e){return H0(e)||Qc(e)||Gc(e)||hl(e)||uu(e)||A2(e)||el(e)&&!vS(e)&&!Cg(e)}function X6(e){if(!OP(e))return!1;let{isBracketed:t,typeExpression:n}=e;return t||!!n&&n.type.kind===317}function GG(e,t){if(e.length===0)return!1;let n=e.charCodeAt(0);return n===35?e.length>1&&Sg(e.charCodeAt(1),t):Sg(n,t)}function Pne(e){var t;return((t=aJ(e))==null?void 0:t.kind)===0}function q8(e){return dn(e)&&(e.type&&e.type.kind===317||Pw(e).some(X6))}function E2(e){switch(e.kind){case 173:case 172:return!!e.questionToken;case 170:return!!e.questionToken||q8(e);case 349:case 342:return X6(e);default:return!1}}function Ane(e){let t=e.kind;return(t===212||t===213)&&V2(e.expression)}function JG(e){return dn(e)&&Pp(e)&&Hf(e)&&!!FB(e)}function UG(e){return w.checkDefined($8(e))}function $8(e){let t=FB(e);return t&&t.typeExpression&&t.typeExpression.type}function NA(e){return Be(e)?e.escapedText:N2(e)}function Y6(e){return Be(e)?Fn(e):MA(e)}function Ene(e){let t=e.kind;return t===80||t===296}function N2(e){return`${e.namespace.escapedText}:${Fn(e.name)}`}function MA(e){return`${Fn(e.namespace)}:${Fn(e.name)}`}function VG(e){return Be(e)?Fn(e):MA(e)}function L_(e){return!!(e.flags&8576)}function W_(e){return e.flags&8192?e.escapedName:e.flags&384?gc(""+e.value):w.fail()}function M2(e){return!!e&&(Ln(e)||xo(e)||vn(e))}function Nne(e){return e===void 0?!1:!!LI(e.attributes)}var eBe=String.prototype.replace;function fk(e,t){return eBe.call(e,"*",t)}function H8(e){return Be(e.name)?e.name.escapedText:gc(e.name.text)}function Mne(e){switch(e.kind){case 169:case 170:case 173:case 172:case 186:case 185:case 180:case 181:case 182:case 175:case 174:case 176:case 177:case 178:case 179:case 184:case 183:case 187:case 188:case 189:case 190:case 193:case 194:case 197:case 191:case 192:case 198:case 199:case 195:case 196:case 204:case 206:case 203:case 329:case 330:case 347:case 339:case 341:case 346:case 345:case 325:case 326:case 327:case 342:case 349:case 318:case 316:case 315:case 313:case 314:case 323:case 319:case 310:case 334:case 336:case 335:case 351:case 344:case 200:case 201:case 263:case 242:case 269:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 259:case 261:case 209:case 264:case 265:case 266:case 267:case 268:case 273:case 272:case 279:case 278:case 243:case 260:case 283:return!0}return!1}function Ol(e,t=!1,n=!1,i=!1){return{value:e,isSyntacticallyString:t,resolvedOtherFiles:n,hasExternalReferences:i}}function Rne({evaluateElementAccessExpression:e,evaluateEntityNameExpression:t}){function n(s,o){let c=!1,p=!1,u=!1;switch(s=Qa(s),s.kind){case 225:let g=n(s.operand,o);if(p=g.resolvedOtherFiles,u=g.hasExternalReferences,typeof g.value=="number")switch(s.operator){case 40:return Ol(g.value,c,p,u);case 41:return Ol(-g.value,c,p,u);case 55:return Ol(~g.value,c,p,u)}break;case 227:{let d=n(s.left,o),h=n(s.right,o);if(c=(d.isSyntacticallyString||h.isSyntacticallyString)&&s.operatorToken.kind===40,p=d.resolvedOtherFiles||h.resolvedOtherFiles,u=d.hasExternalReferences||h.hasExternalReferences,typeof d.value=="number"&&typeof h.value=="number")switch(s.operatorToken.kind){case 52:return Ol(d.value|h.value,c,p,u);case 51:return Ol(d.value&h.value,c,p,u);case 49:return Ol(d.value>>h.value,c,p,u);case 50:return Ol(d.value>>>h.value,c,p,u);case 48:return Ol(d.value<<h.value,c,p,u);case 53:return Ol(d.value^h.value,c,p,u);case 42:return Ol(d.value*h.value,c,p,u);case 44:return Ol(d.value/h.value,c,p,u);case 40:return Ol(d.value+h.value,c,p,u);case 41:return Ol(d.value-h.value,c,p,u);case 45:return Ol(d.value%h.value,c,p,u);case 43:return Ol(d.value**h.value,c,p,u)}else if((typeof d.value=="string"||typeof d.value=="number")&&(typeof h.value=="string"||typeof h.value=="number")&&s.operatorToken.kind===40)return Ol(""+d.value+h.value,c,p,u);break}case 11:case 15:return Ol(s.text,!0);case 229:return i(s,o);case 9:return Ol(+s.text);case 80:return t(s,o);case 212:if(mo(s))return t(s,o);break;case 213:return e(s,o)}return Ol(void 0,c,p,u)}function i(s,o){let c=s.head.text,p=!1,u=!1;for(let g of s.templateSpans){let d=n(g.expression,o);if(d.value===void 0)return Ol(void 0,!0);c+=d.value,c+=g.literal.text,p||(p=d.resolvedOtherFiles),u||(u=d.hasExternalReferences)}return Ol(c,!0,p,u)}return n}function qG(e){return gS(e)&&Nd(e.type)||HA(e)&&Nd(e.typeExpression)}function Z6(e){let t=e.members;for(let n of t)if(n.kind===177&&ud(n.body))return n}function $G({compilerOptions:e,requireSymbol:t,argumentsSymbol:n,error:i,getSymbolOfDeclaration:s,globals:o,lookup:c,setRequiresScopeChangeCache:p=lS,getRequiresScopeChangeCache:u=lS,onPropertyWithInvalidInitializer:g=$h,onFailedToResolveSymbol:d=lS,onSuccessfullyResolvedSymbol:h=lS}){var S=e.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",T=xG(e),x=Qs();return I;function I(W,z,$,X,U,_e){var re,V,ce;let oe=W,le,de,ve,H,Se,Je=!1,ye,ee=Is(z)?z:z.escapedText;e:for(;W;){if(ee==="const"&&qG(W))return;if(WM(W)&&de&&W.name===de&&(de=W,W=W.parent),Tg(W)&&W.locals&&!Qy(W)&&(le=c(W.locals,ee,$))){let ge=!0;if(Fs(W)&&de&&de!==W.body?($&le.flags&788968&&de.kind!==321&&(ge=le.flags&262144?!!(de.flags&16)||de===W.type||de.kind===170||de.kind===342||de.kind===343||de.kind===169:!1),$&le.flags&3&&(P(le,W,de)?ge=!1:le.flags&1&&(ge=de.kind===170||!!(de.flags&16)||de===W.type&&!!vr(le.valueDeclaration,Gi)))):W.kind===195&&(ge=de===W.trueType),ge)break e;le=void 0}switch(Je=Je||E(W,de),W.kind){case 308:if(!xf(W))break;case 268:let ge=((re=s(W))==null?void 0:re.exports)||x;if(W.kind===308||el(W)&&W.flags&33554432&&!Cg(W)){if(le=ge.get("default")){let nt=dA(le);if(nt&&le.flags&$&&nt.escapedName===ee)break e;le=void 0}let Oe=ge.get(ee);if(Oe&&Oe.flags===2097152&&($o(Oe,282)||$o(Oe,281)))break}if(ee!=="default"&&(le=c(ge,ee,$&2623475)))if(Li(W)&&W.commonJsModuleIndicator&&!((V=le.declarations)!=null&&V.some(fd)))le=void 0;else break e;break;case 267:if(le=c(((ce=s(W))==null?void 0:ce.exports)||x,ee,$&8)){X&&md(e)&&!(W.flags&33554432)&&Nr(W)!==Nr(le.valueDeclaration)&&i(oe,_.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Ai(ee),S,`${Ai(s(W).escapedName)}.${Ai(ee)}`);break e}break;case 173:if(!Ks(W)){let Oe=Z6(W.parent);Oe&&Oe.locals&&c(Oe.locals,ee,$&111551)&&(w.assertNode(W,hs),H=W)}break;case 264:case 232:case 265:if(le=c(s(W).members||x,ee,$&788968)){if(!O(le,W)){le=void 0;break}if(de&&Ks(de)){X&&i(oe,_.Static_members_cannot_reference_class_type_parameters);return}break e}if(Zc(W)&&$&32){let Oe=W.name;if(Oe&&ee===Oe.escapedText){le=W.symbol;break e}}break;case 234:if(de===W.expression&&W.parent.token===96){let Oe=W.parent.parent;if(ni(Oe)&&(le=c(s(Oe).members,ee,$&788968))){X&&i(oe,_.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 168:if(ye=W.parent.parent,(ni(ye)||ye.kind===265)&&(le=c(s(ye).members,ee,$&788968))){X&&i(oe,_.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 220:if(xa(e)>=2)break;case 175:case 177:case 178:case 179:case 263:if($&3&&ee==="arguments"){le=n;break e}break;case 219:if($&3&&ee==="arguments"){le=n;break e}if($&16){let Oe=W.name;if(Oe&&ee===Oe.escapedText){le=W.symbol;break e}}break;case 171:W.parent&&W.parent.kind===170&&(W=W.parent),W.parent&&(cl(W.parent)||W.parent.kind===264)&&(W=W.parent);break;case 347:case 339:case 341:case 352:let ke=Hw(W);ke&&(W=ke.parent);break;case 170:de&&(de===W.initializer||de===W.name&&Ls(de))&&(Se||(Se=W));break;case 209:de&&(de===W.initializer||de===W.name&&Ls(de))&&L0(W)&&!Se&&(Se=W);break;case 196:if($&262144){let Oe=W.typeParameter.name;if(Oe&&ee===Oe.escapedText){le=W.typeParameter.symbol;break e}}break;case 282:de&&de===W.propertyName&&W.parent.parent.moduleSpecifier&&(W=W.parent.parent.parent);break}F(W,de)&&(ve=W),de=W,W=hd(W)?YF(W)||W.parent:(c_(W)||y7(W))&&O0(W)||W.parent}if(U&&le&&(!ve||le!==ve.symbol)&&(le.isReferenced|=$),!le){if(de&&(w.assertNode(de,Li),de.commonJsModuleIndicator&&ee==="exports"&&$&de.symbol.flags))return de.symbol;_e||(le=c(o,ee,$))}if(!le&&oe&&dn(oe)&&oe.parent&&Vp(oe.parent,!1))return t;if(X){if(H&&g(oe,ee,H,le))return;le?h(oe,le,$,de,Se,Je):d(oe,z,$,X)}return le}function P(W,z,$){let X=xa(e),U=z;if(Gi($)&&U.body&&W.valueDeclaration&&W.valueDeclaration.pos>=U.body.pos&&W.valueDeclaration.end<=U.body.end&&X>=2){let V=u(U);return V===void 0&&(V=or(U.parameters,_e)||!1,p(U,V)),!V}return!1;function _e(V){return re(V.name)||!!V.initializer&&re(V.initializer)}function re(V){switch(V.kind){case 220:case 219:case 263:case 177:return!1;case 175:case 178:case 179:case 304:return re(V.name);case 173:return Cl(V)?!T:re(V.name);default:return LB(V)||$u(V)?X<7:Da(V)&&V.dotDotDotToken&&o_(V.parent)?X<4:yi(V)?!1:Ms(V,re)||!1}}}function E(W,z){return W.kind!==220&&W.kind!==219?FS(W)||(yo(W)||W.kind===173&&!Ks(W))&&(!z||z!==W.name):z&&z===W.name?!1:W.asteriskToken||ri(W,1024)?!0:!N0(W)}function F(W,z){switch(W.kind){case 170:return!!z&&z===W.name;case 263:case 264:case 265:case 267:case 266:case 268:return!0;default:return!1}}function O(W,z){if(W.declarations){for(let $ of W.declarations)if($.kind===169&&(hd($.parent)?kS($.parent):$.parent)===z)return!(hd($.parent)&&Bn($.parent.parent.tags,fd))}return!1}}function Q8(e,t=!0){switch(w.type(e),e.kind){case 112:case 97:case 9:case 11:case 15:return!0;case 10:return t;case 225:return e.operator===41?Hp(e.operand)||t&&pI(e.operand):e.operator===40?Hp(e.operand):!1;default:return!1}}function One(e){for(;e.kind===218;)e=e.expression;return e}function K8(e){switch(w.type(e),e.kind){case 170:case 172:case 173:case 209:case 212:case 213:case 227:case 261:case 278:case 304:case 305:case 342:case 349:return!0;default:return!1}}function HG(e){let t=vr(e,ac);return!!t&&!t.importClause}var Fne=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],jne=new Set(Fne),X8=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),lI=new Set([...Fne,...Fne.map(e=>`node:${e}`),...X8]);function Y8(e,t,n,i){let s=dn(e),o=/import|require/g;for(;o.exec(e.text)!==null;){let c=tBe(e,o.lastIndex,t);if(s&&Vp(c,n))i(c,c.arguments[0]);else if(Up(c)&&c.arguments.length>=1&&(!n||Ha(c.arguments[0])))i(c,c.arguments[0]);else if(t&&Yh(c))i(c,c.argument.literal);else if(t&&Zm(c)){let p=d2(c);p&&ya(p)&&p.text&&i(c,p)}}}function tBe(e,t,n){let i=dn(e),s=e,o=c=>{if(c.pos<=t&&(t<c.end||t===c.end&&c.kind===1))return c};for(;;){let c=i&&n&&Hf(s)&&or(s.jsDoc,o)||Ms(s,o);if(!c||bk(c))return s;s=c}}function Lne(e){return Fs(e)||cv(e)||yk(e)}function QG(e){return Zv(e.fileName)}function KG(e){let t=QG(e);return $J.get(t)}function XG(e,t){return RA(void 0,e,n=>n&&t(n))}function RA(e,t,n,i){let s;return o(e,t,void 0);function o(c,p,u){if(i){let d=i(c,u);if(d)return d}let g;return or(p,(d,h)=>{if(d&&s?.has(d.sourceFile.path)){(g??(g=new Set)).add(d);return}let S=n(d,u,h);if(S||!d)return S;(s||(s=new Set)).add(d.sourceFile.path)})||or(p,d=>d&&!g?.has(d)?o(d.commandLine.projectReferences,d.references,d):void 0)}}function YG(e,t,n){return e&&rBe(e,t,n)}function rBe(e,t,n){return Gw(e,t,i=>Tu(i.initializer)?Bn(i.initializer.elements,s=>ya(s)&&s.text===n):void 0)}function Wne(e,t,n){return ZG(e,t,i=>ya(i.initializer)&&i.initializer.text===n?i.initializer:void 0)}function ZG(e,t,n){return Gw(e,t,n)}function to(e,t=!0){let n=e&&d0e(e);return n&&!t&&Df(n),z0(n,!1)}function e4(e,t,n){let i=n(e);return i?Rn(i,e):i=d0e(e,n),i&&!t&&Df(i),i}function d0e(e,t){let n=t?o=>e4(o,!0,t):to,s=Pr(e,n,void 0,t?o=>o&&eJ(o,!0,t):o=>o&&OS(o),n);if(s===e){let o=ya(e)?Rn(A.createStringLiteralFromNode(e),e):Hp(e)?Rn(A.createNumericLiteral(e.text,e.numericLiteralFlags),e):A.cloneNode(e);return mt(o,e)}return s.parent=void 0,s}function OS(e,t=!0){if(e){let n=A.createNodeArray(e.map(i=>to(i,t)),e.hasTrailingComma);return mt(n,e),n}return e}function eJ(e,t,n){return A.createNodeArray(e.map(i=>e4(i,t,n)),e.hasTrailingComma)}function Df(e){tJ(e),Bne(e)}function tJ(e){zne(e,1024,nBe)}function Bne(e){zne(e,2048,hG)}function zne(e,t,n){qm(e,t);let i=n(e);i&&zne(i,t,n)}function nBe(e){return Ms(e,t=>t)}function Gne(){let e,t,n,i,s;return{createBaseSourceFileNode:o,createBaseIdentifierNode:c,createBasePrivateIdentifierNode:p,createBaseTokenNode:u,createBaseNode:g};function o(d){return new(s||(s=bu.getSourceFileConstructor()))(d,-1,-1)}function c(d){return new(n||(n=bu.getIdentifierConstructor()))(d,-1,-1)}function p(d){return new(i||(i=bu.getPrivateIdentifierConstructor()))(d,-1,-1)}function u(d){return new(t||(t=bu.getTokenConstructor()))(d,-1,-1)}function g(d){return new(e||(e=bu.getNodeConstructor()))(d,-1,-1)}}function Jne(e){let t,n;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:s,parenthesizeLeftSideOfBinary:d,parenthesizeRightSideOfBinary:h,parenthesizeExpressionOfComputedPropertyName:S,parenthesizeConditionOfConditionalExpression:T,parenthesizeBranchOfConditionalExpression:x,parenthesizeExpressionOfExportDefault:I,parenthesizeExpressionOfNew:P,parenthesizeLeftSideOfAccess:E,parenthesizeOperandOfPostfixUnary:F,parenthesizeOperandOfPrefixUnary:O,parenthesizeExpressionsOfCommaDelimitedList:W,parenthesizeExpressionForDisallowedComma:z,parenthesizeExpressionOfExpressionStatement:$,parenthesizeConciseBodyOfArrowFunction:X,parenthesizeCheckTypeOfConditionalType:U,parenthesizeExtendsTypeOfConditionalType:_e,parenthesizeConstituentTypesOfUnionType:V,parenthesizeConstituentTypeOfUnionType:re,parenthesizeConstituentTypesOfIntersectionType:oe,parenthesizeConstituentTypeOfIntersectionType:ce,parenthesizeOperandOfTypeOperator:le,parenthesizeOperandOfReadonlyTypeOperator:de,parenthesizeNonArrayTypeOfPostfixType:ve,parenthesizeElementTypesOfTupleType:H,parenthesizeElementTypeOfTupleType:Se,parenthesizeTypeOfOptionalType:ye,parenthesizeTypeArguments:ke,parenthesizeLeadingTypeArgument:ee};function i(Oe){t||(t=new Map);let nt=t.get(Oe);return nt||(nt=ae=>d(Oe,ae),t.set(Oe,nt)),nt}function s(Oe){n||(n=new Map);let nt=n.get(Oe);return nt||(nt=ae=>h(Oe,void 0,ae),n.set(Oe,nt)),nt}function o(Oe,nt){return Oe===61?nt===56||nt===57:nt===61?Oe===56||Oe===57:!1}function c(Oe,nt,ae,Ue){let te=Md(nt);if(vn(te)&&o(Oe,te.operatorToken.kind))return!0;let Ne=x6(227,Oe),Ie=Uz(227,Oe);if(!ae&&nt.kind===220&&Ne>3)return!0;let xe=cA(te);switch(Po(xe,Ne)){case-1:return!(!ae&&Ie===1&&nt.kind===230);case 1:return!1;case 0:if(ae)return Ie===1;if(vn(te)&&te.operatorToken.kind===Oe){if(p(Oe))return!1;if(Oe===40){let St=Ue?u(Ue):0;if(FP(St)&&St===u(te))return!1}}return Jz(te)===0}}function p(Oe){return Oe===42||Oe===52||Oe===51||Oe===53||Oe===28}function u(Oe){if(Oe=Md(Oe),FP(Oe.kind))return Oe.kind;if(Oe.kind===227&&Oe.operatorToken.kind===40){if(Oe.cachedLiteralKind!==void 0)return Oe.cachedLiteralKind;let nt=u(Oe.left),ae=FP(nt)&&nt===u(Oe.right)?nt:0;return Oe.cachedLiteralKind=ae,ae}return 0}function g(Oe,nt,ae,Ue){return Md(nt).kind===218?nt:c(Oe,nt,ae,Ue)?e.createParenthesizedExpression(nt):nt}function d(Oe,nt){return g(Oe,nt,!0)}function h(Oe,nt,ae){return g(Oe,ae,!1,nt)}function S(Oe){return KA(Oe)?e.createParenthesizedExpression(Oe):Oe}function T(Oe){let nt=x6(228,58),ae=Md(Oe),Ue=cA(ae);return Po(Ue,nt)!==1?e.createParenthesizedExpression(Oe):Oe}function x(Oe){let nt=Md(Oe);return KA(nt)?e.createParenthesizedExpression(Oe):Oe}function I(Oe){let nt=Md(Oe),ae=KA(nt);if(!ae)switch(iI(nt,!1).kind){case 232:case 219:ae=!0}return ae?e.createParenthesizedExpression(Oe):Oe}function P(Oe){let nt=iI(Oe,!0);switch(nt.kind){case 214:return e.createParenthesizedExpression(Oe);case 215:return nt.arguments?Oe:e.createParenthesizedExpression(Oe)}return E(Oe)}function E(Oe,nt){let ae=Md(Oe);return Jp(ae)&&(ae.kind!==215||ae.arguments)&&(nt||!$u(ae))?Oe:mt(e.createParenthesizedExpression(Oe),Oe)}function F(Oe){return Jp(Oe)?Oe:mt(e.createParenthesizedExpression(Oe),Oe)}function O(Oe){return HB(Oe)?Oe:mt(e.createParenthesizedExpression(Oe),Oe)}function W(Oe){let nt=fl(Oe,z);return mt(e.createNodeArray(nt,Oe.hasTrailingComma),Oe)}function z(Oe){let nt=Md(Oe),ae=cA(nt),Ue=x6(227,28);return ae>Ue?Oe:mt(e.createParenthesizedExpression(Oe),Oe)}function $(Oe){let nt=Md(Oe);if(Ws(nt)){let Ue=nt.expression,te=Md(Ue).kind;if(te===219||te===220){let Ne=e.updateCallExpression(nt,mt(e.createParenthesizedExpression(Ue),Ue),nt.typeArguments,nt.arguments);return e.restoreOuterExpressions(Oe,Ne,8)}}let ae=iI(nt,!1).kind;return ae===211||ae===219?mt(e.createParenthesizedExpression(Oe),Oe):Oe}function X(Oe){return!Bs(Oe)&&(KA(Oe)||iI(Oe,!1).kind===211)?mt(e.createParenthesizedExpression(Oe),Oe):Oe}function U(Oe){switch(Oe.kind){case 185:case 186:case 195:return e.createParenthesizedType(Oe)}return Oe}function _e(Oe){return Oe.kind===195?e.createParenthesizedType(Oe):Oe}function re(Oe){switch(Oe.kind){case 193:case 194:return e.createParenthesizedType(Oe)}return U(Oe)}function V(Oe){return e.createNodeArray(fl(Oe,re))}function ce(Oe){switch(Oe.kind){case 193:case 194:return e.createParenthesizedType(Oe)}return re(Oe)}function oe(Oe){return e.createNodeArray(fl(Oe,ce))}function le(Oe){return Oe.kind===194?e.createParenthesizedType(Oe):ce(Oe)}function de(Oe){return Oe.kind===199?e.createParenthesizedType(Oe):le(Oe)}function ve(Oe){switch(Oe.kind){case 196:case 199:case 187:return e.createParenthesizedType(Oe)}return le(Oe)}function H(Oe){return e.createNodeArray(fl(Oe,Se))}function Se(Oe){return Je(Oe)?e.createParenthesizedType(Oe):Oe}function Je(Oe){return bI(Oe)?Oe.postfix:_I(Oe)||Pg(Oe)||fI(Oe)||J0(Oe)?Je(Oe.type):jS(Oe)?Je(Oe.falseType):sv(Oe)||J2(Oe)?Je(ka(Oe.types)):gk(Oe)?!!Oe.typeParameter.constraint&&Je(Oe.typeParameter.constraint):!1}function ye(Oe){return Je(Oe)?e.createParenthesizedType(Oe):ve(Oe)}function ee(Oe){return nte(Oe)&&Oe.typeParameters?e.createParenthesizedType(Oe):Oe}function ge(Oe,nt){return nt===0?ee(Oe):Oe}function ke(Oe){if(_t(Oe))return e.createNodeArray(fl(Oe,ge))}}var Une={getParenthesizeLeftSideOfBinaryForOperator:e=>Do,getParenthesizeRightSideOfBinaryForOperator:e=>Do,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:Do,parenthesizeConditionOfConditionalExpression:Do,parenthesizeBranchOfConditionalExpression:Do,parenthesizeExpressionOfExportDefault:Do,parenthesizeExpressionOfNew:e=>Zs(e,Jp),parenthesizeLeftSideOfAccess:e=>Zs(e,Jp),parenthesizeOperandOfPostfixUnary:e=>Zs(e,Jp),parenthesizeOperandOfPrefixUnary:e=>Zs(e,HB),parenthesizeExpressionsOfCommaDelimitedList:e=>Zs(e,_S),parenthesizeExpressionForDisallowedComma:Do,parenthesizeExpressionOfExpressionStatement:Do,parenthesizeConciseBodyOfArrowFunction:Do,parenthesizeCheckTypeOfConditionalType:Do,parenthesizeExtendsTypeOfConditionalType:Do,parenthesizeConstituentTypesOfUnionType:e=>Zs(e,_S),parenthesizeConstituentTypeOfUnionType:Do,parenthesizeConstituentTypesOfIntersectionType:e=>Zs(e,_S),parenthesizeConstituentTypeOfIntersectionType:Do,parenthesizeOperandOfTypeOperator:Do,parenthesizeOperandOfReadonlyTypeOperator:Do,parenthesizeNonArrayTypeOfPostfixType:Do,parenthesizeElementTypesOfTupleType:e=>Zs(e,_S),parenthesizeElementTypeOfTupleType:Do,parenthesizeTypeOfOptionalType:Do,parenthesizeTypeArguments:e=>e&&Zs(e,_S),parenthesizeLeadingTypeArgument:Do};function Vne(e){return{convertToFunctionBlock:t,convertToFunctionExpression:n,convertToClassExpression:i,convertToArrayAssignmentElement:s,convertToObjectAssignmentElement:o,convertToAssignmentPattern:c,convertToObjectAssignmentPattern:p,convertToArrayAssignmentPattern:u,convertToAssignmentElementTarget:g};function t(d,h){if(Bs(d))return d;let S=e.createReturnStatement(d);mt(S,d);let T=e.createBlock([S],h);return mt(T,d),T}function n(d){var h;if(!d.body)return w.fail("Cannot convert a FunctionDeclaration without a body");let S=e.createFunctionExpression((h=fS(d))==null?void 0:h.filter(T=>!L2(T)&&!c7(T)),d.asteriskToken,d.name,d.typeParameters,d.parameters,d.type,d.body);return Rn(S,d),mt(S,d),OA(d)&&t7(S,!0),S}function i(d){var h;let S=e.createClassExpression((h=d.modifiers)==null?void 0:h.filter(T=>!L2(T)&&!c7(T)),d.name,d.typeParameters,d.heritageClauses,d.members);return Rn(S,d),mt(S,d),OA(d)&&t7(S,!0),S}function s(d){if(Da(d)){if(d.dotDotDotToken)return w.assertNode(d.name,Be),Rn(mt(e.createSpreadElement(d.name),d),d);let h=g(d.name);return d.initializer?Rn(mt(e.createAssignment(h,d.initializer),d),d):h}return Zs(d,ht)}function o(d){if(Da(d)){if(d.dotDotDotToken)return w.assertNode(d.name,Be),Rn(mt(e.createSpreadAssignment(d.name),d),d);if(d.propertyName){let h=g(d.name);return Rn(mt(e.createPropertyAssignment(d.propertyName,d.initializer?e.createAssignment(h,d.initializer):h),d),d)}return w.assertNode(d.name,Be),Rn(mt(e.createShorthandPropertyAssignment(d.name,d.initializer),d),d)}return Zs(d,Xh)}function c(d){switch(d.kind){case 208:case 210:return u(d);case 207:case 211:return p(d)}}function p(d){return o_(d)?Rn(mt(e.createObjectLiteralExpression(kr(d.elements,o)),d),d):Zs(d,Sa)}function u(d){return ov(d)?Rn(mt(e.createArrayLiteralExpression(kr(d.elements,s)),d),d):Zs(d,Tu)}function g(d){return Ls(d)?c(d):Zs(d,ht)}}var qne={convertToFunctionBlock:ea,convertToFunctionExpression:ea,convertToClassExpression:ea,convertToArrayAssignmentElement:ea,convertToObjectAssignmentElement:ea,convertToAssignmentPattern:ea,convertToObjectAssignmentPattern:ea,convertToArrayAssignmentPattern:ea,convertToAssignmentElementTarget:ea},rJ=0,$ne=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))($ne||{}),m0e=[];function g0e(e){m0e.push(e)}function t4(e,t){let n=e&8?Do:Rn,i=up(()=>e&1?Une:Jne(E)),s=up(()=>e&2?qne:Vne(E)),o=Mm(v=>(D,B)=>Qr(D,v,B)),c=Mm(v=>D=>ot(v,D)),p=Mm(v=>D=>er(D,v)),u=Mm(v=>()=>Ts(v)),g=Mm(v=>D=>Zk(v,D)),d=Mm(v=>(D,B)=>bn(v,D,B)),h=Mm(v=>(D,B)=>ff(v,D,B)),S=Mm(v=>(D,B)=>Hb(v,D,B)),T=Mm(v=>(D,B)=>E1(v,D,B)),x=Mm(v=>(D,B,ue)=>wy(v,D,B,ue)),I=Mm(v=>(D,B,ue)=>TD(v,D,B,ue)),P=Mm(v=>(D,B,ue,Xe)=>N1(v,D,B,ue,Xe)),E={get parenthesizer(){return i()},get converters(){return s()},baseFactory:t,flags:e,createNodeArray:F,createNumericLiteral:$,createBigIntLiteral:X,createStringLiteral:_e,createStringLiteralFromNode:re,createRegularExpressionLiteral:V,createLiteralLikeNode:ce,createIdentifier:de,createTempVariable:ve,createLoopVariable:H,createUniqueName:Se,getGeneratedNameForNode:Je,createPrivateIdentifier:ee,createUniquePrivateName:ke,getGeneratedPrivateNameForNode:Oe,createToken:ae,createSuper:Ue,createThis:te,createNull:Ne,createTrue:Ie,createFalse:xe,createModifier:Qe,createModifiersFromModifierFlags:St,createQualifiedName:Bt,updateQualifiedName:fr,createComputedPropertyName:Mr,updateComputedPropertyName:ft,createTypeParameterDeclaration:qt,updateTypeParameterDeclaration:Hr,createParameterDeclaration:bi,updateParameterDeclaration:us,createDecorator:At,updateDecorator:Un,createPropertySignature:rs,updatePropertySignature:zn,createPropertyDeclaration:_i,updatePropertyDeclaration:qe,createMethodSignature:bt,updateMethodSignature:ar,createMethodDeclaration:tn,updateMethodDeclaration:Xn,createConstructorDeclaration:wr,updateConstructorDeclaration:Ds,createGetAccessorDeclaration:Mt,updateGetAccessorDeclaration:se,createSetAccessorDeclaration:Z,updateSetAccessorDeclaration:Ee,createCallSignature:at,updateCallSignature:Pt,createConstructSignature:Le,updateConstructSignature:kt,createIndexSignature:Tt,updateIndexSignature:Rt,createClassStaticBlockDeclaration:Mi,updateClassStaticBlockDeclaration:js,createTemplateLiteralTypeSpan:Ye,updateTemplateLiteralTypeSpan:Gt,createKeywordTypeNode:ln,createTypePredicateNode:Ae,updateTypePredicateNode:wt,createTypeReferenceNode:fe,updateTypeReferenceNode:j,createFunctionTypeNode:je,updateFunctionTypeNode:q,createConstructorTypeNode:jt,updateConstructorTypeNode:Qt,createTypeQueryNode:Jr,updateTypeQueryNode:ct,createTypeLiteralNode:It,updateTypeLiteralNode:Ot,createArrayTypeNode:Ht,updateArrayTypeNode:hr,createTupleTypeNode:ur,updateTupleTypeNode:Nt,createNamedTupleMember:mr,updateNamedTupleMember:Tr,createOptionalTypeNode:Cr,updateOptionalTypeNode:rr,createRestTypeNode:di,updateRestTypeNode:Vs,createUnionTypeNode:Dc,updateUnionTypeNode:vc,createIntersectionTypeNode:vo,updateIntersectionTypeNode:Ki,createConditionalTypeNode:Cs,updateConditionalTypeNode:ll,createInferTypeNode:Lo,updateInferTypeNode:fa,createImportTypeNode:ys,updateImportTypeNode:Ys,createParenthesizedType:Ga,updateParenthesizedType:Fa,createThisTypeNode:$t,createTypeOperatorNode:uo,updateTypeOperatorNode:Mc,createIndexedAccessTypeNode:rl,updateIndexedAccessTypeNode:Yl,createMappedTypeNode:Ko,updateMappedTypeNode:Rc,createLiteralTypeNode:N,updateLiteralTypeNode:We,createTemplateLiteralType:Jc,updateTemplateLiteralType:d_,createObjectBindingPattern:dt,updateObjectBindingPattern:Ut,createArrayBindingPattern:Wr,updateArrayBindingPattern:Yn,createBindingElement:hn,updateBindingElement:Rr,createArrayLiteralExpression:Di,updateArrayLiteralExpression:Ri,createObjectLiteralExpression:so,updateObjectLiteralExpression:ua,createPropertyAccessExpression:e&4?(v,D)=>yn(ul(v,D),262144):ul,updatePropertyAccessExpression:Kc,createPropertyAccessChain:e&4?(v,D,B)=>yn(Eo(v,D,B),262144):Eo,updatePropertyAccessChain:Uc,createElementAccessExpression:Cu,updateElementAccessExpression:Kf,createElementAccessChain:Xp,updateElementAccessChain:Re,createCallExpression:Vr,updateCallExpression:ns,createCallChain:ja,updateCallChain:La,createNewExpression:Ca,updateNewExpression:bl,createTaggedTemplateExpression:zo,updateTaggedTemplateExpression:bc,createTypeAssertion:Oc,updateTypeAssertion:Xf,createParenthesizedExpression:fu,updateParenthesizedExpression:Zl,createFunctionExpression:Ff,updateFunctionExpression:hp,createArrowFunction:U_,updateArrowFunction:Rg,createDeleteExpression:xh,updateDeleteExpression:Ch,createTypeOfExpression:Yp,updateTypeOfExpression:Ll,createVoidExpression:mm,updateVoidExpression:m_,createAwaitExpression:og,updateAwaitExpression:ne,createPrefixUnaryExpression:ot,updatePrefixUnaryExpression:Kt,createPostfixUnaryExpression:er,updatePostfixUnaryExpression:Ar,createBinaryExpression:Qr,updateBinaryExpression:fi,createConditionalExpression:Wi,updateConditionalExpression:L,createTemplateExpression:Fe,updateTemplateExpression:Et,createTemplateHead:rc,createTemplateMiddle:_a,createTemplateTail:eu,createNoSubstitutionTemplateLiteral:jf,createTemplateLiteralLikeNode:Ps,createYieldExpression:g_,updateYieldExpression:V_,createSpreadElement:gy,updateSpreadElement:gv,createClassExpression:Mp,updateClassExpression:Og,createOmittedExpression:gm,createExpressionWithTypeArguments:Td,updateExpressionWithTypeArguments:Jb,createAsExpression:Ve,updateAsExpression:lt,createNonNullExpression:Jt,updateNonNullExpression:yr,createSatisfiesExpression:Ur,updateSatisfiesExpression:Tn,createNonNullChain:zr,updateNonNullChain:en,createMetaProperty:Ci,updateMetaProperty:ps,createTemplateSpan:oi,updateTemplateSpan:fs,createSemicolonClassElement:Bi,createBlock:nc,updateBlock:Zp,createVariableStatement:kd,updateVariableStatement:_u,createEmptyStatement:xd,createExpressionStatement:Lf,updateExpressionStatement:m1,createIfStatement:cg,updateIfStatement:Fg,createDoStatement:g1,updateDoStatement:jg,createWhileStatement:dD,updateWhileStatement:tN,createForStatement:mD,updateForStatement:wh,createForInStatement:h1,updateForInStatement:Uk,createForOfStatement:hv,updateForOfStatement:Vk,createContinueStatement:xC,updateContinueStatement:rN,createBreakStatement:qk,updateBreakStatement:CC,createReturnStatement:y1,updateReturnStatement:gD,createWithStatement:$k,updateWithStatement:wC,createSwitchStatement:aT,updateSwitchStatement:Ub,createLabeledStatement:IC,updateLabeledStatement:DC,createThrowStatement:oT,updateThrowStatement:Vb,createTryStatement:yv,updateTryStatement:hy,createDebuggerStatement:yy,createVariableDeclaration:vy,updateVariableDeclaration:qb,createVariableDeclarationList:v1,updateVariableDeclarationList:Hk,createFunctionDeclaration:b1,updateFunctionDeclaration:Ba,createClassDeclaration:hD,updateClassDeclaration:by,createInterfaceDeclaration:Sy,updateInterfaceDeclaration:Lg,createTypeAliasDeclaration:Yo,updateTypeAliasDeclaration:Lu,createEnumDeclaration:ef,updateEnumDeclaration:Wu,createModuleDeclaration:S1,updateModuleDeclaration:yp,createModuleBlock:Wg,updateModuleBlock:Rp,createCaseBlock:Cd,updateCaseBlock:Gd,createNamespaceExportDeclaration:T1,updateNamespaceExportDeclaration:k1,createImportEqualsDeclaration:yD,updateImportEqualsDeclaration:vv,createImportDeclaration:cT,updateImportDeclaration:$e,createImportClause:Kk,updateImportClause:Ih,createAssertClause:Jd,updateAssertClause:bv,createAssertEntry:$b,updateAssertEntry:vp,createImportTypeAssertionContainer:hm,updateImportTypeAssertionContainer:wd,createImportAttributes:x1,updateImportAttributes:wa,createImportAttribute:h_,updateImportAttribute:Sv,createNamespaceImport:Xk,updateNamespaceImport:Ty,createNamespaceExport:lT,updateNamespaceExport:q_,createNamedImports:Dh,updateNamedImports:C1,createImportSpecifier:Tv,updateImportSpecifier:lg,createExportAssignment:uT,updateExportAssignment:w1,createExportDeclaration:Wn,updateExportDeclaration:Nn,createNamedExports:Yk,updateNamedExports:ky,createExportSpecifier:pT,updateExportSpecifier:vD,createMissingDeclaration:iN,createExternalModuleReference:Pn,updateExternalModuleReference:bp,get createJSDocAllType(){return u(313)},get createJSDocUnknownType(){return u(314)},get createJSDocNonNullableType(){return h(316)},get updateJSDocNonNullableType(){return S(316)},get createJSDocNullableType(){return h(315)},get updateJSDocNullableType(){return S(315)},get createJSDocOptionalType(){return g(317)},get updateJSDocOptionalType(){return d(317)},get createJSDocVariadicType(){return g(319)},get updateJSDocVariadicType(){return d(319)},get createJSDocNamepathType(){return g(320)},get updateJSDocNamepathType(){return d(320)},createJSDocFunctionType:bD,updateJSDocFunctionType:PC,createJSDocTypeLiteral:rp,updateJSDocTypeLiteral:Bg,createJSDocTypeExpression:ym,updateJSDocTypeExpression:Qb,createJSDocSignature:ex,updateJSDocSignature:Kb,createJSDocTemplateTag:tf,updateJSDocTemplateTag:kv,createJSDocTypedefTag:I1,updateJSDocTypedefTag:AC,createJSDocParameterTag:D1,updateJSDocParameterTag:Xb,createJSDocPropertyTag:EC,updateJSDocPropertyTag:xy,createJSDocCallbackTag:ug,updateJSDocCallbackTag:Yb,createJSDocOverloadTag:P1,updateJSDocOverloadTag:xv,createJSDocAugmentsTag:Zb,updateJSDocAugmentsTag:Vd,createJSDocImplementsTag:Cy,updateJSDocImplementsTag:RC,createJSDocSeeTag:Ph,updateJSDocSeeTag:e0,createJSDocImportTag:rf,updateJSDocImportTag:H_,createJSDocNameReference:tu,updateJSDocNameReference:fT,createJSDocMemberName:Ah,updateJSDocMemberName:A1,createJSDocLink:tx,updateJSDocLink:Eh,createJSDocLinkCode:SD,updateJSDocLinkCode:NC,createJSDocLinkPlain:MC,updateJSDocLinkPlain:sN,get createJSDocTypeTag(){return I(345)},get updateJSDocTypeTag(){return P(345)},get createJSDocReturnTag(){return I(343)},get updateJSDocReturnTag(){return P(343)},get createJSDocThisTag(){return I(344)},get updateJSDocThisTag(){return P(344)},get createJSDocAuthorTag(){return T(331)},get updateJSDocAuthorTag(){return x(331)},get createJSDocClassTag(){return T(333)},get updateJSDocClassTag(){return x(333)},get createJSDocPublicTag(){return T(334)},get updateJSDocPublicTag(){return x(334)},get createJSDocPrivateTag(){return T(335)},get updateJSDocPrivateTag(){return x(335)},get createJSDocProtectedTag(){return T(336)},get updateJSDocProtectedTag(){return x(336)},get createJSDocReadonlyTag(){return T(337)},get updateJSDocReadonlyTag(){return x(337)},get createJSDocOverrideTag(){return T(338)},get updateJSDocOverrideTag(){return x(338)},get createJSDocDeprecatedTag(){return T(332)},get updateJSDocDeprecatedTag(){return x(332)},get createJSDocThrowsTag(){return I(350)},get updateJSDocThrowsTag(){return P(350)},get createJSDocSatisfiesTag(){return I(351)},get updateJSDocSatisfiesTag(){return P(351)},createJSDocEnumTag:ru,updateJSDocEnumTag:OC,createJSDocUnknownTag:rx,updateJSDocUnknownTag:nl,createJSDocText:_T,updateJSDocText:vm,createJSDocComment:t0,updateJSDocComment:Cv,createJsxElement:FC,updateJsxElement:aN,createJsxSelfClosingElement:Pc,updateJsxSelfClosingElement:kD,createJsxOpeningElement:nx,updateJsxOpeningElement:dT,createJsxClosingElement:jC,updateJsxClosingElement:np,createJsxFragment:_f,createJsxText:M1,updateJsxText:df,createJsxOpeningFragment:sx,createJsxJsxClosingFragment:Nh,updateJsxFragment:ix,createJsxAttribute:LC,updateJsxAttribute:ax,createJsxAttributes:qd,updateJsxAttributes:WC,createJsxSpreadAttribute:xD,updateJsxSpreadAttribute:BC,createJsxExpression:ox,updateJsxExpression:zC,createJsxNamespacedName:wv,updateJsxNamespacedName:Wf,createCaseClause:pg,updateCaseClause:cx,createDefaultClause:lx,updateDefaultClause:Ja,createHeritageClause:wn,updateHeritageClause:v_,createCatchClause:Wl,updateCatchClause:R1,createPropertyAssignment:ux,updatePropertyAssignment:mT,createShorthandPropertyAssignment:px,updateShorthandPropertyAssignment:C,createSpreadAssignment:yt,updateSpreadAssignment:gr,createEnumMember:ui,updateEnumMember:xi,createSourceFile:cs,updateSourceFile:F1,createRedirectedSourceFile:ki,createBundle:Fp,updateBundle:r0,createSyntheticExpression:GC,createSyntaxList:Id,createNotEmittedStatement:oc,createNotEmittedTypeElement:$d,createPartiallyEmittedExpression:fx,updatePartiallyEmittedExpression:Iv,createCommaListExpression:gT,updateCommaListExpression:DL,createSyntheticReferenceExpression:oN,updateSyntheticReferenceExpression:JC,cloneNode:_x,get createComma(){return o(28)},get createAssignment(){return o(64)},get createLogicalOr(){return o(57)},get createLogicalAnd(){return o(56)},get createBitwiseOr(){return o(52)},get createBitwiseXor(){return o(53)},get createBitwiseAnd(){return o(51)},get createStrictEquality(){return o(37)},get createStrictInequality(){return o(38)},get createEquality(){return o(35)},get createInequality(){return o(36)},get createLessThan(){return o(30)},get createLessThanEquals(){return o(33)},get createGreaterThan(){return o(32)},get createGreaterThanEquals(){return o(34)},get createLeftShift(){return o(48)},get createRightShift(){return o(49)},get createUnsignedRightShift(){return o(50)},get createAdd(){return o(40)},get createSubtract(){return o(41)},get createMultiply(){return o(42)},get createDivide(){return o(44)},get createModulo(){return o(45)},get createExponent(){return o(43)},get createPrefixPlus(){return c(40)},get createPrefixMinus(){return c(41)},get createPrefixIncrement(){return c(46)},get createPrefixDecrement(){return c(47)},get createBitwiseNot(){return c(55)},get createLogicalNot(){return c(54)},get createPostfixIncrement(){return p(46)},get createPostfixDecrement(){return p(47)},createImmediatelyInvokedFunctionExpression:PL,createImmediatelyInvokedArrowFunction:hT,createVoidZero:dx,createExportDefault:lN,createExternalModuleExport:VC,createTypeCheck:Xi,createIsNotTypeCheck:i0,createMethodCall:Yr,createGlobalMethodCall:yT,createFunctionBindCall:uN,createFunctionCallCall:CD,createFunctionApplyCall:wD,createArraySliceCall:g3,createArrayConcatCall:mx,createObjectDefinePropertyCall:AL,createObjectGetOwnPropertyDescriptorCall:ID,createReflectGetCall:zg,createReflectSetCall:h3,createPropertyDescriptor:EL,createCallBinding:DD,createAssignmentTargetWrapper:fg,inlineExpressions:Y,getInternalName:Ze,getLocalName:Dt,getExportName:Xt,getDeclarationName:lr,getNamespaceMemberName:qn,getExternalModuleOrNamespaceExportName:xn,restoreOuterExpressions:fN,restoreEnclosingLabel:L1,createUseStrictPrologue:Hi,copyPrologue:rn,copyStandardPrologue:Co,copyCustomPrologue:po,ensureUseStrict:Ua,liftToBlock:Q_,mergeLexicalEnvironment:Pv,replaceModifiers:Av,replaceDecoratorsAndModifiers:Mh,replacePropertyName:s0};return or(m0e,v=>v(E)),E;function F(v,D){if(v===void 0||v===Ke)v=[];else if(_S(v)){if(D===void 0||v.hasTrailingComma===D)return v.transformFlags===void 0&&y0e(v),w.attachNodeArrayDebugInfo(v),v;let Xe=v.slice();return Xe.pos=v.pos,Xe.end=v.end,Xe.hasTrailingComma=D,Xe.transformFlags=v.transformFlags,w.attachNodeArrayDebugInfo(Xe),Xe}let B=v.length,ue=B>=1&&B<=4?v.slice():v;return ue.pos=-1,ue.end=-1,ue.hasTrailingComma=!!D,ue.transformFlags=0,y0e(ue),w.attachNodeArrayDebugInfo(ue),ue}function O(v){return t.createBaseNode(v)}function W(v){let D=O(v);return D.symbol=void 0,D.localSymbol=void 0,D}function z(v,D){return v!==D&&(v.typeArguments=D.typeArguments),un(v,D)}function $(v,D=0){let B=typeof v=="number"?v+"":v;w.assert(B.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let ue=W(9);return ue.text=B,ue.numericLiteralFlags=D,D&384&&(ue.transformFlags|=1024),ue}function X(v){let D=nt(10);return D.text=typeof v=="string"?v:MS(v)+"n",D.transformFlags|=32,D}function U(v,D){let B=W(11);return B.text=v,B.singleQuote=D,B}function _e(v,D,B){let ue=U(v,D);return ue.hasExtendedUnicodeEscape=B,B&&(ue.transformFlags|=1024),ue}function re(v){let D=U(R_(v),void 0);return D.textSourceNode=v,D}function V(v){let D=nt(14);return D.text=v,D}function ce(v,D){switch(v){case 9:return $(D,0);case 10:return X(D);case 11:return _e(D,void 0);case 12:return M1(D,!1);case 13:return M1(D,!0);case 14:return V(D);case 15:return Ps(v,D,void 0,0)}}function oe(v){let D=t.createBaseIdentifierNode(80);return D.escapedText=v,D.jsDoc=void 0,D.flowNode=void 0,D.symbol=void 0,D}function le(v,D,B,ue){let Xe=oe(gc(v));return a4(Xe,{flags:D,id:rJ,prefix:B,suffix:ue}),rJ++,Xe}function de(v,D,B){D===void 0&&v&&(D=JT(v)),D===80&&(D=void 0);let ue=oe(gc(v));return B&&(ue.flags|=256),ue.escapedText==="await"&&(ue.transformFlags|=67108864),ue.flags&256&&(ue.transformFlags|=1024),ue}function ve(v,D,B,ue){let Xe=1;D&&(Xe|=8);let Yt=le("",Xe,B,ue);return v&&v(Yt),Yt}function H(v){let D=2;return v&&(D|=8),le("",D,void 0,void 0)}function Se(v,D=0,B,ue){return w.assert(!(D&7),"Argument out of range: flags"),w.assert((D&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),le(v,3|D,B,ue)}function Je(v,D=0,B,ue){w.assert(!(D&7),"Argument out of range: flags");let Xe=v?sh(v)?Y0(!1,B,v,ue,Fn):`generated@${qa(v)}`:"";(B||ue)&&(D|=16);let Yt=le(Xe,4|D,B,ue);return Yt.original=v,Yt}function ye(v){let D=t.createBasePrivateIdentifierNode(81);return D.escapedText=v,D.transformFlags|=16777216,D}function ee(v){return Zi(v,"#")||w.fail("First character of private identifier must be #: "+v),ye(gc(v))}function ge(v,D,B,ue){let Xe=ye(gc(v));return a4(Xe,{flags:D,id:rJ,prefix:B,suffix:ue}),rJ++,Xe}function ke(v,D,B){v&&!Zi(v,"#")&&w.fail("First character of private identifier must be #: "+v);let ue=8|(v?3:1);return ge(v??"",ue,D,B)}function Oe(v,D,B){let ue=sh(v)?Y0(!0,D,v,B,Fn):`#generated@${qa(v)}`,Yt=ge(ue,4|(D||B?16:0),D,B);return Yt.original=v,Yt}function nt(v){return t.createBaseTokenNode(v)}function ae(v){w.assert(v>=0&&v<=166,"Invalid token"),w.assert(v<=15||v>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),w.assert(v<=9||v>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),w.assert(v!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let D=nt(v),B=0;switch(v){case 134:B=384;break;case 160:B=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:B=1;break;case 108:B=134218752,D.flowNode=void 0;break;case 126:B=1024;break;case 129:B=16777216;break;case 110:B=16384,D.flowNode=void 0;break}return B&&(D.transformFlags|=B),D}function Ue(){return ae(108)}function te(){return ae(110)}function Ne(){return ae(106)}function Ie(){return ae(112)}function xe(){return ae(97)}function Qe(v){return ae(v)}function St(v){let D=[];return v&32&&D.push(Qe(95)),v&128&&D.push(Qe(138)),v&2048&&D.push(Qe(90)),v&4096&&D.push(Qe(87)),v&1&&D.push(Qe(125)),v&2&&D.push(Qe(123)),v&4&&D.push(Qe(124)),v&64&&D.push(Qe(128)),v&256&&D.push(Qe(126)),v&16&&D.push(Qe(164)),v&8&&D.push(Qe(148)),v&512&&D.push(Qe(129)),v&1024&&D.push(Qe(134)),v&8192&&D.push(Qe(103)),v&16384&&D.push(Qe(147)),D.length?D:void 0}function Bt(v,D){let B=O(167);return B.left=v,B.right=El(D),B.transformFlags|=Dn(B.left)|r4(B.right),B.flowNode=void 0,B}function fr(v,D,B){return v.left!==D||v.right!==B?un(Bt(D,B),v):v}function Mr(v){let D=O(168);return D.expression=i().parenthesizeExpressionOfComputedPropertyName(v),D.transformFlags|=Dn(D.expression)|1024|131072,D}function ft(v,D){return v.expression!==D?un(Mr(D),v):v}function qt(v,D,B,ue){let Xe=W(169);return Xe.modifiers=$a(v),Xe.name=El(D),Xe.constraint=B,Xe.default=ue,Xe.transformFlags=1,Xe.expression=void 0,Xe.jsDoc=void 0,Xe}function Hr(v,D,B,ue,Xe){return v.modifiers!==D||v.name!==B||v.constraint!==ue||v.default!==Xe?un(qt(D,B,ue,Xe),v):v}function bi(v,D,B,ue,Xe,Yt){let Cn=W(170);return Cn.modifiers=$a(v),Cn.dotDotDotToken=D,Cn.name=El(B),Cn.questionToken=ue,Cn.type=Xe,Cn.initializer=ip(Yt),Sb(Cn.name)?Cn.transformFlags=1:Cn.transformFlags=za(Cn.modifiers)|Dn(Cn.dotDotDotToken)|wb(Cn.name)|Dn(Cn.questionToken)|Dn(Cn.initializer)|(Cn.questionToken??Cn.type?1:0)|(Cn.dotDotDotToken??Cn.initializer?1024:0)|(Jm(Cn.modifiers)&31?8192:0),Cn.jsDoc=void 0,Cn}function us(v,D,B,ue,Xe,Yt,Cn){return v.modifiers!==D||v.dotDotDotToken!==B||v.name!==ue||v.questionToken!==Xe||v.type!==Yt||v.initializer!==Cn?un(bi(D,B,ue,Xe,Yt,Cn),v):v}function At(v){let D=O(171);return D.expression=i().parenthesizeLeftSideOfAccess(v,!1),D.transformFlags|=Dn(D.expression)|1|8192|33554432,D}function Un(v,D){return v.expression!==D?un(At(D),v):v}function rs(v,D,B,ue){let Xe=W(172);return Xe.modifiers=$a(v),Xe.name=El(D),Xe.type=ue,Xe.questionToken=B,Xe.transformFlags=1,Xe.initializer=void 0,Xe.jsDoc=void 0,Xe}function zn(v,D,B,ue,Xe){return v.modifiers!==D||v.name!==B||v.questionToken!==ue||v.type!==Xe?Sn(rs(D,B,ue,Xe),v):v}function Sn(v,D){return v!==D&&(v.initializer=D.initializer),un(v,D)}function _i(v,D,B,ue,Xe){let Yt=W(173);Yt.modifiers=$a(v),Yt.name=El(D),Yt.questionToken=B&&Db(B)?B:void 0,Yt.exclamationToken=B&&c4(B)?B:void 0,Yt.type=ue,Yt.initializer=ip(Xe);let Cn=Yt.flags&33554432||Jm(Yt.modifiers)&128;return Yt.transformFlags=za(Yt.modifiers)|wb(Yt.name)|Dn(Yt.initializer)|(Cn||Yt.questionToken||Yt.exclamationToken||Yt.type?1:0)|(na(Yt.name)||Jm(Yt.modifiers)&256&&Yt.initializer?8192:0)|16777216,Yt.jsDoc=void 0,Yt}function qe(v,D,B,ue,Xe,Yt){return v.modifiers!==D||v.name!==B||v.questionToken!==(ue!==void 0&&Db(ue)?ue:void 0)||v.exclamationToken!==(ue!==void 0&&c4(ue)?ue:void 0)||v.type!==Xe||v.initializer!==Yt?un(_i(D,B,ue,Xe,Yt),v):v}function bt(v,D,B,ue,Xe,Yt){let Cn=W(174);return Cn.modifiers=$a(v),Cn.name=El(D),Cn.questionToken=B,Cn.typeParameters=$a(ue),Cn.parameters=$a(Xe),Cn.type=Yt,Cn.transformFlags=1,Cn.jsDoc=void 0,Cn.locals=void 0,Cn.nextContainer=void 0,Cn.typeArguments=void 0,Cn}function ar(v,D,B,ue,Xe,Yt,Cn){return v.modifiers!==D||v.name!==B||v.questionToken!==ue||v.typeParameters!==Xe||v.parameters!==Yt||v.type!==Cn?z(bt(D,B,ue,Xe,Yt,Cn),v):v}function tn(v,D,B,ue,Xe,Yt,Cn,vs){let Go=W(175);if(Go.modifiers=$a(v),Go.asteriskToken=D,Go.name=El(B),Go.questionToken=ue,Go.exclamationToken=void 0,Go.typeParameters=$a(Xe),Go.parameters=F(Yt),Go.type=Cn,Go.body=vs,!Go.body)Go.transformFlags=1;else{let Yf=Jm(Go.modifiers)&1024,a0=!!Go.asteriskToken,bm=Yf&&a0;Go.transformFlags=za(Go.modifiers)|Dn(Go.asteriskToken)|wb(Go.name)|Dn(Go.questionToken)|za(Go.typeParameters)|za(Go.parameters)|Dn(Go.type)|Dn(Go.body)&-67108865|(bm?128:Yf?256:a0?2048:0)|(Go.questionToken||Go.typeParameters||Go.type?1:0)|1024}return Go.typeArguments=void 0,Go.jsDoc=void 0,Go.locals=void 0,Go.nextContainer=void 0,Go.flowNode=void 0,Go.endFlowNode=void 0,Go.returnFlowNode=void 0,Go}function Xn(v,D,B,ue,Xe,Yt,Cn,vs,Go){return v.modifiers!==D||v.asteriskToken!==B||v.name!==ue||v.questionToken!==Xe||v.typeParameters!==Yt||v.parameters!==Cn||v.type!==vs||v.body!==Go?ei(tn(D,B,ue,Xe,Yt,Cn,vs,Go),v):v}function ei(v,D){return v!==D&&(v.exclamationToken=D.exclamationToken),un(v,D)}function Mi(v){let D=W(176);return D.body=v,D.transformFlags=Dn(v)|16777216,D.modifiers=void 0,D.jsDoc=void 0,D.locals=void 0,D.nextContainer=void 0,D.endFlowNode=void 0,D.returnFlowNode=void 0,D}function js(v,D){return v.body!==D?oa(Mi(D),v):v}function oa(v,D){return v!==D&&(v.modifiers=D.modifiers),un(v,D)}function wr(v,D,B){let ue=W(177);return ue.modifiers=$a(v),ue.parameters=F(D),ue.body=B,ue.body?ue.transformFlags=za(ue.modifiers)|za(ue.parameters)|Dn(ue.body)&-67108865|1024:ue.transformFlags=1,ue.typeParameters=void 0,ue.type=void 0,ue.typeArguments=void 0,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.endFlowNode=void 0,ue.returnFlowNode=void 0,ue}function Ds(v,D,B,ue){return v.modifiers!==D||v.parameters!==B||v.body!==ue?tt(wr(D,B,ue),v):v}function tt(v,D){return v!==D&&(v.typeParameters=D.typeParameters,v.type=D.type),z(v,D)}function Mt(v,D,B,ue,Xe){let Yt=W(178);return Yt.modifiers=$a(v),Yt.name=El(D),Yt.parameters=F(B),Yt.type=ue,Yt.body=Xe,Yt.body?Yt.transformFlags=za(Yt.modifiers)|wb(Yt.name)|za(Yt.parameters)|Dn(Yt.type)|Dn(Yt.body)&-67108865|(Yt.type?1:0):Yt.transformFlags=1,Yt.typeArguments=void 0,Yt.typeParameters=void 0,Yt.jsDoc=void 0,Yt.locals=void 0,Yt.nextContainer=void 0,Yt.flowNode=void 0,Yt.endFlowNode=void 0,Yt.returnFlowNode=void 0,Yt}function se(v,D,B,ue,Xe,Yt){return v.modifiers!==D||v.name!==B||v.parameters!==ue||v.type!==Xe||v.body!==Yt?pt(Mt(D,B,ue,Xe,Yt),v):v}function pt(v,D){return v!==D&&(v.typeParameters=D.typeParameters),z(v,D)}function Z(v,D,B,ue){let Xe=W(179);return Xe.modifiers=$a(v),Xe.name=El(D),Xe.parameters=F(B),Xe.body=ue,Xe.body?Xe.transformFlags=za(Xe.modifiers)|wb(Xe.name)|za(Xe.parameters)|Dn(Xe.body)&-67108865|(Xe.type?1:0):Xe.transformFlags=1,Xe.typeArguments=void 0,Xe.typeParameters=void 0,Xe.type=void 0,Xe.jsDoc=void 0,Xe.locals=void 0,Xe.nextContainer=void 0,Xe.flowNode=void 0,Xe.endFlowNode=void 0,Xe.returnFlowNode=void 0,Xe}function Ee(v,D,B,ue,Xe){return v.modifiers!==D||v.name!==B||v.parameters!==ue||v.body!==Xe?et(Z(D,B,ue,Xe),v):v}function et(v,D){return v!==D&&(v.typeParameters=D.typeParameters,v.type=D.type),z(v,D)}function at(v,D,B){let ue=W(180);return ue.typeParameters=$a(v),ue.parameters=$a(D),ue.type=B,ue.transformFlags=1,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.typeArguments=void 0,ue}function Pt(v,D,B,ue){return v.typeParameters!==D||v.parameters!==B||v.type!==ue?z(at(D,B,ue),v):v}function Le(v,D,B){let ue=W(181);return ue.typeParameters=$a(v),ue.parameters=$a(D),ue.type=B,ue.transformFlags=1,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.typeArguments=void 0,ue}function kt(v,D,B,ue){return v.typeParameters!==D||v.parameters!==B||v.type!==ue?z(Le(D,B,ue),v):v}function Tt(v,D,B){let ue=W(182);return ue.modifiers=$a(v),ue.parameters=$a(D),ue.type=B,ue.transformFlags=1,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.typeArguments=void 0,ue}function Rt(v,D,B,ue){return v.parameters!==B||v.type!==ue||v.modifiers!==D?z(Tt(D,B,ue),v):v}function Ye(v,D){let B=O(205);return B.type=v,B.literal=D,B.transformFlags=1,B}function Gt(v,D,B){return v.type!==D||v.literal!==B?un(Ye(D,B),v):v}function ln(v){return ae(v)}function Ae(v,D,B){let ue=O(183);return ue.assertsModifier=v,ue.parameterName=El(D),ue.type=B,ue.transformFlags=1,ue}function wt(v,D,B,ue){return v.assertsModifier!==D||v.parameterName!==B||v.type!==ue?un(Ae(D,B,ue),v):v}function fe(v,D){let B=O(184);return B.typeName=El(v),B.typeArguments=D&&i().parenthesizeTypeArguments(F(D)),B.transformFlags=1,B}function j(v,D,B){return v.typeName!==D||v.typeArguments!==B?un(fe(D,B),v):v}function je(v,D,B){let ue=W(185);return ue.typeParameters=$a(v),ue.parameters=$a(D),ue.type=B,ue.transformFlags=1,ue.modifiers=void 0,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.typeArguments=void 0,ue}function q(v,D,B,ue){return v.typeParameters!==D||v.parameters!==B||v.type!==ue?vt(je(D,B,ue),v):v}function vt(v,D){return v!==D&&(v.modifiers=D.modifiers),z(v,D)}function jt(...v){return v.length===4?Ce(...v):v.length===3?ut(...v):w.fail("Incorrect number of arguments specified.")}function Ce(v,D,B,ue){let Xe=W(186);return Xe.modifiers=$a(v),Xe.typeParameters=$a(D),Xe.parameters=$a(B),Xe.type=ue,Xe.transformFlags=1,Xe.jsDoc=void 0,Xe.locals=void 0,Xe.nextContainer=void 0,Xe.typeArguments=void 0,Xe}function ut(v,D,B){return Ce(void 0,v,D,B)}function Qt(...v){return v.length===5?Zr(...v):v.length===4?jr(...v):w.fail("Incorrect number of arguments specified.")}function Zr(v,D,B,ue,Xe){return v.modifiers!==D||v.typeParameters!==B||v.parameters!==ue||v.type!==Xe?z(jt(D,B,ue,Xe),v):v}function jr(v,D,B,ue){return Zr(v,v.modifiers,D,B,ue)}function Jr(v,D){let B=O(187);return B.exprName=v,B.typeArguments=D&&i().parenthesizeTypeArguments(D),B.transformFlags=1,B}function ct(v,D,B){return v.exprName!==D||v.typeArguments!==B?un(Jr(D,B),v):v}function It(v){let D=W(188);return D.members=F(v),D.transformFlags=1,D}function Ot(v,D){return v.members!==D?un(It(D),v):v}function Ht(v){let D=O(189);return D.elementType=i().parenthesizeNonArrayTypeOfPostfixType(v),D.transformFlags=1,D}function hr(v,D){return v.elementType!==D?un(Ht(D),v):v}function ur(v){let D=O(190);return D.elements=F(i().parenthesizeElementTypesOfTupleType(v)),D.transformFlags=1,D}function Nt(v,D){return v.elements!==D?un(ur(D),v):v}function mr(v,D,B,ue){let Xe=W(203);return Xe.dotDotDotToken=v,Xe.name=D,Xe.questionToken=B,Xe.type=ue,Xe.transformFlags=1,Xe.jsDoc=void 0,Xe}function Tr(v,D,B,ue,Xe){return v.dotDotDotToken!==D||v.name!==B||v.questionToken!==ue||v.type!==Xe?un(mr(D,B,ue,Xe),v):v}function Cr(v){let D=O(191);return D.type=i().parenthesizeTypeOfOptionalType(v),D.transformFlags=1,D}function rr(v,D){return v.type!==D?un(Cr(D),v):v}function di(v){let D=O(192);return D.type=v,D.transformFlags=1,D}function Vs(v,D){return v.type!==D?un(di(D),v):v}function qs(v,D,B){let ue=O(v);return ue.types=E.createNodeArray(B(D)),ue.transformFlags=1,ue}function xs(v,D,B){return v.types!==D?un(qs(v.kind,D,B),v):v}function Dc(v){return qs(193,v,i().parenthesizeConstituentTypesOfUnionType)}function vc(v,D){return xs(v,D,i().parenthesizeConstituentTypesOfUnionType)}function vo(v){return qs(194,v,i().parenthesizeConstituentTypesOfIntersectionType)}function Ki(v,D){return xs(v,D,i().parenthesizeConstituentTypesOfIntersectionType)}function Cs(v,D,B,ue){let Xe=O(195);return Xe.checkType=i().parenthesizeCheckTypeOfConditionalType(v),Xe.extendsType=i().parenthesizeExtendsTypeOfConditionalType(D),Xe.trueType=B,Xe.falseType=ue,Xe.transformFlags=1,Xe.locals=void 0,Xe.nextContainer=void 0,Xe}function ll(v,D,B,ue,Xe){return v.checkType!==D||v.extendsType!==B||v.trueType!==ue||v.falseType!==Xe?un(Cs(D,B,ue,Xe),v):v}function Lo(v){let D=O(196);return D.typeParameter=v,D.transformFlags=1,D}function fa(v,D){return v.typeParameter!==D?un(Lo(D),v):v}function Jc(v,D){let B=O(204);return B.head=v,B.templateSpans=F(D),B.transformFlags=1,B}function d_(v,D,B){return v.head!==D||v.templateSpans!==B?un(Jc(D,B),v):v}function ys(v,D,B,ue,Xe=!1){let Yt=O(206);return Yt.argument=v,Yt.attributes=D,Yt.assertions&&Yt.assertions.assertClause&&Yt.attributes&&(Yt.assertions.assertClause=Yt.attributes),Yt.qualifier=B,Yt.typeArguments=ue&&i().parenthesizeTypeArguments(ue),Yt.isTypeOf=Xe,Yt.transformFlags=1,Yt}function Ys(v,D,B,ue,Xe,Yt=v.isTypeOf){return v.argument!==D||v.attributes!==B||v.qualifier!==ue||v.typeArguments!==Xe||v.isTypeOf!==Yt?un(ys(D,B,ue,Xe,Yt),v):v}function Ga(v){let D=O(197);return D.type=v,D.transformFlags=1,D}function Fa(v,D){return v.type!==D?un(Ga(D),v):v}function $t(){let v=O(198);return v.transformFlags=1,v}function uo(v,D){let B=O(199);return B.operator=v,B.type=v===148?i().parenthesizeOperandOfReadonlyTypeOperator(D):i().parenthesizeOperandOfTypeOperator(D),B.transformFlags=1,B}function Mc(v,D){return v.type!==D?un(uo(v.operator,D),v):v}function rl(v,D){let B=O(200);return B.objectType=i().parenthesizeNonArrayTypeOfPostfixType(v),B.indexType=D,B.transformFlags=1,B}function Yl(v,D,B){return v.objectType!==D||v.indexType!==B?un(rl(D,B),v):v}function Ko(v,D,B,ue,Xe,Yt){let Cn=W(201);return Cn.readonlyToken=v,Cn.typeParameter=D,Cn.nameType=B,Cn.questionToken=ue,Cn.type=Xe,Cn.members=Yt&&F(Yt),Cn.transformFlags=1,Cn.locals=void 0,Cn.nextContainer=void 0,Cn}function Rc(v,D,B,ue,Xe,Yt,Cn){return v.readonlyToken!==D||v.typeParameter!==B||v.nameType!==ue||v.questionToken!==Xe||v.type!==Yt||v.members!==Cn?un(Ko(D,B,ue,Xe,Yt,Cn),v):v}function N(v){let D=O(202);return D.literal=v,D.transformFlags=1,D}function We(v,D){return v.literal!==D?un(N(D),v):v}function dt(v){let D=O(207);return D.elements=F(v),D.transformFlags|=za(D.elements)|1024|524288,D.transformFlags&32768&&(D.transformFlags|=65664),D}function Ut(v,D){return v.elements!==D?un(dt(D),v):v}function Wr(v){let D=O(208);return D.elements=F(v),D.transformFlags|=za(D.elements)|1024|524288,D}function Yn(v,D){return v.elements!==D?un(Wr(D),v):v}function hn(v,D,B,ue){let Xe=W(209);return Xe.dotDotDotToken=v,Xe.propertyName=El(D),Xe.name=El(B),Xe.initializer=ip(ue),Xe.transformFlags|=Dn(Xe.dotDotDotToken)|wb(Xe.propertyName)|wb(Xe.name)|Dn(Xe.initializer)|(Xe.dotDotDotToken?32768:0)|1024,Xe.flowNode=void 0,Xe}function Rr(v,D,B,ue,Xe){return v.propertyName!==B||v.dotDotDotToken!==D||v.name!==ue||v.initializer!==Xe?un(hn(D,B,ue,Xe),v):v}function Di(v,D){let B=O(210),ue=v&&Wo(v),Xe=F(v,ue&&Fl(ue)?!0:void 0);return B.elements=i().parenthesizeExpressionsOfCommaDelimitedList(Xe),B.multiLine=D,B.transformFlags|=za(B.elements),B}function Ri(v,D){return v.elements!==D?un(Di(D,v.multiLine),v):v}function so(v,D){let B=W(211);return B.properties=F(v),B.multiLine=D,B.transformFlags|=za(B.properties),B.jsDoc=void 0,B}function ua(v,D){return v.properties!==D?un(so(D,v.multiLine),v):v}function Xo(v,D,B){let ue=W(212);return ue.expression=v,ue.questionDotToken=D,ue.name=B,ue.transformFlags=Dn(ue.expression)|Dn(ue.questionDotToken)|(Be(ue.name)?r4(ue.name):Dn(ue.name)|536870912),ue.jsDoc=void 0,ue.flowNode=void 0,ue}function ul(v,D){let B=Xo(i().parenthesizeLeftSideOfAccess(v,!1),void 0,El(D));return WA(v)&&(B.transformFlags|=384),B}function Kc(v,D,B){return aF(v)?Uc(v,D,v.questionDotToken,Zs(B,Be)):v.expression!==D||v.name!==B?un(ul(D,B),v):v}function Eo(v,D,B){let ue=Xo(i().parenthesizeLeftSideOfAccess(v,!0),D,El(B));return ue.flags|=64,ue.transformFlags|=32,ue}function Uc(v,D,B,ue){return w.assert(!!(v.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),v.expression!==D||v.questionDotToken!==B||v.name!==ue?un(Eo(D,B,ue),v):v}function Of(v,D,B){let ue=W(213);return ue.expression=v,ue.questionDotToken=D,ue.argumentExpression=B,ue.transformFlags|=Dn(ue.expression)|Dn(ue.questionDotToken)|Dn(ue.argumentExpression),ue.jsDoc=void 0,ue.flowNode=void 0,ue}function Cu(v,D){let B=Of(i().parenthesizeLeftSideOfAccess(v,!1),void 0,Ev(D));return WA(v)&&(B.transformFlags|=384),B}function Kf(v,D,B){return jB(v)?Re(v,D,v.questionDotToken,B):v.expression!==D||v.argumentExpression!==B?un(Cu(D,B),v):v}function Xp(v,D,B){let ue=Of(i().parenthesizeLeftSideOfAccess(v,!0),D,Ev(B));return ue.flags|=64,ue.transformFlags|=32,ue}function Re(v,D,B,ue){return w.assert(!!(v.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),v.expression!==D||v.questionDotToken!==B||v.argumentExpression!==ue?un(Xp(D,B,ue),v):v}function zt(v,D,B,ue){let Xe=W(214);return Xe.expression=v,Xe.questionDotToken=D,Xe.typeArguments=B,Xe.arguments=ue,Xe.transformFlags|=Dn(Xe.expression)|Dn(Xe.questionDotToken)|za(Xe.typeArguments)|za(Xe.arguments),Xe.typeArguments&&(Xe.transformFlags|=1),of(Xe.expression)&&(Xe.transformFlags|=16384),Xe}function Vr(v,D,B){let ue=zt(i().parenthesizeLeftSideOfAccess(v,!1),void 0,$a(D),i().parenthesizeExpressionsOfCommaDelimitedList(F(B)));return BA(ue.expression)&&(ue.transformFlags|=8388608),ue}function ns(v,D,B,ue){return qT(v)?La(v,D,v.questionDotToken,B,ue):v.expression!==D||v.typeArguments!==B||v.arguments!==ue?un(Vr(D,B,ue),v):v}function ja(v,D,B,ue){let Xe=zt(i().parenthesizeLeftSideOfAccess(v,!0),D,$a(B),i().parenthesizeExpressionsOfCommaDelimitedList(F(ue)));return Xe.flags|=64,Xe.transformFlags|=32,Xe}function La(v,D,B,ue,Xe){return w.assert(!!(v.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),v.expression!==D||v.questionDotToken!==B||v.typeArguments!==ue||v.arguments!==Xe?un(ja(D,B,ue,Xe),v):v}function Ca(v,D,B){let ue=W(215);return ue.expression=i().parenthesizeExpressionOfNew(v),ue.typeArguments=$a(D),ue.arguments=B?i().parenthesizeExpressionsOfCommaDelimitedList(B):void 0,ue.transformFlags|=Dn(ue.expression)|za(ue.typeArguments)|za(ue.arguments)|32,ue.typeArguments&&(ue.transformFlags|=1),ue}function bl(v,D,B,ue){return v.expression!==D||v.typeArguments!==B||v.arguments!==ue?un(Ca(D,B,ue),v):v}function zo(v,D,B){let ue=O(216);return ue.tag=i().parenthesizeLeftSideOfAccess(v,!1),ue.typeArguments=$a(D),ue.template=B,ue.transformFlags|=Dn(ue.tag)|za(ue.typeArguments)|Dn(ue.template)|1024,ue.typeArguments&&(ue.transformFlags|=1),qz(ue.template)&&(ue.transformFlags|=128),ue}function bc(v,D,B,ue){return v.tag!==D||v.typeArguments!==B||v.template!==ue?un(zo(D,B,ue),v):v}function Oc(v,D){let B=O(217);return B.expression=i().parenthesizeOperandOfPrefixUnary(D),B.type=v,B.transformFlags|=Dn(B.expression)|Dn(B.type)|1,B}function Xf(v,D,B){return v.type!==D||v.expression!==B?un(Oc(D,B),v):v}function fu(v){let D=O(218);return D.expression=v,D.transformFlags=Dn(D.expression),D.jsDoc=void 0,D}function Zl(v,D){return v.expression!==D?un(fu(D),v):v}function Ff(v,D,B,ue,Xe,Yt,Cn){let vs=W(219);vs.modifiers=$a(v),vs.asteriskToken=D,vs.name=El(B),vs.typeParameters=$a(ue),vs.parameters=F(Xe),vs.type=Yt,vs.body=Cn;let Go=Jm(vs.modifiers)&1024,Yf=!!vs.asteriskToken,a0=Go&&Yf;return vs.transformFlags=za(vs.modifiers)|Dn(vs.asteriskToken)|wb(vs.name)|za(vs.typeParameters)|za(vs.parameters)|Dn(vs.type)|Dn(vs.body)&-67108865|(a0?128:Go?256:Yf?2048:0)|(vs.typeParameters||vs.type?1:0)|4194304,vs.typeArguments=void 0,vs.jsDoc=void 0,vs.locals=void 0,vs.nextContainer=void 0,vs.flowNode=void 0,vs.endFlowNode=void 0,vs.returnFlowNode=void 0,vs}function hp(v,D,B,ue,Xe,Yt,Cn,vs){return v.name!==ue||v.modifiers!==D||v.asteriskToken!==B||v.typeParameters!==Xe||v.parameters!==Yt||v.type!==Cn||v.body!==vs?z(Ff(D,B,ue,Xe,Yt,Cn,vs),v):v}function U_(v,D,B,ue,Xe,Yt){let Cn=W(220);Cn.modifiers=$a(v),Cn.typeParameters=$a(D),Cn.parameters=F(B),Cn.type=ue,Cn.equalsGreaterThanToken=Xe??ae(39),Cn.body=i().parenthesizeConciseBodyOfArrowFunction(Yt);let vs=Jm(Cn.modifiers)&1024;return Cn.transformFlags=za(Cn.modifiers)|za(Cn.typeParameters)|za(Cn.parameters)|Dn(Cn.type)|Dn(Cn.equalsGreaterThanToken)|Dn(Cn.body)&-67108865|(Cn.typeParameters||Cn.type?1:0)|(vs?16640:0)|1024,Cn.typeArguments=void 0,Cn.jsDoc=void 0,Cn.locals=void 0,Cn.nextContainer=void 0,Cn.flowNode=void 0,Cn.endFlowNode=void 0,Cn.returnFlowNode=void 0,Cn}function Rg(v,D,B,ue,Xe,Yt,Cn){return v.modifiers!==D||v.typeParameters!==B||v.parameters!==ue||v.type!==Xe||v.equalsGreaterThanToken!==Yt||v.body!==Cn?z(U_(D,B,ue,Xe,Yt,Cn),v):v}function xh(v){let D=O(221);return D.expression=i().parenthesizeOperandOfPrefixUnary(v),D.transformFlags|=Dn(D.expression),D}function Ch(v,D){return v.expression!==D?un(xh(D),v):v}function Yp(v){let D=O(222);return D.expression=i().parenthesizeOperandOfPrefixUnary(v),D.transformFlags|=Dn(D.expression),D}function Ll(v,D){return v.expression!==D?un(Yp(D),v):v}function mm(v){let D=O(223);return D.expression=i().parenthesizeOperandOfPrefixUnary(v),D.transformFlags|=Dn(D.expression),D}function m_(v,D){return v.expression!==D?un(mm(D),v):v}function og(v){let D=O(224);return D.expression=i().parenthesizeOperandOfPrefixUnary(v),D.transformFlags|=Dn(D.expression)|256|128|2097152,D}function ne(v,D){return v.expression!==D?un(og(D),v):v}function ot(v,D){let B=O(225);return B.operator=v,B.operand=i().parenthesizeOperandOfPrefixUnary(D),B.transformFlags|=Dn(B.operand),(v===46||v===47)&&Be(B.operand)&&!ec(B.operand)&&!cy(B.operand)&&(B.transformFlags|=268435456),B}function Kt(v,D){return v.operand!==D?un(ot(v.operator,D),v):v}function er(v,D){let B=O(226);return B.operator=D,B.operand=i().parenthesizeOperandOfPostfixUnary(v),B.transformFlags|=Dn(B.operand),Be(B.operand)&&!ec(B.operand)&&!cy(B.operand)&&(B.transformFlags|=268435456),B}function Ar(v,D){return v.operand!==D?un(er(D,v.operator),v):v}function Qr(v,D,B){let ue=W(227),Xe=qC(D),Yt=Xe.kind;return ue.left=i().parenthesizeLeftSideOfBinary(Yt,v),ue.operatorToken=Xe,ue.right=i().parenthesizeRightSideOfBinary(Yt,ue.left,B),ue.transformFlags|=Dn(ue.left)|Dn(ue.operatorToken)|Dn(ue.right),Yt===61?ue.transformFlags|=32:Yt===64?Sa(ue.left)?ue.transformFlags|=5248|$n(ue.left):Tu(ue.left)&&(ue.transformFlags|=5120|$n(ue.left)):Yt===43||Yt===68?ue.transformFlags|=512:fA(Yt)&&(ue.transformFlags|=16),Yt===103&&zi(ue.left)&&(ue.transformFlags|=536870912),ue.jsDoc=void 0,ue}function $n(v){return T4(v)?65536:0}function fi(v,D,B,ue){return v.left!==D||v.operatorToken!==B||v.right!==ue?un(Qr(D,B,ue),v):v}function Wi(v,D,B,ue,Xe){let Yt=O(228);return Yt.condition=i().parenthesizeConditionOfConditionalExpression(v),Yt.questionToken=D??ae(58),Yt.whenTrue=i().parenthesizeBranchOfConditionalExpression(B),Yt.colonToken=ue??ae(59),Yt.whenFalse=i().parenthesizeBranchOfConditionalExpression(Xe),Yt.transformFlags|=Dn(Yt.condition)|Dn(Yt.questionToken)|Dn(Yt.whenTrue)|Dn(Yt.colonToken)|Dn(Yt.whenFalse),Yt.flowNodeWhenFalse=void 0,Yt.flowNodeWhenTrue=void 0,Yt}function L(v,D,B,ue,Xe,Yt){return v.condition!==D||v.questionToken!==B||v.whenTrue!==ue||v.colonToken!==Xe||v.whenFalse!==Yt?un(Wi(D,B,ue,Xe,Yt),v):v}function Fe(v,D){let B=O(229);return B.head=v,B.templateSpans=F(D),B.transformFlags|=Dn(B.head)|za(B.templateSpans)|1024,B}function Et(v,D,B){return v.head!==D||v.templateSpans!==B?un(Fe(D,B),v):v}function Er(v,D,B,ue=0){w.assert(!(ue&-7177),"Unsupported template flags.");let Xe;if(B!==void 0&&B!==D&&(Xe=iBe(v,B),typeof Xe=="object"))return w.fail("Invalid raw text");if(D===void 0){if(Xe===void 0)return w.fail("Arguments 'text' and 'rawText' may not both be undefined.");D=Xe}else Xe!==void 0&&w.assert(D===Xe,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return D}function is(v){let D=1024;return v&&(D|=128),D}function zs(v,D,B,ue){let Xe=nt(v);return Xe.text=D,Xe.rawText=B,Xe.templateFlags=ue&7176,Xe.transformFlags=is(Xe.templateFlags),Xe}function os(v,D,B,ue){let Xe=W(v);return Xe.text=D,Xe.rawText=B,Xe.templateFlags=ue&7176,Xe.transformFlags=is(Xe.templateFlags),Xe}function Ps(v,D,B,ue){return v===15?os(v,D,B,ue):zs(v,D,B,ue)}function rc(v,D,B){return v=Er(16,v,D,B),Ps(16,v,D,B)}function _a(v,D,B){return v=Er(16,v,D,B),Ps(17,v,D,B)}function eu(v,D,B){return v=Er(16,v,D,B),Ps(18,v,D,B)}function jf(v,D,B){return v=Er(16,v,D,B),os(15,v,D,B)}function g_(v,D){w.assert(!v||!!D,"A `YieldExpression` with an asteriskToken must have an expression.");let B=O(230);return B.expression=D&&i().parenthesizeExpressionForDisallowedComma(D),B.asteriskToken=v,B.transformFlags|=Dn(B.expression)|Dn(B.asteriskToken)|1024|128|1048576,B}function V_(v,D,B){return v.expression!==B||v.asteriskToken!==D?un(g_(D,B),v):v}function gy(v){let D=O(231);return D.expression=i().parenthesizeExpressionForDisallowedComma(v),D.transformFlags|=Dn(D.expression)|1024|32768,D}function gv(v,D){return v.expression!==D?un(gy(D),v):v}function Mp(v,D,B,ue,Xe){let Yt=W(232);return Yt.modifiers=$a(v),Yt.name=El(D),Yt.typeParameters=$a(B),Yt.heritageClauses=$a(ue),Yt.members=F(Xe),Yt.transformFlags|=za(Yt.modifiers)|wb(Yt.name)|za(Yt.typeParameters)|za(Yt.heritageClauses)|za(Yt.members)|(Yt.typeParameters?1:0)|1024,Yt.jsDoc=void 0,Yt}function Og(v,D,B,ue,Xe,Yt){return v.modifiers!==D||v.name!==B||v.typeParameters!==ue||v.heritageClauses!==Xe||v.members!==Yt?un(Mp(D,B,ue,Xe,Yt),v):v}function gm(){return O(233)}function Td(v,D){let B=O(234);return B.expression=i().parenthesizeLeftSideOfAccess(v,!1),B.typeArguments=D&&i().parenthesizeTypeArguments(D),B.transformFlags|=Dn(B.expression)|za(B.typeArguments)|1024,B}function Jb(v,D,B){return v.expression!==D||v.typeArguments!==B?un(Td(D,B),v):v}function Ve(v,D){let B=O(235);return B.expression=v,B.type=D,B.transformFlags|=Dn(B.expression)|Dn(B.type)|1,B}function lt(v,D,B){return v.expression!==D||v.type!==B?un(Ve(D,B),v):v}function Jt(v){let D=O(236);return D.expression=i().parenthesizeLeftSideOfAccess(v,!1),D.transformFlags|=Dn(D.expression)|1,D}function yr(v,D){return cF(v)?en(v,D):v.expression!==D?un(Jt(D),v):v}function Ur(v,D){let B=O(239);return B.expression=v,B.type=D,B.transformFlags|=Dn(B.expression)|Dn(B.type)|1,B}function Tn(v,D,B){return v.expression!==D||v.type!==B?un(Ur(D,B),v):v}function zr(v){let D=O(236);return D.flags|=64,D.expression=i().parenthesizeLeftSideOfAccess(v,!0),D.transformFlags|=Dn(D.expression)|1,D}function en(v,D){return w.assert(!!(v.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),v.expression!==D?un(zr(D),v):v}function Ci(v,D){let B=O(237);switch(B.keywordToken=v,B.name=D,B.transformFlags|=Dn(B.name),v){case 105:B.transformFlags|=1024;break;case 102:B.transformFlags|=32;break;default:return w.assertNever(v)}return B.flowNode=void 0,B}function ps(v,D){return v.name!==D?un(Ci(v.keywordToken,D),v):v}function oi(v,D){let B=O(240);return B.expression=v,B.literal=D,B.transformFlags|=Dn(B.expression)|Dn(B.literal)|1024,B}function fs(v,D,B){return v.expression!==D||v.literal!==B?un(oi(D,B),v):v}function Bi(){let v=O(241);return v.transformFlags|=1024,v}function nc(v,D){let B=O(242);return B.statements=F(v),B.multiLine=D,B.transformFlags|=za(B.statements),B.jsDoc=void 0,B.locals=void 0,B.nextContainer=void 0,B}function Zp(v,D){return v.statements!==D?un(nc(D,v.multiLine),v):v}function kd(v,D){let B=O(244);return B.modifiers=$a(v),B.declarationList=gs(D)?v1(D):D,B.transformFlags|=za(B.modifiers)|Dn(B.declarationList),Jm(B.modifiers)&128&&(B.transformFlags=1),B.jsDoc=void 0,B.flowNode=void 0,B}function _u(v,D,B){return v.modifiers!==D||v.declarationList!==B?un(kd(D,B),v):v}function xd(){let v=O(243);return v.jsDoc=void 0,v}function Lf(v){let D=O(245);return D.expression=i().parenthesizeExpressionOfExpressionStatement(v),D.transformFlags|=Dn(D.expression),D.jsDoc=void 0,D.flowNode=void 0,D}function m1(v,D){return v.expression!==D?un(Lf(D),v):v}function cg(v,D,B){let ue=O(246);return ue.expression=v,ue.thenStatement=Rh(D),ue.elseStatement=Rh(B),ue.transformFlags|=Dn(ue.expression)|Dn(ue.thenStatement)|Dn(ue.elseStatement),ue.jsDoc=void 0,ue.flowNode=void 0,ue}function Fg(v,D,B,ue){return v.expression!==D||v.thenStatement!==B||v.elseStatement!==ue?un(cg(D,B,ue),v):v}function g1(v,D){let B=O(247);return B.statement=Rh(v),B.expression=D,B.transformFlags|=Dn(B.statement)|Dn(B.expression),B.jsDoc=void 0,B.flowNode=void 0,B}function jg(v,D,B){return v.statement!==D||v.expression!==B?un(g1(D,B),v):v}function dD(v,D){let B=O(248);return B.expression=v,B.statement=Rh(D),B.transformFlags|=Dn(B.expression)|Dn(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function tN(v,D,B){return v.expression!==D||v.statement!==B?un(dD(D,B),v):v}function mD(v,D,B,ue){let Xe=O(249);return Xe.initializer=v,Xe.condition=D,Xe.incrementor=B,Xe.statement=Rh(ue),Xe.transformFlags|=Dn(Xe.initializer)|Dn(Xe.condition)|Dn(Xe.incrementor)|Dn(Xe.statement),Xe.jsDoc=void 0,Xe.locals=void 0,Xe.nextContainer=void 0,Xe.flowNode=void 0,Xe}function wh(v,D,B,ue,Xe){return v.initializer!==D||v.condition!==B||v.incrementor!==ue||v.statement!==Xe?un(mD(D,B,ue,Xe),v):v}function h1(v,D,B){let ue=O(250);return ue.initializer=v,ue.expression=D,ue.statement=Rh(B),ue.transformFlags|=Dn(ue.initializer)|Dn(ue.expression)|Dn(ue.statement),ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.flowNode=void 0,ue}function Uk(v,D,B,ue){return v.initializer!==D||v.expression!==B||v.statement!==ue?un(h1(D,B,ue),v):v}function hv(v,D,B,ue){let Xe=O(251);return Xe.awaitModifier=v,Xe.initializer=D,Xe.expression=i().parenthesizeExpressionForDisallowedComma(B),Xe.statement=Rh(ue),Xe.transformFlags|=Dn(Xe.awaitModifier)|Dn(Xe.initializer)|Dn(Xe.expression)|Dn(Xe.statement)|1024,v&&(Xe.transformFlags|=128),Xe.jsDoc=void 0,Xe.locals=void 0,Xe.nextContainer=void 0,Xe.flowNode=void 0,Xe}function Vk(v,D,B,ue,Xe){return v.awaitModifier!==D||v.initializer!==B||v.expression!==ue||v.statement!==Xe?un(hv(D,B,ue,Xe),v):v}function xC(v){let D=O(252);return D.label=El(v),D.transformFlags|=Dn(D.label)|4194304,D.jsDoc=void 0,D.flowNode=void 0,D}function rN(v,D){return v.label!==D?un(xC(D),v):v}function qk(v){let D=O(253);return D.label=El(v),D.transformFlags|=Dn(D.label)|4194304,D.jsDoc=void 0,D.flowNode=void 0,D}function CC(v,D){return v.label!==D?un(qk(D),v):v}function y1(v){let D=O(254);return D.expression=v,D.transformFlags|=Dn(D.expression)|128|4194304,D.jsDoc=void 0,D.flowNode=void 0,D}function gD(v,D){return v.expression!==D?un(y1(D),v):v}function $k(v,D){let B=O(255);return B.expression=v,B.statement=Rh(D),B.transformFlags|=Dn(B.expression)|Dn(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function wC(v,D,B){return v.expression!==D||v.statement!==B?un($k(D,B),v):v}function aT(v,D){let B=O(256);return B.expression=i().parenthesizeExpressionForDisallowedComma(v),B.caseBlock=D,B.transformFlags|=Dn(B.expression)|Dn(B.caseBlock),B.jsDoc=void 0,B.flowNode=void 0,B.possiblyExhaustive=!1,B}function Ub(v,D,B){return v.expression!==D||v.caseBlock!==B?un(aT(D,B),v):v}function IC(v,D){let B=O(257);return B.label=El(v),B.statement=Rh(D),B.transformFlags|=Dn(B.label)|Dn(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function DC(v,D,B){return v.label!==D||v.statement!==B?un(IC(D,B),v):v}function oT(v){let D=O(258);return D.expression=v,D.transformFlags|=Dn(D.expression),D.jsDoc=void 0,D.flowNode=void 0,D}function Vb(v,D){return v.expression!==D?un(oT(D),v):v}function yv(v,D,B){let ue=O(259);return ue.tryBlock=v,ue.catchClause=D,ue.finallyBlock=B,ue.transformFlags|=Dn(ue.tryBlock)|Dn(ue.catchClause)|Dn(ue.finallyBlock),ue.jsDoc=void 0,ue.flowNode=void 0,ue}function hy(v,D,B,ue){return v.tryBlock!==D||v.catchClause!==B||v.finallyBlock!==ue?un(yv(D,B,ue),v):v}function yy(){let v=O(260);return v.jsDoc=void 0,v.flowNode=void 0,v}function vy(v,D,B,ue){let Xe=W(261);return Xe.name=El(v),Xe.exclamationToken=D,Xe.type=B,Xe.initializer=ip(ue),Xe.transformFlags|=wb(Xe.name)|Dn(Xe.initializer)|(Xe.exclamationToken??Xe.type?1:0),Xe.jsDoc=void 0,Xe}function qb(v,D,B,ue,Xe){return v.name!==D||v.type!==ue||v.exclamationToken!==B||v.initializer!==Xe?un(vy(D,B,ue,Xe),v):v}function v1(v,D=0){let B=O(262);return B.flags|=D&7,B.declarations=F(v),B.transformFlags|=za(B.declarations)|4194304,D&7&&(B.transformFlags|=263168),D&4&&(B.transformFlags|=4),B}function Hk(v,D){return v.declarations!==D?un(v1(D,v.flags),v):v}function b1(v,D,B,ue,Xe,Yt,Cn){let vs=W(263);if(vs.modifiers=$a(v),vs.asteriskToken=D,vs.name=El(B),vs.typeParameters=$a(ue),vs.parameters=F(Xe),vs.type=Yt,vs.body=Cn,!vs.body||Jm(vs.modifiers)&128)vs.transformFlags=1;else{let Go=Jm(vs.modifiers)&1024,Yf=!!vs.asteriskToken,a0=Go&&Yf;vs.transformFlags=za(vs.modifiers)|Dn(vs.asteriskToken)|wb(vs.name)|za(vs.typeParameters)|za(vs.parameters)|Dn(vs.type)|Dn(vs.body)&-67108865|(a0?128:Go?256:Yf?2048:0)|(vs.typeParameters||vs.type?1:0)|4194304}return vs.typeArguments=void 0,vs.jsDoc=void 0,vs.locals=void 0,vs.nextContainer=void 0,vs.endFlowNode=void 0,vs.returnFlowNode=void 0,vs}function Ba(v,D,B,ue,Xe,Yt,Cn,vs){return v.modifiers!==D||v.asteriskToken!==B||v.name!==ue||v.typeParameters!==Xe||v.parameters!==Yt||v.type!==Cn||v.body!==vs?Qk(b1(D,B,ue,Xe,Yt,Cn,vs),v):v}function Qk(v,D){return v!==D&&v.modifiers===D.modifiers&&(v.modifiers=D.modifiers),z(v,D)}function hD(v,D,B,ue,Xe){let Yt=W(264);return Yt.modifiers=$a(v),Yt.name=El(D),Yt.typeParameters=$a(B),Yt.heritageClauses=$a(ue),Yt.members=F(Xe),Jm(Yt.modifiers)&128?Yt.transformFlags=1:(Yt.transformFlags|=za(Yt.modifiers)|wb(Yt.name)|za(Yt.typeParameters)|za(Yt.heritageClauses)|za(Yt.members)|(Yt.typeParameters?1:0)|1024,Yt.transformFlags&8192&&(Yt.transformFlags|=1)),Yt.jsDoc=void 0,Yt}function by(v,D,B,ue,Xe,Yt){return v.modifiers!==D||v.name!==B||v.typeParameters!==ue||v.heritageClauses!==Xe||v.members!==Yt?un(hD(D,B,ue,Xe,Yt),v):v}function Sy(v,D,B,ue,Xe){let Yt=W(265);return Yt.modifiers=$a(v),Yt.name=El(D),Yt.typeParameters=$a(B),Yt.heritageClauses=$a(ue),Yt.members=F(Xe),Yt.transformFlags=1,Yt.jsDoc=void 0,Yt}function Lg(v,D,B,ue,Xe,Yt){return v.modifiers!==D||v.name!==B||v.typeParameters!==ue||v.heritageClauses!==Xe||v.members!==Yt?un(Sy(D,B,ue,Xe,Yt),v):v}function Yo(v,D,B,ue){let Xe=W(266);return Xe.modifiers=$a(v),Xe.name=El(D),Xe.typeParameters=$a(B),Xe.type=ue,Xe.transformFlags=1,Xe.jsDoc=void 0,Xe.locals=void 0,Xe.nextContainer=void 0,Xe}function Lu(v,D,B,ue,Xe){return v.modifiers!==D||v.name!==B||v.typeParameters!==ue||v.type!==Xe?un(Yo(D,B,ue,Xe),v):v}function ef(v,D,B){let ue=W(267);return ue.modifiers=$a(v),ue.name=El(D),ue.members=F(B),ue.transformFlags|=za(ue.modifiers)|Dn(ue.name)|za(ue.members)|1,ue.transformFlags&=-67108865,ue.jsDoc=void 0,ue}function Wu(v,D,B,ue){return v.modifiers!==D||v.name!==B||v.members!==ue?un(ef(D,B,ue),v):v}function S1(v,D,B,ue=0){let Xe=W(268);return Xe.modifiers=$a(v),Xe.flags|=ue&2088,Xe.name=D,Xe.body=B,Jm(Xe.modifiers)&128?Xe.transformFlags=1:Xe.transformFlags|=za(Xe.modifiers)|Dn(Xe.name)|Dn(Xe.body)|1,Xe.transformFlags&=-67108865,Xe.jsDoc=void 0,Xe.locals=void 0,Xe.nextContainer=void 0,Xe}function yp(v,D,B,ue){return v.modifiers!==D||v.name!==B||v.body!==ue?un(S1(D,B,ue,v.flags),v):v}function Wg(v){let D=O(269);return D.statements=F(v),D.transformFlags|=za(D.statements),D.jsDoc=void 0,D}function Rp(v,D){return v.statements!==D?un(Wg(D),v):v}function Cd(v){let D=O(270);return D.clauses=F(v),D.transformFlags|=za(D.clauses),D.locals=void 0,D.nextContainer=void 0,D}function Gd(v,D){return v.clauses!==D?un(Cd(D),v):v}function T1(v){let D=W(271);return D.name=El(v),D.transformFlags|=r4(D.name)|1,D.modifiers=void 0,D.jsDoc=void 0,D}function k1(v,D){return v.name!==D?nN(T1(D),v):v}function nN(v,D){return v!==D&&(v.modifiers=D.modifiers),un(v,D)}function yD(v,D,B,ue){let Xe=W(272);return Xe.modifiers=$a(v),Xe.name=El(B),Xe.isTypeOnly=D,Xe.moduleReference=ue,Xe.transformFlags|=za(Xe.modifiers)|r4(Xe.name)|Dn(Xe.moduleReference),ay(Xe.moduleReference)||(Xe.transformFlags|=1),Xe.transformFlags&=-67108865,Xe.jsDoc=void 0,Xe}function vv(v,D,B,ue,Xe){return v.modifiers!==D||v.isTypeOnly!==B||v.name!==ue||v.moduleReference!==Xe?un(yD(D,B,ue,Xe),v):v}function cT(v,D,B,ue){let Xe=O(273);return Xe.modifiers=$a(v),Xe.importClause=D,Xe.moduleSpecifier=B,Xe.attributes=Xe.assertClause=ue,Xe.transformFlags|=Dn(Xe.importClause)|Dn(Xe.moduleSpecifier),Xe.transformFlags&=-67108865,Xe.jsDoc=void 0,Xe}function $e(v,D,B,ue,Xe){return v.modifiers!==D||v.importClause!==B||v.moduleSpecifier!==ue||v.attributes!==Xe?un(cT(D,B,ue,Xe),v):v}function Kk(v,D,B){let ue=W(274);return typeof v=="boolean"&&(v=v?156:void 0),ue.isTypeOnly=v===156,ue.phaseModifier=v,ue.name=D,ue.namedBindings=B,ue.transformFlags|=Dn(ue.name)|Dn(ue.namedBindings),v===156&&(ue.transformFlags|=1),ue.transformFlags&=-67108865,ue}function Ih(v,D,B,ue){return typeof D=="boolean"&&(D=D?156:void 0),v.phaseModifier!==D||v.name!==B||v.namedBindings!==ue?un(Kk(D,B,ue),v):v}function Jd(v,D){let B=O(301);return B.elements=F(v),B.multiLine=D,B.token=132,B.transformFlags|=4,B}function bv(v,D,B){return v.elements!==D||v.multiLine!==B?un(Jd(D,B),v):v}function $b(v,D){let B=O(302);return B.name=v,B.value=D,B.transformFlags|=4,B}function vp(v,D,B){return v.name!==D||v.value!==B?un($b(D,B),v):v}function hm(v,D){let B=O(303);return B.assertClause=v,B.multiLine=D,B}function wd(v,D,B){return v.assertClause!==D||v.multiLine!==B?un(hm(D,B),v):v}function x1(v,D,B){let ue=O(301);return ue.token=B??118,ue.elements=F(v),ue.multiLine=D,ue.transformFlags|=4,ue}function wa(v,D,B){return v.elements!==D||v.multiLine!==B?un(x1(D,B,v.token),v):v}function h_(v,D){let B=O(302);return B.name=v,B.value=D,B.transformFlags|=4,B}function Sv(v,D,B){return v.name!==D||v.value!==B?un(h_(D,B),v):v}function Xk(v){let D=W(275);return D.name=v,D.transformFlags|=Dn(D.name),D.transformFlags&=-67108865,D}function Ty(v,D){return v.name!==D?un(Xk(D),v):v}function lT(v){let D=W(281);return D.name=v,D.transformFlags|=Dn(D.name)|32,D.transformFlags&=-67108865,D}function q_(v,D){return v.name!==D?un(lT(D),v):v}function Dh(v){let D=O(276);return D.elements=F(v),D.transformFlags|=za(D.elements),D.transformFlags&=-67108865,D}function C1(v,D){return v.elements!==D?un(Dh(D),v):v}function Tv(v,D,B){let ue=W(277);return ue.isTypeOnly=v,ue.propertyName=D,ue.name=B,ue.transformFlags|=Dn(ue.propertyName)|Dn(ue.name),ue.transformFlags&=-67108865,ue}function lg(v,D,B,ue){return v.isTypeOnly!==D||v.propertyName!==B||v.name!==ue?un(Tv(D,B,ue),v):v}function uT(v,D,B){let ue=W(278);return ue.modifiers=$a(v),ue.isExportEquals=D,ue.expression=D?i().parenthesizeRightSideOfBinary(64,void 0,B):i().parenthesizeExpressionOfExportDefault(B),ue.transformFlags|=za(ue.modifiers)|Dn(ue.expression),ue.transformFlags&=-67108865,ue.jsDoc=void 0,ue}function w1(v,D,B){return v.modifiers!==D||v.expression!==B?un(uT(D,v.isExportEquals,B),v):v}function Wn(v,D,B,ue,Xe){let Yt=W(279);return Yt.modifiers=$a(v),Yt.isTypeOnly=D,Yt.exportClause=B,Yt.moduleSpecifier=ue,Yt.attributes=Yt.assertClause=Xe,Yt.transformFlags|=za(Yt.modifiers)|Dn(Yt.exportClause)|Dn(Yt.moduleSpecifier),Yt.transformFlags&=-67108865,Yt.jsDoc=void 0,Yt}function Nn(v,D,B,ue,Xe,Yt){return v.modifiers!==D||v.isTypeOnly!==B||v.exportClause!==ue||v.moduleSpecifier!==Xe||v.attributes!==Yt?du(Wn(D,B,ue,Xe,Yt),v):v}function du(v,D){return v!==D&&v.modifiers===D.modifiers&&(v.modifiers=D.modifiers),un(v,D)}function Yk(v){let D=O(280);return D.elements=F(v),D.transformFlags|=za(D.elements),D.transformFlags&=-67108865,D}function ky(v,D){return v.elements!==D?un(Yk(D),v):v}function pT(v,D,B){let ue=O(282);return ue.isTypeOnly=v,ue.propertyName=El(D),ue.name=El(B),ue.transformFlags|=Dn(ue.propertyName)|Dn(ue.name),ue.transformFlags&=-67108865,ue.jsDoc=void 0,ue}function vD(v,D,B,ue){return v.isTypeOnly!==D||v.propertyName!==B||v.name!==ue?un(pT(D,B,ue),v):v}function iN(){let v=W(283);return v.jsDoc=void 0,v}function Pn(v){let D=O(284);return D.expression=v,D.transformFlags|=Dn(D.expression),D.transformFlags&=-67108865,D}function bp(v,D){return v.expression!==D?un(Pn(D),v):v}function Ts(v){return O(v)}function ff(v,D,B=!1){let ue=Zk(v,B?D&&i().parenthesizeNonArrayTypeOfPostfixType(D):D);return ue.postfix=B,ue}function Zk(v,D){let B=O(v);return B.type=D,B}function Hb(v,D,B){return D.type!==B?un(ff(v,B,D.postfix),D):D}function bn(v,D,B){return D.type!==B?un(Zk(v,B),D):D}function bD(v,D){let B=W(318);return B.parameters=$a(v),B.type=D,B.transformFlags=za(B.parameters)|(B.type?1:0),B.jsDoc=void 0,B.locals=void 0,B.nextContainer=void 0,B.typeArguments=void 0,B}function PC(v,D,B){return v.parameters!==D||v.type!==B?un(bD(D,B),v):v}function rp(v,D=!1){let B=W(323);return B.jsDocPropertyTags=$a(v),B.isArrayType=D,B}function Bg(v,D,B){return v.jsDocPropertyTags!==D||v.isArrayType!==B?un(rp(D,B),v):v}function ym(v){let D=O(310);return D.type=v,D}function Qb(v,D){return v.type!==D?un(ym(D),v):v}function ex(v,D,B){let ue=W(324);return ue.typeParameters=$a(v),ue.parameters=F(D),ue.type=B,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue}function Kb(v,D,B,ue){return v.typeParameters!==D||v.parameters!==B||v.type!==ue?un(ex(D,B,ue),v):v}function y_(v){let D=nJ(v.kind);return v.tagName.escapedText===gc(D)?v.tagName:de(D)}function Ud(v,D,B){let ue=O(v);return ue.tagName=D,ue.comment=B,ue}function $_(v,D,B){let ue=W(v);return ue.tagName=D,ue.comment=B,ue}function tf(v,D,B,ue){let Xe=Ud(346,v??de("template"),ue);return Xe.constraint=D,Xe.typeParameters=F(B),Xe}function kv(v,D=y_(v),B,ue,Xe){return v.tagName!==D||v.constraint!==B||v.typeParameters!==ue||v.comment!==Xe?un(tf(D,B,ue,Xe),v):v}function I1(v,D,B,ue){let Xe=$_(347,v??de("typedef"),ue);return Xe.typeExpression=D,Xe.fullName=B,Xe.name=jJ(B),Xe.locals=void 0,Xe.nextContainer=void 0,Xe}function AC(v,D=y_(v),B,ue,Xe){return v.tagName!==D||v.typeExpression!==B||v.fullName!==ue||v.comment!==Xe?un(I1(D,B,ue,Xe),v):v}function D1(v,D,B,ue,Xe,Yt){let Cn=$_(342,v??de("param"),Yt);return Cn.typeExpression=ue,Cn.name=D,Cn.isNameFirst=!!Xe,Cn.isBracketed=B,Cn}function Xb(v,D=y_(v),B,ue,Xe,Yt,Cn){return v.tagName!==D||v.name!==B||v.isBracketed!==ue||v.typeExpression!==Xe||v.isNameFirst!==Yt||v.comment!==Cn?un(D1(D,B,ue,Xe,Yt,Cn),v):v}function EC(v,D,B,ue,Xe,Yt){let Cn=$_(349,v??de("prop"),Yt);return Cn.typeExpression=ue,Cn.name=D,Cn.isNameFirst=!!Xe,Cn.isBracketed=B,Cn}function xy(v,D=y_(v),B,ue,Xe,Yt,Cn){return v.tagName!==D||v.name!==B||v.isBracketed!==ue||v.typeExpression!==Xe||v.isNameFirst!==Yt||v.comment!==Cn?un(EC(D,B,ue,Xe,Yt,Cn),v):v}function ug(v,D,B,ue){let Xe=$_(339,v??de("callback"),ue);return Xe.typeExpression=D,Xe.fullName=B,Xe.name=jJ(B),Xe.locals=void 0,Xe.nextContainer=void 0,Xe}function Yb(v,D=y_(v),B,ue,Xe){return v.tagName!==D||v.typeExpression!==B||v.fullName!==ue||v.comment!==Xe?un(ug(D,B,ue,Xe),v):v}function P1(v,D,B){let ue=Ud(340,v??de("overload"),B);return ue.typeExpression=D,ue}function xv(v,D=y_(v),B,ue){return v.tagName!==D||v.typeExpression!==B||v.comment!==ue?un(P1(D,B,ue),v):v}function Zb(v,D,B){let ue=Ud(329,v??de("augments"),B);return ue.class=D,ue}function Vd(v,D=y_(v),B,ue){return v.tagName!==D||v.class!==B||v.comment!==ue?un(Zb(D,B,ue),v):v}function Cy(v,D,B){let ue=Ud(330,v??de("implements"),B);return ue.class=D,ue}function Ph(v,D,B){let ue=Ud(348,v??de("see"),B);return ue.name=D,ue}function e0(v,D,B,ue){return v.tagName!==D||v.name!==B||v.comment!==ue?un(Ph(D,B,ue),v):v}function tu(v){let D=O(311);return D.name=v,D}function fT(v,D){return v.name!==D?un(tu(D),v):v}function Ah(v,D){let B=O(312);return B.left=v,B.right=D,B.transformFlags|=Dn(B.left)|Dn(B.right),B}function A1(v,D,B){return v.left!==D||v.right!==B?un(Ah(D,B),v):v}function tx(v,D){let B=O(325);return B.name=v,B.text=D,B}function Eh(v,D,B){return v.name!==D?un(tx(D,B),v):v}function SD(v,D){let B=O(326);return B.name=v,B.text=D,B}function NC(v,D,B){return v.name!==D?un(SD(D,B),v):v}function MC(v,D){let B=O(327);return B.name=v,B.text=D,B}function sN(v,D,B){return v.name!==D?un(MC(D,B),v):v}function RC(v,D=y_(v),B,ue){return v.tagName!==D||v.class!==B||v.comment!==ue?un(Cy(D,B,ue),v):v}function E1(v,D,B){return Ud(v,D??de(nJ(v)),B)}function wy(v,D,B=y_(D),ue){return D.tagName!==B||D.comment!==ue?un(E1(v,B,ue),D):D}function TD(v,D,B,ue){let Xe=Ud(v,D??de(nJ(v)),ue);return Xe.typeExpression=B,Xe}function N1(v,D,B=y_(D),ue,Xe){return D.tagName!==B||D.typeExpression!==ue||D.comment!==Xe?un(TD(v,B,ue,Xe),D):D}function rx(v,D){return Ud(328,v,D)}function nl(v,D,B){return v.tagName!==D||v.comment!==B?un(rx(D,B),v):v}function ru(v,D,B){let ue=$_(341,v??de(nJ(341)),B);return ue.typeExpression=D,ue.locals=void 0,ue.nextContainer=void 0,ue}function OC(v,D=y_(v),B,ue){return v.tagName!==D||v.typeExpression!==B||v.comment!==ue?un(ru(D,B,ue),v):v}function rf(v,D,B,ue,Xe){let Yt=Ud(352,v??de("import"),Xe);return Yt.importClause=D,Yt.moduleSpecifier=B,Yt.attributes=ue,Yt.comment=Xe,Yt}function H_(v,D,B,ue,Xe,Yt){return v.tagName!==D||v.comment!==Yt||v.importClause!==B||v.moduleSpecifier!==ue||v.attributes!==Xe?un(rf(D,B,ue,Xe,Yt),v):v}function _T(v){let D=O(322);return D.text=v,D}function vm(v,D){return v.text!==D?un(_T(D),v):v}function t0(v,D){let B=O(321);return B.comment=v,B.tags=$a(D),B}function Cv(v,D,B){return v.comment!==D||v.tags!==B?un(t0(D,B),v):v}function FC(v,D,B){let ue=O(285);return ue.openingElement=v,ue.children=F(D),ue.closingElement=B,ue.transformFlags|=Dn(ue.openingElement)|za(ue.children)|Dn(ue.closingElement)|2,ue}function aN(v,D,B,ue){return v.openingElement!==D||v.children!==B||v.closingElement!==ue?un(FC(D,B,ue),v):v}function Pc(v,D,B){let ue=O(286);return ue.tagName=v,ue.typeArguments=$a(D),ue.attributes=B,ue.transformFlags|=Dn(ue.tagName)|za(ue.typeArguments)|Dn(ue.attributes)|2,ue.typeArguments&&(ue.transformFlags|=1),ue}function kD(v,D,B,ue){return v.tagName!==D||v.typeArguments!==B||v.attributes!==ue?un(Pc(D,B,ue),v):v}function nx(v,D,B){let ue=O(287);return ue.tagName=v,ue.typeArguments=$a(D),ue.attributes=B,ue.transformFlags|=Dn(ue.tagName)|za(ue.typeArguments)|Dn(ue.attributes)|2,D&&(ue.transformFlags|=1),ue}function dT(v,D,B,ue){return v.tagName!==D||v.typeArguments!==B||v.attributes!==ue?un(nx(D,B,ue),v):v}function jC(v){let D=O(288);return D.tagName=v,D.transformFlags|=Dn(D.tagName)|2,D}function np(v,D){return v.tagName!==D?un(jC(D),v):v}function _f(v,D,B){let ue=O(289);return ue.openingFragment=v,ue.children=F(D),ue.closingFragment=B,ue.transformFlags|=Dn(ue.openingFragment)|za(ue.children)|Dn(ue.closingFragment)|2,ue}function ix(v,D,B,ue){return v.openingFragment!==D||v.children!==B||v.closingFragment!==ue?un(_f(D,B,ue),v):v}function M1(v,D){let B=O(12);return B.text=v,B.containsOnlyTriviaWhiteSpaces=!!D,B.transformFlags|=2,B}function df(v,D,B){return v.text!==D||v.containsOnlyTriviaWhiteSpaces!==B?un(M1(D,B),v):v}function sx(){let v=O(290);return v.transformFlags|=2,v}function Nh(){let v=O(291);return v.transformFlags|=2,v}function LC(v,D){let B=W(292);return B.name=v,B.initializer=D,B.transformFlags|=Dn(B.name)|Dn(B.initializer)|2,B}function ax(v,D,B){return v.name!==D||v.initializer!==B?un(LC(D,B),v):v}function qd(v){let D=W(293);return D.properties=F(v),D.transformFlags|=za(D.properties)|2,D}function WC(v,D){return v.properties!==D?un(qd(D),v):v}function xD(v){let D=O(294);return D.expression=v,D.transformFlags|=Dn(D.expression)|2,D}function BC(v,D){return v.expression!==D?un(xD(D),v):v}function ox(v,D){let B=O(295);return B.dotDotDotToken=v,B.expression=D,B.transformFlags|=Dn(B.dotDotDotToken)|Dn(B.expression)|2,B}function zC(v,D){return v.expression!==D?un(ox(v.dotDotDotToken,D),v):v}function wv(v,D){let B=O(296);return B.namespace=v,B.name=D,B.transformFlags|=Dn(B.namespace)|Dn(B.name)|2,B}function Wf(v,D,B){return v.namespace!==D||v.name!==B?un(wv(D,B),v):v}function pg(v,D){let B=O(297);return B.expression=i().parenthesizeExpressionForDisallowedComma(v),B.statements=F(D),B.transformFlags|=Dn(B.expression)|za(B.statements),B.jsDoc=void 0,B}function cx(v,D,B){return v.expression!==D||v.statements!==B?un(pg(D,B),v):v}function lx(v){let D=O(298);return D.statements=F(v),D.transformFlags=za(D.statements),D}function Ja(v,D){return v.statements!==D?un(lx(D),v):v}function wn(v,D){let B=O(299);switch(B.token=v,B.types=F(D),B.transformFlags|=za(B.types),v){case 96:B.transformFlags|=1024;break;case 119:B.transformFlags|=1;break;default:return w.assertNever(v)}return B}function v_(v,D){return v.types!==D?un(wn(v.token,D),v):v}function Wl(v,D){let B=O(300);return B.variableDeclaration=Jg(v),B.block=D,B.transformFlags|=Dn(B.variableDeclaration)|Dn(B.block)|(v?0:64),B.locals=void 0,B.nextContainer=void 0,B}function R1(v,D,B){return v.variableDeclaration!==D||v.block!==B?un(Wl(D,B),v):v}function ux(v,D){let B=W(304);return B.name=El(v),B.initializer=i().parenthesizeExpressionForDisallowedComma(D),B.transformFlags|=wb(B.name)|Dn(B.initializer),B.modifiers=void 0,B.questionToken=void 0,B.exclamationToken=void 0,B.jsDoc=void 0,B}function mT(v,D,B){return v.name!==D||v.initializer!==B?O1(ux(D,B),v):v}function O1(v,D){return v!==D&&(v.modifiers=D.modifiers,v.questionToken=D.questionToken,v.exclamationToken=D.exclamationToken),un(v,D)}function px(v,D){let B=W(305);return B.name=El(v),B.objectAssignmentInitializer=D&&i().parenthesizeExpressionForDisallowedComma(D),B.transformFlags|=r4(B.name)|Dn(B.objectAssignmentInitializer)|1024,B.equalsToken=void 0,B.modifiers=void 0,B.questionToken=void 0,B.exclamationToken=void 0,B.jsDoc=void 0,B}function C(v,D,B){return v.name!==D||v.objectAssignmentInitializer!==B?pe(px(D,B),v):v}function pe(v,D){return v!==D&&(v.modifiers=D.modifiers,v.questionToken=D.questionToken,v.exclamationToken=D.exclamationToken,v.equalsToken=D.equalsToken),un(v,D)}function yt(v){let D=W(306);return D.expression=i().parenthesizeExpressionForDisallowedComma(v),D.transformFlags|=Dn(D.expression)|128|65536,D.jsDoc=void 0,D}function gr(v,D){return v.expression!==D?un(yt(D),v):v}function ui(v,D){let B=W(307);return B.name=El(v),B.initializer=D&&i().parenthesizeExpressionForDisallowedComma(D),B.transformFlags|=Dn(B.name)|Dn(B.initializer)|1,B.jsDoc=void 0,B}function xi(v,D,B){return v.name!==D||v.initializer!==B?un(ui(D,B),v):v}function cs(v,D,B){let ue=t.createBaseSourceFileNode(308);return ue.statements=F(v),ue.endOfFileToken=D,ue.flags|=B,ue.text="",ue.fileName="",ue.path="",ue.resolvedPath="",ue.originalFileName="",ue.languageVersion=1,ue.languageVariant=0,ue.scriptKind=0,ue.isDeclarationFile=!1,ue.hasNoDefaultLib=!1,ue.transformFlags|=za(ue.statements)|Dn(ue.endOfFileToken),ue.locals=void 0,ue.nextContainer=void 0,ue.endFlowNode=void 0,ue.nodeCount=0,ue.identifierCount=0,ue.symbolCount=0,ue.parseDiagnostics=void 0,ue.bindDiagnostics=void 0,ue.bindSuggestionDiagnostics=void 0,ue.lineMap=void 0,ue.externalModuleIndicator=void 0,ue.setExternalModuleIndicator=void 0,ue.pragmas=void 0,ue.checkJsDirective=void 0,ue.referencedFiles=void 0,ue.typeReferenceDirectives=void 0,ue.libReferenceDirectives=void 0,ue.amdDependencies=void 0,ue.commentDirectives=void 0,ue.identifiers=void 0,ue.packageJsonLocations=void 0,ue.packageJsonScope=void 0,ue.imports=void 0,ue.moduleAugmentations=void 0,ue.ambientModuleNames=void 0,ue.classifiableNames=void 0,ue.impliedNodeFormat=void 0,ue}function ki(v){let D=Object.create(v.redirectTarget);return Object.defineProperties(D,{id:{get(){return this.redirectInfo.redirectTarget.id},set(B){this.redirectInfo.redirectTarget.id=B}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(B){this.redirectInfo.redirectTarget.symbol=B}}}),D.redirectInfo=v,D}function Pa(v){let D=ki(v.redirectInfo);return D.flags|=v.flags&-17,D.fileName=v.fileName,D.path=v.path,D.resolvedPath=v.resolvedPath,D.originalFileName=v.originalFileName,D.packageJsonLocations=v.packageJsonLocations,D.packageJsonScope=v.packageJsonScope,D.emitNode=void 0,D}function il(v){let D=t.createBaseSourceFileNode(308);D.flags|=v.flags&-17;for(let B in v)if(!(_o(D,B)||!_o(v,B))){if(B==="emitNode"){D.emitNode=void 0;continue}D[B]=v[B]}return D}function Bu(v){let D=v.redirectInfo?Pa(v):il(v);return n(D,v),D}function Op(v,D,B,ue,Xe,Yt,Cn){let vs=Bu(v);return vs.statements=F(D),vs.isDeclarationFile=B,vs.referencedFiles=ue,vs.typeReferenceDirectives=Xe,vs.hasNoDefaultLib=Yt,vs.libReferenceDirectives=Cn,vs.transformFlags=za(vs.statements)|Dn(vs.endOfFileToken),vs}function F1(v,D,B=v.isDeclarationFile,ue=v.referencedFiles,Xe=v.typeReferenceDirectives,Yt=v.hasNoDefaultLib,Cn=v.libReferenceDirectives){return v.statements!==D||v.isDeclarationFile!==B||v.referencedFiles!==ue||v.typeReferenceDirectives!==Xe||v.hasNoDefaultLib!==Yt||v.libReferenceDirectives!==Cn?un(Op(v,D,B,ue,Xe,Yt,Cn),v):v}function Fp(v){let D=O(309);return D.sourceFiles=v,D.syntheticFileReferences=void 0,D.syntheticTypeReferences=void 0,D.syntheticLibReferences=void 0,D.hasNoDefaultLib=void 0,D}function r0(v,D){return v.sourceFiles!==D?un(Fp(D),v):v}function GC(v,D=!1,B){let ue=O(238);return ue.type=v,ue.isSpread=D,ue.tupleNameSource=B,ue}function Id(v){let D=O(353);return D._children=v,D}function oc(v){let D=O(354);return D.original=v,mt(D,v),D}function fx(v,D){let B=O(356);return B.expression=v,B.original=D,B.transformFlags|=Dn(B.expression)|1,mt(B,D),B}function Iv(v,D){return v.expression!==D?un(fx(D,v.original),v):v}function $d(){return O(355)}function Dv(v){if(ko(v)&&!EP(v)&&!v.original&&!v.emitNode&&!v.id){if(JA(v))return v.elements;if(vn(v)&&oie(v.operatorToken))return[v.left,v.right]}return v}function gT(v){let D=O(357);return D.elements=F(NY(v,Dv)),D.transformFlags|=za(D.elements),D}function DL(v,D){return v.elements!==D?un(gT(D),v):v}function oN(v,D){let B=O(358);return B.expression=v,B.thisArg=D,B.transformFlags|=Dn(B.expression)|Dn(B.thisArg),B}function JC(v,D,B){return v.expression!==D||v.thisArg!==B?un(oN(D,B),v):v}function cN(v){let D=oe(v.escapedText);return D.flags|=v.flags&-17,D.transformFlags=v.transformFlags,n(D,v),a4(D,{...v.emitNode.autoGenerate}),D}function m3(v){let D=oe(v.escapedText);D.flags|=v.flags&-17,D.jsDoc=v.jsDoc,D.flowNode=v.flowNode,D.symbol=v.symbol,D.transformFlags=v.transformFlags,n(D,v);let B=dk(v);return B&&iv(D,B),D}function n0(v){let D=ye(v.escapedText);return D.flags|=v.flags&-17,D.transformFlags=v.transformFlags,n(D,v),a4(D,{...v.emitNode.autoGenerate}),D}function UC(v){let D=ye(v.escapedText);return D.flags|=v.flags&-17,D.transformFlags=v.transformFlags,n(D,v),D}function _x(v){if(v===void 0)return v;if(Li(v))return Bu(v);if(ec(v))return cN(v);if(Be(v))return m3(v);if(HT(v))return n0(v);if(zi(v))return UC(v);let D=lF(v.kind)?t.createBaseNode(v.kind):t.createBaseTokenNode(v.kind);D.flags|=v.flags&-17,D.transformFlags=v.transformFlags,n(D,v);for(let B in v)_o(D,B)||!_o(v,B)||(D[B]=v[B]);return D}function PL(v,D,B){return Vr(Ff(void 0,void 0,void 0,void 0,D?[D]:[],void 0,nc(v,!0)),void 0,B?[B]:[])}function hT(v,D,B){return Vr(U_(void 0,void 0,D?[D]:[],void 0,void 0,nc(v,!0)),void 0,B?[B]:[])}function dx(){return mm($("0"))}function lN(v){return uT(void 0,!1,v)}function VC(v){return Wn(void 0,!1,Yk([pT(!1,void 0,v)]))}function Xi(v,D){return D==="null"?E.createStrictEquality(v,Ne()):D==="undefined"?E.createStrictEquality(v,dx()):E.createStrictEquality(Yp(v),_e(D))}function i0(v,D){return D==="null"?E.createStrictInequality(v,Ne()):D==="undefined"?E.createStrictInequality(v,dx()):E.createStrictInequality(Yp(v),_e(D))}function Yr(v,D,B){return qT(v)?ja(Eo(v,void 0,D),void 0,void 0,B):Vr(ul(v,D),void 0,B)}function uN(v,D,B){return Yr(v,"bind",[D,...B])}function CD(v,D,B){return Yr(v,"call",[D,...B])}function wD(v,D,B){return Yr(v,"apply",[D,B])}function yT(v,D,B){return Yr(de(v),D,B)}function g3(v,D){return Yr(v,"slice",D===void 0?[]:[Ev(D)])}function mx(v,D){return Yr(v,"concat",D)}function AL(v,D,B){return yT("Object","defineProperty",[v,Ev(D),B])}function ID(v,D){return yT("Object","getOwnPropertyDescriptor",[v,Ev(D)])}function zg(v,D,B){return yT("Reflect","get",B?[v,D,B]:[v,D])}function h3(v,D,B,ue){return yT("Reflect","set",ue?[v,D,B,ue]:[v,D,B])}function j1(v,D,B){return B?(v.push(ux(D,B)),!0):!1}function EL(v,D){let B=[];j1(B,"enumerable",Ev(v.enumerable)),j1(B,"configurable",Ev(v.configurable));let ue=j1(B,"writable",Ev(v.writable));ue=j1(B,"value",v.value)||ue;let Xe=j1(B,"get",v.get);return Xe=j1(B,"set",v.set)||Xe,w.assert(!(ue&&Xe),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),so(B,!D)}function pN(v,D){switch(v.kind){case 218:return Zl(v,D);case 217:return Xf(v,v.type,D);case 235:return lt(v,D,v.type);case 239:return Tn(v,D,v.type);case 236:return yr(v,D);case 234:return Jb(v,D,v.typeArguments);case 356:return Iv(v,D)}}function y3(v){return Pp(v)&&ko(v)&&ko(nv(v))&&ko($m(v))&&!_t(uI(v))&&!_t(s4(v))}function fN(v,D,B=63){return v&&k7(v,B)&&!y3(v)?pN(v,fN(v.expression,D)):D}function L1(v,D,B){if(!D)return v;let ue=DC(D,D.label,Eb(D.statement)?L1(v,D.statement):v);return B&&B(D),ue}function Gg(v,D){let B=Qa(v);switch(B.kind){case 80:return D;case 110:case 9:case 10:case 11:return!1;case 210:return B.elements.length!==0;case 211:return B.properties.length>0;default:return!0}}function DD(v,D,B,ue=!1){let Xe=Nc(v,63),Yt,Cn;return of(Xe)?(Yt=te(),Cn=Xe):WA(Xe)?(Yt=te(),Cn=B!==void 0&&B<2?mt(de("_super"),Xe):Xe):Oa(Xe)&8192?(Yt=dx(),Cn=i().parenthesizeLeftSideOfAccess(Xe,!1)):Ln(Xe)?Gg(Xe.expression,ue)?(Yt=ve(D),Cn=ul(mt(E.createAssignment(Yt,Xe.expression),Xe.expression),Xe.name),mt(Cn,Xe)):(Yt=Xe.expression,Cn=Xe):xo(Xe)?Gg(Xe.expression,ue)?(Yt=ve(D),Cn=Cu(mt(E.createAssignment(Yt,Xe.expression),Xe.expression),Xe.argumentExpression),mt(Cn,Xe)):(Yt=Xe.expression,Cn=Xe):(Yt=dx(),Cn=i().parenthesizeLeftSideOfAccess(v,!1)),{target:Cn,thisArg:Yt}}function fg(v,D){return ul(fu(so([Z(void 0,"value",[bi(void 0,void 0,v,void 0,void 0,void 0)],nc([Lf(D)]))])),"value")}function Y(v){return v.length>10?gT(v):lp(v,E.createComma)}function De(v,D,B,ue=0,Xe){let Yt=Xe?v&&tF(v):Ss(v);if(Yt&&Be(Yt)&&!ec(Yt)){let Cn=Ka(mt(_x(Yt),Yt),Yt.parent);return ue|=Oa(Yt),B||(ue|=96),D||(ue|=3072),ue&&yn(Cn,ue),Cn}return Je(v)}function Ze(v,D,B){return De(v,D,B,98304)}function Dt(v,D,B,ue){return De(v,D,B,32768,ue)}function Xt(v,D,B){return De(v,D,B,16384)}function lr(v,D,B){return De(v,D,B)}function qn(v,D,B,ue){let Xe=ul(v,ko(D)?D:_x(D));mt(Xe,D);let Yt=0;return ue||(Yt|=96),B||(Yt|=3072),Yt&&yn(Xe,Yt),Xe}function xn(v,D,B,ue){return v&&ri(D,32)?qn(v,De(D),B,ue):Xt(D,B,ue)}function rn(v,D,B,ue){let Xe=Co(v,D,0,B);return po(v,D,Xe,ue)}function mi(v){return ya(v.expression)&&v.expression.text==="use strict"}function Hi(){return Yu(Lf(_e("use strict")))}function Co(v,D,B=0,ue){w.assert(D.length===0,"Prologue directives should be at the first statement in the target statements array");let Xe=!1,Yt=v.length;for(;B<Yt;){let Cn=v[B];if(Lm(Cn))mi(Cn)&&(Xe=!0),D.push(Cn);else break;B++}return ue&&!Xe&&D.push(Hi()),B}function po(v,D,B,ue,Xe=cS){let Yt=v.length;for(;B!==void 0&&B<Yt;){let Cn=v[B];if(Oa(Cn)&2097152&&Xe(Cn))Fr(D,ue?rt(Cn,ue,Ei):Cn);else break;B++}return B}function Ua(v){return RJ(v)?v:mt(F([Hi(),...v]),v)}function Q_(v){return w.assert(Fi(v,_te),"Cannot lift nodes to a Block."),eh(v)||nc(v)}function b_(v,D,B){let ue=B;for(;ue<v.length&&D(v[ue]);)ue++;return ue}function Pv(v,D){if(!_t(D))return v;let B=b_(v,Lm,0),ue=b_(v,RF,B),Xe=b_(v,OF,ue),Yt=b_(D,Lm,0),Cn=b_(D,RF,Yt),vs=b_(D,OF,Cn),Go=b_(D,ZM,vs);w.assert(Go===D.length,"Expected declarations to be valid standard or custom prologues");let Yf=_S(v)?v.slice():v;if(Go>vs&&Yf.splice(Xe,0,...D.slice(vs,Go)),vs>Cn&&Yf.splice(ue,0,...D.slice(Cn,vs)),Cn>Yt&&Yf.splice(B,0,...D.slice(Yt,Cn)),Yt>0)if(B===0)Yf.splice(0,0,...D.slice(0,Yt));else{let a0=new Map;for(let bm=0;bm<B;bm++){let $C=v[bm];a0.set($C.expression.text,!0)}for(let bm=Yt-1;bm>=0;bm--){let $C=D[bm];a0.has($C.expression.text)||Yf.unshift($C)}}return _S(v)?mt(F(Yf,v.hasTrailingComma),v):v}function Av(v,D){let B;return typeof D=="number"?B=St(D):B=D,Ho(v)?Hr(v,B,v.name,v.constraint,v.default):Gi(v)?us(v,B,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):fI(v)?Zr(v,B,v.typeParameters,v.parameters,v.type):mp(v)?zn(v,B,v.name,v.questionToken,v.type):hs(v)?qe(v,B,v.name,v.questionToken??v.exclamationToken,v.type,v.initializer):jd(v)?ar(v,B,v.name,v.questionToken,v.typeParameters,v.parameters,v.type):hc(v)?Xn(v,B,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):yc(v)?Ds(v,B,v.parameters,v.body):B_(v)?se(v,B,v.name,v.parameters,v.type,v.body):uf(v)?Ee(v,B,v.name,v.parameters,v.body):Pb(v)?Rt(v,B,v.parameters,v.type):Ao(v)?hp(v,B,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):Fo(v)?Rg(v,B,v.typeParameters,v.parameters,v.type,v.equalsGreaterThanToken,v.body):Zc(v)?Og(v,B,v.name,v.typeParameters,v.heritageClauses,v.members):Qc(v)?_u(v,B,v.declarationList):Gc(v)?Ba(v,B,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):hl(v)?by(v,B,v.name,v.typeParameters,v.heritageClauses,v.members):uu(v)?Lg(v,B,v.name,v.typeParameters,v.heritageClauses,v.members):gd(v)?Lu(v,B,v.name,v.typeParameters,v.type):H0(v)?Wu(v,B,v.name,v.members):el(v)?yp(v,B,v.name,v.body):Dl(v)?vv(v,B,v.isTypeOnly,v.name,v.moduleReference):ac(v)?$e(v,B,v.importClause,v.moduleSpecifier,v.attributes):Qo(v)?w1(v,B,v.expression):tl(v)?Nn(v,B,v.isTypeOnly,v.exportClause,v.moduleSpecifier,v.attributes):w.assertNever(v)}function Mh(v,D){return Gi(v)?us(v,D,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):hs(v)?qe(v,D,v.name,v.questionToken??v.exclamationToken,v.type,v.initializer):hc(v)?Xn(v,D,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):B_(v)?se(v,D,v.name,v.parameters,v.type,v.body):uf(v)?Ee(v,D,v.name,v.parameters,v.body):Zc(v)?Og(v,D,v.name,v.typeParameters,v.heritageClauses,v.members):hl(v)?by(v,D,v.name,v.typeParameters,v.heritageClauses,v.members):w.assertNever(v)}function s0(v,D){switch(v.kind){case 178:return se(v,v.modifiers,D,v.parameters,v.type,v.body);case 179:return Ee(v,v.modifiers,D,v.parameters,v.body);case 175:return Xn(v,v.modifiers,v.asteriskToken,D,v.questionToken,v.typeParameters,v.parameters,v.type,v.body);case 174:return ar(v,v.modifiers,D,v.questionToken,v.typeParameters,v.parameters,v.type);case 173:return qe(v,v.modifiers,D,v.questionToken??v.exclamationToken,v.type,v.initializer);case 172:return zn(v,v.modifiers,D,v.questionToken,v.type);case 304:return mT(v,D,v.initializer)}}function $a(v){return v?F(v):void 0}function El(v){return typeof v=="string"?de(v):v}function Ev(v){return typeof v=="string"?_e(v):typeof v=="number"?$(v):typeof v=="boolean"?v?Ie():xe():v}function ip(v){return v&&i().parenthesizeExpressionForDisallowedComma(v)}function qC(v){return typeof v=="number"?ae(v):v}function Rh(v){return v&&Tie(v)?mt(n(xd(),v),v):v}function Jg(v){return typeof v=="string"||v&&!li(v)?vy(v,void 0,void 0,void 0):v}function un(v,D){return v!==D&&(n(v,D),mt(v,D)),v}}function nJ(e){switch(e){case 345:return"type";case 343:return"returns";case 344:return"this";case 341:return"enum";case 331:return"author";case 333:return"class";case 334:return"public";case 335:return"private";case 336:return"protected";case 337:return"readonly";case 338:return"override";case 346:return"template";case 347:return"typedef";case 342:return"param";case 349:return"prop";case 339:return"callback";case 340:return"overload";case 329:return"augments";case 330:return"implements";case 352:return"import";default:return w.fail(`Unsupported kind: ${w.formatSyntaxKind(e)}`)}}var rv,h0e={};function iBe(e,t){switch(rv||(rv=ih(99,!1,0)),e){case 15:rv.setText("`"+t+"`");break;case 16:rv.setText("`"+t+"${");break;case 17:rv.setText("}"+t+"${");break;case 18:rv.setText("}"+t+"`");break}let n=rv.scan();if(n===20&&(n=rv.reScanTemplateToken(!1)),rv.isUnterminated())return rv.setText(void 0),h0e;let i;switch(n){case 15:case 16:case 17:case 18:i=rv.getTokenValue();break}return i===void 0||rv.scan()!==1?(rv.setText(void 0),h0e):(rv.setText(void 0),i)}function wb(e){return e&&Be(e)?r4(e):Dn(e)}function r4(e){return Dn(e)&-67108865}function sBe(e,t){return t|e.transformFlags&134234112}function Dn(e){if(!e)return 0;let t=e.transformFlags&~aBe(e.kind);return Vl(e)&&ol(e.name)?sBe(e.name,t):t}function za(e){return e?e.transformFlags:0}function y0e(e){let t=0;for(let n of e)t|=Dn(n);e.transformFlags=t}function aBe(e){if(e>=183&&e<=206)return-2;switch(e){case 214:case 215:case 210:return-2147450880;case 268:return-1941676032;case 170:return-2147483648;case 220:return-2072174592;case 219:case 263:return-1937940480;case 262:return-2146893824;case 264:case 232:return-2147344384;case 177:return-1937948672;case 173:return-2013249536;case 175:case 178:case 179:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 169:case 172:case 174:case 180:case 181:case 182:case 265:case 266:return-2;case 211:return-2147278848;case 300:return-2147418112;case 207:case 208:return-2147450880;case 217:case 239:case 235:case 356:case 218:case 108:return-2147483648;case 212:case 213:return-2147483648;default:return-2147483648}}var Z8=Gne();function e7(e){return e.flags|=16,e}var oBe={createBaseSourceFileNode:e=>e7(Z8.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>e7(Z8.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>e7(Z8.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>e7(Z8.createBaseTokenNode(e)),createBaseNode:e=>e7(Z8.createBaseNode(e))},A=t4(4,oBe),v0e;function b0e(e,t,n){return new(v0e||(v0e=bu.getSourceMapSourceConstructor()))(e,t,n)}function Rn(e,t){if(e.original!==t&&(e.original=t,t)){let n=t.emitNode;n&&(e.emitNode=cBe(n,e.emitNode))}return e}function cBe(e,t){let{flags:n,internalFlags:i,leadingComments:s,trailingComments:o,commentRange:c,sourceMapRange:p,tokenSourceMapRanges:u,constantValue:g,helpers:d,startsOnNewLine:h,snippetElement:S,classThis:T,assignedName:x}=e;if(t||(t={}),n&&(t.flags=n),i&&(t.internalFlags=i&-9),s&&(t.leadingComments=Gn(s.slice(),t.leadingComments)),o&&(t.trailingComments=Gn(o.slice(),t.trailingComments)),c&&(t.commentRange=c),p&&(t.sourceMapRange=p),u&&(t.tokenSourceMapRanges=lBe(u,t.tokenSourceMapRanges)),g!==void 0&&(t.constantValue=g),d)for(let I of d)t.helpers=qh(t.helpers,I);return h!==void 0&&(t.startsOnNewLine=h),S!==void 0&&(t.snippetElement=S),T&&(t.classThis=T),x&&(t.assignedName=x),t}function lBe(e,t){t||(t=[]);for(let n in e)t[n]=e[n];return t}function Ou(e){if(e.emitNode)w.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(EP(e)){if(e.kind===308)return e.emitNode={annotatedNodes:[e]};let t=Nr(As(Nr(e)))??w.fail("Could not determine parsed source file.");Ou(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function iJ(e){var t,n;let i=(n=(t=Nr(As(e)))==null?void 0:t.emitNode)==null?void 0:n.annotatedNodes;if(i)for(let s of i)s.emitNode=void 0}function n4(e){let t=Ou(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function yn(e,t){return Ou(e).flags=t,e}function qm(e,t){let n=Ou(e);return n.flags=n.flags|t,e}function i4(e,t){return Ou(e).internalFlags=t,e}function _k(e,t){let n=Ou(e);return n.internalFlags=n.internalFlags|t,e}function nv(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function Ia(e,t){return Ou(e).sourceMapRange=t,e}function S0e(e,t){var n,i;return(i=(n=e.emitNode)==null?void 0:n.tokenSourceMapRanges)==null?void 0:i[t]}function Hne(e,t,n){let i=Ou(e),s=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return s[t]=n,e}function OA(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function t7(e,t){return Ou(e).startsOnNewLine=t,e}function $m(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function gl(e,t){return Ou(e).commentRange=t,e}function uI(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function G0(e,t){return Ou(e).leadingComments=t,e}function Ib(e,t,n,i){return G0(e,Fr(uI(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))}function s4(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function R2(e,t){return Ou(e).trailingComments=t,e}function FA(e,t,n,i){return R2(e,Fr(s4(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))}function Qne(e,t){G0(e,uI(t)),R2(e,s4(t));let n=Ou(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function Kne(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function Xne(e,t){let n=Ou(e);return n.constantValue=t,e}function O2(e,t){let n=Ou(e);return n.helpers=Fr(n.helpers,t),e}function vh(e,t){if(_t(t)){let n=Ou(e);for(let i of t)n.helpers=qh(n.helpers,i)}return e}function T0e(e,t){var n;let i=(n=e.emitNode)==null?void 0:n.helpers;return i?_P(i,t):!1}function sJ(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function Yne(e,t,n){let i=e.emitNode,s=i&&i.helpers;if(!_t(s))return;let o=Ou(t),c=0;for(let p=0;p<s.length;p++){let u=s[p];n(u)?(c++,o.helpers=qh(o.helpers,u)):c>0&&(s[p-c]=u)}c>0&&(s.length-=c)}function aJ(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function oJ(e,t){let n=Ou(e);return n.snippetElement=t,e}function cJ(e){return Ou(e).internalFlags|=4,e}function Zne(e,t){let n=Ou(e);return n.typeNode=t,e}function eie(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function iv(e,t){return Ou(e).identifierTypeArguments=t,e}function dk(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function a4(e,t){return Ou(e).autoGenerate=t,e}function k0e(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function tie(e,t){return Ou(e).generatedImportReference=t,e}function rie(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var nie=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(nie||{});function iie(e){let t=e.factory,n=up(()=>i4(t.createTrue(),8)),i=up(()=>i4(t.createFalse(),8));return{getUnscopedHelperName:s,createDecorateHelper:o,createMetadataHelper:c,createParamHelper:p,createESDecorateHelper:I,createRunInitializersHelper:P,createAssignHelper:E,createAwaitHelper:F,createAsyncGeneratorHelper:O,createAsyncDelegatorHelper:W,createAsyncValuesHelper:z,createRestHelper:$,createAwaiterHelper:X,createExtendsHelper:U,createTemplateObjectHelper:_e,createSpreadArrayHelper:re,createPropKeyHelper:V,createSetFunctionNameHelper:ce,createValuesHelper:oe,createReadHelper:le,createGeneratorHelper:de,createImportStarHelper:ve,createImportStarCallbackHelper:H,createImportDefaultHelper:Se,createExportStarHelper:Je,createClassPrivateFieldGetHelper:ye,createClassPrivateFieldSetHelper:ee,createClassPrivateFieldInHelper:ge,createAddDisposableResourceHelper:ke,createDisposeResourcesHelper:Oe,createRewriteRelativeImportExtensionsHelper:nt};function s(ae){return yn(t.createIdentifier(ae),8196)}function o(ae,Ue,te,Ne){e.requestEmitHelper(uBe);let Ie=[];return Ie.push(t.createArrayLiteralExpression(ae,!0)),Ie.push(Ue),te&&(Ie.push(te),Ne&&Ie.push(Ne)),t.createCallExpression(s("__decorate"),void 0,Ie)}function c(ae,Ue){return e.requestEmitHelper(pBe),t.createCallExpression(s("__metadata"),void 0,[t.createStringLiteral(ae),Ue])}function p(ae,Ue,te){return e.requestEmitHelper(fBe),mt(t.createCallExpression(s("__param"),void 0,[t.createNumericLiteral(Ue+""),ae]),te)}function u(ae){let Ue=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),ae.name),t.createPropertyAssignment(t.createIdentifier("metadata"),ae.metadata)];return t.createObjectLiteralExpression(Ue)}function g(ae){let Ue=ae.computed?t.createElementAccessExpression(t.createIdentifier("obj"),ae.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),ae.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,Ue))}function d(ae){let Ue=ae.computed?t.createElementAccessExpression(t.createIdentifier("obj"),ae.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),ae.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement(t.createAssignment(Ue,t.createIdentifier("value")))])))}function h(ae){let Ue=ae.computed?ae.name:Be(ae.name)?t.createStringLiteralFromNode(ae.name):ae.name;return t.createPropertyAssignment("has",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,t.createBinaryExpression(Ue,103,t.createIdentifier("obj"))))}function S(ae,Ue){let te=[];return te.push(h(ae)),Ue.get&&te.push(g(ae)),Ue.set&&te.push(d(ae)),t.createObjectLiteralExpression(te)}function T(ae){let Ue=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(ae.kind)),t.createPropertyAssignment(t.createIdentifier("name"),ae.name.computed?ae.name.name:t.createStringLiteralFromNode(ae.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),ae.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),ae.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),S(ae.name,ae.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),ae.metadata)];return t.createObjectLiteralExpression(Ue)}function x(ae){return ae.kind==="class"?u(ae):T(ae)}function I(ae,Ue,te,Ne,Ie,xe){return e.requestEmitHelper(_Be),t.createCallExpression(s("__esDecorate"),void 0,[ae??t.createNull(),Ue??t.createNull(),te,x(Ne),Ie,xe])}function P(ae,Ue,te){return e.requestEmitHelper(dBe),t.createCallExpression(s("__runInitializers"),void 0,te?[ae,Ue,te]:[ae,Ue])}function E(ae){return xa(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,ae):(e.requestEmitHelper(mBe),t.createCallExpression(s("__assign"),void 0,ae))}function F(ae){return e.requestEmitHelper(r7),t.createCallExpression(s("__await"),void 0,[ae])}function O(ae,Ue){return e.requestEmitHelper(r7),e.requestEmitHelper(gBe),(ae.emitNode||(ae.emitNode={})).flags|=1572864,t.createCallExpression(s("__asyncGenerator"),void 0,[Ue?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),ae])}function W(ae){return e.requestEmitHelper(r7),e.requestEmitHelper(hBe),t.createCallExpression(s("__asyncDelegator"),void 0,[ae])}function z(ae){return e.requestEmitHelper(yBe),t.createCallExpression(s("__asyncValues"),void 0,[ae])}function $(ae,Ue,te,Ne){e.requestEmitHelper(vBe);let Ie=[],xe=0;for(let Qe=0;Qe<Ue.length-1;Qe++){let St=FJ(Ue[Qe]);if(St)if(na(St)){w.assertIsDefined(te,"Encountered computed property name but 'computedTempVariables' argument was not provided.");let Bt=te[xe];xe++,Ie.push(t.createConditionalExpression(t.createTypeCheck(Bt,"symbol"),void 0,Bt,void 0,t.createAdd(Bt,t.createStringLiteral(""))))}else Ie.push(t.createStringLiteralFromNode(St))}return t.createCallExpression(s("__rest"),void 0,[ae,mt(t.createArrayLiteralExpression(Ie),Ne)])}function X(ae,Ue,te,Ne,Ie){e.requestEmitHelper(bBe);let xe=t.createFunctionExpression(void 0,t.createToken(42),void 0,void 0,Ne??[],void 0,Ie);return(xe.emitNode||(xe.emitNode={})).flags|=1572864,t.createCallExpression(s("__awaiter"),void 0,[ae?t.createThis():t.createVoidZero(),Ue??t.createVoidZero(),te?m4(t,te):t.createVoidZero(),xe])}function U(ae){return e.requestEmitHelper(SBe),t.createCallExpression(s("__extends"),void 0,[ae,t.createUniqueName("_super",48)])}function _e(ae,Ue){return e.requestEmitHelper(TBe),t.createCallExpression(s("__makeTemplateObject"),void 0,[ae,Ue])}function re(ae,Ue,te){return e.requestEmitHelper(xBe),t.createCallExpression(s("__spreadArray"),void 0,[ae,Ue,te?n():i()])}function V(ae){return e.requestEmitHelper(CBe),t.createCallExpression(s("__propKey"),void 0,[ae])}function ce(ae,Ue,te){return e.requestEmitHelper(wBe),e.factory.createCallExpression(s("__setFunctionName"),void 0,te?[ae,Ue,e.factory.createStringLiteral(te)]:[ae,Ue])}function oe(ae){return e.requestEmitHelper(IBe),t.createCallExpression(s("__values"),void 0,[ae])}function le(ae,Ue){return e.requestEmitHelper(kBe),t.createCallExpression(s("__read"),void 0,Ue!==void 0?[ae,t.createNumericLiteral(Ue+"")]:[ae])}function de(ae){return e.requestEmitHelper(DBe),t.createCallExpression(s("__generator"),void 0,[t.createThis(),ae])}function ve(ae){return e.requestEmitHelper(C0e),t.createCallExpression(s("__importStar"),void 0,[ae])}function H(){return e.requestEmitHelper(C0e),s("__importStar")}function Se(ae){return e.requestEmitHelper(ABe),t.createCallExpression(s("__importDefault"),void 0,[ae])}function Je(ae,Ue=t.createIdentifier("exports")){return e.requestEmitHelper(EBe),e.requestEmitHelper(aie),t.createCallExpression(s("__exportStar"),void 0,[ae,Ue])}function ye(ae,Ue,te,Ne){e.requestEmitHelper(NBe);let Ie;return Ne?Ie=[ae,Ue,t.createStringLiteral(te),Ne]:Ie=[ae,Ue,t.createStringLiteral(te)],t.createCallExpression(s("__classPrivateFieldGet"),void 0,Ie)}function ee(ae,Ue,te,Ne,Ie){e.requestEmitHelper(MBe);let xe;return Ie?xe=[ae,Ue,te,t.createStringLiteral(Ne),Ie]:xe=[ae,Ue,te,t.createStringLiteral(Ne)],t.createCallExpression(s("__classPrivateFieldSet"),void 0,xe)}function ge(ae,Ue){return e.requestEmitHelper(RBe),t.createCallExpression(s("__classPrivateFieldIn"),void 0,[ae,Ue])}function ke(ae,Ue,te){return e.requestEmitHelper(OBe),t.createCallExpression(s("__addDisposableResource"),void 0,[ae,Ue,te?t.createTrue():t.createFalse()])}function Oe(ae){return e.requestEmitHelper(FBe),t.createCallExpression(s("__disposeResources"),void 0,[ae])}function nt(ae){return e.requestEmitHelper(jBe),t.createCallExpression(s("__rewriteRelativeImportExtension"),void 0,e.getCompilerOptions().jsx===1?[ae,t.createTrue()]:[ae])}}function sie(e,t){return e===t||e.priority===t.priority?0:e.priority===void 0?1:t.priority===void 0?-1:Po(e.priority,t.priority)}function x0e(e,...t){return n=>{let i="";for(let s=0;s<t.length;s++)i+=e[s],i+=n(t[s]);return i+=e[e.length-1],i}}var uBe={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:`
|
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};`},pBe={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:`
|
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};`},fBe={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:`
|
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
};`},_Be={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:`
|
|
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
var _, done = false;
|
|
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
var context = {};
|
|
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
if (kind === "accessor") {
|
|
if (result === void 0) continue;
|
|
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
if (_ = accept(result.get)) descriptor.get = _;
|
|
if (_ = accept(result.set)) descriptor.set = _;
|
|
if (_ = accept(result.init)) initializers.unshift(_);
|
|
}
|
|
else if (_ = accept(result)) {
|
|
if (kind === "field") initializers.unshift(_);
|
|
else descriptor[key] = _;
|
|
}
|
|
}
|
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
done = true;
|
|
};`},dBe={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:`
|
|
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
var useValue = arguments.length > 2;
|
|
for (var i = 0; i < initializers.length; i++) {
|
|
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
}
|
|
return useValue ? value : void 0;
|
|
};`},mBe={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:`
|
|
var __assign = (this && this.__assign) || function () {
|
|
__assign = Object.assign || function(t) {
|
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
s = arguments[i];
|
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
t[p] = s[p];
|
|
}
|
|
return t;
|
|
};
|
|
return __assign.apply(this, arguments);
|
|
};`},r7={name:"typescript:await",importName:"__await",scoped:!1,text:`
|
|
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},gBe={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[r7],text:`
|
|
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
function fulfill(value) { resume("next", value); }
|
|
function reject(value) { resume("throw", value); }
|
|
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
};`},hBe={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[r7],text:`
|
|
var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
|
|
var i, p;
|
|
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
};`},yBe={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:`
|
|
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
var m = o[Symbol.asyncIterator], i;
|
|
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
};`},vBe={name:"typescript:rest",importName:"__rest",scoped:!1,text:`
|
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
var t = {};
|
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
t[p] = s[p];
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
t[p[i]] = s[p[i]];
|
|
}
|
|
return t;
|
|
};`},bBe={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:`
|
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
});
|
|
};`},SBe={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:`
|
|
var __extends = (this && this.__extends) || (function () {
|
|
var extendStatics = function (d, b) {
|
|
extendStatics = Object.setPrototypeOf ||
|
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
return extendStatics(d, b);
|
|
};
|
|
|
|
return function (d, b) {
|
|
if (typeof b !== "function" && b !== null)
|
|
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
extendStatics(d, b);
|
|
function __() { this.constructor = d; }
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
};
|
|
})();`},TBe={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:`
|
|
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
return cooked;
|
|
};`},kBe={name:"typescript:read",importName:"__read",scoped:!1,text:`
|
|
var __read = (this && this.__read) || function (o, n) {
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
if (!m) return o;
|
|
var i = m.call(o), r, ar = [], e;
|
|
try {
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
}
|
|
catch (error) { e = { error: error }; }
|
|
finally {
|
|
try {
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
}
|
|
finally { if (e) throw e.error; }
|
|
}
|
|
return ar;
|
|
};`},xBe={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:`
|
|
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
if (ar || !(i in from)) {
|
|
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
ar[i] = from[i];
|
|
}
|
|
}
|
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
};`},CBe={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:`
|
|
var __propKey = (this && this.__propKey) || function (x) {
|
|
return typeof x === "symbol" ? x : "".concat(x);
|
|
};`},wBe={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:`
|
|
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
|
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
};`},IBe={name:"typescript:values",importName:"__values",scoped:!1,text:`
|
|
var __values = (this && this.__values) || function(o) {
|
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
if (m) return m.call(o);
|
|
if (o && typeof o.length === "number") return {
|
|
next: function () {
|
|
if (o && i >= o.length) o = void 0;
|
|
return { value: o && o[i++], done: !o };
|
|
}
|
|
};
|
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
};`},DBe={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:`
|
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
function step(op) {
|
|
if (f) throw new TypeError("Generator is already executing.");
|
|
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
switch (op[0]) {
|
|
case 0: case 1: t = op; break;
|
|
case 4: _.label++; return { value: op[1], done: false };
|
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
default:
|
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
if (t[2]) _.ops.pop();
|
|
_.trys.pop(); continue;
|
|
}
|
|
op = body.call(thisArg, _);
|
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
}
|
|
};`},aie={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:`
|
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
if (k2 === undefined) k2 = k;
|
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
}
|
|
Object.defineProperty(o, k2, desc);
|
|
}) : (function(o, m, k, k2) {
|
|
if (k2 === undefined) k2 = k;
|
|
o[k2] = m[k];
|
|
}));`},PBe={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:`
|
|
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
}) : function(o, v) {
|
|
o["default"] = v;
|
|
});`},C0e={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[aie,PBe],priority:2,text:`
|
|
var __importStar = (this && this.__importStar) || (function () {
|
|
var ownKeys = function(o) {
|
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
var ar = [];
|
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
return ar;
|
|
};
|
|
return ownKeys(o);
|
|
};
|
|
return function (mod) {
|
|
if (mod && mod.__esModule) return mod;
|
|
var result = {};
|
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
__setModuleDefault(result, mod);
|
|
return result;
|
|
};
|
|
})();`},ABe={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:`
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};`},EBe={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[aie],priority:2,text:`
|
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
};`},NBe={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:`
|
|
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
};`},MBe={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:`
|
|
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
};`},RBe={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:`
|
|
var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {
|
|
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
|
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
};`},OBe={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:`
|
|
var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
|
|
if (value !== null && value !== void 0) {
|
|
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
var dispose, inner;
|
|
if (async) {
|
|
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
dispose = value[Symbol.asyncDispose];
|
|
}
|
|
if (dispose === void 0) {
|
|
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
dispose = value[Symbol.dispose];
|
|
if (async) inner = dispose;
|
|
}
|
|
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
|
|
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
}
|
|
else if (async) {
|
|
env.stack.push({ async: true });
|
|
}
|
|
return value;
|
|
};`},FBe={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:`
|
|
var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {
|
|
return function (env) {
|
|
function fail(e) {
|
|
env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
env.hasError = true;
|
|
}
|
|
var r, s = 0;
|
|
function next() {
|
|
while (r = env.stack.pop()) {
|
|
try {
|
|
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
if (r.dispose) {
|
|
var result = r.dispose.call(r.value);
|
|
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
|
}
|
|
else s |= 1;
|
|
}
|
|
catch (e) {
|
|
fail(e);
|
|
}
|
|
}
|
|
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
if (env.hasError) throw env.error;
|
|
}
|
|
return next();
|
|
};
|
|
})(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
var e = new Error(message);
|
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
});`},jBe={name:"typescript:rewriteRelativeImportExtensions",importName:"__rewriteRelativeImportExtension",scoped:!1,text:`
|
|
var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
|
|
if (typeof path === "string" && /^\\.\\.?\\//.test(path)) {
|
|
return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
});
|
|
}
|
|
return path;
|
|
};`},n7={name:"typescript:async-super",scoped:!0,text:x0e`
|
|
const ${"_superIndex"} = name => super[name];`},i7={name:"typescript:advanced-async-super",scoped:!0,text:x0e`
|
|
const ${"_superIndex"} = (function (geti, seti) {
|
|
const cache = Object.create(null);
|
|
return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
|
|
})(name => super[name], (name, value) => super[name] = value);`};function jA(e,t){return Ws(e)&&Be(e.expression)&&(Oa(e.expression)&8192)!==0&&e.expression.escapedText===t}function Hp(e){return e.kind===9}function pI(e){return e.kind===10}function ya(e){return e.kind===11}function F2(e){return e.kind===12}function lJ(e){return e.kind===14}function mk(e){return e.kind===15}function j2(e){return e.kind===16}function uJ(e){return e.kind===17}function s7(e){return e.kind===18}function a7(e){return e.kind===26}function oie(e){return e.kind===28}function pJ(e){return e.kind===40}function fJ(e){return e.kind===41}function o4(e){return e.kind===42}function c4(e){return e.kind===54}function Db(e){return e.kind===58}function cie(e){return e.kind===59}function o7(e){return e.kind===29}function lie(e){return e.kind===39}function Be(e){return e.kind===80}function zi(e){return e.kind===81}function L2(e){return e.kind===95}function c7(e){return e.kind===90}function LA(e){return e.kind===134}function uie(e){return e.kind===131}function _J(e){return e.kind===135}function pie(e){return e.kind===148}function W2(e){return e.kind===126}function fie(e){return e.kind===128}function _ie(e){return e.kind===164}function dJ(e){return e.kind===129}function WA(e){return e.kind===108}function BA(e){return e.kind===102}function die(e){return e.kind===84}function Ip(e){return e.kind===167}function na(e){return e.kind===168}function Ho(e){return e.kind===169}function Gi(e){return e.kind===170}function Il(e){return e.kind===171}function mp(e){return e.kind===172}function hs(e){return e.kind===173}function jd(e){return e.kind===174}function hc(e){return e.kind===175}function zc(e){return e.kind===176}function yc(e){return e.kind===177}function B_(e){return e.kind===178}function uf(e){return e.kind===179}function B2(e){return e.kind===180}function zA(e){return e.kind===181}function Pb(e){return e.kind===182}function z2(e){return e.kind===183}function Pf(e){return e.kind===184}function Pg(e){return e.kind===185}function fI(e){return e.kind===186}function FS(e){return e.kind===187}function Dp(e){return e.kind===188}function l4(e){return e.kind===189}function G2(e){return e.kind===190}function _I(e){return e.kind===203}function l7(e){return e.kind===191}function u7(e){return e.kind===192}function sv(e){return e.kind===193}function J2(e){return e.kind===194}function jS(e){return e.kind===195}function gk(e){return e.kind===196}function hk(e){return e.kind===197}function GA(e){return e.kind===198}function J0(e){return e.kind===199}function LS(e){return e.kind===200}function yk(e){return e.kind===201}function av(e){return e.kind===202}function Hm(e){return e.kind===206}function mJ(e){return e.kind===205}function mie(e){return e.kind===204}function o_(e){return e.kind===207}function ov(e){return e.kind===208}function Da(e){return e.kind===209}function Tu(e){return e.kind===210}function Sa(e){return e.kind===211}function Ln(e){return e.kind===212}function xo(e){return e.kind===213}function Ws(e){return e.kind===214}function WS(e){return e.kind===215}function U0(e){return e.kind===216}function p7(e){return e.kind===217}function Pp(e){return e.kind===218}function Ao(e){return e.kind===219}function Fo(e){return e.kind===220}function gie(e){return e.kind===221}function dI(e){return e.kind===222}function U2(e){return e.kind===223}function Ab(e){return e.kind===224}function V0(e){return e.kind===225}function gJ(e){return e.kind===226}function vn(e){return e.kind===227}function vk(e){return e.kind===228}function f7(e){return e.kind===229}function u4(e){return e.kind===230}function z_(e){return e.kind===231}function Zc(e){return e.kind===232}function Fl(e){return e.kind===233}function sy(e){return e.kind===234}function mI(e){return e.kind===235}function gI(e){return e.kind===239}function V2(e){return e.kind===236}function bk(e){return e.kind===237}function w0e(e){return e.kind===238}function hie(e){return e.kind===356}function JA(e){return e.kind===357}function hI(e){return e.kind===240}function yie(e){return e.kind===241}function Bs(e){return e.kind===242}function Qc(e){return e.kind===244}function hJ(e){return e.kind===243}function Ql(e){return e.kind===245}function q0(e){return e.kind===246}function I0e(e){return e.kind===247}function yJ(e){return e.kind===248}function $0(e){return e.kind===249}function _7(e){return e.kind===250}function p4(e){return e.kind===251}function D0e(e){return e.kind===252}function P0e(e){return e.kind===253}function Qf(e){return e.kind===254}function vie(e){return e.kind===255}function UA(e){return e.kind===256}function Eb(e){return e.kind===257}function vJ(e){return e.kind===258}function Sk(e){return e.kind===259}function A0e(e){return e.kind===260}function li(e){return e.kind===261}function lu(e){return e.kind===262}function Gc(e){return e.kind===263}function hl(e){return e.kind===264}function uu(e){return e.kind===265}function gd(e){return e.kind===266}function H0(e){return e.kind===267}function el(e){return e.kind===268}function Qm(e){return e.kind===269}function VA(e){return e.kind===270}function f4(e){return e.kind===271}function Dl(e){return e.kind===272}function ac(e){return e.kind===273}function Ld(e){return e.kind===274}function E0e(e){return e.kind===303}function bie(e){return e.kind===301}function N0e(e){return e.kind===302}function Tk(e){return e.kind===301}function Sie(e){return e.kind===302}function bh(e){return e.kind===275}function Ag(e){return e.kind===281}function Km(e){return e.kind===276}function gp(e){return e.kind===277}function Qo(e){return e.kind===278}function tl(e){return e.kind===279}function G_(e){return e.kind===280}function Xu(e){return e.kind===282}function d7(e){return e.kind===80||e.kind===11}function M0e(e){return e.kind===283}function Tie(e){return e.kind===354}function q2(e){return e.kind===358}function ay(e){return e.kind===284}function Xm(e){return e.kind===285}function kk(e){return e.kind===286}function cm(e){return e.kind===287}function BS(e){return e.kind===288}function Q0(e){return e.kind===289}function Wd(e){return e.kind===290}function kie(e){return e.kind===291}function Ym(e){return e.kind===292}function zS(e){return e.kind===293}function $2(e){return e.kind===294}function yI(e){return e.kind===295}function lm(e){return e.kind===296}function vI(e){return e.kind===297}function qA(e){return e.kind===298}function Af(e){return e.kind===299}function GS(e){return e.kind===300}function yl(e){return e.kind===304}function Fu(e){return e.kind===305}function Sh(e){return e.kind===306}function oy(e){return e.kind===307}function Li(e){return e.kind===308}function xie(e){return e.kind===309}function K0(e){return e.kind===310}function $A(e){return e.kind===311}function X0(e){return e.kind===312}function Cie(e){return e.kind===325}function wie(e){return e.kind===326}function R0e(e){return e.kind===327}function Iie(e){return e.kind===313}function Die(e){return e.kind===314}function bI(e){return e.kind===315}function m7(e){return e.kind===316}function bJ(e){return e.kind===317}function SI(e){return e.kind===318}function g7(e){return e.kind===319}function O0e(e){return e.kind===320}function um(e){return e.kind===321}function xk(e){return e.kind===323}function cv(e){return e.kind===324}function H2(e){return e.kind===329}function F0e(e){return e.kind===331}function Pie(e){return e.kind===333}function SJ(e){return e.kind===339}function TJ(e){return e.kind===334}function kJ(e){return e.kind===335}function xJ(e){return e.kind===336}function CJ(e){return e.kind===337}function h7(e){return e.kind===338}function TI(e){return e.kind===340}function wJ(e){return e.kind===332}function j0e(e){return e.kind===348}function _4(e){return e.kind===341}function c_(e){return e.kind===342}function y7(e){return e.kind===343}function IJ(e){return e.kind===344}function HA(e){return e.kind===345}function hd(e){return e.kind===346}function Ck(e){return e.kind===347}function L0e(e){return e.kind===328}function Aie(e){return e.kind===349}function v7(e){return e.kind===330}function b7(e){return e.kind===351}function W0e(e){return e.kind===350}function Zm(e){return e.kind===352}function kI(e){return e.kind===353}var QA=new WeakMap;function DJ(e,t){var n;let i=e.kind;return lF(i)?i===353?e._children:(n=QA.get(t))==null?void 0:n.get(e):Ke}function Eie(e,t,n){e.kind===353&&w.fail("Should not need to re-set the children of a SyntaxList.");let i=QA.get(t);return i===void 0&&(i=new WeakMap,QA.set(t,i)),i.set(e,n),n}function PJ(e,t){var n;e.kind===353&&w.fail("Did not expect to unset the children of a SyntaxList."),(n=QA.get(t))==null||n.delete(e)}function Nie(e,t){let n=QA.get(e);n!==void 0&&(QA.delete(e),QA.set(t,n))}function d4(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function wk(e,t,n,i){if(na(n))return mt(e.createElementAccessExpression(t,n.expression),i);{let s=mt(sh(n)?e.createPropertyAccessExpression(t,n):e.createElementAccessExpression(t,n),n);return qm(s,128),s}}function Mie(e,t){let n=Z0.createIdentifier(e||"React");return Ka(n,As(t)),n}function Rie(e,t,n){if(Ip(t)){let i=Rie(e,t.left,n),s=e.createIdentifier(Fn(t.right));return s.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,s)}else return Mie(Fn(t),n)}function AJ(e,t,n,i){return t?Rie(e,t,i):e.createPropertyAccessExpression(Mie(n,i),"createElement")}function LBe(e,t,n,i){return t?Rie(e,t,i):e.createPropertyAccessExpression(Mie(n,i),"Fragment")}function Oie(e,t,n,i,s,o){let c=[n];if(i&&c.push(i),s&&s.length>0)if(i||c.push(e.createNull()),s.length>1)for(let p of s)Yu(p),c.push(p);else c.push(s[0]);return mt(e.createCallExpression(t,void 0,c),o)}function Fie(e,t,n,i,s,o,c){let u=[LBe(e,n,i,o),e.createNull()];if(s&&s.length>0)if(s.length>1)for(let g of s)Yu(g),u.push(g);else u.push(s[0]);return mt(e.createCallExpression(AJ(e,t,i,o),void 0,u),c)}function EJ(e,t,n){if(lu(t)){let i=Ra(t.declarations),s=e.updateVariableDeclaration(i,i.name,void 0,void 0,n);return mt(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[s])),t)}else{let i=mt(e.createAssignment(t,n),t);return mt(e.createExpressionStatement(i),t)}}function m4(e,t){if(Ip(t)){let n=m4(e,t.left),i=Ka(mt(e.cloneNode(t.right),t.right),t.right.parent);return mt(e.createPropertyAccessExpression(n,i),t)}else return Ka(mt(e.cloneNode(t),t),t.parent)}function NJ(e,t){return Be(t)?e.createStringLiteralFromNode(t):na(t)?Ka(mt(e.cloneNode(t.expression),t.expression),t.expression.parent):Ka(mt(e.cloneNode(t),t),t.parent)}function WBe(e,t,n,i,s){let{firstAccessor:o,getAccessor:c,setAccessor:p}=PS(t,n);if(n===o)return mt(e.createObjectDefinePropertyCall(i,NJ(e,n.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:c&&mt(Rn(e.createFunctionExpression(fS(c),void 0,void 0,void 0,c.parameters,void 0,c.body),c),c),set:p&&mt(Rn(e.createFunctionExpression(fS(p),void 0,void 0,void 0,p.parameters,void 0,p.body),p),p)},!s)),o)}function BBe(e,t,n){return Rn(mt(e.createAssignment(wk(e,n,t.name,t.name),t.initializer),t),t)}function zBe(e,t,n){return Rn(mt(e.createAssignment(wk(e,n,t.name,t.name),e.cloneNode(t.name)),t),t)}function GBe(e,t,n){return Rn(mt(e.createAssignment(wk(e,n,t.name,t.name),Rn(mt(e.createFunctionExpression(fS(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function jie(e,t,n,i){switch(n.name&&zi(n.name)&&w.failBadSyntaxKind(n.name,"Private identifiers are not allowed in object literals."),n.kind){case 178:case 179:return WBe(e,t.properties,n,i,!!t.multiLine);case 304:return BBe(e,n,i);case 305:return zBe(e,n,i);case 175:return GBe(e,n,i)}}function S7(e,t,n,i,s){let o=t.operator;w.assert(o===46||o===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");let c=e.createTempVariable(i);n=e.createAssignment(c,n),mt(n,t.operand);let p=V0(t)?e.createPrefixUnaryExpression(o,c):e.createPostfixUnaryExpression(c,o);return mt(p,t),s&&(p=e.createAssignment(s,p),mt(p,t)),n=e.createComma(n,p),mt(n,t),gJ(t)&&(n=e.createComma(n,c),mt(n,t)),n}function MJ(e){return(Oa(e)&65536)!==0}function cy(e){return(Oa(e)&32768)!==0}function T7(e){return(Oa(e)&16384)!==0}function B0e(e){return ya(e.expression)&&e.expression.text==="use strict"}function RJ(e){for(let t of e)if(Lm(t)){if(B0e(t))return t}else break}function Lie(e){let t=_l(e);return t!==void 0&&Lm(t)&&B0e(t)}function g4(e){return e.kind===227&&e.operatorToken.kind===28}function KA(e){return g4(e)||JA(e)}function JS(e){return Pp(e)&&dn(e)&&!!D0(e)}function xI(e){let t=qy(e);return w.assertIsDefined(t),t}function k7(e,t=63){switch(e.kind){case 218:return t&-2147483648&&JS(e)?!1:(t&1)!==0;case 217:case 235:return(t&2)!==0;case 239:return(t&34)!==0;case 234:return(t&16)!==0;case 236:return(t&4)!==0;case 356:return(t&8)!==0}return!1}function Nc(e,t=63){for(;k7(e,t);)e=e.expression;return e}function Wie(e,t=63){let n=e.parent;for(;k7(n,t);)n=n.parent,w.assert(n);return n}function Yu(e){return t7(e,!0)}function h4(e){let t=sc(e,Li),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function Bie(e){let t=sc(e,Li),n=t&&t.emitNode;return!!n&&(!!n.externalHelpersModuleName||!!n.externalHelpers)}function OJ(e,t,n,i,s,o,c){if(i.importHelpers&&Lw(n,i)){let p=_p(i),u=Rk(n,i),g=JBe(n);if(u!==1&&(p>=5&&p<=99||u===99||u===void 0&&p===200)){if(g){let d=[];for(let h of g){let S=h.importName;S&&D_(d,S)}if(_t(d)){d.sort(Eu);let h=e.createNamedImports(kr(d,I=>wF(n,I)?e.createImportSpecifier(!1,void 0,e.createIdentifier(I)):e.createImportSpecifier(!1,e.createIdentifier(I),t.getUnscopedHelperName(I)))),S=sc(n,Li),T=Ou(S);T.externalHelpers=!0;let x=e.createImportDeclaration(void 0,e.createImportClause(void 0,void 0,h),e.createStringLiteral(_b),void 0);return _k(x,2),x}}}else{let d=UBe(e,n,i,g,s,o||c);if(d){let h=e.createImportEqualsDeclaration(void 0,!1,d,e.createExternalModuleReference(e.createStringLiteral(_b)));return _k(h,2),h}}}}function JBe(e){return Mn(sJ(e),t=>!t.scoped)}function UBe(e,t,n,i,s,o){let c=h4(t);if(c)return c;if(_t(i)||(s||Vm(n)&&o)&&SE(t,n)<4){let u=sc(t,Li),g=Ou(u);return g.externalHelpersModuleName||(g.externalHelpersModuleName=e.createUniqueName(_b))}}function CI(e,t,n){let i=qw(t);if(i&&!sk(t)&&!DF(t)){let s=i.name;return s.kind===11?e.getGeneratedNameForNode(t):ec(s)?s:e.createIdentifier(hS(n,s)||Fn(s))}if(t.kind===273&&t.importClause||t.kind===279&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function Q2(e,t,n,i,s,o){let c=d2(t);if(c&&ya(c))return qBe(t,i,e,s,o)||VBe(e,c,n)||e.cloneNode(c)}function VBe(e,t,n){let i=n.renamedDependencies&&n.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function y4(e,t,n,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&i.outFile)return e.createStringLiteral(Kz(n,t.fileName))}}function qBe(e,t,n,i,s){return y4(n,i.getExternalModuleFileFromDeclaration(e),t,s)}function v4(e){if(MM(e))return e.initializer;if(yl(e)){let t=e.initializer;return Hl(t,!0)?t.right:void 0}if(Fu(e))return e.objectAssignmentInitializer;if(Hl(e,!0))return e.right;if(z_(e))return v4(e.expression)}function Nb(e){if(MM(e))return e.name;if(Xh(e)){switch(e.kind){case 304:return Nb(e.initializer);case 305:return e.name;case 306:return Nb(e.expression)}return}return Hl(e,!0)?Nb(e.left):z_(e)?Nb(e.expression):e}function x7(e){switch(e.kind){case 170:case 209:return e.dotDotDotToken;case 231:case 306:return e}}function FJ(e){let t=C7(e);return w.assert(!!t||Sh(e),"Invalid property name for binding element."),t}function C7(e){switch(e.kind){case 209:if(e.propertyName){let n=e.propertyName;return zi(n)?w.failBadSyntaxKind(n):na(n)&&z0e(n.expression)?n.expression:n}break;case 304:if(e.name){let n=e.name;return zi(n)?w.failBadSyntaxKind(n):na(n)&&z0e(n.expression)?n.expression:n}break;case 306:return e.name&&zi(e.name)?w.failBadSyntaxKind(e.name):e.name}let t=Nb(e);if(t&&ol(t))return t}function z0e(e){let t=e.kind;return t===11||t===9}function wI(e){switch(e.kind){case 207:case 208:case 210:return e.elements;case 211:return e.properties}}function jJ(e){if(e){let t=e;for(;;){if(Be(t)||!t.body)return Be(t)?t:t.name;t=t.body}}}function G0e(e){let t=e.kind;return t===177||t===179}function zie(e){let t=e.kind;return t===177||t===178||t===179}function LJ(e){let t=e.kind;return t===304||t===305||t===263||t===177||t===182||t===176||t===283||t===244||t===265||t===266||t===267||t===268||t===272||t===273||t===271||t===279||t===278}function Gie(e){let t=e.kind;return t===176||t===304||t===305||t===283||t===271}function Jie(e){return Db(e)||c4(e)}function Uie(e){return Be(e)||GA(e)}function Vie(e){return pie(e)||pJ(e)||fJ(e)}function qie(e){return Db(e)||pJ(e)||fJ(e)}function $ie(e){return Be(e)||ya(e)}function $Be(e){return e===43}function HBe(e){return e===42||e===44||e===45}function QBe(e){return $Be(e)||HBe(e)}function KBe(e){return e===40||e===41}function XBe(e){return KBe(e)||QBe(e)}function YBe(e){return e===48||e===49||e===50}function WJ(e){return YBe(e)||XBe(e)}function ZBe(e){return e===30||e===33||e===32||e===34||e===104||e===103}function eze(e){return ZBe(e)||WJ(e)}function tze(e){return e===35||e===37||e===36||e===38}function rze(e){return tze(e)||eze(e)}function nze(e){return e===51||e===52||e===53}function ize(e){return nze(e)||rze(e)}function sze(e){return e===56||e===57}function aze(e){return sze(e)||ize(e)}function oze(e){return e===61||aze(e)||ry(e)}function cze(e){return oze(e)||e===28}function Hie(e){return cze(e.kind)}var BJ;(e=>{function t(d,h,S,T,x,I,P){let E=h>0?x[h-1]:void 0;return w.assertEqual(S[h],t),x[h]=d.onEnter(T[h],E,P),S[h]=p(d,t),h}e.enter=t;function n(d,h,S,T,x,I,P){w.assertEqual(S[h],n),w.assertIsDefined(d.onLeft),S[h]=p(d,n);let E=d.onLeft(T[h].left,x[h],T[h]);return E?(g(h,T,E),u(h,S,T,x,E)):h}e.left=n;function i(d,h,S,T,x,I,P){return w.assertEqual(S[h],i),w.assertIsDefined(d.onOperator),S[h]=p(d,i),d.onOperator(T[h].operatorToken,x[h],T[h]),h}e.operator=i;function s(d,h,S,T,x,I,P){w.assertEqual(S[h],s),w.assertIsDefined(d.onRight),S[h]=p(d,s);let E=d.onRight(T[h].right,x[h],T[h]);return E?(g(h,T,E),u(h,S,T,x,E)):h}e.right=s;function o(d,h,S,T,x,I,P){w.assertEqual(S[h],o),S[h]=p(d,o);let E=d.onExit(T[h],x[h]);if(h>0){if(h--,d.foldState){let F=S[h]===o?"right":"left";x[h]=d.foldState(x[h],E,F)}}else I.value=E;return h}e.exit=o;function c(d,h,S,T,x,I,P){return w.assertEqual(S[h],c),h}e.done=c;function p(d,h){switch(h){case t:if(d.onLeft)return n;case n:if(d.onOperator)return i;case i:if(d.onRight)return s;case s:return o;case o:return c;case c:return c;default:w.fail("Invalid state")}}e.nextState=p;function u(d,h,S,T,x){return d++,h[d]=t,S[d]=x,T[d]=void 0,d}function g(d,h,S){if(w.shouldAssert(2))for(;d>=0;)w.assert(h[d]!==S,"Circular traversal detected."),d--}})(BJ||(BJ={}));var lze=class{constructor(e,t,n,i,s,o){this.onEnter=e,this.onLeft=t,this.onOperator=n,this.onRight=i,this.onExit=s,this.foldState=o}};function w7(e,t,n,i,s,o){let c=new lze(e,t,n,i,s,o);return p;function p(u,g){let d={value:void 0},h=[BJ.enter],S=[u],T=[void 0],x=0;for(;h[x]!==BJ.done;)x=h[x](c,x,h,S,T,d,g);return w.assertEqual(x,0),d.value}}function uze(e){return e===95||e===90}function b4(e){let t=e.kind;return uze(t)}function Qie(e,t){if(t!==void 0)return t.length===0?t:mt(e.createNodeArray([],t.hasTrailingComma),t)}function S4(e){var t;let n=e.emitNode.autoGenerate;if(n.flags&4){let i=n.id,s=e,o=s.original;for(;o;){s=o;let c=(t=s.emitNode)==null?void 0:t.autoGenerate;if(sh(s)&&(c===void 0||c.flags&4&&c.id!==i))break;o=s.original}return s}return e}function II(e,t){return typeof e=="object"?Y0(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function pze(e,t){return typeof e=="string"?e:fze(e,w.checkDefined(t))}function fze(e,t){return HT(e)?t(e).slice(1):ec(e)?t(e):zi(e)?e.escapedText.slice(1):Fn(e)}function Y0(e,t,n,i,s){return t=II(t,s),i=II(i,s),n=pze(n,s),`${e?"#":""}${t}${n}${i}`}function zJ(e,t,n,i){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function Kie(e,t,n,i,s=e.createThis()){return e.createGetAccessorDeclaration(n,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(s,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function Xie(e,t,n,i,s=e.createThis()){return e.createSetAccessorDeclaration(n,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(s,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function I7(e){let t=e.expression;for(;;){if(t=Nc(t),JA(t)){t=ka(t.elements);continue}if(g4(t)){t=t.right;continue}if(Hl(t,!0)&&ec(t.left))return t;break}}function _ze(e){return Pp(e)&&ko(e)&&!e.emitNode}function D7(e,t){if(_ze(e))D7(e.expression,t);else if(g4(e))D7(e.left,t),D7(e.right,t);else if(JA(e))for(let n of e.elements)D7(n,t);else t.push(e)}function Yie(e){let t=[];return D7(e,t),t}function T4(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of wI(e)){let n=Nb(t);if(n&&WP(n)&&(n.transformFlags&65536||n.transformFlags&128&&T4(n)))return!0}return!1}function mt(e,t){return t?om(e,t.pos,t.end):e}function yd(e){let t=e.kind;return t===169||t===170||t===172||t===173||t===174||t===175||t===177||t===178||t===179||t===182||t===186||t===219||t===220||t===232||t===244||t===263||t===264||t===265||t===266||t===267||t===268||t===272||t===273||t===278||t===279}function US(e){let t=e.kind;return t===170||t===173||t===175||t===178||t===179||t===232||t===264}var J0e,U0e,V0e,q0e,$0e,Zie={createBaseSourceFileNode:e=>new($0e||($0e=bu.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(V0e||(V0e=bu.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(q0e||(q0e=bu.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(U0e||(U0e=bu.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(J0e||(J0e=bu.getNodeConstructor()))(e,-1,-1)},Z0=t4(1,Zie);function nr(e,t){return t&&e(t)}function ji(e,t,n){if(n){if(t)return t(n);for(let i of n){let s=e(i);if(s)return s}}}function GJ(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function k4(e){return or(e.statements,dze)||mze(e)}function dze(e){return yd(e)&&gze(e,95)||Dl(e)&&ay(e.moduleReference)||ac(e)||Qo(e)||tl(e)?e:void 0}function mze(e){return e.flags&8388608?H0e(e):void 0}function H0e(e){return hze(e)?e:Ms(e,H0e)}function gze(e,t){return _t(e.modifiers,n=>n.kind===t)}function hze(e){return bk(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var yze={167:function(t,n,i){return nr(n,t.left)||nr(n,t.right)},169:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.name)||nr(n,t.constraint)||nr(n,t.default)||nr(n,t.expression)},305:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.name)||nr(n,t.questionToken)||nr(n,t.exclamationToken)||nr(n,t.equalsToken)||nr(n,t.objectAssignmentInitializer)},306:function(t,n,i){return nr(n,t.expression)},170:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.dotDotDotToken)||nr(n,t.name)||nr(n,t.questionToken)||nr(n,t.type)||nr(n,t.initializer)},173:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.name)||nr(n,t.questionToken)||nr(n,t.exclamationToken)||nr(n,t.type)||nr(n,t.initializer)},172:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.name)||nr(n,t.questionToken)||nr(n,t.type)||nr(n,t.initializer)},304:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.name)||nr(n,t.questionToken)||nr(n,t.exclamationToken)||nr(n,t.initializer)},261:function(t,n,i){return nr(n,t.name)||nr(n,t.exclamationToken)||nr(n,t.type)||nr(n,t.initializer)},209:function(t,n,i){return nr(n,t.dotDotDotToken)||nr(n,t.propertyName)||nr(n,t.name)||nr(n,t.initializer)},182:function(t,n,i){return ji(n,i,t.modifiers)||ji(n,i,t.typeParameters)||ji(n,i,t.parameters)||nr(n,t.type)},186:function(t,n,i){return ji(n,i,t.modifiers)||ji(n,i,t.typeParameters)||ji(n,i,t.parameters)||nr(n,t.type)},185:function(t,n,i){return ji(n,i,t.modifiers)||ji(n,i,t.typeParameters)||ji(n,i,t.parameters)||nr(n,t.type)},180:Q0e,181:Q0e,175:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.asteriskToken)||nr(n,t.name)||nr(n,t.questionToken)||nr(n,t.exclamationToken)||ji(n,i,t.typeParameters)||ji(n,i,t.parameters)||nr(n,t.type)||nr(n,t.body)},174:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.name)||nr(n,t.questionToken)||ji(n,i,t.typeParameters)||ji(n,i,t.parameters)||nr(n,t.type)},177:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.name)||ji(n,i,t.typeParameters)||ji(n,i,t.parameters)||nr(n,t.type)||nr(n,t.body)},178:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.name)||ji(n,i,t.typeParameters)||ji(n,i,t.parameters)||nr(n,t.type)||nr(n,t.body)},179:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.name)||ji(n,i,t.typeParameters)||ji(n,i,t.parameters)||nr(n,t.type)||nr(n,t.body)},263:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.asteriskToken)||nr(n,t.name)||ji(n,i,t.typeParameters)||ji(n,i,t.parameters)||nr(n,t.type)||nr(n,t.body)},219:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.asteriskToken)||nr(n,t.name)||ji(n,i,t.typeParameters)||ji(n,i,t.parameters)||nr(n,t.type)||nr(n,t.body)},220:function(t,n,i){return ji(n,i,t.modifiers)||ji(n,i,t.typeParameters)||ji(n,i,t.parameters)||nr(n,t.type)||nr(n,t.equalsGreaterThanToken)||nr(n,t.body)},176:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.body)},184:function(t,n,i){return nr(n,t.typeName)||ji(n,i,t.typeArguments)},183:function(t,n,i){return nr(n,t.assertsModifier)||nr(n,t.parameterName)||nr(n,t.type)},187:function(t,n,i){return nr(n,t.exprName)||ji(n,i,t.typeArguments)},188:function(t,n,i){return ji(n,i,t.members)},189:function(t,n,i){return nr(n,t.elementType)},190:function(t,n,i){return ji(n,i,t.elements)},193:K0e,194:K0e,195:function(t,n,i){return nr(n,t.checkType)||nr(n,t.extendsType)||nr(n,t.trueType)||nr(n,t.falseType)},196:function(t,n,i){return nr(n,t.typeParameter)},206:function(t,n,i){return nr(n,t.argument)||nr(n,t.attributes)||nr(n,t.qualifier)||ji(n,i,t.typeArguments)},303:function(t,n,i){return nr(n,t.assertClause)},197:X0e,199:X0e,200:function(t,n,i){return nr(n,t.objectType)||nr(n,t.indexType)},201:function(t,n,i){return nr(n,t.readonlyToken)||nr(n,t.typeParameter)||nr(n,t.nameType)||nr(n,t.questionToken)||nr(n,t.type)||ji(n,i,t.members)},202:function(t,n,i){return nr(n,t.literal)},203:function(t,n,i){return nr(n,t.dotDotDotToken)||nr(n,t.name)||nr(n,t.questionToken)||nr(n,t.type)},207:Y0e,208:Y0e,210:function(t,n,i){return ji(n,i,t.elements)},211:function(t,n,i){return ji(n,i,t.properties)},212:function(t,n,i){return nr(n,t.expression)||nr(n,t.questionDotToken)||nr(n,t.name)},213:function(t,n,i){return nr(n,t.expression)||nr(n,t.questionDotToken)||nr(n,t.argumentExpression)},214:Z0e,215:Z0e,216:function(t,n,i){return nr(n,t.tag)||nr(n,t.questionDotToken)||ji(n,i,t.typeArguments)||nr(n,t.template)},217:function(t,n,i){return nr(n,t.type)||nr(n,t.expression)},218:function(t,n,i){return nr(n,t.expression)},221:function(t,n,i){return nr(n,t.expression)},222:function(t,n,i){return nr(n,t.expression)},223:function(t,n,i){return nr(n,t.expression)},225:function(t,n,i){return nr(n,t.operand)},230:function(t,n,i){return nr(n,t.asteriskToken)||nr(n,t.expression)},224:function(t,n,i){return nr(n,t.expression)},226:function(t,n,i){return nr(n,t.operand)},227:function(t,n,i){return nr(n,t.left)||nr(n,t.operatorToken)||nr(n,t.right)},235:function(t,n,i){return nr(n,t.expression)||nr(n,t.type)},236:function(t,n,i){return nr(n,t.expression)},239:function(t,n,i){return nr(n,t.expression)||nr(n,t.type)},237:function(t,n,i){return nr(n,t.name)},228:function(t,n,i){return nr(n,t.condition)||nr(n,t.questionToken)||nr(n,t.whenTrue)||nr(n,t.colonToken)||nr(n,t.whenFalse)},231:function(t,n,i){return nr(n,t.expression)},242:e1e,269:e1e,308:function(t,n,i){return ji(n,i,t.statements)||nr(n,t.endOfFileToken)},244:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.declarationList)},262:function(t,n,i){return ji(n,i,t.declarations)},245:function(t,n,i){return nr(n,t.expression)},246:function(t,n,i){return nr(n,t.expression)||nr(n,t.thenStatement)||nr(n,t.elseStatement)},247:function(t,n,i){return nr(n,t.statement)||nr(n,t.expression)},248:function(t,n,i){return nr(n,t.expression)||nr(n,t.statement)},249:function(t,n,i){return nr(n,t.initializer)||nr(n,t.condition)||nr(n,t.incrementor)||nr(n,t.statement)},250:function(t,n,i){return nr(n,t.initializer)||nr(n,t.expression)||nr(n,t.statement)},251:function(t,n,i){return nr(n,t.awaitModifier)||nr(n,t.initializer)||nr(n,t.expression)||nr(n,t.statement)},252:t1e,253:t1e,254:function(t,n,i){return nr(n,t.expression)},255:function(t,n,i){return nr(n,t.expression)||nr(n,t.statement)},256:function(t,n,i){return nr(n,t.expression)||nr(n,t.caseBlock)},270:function(t,n,i){return ji(n,i,t.clauses)},297:function(t,n,i){return nr(n,t.expression)||ji(n,i,t.statements)},298:function(t,n,i){return ji(n,i,t.statements)},257:function(t,n,i){return nr(n,t.label)||nr(n,t.statement)},258:function(t,n,i){return nr(n,t.expression)},259:function(t,n,i){return nr(n,t.tryBlock)||nr(n,t.catchClause)||nr(n,t.finallyBlock)},300:function(t,n,i){return nr(n,t.variableDeclaration)||nr(n,t.block)},171:function(t,n,i){return nr(n,t.expression)},264:r1e,232:r1e,265:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.name)||ji(n,i,t.typeParameters)||ji(n,i,t.heritageClauses)||ji(n,i,t.members)},266:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.name)||ji(n,i,t.typeParameters)||nr(n,t.type)},267:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.name)||ji(n,i,t.members)},307:function(t,n,i){return nr(n,t.name)||nr(n,t.initializer)},268:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.name)||nr(n,t.body)},272:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.name)||nr(n,t.moduleReference)},273:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.importClause)||nr(n,t.moduleSpecifier)||nr(n,t.attributes)},274:function(t,n,i){return nr(n,t.name)||nr(n,t.namedBindings)},301:function(t,n,i){return ji(n,i,t.elements)},302:function(t,n,i){return nr(n,t.name)||nr(n,t.value)},271:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.name)},275:function(t,n,i){return nr(n,t.name)},281:function(t,n,i){return nr(n,t.name)},276:n1e,280:n1e,279:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.exportClause)||nr(n,t.moduleSpecifier)||nr(n,t.attributes)},277:i1e,282:i1e,278:function(t,n,i){return ji(n,i,t.modifiers)||nr(n,t.expression)},229:function(t,n,i){return nr(n,t.head)||ji(n,i,t.templateSpans)},240:function(t,n,i){return nr(n,t.expression)||nr(n,t.literal)},204:function(t,n,i){return nr(n,t.head)||ji(n,i,t.templateSpans)},205:function(t,n,i){return nr(n,t.type)||nr(n,t.literal)},168:function(t,n,i){return nr(n,t.expression)},299:function(t,n,i){return ji(n,i,t.types)},234:function(t,n,i){return nr(n,t.expression)||ji(n,i,t.typeArguments)},284:function(t,n,i){return nr(n,t.expression)},283:function(t,n,i){return ji(n,i,t.modifiers)},357:function(t,n,i){return ji(n,i,t.elements)},285:function(t,n,i){return nr(n,t.openingElement)||ji(n,i,t.children)||nr(n,t.closingElement)},289:function(t,n,i){return nr(n,t.openingFragment)||ji(n,i,t.children)||nr(n,t.closingFragment)},286:s1e,287:s1e,293:function(t,n,i){return ji(n,i,t.properties)},292:function(t,n,i){return nr(n,t.name)||nr(n,t.initializer)},294:function(t,n,i){return nr(n,t.expression)},295:function(t,n,i){return nr(n,t.dotDotDotToken)||nr(n,t.expression)},288:function(t,n,i){return nr(n,t.tagName)},296:function(t,n,i){return nr(n,t.namespace)||nr(n,t.name)},191:XA,192:XA,310:XA,316:XA,315:XA,317:XA,319:XA,318:function(t,n,i){return ji(n,i,t.parameters)||nr(n,t.type)},321:function(t,n,i){return(typeof t.comment=="string"?void 0:ji(n,i,t.comment))||ji(n,i,t.tags)},348:function(t,n,i){return nr(n,t.tagName)||nr(n,t.name)||(typeof t.comment=="string"?void 0:ji(n,i,t.comment))},311:function(t,n,i){return nr(n,t.name)},312:function(t,n,i){return nr(n,t.left)||nr(n,t.right)},342:a1e,349:a1e,331:function(t,n,i){return nr(n,t.tagName)||(typeof t.comment=="string"?void 0:ji(n,i,t.comment))},330:function(t,n,i){return nr(n,t.tagName)||nr(n,t.class)||(typeof t.comment=="string"?void 0:ji(n,i,t.comment))},329:function(t,n,i){return nr(n,t.tagName)||nr(n,t.class)||(typeof t.comment=="string"?void 0:ji(n,i,t.comment))},346:function(t,n,i){return nr(n,t.tagName)||nr(n,t.constraint)||ji(n,i,t.typeParameters)||(typeof t.comment=="string"?void 0:ji(n,i,t.comment))},347:function(t,n,i){return nr(n,t.tagName)||(t.typeExpression&&t.typeExpression.kind===310?nr(n,t.typeExpression)||nr(n,t.fullName)||(typeof t.comment=="string"?void 0:ji(n,i,t.comment)):nr(n,t.fullName)||nr(n,t.typeExpression)||(typeof t.comment=="string"?void 0:ji(n,i,t.comment)))},339:function(t,n,i){return nr(n,t.tagName)||nr(n,t.fullName)||nr(n,t.typeExpression)||(typeof t.comment=="string"?void 0:ji(n,i,t.comment))},343:YA,345:YA,344:YA,341:YA,351:YA,350:YA,340:YA,324:function(t,n,i){return or(t.typeParameters,n)||or(t.parameters,n)||nr(n,t.type)},325:ese,326:ese,327:ese,323:function(t,n,i){return or(t.jsDocPropertyTags,n)},328:DI,333:DI,334:DI,335:DI,336:DI,337:DI,332:DI,338:DI,352:vze,356:bze};function Q0e(e,t,n){return ji(t,n,e.typeParameters)||ji(t,n,e.parameters)||nr(t,e.type)}function K0e(e,t,n){return ji(t,n,e.types)}function X0e(e,t,n){return nr(t,e.type)}function Y0e(e,t,n){return ji(t,n,e.elements)}function Z0e(e,t,n){return nr(t,e.expression)||nr(t,e.questionDotToken)||ji(t,n,e.typeArguments)||ji(t,n,e.arguments)}function e1e(e,t,n){return ji(t,n,e.statements)}function t1e(e,t,n){return nr(t,e.label)}function r1e(e,t,n){return ji(t,n,e.modifiers)||nr(t,e.name)||ji(t,n,e.typeParameters)||ji(t,n,e.heritageClauses)||ji(t,n,e.members)}function n1e(e,t,n){return ji(t,n,e.elements)}function i1e(e,t,n){return nr(t,e.propertyName)||nr(t,e.name)}function s1e(e,t,n){return nr(t,e.tagName)||ji(t,n,e.typeArguments)||nr(t,e.attributes)}function XA(e,t,n){return nr(t,e.type)}function a1e(e,t,n){return nr(t,e.tagName)||(e.isNameFirst?nr(t,e.name)||nr(t,e.typeExpression):nr(t,e.typeExpression)||nr(t,e.name))||(typeof e.comment=="string"?void 0:ji(t,n,e.comment))}function YA(e,t,n){return nr(t,e.tagName)||nr(t,e.typeExpression)||(typeof e.comment=="string"?void 0:ji(t,n,e.comment))}function ese(e,t,n){return nr(t,e.name)}function DI(e,t,n){return nr(t,e.tagName)||(typeof e.comment=="string"?void 0:ji(t,n,e.comment))}function vze(e,t,n){return nr(t,e.tagName)||nr(t,e.importClause)||nr(t,e.moduleSpecifier)||nr(t,e.attributes)||(typeof e.comment=="string"?void 0:ji(t,n,e.comment))}function bze(e,t,n){return nr(t,e.expression)}function Ms(e,t,n){if(e===void 0||e.kind<=166)return;let i=yze[e.kind];return i===void 0?void 0:i(e,t,n)}function K2(e,t,n){let i=o1e(e),s=[];for(;s.length<i.length;)s.push(e);for(;i.length!==0;){let o=i.pop(),c=s.pop();if(gs(o)){if(n){let p=n(o,c);if(p){if(p==="skip")continue;return p}}for(let p=o.length-1;p>=0;--p)i.push(o[p]),s.push(c)}else{let p=t(o,c);if(p){if(p==="skip")continue;return p}if(o.kind>=167)for(let u of o1e(o))i.push(u),s.push(o)}}}function o1e(e){let t=[];return Ms(e,n,n),t;function n(i){t.unshift(i)}}function c1e(e){e.externalModuleIndicator=k4(e)}function X2(e,t,n,i=!1,s){var o,c;(o=mn)==null||o.push(mn.Phase.Parse,"createSourceFile",{path:e},!0),dc("beforeParse");let p,{languageVersion:u,setExternalModuleIndicator:g,impliedNodeFormat:d,jsDocParsingMode:h}=typeof n=="object"?n:{languageVersion:n};if(u===100)p=e1.parseSourceFile(e,t,u,void 0,i,6,no,h);else{let S=d===void 0?g:T=>(T.impliedNodeFormat=d,(g||c1e)(T));p=e1.parseSourceFile(e,t,u,void 0,i,s,S,h)}return dc("afterParse"),P_("Parse","beforeParse","afterParse"),(c=mn)==null||c.pop(),p}function Y2(e,t){return e1.parseIsolatedEntityName(e,t)}function x4(e,t){return e1.parseJsonText(e,t)}function Pl(e){return e.externalModuleIndicator!==void 0}function JJ(e,t,n,i=!1){let s=UJ.updateSourceFile(e,t,n,i);return s.flags|=e.flags&12582912,s}function tse(e,t,n){let i=e1.JSDocParser.parseIsolatedJSDocComment(e,t,n);return i&&i.jsDoc&&e1.fixupParentReferences(i.jsDoc),i}function l1e(e,t,n){return e1.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)}var e1;(e=>{var t=ih(99,!0),n=40960,i,s,o,c,p;function u(Y){return xe++,Y}var g={createBaseSourceFileNode:Y=>u(new p(Y,0,0)),createBaseIdentifierNode:Y=>u(new o(Y,0,0)),createBasePrivateIdentifierNode:Y=>u(new c(Y,0,0)),createBaseTokenNode:Y=>u(new s(Y,0,0)),createBaseNode:Y=>u(new i(Y,0,0))},d=t4(11,g),{createNodeArray:h,createNumericLiteral:S,createStringLiteral:T,createLiteralLikeNode:x,createIdentifier:I,createPrivateIdentifier:P,createToken:E,createArrayLiteralExpression:F,createObjectLiteralExpression:O,createPropertyAccessExpression:W,createPropertyAccessChain:z,createElementAccessExpression:$,createElementAccessChain:X,createCallExpression:U,createCallChain:_e,createNewExpression:re,createParenthesizedExpression:V,createBlock:ce,createVariableStatement:oe,createExpressionStatement:le,createIfStatement:de,createWhileStatement:ve,createForStatement:H,createForOfStatement:Se,createVariableDeclaration:Je,createVariableDeclarationList:ye}=d,ee,ge,ke,Oe,nt,ae,Ue,te,Ne,Ie,xe,Qe,St,Bt,fr,Mr,ft=!0,qt=!1;function Hr(Y,De,Ze,Dt,Xt=!1,lr,qn,xn=0){var rn;if(lr=F8(Y,lr),lr===6){let Hi=us(Y,De,Ze,Dt,Xt);return P4(Hi,(rn=Hi.statements[0])==null?void 0:rn.expression,Hi.parseDiagnostics,!1,void 0),Hi.referencedFiles=Ke,Hi.typeReferenceDirectives=Ke,Hi.libReferenceDirectives=Ke,Hi.amdDependencies=Ke,Hi.hasNoDefaultLib=!1,Hi.pragmas=Gl,Hi}At(Y,De,Ze,Dt,lr,xn);let mi=rs(Ze,Xt,lr,qn||c1e,xn);return Un(),mi}e.parseSourceFile=Hr;function bi(Y,De){At("",Y,De,void 0,1,0),Ce();let Ze=ot(!0),Dt=q()===1&&!Ue.length;return Un(),Dt?Ze:void 0}e.parseIsolatedEntityName=bi;function us(Y,De,Ze=2,Dt,Xt=!1){At(Y,De,Ze,Dt,6,0),ge=Mr,Ce();let lr=j(),qn,xn;if(q()===1)qn=Fa([],lr,lr),xn=Jc();else{let Hi;for(;q()!==1;){let Ua;switch(q()){case 23:Ua=Yb();break;case 112:case 97:case 106:Ua=Jc();break;case 41:Nt(()=>Ce()===9&&Ce()!==59)?Ua=Sv():Ua=xv();break;case 9:case 11:if(Nt(()=>Ce()!==59)){Ua=Et();break}default:Ua=xv();break}Hi&&gs(Hi)?Hi.push(Ua):Hi?Hi=[Hi,Ua]:(Hi=Ua,q()!==1&&Gt(_.Unexpected_token))}let Co=gs(Hi)?$t(F(Hi),lr):w.checkDefined(Hi),po=le(Co);$t(po,lr),qn=Fa([po],lr),xn=Lo(1,_.Unexpected_token)}let rn=bt(Y,2,6,!1,qn,xn,ge,no);Xt&&qe(rn),rn.nodeCount=xe,rn.identifierCount=St,rn.identifiers=Qe,rn.parseDiagnostics=w2(Ue,rn),te&&(rn.jsDocDiagnostics=w2(te,rn));let mi=rn;return Un(),mi}e.parseJsonText=us;function At(Y,De,Ze,Dt,Xt,lr){switch(i=bu.getNodeConstructor(),s=bu.getTokenConstructor(),o=bu.getIdentifierConstructor(),c=bu.getPrivateIdentifierConstructor(),p=bu.getSourceFileConstructor(),ee=ra(Y),ke=De,Oe=Ze,Ne=Dt,nt=Xt,ae=j6(Xt),Ue=[],Bt=0,Qe=new Map,St=0,xe=0,ge=0,ft=!0,nt){case 1:case 2:Mr=524288;break;case 6:Mr=134742016;break;default:Mr=0;break}qt=!1,t.setText(ke),t.setOnError(fe),t.setScriptTarget(Oe),t.setLanguageVariant(ae),t.setScriptKind(nt),t.setJSDocParsingMode(lr)}function Un(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),ke=void 0,Oe=void 0,Ne=void 0,nt=void 0,ae=void 0,ge=0,Ue=void 0,te=void 0,Bt=0,Qe=void 0,fr=void 0,ft=!0}function rs(Y,De,Ze,Dt,Xt){let lr=Kl(ee);lr&&(Mr|=33554432),ge=Mr,Ce();let qn=Ca(0,_f);w.assert(q()===1);let xn=je(),rn=Sn(Jc(),xn),mi=bt(ee,Y,Ze,lr,qn,rn,ge,Dt);return VJ(mi,ke),qJ(mi,Hi),mi.commentDirectives=t.getCommentDirectives(),mi.nodeCount=xe,mi.identifierCount=St,mi.identifiers=Qe,mi.parseDiagnostics=w2(Ue,mi),mi.jsDocParsingMode=Xt,te&&(mi.jsDocDiagnostics=w2(te,mi)),De&&qe(mi),mi;function Hi(Co,po,Ua){Ue.push(C2(ee,ke,Co,po,Ua))}}let zn=!1;function Sn(Y,De){if(!De)return Y;w.assert(!Y.jsDoc);let Ze=Ji(bz(Y,ke),Dt=>fg.parseJSDocComment(Y,Dt.pos,Dt.end-Dt.pos));return Ze.length&&(Y.jsDoc=Ze),zn&&(zn=!1,Y.flags|=536870912),Y}function _i(Y){let De=Ne,Ze=UJ.createSyntaxCursor(Y);Ne={currentNode:Hi};let Dt=[],Xt=Ue;Ue=[];let lr=0,qn=rn(Y.statements,0);for(;qn!==-1;){let Co=Y.statements[lr],po=Y.statements[qn];Gn(Dt,Y.statements,lr,qn),lr=mi(Y.statements,qn);let Ua=Tc(Xt,b_=>b_.start>=Co.pos),Q_=Ua>=0?Tc(Xt,b_=>b_.start>=po.pos,Ua):-1;Ua>=0&&Gn(Ue,Xt,Ua,Q_>=0?Q_:void 0),ur(()=>{let b_=Mr;for(Mr|=65536,t.resetTokenState(po.pos),Ce();q()!==1;){let Pv=t.getTokenFullStart(),Av=bl(0,_f);if(Dt.push(Av),Pv===t.getTokenFullStart()&&Ce(),lr>=0){let Mh=Y.statements[lr];if(Av.end===Mh.pos)break;Av.end>Mh.pos&&(lr=mi(Y.statements,lr+1))}}Mr=b_},2),qn=lr>=0?rn(Y.statements,lr):-1}if(lr>=0){let Co=Y.statements[lr];Gn(Dt,Y.statements,lr);let po=Tc(Xt,Ua=>Ua.start>=Co.pos);po>=0&&Gn(Ue,Xt,po)}return Ne=De,d.updateSourceFile(Y,mt(h(Dt),Y.statements));function xn(Co){return!(Co.flags&65536)&&!!(Co.transformFlags&67108864)}function rn(Co,po){for(let Ua=po;Ua<Co.length;Ua++)if(xn(Co[Ua]))return Ua;return-1}function mi(Co,po){for(let Ua=po;Ua<Co.length;Ua++)if(!xn(Co[Ua]))return Ua;return-1}function Hi(Co){let po=Ze.currentNode(Co);return ft&&po&&xn(po)&&rse(po),po}}function qe(Y){z0(Y,!0)}e.fixupParentReferences=qe;function bt(Y,De,Ze,Dt,Xt,lr,qn,xn){let rn=d.createSourceFile(Xt,lr,qn);if(BG(rn,0,ke.length),mi(rn),!Dt&&Pl(rn)&&rn.transformFlags&67108864){let Hi=rn;rn=_i(rn),Hi!==rn&&mi(rn)}return rn;function mi(Hi){Hi.text=ke,Hi.bindDiagnostics=[],Hi.bindSuggestionDiagnostics=void 0,Hi.languageVersion=De,Hi.fileName=Y,Hi.languageVariant=j6(Ze),Hi.isDeclarationFile=Dt,Hi.scriptKind=Ze,xn(Hi),Hi.setExternalModuleIndicator=xn}}function ar(Y,De){Y?Mr|=De:Mr&=~De}function tn(Y){ar(Y,8192)}function Xn(Y){ar(Y,16384)}function ei(Y){ar(Y,32768)}function Mi(Y){ar(Y,65536)}function js(Y,De){let Ze=Y&Mr;if(Ze){ar(!1,Ze);let Dt=De();return ar(!0,Ze),Dt}return De()}function oa(Y,De){let Ze=Y&~Mr;if(Ze){ar(!0,Ze);let Dt=De();return ar(!1,Ze),Dt}return De()}function wr(Y){return js(8192,Y)}function Ds(Y){return oa(8192,Y)}function tt(Y){return js(131072,Y)}function Mt(Y){return oa(131072,Y)}function se(Y){return oa(16384,Y)}function pt(Y){return oa(32768,Y)}function Z(Y){return oa(65536,Y)}function Ee(Y){return js(65536,Y)}function et(Y){return oa(81920,Y)}function at(Y){return js(81920,Y)}function Pt(Y){return(Mr&Y)!==0}function Le(){return Pt(16384)}function kt(){return Pt(8192)}function Tt(){return Pt(131072)}function Rt(){return Pt(32768)}function Ye(){return Pt(65536)}function Gt(Y,...De){return Ae(t.getTokenStart(),t.getTokenEnd(),Y,...De)}function ln(Y,De,Ze,...Dt){let Xt=Wo(Ue),lr;return(!Xt||Y!==Xt.start)&&(lr=C2(ee,ke,Y,De,Ze,...Dt),Ue.push(lr)),qt=!0,lr}function Ae(Y,De,Ze,...Dt){return ln(Y,De-Y,Ze,...Dt)}function wt(Y,De,...Ze){Ae(Y.pos,Y.end,De,...Ze)}function fe(Y,De,Ze){ln(t.getTokenEnd(),De,Y,Ze)}function j(){return t.getTokenFullStart()}function je(){return t.hasPrecedingJSDocComment()}function q(){return Ie}function vt(){return Ie=t.scan()}function jt(Y){return Ce(),Y()}function Ce(){return qp(Ie)&&(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Ae(t.getTokenStart(),t.getTokenEnd(),_.Keywords_cannot_contain_escape_characters),vt()}function ut(){return Ie=t.scanJsDocToken()}function Qt(Y){return Ie=t.scanJSDocCommentTextToken(Y)}function Zr(){return Ie=t.reScanGreaterToken()}function jr(){return Ie=t.reScanSlashToken()}function Jr(Y){return Ie=t.reScanTemplateToken(Y)}function ct(){return Ie=t.reScanLessThanToken()}function It(){return Ie=t.reScanHashToken()}function Ot(){return Ie=t.scanJsxIdentifier()}function Ht(){return Ie=t.scanJsxToken()}function hr(){return Ie=t.scanJsxAttributeValue()}function ur(Y,De){let Ze=Ie,Dt=Ue.length,Xt=qt,lr=Mr,qn=De!==0?t.lookAhead(Y):t.tryScan(Y);return w.assert(lr===Mr),(!qn||De!==0)&&(Ie=Ze,De!==2&&(Ue.length=Dt),qt=Xt),qn}function Nt(Y){return ur(Y,1)}function mr(Y){return ur(Y,0)}function Tr(){return q()===80?!0:q()>118}function Cr(){return q()===80?!0:q()===127&&Le()||q()===135&&Ye()?!1:q()>118}function rr(Y,De,Ze=!0){return q()===Y?(Ze&&Ce(),!0):(De?Gt(De):Gt(_._0_expected,ta(Y)),!1)}let di=Object.keys(KO).filter(Y=>Y.length>2);function Vs(Y){if(U0(Y)){Ae(ha(ke,Y.template.pos),Y.template.end,_.Module_declaration_names_may_only_use_or_quoted_strings);return}let De=Be(Y)?Fn(Y):void 0;if(!De||!af(De,Oe)){Gt(_._0_expected,ta(27));return}let Ze=ha(ke,Y.pos);switch(De){case"const":case"let":case"var":Ae(Ze,Y.end,_.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":qs(_.Interface_name_cannot_be_0,_.Interface_must_be_given_a_name,19);return;case"is":Ae(Ze,t.getTokenStart(),_.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":qs(_.Namespace_name_cannot_be_0,_.Namespace_must_be_given_a_name,19);return;case"type":qs(_.Type_alias_name_cannot_be_0,_.Type_alias_must_be_given_a_name,64);return}let Dt=pS(De,di,Do)??xs(De);if(Dt){Ae(Ze,Y.end,_.Unknown_keyword_or_identifier_Did_you_mean_0,Dt);return}q()!==0&&Ae(Ze,Y.end,_.Unexpected_keyword_or_identifier)}function qs(Y,De,Ze){q()===Ze?Gt(De):Gt(Y,t.getTokenValue())}function xs(Y){for(let De of di)if(Y.length>De.length+2&&Zi(Y,De))return`${De} ${Y.slice(De.length)}`}function Dc(Y,De,Ze){if(q()===60&&!t.hasPrecedingLineBreak()){Gt(_.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(q()===21){Gt(_.Cannot_start_a_function_call_in_a_type_annotation),Ce();return}if(De&&!ys()){Ze?Gt(_._0_expected,ta(27)):Gt(_.Expected_for_property_initializer);return}if(!Ys()){if(Ze){Gt(_._0_expected,ta(27));return}Vs(Y)}}function vc(Y){return q()===Y?(ut(),!0):(w.assert(e8(Y)),Gt(_._0_expected,ta(Y)),!1)}function vo(Y,De,Ze,Dt){if(q()===De){Ce();return}let Xt=Gt(_._0_expected,ta(De));Ze&&Xt&&Xs(Xt,C2(ee,ke,Dt,1,_.The_parser_expected_to_find_a_1_to_match_the_0_token_here,ta(Y),ta(De)))}function Ki(Y){return q()===Y?(Ce(),!0):!1}function Cs(Y){if(q()===Y)return Jc()}function ll(Y){if(q()===Y)return d_()}function Lo(Y,De,Ze){return Cs(Y)||uo(Y,!1,De||_._0_expected,Ze||ta(Y))}function fa(Y){let De=ll(Y);return De||(w.assert(e8(Y)),uo(Y,!1,_._0_expected,ta(Y)))}function Jc(){let Y=j(),De=q();return Ce(),$t(E(De),Y)}function d_(){let Y=j(),De=q();return ut(),$t(E(De),Y)}function ys(){return q()===27?!0:q()===20||q()===1||t.hasPrecedingLineBreak()}function Ys(){return ys()?(q()===27&&Ce(),!0):!1}function Ga(){return Ys()||rr(27)}function Fa(Y,De,Ze,Dt){let Xt=h(Y,Dt);return om(Xt,De,Ze??t.getTokenFullStart()),Xt}function $t(Y,De,Ze){return om(Y,De,Ze??t.getTokenFullStart()),Mr&&(Y.flags|=Mr),qt&&(qt=!1,Y.flags|=262144),Y}function uo(Y,De,Ze,...Dt){De?ln(t.getTokenFullStart(),0,Ze,...Dt):Ze&&Gt(Ze,...Dt);let Xt=j(),lr=Y===80?I("",void 0):cb(Y)?d.createTemplateLiteralLikeNode(Y,"","",void 0):Y===9?S("",void 0):Y===11?T("",void 0):Y===283?d.createMissingDeclaration():E(Y);return $t(lr,Xt)}function Mc(Y){let De=Qe.get(Y);return De===void 0&&Qe.set(Y,De=Y),De}function rl(Y,De,Ze){if(Y){St++;let xn=t.hasPrecedingJSDocLeadingAsterisks()?t.getTokenStart():j(),rn=q(),mi=Mc(t.getTokenValue()),Hi=t.hasExtendedUnicodeEscape();return vt(),$t(I(mi,rn,Hi),xn)}if(q()===81)return Gt(Ze||_.Private_identifiers_are_not_allowed_outside_class_bodies),rl(!0);if(q()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return rl(!0);St++;let Dt=q()===1,Xt=t.isReservedWord(),lr=t.getTokenText(),qn=Xt?_.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:_.Identifier_expected;return uo(80,Dt,De||qn,lr)}function Yl(Y){return rl(Tr(),void 0,Y)}function Ko(Y,De){return rl(Cr(),Y,De)}function Rc(Y){return rl(zp(q()),Y)}function N(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Gt(_.Unicode_escape_sequence_cannot_appear_here),rl(zp(q()))}function We(){return zp(q())||q()===11||q()===9||q()===10}function dt(){return zp(q())||q()===11}function Ut(Y){if(q()===11||q()===9||q()===10){let De=Et();return De.text=Mc(De.text),De}return Y&&q()===23?Yn():q()===81?hn():Rc()}function Wr(){return Ut(!0)}function Yn(){let Y=j();rr(23);let De=wr(yp);return rr(24),$t(d.createComputedPropertyName(De),Y)}function hn(){let Y=j(),De=P(Mc(t.getTokenValue()));return Ce(),$t(De,Y)}function Rr(Y){return q()===Y&&mr(Ri)}function Di(){return Ce(),t.hasPrecedingLineBreak()?!1:ul()}function Ri(){switch(q()){case 87:return Ce()===94;case 95:return Ce(),q()===90?Nt(Eo):q()===156?Nt(ua):so();case 90:return Eo();case 126:return Ce(),ul();case 139:case 153:return Ce(),Kc();default:return Di()}}function so(){return q()===60||q()!==42&&q()!==130&&q()!==19&&ul()}function ua(){return Ce(),so()}function Xo(){return ub(q())&&mr(Ri)}function ul(){return q()===23||q()===19||q()===42||q()===26||We()}function Kc(){return q()===23||We()}function Eo(){return Ce(),q()===86||q()===100||q()===120||q()===60||q()===128&&Nt(rf)||q()===134&&Nt(H_)}function Uc(Y,De){if(zo(Y))return!0;switch(Y){case 0:case 1:case 3:return!(q()===27&&De)&&Cv();case 2:return q()===84||q()===90;case 4:return Nt(xd);case 5:return Nt(px)||q()===27&&!De;case 6:return q()===23||We();case 12:switch(q()){case 23:case 42:case 26:case 25:return!0;default:return We()}case 18:return We();case 9:return q()===23||q()===26||We();case 24:return dt();case 7:return q()===19?Nt(Of):De?Cr()&&!Re():ef()&&!Re();case 8:return zC();case 10:return q()===28||q()===26||zC();case 19:return q()===103||q()===87||Cr();case 15:switch(q()){case 28:case 25:return!0}case 11:return q()===26||Wu();case 16:return lt(!1);case 17:return lt(!0);case 20:case 21:return q()===28||Ub();case 22:return fx();case 23:return q()===161&&Nt(Nh)?!1:q()===11?!0:zp(q());case 13:return zp(q())||q()===19;case 14:return!0;case 25:return!0;case 26:return w.fail("ParsingContext.Count used as a context");default:w.assertNever(Y,"Non-exhaustive case in 'isListElement'.")}}function Of(){if(w.assert(q()===19),Ce()===20){let Y=Ce();return Y===28||Y===19||Y===96||Y===119}return!0}function Cu(){return Ce(),Cr()}function Kf(){return Ce(),zp(q())}function Xp(){return Ce(),mee(q())}function Re(){return q()===119||q()===96?Nt(zt):!1}function zt(){return Ce(),Wu()}function Vr(){return Ce(),Ub()}function ns(Y){if(q()===1)return!0;switch(Y){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return q()===20;case 3:return q()===20||q()===84||q()===90;case 7:return q()===19||q()===96||q()===119;case 8:return ja();case 19:return q()===32||q()===21||q()===19||q()===96||q()===119;case 11:return q()===22||q()===27;case 15:case 21:case 10:return q()===24;case 17:case 16:case 18:return q()===22||q()===24;case 20:return q()!==28;case 22:return q()===19||q()===20;case 13:return q()===32||q()===44;case 14:return q()===30&&Nt(PL);default:return!1}}function ja(){return!!(ys()||vp(q())||q()===39)}function La(){w.assert(Bt,"Missing parsing context");for(let Y=0;Y<26;Y++)if(Bt&1<<Y&&(Uc(Y,!0)||ns(Y)))return!0;return!1}function Ca(Y,De){let Ze=Bt;Bt|=1<<Y;let Dt=[],Xt=j();for(;!ns(Y);){if(Uc(Y,!1)){Dt.push(bl(Y,De));continue}if(Ch(Y))break}return Bt=Ze,Fa(Dt,Xt)}function bl(Y,De){let Ze=zo(Y);return Ze?bc(Ze):De()}function zo(Y,De){var Ze;if(!Ne||!Oc(Y)||qt)return;let Dt=Ne.currentNode(De??t.getTokenFullStart());if(!(xc(Dt)||Tze(Dt)||l2(Dt)||(Dt.flags&101441536)!==Mr)&&Xf(Dt,Y))return h6(Dt)&&((Ze=Dt.jsDoc)!=null&&Ze.jsDocCache)&&(Dt.jsDoc.jsDocCache=void 0),Dt}function bc(Y){return t.resetTokenState(Y.end),Ce(),Y}function Oc(Y){switch(Y){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}function Xf(Y,De){switch(De){case 5:return fu(Y);case 2:return Zl(Y);case 0:case 1:case 3:return Ff(Y);case 6:return hp(Y);case 4:return U_(Y);case 8:return Rg(Y);case 17:case 16:return xh(Y)}return!1}function fu(Y){if(Y)switch(Y.kind){case 177:case 182:case 178:case 179:case 173:case 241:return!0;case 175:let De=Y;return!(De.name.kind===80&&De.name.escapedText==="constructor")}return!1}function Zl(Y){if(Y)switch(Y.kind){case 297:case 298:return!0}return!1}function Ff(Y){if(Y)switch(Y.kind){case 263:case 244:case 242:case 246:case 245:case 258:case 254:case 256:case 253:case 252:case 250:case 251:case 249:case 248:case 255:case 243:case 259:case 257:case 247:case 260:case 273:case 272:case 279:case 278:case 268:case 264:case 265:case 267:case 266:return!0}return!1}function hp(Y){return Y.kind===307}function U_(Y){if(Y)switch(Y.kind){case 181:case 174:case 182:case 172:case 180:return!0}return!1}function Rg(Y){return Y.kind!==261?!1:Y.initializer===void 0}function xh(Y){return Y.kind!==170?!1:Y.initializer===void 0}function Ch(Y){return Yp(Y),La()?!0:(Ce(),!1)}function Yp(Y){switch(Y){case 0:return q()===90?Gt(_._0_expected,ta(95)):Gt(_.Declaration_or_statement_expected);case 1:return Gt(_.Declaration_or_statement_expected);case 2:return Gt(_.case_or_default_expected);case 3:return Gt(_.Statement_expected);case 18:case 4:return Gt(_.Property_or_signature_expected);case 5:return Gt(_.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return Gt(_.Enum_member_expected);case 7:return Gt(_.Expression_expected);case 8:return qp(q())?Gt(_._0_is_not_allowed_as_a_variable_declaration_name,ta(q())):Gt(_.Variable_declaration_expected);case 9:return Gt(_.Property_destructuring_pattern_expected);case 10:return Gt(_.Array_element_destructuring_pattern_expected);case 11:return Gt(_.Argument_expression_expected);case 12:return Gt(_.Property_assignment_expected);case 15:return Gt(_.Expression_or_comma_expected);case 17:return Gt(_.Parameter_declaration_expected);case 16:return qp(q())?Gt(_._0_is_not_allowed_as_a_parameter_name,ta(q())):Gt(_.Parameter_declaration_expected);case 19:return Gt(_.Type_parameter_declaration_expected);case 20:return Gt(_.Type_argument_expected);case 21:return Gt(_.Type_expected);case 22:return Gt(_.Unexpected_token_expected);case 23:return q()===161?Gt(_._0_expected,"}"):Gt(_.Identifier_expected);case 13:return Gt(_.Identifier_expected);case 14:return Gt(_.Identifier_expected);case 24:return Gt(_.Identifier_or_string_literal_expected);case 25:return Gt(_.Identifier_expected);case 26:return w.fail("ParsingContext.Count used as a context");default:w.assertNever(Y)}}function Ll(Y,De,Ze){let Dt=Bt;Bt|=1<<Y;let Xt=[],lr=j(),qn=-1;for(;;){if(Uc(Y,!1)){let xn=t.getTokenFullStart(),rn=bl(Y,De);if(!rn){Bt=Dt;return}if(Xt.push(rn),qn=t.getTokenStart(),Ki(28))continue;if(qn=-1,ns(Y))break;rr(28,mm(Y)),Ze&&q()===27&&!t.hasPrecedingLineBreak()&&Ce(),xn===t.getTokenFullStart()&&Ce();continue}if(ns(Y)||Ch(Y))break}return Bt=Dt,Fa(Xt,lr,void 0,qn>=0)}function mm(Y){return Y===6?_.An_enum_member_name_must_be_followed_by_a_or:void 0}function m_(){let Y=Fa([],j());return Y.isMissingList=!0,Y}function og(Y){return!!Y.isMissingList}function ne(Y,De,Ze,Dt){if(rr(Ze)){let Xt=Ll(Y,De);return rr(Dt),Xt}return m_()}function ot(Y,De){let Ze=j(),Dt=Y?Rc(De):Ko(De);for(;Ki(25)&&q()!==30;)Dt=$t(d.createQualifiedName(Dt,er(Y,!1,!0)),Ze);return Dt}function Kt(Y,De){return $t(d.createQualifiedName(Y,De),Y.pos)}function er(Y,De,Ze){if(t.hasPrecedingLineBreak()&&zp(q())&&Nt(OC))return uo(80,!0,_.Identifier_expected);if(q()===81){let Dt=hn();return De?Dt:uo(80,!0,_.Identifier_expected)}return Y?Ze?Rc():N():Ko()}function Ar(Y){let De=j(),Ze=[],Dt;do Dt=Fe(Y),Ze.push(Dt);while(Dt.literal.kind===17);return Fa(Ze,De)}function Qr(Y){let De=j();return $t(d.createTemplateExpression(Er(Y),Ar(Y)),De)}function $n(){let Y=j();return $t(d.createTemplateLiteralType(Er(!1),fi()),Y)}function fi(){let Y=j(),De=[],Ze;do Ze=Wi(),De.push(Ze);while(Ze.literal.kind===17);return Fa(De,Y)}function Wi(){let Y=j();return $t(d.createTemplateLiteralTypeSpan(Yo(),L(!1)),Y)}function L(Y){return q()===20?(Jr(Y),is()):Lo(18,_._0_expected,ta(20))}function Fe(Y){let De=j();return $t(d.createTemplateSpan(wr(yp),L(Y)),De)}function Et(){return os(q())}function Er(Y){!Y&&t.getTokenFlags()&26656&&Jr(!1);let De=os(q());return w.assert(De.kind===16,"Template head has wrong token kind"),De}function is(){let Y=os(q());return w.assert(Y.kind===17||Y.kind===18,"Template fragment has wrong token kind"),Y}function zs(Y){let De=Y===15||Y===18,Ze=t.getTokenText();return Ze.substring(1,Ze.length-(t.isUnterminated()?0:De?1:2))}function os(Y){let De=j(),Ze=cb(Y)?d.createTemplateLiteralLikeNode(Y,t.getTokenValue(),zs(Y),t.getTokenFlags()&7176):Y===9?S(t.getTokenValue(),t.getNumericLiteralFlags()):Y===11?T(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):FP(Y)?x(Y,t.getTokenValue()):w.fail();return t.hasExtendedUnicodeEscape()&&(Ze.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(Ze.isUnterminated=!0),Ce(),$t(Ze,De)}function Ps(){return ot(!0,_.Type_expected)}function rc(){if(!t.hasPrecedingLineBreak()&&ct()===30)return ne(20,Yo,30,32)}function _a(){let Y=j();return $t(d.createTypeReferenceNode(Ps(),rc()),Y)}function eu(Y){switch(Y.kind){case 184:return xc(Y.typeName);case 185:case 186:{let{parameters:De,type:Ze}=Y;return og(De)||eu(Ze)}case 197:return eu(Y.type);default:return!1}}function jf(Y){return Ce(),$t(d.createTypePredicateNode(void 0,Y,Yo()),Y.pos)}function g_(){let Y=j();return Ce(),$t(d.createThisTypeNode(),Y)}function V_(){let Y=j();return Ce(),$t(d.createJSDocAllType(),Y)}function gy(){let Y=j();return Ce(),$t(d.createJSDocNonNullableType(aT(),!1),Y)}function gv(){let Y=j();return Ce(),q()===28||q()===20||q()===22||q()===32||q()===64||q()===52?$t(d.createJSDocUnknownType(),Y):$t(d.createJSDocNullableType(Yo(),!1),Y)}function Mp(){let Y=j(),De=je();if(mr(UC)){let Ze=oi(36),Dt=en(59,!1);return Sn($t(d.createJSDocFunctionType(Ze,Dt),Y),De)}return $t(d.createTypeReferenceNode(Rc(),void 0),Y)}function Og(){let Y=j(),De;return(q()===110||q()===105)&&(De=Rc(),rr(59)),$t(d.createParameterDeclaration(void 0,void 0,De,void 0,gm(),void 0),Y)}function gm(){t.setSkipJsDocLeadingAsterisks(!0);let Y=j();if(Ki(144)){let Dt=d.createJSDocNamepathType(void 0);e:for(;;)switch(q()){case 20:case 1:case 28:case 5:break e;default:ut()}return t.setSkipJsDocLeadingAsterisks(!1),$t(Dt,Y)}let De=Ki(26),Ze=by();return t.setSkipJsDocLeadingAsterisks(!1),De&&(Ze=$t(d.createJSDocVariadicType(Ze),Y)),q()===64?(Ce(),$t(d.createJSDocOptionalType(Ze),Y)):Ze}function Td(){let Y=j();rr(114);let De=ot(!0),Ze=t.hasPrecedingLineBreak()?void 0:oc();return $t(d.createTypeQueryNode(De,Ze),Y)}function Jb(){let Y=j(),De=xi(!1,!0),Ze=Ko(),Dt,Xt;Ki(96)&&(Ub()||!Wu()?Dt=Yo():Xt=C1());let lr=Ki(64)?Yo():void 0,qn=d.createTypeParameterDeclaration(De,Ze,Dt,lr);return qn.expression=Xt,$t(qn,Y)}function Ve(){if(q()===30)return ne(19,Jb,30,32)}function lt(Y){return q()===26||zC()||ub(q())||q()===60||Ub(!Y)}function Jt(Y){let De=wv(_.Private_identifiers_cannot_be_used_as_parameters);return GM(De)===0&&!_t(Y)&&ub(q())&&Ce(),De}function yr(){return Tr()||q()===23||q()===19}function Ur(Y){return zr(Y)}function Tn(Y){return zr(Y,!1)}function zr(Y,De=!0){let Ze=j(),Dt=je(),Xt=Y?Z(()=>xi(!0)):Ee(()=>xi(!0));if(q()===110){let rn=d.createParameterDeclaration(Xt,void 0,rl(!0),void 0,Lu(),void 0),mi=_l(Xt);return mi&&wt(mi,_.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Sn($t(rn,Ze),Dt)}let lr=ft;ft=!1;let qn=Cs(26);if(!De&&!yr())return;let xn=Sn($t(d.createParameterDeclaration(Xt,qn,Jt(Xt),Cs(58),Lu(),Wg()),Ze),Dt);return ft=lr,xn}function en(Y,De){if(Ci(Y,De))return tt(by)}function Ci(Y,De){return Y===39?(rr(Y),!0):Ki(59)?!0:De&&q()===39?(Gt(_._0_expected,ta(59)),Ce(),!0):!1}function ps(Y,De){let Ze=Le(),Dt=Ye();Xn(!!(Y&1)),Mi(!!(Y&2));let Xt=Y&32?Ll(17,Og):Ll(16,()=>De?Ur(Dt):Tn(Dt));return Xn(Ze),Mi(Dt),Xt}function oi(Y){if(!rr(21))return m_();let De=ps(Y,!0);return rr(22),De}function fs(){Ki(28)||Ga()}function Bi(Y){let De=j(),Ze=je();Y===181&&rr(105);let Dt=Ve(),Xt=oi(4),lr=en(59,!0);fs();let qn=Y===180?d.createCallSignature(Dt,Xt,lr):d.createConstructSignature(Dt,Xt,lr);return Sn($t(qn,De),Ze)}function nc(){return q()===23&&Nt(Zp)}function Zp(){if(Ce(),q()===26||q()===24)return!0;if(ub(q())){if(Ce(),Cr())return!0}else if(Cr())Ce();else return!1;return q()===59||q()===28?!0:q()!==58?!1:(Ce(),q()===59||q()===28||q()===24)}function kd(Y,De,Ze){let Dt=ne(16,()=>Ur(!1),23,24),Xt=Lu();fs();let lr=d.createIndexSignature(Ze,Dt,Xt);return Sn($t(lr,Y),De)}function _u(Y,De,Ze){let Dt=Wr(),Xt=Cs(58),lr;if(q()===21||q()===30){let qn=Ve(),xn=oi(4),rn=en(59,!0);lr=d.createMethodSignature(Ze,Dt,Xt,qn,xn,rn)}else{let qn=Lu();lr=d.createPropertySignature(Ze,Dt,Xt,qn),q()===64&&(lr.initializer=Wg())}return fs(),Sn($t(lr,Y),De)}function xd(){if(q()===21||q()===30||q()===139||q()===153)return!0;let Y=!1;for(;ub(q());)Y=!0,Ce();return q()===23?!0:(We()&&(Y=!0,Ce()),Y?q()===21||q()===30||q()===58||q()===59||q()===28||ys():!1)}function Lf(){if(q()===21||q()===30)return Bi(180);if(q()===105&&Nt(m1))return Bi(181);let Y=j(),De=je(),Ze=xi(!1);return Rr(139)?O1(Y,De,Ze,178,4):Rr(153)?O1(Y,De,Ze,179,4):nc()?kd(Y,De,Ze):_u(Y,De,Ze)}function m1(){return Ce(),q()===21||q()===30}function cg(){return Ce()===25}function Fg(){switch(Ce()){case 21:case 30:case 25:return!0}return!1}function g1(){let Y=j();return $t(d.createTypeLiteralNode(jg()),Y)}function jg(){let Y;return rr(19)?(Y=Ca(4,Lf),rr(20)):Y=m_(),Y}function dD(){return Ce(),q()===40||q()===41?Ce()===148:(q()===148&&Ce(),q()===23&&Cu()&&Ce()===103)}function tN(){let Y=j(),De=Rc();rr(103);let Ze=Yo();return $t(d.createTypeParameterDeclaration(void 0,De,Ze,void 0),Y)}function mD(){let Y=j();rr(19);let De;(q()===148||q()===40||q()===41)&&(De=Jc(),De.kind!==148&&rr(148)),rr(23);let Ze=tN(),Dt=Ki(130)?Yo():void 0;rr(24);let Xt;(q()===58||q()===40||q()===41)&&(Xt=Jc(),Xt.kind!==58&&rr(58));let lr=Lu();Ga();let qn=Ca(4,Lf);return rr(20),$t(d.createMappedTypeNode(De,Ze,Dt,Xt,lr,qn),Y)}function wh(){let Y=j();if(Ki(26))return $t(d.createRestTypeNode(Yo()),Y);let De=Yo();if(bI(De)&&De.pos===De.type.pos){let Ze=d.createOptionalTypeNode(De.type);return mt(Ze,De),Ze.flags=De.flags,Ze}return De}function h1(){return Ce()===59||q()===58&&Ce()===59}function Uk(){return q()===26?zp(Ce())&&h1():zp(q())&&h1()}function hv(){if(Nt(Uk)){let Y=j(),De=je(),Ze=Cs(26),Dt=Rc(),Xt=Cs(58);rr(59);let lr=wh(),qn=d.createNamedTupleMember(Ze,Dt,Xt,lr);return Sn($t(qn,Y),De)}return wh()}function Vk(){let Y=j();return $t(d.createTupleTypeNode(ne(21,hv,23,24)),Y)}function xC(){let Y=j();rr(21);let De=Yo();return rr(22),$t(d.createParenthesizedType(De),Y)}function rN(){let Y;if(q()===128){let De=j();Ce();let Ze=$t(E(128),De);Y=Fa([Ze],De)}return Y}function qk(){let Y=j(),De=je(),Ze=rN(),Dt=Ki(105);w.assert(!Ze||Dt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let Xt=Ve(),lr=oi(4),qn=en(39,!1),xn=Dt?d.createConstructorTypeNode(Ze,Xt,lr,qn):d.createFunctionTypeNode(Xt,lr,qn);return Sn($t(xn,Y),De)}function CC(){let Y=Jc();return q()===25?void 0:Y}function y1(Y){let De=j();Y&&Ce();let Ze=q()===112||q()===97||q()===106?Jc():os(q());return Y&&(Ze=$t(d.createPrefixUnaryExpression(41,Ze),De)),$t(d.createLiteralTypeNode(Ze),De)}function gD(){return Ce(),q()===102}function $k(){ge|=4194304;let Y=j(),De=Ki(114);rr(102),rr(21);let Ze=Yo(),Dt;if(Ki(28)){let qn=t.getTokenStart();rr(19);let xn=q();if(xn===118||xn===132?Ce():Gt(_._0_expected,ta(118)),rr(59),Dt=i0(xn,!0),Ki(28),!rr(20)){let rn=Wo(Ue);rn&&rn.code===_._0_expected.code&&Xs(rn,C2(ee,ke,qn,1,_.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}rr(22);let Xt=Ki(25)?Ps():void 0,lr=rc();return $t(d.createImportTypeNode(Ze,Dt,Xt,lr,De),Y)}function wC(){return Ce(),q()===9||q()===10}function aT(){switch(q()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return mr(CC)||_a();case 67:t.reScanAsteriskEqualsToken();case 42:return V_();case 61:t.reScanQuestionToken();case 58:return gv();case 100:return Mp();case 54:return gy();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return y1();case 41:return Nt(wC)?y1(!0):_a();case 116:return Jc();case 110:{let Y=g_();return q()===142&&!t.hasPrecedingLineBreak()?jf(Y):Y}case 114:return Nt(gD)?$k():Td();case 19:return Nt(dD)?mD():g1();case 23:return Vk();case 21:return xC();case 102:return $k();case 131:return Nt(OC)?Lg():_a();case 16:return $n();default:return _a()}}function Ub(Y){switch(q()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!Y;case 41:return!Y&&Nt(wC);case 21:return!Y&&Nt(IC);default:return Cr()}}function IC(){return Ce(),q()===22||lt(!1)||Ub()}function DC(){let Y=j(),De=aT();for(;!t.hasPrecedingLineBreak();)switch(q()){case 54:Ce(),De=$t(d.createJSDocNonNullableType(De,!0),Y);break;case 58:if(Nt(Vr))return De;Ce(),De=$t(d.createJSDocNullableType(De,!0),Y);break;case 23:if(rr(23),Ub()){let Ze=Yo();rr(24),De=$t(d.createIndexedAccessTypeNode(De,Ze),Y)}else rr(24),De=$t(d.createArrayTypeNode(De),Y);break;default:return De}return De}function oT(Y){let De=j();return rr(Y),$t(d.createTypeOperatorNode(Y,yy()),De)}function Vb(){if(Ki(96)){let Y=Mt(Yo);if(Tt()||q()!==58)return Y}}function yv(){let Y=j(),De=Ko(),Ze=mr(Vb),Dt=d.createTypeParameterDeclaration(void 0,De,Ze);return $t(Dt,Y)}function hy(){let Y=j();return rr(140),$t(d.createInferTypeNode(yv()),Y)}function yy(){let Y=q();switch(Y){case 143:case 158:case 148:return oT(Y);case 140:return hy()}return tt(DC)}function vy(Y){if(Ba()){let De=qk(),Ze;return Pg(De)?Ze=Y?_.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:_.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Ze=Y?_.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:_.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,wt(De,Ze),De}}function qb(Y,De,Ze){let Dt=j(),Xt=Y===52,lr=Ki(Y),qn=lr&&vy(Xt)||De();if(q()===Y||lr){let xn=[qn];for(;Ki(Y);)xn.push(vy(Xt)||De());qn=$t(Ze(Fa(xn,Dt)),Dt)}return qn}function v1(){return qb(51,yy,d.createIntersectionTypeNode)}function Hk(){return qb(52,v1,d.createUnionTypeNode)}function b1(){return Ce(),q()===105}function Ba(){return q()===30||q()===21&&Nt(hD)?!0:q()===105||q()===128&&Nt(b1)}function Qk(){if(ub(q())&&xi(!1),Cr()||q()===110)return Ce(),!0;if(q()===23||q()===19){let Y=Ue.length;return wv(),Y===Ue.length}return!1}function hD(){return Ce(),!!(q()===22||q()===26||Qk()&&(q()===59||q()===28||q()===58||q()===64||q()===22&&(Ce(),q()===39)))}function by(){let Y=j(),De=Cr()&&mr(Sy),Ze=Yo();return De?$t(d.createTypePredicateNode(void 0,De,Ze),Y):Ze}function Sy(){let Y=Ko();if(q()===142&&!t.hasPrecedingLineBreak())return Ce(),Y}function Lg(){let Y=j(),De=Lo(131),Ze=q()===110?g_():Ko(),Dt=Ki(142)?Yo():void 0;return $t(d.createTypePredicateNode(De,Ze,Dt),Y)}function Yo(){if(Mr&81920)return js(81920,Yo);if(Ba())return qk();let Y=j(),De=Hk();if(!Tt()&&!t.hasPrecedingLineBreak()&&Ki(96)){let Ze=Mt(Yo);rr(58);let Dt=tt(Yo);rr(59);let Xt=tt(Yo);return $t(d.createConditionalTypeNode(De,Ze,Dt,Xt),Y)}return De}function Lu(){return Ki(59)?Yo():void 0}function ef(){switch(q()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Nt(Fg);default:return Cr()}}function Wu(){if(ef())return!0;switch(q()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return wd()?!0:Cr()}}function S1(){return q()!==19&&q()!==100&&q()!==86&&q()!==60&&Wu()}function yp(){let Y=Rt();Y&&ei(!1);let De=j(),Ze=Rp(!0),Dt;for(;Dt=Cs(28);)Ze=wa(Ze,Dt,Rp(!0),De);return Y&&ei(!0),Ze}function Wg(){return Ki(64)?Rp(!0):void 0}function Rp(Y){if(Cd())return T1();let De=nN(Y)||$e(Y);if(De)return De;let Ze=j(),Dt=je(),Xt=$b(0);return Xt.kind===80&&q()===39?k1(Ze,Xt,Y,Dt,void 0):Jp(Xt)&&ry(Zr())?wa(Xt,Jc(),Rp(Y),Ze):bv(Xt,Ze,Y)}function Cd(){return q()===127?Le()?!0:Nt(_T):!1}function Gd(){return Ce(),!t.hasPrecedingLineBreak()&&Cr()}function T1(){let Y=j();return Ce(),!t.hasPrecedingLineBreak()&&(q()===42||Wu())?$t(d.createYieldExpression(Cs(42),Rp(!0)),Y):$t(d.createYieldExpression(void 0,void 0),Y)}function k1(Y,De,Ze,Dt,Xt){w.assert(q()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let lr=d.createParameterDeclaration(void 0,void 0,De,void 0,void 0,void 0);$t(lr,De.pos);let qn=Fa([lr],lr.pos,lr.end),xn=Lo(39),rn=Jd(!!Xt,Ze),mi=d.createArrowFunction(Xt,void 0,qn,void 0,xn,rn);return Sn($t(mi,Y),Dt)}function nN(Y){let De=yD();if(De!==0)return De===1?Ih(!0,!0):mr(()=>cT(Y))}function yD(){return q()===21||q()===30||q()===134?Nt(vv):q()===39?1:0}function vv(){if(q()===134&&(Ce(),t.hasPrecedingLineBreak()||q()!==21&&q()!==30))return 0;let Y=q(),De=Ce();if(Y===21){if(De===22)switch(Ce()){case 39:case 59:case 19:return 1;default:return 0}if(De===23||De===19)return 2;if(De===26)return 1;if(ub(De)&&De!==134&&Nt(Cu))return Ce()===130?0:1;if(!Cr()&&De!==110)return 0;switch(Ce()){case 59:return 1;case 58:return Ce(),q()===59||q()===28||q()===64||q()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return w.assert(Y===30),!Cr()&&q()!==87?0:ae===1?Nt(()=>{Ki(87);let Dt=Ce();if(Dt===96)switch(Ce()){case 64:case 32:case 44:return!1;default:return!0}else if(Dt===28||Dt===64)return!0;return!1})?1:0:2}function cT(Y){let De=t.getTokenStart();if(fr?.has(De))return;let Ze=Ih(!1,Y);return Ze||(fr||(fr=new Set)).add(De),Ze}function $e(Y){if(q()===134&&Nt(Kk)===1){let De=j(),Ze=je(),Dt=cs(),Xt=$b(0);return k1(De,Xt,Y,Ze,Dt)}}function Kk(){if(q()===134){if(Ce(),t.hasPrecedingLineBreak()||q()===39)return 0;let Y=$b(0);if(!t.hasPrecedingLineBreak()&&Y.kind===80&&q()===39)return 1}return 0}function Ih(Y,De){let Ze=j(),Dt=je(),Xt=cs(),lr=_t(Xt,LA)?2:0,qn=Ve(),xn;if(rr(21)){if(Y)xn=ps(lr,Y);else{let Pv=ps(lr,Y);if(!Pv)return;xn=Pv}if(!rr(22)&&!Y)return}else{if(!Y)return;xn=m_()}let rn=q()===59,mi=en(59,!1);if(mi&&!Y&&eu(mi))return;let Hi=mi;for(;Hi?.kind===197;)Hi=Hi.type;let Co=Hi&&SI(Hi);if(!Y&&q()!==39&&(Co||q()!==19))return;let po=q(),Ua=Lo(39),Q_=po===39||po===19?Jd(_t(Xt,LA),De):Ko();if(!De&&rn&&q()!==59)return;let b_=d.createArrowFunction(Xt,qn,xn,mi,Ua,Q_);return Sn($t(b_,Ze),Dt)}function Jd(Y,De){if(q()===19)return e0(Y?2:0);if(q()!==27&&q()!==100&&q()!==86&&Cv()&&!S1())return e0(16|(Y?2:0));let Ze=Le();Xn(!1);let Dt=ft;ft=!1;let Xt=Y?Z(()=>Rp(De)):Ee(()=>Rp(De));return ft=Dt,Xn(Ze),Xt}function bv(Y,De,Ze){let Dt=Cs(58);if(!Dt)return Y;let Xt;return $t(d.createConditionalExpression(Y,Dt,js(n,()=>Rp(!1)),Xt=Lo(59),ud(Xt)?Rp(Ze):uo(80,!1,_._0_expected,ta(59))),De)}function $b(Y){let De=j(),Ze=C1();return hm(Y,Ze,De)}function vp(Y){return Y===103||Y===165}function hm(Y,De,Ze){for(;;){Zr();let Dt=C6(q());if(!(q()===43?Dt>=Y:Dt>Y)||q()===103&&kt())break;if(q()===130||q()===152){if(t.hasPrecedingLineBreak())break;{let lr=q();Ce(),De=lr===152?x1(De,Yo()):h_(De,Yo())}}else De=wa(De,Jc(),$b(Dt),Ze)}return De}function wd(){return kt()&&q()===103?!1:C6(q())>0}function x1(Y,De){return $t(d.createSatisfiesExpression(Y,De),Y.pos)}function wa(Y,De,Ze,Dt){return $t(d.createBinaryExpression(Y,De,Ze),Dt)}function h_(Y,De){return $t(d.createAsExpression(Y,De),Y.pos)}function Sv(){let Y=j();return $t(d.createPrefixUnaryExpression(q(),jt(Tv)),Y)}function Xk(){let Y=j();return $t(d.createDeleteExpression(jt(Tv)),Y)}function Ty(){let Y=j();return $t(d.createTypeOfExpression(jt(Tv)),Y)}function lT(){let Y=j();return $t(d.createVoidExpression(jt(Tv)),Y)}function q_(){return q()===135?Ye()?!0:Nt(_T):!1}function Dh(){let Y=j();return $t(d.createAwaitExpression(jt(Tv)),Y)}function C1(){if(lg()){let Ze=j(),Dt=uT();return q()===43?hm(C6(q()),Dt,Ze):Dt}let Y=q(),De=Tv();if(q()===43){let Ze=ha(ke,De.pos),{end:Dt}=De;De.kind===217?Ae(Ze,Dt,_.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(w.assert(e8(Y)),Ae(Ze,Dt,_.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,ta(Y)))}return De}function Tv(){switch(q()){case 40:case 41:case 55:case 54:return Sv();case 91:return Xk();case 114:return Ty();case 116:return lT();case 30:return ae===1?du(!0,void 0,void 0,!0):rp();case 135:if(q_())return Dh();default:return uT()}}function lg(){switch(q()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(ae!==1)return!1;default:return!0}}function uT(){if(q()===46||q()===47){let De=j();return $t(d.createPrefixUnaryExpression(q(),jt(w1)),De)}else if(ae===1&&q()===30&&Nt(Xp))return du(!0);let Y=w1();if(w.assert(Jp(Y)),(q()===46||q()===47)&&!t.hasPrecedingLineBreak()){let De=q();return Ce(),$t(d.createPostfixUnaryExpression(Y,De),Y.pos)}return Y}function w1(){let Y=j(),De;return q()===102?Nt(m1)?(ge|=4194304,De=Jc()):Nt(cg)?(Ce(),Ce(),De=$t(d.createMetaProperty(102,Rc()),Y),De.name.escapedText==="defer"?(q()===21||q()===30)&&(ge|=4194304):ge|=8388608):De=Wn():De=q()===108?Nn():Wn(),tf(Y,De)}function Wn(){let Y=j(),De=D1();return y_(Y,De,!0)}function Nn(){let Y=j(),De=Jc();if(q()===30){let Ze=j(),Dt=mr(I1);Dt!==void 0&&(Ae(Ze,j(),_.super_may_not_use_type_arguments),Ud()||(De=d.createExpressionWithTypeArguments(De,Dt)))}return q()===21||q()===25||q()===23?De:(Lo(25,_.super_must_be_followed_by_an_argument_list_or_member_access),$t(W(De,er(!0,!0,!0)),Y))}function du(Y,De,Ze,Dt=!1){let Xt=j(),lr=iN(Y),qn;if(lr.kind===287){let xn=pT(lr),rn,mi=xn[xn.length-1];if(mi?.kind===285&&!t1(mi.openingElement.tagName,mi.closingElement.tagName)&&t1(lr.tagName,mi.closingElement.tagName)){let Hi=mi.children.end,Co=$t(d.createJsxElement(mi.openingElement,mi.children,$t(d.createJsxClosingElement($t(I(""),Hi,Hi)),Hi,Hi)),mi.openingElement.pos,Hi);xn=Fa([...xn.slice(0,xn.length-1),Co],xn.pos,Hi),rn=mi.closingElement}else rn=bD(lr,Y),t1(lr.tagName,rn.tagName)||(Ze&&cm(Ze)&&t1(rn.tagName,Ze.tagName)?wt(lr.tagName,_.JSX_element_0_has_no_corresponding_closing_tag,JP(ke,lr.tagName)):wt(rn.tagName,_.Expected_corresponding_JSX_closing_tag_for_0,JP(ke,lr.tagName)));qn=$t(d.createJsxElement(lr,xn,rn),Xt)}else lr.kind===290?qn=$t(d.createJsxFragment(lr,pT(lr),PC(Y)),Xt):(w.assert(lr.kind===286),qn=lr);if(!Dt&&Y&&q()===30){let xn=typeof De>"u"?qn.pos:De,rn=mr(()=>du(!0,xn));if(rn){let mi=uo(28,!1);return BG(mi,rn.pos,0),Ae(ha(ke,xn),rn.end,_.JSX_expressions_must_have_one_parent_element),$t(d.createBinaryExpression(qn,mi,rn),Xt)}}return qn}function Yk(){let Y=j(),De=d.createJsxText(t.getTokenValue(),Ie===13);return Ie=t.scanJsxToken(),$t(De,Y)}function ky(Y,De){switch(De){case 1:if(Wd(Y))wt(Y,_.JSX_fragment_has_no_corresponding_closing_tag);else{let Ze=Y.tagName,Dt=Math.min(ha(ke,Ze.pos),Ze.end);Ae(Dt,Ze.end,_.JSX_element_0_has_no_corresponding_closing_tag,JP(ke,Y.tagName))}return;case 31:case 7:return;case 12:case 13:return Yk();case 19:return Ts(!1);case 30:return du(!1,void 0,Y);default:return w.assertNever(De)}}function pT(Y){let De=[],Ze=j(),Dt=Bt;for(Bt|=16384;;){let Xt=ky(Y,Ie=t.reScanJsxToken());if(!Xt||(De.push(Xt),cm(Y)&&Xt?.kind===285&&!t1(Xt.openingElement.tagName,Xt.closingElement.tagName)&&t1(Y.tagName,Xt.closingElement.tagName)))break}return Bt=Dt,Fa(De,Ze)}function vD(){let Y=j();return $t(d.createJsxAttributes(Ca(13,ff)),Y)}function iN(Y){let De=j();if(rr(30),q()===32)return Ht(),$t(d.createJsxOpeningFragment(),De);let Ze=Pn(),Dt=(Mr&524288)===0?oc():void 0,Xt=vD(),lr;return q()===32?(Ht(),lr=d.createJsxOpeningElement(Ze,Dt,Xt)):(rr(44),rr(32,void 0,!1)&&(Y?Ce():Ht()),lr=d.createJsxSelfClosingElement(Ze,Dt,Xt)),$t(lr,De)}function Pn(){let Y=j(),De=bp();if(lm(De))return De;let Ze=De;for(;Ki(25);)Ze=$t(W(Ze,er(!0,!1,!1)),Y);return Ze}function bp(){let Y=j();Ot();let De=q()===110,Ze=N();return Ki(59)?(Ot(),$t(d.createJsxNamespacedName(Ze,N()),Y)):De?$t(d.createToken(110),Y):Ze}function Ts(Y){let De=j();if(!rr(19))return;let Ze,Dt;return q()!==20&&(Y||(Ze=Cs(26)),Dt=yp()),Y?rr(20):rr(20,void 0,!1)&&Ht(),$t(d.createJsxExpression(Ze,Dt),De)}function ff(){if(q()===19)return bn();let Y=j();return $t(d.createJsxAttribute(Hb(),Zk()),Y)}function Zk(){if(q()===64){if(hr()===11)return Et();if(q()===19)return Ts(!0);if(q()===30)return du(!0);Gt(_.or_JSX_element_expected)}}function Hb(){let Y=j();Ot();let De=N();return Ki(59)?(Ot(),$t(d.createJsxNamespacedName(De,N()),Y)):De}function bn(){let Y=j();rr(19),rr(26);let De=yp();return rr(20),$t(d.createJsxSpreadAttribute(De),Y)}function bD(Y,De){let Ze=j();rr(31);let Dt=Pn();return rr(32,void 0,!1)&&(De||!t1(Y.tagName,Dt)?Ce():Ht()),$t(d.createJsxClosingElement(Dt),Ze)}function PC(Y){let De=j();return rr(31),rr(32,_.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(Y?Ce():Ht()),$t(d.createJsxJsxClosingFragment(),De)}function rp(){w.assert(ae!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let Y=j();rr(30);let De=Yo();rr(32);let Ze=Tv();return $t(d.createTypeAssertion(De,Ze),Y)}function Bg(){return Ce(),zp(q())||q()===23||Ud()}function ym(){return q()===29&&Nt(Bg)}function Qb(Y){if(Y.flags&64)return!0;if(V2(Y)){let De=Y.expression;for(;V2(De)&&!(De.flags&64);)De=De.expression;if(De.flags&64){for(;V2(Y);)Y.flags|=64,Y=Y.expression;return!0}}return!1}function ex(Y,De,Ze){let Dt=er(!0,!0,!0),Xt=Ze||Qb(De),lr=Xt?z(De,Ze,Dt):W(De,Dt);if(Xt&&zi(lr.name)&&wt(lr.name,_.An_optional_chain_cannot_contain_private_identifiers),sy(De)&&De.typeArguments){let qn=De.typeArguments.pos-1,xn=ha(ke,De.typeArguments.end)+1;Ae(qn,xn,_.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return $t(lr,Y)}function Kb(Y,De,Ze){let Dt;if(q()===24)Dt=uo(80,!0,_.An_element_access_expression_should_take_an_argument);else{let lr=wr(yp);s_(lr)&&(lr.text=Mc(lr.text)),Dt=lr}rr(24);let Xt=Ze||Qb(De)?X(De,Ze,Dt):$(De,Dt);return $t(Xt,Y)}function y_(Y,De,Ze){for(;;){let Dt,Xt=!1;if(Ze&&ym()?(Dt=Lo(29),Xt=zp(q())):Xt=Ki(25),Xt){De=ex(Y,De,Dt);continue}if((Dt||!Rt())&&Ki(23)){De=Kb(Y,De,Dt);continue}if(Ud()){De=!Dt&&De.kind===234?$_(Y,De.expression,Dt,De.typeArguments):$_(Y,De,Dt,void 0);continue}if(!Dt){if(q()===54&&!t.hasPrecedingLineBreak()){Ce(),De=$t(d.createNonNullExpression(De),Y);continue}let lr=mr(I1);if(lr){De=$t(d.createExpressionWithTypeArguments(De,lr),Y);continue}}return De}}function Ud(){return q()===15||q()===16}function $_(Y,De,Ze,Dt){let Xt=d.createTaggedTemplateExpression(De,Dt,q()===15?(Jr(!0),Et()):Qr(!0));return(Ze||De.flags&64)&&(Xt.flags|=64),Xt.questionDotToken=Ze,$t(Xt,Y)}function tf(Y,De){for(;;){De=y_(Y,De,!0);let Ze,Dt=Cs(29);if(Dt&&(Ze=mr(I1),Ud())){De=$_(Y,De,Dt,Ze);continue}if(Ze||q()===21){!Dt&&De.kind===234&&(Ze=De.typeArguments,De=De.expression);let Xt=kv(),lr=Dt||Qb(De)?_e(De,Dt,Ze,Xt):U(De,Ze,Xt);De=$t(lr,Y);continue}if(Dt){let Xt=uo(80,!1,_.Identifier_expected);De=$t(z(De,Dt,Xt),Y)}break}return De}function kv(){rr(21);let Y=Ll(11,ug);return rr(22),Y}function I1(){if((Mr&524288)!==0||ct()!==30)return;Ce();let Y=Ll(20,Yo);if(Zr()===32)return Ce(),Y&&AC()?Y:void 0}function AC(){switch(q()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||wd()||!Wu()}function D1(){switch(q()){case 15:t.getTokenFlags()&26656&&Jr(!1);case 9:case 10:case 11:return Et();case 110:case 108:case 106:case 112:case 97:return Jc();case 21:return Xb();case 23:return Yb();case 19:return xv();case 134:if(!Nt(H_))break;return Zb();case 60:return Pa();case 86:return il();case 100:return Zb();case 105:return Cy();case 44:case 69:if(jr()===14)return Et();break;case 16:return Qr(!1);case 81:return hn()}return Ko(_.Expression_expected)}function Xb(){let Y=j(),De=je();rr(21);let Ze=wr(yp);return rr(22),Sn($t(V(Ze),Y),De)}function EC(){let Y=j();rr(26);let De=Rp(!0);return $t(d.createSpreadElement(De),Y)}function xy(){return q()===26?EC():q()===28?$t(d.createOmittedExpression(),j()):Rp(!0)}function ug(){return js(n,xy)}function Yb(){let Y=j(),De=t.getTokenStart(),Ze=rr(23),Dt=t.hasPrecedingLineBreak(),Xt=Ll(15,xy);return vo(23,24,Ze,De),$t(F(Xt,Dt),Y)}function P1(){let Y=j(),De=je();if(Cs(26)){let Hi=Rp(!0);return Sn($t(d.createSpreadAssignment(Hi),Y),De)}let Ze=xi(!0);if(Rr(139))return O1(Y,De,Ze,178,0);if(Rr(153))return O1(Y,De,Ze,179,0);let Dt=Cs(42),Xt=Cr(),lr=Wr(),qn=Cs(58),xn=Cs(54);if(Dt||q()===21||q()===30)return R1(Y,De,Ze,Dt,lr,qn,xn);let rn;if(Xt&&q()!==59){let Hi=Cs(64),Co=Hi?wr(()=>Rp(!0)):void 0;rn=d.createShorthandPropertyAssignment(lr,Co),rn.equalsToken=Hi}else{rr(59);let Hi=wr(()=>Rp(!0));rn=d.createPropertyAssignment(lr,Hi)}return rn.modifiers=Ze,rn.questionToken=qn,rn.exclamationToken=xn,Sn($t(rn,Y),De)}function xv(){let Y=j(),De=t.getTokenStart(),Ze=rr(19),Dt=t.hasPrecedingLineBreak(),Xt=Ll(12,P1,!0);return vo(19,20,Ze,De),$t(O(Xt,Dt),Y)}function Zb(){let Y=Rt();ei(!1);let De=j(),Ze=je(),Dt=xi(!1);rr(100);let Xt=Cs(42),lr=Xt?1:0,qn=_t(Dt,LA)?2:0,xn=lr&&qn?et(Vd):lr?se(Vd):qn?Z(Vd):Vd(),rn=Ve(),mi=oi(lr|qn),Hi=en(59,!1),Co=e0(lr|qn);ei(Y);let po=d.createFunctionExpression(Dt,Xt,xn,rn,mi,Hi,Co);return Sn($t(po,De),Ze)}function Vd(){return Tr()?Yl():void 0}function Cy(){let Y=j();if(rr(105),Ki(25)){let lr=Rc();return $t(d.createMetaProperty(105,lr),Y)}let De=j(),Ze=y_(De,D1(),!1),Dt;Ze.kind===234&&(Dt=Ze.typeArguments,Ze=Ze.expression),q()===29&&Gt(_.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,JP(ke,Ze));let Xt=q()===21?kv():void 0;return $t(re(Ze,Dt,Xt),Y)}function Ph(Y,De){let Ze=j(),Dt=je(),Xt=t.getTokenStart(),lr=rr(19,De);if(lr||Y){let qn=t.hasPrecedingLineBreak(),xn=Ca(1,_f);vo(19,20,lr,Xt);let rn=Sn($t(ce(xn,qn),Ze),Dt);return q()===64&&(Gt(_.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),Ce()),rn}else{let qn=m_();return Sn($t(ce(qn,void 0),Ze),Dt)}}function e0(Y,De){let Ze=Le();Xn(!!(Y&1));let Dt=Ye();Mi(!!(Y&2));let Xt=ft;ft=!1;let lr=Rt();lr&&ei(!1);let qn=Ph(!!(Y&16),De);return lr&&ei(!0),ft=Xt,Xn(Ze),Mi(Dt),qn}function tu(){let Y=j(),De=je();return rr(27),Sn($t(d.createEmptyStatement(),Y),De)}function fT(){let Y=j(),De=je();rr(101);let Ze=t.getTokenStart(),Dt=rr(21),Xt=wr(yp);vo(21,22,Dt,Ze);let lr=_f(),qn=Ki(93)?_f():void 0;return Sn($t(de(Xt,lr,qn),Y),De)}function Ah(){let Y=j(),De=je();rr(92);let Ze=_f();rr(117);let Dt=t.getTokenStart(),Xt=rr(21),lr=wr(yp);return vo(21,22,Xt,Dt),Ki(27),Sn($t(d.createDoStatement(Ze,lr),Y),De)}function A1(){let Y=j(),De=je();rr(117);let Ze=t.getTokenStart(),Dt=rr(21),Xt=wr(yp);vo(21,22,Dt,Ze);let lr=_f();return Sn($t(ve(Xt,lr),Y),De)}function tx(){let Y=j(),De=je();rr(99);let Ze=Cs(135);rr(21);let Dt;q()!==27&&(q()===115||q()===121||q()===87||q()===160&&Nt(Pc)||q()===135&&Nt(jC)?Dt=cx(!0):Dt=Ds(yp));let Xt;if(Ze?rr(165):Ki(165)){let lr=wr(()=>Rp(!0));rr(22),Xt=Se(Ze,Dt,lr,_f())}else if(Ki(103)){let lr=wr(yp);rr(22),Xt=d.createForInStatement(Dt,lr,_f())}else{rr(27);let lr=q()!==27&&q()!==22?wr(yp):void 0;rr(27);let qn=q()!==22?wr(yp):void 0;rr(22),Xt=H(Dt,lr,qn,_f())}return Sn($t(Xt,Y),De)}function Eh(Y){let De=j(),Ze=je();rr(Y===253?83:88);let Dt=ys()?void 0:Ko();Ga();let Xt=Y===253?d.createBreakStatement(Dt):d.createContinueStatement(Dt);return Sn($t(Xt,De),Ze)}function SD(){let Y=j(),De=je();rr(107);let Ze=ys()?void 0:wr(yp);return Ga(),Sn($t(d.createReturnStatement(Ze),Y),De)}function NC(){let Y=j(),De=je();rr(118);let Ze=t.getTokenStart(),Dt=rr(21),Xt=wr(yp);vo(21,22,Dt,Ze);let lr=oa(67108864,_f);return Sn($t(d.createWithStatement(Xt,lr),Y),De)}function MC(){let Y=j(),De=je();rr(84);let Ze=wr(yp);rr(59);let Dt=Ca(3,_f);return Sn($t(d.createCaseClause(Ze,Dt),Y),De)}function sN(){let Y=j();rr(90),rr(59);let De=Ca(3,_f);return $t(d.createDefaultClause(De),Y)}function RC(){return q()===84?MC():sN()}function E1(){let Y=j();rr(19);let De=Ca(2,RC);return rr(20),$t(d.createCaseBlock(De),Y)}function wy(){let Y=j(),De=je();rr(109),rr(21);let Ze=wr(yp);rr(22);let Dt=E1();return Sn($t(d.createSwitchStatement(Ze,Dt),Y),De)}function TD(){let Y=j(),De=je();rr(111);let Ze=t.hasPrecedingLineBreak()?void 0:wr(yp);return Ze===void 0&&(St++,Ze=$t(I(""),j())),Ys()||Vs(Ze),Sn($t(d.createThrowStatement(Ze),Y),De)}function N1(){let Y=j(),De=je();rr(113);let Ze=Ph(!1),Dt=q()===85?rx():void 0,Xt;return(!Dt||q()===98)&&(rr(98,_.catch_or_finally_expected),Xt=Ph(!1)),Sn($t(d.createTryStatement(Ze,Dt,Xt),Y),De)}function rx(){let Y=j();rr(85);let De;Ki(21)?(De=pg(),rr(22)):De=void 0;let Ze=Ph(!1);return $t(d.createCatchClause(De,Ze),Y)}function nl(){let Y=j(),De=je();return rr(89),Ga(),Sn($t(d.createDebuggerStatement(),Y),De)}function ru(){let Y=j(),De=je(),Ze,Dt=q()===21,Xt=wr(yp);return Be(Xt)&&Ki(59)?Ze=d.createLabeledStatement(Xt,_f()):(Ys()||Vs(Xt),Ze=le(Xt),Dt&&(De=!1)),Sn($t(Ze,Y),De)}function OC(){return Ce(),zp(q())&&!t.hasPrecedingLineBreak()}function rf(){return Ce(),q()===86&&!t.hasPrecedingLineBreak()}function H_(){return Ce(),q()===100&&!t.hasPrecedingLineBreak()}function _T(){return Ce(),(zp(q())||q()===9||q()===10||q()===11)&&!t.hasPrecedingLineBreak()}function vm(){for(;;)switch(q()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return dT();case 135:return np();case 120:case 156:case 166:return Gd();case 144:case 145:return ax();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let Y=q();if(Ce(),t.hasPrecedingLineBreak())return!1;if(Y===138&&q()===156)return!0;continue;case 162:return Ce(),q()===19||q()===80||q()===95;case 102:return Ce(),q()===166||q()===11||q()===42||q()===19||zp(q());case 95:let De=Ce();if(De===156&&(De=Nt(Ce)),De===64||De===42||De===19||De===90||De===130||De===60)return!0;continue;case 126:Ce();continue;default:return!1}}function t0(){return Nt(vm)}function Cv(){switch(q()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return t0()||Nt(Fg);case 87:case 95:return t0();case 134:case 138:case 120:case 144:case 145:case 156:case 162:case 166:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return t0()||!Nt(OC);default:return Wu()}}function FC(){return Ce(),Tr()||q()===19||q()===23}function aN(){return Nt(FC)}function Pc(){return nx(!0)}function kD(){return Ce(),q()===64||q()===27||q()===59}function nx(Y){return Ce(),Y&&q()===165?Nt(kD):(Tr()||q()===19)&&!t.hasPrecedingLineBreak()}function dT(){return Nt(nx)}function jC(Y){return Ce()===160?nx(Y):!1}function np(){return Nt(jC)}function _f(){switch(q()){case 27:return tu();case 19:return Ph(!1);case 115:return Ja(j(),je(),void 0);case 121:if(aN())return Ja(j(),je(),void 0);break;case 135:if(np())return Ja(j(),je(),void 0);break;case 160:if(dT())return Ja(j(),je(),void 0);break;case 100:return wn(j(),je(),void 0);case 86:return Bu(j(),je(),void 0);case 101:return fT();case 92:return Ah();case 117:return A1();case 99:return tx();case 88:return Eh(252);case 83:return Eh(253);case 107:return SD();case 118:return NC();case 109:return wy();case 111:return TD();case 113:case 85:case 98:return N1();case 89:return nl();case 60:return M1();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(t0())return M1();break}return ru()}function ix(Y){return Y.kind===138}function M1(){let Y=j(),De=je(),Ze=xi(!0);if(_t(Ze,ix)){let Xt=df(Y);if(Xt)return Xt;for(let lr of Ze)lr.flags|=33554432;return oa(33554432,()=>sx(Y,De,Ze))}else return sx(Y,De,Ze)}function df(Y){return oa(33554432,()=>{let De=zo(Bt,Y);if(De)return bc(De)})}function sx(Y,De,Ze){switch(q()){case 115:case 121:case 87:case 160:case 135:return Ja(Y,De,Ze);case 100:return wn(Y,De,Ze);case 86:return Bu(Y,De,Ze);case 120:return $d(Y,De,Ze);case 156:return Dv(Y,De,Ze);case 94:return DL(Y,De,Ze);case 162:case 144:case 145:return m3(Y,De,Ze);case 102:return dx(Y,De,Ze);case 95:switch(Ce(),q()){case 90:case 64:return L1(Y,De,Ze);case 130:return hT(Y,De,Ze);default:return fN(Y,De,Ze)}default:if(Ze){let Dt=uo(283,!0,_.Declaration_expected);return DA(Dt,Y),Dt.modifiers=Ze,Dt}return}}function Nh(){return Ce()===11}function LC(){return Ce(),q()===161||q()===64}function ax(){return Ce(),!t.hasPrecedingLineBreak()&&(Cr()||q()===11)}function qd(Y,De){if(q()!==19){if(Y&4){fs();return}if(ys()){Ga();return}}return e0(Y,De)}function WC(){let Y=j();if(q()===28)return $t(d.createOmittedExpression(),Y);let De=Cs(26),Ze=wv(),Dt=Wg();return $t(d.createBindingElement(De,void 0,Ze,Dt),Y)}function xD(){let Y=j(),De=Cs(26),Ze=Tr(),Dt=Wr(),Xt;Ze&&q()!==59?(Xt=Dt,Dt=void 0):(rr(59),Xt=wv());let lr=Wg();return $t(d.createBindingElement(De,Dt,Xt,lr),Y)}function BC(){let Y=j();rr(19);let De=wr(()=>Ll(9,xD));return rr(20),$t(d.createObjectBindingPattern(De),Y)}function ox(){let Y=j();rr(23);let De=wr(()=>Ll(10,WC));return rr(24),$t(d.createArrayBindingPattern(De),Y)}function zC(){return q()===19||q()===23||q()===81||Tr()}function wv(Y){return q()===23?ox():q()===19?BC():Yl(Y)}function Wf(){return pg(!0)}function pg(Y){let De=j(),Ze=je(),Dt=wv(_.Private_identifiers_are_not_allowed_in_variable_declarations),Xt;Y&&Dt.kind===80&&q()===54&&!t.hasPrecedingLineBreak()&&(Xt=Jc());let lr=Lu(),qn=vp(q())?void 0:Wg(),xn=Je(Dt,Xt,lr,qn);return Sn($t(xn,De),Ze)}function cx(Y){let De=j(),Ze=0;switch(q()){case 115:break;case 121:Ze|=1;break;case 87:Ze|=2;break;case 160:Ze|=4;break;case 135:w.assert(np()),Ze|=6,Ce();break;default:w.fail()}Ce();let Dt;if(q()===165&&Nt(lx))Dt=m_();else{let Xt=kt();tn(Y),Dt=Ll(8,Y?pg:Wf),tn(Xt)}return $t(ye(Dt,Ze),De)}function lx(){return Cu()&&Ce()===22}function Ja(Y,De,Ze){let Dt=cx(!1);Ga();let Xt=oe(Ze,Dt);return Sn($t(Xt,Y),De)}function wn(Y,De,Ze){let Dt=Ye(),Xt=Jm(Ze);rr(100);let lr=Cs(42),qn=Xt&2048?Vd():Yl(),xn=lr?1:0,rn=Xt&1024?2:0,mi=Ve();Xt&32&&Mi(!0);let Hi=oi(xn|rn),Co=en(59,!1),po=qd(xn|rn,_.or_expected);Mi(Dt);let Ua=d.createFunctionDeclaration(Ze,lr,qn,mi,Hi,Co,po);return Sn($t(Ua,Y),De)}function v_(){if(q()===137)return rr(137);if(q()===11&&Nt(Ce)===21)return mr(()=>{let Y=Et();return Y.text==="constructor"?Y:void 0})}function Wl(Y,De,Ze){return mr(()=>{if(v_()){let Dt=Ve(),Xt=oi(0),lr=en(59,!1),qn=qd(0,_.or_expected),xn=d.createConstructorDeclaration(Ze,Xt,qn);return xn.typeParameters=Dt,xn.type=lr,Sn($t(xn,Y),De)}})}function R1(Y,De,Ze,Dt,Xt,lr,qn,xn){let rn=Dt?1:0,mi=_t(Ze,LA)?2:0,Hi=Ve(),Co=oi(rn|mi),po=en(59,!1),Ua=qd(rn|mi,xn),Q_=d.createMethodDeclaration(Ze,Dt,Xt,lr,Hi,Co,po,Ua);return Q_.exclamationToken=qn,Sn($t(Q_,Y),De)}function ux(Y,De,Ze,Dt,Xt){let lr=!Xt&&!t.hasPrecedingLineBreak()?Cs(54):void 0,qn=Lu(),xn=js(90112,Wg);Dc(Dt,qn,xn);let rn=d.createPropertyDeclaration(Ze,Dt,Xt||lr,qn,xn);return Sn($t(rn,Y),De)}function mT(Y,De,Ze){let Dt=Cs(42),Xt=Wr(),lr=Cs(58);return Dt||q()===21||q()===30?R1(Y,De,Ze,Dt,Xt,lr,void 0,_.or_expected):ux(Y,De,Ze,Xt,lr)}function O1(Y,De,Ze,Dt,Xt){let lr=Wr(),qn=Ve(),xn=oi(0),rn=en(59,!1),mi=qd(Xt),Hi=Dt===178?d.createGetAccessorDeclaration(Ze,lr,xn,rn,mi):d.createSetAccessorDeclaration(Ze,lr,xn,mi);return Hi.typeParameters=qn,uf(Hi)&&(Hi.type=rn),Sn($t(Hi,Y),De)}function px(){let Y;if(q()===60)return!0;for(;ub(q());){if(Y=q(),JB(Y))return!0;Ce()}if(q()===42||(We()&&(Y=q(),Ce()),q()===23))return!0;if(Y!==void 0){if(!qp(Y)||Y===153||Y===139)return!0;switch(q()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return ys()}}return!1}function C(Y,De,Ze){Lo(126);let Dt=pe(),Xt=Sn($t(d.createClassStaticBlockDeclaration(Dt),Y),De);return Xt.modifiers=Ze,Xt}function pe(){let Y=Le(),De=Ye();Xn(!1),Mi(!0);let Ze=Ph(!1);return Xn(Y),Mi(De),Ze}function yt(){if(Ye()&&q()===135){let Y=j(),De=Ko(_.Expression_expected);Ce();let Ze=y_(Y,De,!0);return tf(Y,Ze)}return w1()}function gr(){let Y=j();if(!Ki(60))return;let De=pt(yt);return $t(d.createDecorator(De),Y)}function ui(Y,De,Ze){let Dt=j(),Xt=q();if(q()===87&&De){if(!mr(Di))return}else{if(Ze&&q()===126&&Nt(_x))return;if(Y&&q()===126)return;if(!Xo())return}return $t(E(Xt),Dt)}function xi(Y,De,Ze){let Dt=j(),Xt,lr,qn,xn=!1,rn=!1,mi=!1;if(Y&&q()===60)for(;lr=gr();)Xt=Fr(Xt,lr);for(;qn=ui(xn,De,Ze);)qn.kind===126&&(xn=!0),Xt=Fr(Xt,qn),rn=!0;if(rn&&Y&&q()===60)for(;lr=gr();)Xt=Fr(Xt,lr),mi=!0;if(mi)for(;qn=ui(xn,De,Ze);)qn.kind===126&&(xn=!0),Xt=Fr(Xt,qn);return Xt&&Fa(Xt,Dt)}function cs(){let Y;if(q()===134){let De=j();Ce();let Ze=$t(E(134),De);Y=Fa([Ze],De)}return Y}function ki(){let Y=j(),De=je();if(q()===27)return Ce(),Sn($t(d.createSemicolonClassElement(),Y),De);let Ze=xi(!0,!0,!0);if(q()===126&&Nt(_x))return C(Y,De,Ze);if(Rr(139))return O1(Y,De,Ze,178,0);if(Rr(153))return O1(Y,De,Ze,179,0);if(q()===137||q()===11){let Dt=Wl(Y,De,Ze);if(Dt)return Dt}if(nc())return kd(Y,De,Ze);if(zp(q())||q()===11||q()===9||q()===10||q()===42||q()===23)if(_t(Ze,ix)){for(let Xt of Ze)Xt.flags|=33554432;return oa(33554432,()=>mT(Y,De,Ze))}else return mT(Y,De,Ze);if(Ze){let Dt=uo(80,!0,_.Declaration_expected);return ux(Y,De,Ze,Dt,void 0)}return w.fail("Should not have attempted to parse class member declaration.")}function Pa(){let Y=j(),De=je(),Ze=xi(!0);if(q()===86)return Op(Y,De,Ze,232);let Dt=uo(283,!0,_.Expression_expected);return DA(Dt,Y),Dt.modifiers=Ze,Dt}function il(){return Op(j(),je(),void 0,232)}function Bu(Y,De,Ze){return Op(Y,De,Ze,264)}function Op(Y,De,Ze,Dt){let Xt=Ye();rr(86);let lr=F1(),qn=Ve();_t(Ze,L2)&&Mi(!0);let xn=r0(),rn;rr(19)?(rn=Iv(),rr(20)):rn=m_(),Mi(Xt);let mi=Dt===264?d.createClassDeclaration(Ze,lr,qn,xn,rn):d.createClassExpression(Ze,lr,qn,xn,rn);return Sn($t(mi,Y),De)}function F1(){return Tr()&&!Fp()?rl(Tr()):void 0}function Fp(){return q()===119&&Nt(Kf)}function r0(){if(fx())return Ca(22,GC)}function GC(){let Y=j(),De=q();w.assert(De===96||De===119),Ce();let Ze=Ll(7,Id);return $t(d.createHeritageClause(De,Ze),Y)}function Id(){let Y=j(),De=w1();if(De.kind===234)return De;let Ze=oc();return $t(d.createExpressionWithTypeArguments(De,Ze),Y)}function oc(){return q()===30?ne(20,Yo,30,32):void 0}function fx(){return q()===96||q()===119}function Iv(){return Ca(5,ki)}function $d(Y,De,Ze){rr(120);let Dt=Ko(),Xt=Ve(),lr=r0(),qn=jg(),xn=d.createInterfaceDeclaration(Ze,Dt,Xt,lr,qn);return Sn($t(xn,Y),De)}function Dv(Y,De,Ze){rr(156),t.hasPrecedingLineBreak()&&Gt(_.Line_break_not_permitted_here);let Dt=Ko(),Xt=Ve();rr(64);let lr=q()===141&&mr(CC)||Yo();Ga();let qn=d.createTypeAliasDeclaration(Ze,Dt,Xt,lr);return Sn($t(qn,Y),De)}function gT(){let Y=j(),De=je(),Ze=Wr(),Dt=wr(Wg);return Sn($t(d.createEnumMember(Ze,Dt),Y),De)}function DL(Y,De,Ze){rr(94);let Dt=Ko(),Xt;rr(19)?(Xt=at(()=>Ll(6,gT)),rr(20)):Xt=m_();let lr=d.createEnumDeclaration(Ze,Dt,Xt);return Sn($t(lr,Y),De)}function oN(){let Y=j(),De;return rr(19)?(De=Ca(1,_f),rr(20)):De=m_(),$t(d.createModuleBlock(De),Y)}function JC(Y,De,Ze,Dt){let Xt=Dt&32,lr=Dt&8?Rc():Ko(),qn=Ki(25)?JC(j(),!1,void 0,8|Xt):oN(),xn=d.createModuleDeclaration(Ze,lr,qn,Dt);return Sn($t(xn,Y),De)}function cN(Y,De,Ze){let Dt=0,Xt;q()===162?(Xt=Ko(),Dt|=2048):(Xt=Et(),Xt.text=Mc(Xt.text));let lr;q()===19?lr=oN():Ga();let qn=d.createModuleDeclaration(Ze,Xt,lr,Dt);return Sn($t(qn,Y),De)}function m3(Y,De,Ze){let Dt=0;if(q()===162)return cN(Y,De,Ze);if(Ki(145))Dt|=32;else if(rr(144),q()===11)return cN(Y,De,Ze);return JC(Y,De,Ze,Dt)}function n0(){return q()===149&&Nt(UC)}function UC(){return Ce()===21}function _x(){return Ce()===19}function PL(){return Ce()===44}function hT(Y,De,Ze){rr(130),rr(145);let Dt=Ko();Ga();let Xt=d.createNamespaceExportDeclaration(Dt);return Xt.modifiers=Ze,Sn($t(Xt,Y),De)}function dx(Y,De,Ze){rr(102);let Dt=t.getTokenFullStart(),Xt;Cr()&&(Xt=Ko());let lr;if(Xt?.escapedText==="type"&&(q()!==161||Cr()&&Nt(LC))&&(Cr()||Yr())?(lr=156,Xt=Cr()?Ko():void 0):Xt?.escapedText==="defer"&&(q()===161?!Nt(Nh):q()!==28&&q()!==64)&&(lr=166,Xt=Cr()?Ko():void 0),Xt&&!uN()&&lr!==166)return CD(Y,De,Ze,Xt,lr===156);let qn=lN(Xt,Dt,lr,void 0),xn=mx(),rn=VC();Ga();let mi=d.createImportDeclaration(Ze,qn,xn,rn);return Sn($t(mi,Y),De)}function lN(Y,De,Ze,Dt=!1){let Xt;return(Y||q()===42||q()===19)&&(Xt=wD(Y,De,Ze,Dt),rr(161)),Xt}function VC(){let Y=q();if((Y===118||Y===132)&&!t.hasPrecedingLineBreak())return i0(Y)}function Xi(){let Y=j(),De=zp(q())?Rc():os(11);rr(59);let Ze=Rp(!0);return $t(d.createImportAttribute(De,Ze),Y)}function i0(Y,De){let Ze=j();De||rr(Y);let Dt=t.getTokenStart();if(rr(19)){let Xt=t.hasPrecedingLineBreak(),lr=Ll(24,Xi,!0);if(!rr(20)){let qn=Wo(Ue);qn&&qn.code===_._0_expected.code&&Xs(qn,C2(ee,ke,Dt,1,_.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return $t(d.createImportAttributes(lr,Xt,Y),Ze)}else{let Xt=Fa([],j(),void 0,!1);return $t(d.createImportAttributes(Xt,!1,Y),Ze)}}function Yr(){return q()===42||q()===19}function uN(){return q()===28||q()===161}function CD(Y,De,Ze,Dt,Xt){rr(64);let lr=yT();Ga();let qn=d.createImportEqualsDeclaration(Ze,Xt,Dt,lr);return Sn($t(qn,Y),De)}function wD(Y,De,Ze,Dt){let Xt;return(!Y||Ki(28))&&(Dt&&t.setSkipJsDocLeadingAsterisks(!0),q()===42?Xt=AL():Xt=h3(276),Dt&&t.setSkipJsDocLeadingAsterisks(!1)),$t(d.createImportClause(Ze,Y,Xt),De)}function yT(){return n0()?g3():ot(!1)}function g3(){let Y=j();rr(149),rr(21);let De=mx();return rr(22),$t(d.createExternalModuleReference(De),Y)}function mx(){if(q()===11){let Y=Et();return Y.text=Mc(Y.text),Y}else return yp()}function AL(){let Y=j();rr(42),rr(130);let De=Ko();return $t(d.createNamespaceImport(De),Y)}function ID(){return zp(q())||q()===11}function zg(Y){return q()===11?Et():Y()}function h3(Y){let De=j(),Ze=Y===276?d.createNamedImports(ne(23,EL,19,20)):d.createNamedExports(ne(23,j1,19,20));return $t(Ze,De)}function j1(){let Y=je();return Sn(pN(282),Y)}function EL(){return pN(277)}function pN(Y){let De=j(),Ze=qp(q())&&!Cr(),Dt=t.getTokenStart(),Xt=t.getTokenEnd(),lr=!1,qn,xn=!0,rn=zg(Rc);if(rn.kind===80&&rn.escapedText==="type")if(q()===130){let Co=Rc();if(q()===130){let po=Rc();ID()?(lr=!0,qn=Co,rn=zg(Hi),xn=!1):(qn=rn,rn=po,xn=!1)}else ID()?(qn=rn,xn=!1,rn=zg(Hi)):(lr=!0,rn=Co)}else ID()&&(lr=!0,rn=zg(Hi));xn&&q()===130&&(qn=rn,rr(130),rn=zg(Hi)),Y===277&&(rn.kind!==80?(Ae(ha(ke,rn.pos),rn.end,_.Identifier_expected),rn=om(uo(80,!1),rn.pos,rn.pos)):Ze&&Ae(Dt,Xt,_.Identifier_expected));let mi=Y===277?d.createImportSpecifier(lr,qn,rn):d.createExportSpecifier(lr,qn,rn);return $t(mi,De);function Hi(){return Ze=qp(q())&&!Cr(),Dt=t.getTokenStart(),Xt=t.getTokenEnd(),Rc()}}function y3(Y){return $t(d.createNamespaceExport(zg(Rc)),Y)}function fN(Y,De,Ze){let Dt=Ye();Mi(!0);let Xt,lr,qn,xn=Ki(156),rn=j();Ki(42)?(Ki(130)&&(Xt=y3(rn)),rr(161),lr=mx()):(Xt=h3(280),(q()===161||q()===11&&!t.hasPrecedingLineBreak())&&(rr(161),lr=mx()));let mi=q();lr&&(mi===118||mi===132)&&!t.hasPrecedingLineBreak()&&(qn=i0(mi)),Ga(),Mi(Dt);let Hi=d.createExportDeclaration(Ze,xn,Xt,lr,qn);return Sn($t(Hi,Y),De)}function L1(Y,De,Ze){let Dt=Ye();Mi(!0);let Xt;Ki(64)?Xt=!0:rr(90);let lr=Rp(!0);Ga(),Mi(Dt);let qn=d.createExportAssignment(Ze,Xt,lr);return Sn($t(qn,Y),De)}let Gg;(Y=>{Y[Y.SourceElements=0]="SourceElements",Y[Y.BlockStatements=1]="BlockStatements",Y[Y.SwitchClauses=2]="SwitchClauses",Y[Y.SwitchClauseStatements=3]="SwitchClauseStatements",Y[Y.TypeMembers=4]="TypeMembers",Y[Y.ClassMembers=5]="ClassMembers",Y[Y.EnumMembers=6]="EnumMembers",Y[Y.HeritageClauseElement=7]="HeritageClauseElement",Y[Y.VariableDeclarations=8]="VariableDeclarations",Y[Y.ObjectBindingElements=9]="ObjectBindingElements",Y[Y.ArrayBindingElements=10]="ArrayBindingElements",Y[Y.ArgumentExpressions=11]="ArgumentExpressions",Y[Y.ObjectLiteralMembers=12]="ObjectLiteralMembers",Y[Y.JsxAttributes=13]="JsxAttributes",Y[Y.JsxChildren=14]="JsxChildren",Y[Y.ArrayLiteralMembers=15]="ArrayLiteralMembers",Y[Y.Parameters=16]="Parameters",Y[Y.JSDocParameters=17]="JSDocParameters",Y[Y.RestProperties=18]="RestProperties",Y[Y.TypeParameters=19]="TypeParameters",Y[Y.TypeArguments=20]="TypeArguments",Y[Y.TupleElementTypes=21]="TupleElementTypes",Y[Y.HeritageClauses=22]="HeritageClauses",Y[Y.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",Y[Y.ImportAttributes=24]="ImportAttributes",Y[Y.JSDocComment=25]="JSDocComment",Y[Y.Count=26]="Count"})(Gg||(Gg={}));let DD;(Y=>{Y[Y.False=0]="False",Y[Y.True=1]="True",Y[Y.Unknown=2]="Unknown"})(DD||(DD={}));let fg;(Y=>{function De(mi,Hi,Co){At("file.js",mi,99,void 0,1,0),t.setText(mi,Hi,Co),Ie=t.scan();let po=Ze(),Ua=bt("file.js",99,1,!1,[],E(1),0,no),Q_=w2(Ue,Ua);return te&&(Ua.jsDocDiagnostics=w2(te,Ua)),Un(),po?{jsDocTypeExpression:po,diagnostics:Q_}:void 0}Y.parseJSDocTypeExpressionForTests=De;function Ze(mi){let Hi=j(),Co=(mi?Ki:rr)(19),po=oa(16777216,gm);(!mi||Co)&&vc(20);let Ua=d.createJSDocTypeExpression(po);return qe(Ua),$t(Ua,Hi)}Y.parseJSDocTypeExpression=Ze;function Dt(){let mi=j(),Hi=Ki(19),Co=j(),po=ot(!1);for(;q()===81;)It(),ut(),po=$t(d.createJSDocMemberName(po,Ko()),Co);Hi&&vc(20);let Ua=d.createJSDocNameReference(po);return qe(Ua),$t(Ua,mi)}Y.parseJSDocNameReference=Dt;function Xt(mi,Hi,Co){At("",mi,99,void 0,1,0);let po=oa(16777216,()=>rn(Hi,Co)),Q_=w2(Ue,{languageVariant:0,text:mi});return Un(),po?{jsDoc:po,diagnostics:Q_}:void 0}Y.parseIsolatedJSDocComment=Xt;function lr(mi,Hi,Co){let po=Ie,Ua=Ue.length,Q_=qt,b_=oa(16777216,()=>rn(Hi,Co));return Ka(b_,mi),Mr&524288&&(te||(te=[]),Gn(te,Ue,Ua)),Ie=po,Ue.length=Ua,qt=Q_,b_}Y.parseJSDocComment=lr;let qn;(mi=>{mi[mi.BeginningOfLine=0]="BeginningOfLine",mi[mi.SawAsterisk=1]="SawAsterisk",mi[mi.SavingComments=2]="SavingComments",mi[mi.SavingBackticks=3]="SavingBackticks"})(qn||(qn={}));let xn;(mi=>{mi[mi.Property=1]="Property",mi[mi.Parameter=2]="Parameter",mi[mi.CallbackParameter=4]="CallbackParameter"})(xn||(xn={}));function rn(mi=0,Hi){let Co=ke,po=Hi===void 0?Co.length:mi+Hi;if(Hi=po-mi,w.assert(mi>=0),w.assert(mi<=po),w.assert(po<=Co.length),!GJ(Co,mi))return;let Ua,Q_,b_,Pv,Av,Mh=[],s0=[],$a=Bt;Bt|=1<<25;let El=t.scanRange(mi+3,Hi-5,Ev);return Bt=$a,El;function Ev(){let Or=1,On,Vn=mi-(Co.lastIndexOf(`
|
|
`,mi)+1)+4;function Si(wo){On||(On=Vn),Mh.push(wo),Vn+=wo.length}for(ut();Sm(5););Sm(4)&&(Or=0,Vn=0);e:for(;;){switch(q()){case 60:qC(Mh),Av||(Av=j()),Go(v(Vn)),Or=0,On=void 0;break;case 4:Mh.push(t.getTokenText()),Or=0,Vn=0;break;case 42:let wo=t.getTokenText();Or===1?(Or=2,Si(wo)):(w.assert(Or===0),Or=1,Vn+=wo.length);break;case 5:w.assert(Or!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let mu=t.getTokenText();On!==void 0&&Vn+mu.length>On&&Mh.push(mu.slice(On-Vn)),Vn+=mu.length;break;case 1:break e;case 82:Or=2,Si(t.getTokenValue());break;case 19:Or=2;let Tm=t.getTokenFullStart(),Dd=t.getTokenEnd()-1,Hd=ue(Dd);if(Hd){Pv||ip(Mh),s0.push($t(d.createJSDocText(Mh.join("")),Pv??mi,Tm)),s0.push(Hd),Mh=[],Pv=t.getTokenEnd();break}default:Or=2,Si(t.getTokenText());break}Or===2?Qt(!1):ut()}let wi=Mh.join("").trimEnd();s0.length&&wi.length&&s0.push($t(d.createJSDocText(wi),Pv??mi,Av)),s0.length&&Ua&&w.assertIsDefined(Av,"having parsed tags implies that the end of the comment span should be set");let da=Ua&&Fa(Ua,Q_,b_);return $t(d.createJSDocComment(s0.length?Fa(s0,mi,Av):wi.length?wi:void 0,da),mi,po)}function ip(Or){for(;Or.length&&(Or[0]===`
|
|
`||Or[0]==="\r");)Or.shift()}function qC(Or){for(;Or.length;){let On=Or[Or.length-1].trimEnd();if(On==="")Or.pop();else if(On.length<Or[Or.length-1].length){Or[Or.length-1]=On;break}else break}}function Rh(){for(;;){if(ut(),q()===1)return!0;if(!(q()===5||q()===4))return!1}}function Jg(){if(!((q()===5||q()===4)&&Nt(Rh)))for(;q()===5||q()===4;)ut()}function un(){if((q()===5||q()===4)&&Nt(Rh))return"";let Or=t.hasPrecedingLineBreak(),On=!1,Vn="";for(;Or&&q()===42||q()===5||q()===4;)Vn+=t.getTokenText(),q()===4?(Or=!0,On=!0,Vn=""):q()===42&&(Or=!1),ut();return On?Vn:""}function v(Or){w.assert(q()===60);let On=t.getTokenStart();ut();let Vn=Bf(void 0),Si=un(),wi;switch(Vn.escapedText){case"author":wi=v3(On,Vn,Or,Si);break;case"implements":wi=o0(On,Vn,Or,Si);break;case"augments":case"extends":wi=eme(On,Vn,Or,Si);break;case"class":case"constructor":wi=QC(On,d.createJSDocClassTag,Vn,Or,Si);break;case"public":wi=QC(On,d.createJSDocPublicTag,Vn,Or,Si);break;case"private":wi=QC(On,d.createJSDocPrivateTag,Vn,Or,Si);break;case"protected":wi=QC(On,d.createJSDocProtectedTag,Vn,Or,Si);break;case"readonly":wi=QC(On,d.createJSDocReadonlyTag,Vn,Or,Si);break;case"override":wi=QC(On,d.createJSDocOverrideTag,Vn,Or,Si);break;case"deprecated":zn=!0,wi=QC(On,d.createJSDocDeprecatedTag,Vn,Or,Si);break;case"this":wi=GQ(On,Vn,Or,Si);break;case"enum":wi=mN(On,Vn,Or,Si);break;case"arg":case"argument":case"param":return $C(On,Vn,2,Or);case"return":case"returns":wi=_N(On,Vn,Or,Si);break;case"template":wi=an(On,Vn,Or,Si);break;case"type":wi=HC(On,Vn,Or,Si);break;case"typedef":wi=JQ(On,Vn,Or,Si);break;case"callback":wi=VQ(On,Vn,Or,Si);break;case"overload":wi=nme(On,Vn,Or,Si);break;case"satisfies":wi=tme(On,Vn,Or,Si);break;case"see":wi=Yde(On,Vn,Or,Si);break;case"exception":case"throws":wi=Zde(On,Vn,Or,Si);break;case"import":wi=rme(On,Vn,Or,Si);break;default:wi=vs(On,Vn,Or,Si);break}return wi}function D(Or,On,Vn,Si){return Si||(Vn+=On-Or),B(Vn,Si.slice(Vn))}function B(Or,On){let Vn=j(),Si=[],wi=[],da,wo=0,mu;function Tm(Oh){mu||(mu=Or),Si.push(Oh),Or+=Oh.length}On!==void 0&&(On!==""&&Tm(On),wo=1);let Dd=q();e:for(;;){switch(Dd){case 4:wo=0,Si.push(t.getTokenText()),Or=0;break;case 60:t.resetTokenState(t.getTokenEnd()-1);break e;case 1:break e;case 5:w.assert(wo!==2&&wo!==3,"whitespace shouldn't come from the scanner while saving comment text");let Oh=t.getTokenText();mu!==void 0&&Or+Oh.length>mu&&(Si.push(Oh.slice(mu-Or)),wo=2),Or+=Oh.length;break;case 19:wo=2;let Iy=t.getTokenFullStart(),PD=t.getTokenEnd()-1,hN=ue(PD);hN?(wi.push($t(d.createJSDocText(Si.join("")),da??Vn,Iy)),wi.push(hN),Si=[],da=t.getTokenEnd()):Tm(t.getTokenText());break;case 62:wo===3?wo=2:wo=3,Tm(t.getTokenText());break;case 82:wo!==3&&(wo=2),Tm(t.getTokenValue());break;case 42:if(wo===0){wo=1,Or+=1;break}default:wo!==3&&(wo=2),Tm(t.getTokenText());break}wo===2||wo===3?Dd=Qt(wo===3):Dd=ut()}ip(Si);let Hd=Si.join("").trimEnd();if(wi.length)return Hd.length&&wi.push($t(d.createJSDocText(Hd),da??Vn)),Fa(wi,Vn,t.getTokenEnd());if(Hd.length)return Hd}function ue(Or){let On=mr(Yt);if(!On)return;ut(),Jg();let Vn=Xe(),Si=[];for(;q()!==20&&q()!==4&&q()!==1;)Si.push(t.getTokenText()),ut();let wi=On==="link"?d.createJSDocLink:On==="linkcode"?d.createJSDocLinkCode:d.createJSDocLinkPlain;return $t(wi(Vn,Si.join("")),Or,t.getTokenEnd())}function Xe(){if(zp(q())){let Or=j(),On=Rc();for(;Ki(25);)On=$t(d.createQualifiedName(On,q()===81?uo(80,!1):Rc()),Or);for(;q()===81;)It(),ut(),On=$t(d.createJSDocMemberName(On,Ko()),Or);return On}}function Yt(){if(un(),q()===19&&ut()===60&&zp(ut())){let Or=t.getTokenValue();if(Cn(Or))return Or}}function Cn(Or){return Or==="link"||Or==="linkcode"||Or==="linkplain"}function vs(Or,On,Vn,Si){return $t(d.createJSDocUnknownTag(On,D(Or,j(),Vn,Si)),Or)}function Go(Or){Or&&(Ua?Ua.push(Or):(Ua=[Or],Q_=Or.pos),b_=Or.end)}function Yf(){return un(),q()===19?Ze():void 0}function a0(){let Or=Sm(23);Or&&Jg();let On=Sm(62),Vn=$Q();return On&&fa(62),Or&&(Jg(),Cs(64)&&yp(),rr(24)),{name:Vn,isBracketed:Or}}function bm(Or){switch(Or.kind){case 151:return!0;case 189:return bm(Or.elementType);default:return Pf(Or)&&Be(Or.typeName)&&Or.typeName.escapedText==="Object"&&!Or.typeArguments}}function $C(Or,On,Vn,Si){let wi=Yf(),da=!wi;un();let{name:wo,isBracketed:mu}=a0(),Tm=un();da&&!Nt(Yt)&&(wi=Yf());let Dd=D(Or,j(),Si,Tm),Hd=Xde(wi,wo,Vn,Si);Hd&&(wi=Hd,da=!0);let Oh=Vn===1?d.createJSDocPropertyTag(On,wo,mu,wi,da,Dd):d.createJSDocParameterTag(On,wo,mu,wi,da,Dd);return $t(Oh,Or)}function Xde(Or,On,Vn,Si){if(Or&&bm(Or.type)){let wi=j(),da,wo;for(;da=mr(()=>gx(Vn,Si,On));)da.kind===342||da.kind===349?wo=Fr(wo,da):da.kind===346&&wt(da.tagName,_.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(wo){let mu=$t(d.createJSDocTypeLiteral(wo,Or.type.kind===189),wi);return $t(d.createJSDocTypeExpression(mu),wi)}}}function _N(Or,On,Vn,Si){_t(Ua,y7)&&Ae(On.pos,t.getTokenStart(),_._0_tag_already_specified,Ai(On.escapedText));let wi=Yf();return $t(d.createJSDocReturnTag(On,wi,D(Or,j(),Vn,Si)),Or)}function HC(Or,On,Vn,Si){_t(Ua,HA)&&Ae(On.pos,t.getTokenStart(),_._0_tag_already_specified,Ai(On.escapedText));let wi=Ze(!0),da=Vn!==void 0&&Si!==void 0?D(Or,j(),Vn,Si):void 0;return $t(d.createJSDocTypeTag(On,wi,da),Or)}function Yde(Or,On,Vn,Si){let da=q()===23||Nt(()=>ut()===60&&zp(ut())&&Cn(t.getTokenValue()))?void 0:Dt(),wo=Vn!==void 0&&Si!==void 0?D(Or,j(),Vn,Si):void 0;return $t(d.createJSDocSeeTag(On,da,wo),Or)}function Zde(Or,On,Vn,Si){let wi=Yf(),da=D(Or,j(),Vn,Si);return $t(d.createJSDocThrowsTag(On,wi,da),Or)}function v3(Or,On,Vn,Si){let wi=j(),da=zQ(),wo=t.getTokenFullStart(),mu=D(Or,wo,Vn,Si);mu||(wo=t.getTokenFullStart());let Tm=typeof mu!="string"?Fa(Qi([$t(da,wi,wo)],mu),wi):da.text+mu;return $t(d.createJSDocAuthorTag(On,Tm),Or)}function zQ(){let Or=[],On=!1,Vn=t.getToken();for(;Vn!==1&&Vn!==4;){if(Vn===30)On=!0;else{if(Vn===60&&!On)break;if(Vn===32&&On){Or.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}Or.push(t.getTokenText()),Vn=ut()}return d.createJSDocText(Or.join(""))}function o0(Or,On,Vn,Si){let wi=vT();return $t(d.createJSDocImplementsTag(On,wi,D(Or,j(),Vn,Si)),Or)}function eme(Or,On,Vn,Si){let wi=vT();return $t(d.createJSDocAugmentsTag(On,wi,D(Or,j(),Vn,Si)),Or)}function tme(Or,On,Vn,Si){let wi=Ze(!1),da=Vn!==void 0&&Si!==void 0?D(Or,j(),Vn,Si):void 0;return $t(d.createJSDocSatisfiesTag(On,wi,da),Or)}function rme(Or,On,Vn,Si){let wi=t.getTokenFullStart(),da;Cr()&&(da=Ko());let wo=lN(da,wi,156,!0),mu=mx(),Tm=VC(),Dd=Vn!==void 0&&Si!==void 0?D(Or,j(),Vn,Si):void 0;return $t(d.createJSDocImportTag(On,wo,mu,Tm,Dd),Or)}function vT(){let Or=Ki(19),On=j(),Vn=dN();t.setSkipJsDocLeadingAsterisks(!0);let Si=oc();t.setSkipJsDocLeadingAsterisks(!1);let wi=d.createExpressionWithTypeArguments(Vn,Si),da=$t(wi,On);return Or&&(Jg(),rr(20)),da}function dN(){let Or=j(),On=Bf();for(;Ki(25);){let Vn=Bf();On=$t(W(On,Vn),Or)}return On}function QC(Or,On,Vn,Si,wi){return $t(On(Vn,D(Or,j(),Si,wi)),Or)}function GQ(Or,On,Vn,Si){let wi=Ze(!0);return Jg(),$t(d.createJSDocThisTag(On,wi,D(Or,j(),Vn,Si)),Or)}function mN(Or,On,Vn,Si){let wi=Ze(!0);return Jg(),$t(d.createJSDocEnumTag(On,wi,D(Or,j(),Vn,Si)),Or)}function JQ(Or,On,Vn,Si){let wi=Yf();un();let da=b3();Jg();let wo=B(Vn),mu;if(!wi||bm(wi.type)){let Dd,Hd,Oh,Iy=!1;for(;(Dd=mr(()=>sme(Vn)))&&Dd.kind!==346;)if(Iy=!0,Dd.kind===345)if(Hd){let PD=Gt(_.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);PD&&Xs(PD,C2(ee,ke,0,0,_.The_tag_was_first_specified_here));break}else Hd=Dd;else Oh=Fr(Oh,Dd);if(Iy){let PD=wi&&wi.type.kind===189,hN=d.createJSDocTypeLiteral(Oh,PD);wi=Hd&&Hd.typeExpression&&!bm(Hd.typeExpression.type)?Hd.typeExpression:$t(hN,Or),mu=wi.end}}mu=mu||wo!==void 0?j():(da??wi??On).end,wo||(wo=D(Or,mu,Vn,Si));let Tm=d.createJSDocTypedefTag(On,wi,da,wo);return $t(Tm,Or,mu)}function b3(Or){let On=t.getTokenStart();if(!zp(q()))return;let Vn=Bf();if(Ki(25)){let Si=b3(!0),wi=d.createModuleDeclaration(void 0,Vn,Si,Or?8:void 0);return $t(wi,On)}return Or&&(Vn.flags|=4096),Vn}function gN(Or){let On=j(),Vn,Si;for(;Vn=mr(()=>gx(4,Or));){if(Vn.kind===346){wt(Vn.tagName,_.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Si=Fr(Si,Vn)}return Fa(Si||[],On)}function UQ(Or,On){let Vn=gN(On),Si=mr(()=>{if(Sm(60)){let wi=v(On);if(wi&&wi.kind===343)return wi}});return $t(d.createJSDocSignature(void 0,Vn,Si),Or)}function VQ(Or,On,Vn,Si){let wi=b3();Jg();let da=B(Vn),wo=UQ(Or,Vn);da||(da=D(Or,j(),Vn,Si));let mu=da!==void 0?j():wo.end;return $t(d.createJSDocCallbackTag(On,wo,wi,da),Or,mu)}function nme(Or,On,Vn,Si){Jg();let wi=B(Vn),da=UQ(Or,Vn);wi||(wi=D(Or,j(),Vn,Si));let wo=wi!==void 0?j():da.end;return $t(d.createJSDocOverloadTag(On,da,wi),Or,wo)}function ime(Or,On){for(;!Be(Or)||!Be(On);)if(!Be(Or)&&!Be(On)&&Or.right.escapedText===On.right.escapedText)Or=Or.left,On=On.left;else return!1;return Or.escapedText===On.escapedText}function sme(Or){return gx(1,Or)}function gx(Or,On,Vn){let Si=!0,wi=!1;for(;;)switch(ut()){case 60:if(Si){let da=qQ(Or,On);return da&&(da.kind===342||da.kind===349)&&Vn&&(Be(da.name)||!ime(Vn,da.name.left))?!1:da}wi=!1;break;case 4:Si=!0,wi=!1;break;case 42:wi&&(Si=!1),wi=!0;break;case 80:Si=!1;break;case 1:return!1}}function qQ(Or,On){w.assert(q()===60);let Vn=t.getTokenFullStart();ut();let Si=Bf(),wi=un(),da;switch(Si.escapedText){case"type":return Or===1&&HC(Vn,Si);case"prop":case"property":da=1;break;case"arg":case"argument":case"param":da=6;break;case"template":return an(Vn,Si,On,wi);case"this":return GQ(Vn,Si,On,wi);default:return!1}return Or&da?$C(Vn,Si,Or,On):!1}function ame(){let Or=j(),On=Sm(23);On&&Jg();let Vn=xi(!1,!0),Si=Bf(_.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),wi;if(On&&(Jg(),rr(64),wi=oa(16777216,gm),rr(24)),!xc(Si))return $t(d.createTypeParameterDeclaration(Vn,Si,void 0,wi),Or)}function Nv(){let Or=j(),On=[];do{Jg();let Vn=ame();Vn!==void 0&&On.push(Vn),un()}while(Sm(28));return Fa(On,Or)}function an(Or,On,Vn,Si){let wi=q()===19?Ze():void 0,da=Nv();return $t(d.createJSDocTemplateTag(On,wi,da,D(Or,j(),Vn,Si)),Or)}function Sm(Or){return q()===Or?(ut(),!0):!1}function $Q(){let Or=Bf();for(Ki(23)&&rr(24);Ki(25);){let On=Bf();Ki(23)&&rr(24),Or=Kt(Or,On)}return Or}function Bf(Or){if(!zp(q()))return uo(80,!Or,Or||_.Identifier_expected);St++;let On=t.getTokenStart(),Vn=t.getTokenEnd(),Si=q(),wi=Mc(t.getTokenValue()),da=$t(I(wi,Si),On,Vn);return ut(),da}}})(fg=e.JSDocParser||(e.JSDocParser={}))})(e1||(e1={}));var u1e=new WeakSet;function Sze(e){u1e.has(e)&&w.fail("Source file has already been incrementally parsed"),u1e.add(e)}var p1e=new WeakSet;function Tze(e){return p1e.has(e)}function rse(e){p1e.add(e)}var UJ;(e=>{function t(T,x,I,P){if(P=P||w.shouldAssert(2),d(T,x,I,P),Nee(I))return T;if(T.statements.length===0)return e1.parseSourceFile(T.fileName,x,T.languageVersion,void 0,!0,T.scriptKind,T.setExternalModuleIndicator,T.jsDocParsingMode);Sze(T),e1.fixupParentReferences(T);let E=T.text,F=h(T),O=u(T,I);d(T,x,O,P),w.assert(O.span.start<=I.span.start),w.assert(mc(O.span)===mc(I.span)),w.assert(mc(AP(O))===mc(AP(I)));let W=AP(O).length-O.span.length;p(T,O.span.start,mc(O.span),mc(AP(O)),W,E,x,P);let z=e1.parseSourceFile(T.fileName,x,T.languageVersion,F,!0,T.scriptKind,T.setExternalModuleIndicator,T.jsDocParsingMode);return z.commentDirectives=n(T.commentDirectives,z.commentDirectives,O.span.start,mc(O.span),W,E,x,P),z.impliedNodeFormat=T.impliedNodeFormat,Nie(T,z),z}e.updateSourceFile=t;function n(T,x,I,P,E,F,O,W){if(!T)return x;let z,$=!1;for(let U of T){let{range:_e,type:re}=U;if(_e.end<I)z=Fr(z,U);else if(_e.pos>P){X();let V={range:{pos:_e.pos+E,end:_e.end+E},type:re};z=Fr(z,V),W&&w.assert(F.substring(_e.pos,_e.end)===O.substring(V.range.pos,V.range.end))}}return X(),z;function X(){$||($=!0,z?x&&z.push(...x):z=x)}}function i(T,x,I,P,E,F,O){I?z(T):W(T);return;function W($){let X="";if(O&&s($)&&(X=E.substring($.pos,$.end)),PJ($,x),om($,$.pos+P,$.end+P),O&&s($)&&w.assert(X===F.substring($.pos,$.end)),Ms($,W,z),Hf($))for(let U of $.jsDoc)W(U);c($,O)}function z($){om($,$.pos+P,$.end+P);for(let X of $)W(X)}}function s(T){switch(T.kind){case 11:case 9:case 80:return!0}return!1}function o(T,x,I,P,E){w.assert(T.end>=x,"Adjusting an element that was entirely before the change range"),w.assert(T.pos<=I,"Adjusting an element that was entirely after the change range"),w.assert(T.pos<=T.end);let F=Math.min(T.pos,P),O=T.end>=I?T.end+E:Math.min(T.end,P);if(w.assert(F<=O),T.parent){let W=T.parent;w.assertGreaterThanOrEqual(F,W.pos),w.assertLessThanOrEqual(O,W.end)}om(T,F,O)}function c(T,x){if(x){let I=T.pos,P=E=>{w.assert(E.pos>=I),I=E.end};if(Hf(T))for(let E of T.jsDoc)P(E);Ms(T,P),w.assert(I<=T.end)}}function p(T,x,I,P,E,F,O,W){z(T);return;function z(X){if(w.assert(X.pos<=X.end),X.pos>I){i(X,T,!1,E,F,O,W);return}let U=X.end;if(U>=x){if(rse(X),PJ(X,T),o(X,x,I,P,E),Ms(X,z,$),Hf(X))for(let _e of X.jsDoc)z(_e);c(X,W);return}w.assert(U<x)}function $(X){if(w.assert(X.pos<=X.end),X.pos>I){i(X,T,!0,E,F,O,W);return}let U=X.end;if(U>=x){rse(X),o(X,x,I,P,E);for(let _e of X)z(_e);return}w.assert(U<x)}}function u(T,x){let P=x.span.start;for(let O=0;P>0&&O<=1;O++){let W=g(T,P);w.assert(W.pos<=P);let z=W.pos;P=Math.max(0,z-1)}let E=$c(P,mc(x.span)),F=x.newLength+(x.span.start-P);return IM(E,F)}function g(T,x){let I=T,P;if(Ms(T,F),P){let O=E(P);O.pos>I.pos&&(I=O)}return I;function E(O){for(;;){let W=hG(O);if(W)O=W;else return O}}function F(O){if(!xc(O))if(O.pos<=x){if(O.pos>=I.pos&&(I=O),x<O.end)return Ms(O,F),!0;w.assert(O.end<=x),P=O}else return w.assert(O.pos>x),!0}}function d(T,x,I,P){let E=T.text;if(I&&(w.assert(E.length-I.span.length+I.newLength===x.length),P||w.shouldAssert(3))){let F=E.substr(0,I.span.start),O=x.substr(0,I.span.start);w.assert(F===O);let W=E.substring(mc(I.span),E.length),z=x.substring(mc(AP(I)),x.length);w.assert(W===z)}}function h(T){let x=T.statements,I=0;w.assert(I<x.length);let P=x[I],E=-1;return{currentNode(O){return O!==E&&(P&&P.end===O&&I<x.length-1&&(I++,P=x[I]),(!P||P.pos!==O)&&F(O)),E=O,w.assert(!P||P.pos===O),P}};function F(O){x=void 0,I=-1,P=void 0,Ms(T,W,z);return;function W($){return O>=$.pos&&O<$.end?(Ms($,W,z),!0):!1}function z($){if(O>=$.pos&&O<$.end)for(let X=0;X<$.length;X++){let U=$[X];if(U){if(U.pos===O)return x=$,I=X,P=U,!0;if(U.pos<O&&O<U.end)return Ms(U,W,z),!0}}return!1}}}e.createSyntaxCursor=h;let S;(T=>{T[T.Value=-1]="Value"})(S||(S={}))})(UJ||(UJ={}));function Kl(e){return P7(e)!==void 0}function P7(e){let t=Xx(e,W8,!1);if(t)return t;if(uc(e,".ts")){let n=dl(e),i=n.lastIndexOf(".d.");if(i>=0)return n.substring(i)}}function kze(e,t,n,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,n-t,_.resolution_mode_should_be_either_require_or_import)}}function VJ(e,t){let n=[];for(let i of nh(t,0)||Ke){let s=t.substring(i.pos,i.end);Ize(n,i,s)}e.pragmas=new Map;for(let i of n){if(e.pragmas.has(i.name)){let s=e.pragmas.get(i.name);s instanceof Array?s.push(i.args):e.pragmas.set(i.name,[s,i.args]);continue}e.pragmas.set(i.name,i.args)}}function qJ(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((n,i)=>{switch(i){case"reference":{let s=e.referencedFiles,o=e.typeReferenceDirectives,c=e.libReferenceDirectives;or($x(n),p=>{let{types:u,lib:g,path:d,["resolution-mode"]:h,preserve:S}=p.arguments,T=S==="true"?!0:void 0;if(p.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(u){let x=kze(h,u.pos,u.end,t);o.push({pos:u.pos,end:u.end,fileName:u.value,...x?{resolutionMode:x}:{},...T?{preserve:T}:{}})}else g?c.push({pos:g.pos,end:g.end,fileName:g.value,...T?{preserve:T}:{}}):d?s.push({pos:d.pos,end:d.end,fileName:d.value,...T?{preserve:T}:{}}):t(p.range.pos,p.range.end-p.range.pos,_.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=kr($x(n),s=>({name:s.arguments.name,path:s.arguments.path}));break}case"amd-module":{if(n instanceof Array)for(let s of n)e.moduleName&&t(s.range.pos,s.range.end-s.range.pos,_.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=s.arguments.name;else e.moduleName=n.arguments.name;break}case"ts-nocheck":case"ts-check":{or($x(n),s=>{(!e.checkJsDirective||s.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:s.range.end,pos:s.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:w.fail("Unhandled pragma kind")}})}var nse=new Map;function xze(e){if(nse.has(e))return nse.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return nse.set(e,t),t}var Cze=/^\/\/\/\s*<(\S+)\s.*?\/>/m,wze=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function Ize(e,t,n){let i=t.kind===2&&Cze.exec(n);if(i){let o=i[1].toLowerCase(),c=GO[o];if(!c||!(c.kind&1))return;if(c.args){let p={};for(let u of c.args){let d=xze(u.name).exec(n);if(!d&&!u.optional)return;if(d){let h=d[2]||d[3];if(u.captureSpan){let S=t.pos+d.index+d[1].length+1;p[u.name]={value:h,pos:S,end:S+h.length}}else p[u.name]=h}}e.push({name:o,args:{arguments:p,range:t}})}else e.push({name:o,args:{arguments:{},range:t}});return}let s=t.kind===2&&wze.exec(n);if(s)return f1e(e,t,2,s);if(t.kind===3){let o=/@(\S+)(\s+(?:\S.*)?)?$/gm,c;for(;c=o.exec(n);)f1e(e,t,4,c)}}function f1e(e,t,n,i){if(!i)return;let s=i[1].toLowerCase(),o=GO[s];if(!o||!(o.kind&n))return;let c=i[2],p=Dze(o,c);p!=="fail"&&e.push({name:s,args:{arguments:p,range:t}})}function Dze(e,t){if(!t)return{};if(!e.args)return{};let n=t.trim().split(/\s+/),i={};for(let s=0;s<e.args.length;s++){let o=e.args[s];if(!n[s]&&!o.optional)return"fail";if(o.captureSpan)return w.fail("Capture spans not yet implemented for non-xml pragmas");i[o.name]=n[s]}return i}function t1(e,t){return e.kind!==t.kind?!1:e.kind===80?e.escapedText===t.escapedText:e.kind===110?!0:e.kind===296?e.namespace.escapedText===t.namespace.escapedText&&e.name.escapedText===t.name.escapedText:e.name.escapedText===t.name.escapedText&&t1(e.expression,t.expression)}var ise={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},_1e=new Map(Object.entries({preserve:1,"react-native":3,"react-jsx":4,"react-jsxdev":5,react:2})),C4=new Map(lP(_1e.entries(),([e,t])=>[""+t,e])),d1e=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["es2024","lib.es2024.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.arraybuffer","lib.es2017.arraybuffer.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["es2023.intl","lib.es2023.intl.d.ts"],["es2024.arraybuffer","lib.es2024.arraybuffer.d.ts"],["es2024.collection","lib.es2024.collection.d.ts"],["es2024.object","lib.es2024.object.d.ts"],["es2024.promise","lib.es2024.promise.d.ts"],["es2024.regexp","lib.es2024.regexp.d.ts"],["es2024.sharedmemory","lib.es2024.sharedmemory.d.ts"],["es2024.string","lib.es2024.string.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2024.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.es2024.object.d.ts"],["esnext.array","lib.esnext.array.d.ts"],["esnext.regexp","lib.es2024.regexp.d.ts"],["esnext.string","lib.es2024.string.d.ts"],["esnext.iterator","lib.esnext.iterator.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.float16","lib.esnext.float16.d.ts"],["esnext.error","lib.esnext.error.d.ts"],["esnext.sharedmemory","lib.esnext.sharedmemory.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],A7=d1e.map(e=>e[0]),$J=new Map(d1e),Z2=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:_.Watch_and_Build_Modes,description:_.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:_.Watch_and_Build_Modes,description:_.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:_.Watch_and_Build_Modes,description:_.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:_.Watch_and_Build_Modes,description:_.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:xse},allowConfigDirTemplateSubstitution:!0,category:_.Watch_and_Build_Modes,description:_.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:xse},allowConfigDirTemplateSubstitution:!0,category:_.Watch_and_Build_Modes,description:_.Remove_a_list_of_files_from_the_watch_mode_s_processing}],E7=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:_.Command_line_Options,description:_.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:_.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:_.Command_line_Options,description:_.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:_.Output_Formatting,description:_.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:_.Compiler_Diagnostics,description:_.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:_.Compiler_Diagnostics,description:_.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:_.Compiler_Diagnostics,description:_.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:_.Output_Formatting,description:_.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:_.Compiler_Diagnostics,description:_.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:_.Compiler_Diagnostics,description:_.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:_.Compiler_Diagnostics,description:_.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:_.FILE_OR_DIRECTORY,category:_.Compiler_Diagnostics,description:_.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,paramType:_.DIRECTORY,category:_.Compiler_Diagnostics,description:_.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:_.Projects,description:_.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:_.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Emit,transpileOptionValue:void 0,description:_.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:_.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Emit,defaultValueDescription:!1,description:_.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Emit,description:_.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Emit,defaultValueDescription:!1,description:_.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:_.Emit,description:_.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"noCheck",type:"boolean",showInSimplifiedHelpView:!1,category:_.Compiler_Diagnostics,description:_.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:_.Emit,description:_.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:_.Watch_and_Build_Modes,description:_.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:_.Command_line_Options,isCommandLineOnly:!0,description:_.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:_.Platform_specific}],HJ={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,es2023:10,es2024:11,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:_.VERSION,showInSimplifiedHelpView:!0,category:_.Language_and_Environment,description:_.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},sse={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,node18:101,node20:102,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:_.KIND,showInSimplifiedHelpView:!0,category:_.Modules,description:_.Specify_what_module_code_is_generated,defaultValueDescription:void 0},m1e=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:_.Command_line_Options,description:_.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:_.Command_line_Options,description:_.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:_.Command_line_Options,description:_.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:_.Command_line_Options,paramType:_.FILE_OR_DIRECTORY,description:_.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:_.Command_line_Options,isCommandLineOnly:!0,description:_.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:_.Command_line_Options,isCommandLineOnly:!0,description:_.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},HJ,sse,{name:"lib",type:"list",element:{name:"lib",type:$J,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:_.Language_and_Environment,description:_.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.JavaScript_Support,description:_.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.JavaScript_Support,description:_.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:_1e,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:_.KIND,showInSimplifiedHelpView:!0,category:_.Language_and_Environment,description:_.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_.FILE,showInSimplifiedHelpView:!0,category:_.Emit,description:_.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_.DIRECTORY,showInSimplifiedHelpView:!0,category:_.Emit,description:_.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_.LOCATION,category:_.Modules,description:_.Specify_the_root_folder_within_your_source_files,defaultValueDescription:_.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:_.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:_.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:_.FILE,category:_.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:_.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Emit,defaultValueDescription:!1,description:_.Disable_emitting_comments},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,affectsSourceFile:!0,category:_.Emit,description:_.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Backwards_Compatibility,description:_.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:_.Interop_Constraints,description:_.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Interop_Constraints,description:_.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"isolatedDeclarations",type:"boolean",category:_.Interop_Constraints,description:_.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"erasableSyntaxOnly",type:"boolean",category:_.Interop_Constraints,description:_.Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"libReplacement",type:"boolean",affectsProgramStructure:!0,category:_.Language_and_Environment,description:_.Enable_lib_replacement,defaultValueDescription:!0},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Type_Checking,description:_.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:_.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:_.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:_.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:_.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:_.false_unless_strict_is_set},{name:"strictBuiltinIteratorReturn",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any,defaultValueDescription:_.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:_.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:_.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Ensure_use_strict_is_always_emitted,defaultValueDescription:_.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:_.Type_Checking,description:_.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:_.STRATEGY,category:_.Modules,description:_.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:_.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:_.Modules,description:_.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,isTSConfigOnly:!0,category:_.Modules,description:_.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:_.Modules,description:_.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:_.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:_.Modules,description:_.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:_.Modules,description:_.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Interop_Constraints,description:_.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:_.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Interop_Constraints,description:_.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:_.Interop_Constraints,description:_.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Modules,description:_.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:_.Modules,description:_.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Modules,description:_.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"rewriteRelativeImportExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Modules,description:_.Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files,defaultValueDescription:!1},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:_.Modules,description:_.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:_.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:_.Modules,description:_.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:_.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:_.Modules,description:_.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"noUncheckedSideEffectImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Modules,description:_.Check_side_effect_imports,defaultValueDescription:!1},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:_.LOCATION,category:_.Emit,description:_.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:_.LOCATION,category:_.Emit,description:_.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Language_and_Environment,description:_.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:_.Language_and_Environment,description:_.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:_.Language_and_Environment,description:_.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:_.Language_and_Environment,description:_.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSourceFile:!0,category:_.Language_and_Environment,description:_.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:_.Modules,description:_.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:_.Modules,description:_.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:_.Backwards_Compatibility,paramType:_.FILE,transpileOptionValue:void 0,description:_.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:_.Language_and_Environment,description:_.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:_.Completeness,description:_.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:_.Backwards_Compatibility,description:_.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:_.NEWLINE,category:_.Emit,description:_.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Output_Formatting,description:_.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:_.Language_and_Environment,affectsProgramStructure:!0,description:_.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:_.Modules,description:_.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:_.Editor_Support,description:_.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:_.Projects,description:_.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:_.Projects,description:_.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:_.Projects,description:_.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Backwards_Compatibility,description:_.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,transpileOptionValue:void 0,description:_.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_.DIRECTORY,category:_.Emit,transpileOptionValue:void 0,description:_.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:_.Completeness,description:_.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Backwards_Compatibility,description:_.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Backwards_Compatibility,description:_.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:_.Interop_Constraints,description:_.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:_.JavaScript_Support,description:_.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Backwards_Compatibility,description:_.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:_.Language_and_Environment,description:_.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:_.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Backwards_Compatibility,description:_.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:_.Backwards_Compatibility,description:_.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:_.Specify_a_list_of_language_service_plugins_to_include,category:_.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:_.Control_what_method_is_used_to_detect_module_format_JS_files,category:_.Language_and_Environment,defaultValueDescription:_.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],Bd=[...E7,...m1e],ase=Bd.filter(e=>!!e.affectsSemanticDiagnostics),ose=Bd.filter(e=>!!e.affectsEmit),cse=Bd.filter(e=>!!e.affectsDeclarationPath),QJ=Bd.filter(e=>!!e.affectsModuleResolution),KJ=Bd.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),lse=Bd.filter(e=>!!e.affectsProgramStructure),use=Bd.filter(e=>_o(e,"transpileOptionValue")),Pze=Bd.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),Aze=Z2.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),pse=Bd.filter(Eze);function Eze(e){return!Is(e.type)}var Ik={name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:_.Command_line_Options,description:_.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},XJ=[Ik,{name:"verbose",shortName:"v",category:_.Command_line_Options,description:_.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:_.Command_line_Options,description:_.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:_.Command_line_Options,description:_.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:_.Command_line_Options,description:_.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1},{name:"stopBuildOnErrors",category:_.Command_line_Options,description:_.Skip_building_downstream_projects_on_error_in_upstream_project,type:"boolean",defaultValueDescription:!1}],w4=[...E7,...XJ],N7=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}];function M7(e){let t=new Map,n=new Map;return or(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&n.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:n}}var g1e;function PI(){return g1e||(g1e=M7(Bd))}var Nze={diagnostic:_.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:T1e},h1e={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function fse(e){return y1e(e,fc)}function y1e(e,t){let n=ds(e.type.keys()),i=(e.deprecatedKeys?n.filter(s=>!e.deprecatedKeys.has(s)):n).map(s=>`'${s}'`).join(", ");return t(_.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function R7(e,t,n){return rSe(e,(t??"").trim(),n)}function _se(e,t="",n){if(t=t.trim(),Zi(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return eC(e,t,n);if(t==="")return[];let i=t.split(",");switch(e.element.type){case"number":return Ji(i,s=>eC(e.element,parseInt(s),n));case"string":return Ji(i,s=>eC(e.element,s||"",n));case"boolean":case"object":return w.fail(`List of ${e.element.type} is not yet supported.`);default:return Ji(i,s=>R7(e.element,s,n))}}function v1e(e){return e.name}function dse(e,t,n,i,s){var o;let c=(o=t.alternateMode)==null?void 0:o.getOptionsNameMap().optionsNameMap.get(e.toLowerCase());if(c)return r1(s,i,c!==Ik?t.alternateMode.diagnostic:_.Option_build_must_be_the_first_command_line_argument,e);let p=pS(e,t.optionDeclarations,v1e);return p?r1(s,i,t.unknownDidYouMeanDiagnostic,n||e,p.name):r1(s,i,t.unknownOptionDiagnostic,n||e)}function YJ(e,t,n){let i={},s,o=[],c=[];return p(t),{options:i,watchOptions:s,fileNames:o,errors:c};function p(g){let d=0;for(;d<g.length;){let h=g[d];if(d++,h.charCodeAt(0)===64)u(h.slice(1));else if(h.charCodeAt(0)===45){let S=h.slice(h.charCodeAt(1)===45?2:1),T=gse(e.getOptionsNameMap,S,!0);if(T)d=b1e(g,d,e,T,i,c);else{let x=gse(rU.getOptionsNameMap,S,!0);x?d=b1e(g,d,rU,x,s||(s={}),c):c.push(dse(S,e,h))}}else o.push(h)}}function u(g){let d=ZA(g,n||(T=>Nl.readFile(T)));if(!Is(d)){c.push(d);return}let h=[],S=0;for(;;){for(;S<d.length&&d.charCodeAt(S)<=32;)S++;if(S>=d.length)break;let T=S;if(d.charCodeAt(T)===34){for(S++;S<d.length&&d.charCodeAt(S)!==34;)S++;S<d.length?(h.push(d.substring(T+1,S)),S++):c.push(fc(_.Unterminated_quoted_string_in_response_file_0,g))}else{for(;d.charCodeAt(S)>32;)S++;h.push(d.substring(T,S))}}p(h)}}function b1e(e,t,n,i,s,o){if(i.isTSConfigOnly){let c=e[t];c==="null"?(s[i.name]=void 0,t++):i.type==="boolean"?c==="false"?(s[i.name]=eC(i,!1,o),t++):(c==="true"&&t++,o.push(fc(_.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(fc(_.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),c&&!Zi(c,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&o.push(fc(n.optionTypeMismatchDiagnostic,i.name,nU(i))),e[t]!=="null")switch(i.type){case"number":s[i.name]=eC(i,parseInt(e[t]),o),t++;break;case"boolean":let c=e[t];s[i.name]=eC(i,c!=="false",o),(c==="false"||c==="true")&&t++;break;case"string":s[i.name]=eC(i,e[t]||"",o),t++;break;case"list":let p=_se(i,e[t],o);s[i.name]=p||[],p&&t++;break;case"listOrElement":w.fail("listOrElement not supported here");break;default:s[i.name]=R7(i,e[t],o),t++;break}else s[i.name]=void 0,t++;return t}var O7={alternateMode:Nze,getOptionsNameMap:PI,optionDeclarations:Bd,unknownOptionDiagnostic:_.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:_.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:_.Compiler_option_0_expects_an_argument};function mse(e,t){return YJ(O7,e,t)}function ZJ(e,t){return gse(PI,e,t)}function gse(e,t,n=!1){t=t.toLowerCase();let{optionsNameMap:i,shortOptionNames:s}=e();if(n){let o=s.get(t);o!==void 0&&(t=o)}return i.get(t)}var S1e;function T1e(){return S1e||(S1e=M7(w4))}var Mze={diagnostic:_.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:PI},Rze={alternateMode:Mze,getOptionsNameMap:T1e,optionDeclarations:w4,unknownOptionDiagnostic:_.Unknown_build_option_0,unknownDidYouMeanDiagnostic:_.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:_.Build_option_0_requires_a_value_of_type_1};function hse(e){let{options:t,watchOptions:n,fileNames:i,errors:s}=YJ(Rze,e),o=t;return i.length===0&&i.push("."),o.clean&&o.force&&s.push(fc(_.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&s.push(fc(_.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&s.push(fc(_.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&s.push(fc(_.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,watchOptions:n,projects:i,errors:s}}function Qp(e,...t){return Zs(fc(e,...t).messageText,Is)}function I4(e,t,n,i,s,o){let c=ZA(e,g=>n.readFile(g));if(!Is(c)){n.onUnRecoverableConfigFileDiagnostic(c);return}let p=x4(e,c),u=n.getCurrentDirectory();return p.path=So(e,u,hu(n.useCaseSensitiveFileNames)),p.resolvedPath=p.path,p.originalFileName=p.fileName,A4(p,n,as(ti(e),u),t,as(e,u),void 0,o,i,s)}function D4(e,t){let n=ZA(e,t);return Is(n)?eU(e,n):{config:{},error:n}}function eU(e,t){let n=x4(e,t);return{config:O1e(n,n.parseDiagnostics,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function yse(e,t){let n=ZA(e,t);return Is(n)?x4(e,n):{fileName:e,parseDiagnostics:[n]}}function ZA(e,t){let n;try{n=t(e)}catch(i){return fc(_.Cannot_read_file_0_Colon_1,e,i.message)}return n===void 0?fc(_.Cannot_read_file_0,e):n}function tU(e){return yw(e,v1e)}var k1e={optionDeclarations:N7,unknownOptionDiagnostic:_.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:_.Unknown_type_acquisition_option_0_Did_you_mean_1},x1e;function C1e(){return x1e||(x1e=M7(Z2))}var rU={getOptionsNameMap:C1e,optionDeclarations:Z2,unknownOptionDiagnostic:_.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:_.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:_.Watch_option_0_requires_a_value_of_type_1},w1e;function I1e(){return w1e||(w1e=tU(Bd))}var D1e;function P1e(){return D1e||(D1e=tU(Z2))}var A1e;function E1e(){return A1e||(A1e=tU(N7))}var F7={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:_.File_Management,disallowNullOrUndefined:!0},N1e={name:"compilerOptions",type:"object",elementOptions:I1e(),extraKeyDiagnostics:O7},M1e={name:"watchOptions",type:"object",elementOptions:P1e(),extraKeyDiagnostics:rU},R1e={name:"typeAcquisition",type:"object",elementOptions:E1e(),extraKeyDiagnostics:k1e},vse;function Oze(){return vse===void 0&&(vse={name:void 0,type:"object",elementOptions:tU([N1e,M1e,R1e,F7,{name:"references",type:"list",element:{name:"references",type:"object"},category:_.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:_.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:_.File_Management,defaultValueDescription:_.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:_.File_Management,defaultValueDescription:_.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},ise])}),vse}function O1e(e,t,n){var i;let s=(i=e.statements[0])==null?void 0:i.expression;if(s&&s.kind!==211){if(t.push(N_(e,s,_.The_root_value_of_a_0_file_must_be_an_object,dl(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),Tu(s)){let o=Bn(s.elements,Sa);if(o)return P4(e,o,t,!0,n)}return{}}return P4(e,s,t,!0,n)}function bse(e,t){var n;return P4(e,(n=e.statements[0])==null?void 0:n.expression,t,!0,void 0)}function P4(e,t,n,i,s){if(!t)return i?{}:void 0;return p(t,s?.rootOptions);function o(g,d){var h;let S=i?{}:void 0;for(let T of g.properties){if(T.kind!==304){n.push(N_(e,T,_.Property_assignment_expected));continue}T.questionToken&&n.push(N_(e,T.questionToken,_.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),u(T.name)||n.push(N_(e,T.name,_.String_literal_with_double_quotes_expected));let x=HM(T.name)?void 0:p2(T.name),I=x&&Ai(x),P=I?(h=d?.elementOptions)==null?void 0:h.get(I):void 0,E=p(T.initializer,P);typeof I<"u"&&(i&&(S[I]=E),s?.onPropertySet(I,E,T,d,P))}return S}function c(g,d){if(!i){g.forEach(h=>p(h,d));return}return Mn(g.map(h=>p(h,d)),h=>h!==void 0)}function p(g,d){switch(g.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return u(g)||n.push(N_(e,g,_.String_literal_with_double_quotes_expected)),g.text;case 9:return Number(g.text);case 225:if(g.operator!==41||g.operand.kind!==9)break;return-Number(g.operand.text);case 211:return o(g,d);case 210:return c(g.elements,d&&d.element)}d?n.push(N_(e,g,_.Compiler_option_0_requires_a_value_of_type_1,d.name,nU(d))):n.push(N_(e,g,_.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function u(g){return ya(g)&&QF(g,e)}}function nU(e){return e.type==="listOrElement"?`${nU(e.element)} or Array`:e.type==="list"?"Array":Is(e.type)?e.type:"string"}function F1e(e,t){if(e){if(E4(t))return!e.disallowNullOrUndefined;if(e.type==="list")return gs(t);if(e.type==="listOrElement")return gs(t)||F1e(e.element,t);let n=Is(e.type)?e.type:"string";return typeof t===n}return!1}function iU(e,t,n){var i,s,o;let c=hu(n.useCaseSensitiveFileNames),p=kr(Mn(e.fileNames,(s=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&s.validatedIncludeSpecs?Lze(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,n):cS),x=>Cw(as(t,n.getCurrentDirectory()),as(x,n.getCurrentDirectory()),c)),u={configFilePath:as(t,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames},g=sU(e.options,u),d=e.watchOptions&&Wze(e.watchOptions),h={compilerOptions:{...j7(g),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:d&&j7(d),references:kr(e.projectReferences,x=>({...x,path:x.originalPath?x.originalPath:"",originalPath:void 0})),files:Dr(p)?p:void 0,...(o=e.options.configFile)!=null&&o.configFileSpecs?{include:jze(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},S=new Set(g.keys()),T={};for(let x in bA)if(!S.has(x)&&Fze(x,S)){let I=bA[x].computeValue(e.options),P=bA[x].computeValue({});I!==P&&(T[x]=bA[x].computeValue(e.options))}return WT(h.compilerOptions,j7(sU(T,u))),h}function Fze(e,t){let n=new Set;return i(e);function i(s){var o;return dd(n,s)?_t((o=bA[s])==null?void 0:o.dependencies,c=>t.has(c)||i(c)):!1}}function j7(e){return Object.fromEntries(e)}function jze(e){if(Dr(e)){if(Dr(e)!==1)return e;if(e[0]!==z1e)return e}}function Lze(e,t,n,i){if(!t)return cS;let s=O8(e,n,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=s.excludePattern&&ev(s.excludePattern,i.useCaseSensitiveFileNames),c=s.includeFilePattern&&ev(s.includeFilePattern,i.useCaseSensitiveFileNames);return c?o?p=>!(c.test(p)&&!o.test(p)):p=>!c.test(p):o?p=>o.test(p):cS}function j1e(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return j1e(e.element);default:return e.type}}function L7(e,t){return Rl(t,(n,i)=>{if(n===e)return i})}function sU(e,t){return L1e(e,PI(),t)}function Wze(e){return L1e(e,C1e())}function L1e(e,{optionsNameMap:t},n){let i=new Map,s=n&&hu(n.useCaseSensitiveFileNames);for(let o in e)if(_o(e,o)){if(t.has(o)&&(t.get(o).category===_.Command_line_Options||t.get(o).category===_.Output_Formatting))continue;let c=e[o],p=t.get(o.toLowerCase());if(p){w.assert(p.type!=="listOrElement");let u=j1e(p);u?p.type==="list"?i.set(o,c.map(g=>L7(g,u))):i.set(o,L7(c,u)):n&&p.isFilePath?i.set(o,Cw(n.configFilePath,as(c,ti(n.configFilePath)),s)):n&&p.type==="list"&&p.element.isFilePath?i.set(o,c.map(g=>Cw(n.configFilePath,as(g,ti(n.configFilePath)),s))):i.set(o,c)}}return i}function Sse(e,t){let i=[],s=Object.keys(e).filter(d=>d!=="init"&&d!=="help"&&d!=="watch");if(i.push("{"),i.push(` // ${Es(_.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)}`),i.push(' "compilerOptions": {'),c(_.File_Layout),p("rootDir","./src","optional"),p("outDir","./dist","optional"),o(),c(_.Environment_Settings),c(_.See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule),p("module",199),p("target",99),p("types",[]),e.lib&&p("lib",e.lib),c(_.For_nodejs_Colon),i.push(' // "lib": ["esnext"],'),i.push(' // "types": ["node"],'),c(_.and_npm_install_D_types_Slashnode),o(),c(_.Other_Outputs),p("sourceMap",!0),p("declaration",!0),p("declarationMap",!0),o(),c(_.Stricter_Typechecking_Options),p("noUncheckedIndexedAccess",!0),p("exactOptionalPropertyTypes",!0),o(),c(_.Style_Options),p("noImplicitReturns",!0,"optional"),p("noImplicitOverride",!0,"optional"),p("noUnusedLocals",!0,"optional"),p("noUnusedParameters",!0,"optional"),p("noFallthroughCasesInSwitch",!0,"optional"),p("noPropertyAccessFromIndexSignature",!0,"optional"),o(),c(_.Recommended_Options),p("strict",!0),p("jsx",4),p("verbatimModuleSyntax",!0),p("isolatedModules",!0),p("noUncheckedSideEffectImports",!0),p("moduleDetection",3),p("skipLibCheck",!0),s.length>0)for(o();s.length>0;)p(s[0],e[s[0]]);function o(){i.push("")}function c(d){i.push(` // ${Es(d)}`)}function p(d,h,S="never"){let T=s.indexOf(d);T>=0&&s.splice(T,1);let x;S==="always"?x=!0:S==="never"?x=!1:x=!_o(e,d);let I=e[d]??h;x?i.push(` // "${d}": ${u(d,I)},`):i.push(` "${d}": ${u(d,I)},`)}function u(d,h){let S=Bd.filter(x=>x.name===d)[0];S||w.fail(`No option named ${d}?`);let T=S.type instanceof Map?S.type:void 0;if(gs(h)){let x="element"in S&&S.element.type instanceof Map?S.element.type:void 0;return`[${h.map(I=>g(I,x)).join(", ")}]`}else return g(h,T)}function g(d,h){return h&&(d=L7(d,h)??w.fail(`No matching value of ${d}`)),JSON.stringify(d)}return i.push(" }"),i.push("}"),i.push(""),i.join(t)}function W7(e,t){let n={},i=PI().optionsNameMap;for(let s in e)_o(e,s)&&(n[s]=Bze(i.get(s.toLowerCase()),e[s],t));return n.configFilePath&&(n.configFilePath=t(n.configFilePath)),n}function Bze(e,t,n){if(e&&!E4(t)){if(e.type==="list"){let i=t;if(e.element.isFilePath&&i.length)return i.map(n)}else if(e.isFilePath)return n(t);w.assert(e.type!=="listOrElement")}return t}function W1e(e,t,n,i,s,o,c,p,u){return G1e(e,void 0,t,n,i,u,s,o,c,p)}function A4(e,t,n,i,s,o,c,p,u){var g,d;(g=mn)==null||g.push(mn.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});let h=G1e(void 0,e,t,n,i,u,s,o,c,p);return(d=mn)==null||d.pop(),h}function aU(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function E4(e){return e==null}function B1e(e,t){return ti(as(e,t))}var z1e="**/*";function G1e(e,t,n,i,s={},o,c,p=[],u=[],g){w.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);let d=[],h=H1e(e,t,n,i,c,p,d,g),{raw:S}=h,T=J1e(FW(s,h.options||{}),Pze,i),x=B7(o&&h.watchOptions?FW(o,h.watchOptions):h.watchOptions||o,i);T.configFilePath=c&&ou(c);let I=ra(c?B1e(c,i):i),P=E();return t&&(t.configFileSpecs=P),aU(T,t),{options:T,watchOptions:x,fileNames:F(I),projectReferences:O(I),typeAcquisition:h.typeAcquisition||lU(),raw:S,errors:d,wildcardDirectories:Yze(P,I,n.useCaseSensitiveFileNames),compileOnSave:!!S.compileOnSave};function E(){let U=$("references",ye=>typeof ye=="object","object"),_e=W(z("files"));if(_e){let ye=U==="no-prop"||gs(U)&&U.length===0,ee=_o(S,"extends");if(_e.length===0&&ye&&!ee)if(t){let ge=c||"tsconfig.json",ke=_.The_files_list_in_config_file_0_is_empty,Oe=e6(t,"files",ae=>ae.initializer),nt=r1(t,Oe,ke,ge);d.push(nt)}else X(_.The_files_list_in_config_file_0_is_empty,c||"tsconfig.json")}let re=W(z("include")),V=z("exclude"),ce=!1,oe=W(V);if(V==="no-prop"){let ye=T.outDir,ee=T.declarationDir;(ye||ee)&&(oe=Mn([ye,ee],ge=>!!ge))}_e===void 0&&re===void 0&&(re=[z1e],ce=!0);let le,de,ve,H;re&&(le=sSe(re,d,!0,t,"include"),ve=z7(le,I)||le),oe&&(de=sSe(oe,d,!1,t,"exclude"),H=z7(de,I)||de);let Se=Mn(_e,Is),Je=z7(Se,I)||Se;return{filesSpecs:_e,includeSpecs:re,excludeSpecs:oe,validatedFilesSpec:Je,validatedIncludeSpecs:ve,validatedExcludeSpecs:H,validatedFilesSpecBeforeSubstitution:Se,validatedIncludeSpecsBeforeSubstitution:le,validatedExcludeSpecsBeforeSubstitution:de,isDefaultIncludeSpec:ce}}function F(U){let _e=eE(P,U,T,n,u);return $1e(_e,N4(S),p)&&d.push(q1e(P,c)),_e}function O(U){let _e,re=$("references",V=>typeof V=="object","object");if(gs(re))for(let V of re)typeof V.path!="string"?X(_.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(_e||(_e=[])).push({path:as(V.path,U),originalPath:V.path,prepend:V.prepend,circular:V.circular});return _e}function W(U){return gs(U)?U:void 0}function z(U){return $(U,Is,"string")}function $(U,_e,re){if(_o(S,U)&&!E4(S[U]))if(gs(S[U])){let V=S[U];return!t&&!Fi(V,_e)&&d.push(fc(_.Compiler_option_0_requires_a_value_of_type_1,U,re)),V}else return X(_.Compiler_option_0_requires_a_value_of_type_1,U,"Array"),"not-array";return"no-prop"}function X(U,..._e){t||d.push(fc(U,..._e))}}function B7(e,t){return J1e(e,Aze,t)}function J1e(e,t,n){if(!e)return e;let i;for(let o of t)if(e[o.name]!==void 0){let c=e[o.name];switch(o.type){case"string":w.assert(o.isFilePath),oU(c)&&s(o,V1e(c,n));break;case"list":w.assert(o.element.isFilePath);let p=z7(c,n);p&&s(o,p);break;case"object":w.assert(o.name==="paths");let u=zze(c,n);u&&s(o,u);break;default:w.fail("option type not supported")}}return i||e;function s(o,c){(i??(i=WT({},e)))[o.name]=c}}var U1e="${configDir}";function oU(e){return Is(e)&&Zi(e,U1e,!0)}function V1e(e,t){return as(e.replace(U1e,"./"),t)}function z7(e,t){if(!e)return e;let n;return e.forEach((i,s)=>{oU(i)&&((n??(n=e.slice()))[s]=V1e(i,t))}),n}function zze(e,t){let n;return Nm(e).forEach(s=>{if(!gs(e[s]))return;let o=z7(e[s],t);o&&((n??(n=WT({},e)))[s]=o)}),n}function Gze(e){return e.code===_.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function q1e({includeSpecs:e,excludeSpecs:t},n){return fc(_.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,n||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function $1e(e,t,n){return e.length===0&&t&&(!n||n.length===0)}function cU(e){return!e.fileNames.length&&_o(e.raw,"references")}function N4(e){return!_o(e,"files")&&!_o(e,"references")}function G7(e,t,n,i,s){let o=i.length;return $1e(e,s)?i.push(q1e(n,t)):xW(i,c=>!Gze(c)),o!==i.length}function Jze(e){return!!e.options}function H1e(e,t,n,i,s,o,c,p){var u;i=ou(i);let g=as(s||"",i);if(o.includes(g))return c.push(fc(_.Circularity_detected_while_resolving_configuration_Colon_0,[...o,g].join(" -> "))),{raw:e||bse(t,c)};let d=e?Uze(e,n,i,s,c):Vze(t,n,i,s,c);if((u=d.options)!=null&&u.paths&&(d.options.pathsBasePath=i),d.extendedConfigPath){o=o.concat([g]);let T={options:{}};Is(d.extendedConfigPath)?h(T,d.extendedConfigPath):d.extendedConfigPath.forEach(x=>h(T,x)),T.include&&(d.raw.include=T.include),T.exclude&&(d.raw.exclude=T.exclude),T.files&&(d.raw.files=T.files),d.raw.compileOnSave===void 0&&T.compileOnSave&&(d.raw.compileOnSave=T.compileOnSave),t&&T.extendedSourceFiles&&(t.extendedSourceFiles=ds(T.extendedSourceFiles.keys())),d.options=WT(T.options,d.options),d.watchOptions=d.watchOptions&&T.watchOptions?S(T,d.watchOptions):d.watchOptions||T.watchOptions}return d;function h(T,x){let I=qze(t,x,n,o,c,p,T);if(I&&Jze(I)){let P=I.raw,E,F=O=>{d.raw[O]||P[O]&&(T[O]=kr(P[O],W=>oU(W)||Sf(W)?W:Jn(E||(E=kP(ti(x),i,hu(n.useCaseSensitiveFileNames))),W)))};F("include"),F("exclude"),F("files"),P.compileOnSave!==void 0&&(T.compileOnSave=P.compileOnSave),WT(T.options,I.options),T.watchOptions=T.watchOptions&&I.watchOptions?S(T,I.watchOptions):T.watchOptions||I.watchOptions}}function S(T,x){return T.watchOptionsCopied?WT(T.watchOptions,x):(T.watchOptionsCopied=!0,WT({},T.watchOptions,x))}}function Uze(e,t,n,i,s){_o(e,"excludes")&&s.push(fc(_.Unknown_option_excludes_Did_you_mean_exclude));let o=eSe(e.compilerOptions,n,s,i),c=tSe(e.typeAcquisition,n,s,i),p=Hze(e.watchOptions,n,s);e.compileOnSave=$ze(e,n,s);let u=e.extends||e.extends===""?Q1e(e.extends,t,n,i,s):void 0;return{raw:e,options:o,watchOptions:p,typeAcquisition:c,extendedConfigPath:u}}function Q1e(e,t,n,i,s,o,c,p){let u,g=i?B1e(i,n):n;if(Is(e))u=K1e(e,t,g,s,c,p);else if(gs(e)){u=[];for(let d=0;d<e.length;d++){let h=e[d];Is(h)?u=Fr(u,K1e(h,t,g,s,c?.elements[d],p)):Dk(F7.element,e,n,s,o,c?.elements[d],p)}}else Dk(F7,e,n,s,o,c,p);return u}function Vze(e,t,n,i,s){let o=Z1e(i),c,p,u,g,d=Oze(),h=O1e(e,s,{rootOptions:d,onPropertySet:S});return c||(c=lU(i)),g&&h&&h.compilerOptions===void 0&&s.push(N_(e,g[0],_._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,p2(g[0]))),{raw:h,options:o,watchOptions:p,typeAcquisition:c,extendedConfigPath:u};function S(T,x,I,P,E){if(E&&E!==F7&&(x=Dk(E,x,n,s,I,I.initializer,e)),P?.name)if(E){let F;P===N1e?F=o:P===M1e?F=p??(p={}):P===R1e?F=c??(c=lU(i)):w.fail("Unknown option"),F[E.name]=x}else T&&P?.extraKeyDiagnostics&&(P.elementOptions?s.push(dse(T,P.extraKeyDiagnostics,void 0,I.name,e)):s.push(N_(e,I.name,P.extraKeyDiagnostics.unknownOptionDiagnostic,T)));else P===d&&(E===F7?u=Q1e(x,t,n,i,s,I,I.initializer,e):E||(T==="excludes"&&s.push(N_(e,I.name,_.Unknown_option_excludes_Did_you_mean_exclude)),Bn(m1e,F=>F.name===T)&&(g=Fr(g,I.name))))}}function K1e(e,t,n,i,s,o){if(e=ou(e),Sf(e)||Zi(e,"./")||Zi(e,"../")){let p=as(e,n);if(!t.fileExists(p)&&!Bo(p,".json")&&(p=`${p}.json`,!t.fileExists(p))){i.push(r1(o,s,_.File_0_not_found,e));return}return p}let c=Bse(e,Jn(n,"tsconfig.json"),t);if(c.resolvedModule)return c.resolvedModule.resolvedFileName;e===""?i.push(r1(o,s,_.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(r1(o,s,_.File_0_not_found,e))}function qze(e,t,n,i,s,o,c){let p=n.useCaseSensitiveFileNames?t:Zv(t),u,g,d;if(o&&(u=o.get(p))?{extendedResult:g,extendedConfig:d}=u:(g=yse(t,h=>n.readFile(h)),g.parseDiagnostics.length||(d=H1e(void 0,g,n,ti(t),dl(t),i,s,o)),o&&o.set(p,{extendedResult:g,extendedConfig:d})),e&&((c.extendedSourceFiles??(c.extendedSourceFiles=new Set)).add(g.fileName),g.extendedSourceFiles))for(let h of g.extendedSourceFiles)c.extendedSourceFiles.add(h);if(g.parseDiagnostics.length){s.push(...g.parseDiagnostics);return}return d}function $ze(e,t,n){if(!_o(e,ise.name))return!1;let i=Dk(ise,e.compileOnSave,t,n);return typeof i=="boolean"&&i}function X1e(e,t,n){let i=[];return{options:eSe(e,t,i,n),errors:i}}function Y1e(e,t,n){let i=[];return{options:tSe(e,t,i,n),errors:i}}function Z1e(e){return e&&dl(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function eSe(e,t,n,i){let s=Z1e(i);return Tse(I1e(),e,t,s,O7,n),i&&(s.configFilePath=ou(i)),s}function lU(e){return{enable:!!e&&dl(e)==="jsconfig.json",include:[],exclude:[]}}function tSe(e,t,n,i){let s=lU(i);return Tse(E1e(),e,t,s,k1e,n),s}function Hze(e,t,n){return Tse(P1e(),e,t,void 0,rU,n)}function Tse(e,t,n,i,s,o){if(t){for(let c in t){let p=e.get(c);p?(i||(i={}))[p.name]=Dk(p,t[c],n,o):o.push(dse(c,s))}return i}}function r1(e,t,n,...i){return e&&t?N_(e,t,n,...i):fc(n,...i)}function Dk(e,t,n,i,s,o,c){if(e.isCommandLineOnly){i.push(r1(c,s?.name,_.Option_0_can_only_be_specified_on_command_line,e.name));return}if(F1e(e,t)){let p=e.type;if(p==="list"&&gs(t))return nSe(e,t,n,i,s,o,c);if(p==="listOrElement")return gs(t)?nSe(e,t,n,i,s,o,c):Dk(e.element,t,n,i,s,o,c);if(!Is(e.type))return rSe(e,t,i,o,c);let u=eC(e,t,i,o,c);return E4(u)?u:Qze(e,n,u)}else i.push(r1(c,o,_.Compiler_option_0_requires_a_value_of_type_1,e.name,nU(e)))}function Qze(e,t,n){return e.isFilePath&&(n=ou(n),n=oU(n)?n:as(n,t),n===""&&(n=".")),n}function eC(e,t,n,i,s){var o;if(E4(t))return;let c=(o=e.extraValidation)==null?void 0:o.call(e,t);if(!c)return t;n.push(r1(s,i,...c))}function rSe(e,t,n,i,s){if(E4(t))return;let o=t.toLowerCase(),c=e.type.get(o);if(c!==void 0)return eC(e,c,n,i,s);n.push(y1e(e,(p,...u)=>r1(s,i,p,...u)))}function nSe(e,t,n,i,s,o,c){return Mn(kr(t,(p,u)=>Dk(e.element,p,n,i,s,o?.elements[u],c)),p=>e.listPreserveFalsyValues?!0:!!p)}var Kze=/(?:^|\/)\*\*\/?$/,Xze=/^[^*?]*(?=\/[^/]*[*?])/;function eE(e,t,n,i,s=Ke){t=ra(t);let o=hu(i.useCaseSensitiveFileNames),c=new Map,p=new Map,u=new Map,{validatedFilesSpec:g,validatedIncludeSpecs:d,validatedExcludeSpecs:h}=e,S=TA(n,s),T=V6(n,S);if(g)for(let E of g){let F=as(E,t);c.set(o(F),F)}let x;if(d&&d.length>0)for(let E of i.readDirectory(t,ad(T),h,d,void 0)){if(uc(E,".json")){if(!x){let W=d.filter($=>Bo($,".json")),z=kr(M8(W,t,"files"),$=>`^${$}$`);x=z?z.map($=>ev($,i.useCaseSensitiveFileNames)):Ke}if(Tc(x,W=>W.test(E))!==-1){let W=o(E);!c.has(W)&&!u.has(W)&&u.set(W,E)}continue}if(eGe(E,c,p,S,o))continue;tGe(E,p,S,o);let F=o(E);!c.has(F)&&!p.has(F)&&p.set(F,E)}let I=ds(c.values()),P=ds(p.values());return I.concat(P,ds(u.values()))}function kse(e,t,n,i,s){let{validatedFilesSpec:o,validatedIncludeSpecs:c,validatedExcludeSpecs:p}=t;if(!Dr(c)||!Dr(p))return!1;n=ra(n);let u=hu(i);if(o){for(let g of o)if(u(as(g,n))===e)return!1}return U7(e,p,i,s,n)}function iSe(e){let t=Zi(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(Bo(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function J7(e,t,n,i){return U7(e,Mn(t,s=>!iSe(s)),n,i)}function U7(e,t,n,i,s){let o=SA(t,Jn(ra(i),s),"exclude"),c=o&&ev(o,n);return c?c.test(e)?!0:!xw(e)&&c.test(Ml(e)):!1}function sSe(e,t,n,i,s){return e.filter(c=>{if(!Is(c))return!1;let p=xse(c,n);return p!==void 0&&t.push(o(...p)),p===void 0});function o(c,p){let u=LF(i,s,p);return r1(i,u,c,p)}}function xse(e,t){if(w.assert(typeof e=="string"),t&&Kze.test(e))return[_.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(iSe(e))return[_.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function Yze({validatedIncludeSpecs:e,validatedExcludeSpecs:t},n,i){let s=SA(t,n,"exclude"),o=s&&new RegExp(s,i?"":"i"),c={},p=new Map;if(e!==void 0){let u=[];for(let g of e){let d=ra(Jn(n,g));if(o&&o.test(d))continue;let h=Zze(d,i);if(h){let{key:S,path:T,flags:x}=h,I=p.get(S),P=I!==void 0?c[I]:void 0;(P===void 0||P<x)&&(c[I!==void 0?I:T]=x,I===void 0&&p.set(S,T),x===1&&u.push(S))}}for(let g in c)if(_o(c,g))for(let d of u){let h=Cse(g,i);h!==d&&A_(d,h,n,!i)&&delete c[g]}}return c}function Cse(e,t){return t?e:Zv(e)}function Zze(e,t){let n=Xze.exec(e);if(n){let i=e.indexOf("?"),s=e.indexOf("*"),o=e.lastIndexOf(Ro);return{key:Cse(n[0],t),path:n[0],flags:i!==-1&&i<o||s!==-1&&s<o?1:0}}if(DG(e.substring(e.lastIndexOf(Ro)+1))){let i=Vy(e);return{key:Cse(i,t),path:i,flags:1}}}function eGe(e,t,n,i,s){let o=or(i,c=>Bc(e,c)?c:void 0);if(!o)return!1;for(let c of o){if(uc(e,c)&&(c!==".ts"||!uc(e,".d.ts")))return!1;let p=s(tv(e,c));if(t.has(p)||n.has(p)){if(c===".d.ts"&&(uc(e,".js")||uc(e,".jsx")))continue;return!0}}return!1}function tGe(e,t,n,i){let s=or(n,o=>Bc(e,o)?o:void 0);if(s)for(let o=s.length-1;o>=0;o--){let c=s[o];if(uc(e,c))return;let p=i(tv(e,c));t.delete(p)}}function wse(e){let t={};for(let n in e)if(_o(e,n)){let i=ZJ(n);i!==void 0&&(t[n]=Ise(e[n],i))}return t}function Ise(e,t){if(e===void 0)return e;switch(t.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!gs(e))return Ise(e,t.element);case"list":let n=t.element;return gs(e)?Ji(e,i=>Ise(i,n)):"";default:return Rl(t.type,(i,s)=>{if(i===e)return s})}}function ls(e,t,...n){e.trace(I2(t,...n))}function Mb(e,t){return!!e.traceResolution&&t.trace!==void 0}function tC(e,t,n){let i;if(t&&e){let s=e.contents.packageJsonContent;typeof s.name=="string"&&typeof s.version=="string"&&(i={name:s.name,subModuleName:t.path.slice(e.packageDirectory.length+Ro.length),version:s.version,peerDependencies:TGe(e,n)})}return t&&{path:t.path,extension:t.ext,packageId:i,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function uU(e){return tC(void 0,e,void 0)}function aSe(e){if(e)return w.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function V7(e){let t=[];return e&1&&t.push("TypeScript"),e&2&&t.push("JavaScript"),e&4&&t.push("Declaration"),e&8&&t.push("JSON"),t.join(", ")}function rGe(e){let t=[];return e&1&&t.push(...U6),e&2&&t.push(...aI),e&4&&t.push(...W8),e&8&&t.push(".json"),t}function Dse(e){if(e)return w.assert(z8(e.extension)),{fileName:e.path,packageId:e.packageId}}function oSe(e,t,n,i,s,o,c,p,u){if(!c.resultFromCache&&!c.compilerOptions.preserveSymlinks&&t&&n&&!t.originalPath&&!Ul(e)){let{resolvedFileName:g,originalPath:d}=uSe(t.path,c.host,c.traceEnabled);d&&(t={...t,path:g,originalPath:d})}return cSe(t,n,i,s,o,c.resultFromCache,p,u)}function cSe(e,t,n,i,s,o,c,p){return o?c?.isReadonly?{...o,failedLookupLocations:Pse(o.failedLookupLocations,n),affectingLocations:Pse(o.affectingLocations,i),resolutionDiagnostics:Pse(o.resolutionDiagnostics,s)}:(o.failedLookupLocations=AI(o.failedLookupLocations,n),o.affectingLocations=AI(o.affectingLocations,i),o.resolutionDiagnostics=AI(o.resolutionDiagnostics,s),o):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:tE(n),affectingLocations:tE(i),resolutionDiagnostics:tE(s),alternateResult:p}}function tE(e){return e.length?e:void 0}function AI(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function Pse(e,t){return e?.length?t.length?[...e,...t]:e.slice():tE(t)}function Ase(e,t,n,i){if(!_o(e,t)){i.traceEnabled&&ls(i.host,_.package_json_does_not_have_a_0_field,t);return}let s=e[t];if(typeof s!==n||s===null){i.traceEnabled&&ls(i.host,_.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,n,s===null?"null":typeof s);return}return s}function pU(e,t,n,i){let s=Ase(e,t,"string",i);if(s===void 0)return;if(!s){i.traceEnabled&&ls(i.host,_.package_json_had_a_falsy_0_field,t);return}let o=ra(Jn(n,s));return i.traceEnabled&&ls(i.host,_.package_json_has_0_field_1_that_references_2,t,s,o),o}function nGe(e,t,n){return pU(e,"typings",t,n)||pU(e,"types",t,n)}function iGe(e,t,n){return pU(e,"tsconfig",t,n)}function sGe(e,t,n){return pU(e,"main",t,n)}function aGe(e,t){let n=Ase(e,"typesVersions","object",t);if(n!==void 0)return t.traceEnabled&&ls(t.host,_.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),n}function oGe(e,t){let n=aGe(e,t);if(n===void 0)return;if(t.traceEnabled)for(let c in n)_o(n,c)&&!WO.tryParse(c)&&ls(t.host,_.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,c);let i=q7(n);if(!i){t.traceEnabled&&ls(t.host,_.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,Yi);return}let{version:s,paths:o}=i;if(typeof o!="object"){t.traceEnabled&&ls(t.host,_.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${s}']`,"object",typeof o);return}return i}var Ese;function q7(e){Ese||(Ese=new Zd(Vi));for(let t in e){if(!_o(e,t))continue;let n=WO.tryParse(t);if(n!==void 0&&n.test(Ese))return{version:t,paths:e[t]}}}function rE(e,t){if(e.typeRoots)return e.typeRoots;let n;if(e.configFilePath?n=ti(e.configFilePath):t.getCurrentDirectory&&(n=t.getCurrentDirectory()),n!==void 0)return cGe(n)}function cGe(e){let t;return xP(ra(e),n=>{let i=Jn(n,lGe);(t??(t=[])).push(i)}),t}var lGe=Jn("node_modules","@types");function lSe(e,t,n){let i=typeof n.useCaseSensitiveFileNames=="function"?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames;return Hh(e,t,!i)===0}function uSe(e,t,n){let i=vSe(e,t,n),s=lSe(e,i,t);return{resolvedFileName:s?e:i,originalPath:s?void 0:e}}function pSe(e,t,n){let i=Bo(e,"/node_modules/@types")||Bo(e,"/node_modules/@types/")?NSe(t,n):t;return Jn(e,i)}function Nse(e,t,n,i,s,o,c){w.assert(typeof e=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");let p=Mb(n,i);s&&(n=s.commandLine.options);let u=t?ti(t):void 0,g=u?o?.getFromDirectoryCache(e,c,u,s):void 0;if(!g&&u&&!Ul(e)&&(g=o?.getFromNonRelativeNameCache(e,c,u,s)),g)return p&&(ls(i,_.Resolving_type_reference_directive_0_containing_file_1,e,t),s&&ls(i,_.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName),ls(i,_.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,u),z(g)),g;let d=rE(n,i);p&&(t===void 0?d===void 0?ls(i,_.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):ls(i,_.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,d):d===void 0?ls(i,_.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):ls(i,_.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,d),s&&ls(i,_.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));let h=[],S=[],T=Mse(n);c!==void 0&&(T|=30);let x=Ku(n);c===99&&3<=x&&x<=99&&(T|=32);let I=T&8?Rb(n,c):[],P=[],E={compilerOptions:n,host:i,traceEnabled:p,failedLookupLocations:h,affectingLocations:S,packageJsonInfoCache:o,features:T,conditions:I,requestContainingDirectory:u,reportDiagnostic:U=>{P.push(U)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},F=$(),O=!0;F||(F=X(),O=!1);let W;if(F){let{fileName:U,packageId:_e}=F,re=U,V;n.preserveSymlinks||({resolvedFileName:re,originalPath:V}=uSe(U,i,p)),W={primary:O,resolvedFileName:re,originalPath:V,packageId:_e,isExternalLibraryImport:Ob(U)}}return g={resolvedTypeReferenceDirective:W,failedLookupLocations:tE(h),affectingLocations:tE(S),resolutionDiagnostics:tE(P)},u&&o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(u,s).set(e,c,g),Ul(e)||o.getOrCreateCacheForNonRelativeName(e,c,s).set(u,g)),p&&z(g),g;function z(U){var _e;(_e=U.resolvedTypeReferenceDirective)!=null&&_e.resolvedFileName?U.resolvedTypeReferenceDirective.packageId?ls(i,_.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,U.resolvedTypeReferenceDirective.resolvedFileName,A0(U.resolvedTypeReferenceDirective.packageId),U.resolvedTypeReferenceDirective.primary):ls(i,_.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,U.resolvedTypeReferenceDirective.resolvedFileName,U.resolvedTypeReferenceDirective.primary):ls(i,_.Type_reference_directive_0_was_not_resolved,e)}function $(){if(d&&d.length)return p&&ls(i,_.Resolving_with_primary_search_path_0,d.join(", ")),fo(d,U=>{let _e=pSe(U,e,E),re=sm(U,i);if(!re&&p&&ls(i,_.Directory_0_does_not_exist_skipping_all_lookups_in_it,U),n.typeRoots){let V=MI(4,_e,!re,E);if(V){let ce=R4(V.path),oe=ce?Ak(ce,!1,E):void 0;return Dse(tC(oe,V,E))}}return Dse(Gse(4,_e,!re,E))});p&&ls(i,_.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function X(){let U=t&&ti(t);if(U!==void 0){let _e;if(!n.typeRoots||!Bo(t,vE))if(p&&ls(i,_.Looking_up_in_node_modules_folder_initial_location_0,U),Ul(e)){let{path:re}=ySe(U,e);_e=mU(4,re,!1,E,!0)}else{let re=DSe(4,e,U,E,void 0,void 0);_e=re&&re.value}else p&&ls(i,_.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return Dse(_e)}else p&&ls(i,_.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function Mse(e){let t=0;switch(Ku(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function Rb(e,t){let n=Ku(e);if(t===void 0){if(n===100)t=99;else if(n===2)return[]}let i=t===99?["import"]:["require"];return e.noDtsResolution||i.push("types"),n!==100&&i.push("node"),Qi(i,e.customConditions)}function fU(e,t,n,i,s){let o=iE(s?.getPackageJsonInfoCache(),i,n);return Eg(i,t,c=>{if(dl(c)!=="node_modules"){let p=Jn(c,"node_modules"),u=Jn(p,e);return Ak(u,!1,o)}})}function $7(e,t){if(e.types)return e.types;let n=[];if(t.directoryExists&&t.getDirectories){let i=rE(e,t);if(i){for(let s of i)if(t.directoryExists(s))for(let o of t.getDirectories(s)){let c=ra(o),p=Jn(s,c,"package.json");if(!(t.fileExists(p)&&tI(p,t).typings===null)){let g=dl(c);g.charCodeAt(0)!==46&&n.push(g)}}}}return n}function H7(e){return!!e?.contents}function Rse(e){return!!e&&!e.contents}function Ose(e){var t;if(e===null||typeof e!="object")return""+e;if(gs(e))return`[${(t=e.map(i=>Ose(i)))==null?void 0:t.join(",")}]`;let n="{";for(let i in e)_o(e,i)&&(n+=`${i}: ${Ose(e[i])}`);return n+"}"}function _U(e,t){return t.map(n=>Ose(A8(e,n))).join("|")+`|${e.pathsBasePath}`}function fSe(e,t){let n=new Map,i=new Map,s=new Map;return e&&n.set(e,s),{getMapOfCacheRedirects:o,getOrCreateMapOfCacheRedirects:c,update:p,clear:g,getOwnMap:()=>s};function o(h){return h?u(h.commandLine.options,!1):s}function c(h){return h?u(h.commandLine.options,!0):s}function p(h){e!==h&&(e?s=u(h,!0):n.set(h,s),e=h)}function u(h,S){let T=n.get(h);if(T)return T;let x=d(h);if(T=i.get(x),!T){if(e){let I=d(e);I===x?T=s:i.has(I)||i.set(I,s)}S&&(T??(T=new Map)),T&&i.set(x,T)}return T&&n.set(h,T),T}function g(){let h=e&&t.get(e);s.clear(),n.clear(),t.clear(),i.clear(),e&&(h&&t.set(e,h),n.set(e,s))}function d(h){let S=t.get(h);return S||t.set(h,S=_U(h,QJ)),S}}function uGe(e,t){let n;return{getPackageJsonInfo:i,setPackageJsonInfo:s,clear:o,getInternalMap:c};function i(p){return n?.get(So(p,e,t))}function s(p,u){(n||(n=new Map)).set(So(p,e,t),u)}function o(){n=void 0}function c(){return n}}function _Se(e,t,n,i){let s=e.getOrCreateMapOfCacheRedirects(t),o=s.get(n);return o||(o=i(),s.set(n,o)),o}function pGe(e,t,n,i){let s=fSe(n,i);return{getFromDirectoryCache:u,getOrCreateCacheForDirectory:p,clear:o,update:c,directoryToModuleNameMap:s};function o(){s.clear()}function c(g){s.update(g)}function p(g,d){let h=So(g,e,t);return _Se(s,d,h,()=>EI())}function u(g,d,h,S){var T,x;let I=So(h,e,t);return(x=(T=s.getMapOfCacheRedirects(S))==null?void 0:T.get(I))==null?void 0:x.get(g,d)}}function nE(e,t){return t===void 0?e:`${t}|${e}`}function EI(){let e=new Map,t=new Map,n={get(s,o){return e.get(i(s,o))},set(s,o,c){return e.set(i(s,o),c),n},delete(s,o){return e.delete(i(s,o)),n},has(s,o){return e.has(i(s,o))},forEach(s){return e.forEach((o,c)=>{let[p,u]=t.get(c);return s(o,p,u)})},size(){return e.size}};return n;function i(s,o){let c=nE(s,o);return t.set(c,[s,o]),c}}function fGe(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function _Ge(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function dGe(e,t,n,i,s){let o=fSe(n,s);return{getFromNonRelativeNameCache:u,getOrCreateCacheForNonRelativeName:g,clear:c,update:p};function c(){o.clear()}function p(h){o.update(h)}function u(h,S,T,x){var I,P;return w.assert(!Ul(h)),(P=(I=o.getMapOfCacheRedirects(x))==null?void 0:I.get(nE(h,S)))==null?void 0:P.get(T)}function g(h,S,T){return w.assert(!Ul(h)),_Se(o,T,nE(h,S),d)}function d(){let h=new Map;return{get:S,set:T};function S(I){return h.get(So(I,e,t))}function T(I,P){let E=So(I,e,t);if(h.has(E))return;h.set(E,P);let F=i(P),O=F&&x(E,F),W=E;for(;W!==O;){let z=ti(W);if(z===W||h.has(z))break;h.set(z,P),W=z}}function x(I,P){let E=So(ti(P),e,t),F=0,O=Math.min(I.length,E.length);for(;F<O&&I.charCodeAt(F)===E.charCodeAt(F);)F++;if(F===I.length&&(E.length===F||E[F]===Ro))return I;let W=em(I);if(F<W)return;let z=I.lastIndexOf(Ro,F-1);if(z!==-1)return I.substr(0,Math.max(z,W))}}}function dSe(e,t,n,i,s,o){o??(o=new Map);let c=pGe(e,t,n,o),p=dGe(e,t,n,s,o);return i??(i=uGe(e,t)),{...i,...c,...p,clear:u,update:d,getPackageJsonInfoCache:()=>i,clearAllExceptPackageJsonInfoCache:g,optionsToRedirectsKey:o};function u(){g(),i.clear()}function g(){c.clear(),p.clear()}function d(h){c.update(h),p.update(h)}}function NI(e,t,n,i,s){let o=dSe(e,t,n,i,fGe,s);return o.getOrCreateCacheForModuleName=(c,p,u)=>o.getOrCreateCacheForNonRelativeName(c,p,u),o}function Q7(e,t,n,i,s){return dSe(e,t,n,i,_Ge,s)}function dU(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function K7(e,t,n,i,s){return Pk(e,t,dU(n),i,s)}function mSe(e,t,n,i){let s=ti(t);return n.getFromDirectoryCache(e,i,s,void 0)}function Pk(e,t,n,i,s,o,c){let p=Mb(n,i);o&&(n=o.commandLine.options),p&&(ls(i,_.Resolving_module_0_from_1,e,t),o&&ls(i,_.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));let u=ti(t),g=s?.getFromDirectoryCache(e,c,u,o);if(g)p&&ls(i,_.Resolution_for_module_0_was_found_in_cache_from_location_1,e,u);else{let d=n.moduleResolution;switch(d===void 0?(d=Ku(n),p&&ls(i,_.Module_resolution_kind_is_not_specified_using_0,Tw[d])):p&&ls(i,_.Explicitly_specified_module_resolution_kind_Colon_0,Tw[d]),d){case 3:g=yGe(e,t,n,i,s,o,c);break;case 99:g=vGe(e,t,n,i,s,o,c);break;case 2:g=Wse(e,t,n,i,s,o,c?Rb(n,c):void 0);break;case 1:g=Vse(e,t,n,i,s,o);break;case 100:g=Lse(e,t,n,i,s,o,c?Rb(n,c):void 0);break;default:return w.fail(`Unexpected moduleResolution: ${d}`)}s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(u,o).set(e,c,g),Ul(e)||s.getOrCreateCacheForNonRelativeName(e,c,o).set(u,g))}return p&&(g.resolvedModule?g.resolvedModule.packageId?ls(i,_.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,g.resolvedModule.resolvedFileName,A0(g.resolvedModule.packageId)):ls(i,_.Module_name_0_was_successfully_resolved_to_1,e,g.resolvedModule.resolvedFileName):ls(i,_.Module_name_0_was_not_resolved,e)),g}function gSe(e,t,n,i,s){let o=mGe(e,t,i,s);return o?o.value:Ul(t)?gGe(e,t,n,i,s):hGe(e,t,i,s)}function mGe(e,t,n,i){let{baseUrl:s,paths:o}=i.compilerOptions;if(o&&!$f(t)){i.traceEnabled&&(s&&ls(i.host,_.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),ls(i.host,_.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));let c=l8(i.compilerOptions,i.host),p=H6(o);return Jse(e,t,c,o,p,n,!1,i)}}function gGe(e,t,n,i,s){if(!s.compilerOptions.rootDirs)return;s.traceEnabled&&ls(s.host,_.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);let o=ra(Jn(n,t)),c,p;for(let u of s.compilerOptions.rootDirs){let g=ra(u);Bo(g,Ro)||(g+=Ro);let d=Zi(o,g)&&(p===void 0||p.length<g.length);s.traceEnabled&&ls(s.host,_.Checking_if_0_is_the_longest_matching_prefix_for_1_2,g,o,d),d&&(p=g,c=u)}if(p){s.traceEnabled&&ls(s.host,_.Longest_matching_prefix_for_0_is_1,o,p);let u=o.substr(p.length);s.traceEnabled&&ls(s.host,_.Loading_0_from_the_root_dir_1_candidate_location_2,u,p,o);let g=i(e,o,!sm(n,s.host),s);if(g)return g;s.traceEnabled&&ls(s.host,_.Trying_other_entries_in_rootDirs);for(let d of s.compilerOptions.rootDirs){if(d===c)continue;let h=Jn(ra(d),u);s.traceEnabled&&ls(s.host,_.Loading_0_from_the_root_dir_1_candidate_location_2,u,d,h);let S=ti(h),T=i(e,h,!sm(S,s.host),s);if(T)return T}s.traceEnabled&&ls(s.host,_.Module_resolution_using_rootDirs_has_failed)}}function hGe(e,t,n,i){let{baseUrl:s}=i.compilerOptions;if(!s)return;i.traceEnabled&&ls(i.host,_.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t);let o=ra(Jn(s,t));return i.traceEnabled&&ls(i.host,_.Resolving_module_name_0_relative_to_base_url_1_2,t,s,o),n(e,o,!sm(ti(o),i.host),i)}function Fse(e,t,n){let{resolvedModule:i,failedLookupLocations:s}=bGe(e,t,n);if(!i)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${s?.join(", ")}`);return i.resolvedFileName}var jse=(e=>(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(jse||{});function yGe(e,t,n,i,s,o,c){return hSe(30,e,t,n,i,s,o,c)}function vGe(e,t,n,i,s,o,c){return hSe(30,e,t,n,i,s,o,c)}function hSe(e,t,n,i,s,o,c,p,u){let g=ti(n),d=p===99?32:0,h=i.noDtsResolution?3:7;return ES(i)&&(h|=8),M4(e|d,t,g,i,s,o,h,!1,c,u)}function bGe(e,t,n){return M4(0,e,t,{moduleResolution:2,allowJs:!0},n,void 0,2,!1,void 0,void 0)}function Lse(e,t,n,i,s,o,c){let p=ti(t),u=n.noDtsResolution?3:7;return ES(n)&&(u|=8),M4(Mse(n),e,p,n,i,s,u,!1,o,c)}function Wse(e,t,n,i,s,o,c,p){let u;return p?u=8:n.noDtsResolution?(u=3,ES(n)&&(u|=8)):u=ES(n)?15:7,M4(c?30:0,e,ti(t),n,i,s,u,!!p,o,c)}function Bse(e,t,n){return M4(30,e,ti(t),{moduleResolution:99},n,void 0,8,!0,void 0,void 0)}function M4(e,t,n,i,s,o,c,p,u,g){var d,h,S,T,x;let I=Mb(i,s),P=[],E=[],F=Ku(i);g??(g=Rb(i,F===100||F===2?void 0:e&32?99:1));let O=[],W={compilerOptions:i,host:s,traceEnabled:I,failedLookupLocations:P,affectingLocations:E,packageJsonInfoCache:o,features:e,conditions:g??Ke,requestContainingDirectory:n,reportDiagnostic:U=>{O.push(U)},isConfigLookup:p,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};I&&sI(F)&&ls(s,_.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",W.conditions.map(U=>`'${U}'`).join(", "));let z;if(F===2){let U=c&5,_e=c&-6;z=U&&X(U,W)||_e&&X(_e,W)||void 0}else z=X(c,W);let $;if(W.resolvedPackageDirectory&&!p&&!Ul(t)){let U=z?.value&&c&5&&!CSe(5,z.value.resolved.extension);if((d=z?.value)!=null&&d.isExternalLibraryImport&&U&&e&8&&g?.includes("import")){Fb(W,_.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let _e={...W,features:W.features&-9,reportDiagnostic:no},re=X(c&5,_e);(h=re?.value)!=null&&h.isExternalLibraryImport&&($=re.value.resolved.path)}else if((!z?.value||U)&&F===2){Fb(W,_.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let _e={...W.compilerOptions,moduleResolution:100},re={...W,compilerOptions:_e,features:30,conditions:Rb(_e),reportDiagnostic:no},V=X(c&5,re);(S=V?.value)!=null&&S.isExternalLibraryImport&&($=V.value.resolved.path)}}return oSe(t,(T=z?.value)==null?void 0:T.resolved,(x=z?.value)==null?void 0:x.isExternalLibraryImport,P,E,O,W,o,$);function X(U,_e){let V=gSe(U,t,n,(ce,oe,le,de)=>mU(ce,oe,le,de,!0),_e);if(V)return l_({resolved:V,isExternalLibraryImport:Ob(V.path)});if(Ul(t)){let{path:ce,parts:oe}=ySe(n,t),le=mU(U,ce,!1,_e,!0);return le&&l_({resolved:le,isExternalLibraryImport:ws(oe,"node_modules")})}else{if(e&2&&Zi(t,"#")){let oe=wGe(U,t,n,_e,o,u);if(oe)return oe.value&&{value:{resolved:oe.value,isExternalLibraryImport:!1}}}if(e&4){let oe=CGe(U,t,n,_e,o,u);if(oe)return oe.value&&{value:{resolved:oe.value,isExternalLibraryImport:!1}}}if(t.includes(":")){I&&ls(s,_.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,V7(U));return}I&&ls(s,_.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,V7(U));let ce=DSe(U,t,n,_e,o,u);return U&4&&(ce??(ce=RSe(t,_e))),ce&&{value:ce.value&&{resolved:ce.value,isExternalLibraryImport:!0}}}}}function ySe(e,t){let n=Jn(e,t),i=Nu(n),s=Wo(i);return{path:s==="."||s===".."?Ml(ra(n)):ra(n),parts:i}}function vSe(e,t,n){if(!t.realpath)return e;let i=ra(t.realpath(e));return n&&ls(t,_.Resolving_real_path_for_0_result_1,e,i),i}function mU(e,t,n,i,s){if(i.traceEnabled&&ls(i.host,_.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,V7(e)),!nb(t)){if(!n){let c=ti(t);sm(c,i.host)||(i.traceEnabled&&ls(i.host,_.Directory_0_does_not_exist_skipping_all_lookups_in_it,c),n=!0)}let o=MI(e,t,n,i);if(o){let c=s?R4(o.path):void 0,p=c?Ak(c,!1,i):void 0;return tC(p,o,i)}}if(n||sm(t,i.host)||(i.traceEnabled&&ls(i.host,_.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n=!0),!(i.features&32))return Gse(e,t,n,i,s)}var Th="/node_modules/";function Ob(e){return e.includes(Th)}function R4(e,t){let n=ra(e),i=n.lastIndexOf(Th);if(i===-1)return;let s=i+Th.length,o=bSe(n,s,t);return n.charCodeAt(s)===64&&(o=bSe(n,o,t)),n.slice(0,o)}function bSe(e,t,n){let i=e.indexOf(Ro,t+1);return i===-1?n?e.length:t:i}function zse(e,t,n,i){return uU(MI(e,t,n,i))}function MI(e,t,n,i){let s=SSe(e,t,n,i);if(s)return s;if(!(i.features&32)){let o=TSe(t,e,"",n,i);if(o)return o}}function SSe(e,t,n,i){if(!dl(t).includes("."))return;let o=dp(t);o===t&&(o=t.substring(0,t.lastIndexOf(".")));let c=t.substring(o.length);return i.traceEnabled&&ls(i.host,_.File_name_0_has_a_1_extension_stripping_it,t,c),TSe(o,e,c,n,i)}function gU(e,t,n,i,s){if(e&1&&Bc(t,U6)||e&4&&Bc(t,W8)){let o=hU(t,i,s),c=y8(t);return o!==void 0?{path:t,ext:c,resolvedUsingTsExtension:n?!Bo(n,c):void 0}:void 0}return s.isConfigLookup&&e===8&&uc(t,".json")?hU(t,i,s)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:SSe(e,t,i,s)}function TSe(e,t,n,i,s){if(!i){let c=ti(e);c&&(i=!sm(c,s.host))}switch(n){case".mjs":case".mts":case".d.mts":return t&1&&o(".mts",n===".mts"||n===".d.mts")||t&4&&o(".d.mts",n===".mts"||n===".d.mts")||t&2&&o(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&o(".cts",n===".cts"||n===".d.cts")||t&4&&o(".d.cts",n===".cts"||n===".d.cts")||t&2&&o(".cjs")||void 0;case".json":return t&4&&o(".d.json.ts")||t&8&&o(".json")||void 0;case".tsx":case".jsx":return t&1&&(o(".tsx",n===".tsx")||o(".ts",n===".tsx"))||t&4&&o(".d.ts",n===".tsx")||t&2&&(o(".jsx")||o(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(o(".ts",n===".ts"||n===".d.ts")||o(".tsx",n===".ts"||n===".d.ts"))||t&4&&o(".d.ts",n===".ts"||n===".d.ts")||t&2&&(o(".js")||o(".jsx"))||s.isConfigLookup&&o(".json")||void 0;default:return t&4&&!Kl(e+n)&&o(`.d${n}.ts`)||void 0}function o(c,p){let u=hU(e+c,i,s);return u===void 0?void 0:{path:u,ext:c,resolvedUsingTsExtension:!s.candidateIsFromPackageJsonField&&p}}}function hU(e,t,n){var i;if(!((i=n.compilerOptions.moduleSuffixes)!=null&&i.length))return kSe(e,t,n);let s=hh(e)??"",o=s?$6(e,s):e;return or(n.compilerOptions.moduleSuffixes,c=>kSe(o+c+s,t,n))}function kSe(e,t,n){var i;if(!t){if(n.host.fileExists(e))return n.traceEnabled&&ls(n.host,_.File_0_exists_use_it_as_a_name_resolution_result,e),e;n.traceEnabled&&ls(n.host,_.File_0_does_not_exist,e)}(i=n.failedLookupLocations)==null||i.push(e)}function Gse(e,t,n,i,s=!0){let o=s?Ak(t,n,i):void 0;return tC(o,vU(e,t,n,i,o),i)}function yU(e,t,n,i,s){if(!s&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let o,c=5|(s?2:0),p=Mse(t),u=iE(i?.getPackageJsonInfoCache(),n,t);u.conditions=Rb(t),u.requestContainingDirectory=e.packageDirectory;let g=vU(c,e.packageDirectory,!1,u,e);if(o=Fr(o,g?.path),p&8&&e.contents.packageJsonContent.exports){let d=oS([Rb(t,99),Rb(t,1)],qf);for(let h of d){let S={...u,failedLookupLocations:[],conditions:h,host:n},T=SGe(e,e.contents.packageJsonContent.exports,S,c);if(T)for(let x of T)o=qh(o,x.path)}}return e.contents.resolvedEntrypoints=o||!1}function SGe(e,t,n,i){let s;if(gs(t))for(let c of t)o(c);else if(typeof t=="object"&&t!==null&&Y7(t))for(let c in t)o(t[c]);else o(t);return s;function o(c){var p,u;if(typeof c=="string"&&Zi(c,"./"))if(c.includes("*")&&n.host.readDirectory){if(c.indexOf("*")!==c.lastIndexOf("*"))return!1;n.host.readDirectory(e.packageDirectory,rGe(i),void 0,[HO(fk(c,"**/*"),".*")]).forEach(g=>{s=qh(s,{path:g,ext:Xx(g),resolvedUsingTsExtension:void 0})})}else{let g=Nu(c).slice(2);if(g.includes("..")||g.includes(".")||g.includes("node_modules"))return!1;let d=Jn(e.packageDirectory,c),h=as(d,(u=(p=n.host).getCurrentDirectory)==null?void 0:u.call(p)),S=gU(i,h,c,!1,n);if(S)return s=qh(s,S,(T,x)=>T.path===x.path),!0}else if(Array.isArray(c)){for(let g of c)if(o(g))return!0}else if(typeof c=="object"&&c!==null)return or(Nm(c),g=>{if(g==="default"||ws(n.conditions,g)||O4(n.conditions,g))return o(c[g]),!0})}}function iE(e,t,n){return{host:t,compilerOptions:n,traceEnabled:Mb(n,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:Ke,requestContainingDirectory:void 0,reportDiagnostic:no,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function sE(e,t){return Eg(t.host,e,n=>Ak(n,!1,t))}function xSe(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=oGe(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function TGe(e,t){return e.contents.peerDependencies===void 0&&(e.contents.peerDependencies=kGe(e,t)||!1),e.contents.peerDependencies||void 0}function kGe(e,t){let n=Ase(e.contents.packageJsonContent,"peerDependencies","object",t);if(n===void 0)return;t.traceEnabled&&ls(t.host,_.package_json_has_a_peerDependencies_field);let i=vSe(e.packageDirectory,t.host,t.traceEnabled),s=i.substring(0,i.lastIndexOf("node_modules")+12)+Ro,o="";for(let c in n)if(_o(n,c)){let p=Ak(s+c,!1,t);if(p){let u=p.contents.packageJsonContent.version;o+=`+${c}@${u}`,t.traceEnabled&&ls(t.host,_.Found_peerDependency_0_with_1_version,c,u)}else t.traceEnabled&&ls(t.host,_.Failed_to_find_peerDependency_0,c)}return o}function Ak(e,t,n){var i,s,o,c,p,u;let{host:g,traceEnabled:d}=n,h=Jn(e,"package.json");if(t){(i=n.failedLookupLocations)==null||i.push(h);return}let S=(s=n.packageJsonInfoCache)==null?void 0:s.getPackageJsonInfo(h);if(S!==void 0){if(H7(S))return d&&ls(g,_.File_0_exists_according_to_earlier_cached_lookups,h),(o=n.affectingLocations)==null||o.push(h),S.packageDirectory===e?S:{packageDirectory:e,contents:S.contents};S.directoryExists&&d&&ls(g,_.File_0_does_not_exist_according_to_earlier_cached_lookups,h),(c=n.failedLookupLocations)==null||c.push(h);return}let T=sm(e,g);if(T&&g.fileExists(h)){let x=tI(h,g);d&&ls(g,_.Found_package_json_at_0,h);let I={packageDirectory:e,contents:{packageJsonContent:x,versionPaths:void 0,resolvedEntrypoints:void 0,peerDependencies:void 0}};return n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(h,I),(p=n.affectingLocations)==null||p.push(h),I}else T&&d&&ls(g,_.File_0_does_not_exist,h),n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(h,{packageDirectory:e,directoryExists:T}),(u=n.failedLookupLocations)==null||u.push(h)}function vU(e,t,n,i,s){let o=s&&xSe(s,i),c;s&&lSe(s?.packageDirectory,t,i.host)&&(i.isConfigLookup?c=iGe(s.contents.packageJsonContent,s.packageDirectory,i):c=e&4&&nGe(s.contents.packageJsonContent,s.packageDirectory,i)||e&7&&sGe(s.contents.packageJsonContent,s.packageDirectory,i)||void 0);let p=(S,T,x,I)=>{let P=gU(S,T,void 0,x,I);if(P)return uU(P);let E=S===4?5:S,F=I.features,O=I.candidateIsFromPackageJsonField;I.candidateIsFromPackageJsonField=!0,s?.contents.packageJsonContent.type!=="module"&&(I.features&=-33);let W=mU(E,T,x,I,!1);return I.features=F,I.candidateIsFromPackageJsonField=O,W},u=c?!sm(ti(c),i.host):void 0,g=n||!sm(t,i.host),d=Jn(t,i.isConfigLookup?"tsconfig":"index");if(o&&(!c||A_(t,c))){let S=n_(t,c||d,!1);i.traceEnabled&&ls(i.host,_.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,o.version,Vi,S);let T=H6(o.paths),x=Jse(e,S,t,o.paths,T,p,u||g,i);if(x)return aSe(x.value)}let h=c&&aSe(p(e,c,u,i));if(h)return h;if(!(i.features&32))return MI(e,d,g,i)}function CSe(e,t){return e&2&&(t===".js"||t===".jsx"||t===".mjs"||t===".cjs")||e&1&&(t===".ts"||t===".tsx"||t===".mts"||t===".cts")||e&4&&(t===".d.ts"||t===".d.mts"||t===".d.cts")||e&8&&t===".json"||!1}function X7(e){let t=e.indexOf(Ro);return e[0]==="@"&&(t=e.indexOf(Ro,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function Y7(e){return Fi(Nm(e),t=>Zi(t,"."))}function xGe(e){return!_t(Nm(e),t=>Zi(t,"."))}function CGe(e,t,n,i,s,o){var c,p;let u=as(n,(p=(c=i.host).getCurrentDirectory)==null?void 0:p.call(c)),g=sE(u,i);if(!g||!g.contents.packageJsonContent.exports||typeof g.contents.packageJsonContent.name!="string")return;let d=Nu(t),h=Nu(g.contents.packageJsonContent.name);if(!Fi(h,(P,E)=>d[E]===P))return;let S=d.slice(h.length),T=Dr(S)?`.${Ro}${S.join(Ro)}`:".";if(xb(i.compilerOptions)&&!Ob(n))return bU(g,e,T,i,s,o);let x=e&5,I=e&-6;return bU(g,x,T,i,s,o)||bU(g,I,T,i,s,o)}function bU(e,t,n,i,s,o){if(e.contents.packageJsonContent.exports){if(n==="."){let c;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&xGe(e.contents.packageJsonContent.exports)?c=e.contents.packageJsonContent.exports:_o(e.contents.packageJsonContent.exports,".")&&(c=e.contents.packageJsonContent.exports["."]),c)return ISe(t,i,s,o,n,e,!1)(c,"",!1,".")}else if(Y7(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&ls(i.host,_.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),l_(void 0);let c=wSe(t,i,s,o,n,e.contents.packageJsonContent.exports,e,!1);if(c)return c}return i.traceEnabled&&ls(i.host,_.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),l_(void 0)}}function wGe(e,t,n,i,s,o){var c,p;if(t==="#"||Zi(t,"#/"))return i.traceEnabled&&ls(i.host,_.Invalid_import_specifier_0_has_no_possible_resolutions,t),l_(void 0);let u=as(n,(p=(c=i.host).getCurrentDirectory)==null?void 0:p.call(c)),g=sE(u,i);if(!g)return i.traceEnabled&&ls(i.host,_.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,u),l_(void 0);if(!g.contents.packageJsonContent.imports)return i.traceEnabled&&ls(i.host,_.package_json_scope_0_has_no_imports_defined,g.packageDirectory),l_(void 0);let d=wSe(e,i,s,o,t,g.contents.packageJsonContent.imports,g,!0);return d||(i.traceEnabled&&ls(i.host,_.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,g.packageDirectory),l_(void 0))}function SU(e,t){let n=e.indexOf("*"),i=t.indexOf("*"),s=n===-1?e.length:n+1,o=i===-1?t.length:i+1;return s>o?-1:o>s||n===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function wSe(e,t,n,i,s,o,c,p){let u=ISe(e,t,n,i,s,c,p);if(!Bo(s,Ro)&&!s.includes("*")&&_o(o,s)){let h=o[s];return u(h,"",!1,s)}let g=yf(Mn(Nm(o),h=>IGe(h)||Bo(h,"/")),SU);for(let h of g)if(t.features&16&&d(h,s)){let S=o[h],T=h.indexOf("*"),x=s.substring(h.substring(0,T).length,s.length-(h.length-1-T));return u(S,x,!0,h)}else if(Bo(h,"*")&&Zi(s,h.substring(0,h.length-1))){let S=o[h],T=s.substring(h.length-1);return u(S,T,!0,h)}else if(Zi(s,h)){let S=o[h],T=s.substring(h.length);return u(S,T,!1,h)}function d(h,S){if(Bo(h,"*"))return!1;let T=h.indexOf("*");return T===-1?!1:Zi(S,h.substring(0,T))&&Bo(S,h.substring(T+1))}}function IGe(e){let t=e.indexOf("*");return t!==-1&&t===e.lastIndexOf("*")}function ISe(e,t,n,i,s,o,c){return p;function p(u,g,d,h){var S,T;if(typeof u=="string"){if(!d&&g.length>0&&!Bo(u,"/"))return t.traceEnabled&&ls(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),l_(void 0);if(!Zi(u,"./")){if(c&&!Zi(u,"../")&&!Zi(u,"/")&&!Sf(u)){let X=d?u.replace(/\*/g,g):u+g;Fb(t,_.Using_0_subpath_1_with_target_2,"imports",h,X),Fb(t,_.Resolving_module_0_from_1,X,o.packageDirectory+"/");let U=M4(t.features,X,o.packageDirectory+"/",t.compilerOptions,t.host,n,e,!1,i,t.conditions);return(S=t.failedLookupLocations)==null||S.push(...U.failedLookupLocations??Ke),(T=t.affectingLocations)==null||T.push(...U.affectingLocations??Ke),l_(U.resolvedModule?{path:U.resolvedModule.resolvedFileName,extension:U.resolvedModule.extension,packageId:U.resolvedModule.packageId,originalPath:U.resolvedModule.originalPath,resolvedUsingTsExtension:U.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&ls(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),l_(void 0)}let F=($f(u)?Nu(u).slice(1):Nu(u)).slice(1);if(F.includes("..")||F.includes(".")||F.includes("node_modules"))return t.traceEnabled&&ls(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),l_(void 0);let O=Jn(o.packageDirectory,u),W=Nu(g);if(W.includes("..")||W.includes(".")||W.includes("node_modules"))return t.traceEnabled&&ls(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),l_(void 0);t.traceEnabled&&ls(t.host,_.Using_0_subpath_1_with_target_2,c?"imports":"exports",h,d?u.replace(/\*/g,g):u+g);let z=x(d?O.replace(/\*/g,g):O+g),$=P(z,g,Jn(o.packageDirectory,"package.json"),c);return $||l_(tC(o,gU(e,z,u,!1,t),t))}else if(typeof u=="object"&&u!==null)if(Array.isArray(u)){if(!Dr(u))return t.traceEnabled&&ls(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),l_(void 0);for(let E of u){let F=p(E,g,d,h);if(F)return F}}else{Fb(t,_.Entering_conditional_exports);for(let E of Nm(u))if(E==="default"||t.conditions.includes(E)||O4(t.conditions,E)){Fb(t,_.Matched_0_condition_1,c?"imports":"exports",E);let F=u[E],O=p(F,g,d,h);if(O)return Fb(t,_.Resolved_under_condition_0,E),Fb(t,_.Exiting_conditional_exports),O;Fb(t,_.Failed_to_resolve_under_condition_0,E)}else Fb(t,_.Saw_non_matching_condition_0,E);Fb(t,_.Exiting_conditional_exports);return}else if(u===null)return t.traceEnabled&&ls(t.host,_.package_json_scope_0_explicitly_maps_specifier_1_to_null,o.packageDirectory,s),l_(void 0);return t.traceEnabled&&ls(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),l_(void 0);function x(E){var F,O;return E===void 0?E:as(E,(O=(F=t.host).getCurrentDirectory)==null?void 0:O.call(F))}function I(E,F){return Ml(Jn(E,F))}function P(E,F,O,W){var z,$,X,U;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!E.includes("/node_modules/")&&(!t.compilerOptions.configFile||A_(o.packageDirectory,x(t.compilerOptions.configFile.fileName),!TU(t)))){let re=ty({useCaseSensitiveFileNames:()=>TU(t)}),V=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let ce=x(hE(t.compilerOptions,()=>[],(($=(z=t.host).getCurrentDirectory)==null?void 0:$.call(z))||"",re));V.push(ce)}else if(t.requestContainingDirectory){let ce=x(Jn(t.requestContainingDirectory,"index.ts")),oe=x(hE(t.compilerOptions,()=>[ce,x(O)],((U=(X=t.host).getCurrentDirectory)==null?void 0:U.call(X))||"",re));V.push(oe);let le=Ml(oe);for(;le&&le.length>1;){let de=Nu(le);de.pop();let ve=w0(de);V.unshift(ve),le=Ml(ve)}}V.length>1&&t.reportDiagnostic(fc(W?_.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:_.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,F===""?".":F,O));for(let ce of V){let oe=_e(ce);for(let le of oe)if(A_(le,E,!TU(t))){let de=E.slice(le.length+1),ve=Jn(ce,de),H=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(let Se of H)if(uc(ve,Se)){let Je=Xz(ve);for(let ye of Je){if(!CSe(e,ye))continue;let ee=hM(ve,ye,Se,!TU(t));if(t.host.fileExists(ee))return l_(tC(o,gU(e,ee,void 0,!1,t),t))}}}}}return;function _e(re){var V,ce;let oe=t.compilerOptions.configFile?((ce=(V=t.host).getCurrentDirectory)==null?void 0:ce.call(V))||"":re,le=[];return t.compilerOptions.declarationDir&&le.push(x(I(oe,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&le.push(x(I(oe,t.compilerOptions.outDir))),le}}}}function O4(e,t){if(!e.includes("types")||!Zi(t,"types@"))return!1;let n=WO.tryParse(t.substring(6));return n?n.test(Vi):!1}function DSe(e,t,n,i,s,o){return PSe(e,t,n,i,!1,s,o)}function DGe(e,t,n){return PSe(4,e,t,n,!0,void 0,void 0)}function PSe(e,t,n,i,s,o,c){let p=i.features===0?void 0:i.features&32||i.conditions.includes("import")?99:1,u=e&5,g=e&-6;if(u){Fb(i,_.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,V7(u));let h=d(u);if(h)return h}if(g&&!s)return Fb(i,_.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,V7(g)),d(g);function d(h){return Eg(i.host,ou(n),S=>{if(dl(S)!=="node_modules"){let T=MSe(o,t,p,S,c,i);return T||l_(ASe(h,t,S,i,s,o,c))}})}}function Eg(e,t,n){var i;let s=(i=e?.getGlobalTypingsCacheLocation)==null?void 0:i.call(e);return xP(t,o=>{let c=n(o);if(c!==void 0)return c;if(o===s)return!1})||void 0}function ASe(e,t,n,i,s,o,c){let p=Jn(n,"node_modules"),u=sm(p,i.host);if(!u&&i.traceEnabled&&ls(i.host,_.Directory_0_does_not_exist_skipping_all_lookups_in_it,p),!s){let g=ESe(e,t,p,u,i,o,c);if(g)return g}if(e&4){let g=Jn(p,"@types"),d=u;return u&&!sm(g,i.host)&&(i.traceEnabled&&ls(i.host,_.Directory_0_does_not_exist_skipping_all_lookups_in_it,g),d=!1),ESe(4,NSe(t,i),g,d,i,o,c)}}function ESe(e,t,n,i,s,o,c){var p,u;let g=ra(Jn(n,t)),{packageName:d,rest:h}=X7(t),S=Jn(n,d),T,x=Ak(g,!i,s);if(h!==""&&x&&(!(s.features&8)||!_o(((p=T=Ak(S,!i,s))==null?void 0:p.contents.packageJsonContent)??Ke,"exports"))){let E=MI(e,g,!i,s);if(E)return uU(E);let F=vU(e,g,!i,s,x);return tC(x,F,s)}let I=(E,F,O,W)=>{let z=(h||!(W.features&32))&&MI(E,F,O,W)||vU(E,F,O,W,x);return!z&&!h&&x&&(x.contents.packageJsonContent.exports===void 0||x.contents.packageJsonContent.exports===null)&&W.features&32&&(z=MI(E,Jn(F,"index.js"),O,W)),tC(x,z,W)};if(h!==""&&(x=T??Ak(S,!i,s)),x&&(s.resolvedPackageDirectory=!0),x&&x.contents.packageJsonContent.exports&&s.features&8)return(u=bU(x,e,Jn(".",h),s,o,c))==null?void 0:u.value;let P=h!==""&&x?xSe(x,s):void 0;if(P){s.traceEnabled&&ls(s.host,_.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,P.version,Vi,h);let E=i&&sm(S,s.host),F=H6(P.paths),O=Jse(e,h,S,P.paths,F,I,!E,s);if(O)return O.value}return I(e,g,!i,s)}function Jse(e,t,n,i,s,o,c,p){let u=OG(s,t);if(u){let g=Is(u)?void 0:HY(u,t),d=Is(u)?u:$Y(u);return p.traceEnabled&&ls(p.host,_.Module_name_0_matched_pattern_1,t,d),{value:or(i[d],S=>{let T=g?fk(S,g):S,x=ra(Jn(n,T));p.traceEnabled&&ls(p.host,_.Trying_substitution_0_candidate_module_location_Colon_1,S,T);let I=hh(S);if(I!==void 0){let P=hU(x,c,p);if(P!==void 0)return uU({path:P,ext:I,resolvedUsingTsExtension:void 0})}return o(e,x,c||!sm(ti(x),p.host),p)})}}}var Use="__";function NSe(e,t){let n=RI(e);return t.traceEnabled&&n!==e&&ls(t.host,_.Scoped_package_detected_looking_in_0,n),n}function Z7(e){return`@types/${RI(e)}`}function RI(e){if(Zi(e,"@")){let t=e.replace(Ro,Use);if(t!==e)return t.slice(1)}return e}function aE(e){let t=dP(e,"@types/");return t!==e?F4(t):e}function F4(e){return e.includes(Use)?"@"+e.replace(Use,Ro):e}function MSe(e,t,n,i,s,o){let c=e&&e.getFromNonRelativeNameCache(t,n,i,s);if(c)return o.traceEnabled&&ls(o.host,_.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),o.resultFromCache=c,{value:c.resolvedModule&&{path:c.resolvedModule.resolvedFileName,originalPath:c.resolvedModule.originalPath||!0,extension:c.resolvedModule.extension,packageId:c.resolvedModule.packageId,resolvedUsingTsExtension:c.resolvedModule.resolvedUsingTsExtension}}}function Vse(e,t,n,i,s,o){let c=Mb(n,i),p=[],u=[],g=ti(t),d=[],h={compilerOptions:n,host:i,traceEnabled:c,failedLookupLocations:p,affectingLocations:u,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:g,reportDiagnostic:x=>{d.push(x)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},S=T(5)||T(2|(n.resolveJsonModule?8:0));return oSe(e,S&&S.value,S?.value&&Ob(S.value.path),p,u,d,h,s);function T(x){let I=gSe(x,e,g,zse,h);if(I)return{value:I};if(Ul(e)){let P=ra(Jn(g,e));return l_(zse(x,P,!1,h))}else{let P=Eg(h.host,g,E=>{let F=MSe(s,e,void 0,E,o,h);if(F)return F;let O=ra(Jn(E,e));return l_(zse(x,O,!1,h))});if(P)return P;if(x&5){let E=DGe(e,g,h);return x&4&&(E??(E=RSe(e,h))),E}}}}function RSe(e,t){if(t.compilerOptions.typeRoots)for(let n of t.compilerOptions.typeRoots){let i=pSe(n,e,t),s=sm(n,t.host);!s&&t.traceEnabled&&ls(t.host,_.Directory_0_does_not_exist_skipping_all_lookups_in_it,n);let o=MI(4,i,!s,t);if(o){let p=R4(o.path),u=p?Ak(p,!1,t):void 0;return l_(tC(u,o,t))}let c=Gse(4,i,!s,t);if(c)return l_(c)}}function OI(e,t){return nne(e)||!!t&&Kl(t)}function qse(e,t,n,i,s,o){let c=Mb(n,i);c&&ls(i,_.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,s);let p=[],u=[],g=[],d={compilerOptions:n,host:i,traceEnabled:c,failedLookupLocations:p,affectingLocations:u,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:S=>{g.push(S)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},h=ASe(4,e,s,d,!1,void 0,void 0);return cSe(h,!0,p,u,g,d.resultFromCache,void 0)}function l_(e){return e!==void 0?{value:e}:void 0}function Fb(e,t,...n){e.traceEnabled&&ls(e.host,t,...n)}function TU(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var $se=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))($se||{});function ly(e,t){return e.body&&!e.body.parent&&(Ka(e.body,e),z0(e.body,!1)),e.body?Hse(e.body,t):1}function Hse(e,t=new Map){let n=qa(e);if(t.has(n))return t.get(n)||0;t.set(n,void 0);let i=PGe(e,t);return t.set(n,i),i}function PGe(e,t){switch(e.kind){case 265:case 266:return 0;case 267:if(E0(e))return 2;break;case 273:case 272:if(!ri(e,32))return 0;break;case 279:let n=e;if(!n.moduleSpecifier&&n.exportClause&&n.exportClause.kind===280){let i=0;for(let s of n.exportClause.elements){let o=AGe(s,t);if(o>i&&(i=o),i===1)return i}return i}break;case 269:{let i=0;return Ms(e,s=>{let o=Hse(s,t);switch(o){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:w.assertNever(o)}}),i}case 268:return ly(e,t);case 80:if(e.flags&4096)return 0}return 1}function AGe(e,t){let n=e.propertyName||e.name;if(n.kind!==80)return 1;let i=e.parent;for(;i;){if(Bs(i)||Qm(i)||Li(i)){let s=i.statements,o;for(let c of s)if(DM(c,n)){c.parent||(Ka(c,i),z0(c,!1));let p=Hse(c,t);if((o===void 0||p>o)&&(o=p),o===1)return o;c.kind===272&&(o=1)}if(o!==void 0)return o}i=i.parent}return 1}var Qse=(e=>(e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))(Qse||{});function Ng(e,t,n){return w.attachFlowNodeDebugInfo({flags:e,id:0,node:t,antecedent:n})}var EGe=NGe();function Kse(e,t){dc("beforeBind"),EGe(e,t),dc("afterBind"),P_("Bind","beforeBind","afterBind")}function NGe(){var e,t,n,i,s,o,c,p,u,g,d,h,S,T,x,I,P,E,F,O,W,z,$,X,U,_e=!1,re=0,V,ce,oe=Ng(1,void 0,void 0),le=Ng(1,void 0,void 0),de=j();return H;function ve(L,Fe,...Et){return N_(Nr(L)||e,L,Fe,...Et)}function H(L,Fe){var Et,Er;e=L,t=Fe,n=xa(t),U=Se(e,Fe),ce=new Set,re=0,V=bu.getSymbolConstructor(),w.attachFlowNodeDebugInfo(oe),w.attachFlowNodeDebugInfo(le),e.locals||((Et=mn)==null||Et.push(mn.Phase.Bind,"bindSourceFile",{path:e.path},!0),Rr(e),(Er=mn)==null||Er.pop(),e.symbolCount=re,e.classifiableNames=ce,Lo(),fa()),e=void 0,t=void 0,n=void 0,i=void 0,s=void 0,o=void 0,c=void 0,p=void 0,u=void 0,d=void 0,g=!1,h=void 0,S=void 0,T=void 0,x=void 0,I=void 0,P=void 0,E=void 0,O=void 0,W=!1,z=!1,$=!1,_e=!1,X=0}function Se(L,Fe){return Ru(Fe,"alwaysStrict")&&!L.isDeclarationFile?!0:!!L.externalModuleIndicator}function Je(L,Fe){return re++,new V(L,Fe)}function ye(L,Fe,Et){L.flags|=Et,Fe.symbol=L,L.declarations=qh(L.declarations,Fe),Et&1955&&!L.exports&&(L.exports=Qs()),Et&6240&&!L.members&&(L.members=Qs()),L.constEnumOnlyModule&&L.flags&304&&(L.constEnumOnlyModule=!1),Et&111551&&ZP(L,Fe)}function ee(L){if(L.kind===278)return L.isExportEquals?"export=":"default";let Fe=Ss(L);if(Fe){if(pp(L)){let Et=R_(Fe);return Cg(L)?"__global":`"${Et}"`}if(Fe.kind===168){let Et=Fe.expression;if(s_(Et))return gc(Et.text);if(r8(Et))return ta(Et.operator)+Et.operand.text;w.fail("Only computed properties with literal names have declaration names")}if(zi(Fe)){let Et=cu(L);if(!Et)return;let Er=Et.symbol;return k6(Er,Fe.escapedText)}return lm(Fe)?N2(Fe):Bm(Fe)?aA(Fe):void 0}switch(L.kind){case 177:return"__constructor";case 185:case 180:case 324:return"__call";case 186:case 181:return"__new";case 182:return"__index";case 279:return"__export";case 308:return"export=";case 227:if(Hc(L)===2)return"export=";w.fail("Unknown binary declaration kind");break;case 318:return g2(L)?"__new":"__call";case 170:return w.assert(L.parent.kind===318,"Impossible parameter parent kind",()=>`parent is: ${w.formatSyntaxKind(L.parent.kind)}, expected JSDocFunctionType`),"arg"+L.parent.parameters.indexOf(L)}}function ge(L){return Vl(L)?To(L.name):Ai(w.checkDefined(ee(L)))}function ke(L,Fe,Et,Er,is,zs,os){w.assert(os||!ey(Et));let Ps=ri(Et,2048)||Xu(Et)&&xg(Et.name),rc=os?"__computed":Ps&&Fe?"default":ee(Et),_a;if(rc===void 0)_a=Je(0,"__missing");else if(_a=L.get(rc),Er&2885600&&ce.add(rc),!_a)L.set(rc,_a=Je(0,rc)),zs&&(_a.isReplaceableByMethod=!0);else{if(zs&&!_a.isReplaceableByMethod)return _a;if(_a.flags&is){if(_a.isReplaceableByMethod)L.set(rc,_a=Je(0,rc));else if(!(Er&3&&_a.flags&67108864)){Vl(Et)&&Ka(Et.name,Et);let eu=_a.flags&2?_.Cannot_redeclare_block_scoped_variable_0:_.Duplicate_identifier_0,jf=!0;(_a.flags&384||Er&384)&&(eu=_.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,jf=!1);let g_=!1;Dr(_a.declarations)&&(Ps||_a.declarations&&_a.declarations.length&&Et.kind===278&&!Et.isExportEquals)&&(eu=_.A_module_cannot_have_multiple_default_exports,jf=!1,g_=!0);let V_=[];gd(Et)&&xc(Et.type)&&ri(Et,32)&&_a.flags&2887656&&V_.push(ve(Et,_.Did_you_mean_0,`export type { ${Ai(Et.name.escapedText)} }`));let gy=Ss(Et)||Et;or(_a.declarations,(Mp,Og)=>{let gm=Ss(Mp)||Mp,Td=jf?ve(gm,eu,ge(Mp)):ve(gm,eu);e.bindDiagnostics.push(g_?Xs(Td,ve(gy,Og===0?_.Another_export_default_is_here:_.and_here)):Td),g_&&V_.push(ve(gm,_.The_first_export_default_is_here))});let gv=jf?ve(gy,eu,ge(Et)):ve(gy,eu);e.bindDiagnostics.push(Xs(gv,...V_)),_a=Je(0,rc)}}}return ye(_a,Et,Er),_a.parent?w.assert(_a.parent===Fe,"Existing symbol parent should match new one"):_a.parent=Fe,_a}function Oe(L,Fe,Et){let Er=!!(I0(L)&32)||nt(L);if(Fe&2097152)return L.kind===282||L.kind===272&&Er?ke(s.symbol.exports,s.symbol,L,Fe,Et):(w.assertNode(s,Tg),ke(s.locals,void 0,L,Fe,Et));if(fd(L)&&w.assert(dn(L)),!pp(L)&&(Er||s.flags&128)){if(!Tg(s)||!s.locals||ri(L,2048)&&!ee(L))return ke(s.symbol.exports,s.symbol,L,Fe,Et);let is=Fe&111551?1048576:0,zs=ke(s.locals,void 0,L,is,Et);return zs.exportSymbol=ke(s.symbol.exports,s.symbol,L,Fe,Et),L.localSymbol=zs,zs}else return w.assertNode(s,Tg),ke(s.locals,void 0,L,Fe,Et)}function nt(L){if(L.parent&&el(L)&&(L=L.parent),!fd(L))return!1;if(!_4(L)&&L.fullName)return!0;let Fe=Ss(L);return Fe?!!(N6(Fe.parent)&&U_(Fe.parent)||ql(Fe.parent)&&I0(Fe.parent)&32):!1}function ae(L,Fe){let Et=s,Er=o,is=c,zs=z;if(L.kind===220&&L.body.kind!==242&&(z=!0),Fe&1?(L.kind!==220&&(o=s),s=c=L,Fe&32&&(s.locals=Qs(),mr(s))):Fe&2&&(c=L,Fe&32&&(c.locals=void 0)),Fe&4){let os=h,Ps=S,rc=T,_a=x,eu=E,jf=O,g_=W,V_=Fe&16&&!ri(L,1024)&&!L.asteriskToken&&!!N0(L)||L.kind===176;V_||(h=Ng(2,void 0,void 0),Fe&144&&(h.node=L)),x=V_||L.kind===177||dn(L)&&(L.kind===263||L.kind===219)?qt():void 0,E=void 0,S=void 0,T=void 0,O=void 0,W=!1,Ie(L),L.flags&=-5633,!(h.flags&1)&&Fe&8&&ud(L.body)&&(L.flags|=512,W&&(L.flags|=1024),L.endFlowNode=h),L.kind===308&&(L.flags|=X,L.endFlowNode=h),x&&(At(x,h),h=_i(x),(L.kind===177||L.kind===176||dn(L)&&(L.kind===263||L.kind===219))&&(L.returnFlowNode=h)),V_||(h=os),S=Ps,T=rc,x=_a,E=eu,O=jf,W=g_}else Fe&64?(g=!1,Ie(L),w.assertNotNode(L,Be),L.flags=g?L.flags|256:L.flags&-257):Ie(L);z=zs,s=Et,o=Er,c=is}function Ue(L){te(L,Fe=>Fe.kind===263?Rr(Fe):void 0),te(L,Fe=>Fe.kind!==263?Rr(Fe):void 0)}function te(L,Fe=Rr){L!==void 0&&or(L,Fe)}function Ne(L){Ms(L,Rr,te)}function Ie(L){let Fe=_e;if(_e=!1,Wi(L)){$w(L)&&L.flowNode&&(L.flowNode=void 0),Ne(L),Di(L),_e=Fe;return}switch(L.kind>=244&&L.kind<=260&&(!t.allowUnreachableCode||L.kind===254)&&(L.flowNode=h),L.kind){case 248:oa(L);break;case 247:wr(L);break;case 249:Ds(L);break;case 250:case 251:tt(L);break;case 246:Mt(L);break;case 254:case 258:se(L);break;case 253:case 252:Ee(L);break;case 259:et(L);break;case 256:at(L);break;case 270:Pt(L);break;case 297:Le(L);break;case 245:kt(L);break;case 257:Rt(L);break;case 225:Ae(L);break;case 226:wt(L);break;case 227:if(Yy(L)){_e=Fe,fe(L);return}de(L);break;case 221:je(L);break;case 228:q(L);break;case 261:jt(L);break;case 212:case 213:ur(L);break;case 214:Nt(L);break;case 236:hr(L);break;case 347:case 339:case 341:Zr(L);break;case 352:Jr(L);break;case 308:{Ue(L.statements),Rr(L.endOfFileToken);break}case 242:case 269:Ue(L.statements);break;case 209:Ce(L);break;case 170:ut(L);break;case 211:case 210:case 304:case 231:_e=Fe;default:Ne(L);break}Di(L),_e=Fe}function xe(L){switch(L.kind){case 80:case 110:return!0;case 212:case 213:return St(L);case 214:return Bt(L);case 218:if(JS(L))return!1;case 236:return xe(L.expression);case 227:return Mr(L);case 225:return L.operator===54&&xe(L.operand);case 222:return xe(L.expression)}return!1}function Qe(L){switch(L.kind){case 80:case 110:case 108:case 237:return!0;case 212:case 218:case 236:return Qe(L.expression);case 213:return(s_(L.argumentExpression)||mo(L.argumentExpression))&&Qe(L.expression);case 227:return L.operatorToken.kind===28&&Qe(L.right)||ry(L.operatorToken.kind)&&Jp(L.left)}return!1}function St(L){return Qe(L)||$u(L)&&St(L.expression)}function Bt(L){if(L.arguments){for(let Fe of L.arguments)if(St(Fe))return!0}return!!(L.expression.kind===212&&St(L.expression.expression))}function fr(L,Fe){return dI(L)&&ft(L.expression)&&Ha(Fe)}function Mr(L){switch(L.operatorToken.kind){case 64:case 76:case 77:case 78:return St(L.left);case 35:case 36:case 37:case 38:let Fe=Qa(L.left),Et=Qa(L.right);return ft(Fe)||ft(Et)||fr(Et,Fe)||fr(Fe,Et)||LP(Et)&&xe(Fe)||LP(Fe)&&xe(Et);case 104:return ft(L.left);case 103:return xe(L.right);case 28:return xe(L.right)}return!1}function ft(L){switch(L.kind){case 218:return ft(L.expression);case 227:switch(L.operatorToken.kind){case 64:return ft(L.left);case 28:return ft(L.right)}}return St(L)}function qt(){return Ng(4,void 0,void 0)}function Hr(){return Ng(8,void 0,void 0)}function bi(L,Fe,Et){return Ng(1024,{target:L,antecedents:Fe},Et)}function us(L){L.flags|=L.flags&2048?4096:2048}function At(L,Fe){!(Fe.flags&1)&&!ws(L.antecedent,Fe)&&((L.antecedent||(L.antecedent=[])).push(Fe),us(Fe))}function Un(L,Fe,Et){return Fe.flags&1?Fe:Et?(Et.kind===112&&L&64||Et.kind===97&&L&32)&&!oF(Et)&&!LB(Et.parent)?oe:xe(Et)?(us(Fe),Ng(L,Et,Fe)):Fe:L&32?Fe:oe}function rs(L,Fe,Et,Er){return us(L),Ng(128,{switchStatement:Fe,clauseStart:Et,clauseEnd:Er},L)}function zn(L,Fe,Et){us(Fe),$=!0;let Er=Ng(L,Et,Fe);return E&&At(E,Er),Er}function Sn(L,Fe){return us(L),$=!0,Ng(512,Fe,L)}function _i(L){let Fe=L.antecedent;return Fe?Fe.length===1?Fe[0]:L:oe}function qe(L){let Fe=L.parent;switch(Fe.kind){case 246:case 248:case 247:return Fe.expression===L;case 249:case 228:return Fe.condition===L}return!1}function bt(L){for(;;)if(L.kind===218)L=L.expression;else if(L.kind===225&&L.operator===54)L=L.operand;else return A6(L)}function ar(L){return sG(Qa(L))}function tn(L){for(;Pp(L.parent)||V0(L.parent)&&L.parent.operator===54;)L=L.parent;return!qe(L)&&!bt(L.parent)&&!($u(L.parent)&&L.parent.expression===L)}function Xn(L,Fe,Et,Er){let is=I,zs=P;I=Et,P=Er,L(Fe),I=is,P=zs}function ei(L,Fe,Et){Xn(Rr,L,Fe,Et),(!L||!ar(L)&&!bt(L)&&!($u(L)&&MP(L)))&&(At(Fe,Un(32,h,L)),At(Et,Un(64,h,L)))}function Mi(L,Fe,Et){let Er=S,is=T;S=Fe,T=Et,Rr(L),S=Er,T=is}function js(L,Fe){let Et=O;for(;Et&&L.parent.kind===257;)Et.continueTarget=Fe,Et=Et.next,L=L.parent;return Fe}function oa(L){let Fe=js(L,Hr()),Et=qt(),Er=qt();At(Fe,h),h=Fe,ei(L.expression,Et,Er),h=_i(Et),Mi(L.statement,Er,Fe),At(Fe,h),h=_i(Er)}function wr(L){let Fe=Hr(),Et=js(L,qt()),Er=qt();At(Fe,h),h=Fe,Mi(L.statement,Er,Et),At(Et,h),h=_i(Et),ei(L.expression,Fe,Er),h=_i(Er)}function Ds(L){let Fe=js(L,Hr()),Et=qt(),Er=qt(),is=qt();Rr(L.initializer),At(Fe,h),h=Fe,ei(L.condition,Et,is),h=_i(Et),Mi(L.statement,is,Er),At(Er,h),h=_i(Er),Rr(L.incrementor),At(Fe,h),h=_i(is)}function tt(L){let Fe=js(L,Hr()),Et=qt();Rr(L.expression),At(Fe,h),h=Fe,L.kind===251&&Rr(L.awaitModifier),At(Et,h),Rr(L.initializer),L.initializer.kind!==262&&Gt(L.initializer),Mi(L.statement,Et,Fe),At(Fe,h),h=_i(Et)}function Mt(L){let Fe=qt(),Et=qt(),Er=qt();ei(L.expression,Fe,Et),h=_i(Fe),Rr(L.thenStatement),At(Er,h),h=_i(Et),Rr(L.elseStatement),At(Er,h),h=_i(Er)}function se(L){let Fe=z;z=!0,Rr(L.expression),z=Fe,L.kind===254&&(W=!0,x&&At(x,h)),h=oe,$=!0}function pt(L){for(let Fe=O;Fe;Fe=Fe.next)if(Fe.name===L)return Fe}function Z(L,Fe,Et){let Er=L.kind===253?Fe:Et;Er&&(At(Er,h),h=oe,$=!0)}function Ee(L){if(Rr(L.label),L.label){let Fe=pt(L.label.escapedText);Fe&&(Fe.referenced=!0,Z(L,Fe.breakTarget,Fe.continueTarget))}else Z(L,S,T)}function et(L){let Fe=x,Et=E,Er=qt(),is=qt(),zs=qt();if(L.finallyBlock&&(x=is),At(zs,h),E=zs,Rr(L.tryBlock),At(Er,h),L.catchClause&&(h=_i(zs),zs=qt(),At(zs,h),E=zs,Rr(L.catchClause),At(Er,h)),x=Fe,E=Et,L.finallyBlock){let os=qt();os.antecedent=Qi(Qi(Er.antecedent,zs.antecedent),is.antecedent),h=os,Rr(L.finallyBlock),h.flags&1?h=oe:(x&&is.antecedent&&At(x,bi(os,is.antecedent,h)),E&&zs.antecedent&&At(E,bi(os,zs.antecedent,h)),h=Er.antecedent?bi(os,Er.antecedent,h):oe)}else h=_i(Er)}function at(L){let Fe=qt();Rr(L.expression);let Et=S,Er=F;S=Fe,F=h,Rr(L.caseBlock),At(Fe,h);let is=or(L.caseBlock.clauses,zs=>zs.kind===298);L.possiblyExhaustive=!is&&!Fe.antecedent,is||At(Fe,rs(F,L,0,0)),S=Et,F=Er,h=_i(Fe)}function Pt(L){let Fe=L.clauses,Et=L.parent.expression.kind===112||xe(L.parent.expression),Er=oe;for(let is=0;is<Fe.length;is++){let zs=is;for(;!Fe[is].statements.length&&is+1<Fe.length;)Er===oe&&(h=F),Rr(Fe[is]),is++;let os=qt();At(os,Et?rs(F,L.parent,zs,is+1):F),At(os,Er),h=_i(os);let Ps=Fe[is];Rr(Ps),Er=h,!(h.flags&1)&&is!==Fe.length-1&&t.noFallthroughCasesInSwitch&&(Ps.fallthroughFlowNode=h)}}function Le(L){let Fe=h;h=F,Rr(L.expression),h=Fe,te(L.statements)}function kt(L){Rr(L.expression),Tt(L.expression)}function Tt(L){if(L.kind===214){let Fe=L;Fe.expression.kind!==108&&E6(Fe.expression)&&(h=Sn(h,Fe))}}function Rt(L){let Fe=qt();O={next:O,name:L.label.escapedText,breakTarget:Fe,continueTarget:void 0,referenced:!1},Rr(L.label),Rr(L.statement),!O.referenced&&!t.allowUnusedLabels&&Wr(ane(t),L.label,_.Unused_label),O=O.next,At(Fe,h),h=_i(Fe)}function Ye(L){L.kind===227&&L.operatorToken.kind===64?Gt(L.left):Gt(L)}function Gt(L){if(Qe(L))h=zn(16,h,L);else if(L.kind===210)for(let Fe of L.elements)Fe.kind===231?Gt(Fe.expression):Ye(Fe);else if(L.kind===211)for(let Fe of L.properties)Fe.kind===304?Ye(Fe.initializer):Fe.kind===305?Gt(Fe.name):Fe.kind===306&&Gt(Fe.expression)}function ln(L,Fe,Et){let Er=qt();L.operatorToken.kind===56||L.operatorToken.kind===77?ei(L.left,Er,Et):ei(L.left,Fe,Er),h=_i(Er),Rr(L.operatorToken),fA(L.operatorToken.kind)?(Xn(Rr,L.right,Fe,Et),Gt(L.left),At(Fe,Un(32,h,L)),At(Et,Un(64,h,L))):ei(L.right,Fe,Et)}function Ae(L){if(L.operator===54){let Fe=I;I=P,P=Fe,Ne(L),P=I,I=Fe}else Ne(L),(L.operator===46||L.operator===47)&&Gt(L.operand)}function wt(L){Ne(L),(L.operator===46||L.operator===47)&&Gt(L.operand)}function fe(L){_e?(_e=!1,Rr(L.operatorToken),Rr(L.right),_e=!0,Rr(L.left)):(_e=!0,Rr(L.left),_e=!1,Rr(L.operatorToken),Rr(L.right)),Gt(L.left)}function j(){return w7(L,Fe,Et,Er,is,void 0);function L(os,Ps){if(Ps){Ps.stackIndex++,Ka(os,i);let _a=U;ua(os);let eu=i;i=os,Ps.skip=!1,Ps.inStrictModeStack[Ps.stackIndex]=_a,Ps.parentStack[Ps.stackIndex]=eu}else Ps={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};let rc=os.operatorToken.kind;if(m8(rc)||fA(rc)){if(tn(os)){let _a=qt(),eu=h,jf=$;$=!1,ln(os,_a,_a),h=$?_i(_a):eu,$||($=jf)}else ln(os,I,P);Ps.skip=!0}return Ps}function Fe(os,Ps,rc){if(!Ps.skip){let _a=zs(os);return rc.operatorToken.kind===28&&Tt(os),_a}}function Et(os,Ps,rc){Ps.skip||Rr(os)}function Er(os,Ps,rc){if(!Ps.skip){let _a=zs(os);return rc.operatorToken.kind===28&&Tt(os),_a}}function is(os,Ps){if(!Ps.skip){let eu=os.operatorToken.kind;if(ry(eu)&&!vb(os)&&(Gt(os.left),eu===64&&os.left.kind===213)){let jf=os.left;ft(jf.expression)&&(h=zn(256,h,os))}}let rc=Ps.inStrictModeStack[Ps.stackIndex],_a=Ps.parentStack[Ps.stackIndex];rc!==void 0&&(U=rc),_a!==void 0&&(i=_a),Ps.skip=!1,Ps.stackIndex--}function zs(os){if(os&&vn(os)&&!Yy(os))return os;Rr(os)}}function je(L){Ne(L),L.expression.kind===212&&Gt(L.expression)}function q(L){let Fe=qt(),Et=qt(),Er=qt(),is=h,zs=$;$=!1,ei(L.condition,Fe,Et),h=_i(Fe),z&&(L.flowNodeWhenTrue=h),Rr(L.questionToken),Rr(L.whenTrue),At(Er,h),h=_i(Et),z&&(L.flowNodeWhenFalse=h),Rr(L.colonToken),Rr(L.whenFalse),At(Er,h),h=$?_i(Er):is,$||($=zs)}function vt(L){let Fe=Fl(L)?void 0:L.name;if(Ls(Fe))for(let Et of Fe.elements)vt(Et);else h=zn(16,h,L)}function jt(L){Ne(L),(L.initializer||KT(L.parent.parent))&&vt(L)}function Ce(L){Rr(L.dotDotDotToken),Rr(L.propertyName),Qt(L.initializer),Rr(L.name)}function ut(L){te(L.modifiers),Rr(L.dotDotDotToken),Rr(L.questionToken),Rr(L.type),Qt(L.initializer),Rr(L.name)}function Qt(L){if(!L)return;let Fe=h;if(Rr(L),Fe===oe||Fe===h)return;let Et=qt();At(Et,Fe),At(Et,h),h=_i(Et)}function Zr(L){Rr(L.tagName),L.kind!==341&&L.fullName&&(Ka(L.fullName,L),z0(L.fullName,!1)),typeof L.comment!="string"&&te(L.comment)}function jr(L){Ne(L);let Fe=O0(L);Fe&&Fe.kind!==175&&ye(Fe.symbol,Fe,32)}function Jr(L){Rr(L.tagName),Rr(L.moduleSpecifier),Rr(L.attributes),typeof L.comment!="string"&&te(L.comment)}function ct(L,Fe,Et){Xn(Rr,L,Fe,Et),(!$u(L)||MP(L))&&(At(Fe,Un(32,h,L)),At(Et,Un(64,h,L)))}function It(L){switch(L.kind){case 212:Rr(L.questionDotToken),Rr(L.name);break;case 213:Rr(L.questionDotToken),Rr(L.argumentExpression);break;case 214:Rr(L.questionDotToken),te(L.typeArguments),te(L.arguments);break}}function Ot(L,Fe,Et){let Er=NP(L)?qt():void 0;ct(L.expression,Er||Fe,Et),Er&&(h=_i(Er)),Xn(It,L,Fe,Et),MP(L)&&(At(Fe,Un(32,h,L)),At(Et,Un(64,h,L)))}function Ht(L){if(tn(L)){let Fe=qt(),Et=h,Er=$;Ot(L,Fe,Fe),h=$?_i(Fe):Et,$||($=Er)}else Ot(L,I,P)}function hr(L){$u(L)?Ht(L):Ne(L)}function ur(L){$u(L)?Ht(L):Ne(L)}function Nt(L){if($u(L))Ht(L);else{let Fe=Qa(L.expression);Fe.kind===219||Fe.kind===220?(te(L.typeArguments),te(L.arguments),Rr(L.expression)):(Ne(L),L.expression.kind===108&&(h=Sn(h,L)))}if(L.expression.kind===212){let Fe=L.expression;Be(Fe.name)&&ft(Fe.expression)&&zz(Fe.name)&&(h=zn(256,h,L))}}function mr(L){p&&(p.nextContainer=L),p=L}function Tr(L,Fe,Et){switch(s.kind){case 268:return Oe(L,Fe,Et);case 308:return rr(L,Fe,Et);case 232:case 264:return Cr(L,Fe,Et);case 267:return ke(s.symbol.exports,s.symbol,L,Fe,Et);case 188:case 323:case 211:case 265:case 293:return ke(s.symbol.members,s.symbol,L,Fe,Et);case 185:case 186:case 180:case 181:case 324:case 182:case 175:case 174:case 177:case 178:case 179:case 263:case 219:case 220:case 318:case 176:case 266:case 201:return s.locals&&w.assertNode(s,Tg),ke(s.locals,void 0,L,Fe,Et)}}function Cr(L,Fe,Et){return Ks(L)?ke(s.symbol.exports,s.symbol,L,Fe,Et):ke(s.symbol.members,s.symbol,L,Fe,Et)}function rr(L,Fe,Et){return Pl(e)?Oe(L,Fe,Et):ke(e.locals,void 0,L,Fe,Et)}function di(L){let Fe=Li(L)?L:Hn(L.body,Qm);return!!Fe&&Fe.statements.some(Et=>tl(Et)||Qo(Et))}function Vs(L){L.flags&33554432&&!di(L)?L.flags|=128:L.flags&=-129}function qs(L){if(Vs(L),pp(L))if(ri(L,32)&&Ut(L,_.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),pz(L))xs(L);else{let Fe;if(L.name.kind===11){let{text:Er}=L.name;Fe=P2(Er),Fe===void 0&&Ut(L.name,_.Pattern_0_can_have_at_most_one_Asterisk_character,Er)}let Et=Tr(L,512,110735);e.patternAmbientModules=Fr(e.patternAmbientModules,Fe&&!Is(Fe)?{pattern:Fe,symbol:Et}:void 0)}else{let Fe=xs(L);if(Fe!==0){let{symbol:Et}=L;Et.constEnumOnlyModule=!(Et.flags&304)&&Fe===2&&Et.constEnumOnlyModule!==!1}}}function xs(L){let Fe=ly(L),Et=Fe!==0;return Tr(L,Et?512:1024,Et?110735:0),Fe}function Dc(L){let Fe=Je(131072,ee(L));ye(Fe,L,131072);let Et=Je(2048,"__type");ye(Et,L,2048),Et.members=Qs(),Et.members.set(Fe.escapedName,Fe)}function vc(L){return Cs(L,4096,"__object")}function vo(L){return Cs(L,4096,"__jsxAttributes")}function Ki(L,Fe,Et){return Tr(L,Fe,Et)}function Cs(L,Fe,Et){let Er=Je(Fe,Et);return Fe&106508&&(Er.parent=s.symbol),ye(Er,L,Fe),Er}function ll(L,Fe,Et){switch(c.kind){case 268:Oe(L,Fe,Et);break;case 308:if(xf(s)){Oe(L,Fe,Et);break}default:w.assertNode(c,Tg),c.locals||(c.locals=Qs(),mr(c)),ke(c.locals,void 0,L,Fe,Et)}}function Lo(){if(!u)return;let L=s,Fe=p,Et=c,Er=i,is=h;for(let zs of u){let os=zs.parent.parent;s=EF(os)||e,c=nm(os)||e,h=Ng(2,void 0,void 0),i=zs,Rr(zs.typeExpression);let Ps=Ss(zs);if((_4(zs)||!zs.fullName)&&Ps&&N6(Ps.parent)){let rc=U_(Ps.parent);if(rc){Ff(e.symbol,Ps.parent,rc,!!vr(Ps,eu=>Ln(eu)&&eu.name.escapedText==="prototype"),!1);let _a=s;switch(f6(Ps.parent)){case 1:case 2:xf(e)?s=e:s=void 0;break;case 4:s=Ps.parent.expression;break;case 3:s=Ps.parent.expression.name;break;case 5:s=VS(e,Ps.parent.expression)?e:Ln(Ps.parent.expression)?Ps.parent.expression.name:Ps.parent.expression;break;case 0:return w.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}s&&Oe(zs,524288,788968),s=_a}}else _4(zs)||!zs.fullName||zs.fullName.kind===80?(i=zs.parent,ll(zs,524288,788968)):Rr(zs.fullName)}s=L,p=Fe,c=Et,i=Er,h=is}function fa(){if(d===void 0)return;let L=s,Fe=p,Et=c,Er=i,is=h;for(let zs of d){let os=kS(zs),Ps=os?EF(os):void 0,rc=os?nm(os):void 0;s=Ps||e,c=rc||e,h=Ng(2,void 0,void 0),i=zs,Rr(zs.importClause)}s=L,p=Fe,c=Et,i=Er,h=is}function Jc(L){if(!e.parseDiagnostics.length&&!(L.flags&33554432)&&!(L.flags&16777216)&&!gre(L)){let Fe=VT(L);if(Fe===void 0)return;U&&Fe>=119&&Fe<=127?e.bindDiagnostics.push(ve(L,d_(L),To(L))):Fe===135?Pl(e)&&zF(L)?e.bindDiagnostics.push(ve(L,_.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,To(L))):L.flags&65536&&e.bindDiagnostics.push(ve(L,_.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,To(L))):Fe===127&&L.flags&16384&&e.bindDiagnostics.push(ve(L,_.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,To(L)))}}function d_(L){return cu(L)?_.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?_.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:_.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function ys(L){L.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(ve(L,_.constructor_is_a_reserved_word,To(L))))}function Ys(L){U&&Jp(L.left)&&ry(L.operatorToken.kind)&&uo(L,L.left)}function Ga(L){U&&L.variableDeclaration&&uo(L,L.variableDeclaration.name)}function Fa(L){if(U&&L.expression.kind===80){let Fe=ZT(e,L.expression);e.bindDiagnostics.push(wl(e,Fe.start,Fe.length,_.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function $t(L){return Be(L)&&(L.escapedText==="eval"||L.escapedText==="arguments")}function uo(L,Fe){if(Fe&&Fe.kind===80){let Et=Fe;if($t(Et)){let Er=ZT(e,Fe);e.bindDiagnostics.push(wl(e,Er.start,Er.length,Mc(L),Fn(Et)))}}}function Mc(L){return cu(L)?_.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?_.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:_.Invalid_use_of_0_in_strict_mode}function rl(L){U&&!(L.flags&33554432)&&uo(L,L.name)}function Yl(L){return cu(L)?_.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?_.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:_.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5}function Ko(L){if(n<2&&c.kind!==308&&c.kind!==268&&!Mw(c)){let Fe=ZT(e,L);e.bindDiagnostics.push(wl(e,Fe.start,Fe.length,Yl(L)))}}function Rc(L){U&&uo(L,L.operand)}function N(L){U&&(L.operator===46||L.operator===47)&&uo(L,L.operand)}function We(L){U&&Ut(L,_.with_statements_are_not_allowed_in_strict_mode)}function dt(L){U&&xa(t)>=2&&(fte(L.statement)||Qc(L.statement))&&Ut(L.label,_.A_label_is_not_allowed_here)}function Ut(L,Fe,...Et){let Er=jm(e,L.pos);e.bindDiagnostics.push(wl(e,Er.start,Er.length,Fe,...Et))}function Wr(L,Fe,Et){Yn(L,Fe,Fe,Et)}function Yn(L,Fe,Et,Er){hn(L,{pos:mb(Fe,e),end:Et.end},Er)}function hn(L,Fe,Et){let Er=wl(e,Fe.pos,Fe.end-Fe.pos,Et);L?e.bindDiagnostics.push(Er):e.bindSuggestionDiagnostics=Fr(e.bindSuggestionDiagnostics,{...Er,category:2})}function Rr(L){if(!L)return;Ka(L,i),mn&&(L.tracingPath=e.path);let Fe=U;if(ua(L),L.kind>166){let Et=i;i=L;let Er=kU(L);Er===0?Ie(L):ae(L,Er),i=Et}else{let Et=i;L.kind===1&&(i=L),Di(L),i=Et}U=Fe}function Di(L){if(Hf(L))if(dn(L))for(let Fe of L.jsDoc)Rr(Fe);else for(let Fe of L.jsDoc)Ka(Fe,L),z0(Fe,!1)}function Ri(L){if(!U)for(let Fe of L){if(!Lm(Fe))return;if(so(Fe)){U=!0;return}}}function so(L){let Fe=hS(e,L.expression);return Fe==='"use strict"'||Fe==="'use strict'"}function ua(L){switch(L.kind){case 80:if(L.flags&4096){let os=L.parent;for(;os&&!fd(os);)os=os.parent;ll(os,524288,788968);break}case 110:return h&&(ht(L)||i.kind===305)&&(L.flowNode=h),Jc(L);case 167:h&&VF(L)&&(L.flowNode=h);break;case 237:case 108:L.flowNode=h;break;case 81:return ys(L);case 212:case 213:let Fe=L;h&&Qe(Fe)&&(Fe.flowNode=h),ore(Fe)&&bl(Fe),dn(Fe)&&e.commonJsModuleIndicator&&fh(Fe)&&!ej(c,"module")&&ke(e.locals,void 0,Fe.expression,134217729,111550);break;case 227:switch(Hc(L)){case 1:zt(L);break;case 2:Vr(L);break;case 3:Oc(L.left,L);break;case 6:zo(L);break;case 4:ja(L);break;case 5:let os=L.left.expression;if(dn(L)&&Be(os)){let Ps=ej(c,os.escapedText);if(GF(Ps?.valueDeclaration)){ja(L);break}}fu(L);break;case 0:break;default:w.fail("Unknown binary expression special property assignment kind")}return Ys(L);case 300:return Ga(L);case 221:return Fa(L);case 226:return Rc(L);case 225:return N(L);case 255:return We(L);case 257:return dt(L);case 198:g=!0;return;case 183:break;case 169:return $n(L);case 170:return ot(L);case 261:return ne(L);case 209:return L.flowNode=h,ne(L);case 173:case 172:return Xo(L);case 304:case 305:return Ar(L,4,0);case 307:return Ar(L,8,900095);case 180:case 181:case 182:return Tr(L,131072,0);case 175:case 174:return Ar(L,8192|(L.questionToken?16777216:0),pd(L)?0:103359);case 263:return Kt(L);case 177:return Tr(L,16384,0);case 178:return Ar(L,32768,46015);case 179:return Ar(L,65536,78783);case 185:case 318:case 324:case 186:return Dc(L);case 188:case 323:case 201:return ul(L);case 333:return jr(L);case 211:return vc(L);case 219:case 220:return er(L);case 214:switch(Hc(L)){case 7:return Xf(L);case 8:return Re(L);case 9:return bc(L);case 0:break;default:return w.fail("Unknown call expression assignment declaration kind")}dn(L)&&mm(L);break;case 232:case 264:return U=!0,m_(L);case 265:return ll(L,64,788872);case 266:return ll(L,524288,788968);case 267:return og(L);case 268:return qs(L);case 293:return vo(L);case 292:return Ki(L,4,0);case 272:case 275:case 277:case 282:return Tr(L,2097152,2097152);case 271:return Of(L);case 274:return Kf(L);case 279:return Cu(L);case 278:return Uc(L);case 308:return Ri(L.statements),Kc();case 242:if(!Mw(L.parent))return;case 269:return Ri(L.statements);case 342:if(L.parent.kind===324)return ot(L);if(L.parent.kind!==323)break;case 349:let is=L,zs=is.isBracketed||is.typeExpression&&is.typeExpression.type.kind===317?16777220:4;return Tr(is,zs,0);case 347:case 339:case 341:return(u||(u=[])).push(L);case 340:return Rr(L.typeExpression);case 352:return(d||(d=[])).push(L)}}function Xo(L){let Fe=Gp(L),Et=Fe?98304:4,Er=Fe?13247:0;return Ar(L,Et|(L.questionToken?16777216:0),Er)}function ul(L){return Cs(L,2048,"__type")}function Kc(){if(Vs(e),Pl(e))Eo();else if(M_(e)){Eo();let L=e.symbol;ke(e.symbol.exports,e.symbol,e,4,-1),e.symbol=L}}function Eo(){Cs(e,512,`"${dp(e.fileName)}"`)}function Uc(L){if(!s.symbol||!s.symbol.exports)Cs(L,111551,ee(L));else{let Fe=S6(L)?2097152:4,Et=ke(s.symbol.exports,s.symbol,L,Fe,-1);L.isExportEquals&&ZP(Et,L)}}function Of(L){_t(L.modifiers)&&e.bindDiagnostics.push(ve(L,_.Modifiers_cannot_appear_here));let Fe=Li(L.parent)?Pl(L.parent)?L.parent.isDeclarationFile?void 0:_.Global_module_exports_may_only_appear_in_declaration_files:_.Global_module_exports_may_only_appear_in_module_files:_.Global_module_exports_may_only_appear_at_top_level;Fe?e.bindDiagnostics.push(ve(L,Fe)):(e.symbol.globalExports=e.symbol.globalExports||Qs(),ke(e.symbol.globalExports,e.symbol,L,2097152,2097152))}function Cu(L){!s.symbol||!s.symbol.exports?Cs(L,8388608,ee(L)):L.exportClause?Ag(L.exportClause)&&(Ka(L.exportClause,L),ke(s.symbol.exports,s.symbol,L.exportClause,2097152,2097152)):ke(s.symbol.exports,s.symbol,L,8388608,0)}function Kf(L){L.name&&Tr(L,2097152,2097152)}function Xp(L){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=L,e.externalModuleIndicator||Eo()),!0)}function Re(L){if(!Xp(L))return;let Fe=Ll(L.arguments[0],void 0,(Et,Er)=>(Er&&ye(Er,Et,67110400),Er));Fe&&ke(Fe.exports,Fe,L,1048580,0)}function zt(L){if(!Xp(L))return;let Fe=Ll(L.left.expression,void 0,(Et,Er)=>(Er&&ye(Er,Et,67110400),Er));if(Fe){let Er=ZF(L.right)&&(rk(L.left.expression)||fh(L.left.expression))?2097152:1048580;Ka(L.left,L),ke(Fe.exports,Fe,L.left,Er,0)}}function Vr(L){if(!Xp(L))return;let Fe=u6(L.right);if(lG(Fe)||s===e&&VS(e,Fe))return;if(Sa(Fe)&&Fi(Fe.properties,Fu)){or(Fe.properties,ns);return}let Et=S6(L)?2097152:1049092,Er=ke(e.symbol.exports,e.symbol,L,Et|67108864,0);ZP(Er,L)}function ns(L){ke(e.symbol.exports,e.symbol,L,69206016,0)}function ja(L){if(w.assert(dn(L)),vn(L)&&Ln(L.left)&&zi(L.left.name)||Ln(L)&&zi(L.name))return;let Et=fp(L,!1,!1);switch(Et.kind){case 263:case 219:let Er=Et.symbol;if(vn(Et.parent)&&Et.parent.operatorToken.kind===64){let os=Et.parent.left;TS(os)&&Tb(os.expression)&&(Er=Yp(os.expression.expression,o))}Er&&Er.valueDeclaration&&(Er.members=Er.members||Qs(),ey(L)?La(L,Er,Er.members):ke(Er.members,Er,L,67108868,0),ye(Er,Er.valueDeclaration,32));break;case 177:case 173:case 175:case 178:case 179:case 176:let is=Et.parent,zs=Ks(Et)?is.symbol.exports:is.symbol.members;ey(L)?La(L,is.symbol,zs):ke(zs,is.symbol,L,67108868,0,!0);break;case 308:if(ey(L))break;Et.commonJsModuleIndicator?ke(Et.symbol.exports,Et.symbol,L,1048580,0):Tr(L,1,111550);break;case 268:break;default:w.failBadSyntaxKind(Et)}}function La(L,Fe,Et){ke(Et,Fe,L,4,0,!0,!0),Ca(L,Fe)}function Ca(L,Fe){Fe&&(Fe.assignmentDeclarationMembers||(Fe.assignmentDeclarationMembers=new Map)).set(qa(L),L)}function bl(L){L.expression.kind===110?ja(L):TS(L)&&L.parent.parent.kind===308&&(Tb(L.expression)?Oc(L,L.parent):Zl(L))}function zo(L){Ka(L.left,L),Ka(L.right,L),Rg(L.left.expression,L.left,!1,!0)}function bc(L){let Fe=Yp(L.arguments[0].expression);Fe&&Fe.valueDeclaration&&ye(Fe,Fe.valueDeclaration,32),hp(L,Fe,!0)}function Oc(L,Fe){let Et=L.expression,Er=Et.expression;Ka(Er,Et),Ka(Et,L),Ka(L,Fe),Rg(Er,L,!0,!0)}function Xf(L){let Fe=Yp(L.arguments[0]),Et=L.parent.parent.kind===308;Fe=Ff(Fe,L.arguments[0],Et,!1,!1),hp(L,Fe,!1)}function fu(L){var Fe;let Et=Yp(L.left.expression,c)||Yp(L.left.expression,s);if(!dn(L)&&!cre(Et))return;let Er=nI(L.left);if(!(Be(Er)&&((Fe=ej(s,Er.escapedText))==null?void 0:Fe.flags)&2097152))if(Ka(L.left,L),Ka(L.right,L),Be(L.left.expression)&&s===e&&VS(e,L.left.expression))zt(L);else if(ey(L)){Cs(L,67108868,"__computed");let is=Ff(Et,L.left.expression,U_(L.left),!1,!1);Ca(L,is)}else Zl(Zs(L.left,ik))}function Zl(L){w.assert(!Be(L)),Ka(L.expression,L),Rg(L.expression,L,!1,!1)}function Ff(L,Fe,Et,Er,is){return L?.flags&2097152||(Et&&!Er&&(L=Ll(Fe,L,(Ps,rc,_a)=>{if(rc)return ye(rc,Ps,67110400),rc;{let eu=_a?_a.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Qs());return ke(eu,_a,Ps,67110400,110735)}})),is&&L&&L.valueDeclaration&&ye(L,L.valueDeclaration,32)),L}function hp(L,Fe,Et){if(!Fe||!xh(Fe))return;let Er=Et?Fe.members||(Fe.members=Qs()):Fe.exports||(Fe.exports=Qs()),is=0,zs=0;yo(f2(L))?(is=8192,zs=103359):Ws(L)&&nk(L)&&(_t(L.arguments[2].properties,os=>{let Ps=Ss(os);return!!Ps&&Be(Ps)&&Fn(Ps)==="set"})&&(is|=65540,zs|=78783),_t(L.arguments[2].properties,os=>{let Ps=Ss(os);return!!Ps&&Be(Ps)&&Fn(Ps)==="get"})&&(is|=32772,zs|=46015)),is===0&&(is=4,zs=0),ke(Er,Fe,L,is|67108864,zs&-67108865)}function U_(L){return vn(L.parent)?Ch(L.parent).parent.kind===308:L.parent.parent.kind===308}function Rg(L,Fe,Et,Er){let is=Yp(L,c)||Yp(L,s),zs=U_(Fe);is=Ff(is,Fe.expression,zs,Et,Er),hp(Fe,is,Et)}function xh(L){if(L.flags&1072)return!0;let Fe=L.valueDeclaration;if(Fe&&Ws(Fe))return!!f2(Fe);let Et=Fe?li(Fe)?Fe.initializer:vn(Fe)?Fe.right:Ln(Fe)&&vn(Fe.parent)?Fe.parent.right:void 0:void 0;if(Et=Et&&u6(Et),Et){let Er=Tb(li(Fe)?Fe.name:vn(Fe)?Fe.left:Fe);return!!R0(vn(Et)&&(Et.operatorToken.kind===57||Et.operatorToken.kind===61)?Et.right:Et,Er)}return!1}function Ch(L){for(;vn(L.parent);)L=L.parent;return L.parent}function Yp(L,Fe=s){if(Be(L))return ej(Fe,L.escapedText);{let Et=Yp(L.expression);return Et&&Et.exports&&Et.exports.get(Zh(L))}}function Ll(L,Fe,Et){if(VS(e,L))return e.symbol;if(Be(L))return Et(L,Yp(L),Fe);{let Er=Ll(L.expression,Fe,Et),is=p6(L);return zi(is)&&w.fail("unexpected PrivateIdentifier"),Et(is,Er&&Er.exports&&Er.exports.get(Zh(L)),Er)}}function mm(L){!e.commonJsModuleIndicator&&Vp(L,!1)&&Xp(L)}function m_(L){if(L.kind===264)ll(L,32,899503);else{let is=L.name?L.name.escapedText:"__class";Cs(L,32,is),L.name&&ce.add(L.name.escapedText)}let{symbol:Fe}=L,Et=Je(4194308,"prototype"),Er=Fe.exports.get(Et.escapedName);Er&&(L.name&&Ka(L.name,L),e.bindDiagnostics.push(ve(Er.declarations[0],_.Duplicate_identifier_0,kc(Et)))),Fe.exports.set(Et.escapedName,Et),Et.parent=Fe}function og(L){return E0(L)?ll(L,128,899967):ll(L,256,899327)}function ne(L){if(U&&uo(L,L.name),!Ls(L.name)){let Fe=L.kind===261?L:L.parent.parent;dn(L)&&SS(Fe)&&!D0(L)&&!(I0(L)&32)?Tr(L,2097152,2097152):cz(L)?ll(L,2,111551):L0(L)?Tr(L,1,111551):Tr(L,1,111550)}}function ot(L){if(!(L.kind===342&&s.kind!==324)&&(U&&!(L.flags&33554432)&&uo(L,L.name),Ls(L.name)?Cs(L,1,"__"+L.parent.parameters.indexOf(L)):Tr(L,1,111551),Tf(L,L.parent))){let Fe=L.parent.parent;ke(Fe.symbol.members,Fe.symbol,L,4|(L.questionToken?16777216:0),0)}}function Kt(L){!e.isDeclarationFile&&!(L.flags&33554432)&&sA(L)&&(X|=4096),rl(L),U?(Ko(L),ll(L,16,110991)):Tr(L,16,110991)}function er(L){!e.isDeclarationFile&&!(L.flags&33554432)&&sA(L)&&(X|=4096),h&&(L.flowNode=h),rl(L);let Fe=L.name?L.name.escapedText:"__function";return Cs(L,16,Fe)}function Ar(L,Fe,Et){return!e.isDeclarationFile&&!(L.flags&33554432)&&sA(L)&&(X|=4096),h&&jF(L)&&(L.flowNode=h),ey(L)?Cs(L,Fe,"__computed"):Tr(L,Fe,Et)}function Qr(L){let Fe=vr(L,Et=>Et.parent&&jS(Et.parent)&&Et.parent.extendsType===Et);return Fe&&Fe.parent}function $n(L){if(hd(L.parent)){let Fe=YF(L.parent);Fe?(w.assertNode(Fe,Tg),Fe.locals??(Fe.locals=Qs()),ke(Fe.locals,void 0,L,262144,526824)):Tr(L,262144,526824)}else if(L.parent.kind===196){let Fe=Qr(L.parent);Fe?(w.assertNode(Fe,Tg),Fe.locals??(Fe.locals=Qs()),ke(Fe.locals,void 0,L,262144,526824)):Cs(L,262144,ee(L))}else Tr(L,262144,526824)}function fi(L){let Fe=ly(L);return Fe===1||Fe===2&&kb(t)}function Wi(L){if(!(h.flags&1))return!1;if(h===oe&&(BM(L)&&L.kind!==243||L.kind===264||OSe(L,t)||L.kind===268&&fi(L))&&(h=le,!t.allowUnreachableCode)){let Et=sne(t)&&!(L.flags&33554432)&&(!Qc(L)||!!(Kh(L.declarationList)&7)||L.declarationList.declarations.some(Er=>!!Er.initializer));MGe(L,t,(Er,is)=>Yn(Et,Er,is,_.Unreachable_code_detected))}return!0}}function OSe(e,t){return e.kind===267&&(!E0(e)||kb(t))}function MGe(e,t,n){if(Ei(e)&&i(e)&&Bs(e.parent)){let{statements:o}=e.parent,c=FG(o,e);DW(c,i,(p,u)=>n(c[p],c[u-1]))}else n(e,e);function i(o){return!Gc(o)&&!s(o)&&!(Qc(o)&&!(Kh(o)&7)&&o.declarationList.declarations.some(c=>!c.initializer))}function s(o){switch(o.kind){case 265:case 266:return!0;case 268:return ly(o)!==1;case 267:return!OSe(o,t);default:return!1}}}function VS(e,t){let n=0,i=pM();for(i.enqueue(t);!i.isEmpty()&&n<100;){if(n++,t=i.dequeue(),rk(t)||fh(t))return!0;if(Be(t)){let s=ej(e,t.escapedText);if(s&&s.valueDeclaration&&li(s.valueDeclaration)&&s.valueDeclaration.initializer){let o=s.valueDeclaration.initializer;i.enqueue(o),Hl(o,!0)&&(i.enqueue(o.left),i.enqueue(o.right))}}}return!1}function kU(e){switch(e.kind){case 232:case 264:case 267:case 211:case 188:case 323:case 293:return 1;case 265:return 65;case 268:case 266:case 201:case 182:return 33;case 308:return 37;case 178:case 179:case 175:if(jF(e))return 173;case 177:case 263:case 174:case 180:case 324:case 318:case 185:case 181:case 186:case 176:return 45;case 352:return 37;case 219:case 220:return 61;case 269:return 4;case 173:return e.initializer?4:0;case 300:case 249:case 250:case 251:case 270:return 34;case 242:return Fs(e.parent)||zc(e.parent)?0:34}return 0}function ej(e,t){var n,i,s,o;let c=(i=(n=Hn(e,Tg))==null?void 0:n.locals)==null?void 0:i.get(t);if(c)return c.exportSymbol??c;if(Li(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(rm(e))return(o=(s=e.symbol)==null?void 0:s.exports)==null?void 0:o.get(t)}function Xse(e,t,n,i,s,o,c,p,u,g){return d;function d(h=()=>!0){let S=[],T=[];return{walkType:_e=>{try{return x(_e),{visitedTypes:qx(S),visitedSymbols:qx(T)}}finally{sd(S),sd(T)}},walkSymbol:_e=>{try{return U(_e),{visitedTypes:qx(S),visitedSymbols:qx(T)}}finally{sd(S),sd(T)}}};function x(_e){if(!(!_e||S[_e.id]||(S[_e.id]=_e,U(_e.symbol)))){if(_e.flags&524288){let V=_e,ce=V.objectFlags;ce&4&&I(_e),ce&32&&W(_e),ce&3&&$(_e),ce&24&&X(V)}_e.flags&262144&&P(_e),_e.flags&3145728&&E(_e),_e.flags&4194304&&F(_e),_e.flags&8388608&&O(_e)}}function I(_e){x(_e.target),or(g(_e),x)}function P(_e){x(p(_e))}function E(_e){or(_e.types,x)}function F(_e){x(_e.type)}function O(_e){x(_e.objectType),x(_e.indexType),x(_e.constraint)}function W(_e){x(_e.typeParameter),x(_e.constraintType),x(_e.templateType),x(_e.modifiersType)}function z(_e){let re=t(_e);re&&x(re.type),or(_e.typeParameters,x);for(let V of _e.parameters)U(V);x(e(_e)),x(n(_e))}function $(_e){X(_e),or(_e.typeParameters,x),or(i(_e),x),x(_e.thisType)}function X(_e){let re=s(_e);for(let V of re.indexInfos)x(V.keyType),x(V.type);for(let V of re.callSignatures)z(V);for(let V of re.constructSignatures)z(V);for(let V of re.properties)U(V)}function U(_e){if(!_e)return!1;let re=sa(_e);if(T[re])return!1;if(T[re]=_e,!h(_e))return!0;let V=o(_e);return x(V),_e.exports&&_e.exports.forEach(U),or(_e.declarations,ce=>{if(ce.type&&ce.type.kind===187){let oe=ce.type,le=c(u(oe.exprName));U(le)}}),!1}}}var uy={};it(uy,{RelativePreference:()=>FSe,countPathComponents:()=>nj,forEachFileNameOfModule:()=>GSe,getLocalModuleSpecifierBetweenFileNames:()=>WGe,getModuleSpecifier:()=>FGe,getModuleSpecifierPreferences:()=>j4,getModuleSpecifiers:()=>WSe,getModuleSpecifiersWithCacheInfo:()=>BSe,getNodeModulesPackageName:()=>jGe,tryGetJSExtensionForFile:()=>CU,tryGetModuleSpecifiersFromCache:()=>LGe,tryGetRealFileNameForNonJsDeclarationFileName:()=>$Se,updateModuleSpecifier:()=>OGe});var RGe=Mm(e=>{try{let t=e.indexOf("/");if(t!==0)return new RegExp(e);let n=e.lastIndexOf("/");if(t===n)return new RegExp(e);for(;(t=e.indexOf("/",t+1))!==n;)if(e[t-1]!=="\\")return new RegExp(e);let i=e.substring(n+1).replace(/[^iu]/g,"");return e=e.substring(1,n),new RegExp(e,i)}catch{return}}),FSe=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(FSe||{});function j4({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t,autoImportSpecifierExcludeRegexes:n},i,s,o,c){let p=u();return{excludeRegexes:n,relativePreference:c!==void 0?Ul(c)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:g=>{let d=wU(o,i,s),h=g!==d?u(g):p,S=Ku(s);if((g??d)===99&&3<=S&&S<=99)return OI(s,o.fileName)?[3,2]:[2];if(Ku(s)===1)return h===2?[2,1]:[1,2];let T=OI(s,o.fileName);switch(h){case 2:return T?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return T?[1,0,3,2]:[1,0,2];case 0:return T?[0,1,3,2]:[0,1,2];default:w.assertNever(h)}}};function u(g){if(c!==void 0){if(gh(c))return 2;if(Bo(c,"/index"))return 1}return hne(t,g??wU(o,i,s),s,ph(o)?o:void 0)}}function OGe(e,t,n,i,s,o,c={}){let p=jSe(e,t,n,i,s,j4({},s,e,t,o),{},c);if(p!==o)return p}function FGe(e,t,n,i,s,o={}){return jSe(e,t,n,i,s,j4({},s,e,t),{},o)}function jGe(e,t,n,i,s,o={}){let c=rj(t.fileName,i),p=JSe(c,n,i,s,e,o);return fo(p,u=>eae(u,c,t,i,e,s,!0,o.overrideImportMode))}function jSe(e,t,n,i,s,o,c,p={}){let u=rj(n,s),g=JSe(u,i,s,c,e,p);return fo(g,d=>eae(d,u,t,s,e,c,void 0,p.overrideImportMode))||Yse(i,u,e,s,p.overrideImportMode||wU(t,s,e),o)}function LGe(e,t,n,i,s={}){let o=LSe(e,t,n,i,s);return o[1]&&{kind:o[0],moduleSpecifiers:o[1],computedWithoutCache:!1}}function LSe(e,t,n,i,s={}){var o;let c=JM(e);if(!c)return Ke;let p=(o=n.getModuleSpecifierCache)==null?void 0:o.call(n),u=p?.get(t.path,c.path,i,s);return[u?.kind,u?.moduleSpecifiers,c,u?.modulePaths,p]}function WSe(e,t,n,i,s,o,c={}){return BSe(e,t,n,i,s,o,c,!1).moduleSpecifiers}function BSe(e,t,n,i,s,o,c={},p){let u=!1,g=UGe(e,t);if(g)return{kind:"ambient",moduleSpecifiers:p&&tj(g,o.autoImportSpecifierExcludeRegexes)?Ke:[g],computedWithoutCache:u};let[d,h,S,T,x]=LSe(e,i,s,o,c);if(h)return{kind:d,moduleSpecifiers:h,computedWithoutCache:u};if(!S)return{kind:void 0,moduleSpecifiers:Ke,computedWithoutCache:u};u=!0,T||(T=USe(rj(i.fileName,s),S.originalFileName,s,n,c));let I=BGe(T,n,i,s,o,c,p);return x?.set(i.path,S.path,o,c,I.kind,T,I.moduleSpecifiers),I}function WGe(e,t,n,i,s,o={}){let c=rj(e.fileName,i),p=o.overrideImportMode??e.impliedNodeFormat;return Yse(t,c,n,i,p,j4(s,i,n,e))}function BGe(e,t,n,i,s,o={},c){let p=rj(n.fileName,i),u=j4(s,i,t,n),g=ph(n)&&or(e,I=>or(i.getFileIncludeReasons().get(So(I.path,i.getCurrentDirectory(),p.getCanonicalFileName)),P=>{if(P.kind!==3||P.file!==n.path)return;let E=i.getModeForResolutionAtIndex(n,P.index),F=o.overrideImportMode??i.getDefaultResolutionModeForFile(n);if(E!==F&&E!==void 0&&F!==void 0)return;let O=tR(n,P.index).text;return u.relativePreference!==1||!$f(O)?O:void 0}));if(g)return{kind:void 0,moduleSpecifiers:[g],computedWithoutCache:!0};let d=_t(e,I=>I.isInNodeModules),h,S,T,x;for(let I of e){let P=I.isInNodeModules?eae(I,p,n,i,t,s,void 0,o.overrideImportMode):void 0;if(P&&!(c&&tj(P,u.excludeRegexes))&&(h=Fr(h,P),I.isRedirect))return{kind:"node_modules",moduleSpecifiers:h,computedWithoutCache:!0};let E=Yse(I.path,p,t,i,o.overrideImportMode||n.impliedNodeFormat,u,I.isRedirect||!!P);!E||c&&tj(E,u.excludeRegexes)||(I.isRedirect?T=Fr(T,E):vB(E)?Ob(E)?x=Fr(x,E):S=Fr(S,E):(c||!d||I.isInNodeModules)&&(x=Fr(x,E)))}return S?.length?{kind:"paths",moduleSpecifiers:S,computedWithoutCache:!0}:T?.length?{kind:"redirect",moduleSpecifiers:T,computedWithoutCache:!0}:h?.length?{kind:"node_modules",moduleSpecifiers:h,computedWithoutCache:!0}:{kind:"relative",moduleSpecifiers:x??Ke,computedWithoutCache:!0}}function tj(e,t){return _t(t,n=>{var i;return!!((i=RGe(n))!=null&&i.test(e))})}function rj(e,t){e=as(e,t.getCurrentDirectory());let n=hu(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=ti(e);return{getCanonicalFileName:n,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:n(i)}}function Yse(e,t,n,i,s,{getAllowedEndingsInPreferredOrder:o,relativePreference:c,excludeRegexes:p},u){let{baseUrl:g,paths:d,rootDirs:h}=n;if(u&&!d)return;let{sourceDirectory:S,canonicalSourceDirectory:T,getCanonicalFileName:x}=t,I=o(s),P=h&&$Ge(h,e,S,x,I,n)||L4(GT(n_(S,e,x)),I,n);if(!g&&!d&&!B6(n)||c===0)return u?void 0:P;let E=as(l8(n,i)||g,i.getCurrentDirectory()),F=tae(e,E,x);if(!F)return u?void 0:P;let O=u?void 0:qGe(e,S,n,i,s,QGe(I)),W=u||O===void 0?d&&VSe(F,d,I,E,x,i,n):void 0;if(u)return W;let z=O??(W===void 0&&g!==void 0?L4(F,I,n):W);if(!z)return P;let $=tj(P,p),X=tj(z,p);if(!$&&X)return P;if($&&!X||c===1&&!$f(z))return z;if(c===3&&!$f(z)){let U=n.configFilePath?So(ti(n.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),_e=So(e,U,x),re=Zi(T,U),V=Zi(_e,U);if(re&&!V||!re&&V)return z;let ce=Zse(i,ti(_e)),oe=Zse(i,S),le=!ck(i);return zGe(ce,oe,le)?P:z}return HSe(z)||nj(P)<nj(z)?P:z}function zGe(e,t,n){return e===t?!0:e===void 0||t===void 0?!1:Hh(e,t,n)===0}function nj(e){let t=0;for(let n=Zi(e,"./")?2:0;n<e.length;n++)e.charCodeAt(n)===47&&t++;return t}function zSe(e,t){return C0(t.isRedirect,e.isRedirect)||q6(e.path,t.path)}function Zse(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):Eg(e,t,n=>e.fileExists(Jn(n,"package.json"))?n:void 0)}function GSe(e,t,n,i,s){var o,c;let p=ty(n),u=n.getCurrentDirectory(),g=n.isSourceOfProjectReferenceRedirect(t)?(o=n.getRedirectFromSourceFile(t))==null?void 0:o.outputDts:void 0,d=So(t,u,p),h=n.redirectTargetsMap.get(d)||Ke,T=[...g?[g]:Ke,t,...h].map(F=>as(F,u)),x=!Fi(T,PA);if(!i){let F=or(T,O=>!(x&&PA(O))&&s(O,g===O));if(F)return F}let I=(c=n.getSymlinkCache)==null?void 0:c.call(n).getSymlinkedDirectoriesByRealpath(),P=as(t,u);return I&&Eg(n,ti(P),F=>{let O=I.get(Ml(So(F,u,p)));if(O)return TB(e,F,p)?!1:or(T,W=>{if(!TB(W,F,p))return;let z=n_(F,W,p);for(let $ of O){let X=ib($,z),U=s(X,W===g);if(x=!0,U)return U}})})||(i?or(T,F=>x&&PA(F)?void 0:s(F,F===g)):void 0)}function JSe(e,t,n,i,s,o={}){var c;let p=So(e.importingSourceFileName,n.getCurrentDirectory(),ty(n)),u=So(t,n.getCurrentDirectory(),ty(n)),g=(c=n.getModuleSpecifierCache)==null?void 0:c.call(n);if(g){let h=g.get(p,u,i,o);if(h?.modulePaths)return h.modulePaths}let d=USe(e,t,n,s,o);return g&&g.setModulePaths(p,u,i,o,d),d}var GGe=["dependencies","peerDependencies","optionalDependencies"];function JGe(e){let t;for(let n of GGe){let i=e[n];i&&typeof i=="object"&&(t=Qi(t,Nm(i)))}return t}function USe(e,t,n,i,s){var o,c;let p=(o=n.getModuleResolutionCache)==null?void 0:o.call(n),u=(c=n.getSymlinkCache)==null?void 0:c.call(n);if(p&&u&&n.readFile&&!Ob(e.importingSourceFileName)){w.type(n);let S=iE(p.getPackageJsonInfoCache(),n,{}),T=sE(ti(e.importingSourceFileName),S);if(T){let x=JGe(T.contents.packageJsonContent);for(let I of x||Ke){let P=Pk(I,Jn(T.packageDirectory,"package.json"),i,n,p,void 0,s.overrideImportMode);u.setSymlinksFromResolution(P.resolvedModule)}}}let g=new Map,d=!1;GSe(e.importingSourceFileName,t,n,!0,(S,T)=>{let x=Ob(S);g.set(S,{path:e.getCanonicalFileName(S),isRedirect:T,isInNodeModules:x}),d=d||x});let h=[];for(let S=e.canonicalSourceDirectory;g.size!==0;){let T=Ml(S),x;g.forEach(({path:P,isRedirect:E,isInNodeModules:F},O)=>{Zi(P,T)&&((x||(x=[])).push({path:O,isRedirect:E,isInNodeModules:F}),g.delete(O))}),x&&(x.length>1&&x.sort(zSe),h.push(...x));let I=ti(S);if(I===S)break;S=I}if(g.size){let S=ds(g.entries(),([T,{isRedirect:x,isInNodeModules:I}])=>({path:T,isRedirect:x,isInNodeModules:I}));S.length>1&&S.sort(zSe),h.push(...S)}return h}function UGe(e,t){var n;let i=(n=e.declarations)==null?void 0:n.find(c=>uz(c)&&(!vS(c)||!Ul(R_(c.name))));if(i)return i.name.text;let o=Ji(e.declarations,c=>{var p,u,g,d;if(!el(c))return;let h=I(c);if(!((p=h?.parent)!=null&&p.parent&&Qm(h.parent)&&pp(h.parent.parent)&&Li(h.parent.parent.parent)))return;let S=(d=(g=(u=h.parent.parent.symbol.exports)==null?void 0:u.get("export="))==null?void 0:g.valueDeclaration)==null?void 0:d.expression;if(!S)return;let T=t.getSymbolAtLocation(S);if(!T)return;if((T?.flags&2097152?t.getAliasedSymbol(T):T)===c.symbol)return h.parent.parent;function I(P){for(;P.flags&8;)P=P.parent;return P}})[0];if(o)return o.name.text}function VSe(e,t,n,i,s,o,c){for(let u in t)for(let g of t[u]){let d=ra(g),h=tae(d,i,s)??d,S=h.indexOf("*"),T=n.map(x=>({ending:x,value:L4(e,[x],c)}));if(hh(h)&&T.push({ending:void 0,value:e}),S!==-1){let x=h.substring(0,S),I=h.substring(S+1);for(let{ending:P,value:E}of T)if(E.length>=x.length+I.length&&Zi(E,x)&&Bo(E,I)&&p({ending:P,value:E})){let F=E.substring(x.length,E.length-I.length);if(!$f(F))return fk(u,F)}}else if(_t(T,x=>x.ending!==0&&h===x.value)||_t(T,x=>x.ending===0&&h===x.value&&p(x)))return u}function p({ending:u,value:g}){return u!==0||g===L4(e,[u],c,o)}}function ij(e,t,n,i,s,o,c,p,u,g){if(typeof o=="string"){let d=!ck(t),h=()=>t.getCommonSourceDirectory(),S=u&&eV(n,e,d,h),T=u&&ZU(n,e,d,h),x=as(Jn(i,o),void 0),I=pk(n)?dp(n)+CU(n,e):void 0,P=g&&mne(n);switch(p){case 0:if(I&&Hh(I,x,d)===0||Hh(n,x,d)===0||S&&Hh(S,x,d)===0||T&&Hh(T,x,d)===0)return{moduleFileToTry:s};break;case 1:if(P&&A_(n,x,d)){let W=n_(x,n,!1);return{moduleFileToTry:as(Jn(Jn(s,o),W),void 0)}}if(I&&A_(x,I,d)){let W=n_(x,I,!1);return{moduleFileToTry:as(Jn(Jn(s,o),W),void 0)}}if(!P&&A_(x,n,d)){let W=n_(x,n,!1);return{moduleFileToTry:as(Jn(Jn(s,o),W),void 0)}}if(S&&A_(x,S,d)){let W=n_(x,S,!1);return{moduleFileToTry:Jn(s,W)}}if(T&&A_(x,T,d)){let W=HO(n_(x,T,!1),xU(T,e));return{moduleFileToTry:Jn(s,W)}}break;case 2:let E=x.indexOf("*"),F=x.slice(0,E),O=x.slice(E+1);if(P&&Zi(n,F,d)&&Bo(n,O,d)){let W=n.slice(F.length,n.length-O.length);return{moduleFileToTry:fk(s,W)}}if(I&&Zi(I,F,d)&&Bo(I,O,d)){let W=I.slice(F.length,I.length-O.length);return{moduleFileToTry:fk(s,W)}}if(!P&&Zi(n,F,d)&&Bo(n,O,d)){let W=n.slice(F.length,n.length-O.length);return{moduleFileToTry:fk(s,W)}}if(S&&Zi(S,F,d)&&Bo(S,O,d)){let W=S.slice(F.length,S.length-O.length);return{moduleFileToTry:fk(s,W)}}if(T&&Zi(T,F,d)&&Bo(T,O,d)){let W=T.slice(F.length,T.length-O.length),z=fk(s,W),$=CU(T,e);return $?{moduleFileToTry:HO(z,$)}:void 0}break}}else{if(Array.isArray(o))return or(o,d=>ij(e,t,n,i,s,d,c,p,u,g));if(typeof o=="object"&&o!==null){for(let d of Nm(o))if(d==="default"||c.indexOf(d)>=0||O4(c,d)){let h=o[d],S=ij(e,t,n,i,s,h,c,p,u,g);if(S)return S}}}}function VGe(e,t,n,i,s,o,c){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&Y7(o)?or(Nm(o),p=>{let u=as(Jn(s,p),void 0),g=Bo(p,"/")?1:p.includes("*")?2:0;return ij(e,t,n,i,u,o[p],c,g,!1,!1)}):ij(e,t,n,i,s,o,c,0,!1,!1)}function qGe(e,t,n,i,s,o){var c,p,u;if(!i.readFile||!B6(n))return;let g=Zse(i,t);if(!g)return;let d=Jn(g,"package.json"),h=(p=(c=i.getPackageJsonInfoCache)==null?void 0:c.call(i))==null?void 0:p.getPackageJsonInfo(d);if(Rse(h)||!i.fileExists(d))return;let S=h?.contents.packageJsonContent||R6(i.readFile(d)),T=S?.imports;if(!T)return;let x=Rb(n,s);return(u=or(Nm(T),I=>{if(!Zi(I,"#")||I==="#"||Zi(I,"#/"))return;let P=Bo(I,"/")?1:I.includes("*")?2:0;return ij(n,i,e,g,I,T[I],x,P,!0,o)}))==null?void 0:u.moduleFileToTry}function $Ge(e,t,n,i,s,o){let c=qSe(t,e,i);if(c===void 0)return;let p=qSe(n,e,i),u=Ma(p,d=>kr(c,h=>GT(n_(d,h,i)))),g=BW(u,q6);if(g)return L4(g,s,o)}function eae({path:e,isRedirect:t},{getCanonicalFileName:n,canonicalSourceDirectory:i},s,o,c,p,u,g){if(!o.fileExists||!o.readFile)return;let d=V8(e);if(!d)return;let S=j4(p,o,c,s).getAllowedEndingsInPreferredOrder(),T=e,x=!1;if(!u){let W=d.packageRootIndex,z;for(;;){let{moduleFileToTry:$,packageRootPath:X,blockedByExports:U,verbatimFromExports:_e}=O(W);if(Ku(c)!==1){if(U)return;if(_e)return $}if(X){T=X,x=!0;break}if(z||(z=$),W=e.indexOf(Ro,W+1),W===-1){T=L4(z,S,c,o);break}}}if(t&&!x)return;let I=o.getGlobalTypingsCacheLocation&&o.getGlobalTypingsCacheLocation(),P=n(T.substring(0,d.topLevelNodeModulesIndex));if(!(Zi(i,P)||I&&Zi(n(I),P)))return;let E=T.substring(d.topLevelPackageNameIndex+1),F=aE(E);return Ku(c)===1&&F===E?void 0:F;function O(W){var z,$;let X=e.substring(0,W),U=Jn(X,"package.json"),_e=e,re=!1,V=($=(z=o.getPackageJsonInfoCache)==null?void 0:z.call(o))==null?void 0:$.getPackageJsonInfo(U);if(H7(V)||V===void 0&&o.fileExists(U)){let ce=V?.contents.packageJsonContent||R6(o.readFile(U)),oe=g||wU(s,o,c);if(W6(c)){let ve=X.substring(d.topLevelPackageNameIndex+1),H=aE(ve),Se=Rb(c,oe),Je=ce?.exports?VGe(c,o,e,X,H,ce.exports,Se):void 0;if(Je)return{...Je,verbatimFromExports:!0};if(ce?.exports)return{moduleFileToTry:e,blockedByExports:!0}}let le=ce?.typesVersions?q7(ce.typesVersions):void 0;if(le){let ve=e.slice(X.length+1),H=VSe(ve,le.paths,S,X,n,o,c);H===void 0?re=!0:_e=Jn(X,H)}let de=ce?.typings||ce?.types||ce?.main||"index.js";if(Is(de)&&!(re&&OG(H6(le.paths),de))){let ve=So(de,X,n),H=n(_e);if(dp(ve)===dp(H))return{packageRootPath:X,moduleFileToTry:_e};if(ce?.type!=="module"&&!Bc(H,B8)&&Zi(H,ve)&&ti(H)===Vy(ve)&&dp(dl(H))==="index")return{packageRootPath:X,moduleFileToTry:_e}}}else{let ce=n(_e.substring(d.packageRootIndex+1));if(ce==="index.d.ts"||ce==="index.js"||ce==="index.ts"||ce==="index.tsx")return{moduleFileToTry:_e,packageRootPath:X}}return{moduleFileToTry:_e}}}function HGe(e,t){if(!e.fileExists)return;let n=ad(TA({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(let i of n){let s=t+i;if(e.fileExists(s))return s}}function qSe(e,t,n){return Ji(t,i=>{let s=tae(e,i,n);return s!==void 0&&HSe(s)?void 0:s})}function L4(e,t,n,i){if(Bc(e,[".json",".mjs",".cjs"]))return e;let s=dp(e);if(e===s)return e;let o=t.indexOf(2),c=t.indexOf(3);if(Bc(e,[".mts",".cts"])&&c!==-1&&c<o)return e;if(Bc(e,[".d.mts",".mts",".d.cts",".cts"]))return s+xU(e,n);if(!Bc(e,[".d.ts"])&&Bc(e,[".ts"])&&e.includes(".d."))return $Se(e);switch(t[0]){case 0:let p=Sw(s,"/index");return i&&p!==s&&HGe(i,p)?s:p;case 1:return s;case 2:return s+xU(e,n);case 3:if(Kl(e)){let u=t.findIndex(g=>g===0||g===1);return u!==-1&&u<o?s:s+xU(e,n)}return e;default:return w.assertNever(t[0])}}function $Se(e){let t=dl(e);if(!Bo(e,".ts")||!t.includes(".d.")||Bc(t,[".d.ts"]))return;let n=$6(e,".ts"),i=n.substring(n.lastIndexOf("."));return n.substring(0,n.indexOf(".d."))+i}function xU(e,t){return CU(e,t)??w.fail(`Extension ${xA(e)} is unsupported:: FileName:: ${e}`)}function CU(e,t){let n=hh(e);switch(n){case".ts":case".d.ts":return".js";case".tsx":return t.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return n;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}function tae(e,t,n){let i=Zx(t,e,t,n,!1);return Sf(i)?void 0:i}function HSe(e){return Zi(e,"..")}function wU(e,t,n){return ph(e)?t.getDefaultResolutionModeForFile(e):xj(e,n)}function QGe(e){let t=e.indexOf(3);return t>-1&&t<e.indexOf(2)}var rae=/^".+"$/,IU="(anonymous)",QSe=1,KSe=1,XSe=1,YSe=1,DU=(e=>(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(DU||{}),nae=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),PU=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(PU||{}),AU=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(AU||{}),KGe=FO(eTe,YGe),EU=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),ZSe=class{};function XGe(){this.flags=0}function qa(e){return e.id||(e.id=KSe,KSe++),e.id}function sa(e){return e.id||(e.id=QSe,QSe++),e.id}function NU(e,t){let n=ly(e);return n===1||t&&n===2}function iae(e){var t=[],n=r=>{t.push(r)},i,s,o=bu.getSymbolConstructor(),c=bu.getTypeConstructor(),p=bu.getSignatureConstructor(),u=0,g=0,d=0,h=0,S=0,T=0,x,I,P=!1,E=Qs(),F=[1],O=e.getCompilerOptions(),W=xa(O),z=_p(O),$=!!O.experimentalDecorators,X=z6(O),U=xG(O),_e=D2(O),re=Ru(O,"strictNullChecks"),V=Ru(O,"strictFunctionTypes"),ce=Ru(O,"strictBindCallApply"),oe=Ru(O,"strictPropertyInitialization"),le=Ru(O,"strictBuiltinIteratorReturn"),de=Ru(O,"noImplicitAny"),ve=Ru(O,"noImplicitThis"),H=Ru(O,"useUnknownInCatchVariables"),Se=O.exactOptionalPropertyTypes,Je=!!O.noUncheckedSideEffectImports,ye=j_t(),ee=Sht(),ge=AL(),ke=cce(O,ge.syntacticBuilderResolver),Oe=Rne({evaluateElementAccessExpression:pgt,evaluateEntityNameExpression:Z8e}),nt=Qs(),ae=wa(4,"undefined");ae.declarations=[];var Ue=wa(1536,"globalThis",8);Ue.exports=nt,Ue.declarations=[],nt.set(Ue.escapedName,Ue);var te=wa(4,"arguments"),Ne=wa(4,"require"),Ie=O.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",xe=!O.verbatimModuleSyntax,Qe,St,Bt=0,fr,Mr=0,ft=$G({compilerOptions:O,requireSymbol:Ne,argumentsSymbol:te,globals:nt,getSymbolOfDeclaration:wn,error:$e,getRequiresScopeChangeCache:pT,setRequiresScopeChangeCache:vD,lookup:du,onPropertyWithInvalidInitializer:iN,onFailedToResolveSymbol:Pn,onSuccessfullyResolvedSymbol:bp}),qt=$G({compilerOptions:O,requireSymbol:Ne,argumentsSymbol:te,globals:nt,getSymbolOfDeclaration:wn,error:$e,getRequiresScopeChangeCache:pT,setRequiresScopeChangeCache:vD,lookup:ift});let Hr={getNodeCount:()=>lp(e.getSourceFiles(),(r,a)=>r+a.nodeCount,0),getIdentifierCount:()=>lp(e.getSourceFiles(),(r,a)=>r+a.identifierCount,0),getSymbolCount:()=>lp(e.getSourceFiles(),(r,a)=>r+a.symbolCount,g),getTypeCount:()=>u,getInstantiationCount:()=>d,getRelationCacheSizes:()=>({assignable:Lu.size,identity:Wu.size,subtype:Lg.size,strictSubtype:Yo.size}),isUndefinedSymbol:r=>r===ae,isArgumentsSymbol:r=>r===te,isUnknownSymbol:r=>r===Z,getMergedSymbol:Ja,symbolIsValue:gr,getDiagnostics:o7e,getGlobalDiagnostics:Fgt,getRecursionIdentity:wK,getUnmatchedProperties:Nge,getTypeOfSymbolAtLocation:(r,a)=>{let l=As(a);return l?mut(r,l):Ye},getTypeOfSymbol:an,getSymbolsOfParameterPropertyDeclaration:(r,a)=>{let l=As(r,Gi);return l===void 0?w.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(w.assert(Tf(l,l.parent)),Yk(l,gc(a)))},getDeclaredTypeOfSymbol:No,getPropertiesOfType:ao,getPropertyOfType:(r,a)=>ca(r,gc(a)),getPrivateIdentifierPropertyOfType:(r,a,l)=>{let f=As(l);if(!f)return;let m=gc(a),y=x9(m,f);return y?cX(r,y):void 0},getTypeOfPropertyOfType:(r,a)=>lr(r,gc(a)),getIndexInfoOfType:(r,a)=>jh(r,a===0?ut:Qt),getIndexInfosOfType:zu,getIndexInfosOfIndexSymbol:rK,getSignaturesOfType:Gs,getIndexTypeOfType:(r,a)=>z1(r,a===0?ut:Qt),getIndexType:r=>mg(r),getBaseTypes:Qd,getBaseTypeOfLiteralType:Ry,getWidenedType:Uf,getWidenedLiteralType:H1,fillMissingTypeArguments:Ov,getTypeFromTypeNode:r=>{let a=As(r,yi);return a?Oi(a):Ye},getParameterType:Dm,getParameterIdentifierInfoAtPosition:Yft,getPromisedTypeOfPromise:oO,getAwaitedType:r=>cw(r),getReturnTypeOfSignature:Xa,isNullableType:k9,getNullableType:a9,getNonNullableType:Oy,getNonOptionalType:AK,getTypeArguments:Jo,typeToTypeNode:ge.typeToTypeNode,typePredicateToTypePredicateNode:ge.typePredicateToTypePredicateNode,indexInfoToIndexSignatureDeclaration:ge.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:ge.signatureToSignatureDeclaration,symbolToEntityName:ge.symbolToEntityName,symbolToExpression:ge.symbolToExpression,symbolToNode:ge.symbolToNode,symbolToTypeParameterDeclarations:ge.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:ge.symbolToParameterDeclaration,typeParameterToDeclaration:ge.typeParameterToDeclaration,getSymbolsInScope:(r,a)=>{let l=As(r);return l?jgt(l,a):[]},getSymbolAtLocation:r=>{let a=As(r);return a?rd(a,!0):void 0},getIndexInfosAtLocation:r=>{let a=As(r);return a?Vgt(a):void 0},getShorthandAssignmentValueSymbol:r=>{let a=As(r);return a?qgt(a):void 0},getExportSpecifierLocalTargetSymbol:r=>{let a=As(r,Xu);return a?$gt(a):void 0},getExportSymbolOfSymbol(r){return Ja(r.exportSymbol||r)},getTypeAtLocation:r=>{let a=As(r);return a?uw(a):Ye},getTypeOfAssignmentPattern:r=>{let a=As(r,WP);return a&&LX(a)||Ye},getPropertySymbolOfDestructuringAssignment:r=>{let a=As(r,Be);return a?Hgt(a):void 0},signatureToString:(r,a,l,f)=>i0(r,As(a),l,f),typeToString:(r,a,l)=>Yr(r,As(a),l),symbolToString:(r,a,l,f)=>Xi(r,As(a),l,f),typePredicateToString:(r,a,l)=>zg(r,As(a),l),writeSignature:(r,a,l,f,m,y,k,M)=>i0(r,As(a),l,f,m,y,k,M),writeType:(r,a,l,f,m,y,k)=>Yr(r,As(a),l,f,m,y,k),writeSymbol:(r,a,l,f,m)=>Xi(r,As(a),l,f,m),writeTypePredicate:(r,a,l,f)=>zg(r,As(a),l,f),getAugmentedPropertiesOfType:Sye,getRootSymbols:m7e,getSymbolOfExpando:dX,getContextualType:(r,a)=>{let l=As(r,ht);if(l)return a&4?Un(l,()=>Lp(l,a)):Lp(l,a)},getContextualTypeForObjectLiteralElement:r=>{let a=As(r,Xh);return a?che(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(r,a)=>{let l=As(r,mS);return l&&she(l,a)},getContextualTypeForJsxAttribute:r=>{let a=As(r,mF);return a&&AOe(a,void 0)},isContextSensitive:k_,getTypeOfPropertyOfContextualType:K1,getFullyQualifiedName:Cv,getResolvedSignature:(r,a,l)=>rs(r,a,l,0),getCandidateSignaturesForStringLiteralCompletions:us,getResolvedSignatureForSignatureHelp:(r,a,l)=>At(r,()=>rs(r,a,l,16)),getExpandedParameters:_4e,hasEffectiveRestParameter:Qg,containsArgumentsReference:xme,getConstantValue:r=>{let a=As(r,S7e);return a?zX(a):void 0},isValidPropertyAccess:(r,a)=>{let l=As(r,ste);return!!l&&oft(l,gc(a))},isValidPropertyAccessForCompletions:(r,a,l)=>{let f=As(r,Ln);return!!f&&oFe(f,a,l)},getSignatureFromDeclaration:r=>{let a=As(r,Fs);return a?T_(a):void 0},isImplementationOfOverload:r=>{let a=As(r,Fs);return a?v7e(a):void 0},getImmediateAliasedSymbol:tX,getAliasedSymbol:ru,getEmitResolver:nN,requiresAddingImplicitUndefined:K9,getExportsOfModule:WC,getExportsAndPropertiesOfModule:xD,forEachExportAndPropertyOfModule:BC,getSymbolWalker:Xse(Mat,X_,Xa,Qd,km,an,sp,jp,wp,Jo),getAmbientModules:lyt,getJsxIntrinsicTagNamesAt:zpt,isOptionalParameter:r=>{let a=As(r,Gi);return a?C3(a):!1},tryGetMemberInModuleExports:(r,a)=>ox(gc(r),a),tryGetMemberInModuleExportsAndProperties:(r,a)=>zC(gc(r),a),tryFindAmbientModule:r=>M4e(r,!0),getApparentType:Sp,getUnionType:ii,isTypeAssignableTo:$s,createAnonymousType:oc,createSignature:_g,createSymbol:wa,createIndexInfo:Lh,getAnyType:()=>Le,getStringType:()=>ut,getStringLiteralType:mf,getNumberType:()=>Qt,getNumberLiteralType:xm,getBigIntType:()=>Zr,getBigIntLiteralType:HL,getUnknownType:()=>wt,createPromiseType:M9,createArrayType:Gu,getElementTypeOfArrayType:s9,getBooleanType:()=>Ot,getFalseType:r=>r?jr:Jr,getTrueType:r=>r?ct:It,getVoidType:()=>hr,getUndefinedType:()=>fe,getNullType:()=>jt,getESSymbolType:()=>Ht,getNeverType:()=>ur,getNonPrimitiveType:()=>Cr,getOptionalType:()=>vt,getPromiseType:()=>GL(!1),getPromiseLikeType:()=>nRe(!1),getAnyAsyncIterableType:()=>{let r=JL(!1);if(r!==$t)return Dy(r,[Le,Le,Le])},isSymbolAccessible:n0,isArrayType:Z_,isTupleType:Aa,isArrayLikeType:Lv,isEmptyAnonymousObjectType:Hg,isTypeInvalidDueToUnionDiscriminant:dat,getExactOptionalProperties:Jct,getAllPossiblePropertiesOfTypes:mat,getSuggestedSymbolForNonexistentProperty:She,getSuggestedSymbolForNonexistentJSXAttribute:nFe,getSuggestedSymbolForNonexistentSymbol:(r,a,l)=>sFe(r,gc(a),l),getSuggestedSymbolForNonexistentModule:The,getSuggestedSymbolForNonexistentClassMember:rFe,getBaseConstraintOfType:wu,getDefaultFromTypeParameter:r=>r&&r.flags&262144?ST(r):void 0,resolveName(r,a,l,f){return ft(a,gc(r),l,void 0,!1,f)},getJsxNamespace:r=>Ai(Gd(r)),getJsxFragmentFactory:r=>{let a=wye(r);return a&&Ai(wp(a).escapedText)},getAccessibleSymbolChain:Dv,getTypePredicateOfSignature:X_,resolveExternalModuleName:r=>{let a=As(r,ht);return a&&np(a,a,!0)},resolveExternalModuleSymbol:df,tryGetThisTypeAt:(r,a,l)=>{let f=As(r);return f&&the(f,a,l)},getTypeArgumentConstraint:r=>{let a=As(r,yi);return a&&vdt(a)},getSuggestionDiagnostics:(r,a)=>{let l=As(r,Li)||w.fail("Could not determine parsed source file.");if(oI(l,O,e))return Ke;let f;try{return i=a,vye(l),w.assert(!!(Nn(l).flags&1)),f=Gn(f,Qk.getDiagnostics(l.fileName)),C8e(a7e(l),(m,y,k)=>{!l2(m)&&!s7e(y,!!(m.flags&33554432))&&(f||(f=[])).push({...k,category:2})}),f||Ke}finally{i=void 0}},runWithCancellationToken:(r,a)=>{try{return i=r,a(Hr)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:da,isDeclarationVisible:Gg,isPropertyAccessible:xhe,getTypeOnlyAliasDeclaration:vm,getMemberOverrideModifierStatus:egt,isTypeParameterPossiblyReferenced:XL,typeHasCallOrConstructSignatures:WX,getSymbolFlags:rf,getTypeArgumentsForResolvedSignature:bi,isLibType:ID};function bi(r){if(r.mapper!==void 0)return Ny((r.target||r).typeParameters,r.mapper)}function us(r,a){let l=new Set,f=[];Un(a,()=>rs(r,f,void 0,0));for(let m of f)l.add(m);f.length=0,At(a,()=>rs(r,f,void 0,0));for(let m of f)l.add(m);return ds(l)}function At(r,a){if(r=vr(r,$B),r){let l=[],f=[];for(;r;){let y=Nn(r);if(l.push([y,y.resolvedSignature]),y.resolvedSignature=void 0,Cb(r)){let k=Wn(wn(r)),M=k.type;f.push([k,M]),k.type=void 0}r=vr(r.parent,$B)}let m=a();for(let[y,k]of l)y.resolvedSignature=k;for(let[y,k]of f)y.type=k;return m}return a()}function Un(r,a){let l=vr(r,mS);if(l){let m=r;do Nn(m).skipDirectInference=!0,m=m.parent;while(m&&m!==l)}P=!0;let f=At(r,a);if(P=!1,l){let m=r;do Nn(m).skipDirectInference=void 0,m=m.parent;while(m&&m!==l)}return f}function rs(r,a,l,f){let m=As(r,mS);Qe=l;let y=m?qD(m,a,f):void 0;return Qe=void 0,y}var zn=new Map,Sn=new Map,_i=new Map,qe=new Map,bt=new Map,ar=new Map,tn=new Map,Xn=new Map,ei=new Map,Mi=new Map,js=new Map,oa=new Map,wr=new Map,Ds=new Map,tt=new Map,Mt=[],se=new Map,pt=new Set,Z=wa(4,"unknown"),Ee=wa(0,"__resolving__"),et=new Map,at=new Map,Pt=new Set,Le=ki(1,"any"),kt=ki(1,"any",262144,"auto"),Tt=ki(1,"any",void 0,"wildcard"),Rt=ki(1,"any",void 0,"blocked string"),Ye=ki(1,"error"),Gt=ki(1,"unresolved"),ln=ki(1,"any",65536,"non-inferrable"),Ae=ki(1,"intrinsic"),wt=ki(2,"unknown"),fe=ki(32768,"undefined"),j=re?fe:ki(32768,"undefined",65536,"widening"),je=ki(32768,"undefined",void 0,"missing"),q=Se?je:fe,vt=ki(32768,"undefined",void 0,"optional"),jt=ki(65536,"null"),Ce=re?jt:ki(65536,"null",65536,"widening"),ut=ki(4,"string"),Qt=ki(8,"number"),Zr=ki(64,"bigint"),jr=ki(512,"false",void 0,"fresh"),Jr=ki(512,"false"),ct=ki(512,"true",void 0,"fresh"),It=ki(512,"true");ct.regularType=It,ct.freshType=ct,It.regularType=It,It.freshType=ct,jr.regularType=Jr,jr.freshType=jr,Jr.regularType=Jr,Jr.freshType=jr;var Ot=ii([Jr,It]),Ht=ki(4096,"symbol"),hr=ki(16384,"void"),ur=ki(131072,"never"),Nt=ki(131072,"never",262144,"silent"),mr=ki(131072,"never",void 0,"implicit"),Tr=ki(131072,"never",void 0,"unreachable"),Cr=ki(67108864,"object"),rr=ii([ut,Qt]),di=ii([ut,Qt,Ht]),Vs=ii([Qt,Zr]),qs=ii([ut,Qt,Ot,Zr,jt,fe]),xs=Sx(["",""],[Qt]),Dc=KL(r=>r.flags&262144?mct(r):r,()=>"(restrictive mapper)"),vc=KL(r=>r.flags&262144?Tt:r,()=>"(permissive mapper)"),vo=ki(131072,"never",void 0,"unique literal"),Ki=KL(r=>r.flags&262144?vo:r,()=>"(unique literal mapper)"),Cs,ll=KL(r=>(Cs&&(r===Ko||r===Rc||r===N)&&Cs(!0),r),()=>"(unmeasurable reporter)"),Lo=KL(r=>(Cs&&(r===Ko||r===Rc||r===N)&&Cs(!1),r),()=>"(unreliable reporter)"),fa=oc(void 0,E,Ke,Ke,Ke),Jc=oc(void 0,E,Ke,Ke,Ke);Jc.objectFlags|=2048;var d_=oc(void 0,E,Ke,Ke,Ke);d_.objectFlags|=141440;var ys=wa(2048,"__type");ys.members=Qs();var Ys=oc(ys,E,Ke,Ke,Ke),Ga=oc(void 0,E,Ke,Ke,Ke),Fa=re?ii([fe,jt,Ga]):wt,$t=oc(void 0,E,Ke,Ke,Ke);$t.instantiations=new Map;var uo=oc(void 0,E,Ke,Ke,Ke);uo.objectFlags|=262144;var Mc=oc(void 0,E,Ke,Ke,Ke),rl=oc(void 0,E,Ke,Ke,Ke),Yl=oc(void 0,E,Ke,Ke,Ke),Ko=Op(),Rc=Op();Rc.constraint=Ko;var N=Op(),We=Op(),dt=Op();dt.constraint=We;var Ut=w3(1,"<<unresolved>>",0,Le),Wr=_g(void 0,void 0,void 0,Ke,Le,void 0,0,0),Yn=_g(void 0,void 0,void 0,Ke,Ye,void 0,0,0),hn=_g(void 0,void 0,void 0,Ke,Le,void 0,0,0),Rr=_g(void 0,void 0,void 0,Ke,Nt,void 0,0,0),Di=Lh(Qt,ut,!0),Ri=Lh(ut,Le,!1),so=new Map,ua={get yieldType(){return w.fail("Not supported")},get returnType(){return w.fail("Not supported")},get nextType(){return w.fail("Not supported")}},Xo=g0(Le,Le,Le),ul=g0(Nt,Nt,Nt),Kc={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Hat,getGlobalIterableType:JL,getGlobalIterableIteratorType:iRe,getGlobalIteratorObjectType:Kat,getGlobalGeneratorType:Xat,getGlobalBuiltinIteratorTypes:Qat,resolveIterationType:(r,a)=>cw(r,a,_.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:_.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:_.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:_.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Eo={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:Yat,getGlobalIterableType:uK,getGlobalIterableIteratorType:sRe,getGlobalIteratorObjectType:eot,getGlobalGeneratorType:tot,getGlobalBuiltinIteratorTypes:Zat,resolveIterationType:(r,a)=>r,mustHaveANextMethodDiagnostic:_.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:_.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:_.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Uc,Of=new Map,Cu=new Map,Kf,Xp,Re,zt,Vr,ns,ja,La,Ca,bl,zo,bc,Oc,Xf,fu,Zl,Ff,hp,U_,Rg,xh,Ch,Yp,Ll,mm,m_,og,ne,ot,Kt,er,Ar,Qr,$n,fi,Wi,L,Fe,Et,Er,is,zs,os,Ps,rc,_a,eu,jf,g_,V_,gy,gv,Mp,Og,gm,Td,Jb,Ve,lt,Jt,yr,Ur=new Map,Tn=0,zr=0,en=0,Ci=!1,ps=0,oi,fs,Bi,nc=[],Zp=[],kd=[],_u=0,xd=[],Lf=[],m1=[],cg=0,Fg=[],g1=[],jg=0,dD=mf(""),tN=xm(0),mD=HL({negative:!1,base10Value:"0"}),wh=[],h1=[],Uk=[],hv=0,Vk=!1,xC=0,rN=10,qk=[],CC=[],y1=[],gD=[],$k=[],wC=[],aT=[],Ub=[],IC=[],DC=[],oT=[],Vb=[],yv=[],hy=[],yy=[],vy=[],qb=[],v1=[],Hk=[],b1=0,Ba=lA(),Qk=lA(),hD=Bu(),by,Sy,Lg=new Map,Yo=new Map,Lu=new Map,ef=new Map,Wu=new Map,S1=new Map,yp=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",O.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Tht(),Hr;function Wg(r){return!Ln(r)||!Be(r.name)||!Ln(r.expression)&&!Be(r.expression)?!1:Be(r.expression)?Fn(r.expression)==="Symbol"&&sp(r.expression)===(jD("Symbol",1160127,void 0)||Z):Be(r.expression.expression)?Fn(r.expression.name)==="Symbol"&&Fn(r.expression.expression)==="globalThis"&&sp(r.expression.expression)===Ue:!1}function Rp(r){return r?tt.get(r):void 0}function Cd(r,a){return r&&tt.set(r,a),a}function Gd(r){if(r){let a=Nr(r);if(a)if(Wd(r)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;let l=a.pragmas.get("jsxfrag");if(l){let m=gs(l)?l[0]:l;if(a.localJsxFragmentFactory=Y2(m.arguments.factory,W),rt(a.localJsxFragmentFactory,k1,xp),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=wp(a.localJsxFragmentFactory).escapedText}let f=wye(r);if(f)return a.localJsxFragmentFactory=f,a.localJsxFragmentNamespace=wp(f).escapedText}else{let l=T1(a);if(l)return a.localJsxNamespace=l}}return by||(by="React",O.jsxFactory?(Sy=Y2(O.jsxFactory,W),rt(Sy,k1),Sy&&(by=wp(Sy).escapedText)):O.reactNamespace&&(by=gc(O.reactNamespace))),Sy||(Sy=A.createQualifiedName(A.createIdentifier(Ai(by)),"createElement")),by}function T1(r){if(r.localJsxNamespace)return r.localJsxNamespace;let a=r.pragmas.get("jsx");if(a){let l=gs(a)?a[0]:a;if(r.localJsxFactory=Y2(l.arguments.factory,W),rt(r.localJsxFactory,k1,xp),r.localJsxFactory)return r.localJsxNamespace=wp(r.localJsxFactory).escapedText}}function k1(r){return om(r,-1,-1),Pr(r,k1,void 0)}function nN(r,a,l){return l||o7e(r,a),ee}function yD(r,a,...l){let f=r?_n(r,a,...l):fc(a,...l),m=Ba.lookup(f);return m||(Ba.add(f),f)}function vv(r,a,l,...f){let m=$e(a,l,...f);return m.skippedOn=r,m}function cT(r,a,...l){return r?_n(r,a,...l):fc(a,...l)}function $e(r,a,...l){let f=cT(r,a,...l);return Ba.add(f),f}function Kk(r){let l=Nr(r).fileName;return Bc(l,[".cts",".cjs"])?_.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:_.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript}function Ih(r,a){r?Ba.add(a):Qk.add({...a,category:2})}function Jd(r,a,l,...f){if(a.pos<0||a.end<0){if(!r)return;let m=Nr(a);Ih(r,"message"in l?wl(m,0,0,l,...f):yz(m,l));return}Ih(r,"message"in l?_n(a,l,...f):uh(Nr(a),a,l))}function bv(r,a,l,...f){let m=$e(r,l,...f);if(a){let y=_n(r,_.Did_you_forget_to_use_await);Xs(m,y)}return m}function $b(r,a){let l=Array.isArray(r)?or(r,RB):RB(r);return l&&Xs(a,_n(l,_.The_declaration_was_marked_as_deprecated_here)),Qk.add(a),a}function vp(r){let a=Wl(r);return a&&Dr(r.declarations)>1?a.flags&64?_t(r.declarations,hm):Fi(r.declarations,hm):!!r.valueDeclaration&&hm(r.valueDeclaration)||Dr(r.declarations)&&Fi(r.declarations,hm)}function hm(r){return!!(MT(r)&536870912)}function wd(r,a,l){let f=_n(r,_._0_is_deprecated,l);return $b(a,f)}function x1(r,a,l,f){let m=l?_n(r,_.The_signature_0_of_1_is_deprecated,f,l):_n(r,_._0_is_deprecated,f);return $b(a,m)}function wa(r,a,l){g++;let f=new o(r|33554432,a);return f.links=new ZSe,f.links.checkFlags=l||0,f}function h_(r,a){let l=wa(1,r);return l.links.type=a,l}function Sv(r,a){let l=wa(4,r);return l.links.type=a,l}function Xk(r){let a=0;return r&2&&(a|=111551),r&1&&(a|=111550),r&4&&(a|=0),r&8&&(a|=900095),r&16&&(a|=110991),r&32&&(a|=899503),r&64&&(a|=788872),r&256&&(a|=899327),r&128&&(a|=899967),r&512&&(a|=110735),r&8192&&(a|=103359),r&32768&&(a|=46015),r&65536&&(a|=78783),r&262144&&(a|=526824),r&524288&&(a|=788968),r&2097152&&(a|=2097152),a}function Ty(r,a){a.mergeId||(a.mergeId=XSe,XSe++),qk[a.mergeId]=r}function lT(r){let a=wa(r.flags,r.escapedName);return a.declarations=r.declarations?r.declarations.slice():[],a.parent=r.parent,r.valueDeclaration&&(a.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),r.members&&(a.members=new Map(r.members)),r.exports&&(a.exports=new Map(r.exports)),Ty(a,r),a}function q_(r,a,l=!1){if(!(r.flags&Xk(a.flags))||(a.flags|r.flags)&67108864){if(a===r)return r;if(!(r.flags&33554432)){let y=nl(r);if(y===Z)return a;if(!(y.flags&Xk(a.flags))||(a.flags|y.flags)&67108864)r=lT(y);else return f(r,a),a}a.flags&512&&r.flags&512&&r.constEnumOnlyModule&&!a.constEnumOnlyModule&&(r.constEnumOnlyModule=!1),r.flags|=a.flags,a.valueDeclaration&&ZP(r,a.valueDeclaration),Gn(r.declarations,a.declarations),a.members&&(r.members||(r.members=Qs()),lg(r.members,a.members,l)),a.exports&&(r.exports||(r.exports=Qs()),lg(r.exports,a.exports,l,r)),l||Ty(r,a)}else r.flags&1024?r!==Ue&&$e(a.declarations&&Ss(a.declarations[0]),_.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Xi(r)):f(r,a);return r;function f(y,k){let M=!!(y.flags&384||k.flags&384),G=!!(y.flags&2||k.flags&2),J=M?_.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:G?_.Cannot_redeclare_block_scoped_variable_0:_.Duplicate_identifier_0,K=k.declarations&&Nr(k.declarations[0]),be=y.declarations&&Nr(y.declarations[0]),he=GP(K,O.checkJs),He=GP(be,O.checkJs),gt=Xi(k);if(K&&be&&Uc&&!M&&K!==be){let xt=Hh(K.path,be.path)===-1?K:be,Vt=xt===K?be:K,_r=pP(Uc,`${xt.path}|${Vt.path}`,()=>({firstFile:xt,secondFile:Vt,conflictingSymbols:new Map})),$r=pP(_r.conflictingSymbols,gt,()=>({isBlockScoped:G,firstFileLocations:[],secondFileLocations:[]}));he||m($r.firstFileLocations,k),He||m($r.secondFileLocations,y)}else he||Dh(k,J,gt,y),He||Dh(y,J,gt,k)}function m(y,k){if(k.declarations)for(let M of k.declarations)D_(y,M)}}function Dh(r,a,l,f){or(r.declarations,m=>{C1(m,a,l,f.declarations)})}function C1(r,a,l,f){let m=(R0(r,!1)?wz(r):Ss(r))||r,y=yD(m,a,l);for(let k of f||Ke){let M=(R0(k,!1)?wz(k):Ss(k))||k;if(M===m)continue;y.relatedInformation=y.relatedInformation||[];let G=_n(M,_._0_was_also_declared_here,l),J=_n(M,_.and_here);Dr(y.relatedInformation)>=5||_t(y.relatedInformation,K=>vA(K,J)===0||vA(K,G)===0)||Xs(y,Dr(y.relatedInformation)?J:G)}}function Tv(r,a){if(!r?.size)return a;if(!a?.size)return r;let l=Qs();return lg(l,r),lg(l,a),l}function lg(r,a,l=!1,f){a.forEach((m,y)=>{let k=r.get(y),M=k?q_(k,m,l):Ja(m);f&&k&&(M.parent=f),r.set(y,M)})}function uT(r){var a,l,f;let m=r.parent;if(((a=m.symbol.declarations)==null?void 0:a[0])!==m){w.assert(m.symbol.declarations.length>1);return}if(Cg(m))lg(nt,m.symbol.exports);else{let y=r.parent.parent.flags&33554432?void 0:_.Invalid_module_name_in_augmentation_module_0_cannot_be_found,k=_f(r,r,y,!1,!0);if(!k)return;if(k=df(k),k.flags&1920)if(_t(Xp,M=>k===M.symbol)){let M=q_(m.symbol,k,!0);Re||(Re=new Map),Re.set(r.text,M)}else{if((l=k.exports)!=null&&l.get("__export")&&((f=m.symbol.exports)!=null&&f.size)){let M=lme(k,"resolvedExports");for(let[G,J]of ds(m.symbol.exports.entries()))M.has(G)&&!k.exports.has(G)&&q_(M.get(G),J)}q_(k,m.symbol)}else $e(r,_.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,r.text)}}function w1(){let r=ae.escapedName,a=nt.get(r);a?or(a.declarations,l=>{A2(l)||Ba.add(_n(l,_.Declaration_name_conflicts_with_built_in_global_identifier_0,Ai(r)))}):nt.set(r,ae)}function Wn(r){if(r.flags&33554432)return r.links;let a=sa(r);return CC[a]??(CC[a]=new ZSe)}function Nn(r){let a=qa(r);return y1[a]||(y1[a]=new XGe)}function du(r,a,l){if(l){let f=Ja(r.get(a));if(f&&(f.flags&l||f.flags&2097152&&rf(f)&l))return f}}function Yk(r,a){let l=r.parent,f=r.parent.parent,m=du(l.locals,a,111551),y=du(Ug(f.symbol),a,111551);return m&&y?[m,y]:w.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function ky(r,a){let l=Nr(r),f=Nr(a),m=nm(r);if(l!==f){if(z&&(l.externalModuleIndicator||f.externalModuleIndicator)||!O.outFile||v2(a)||r.flags&33554432||k(a,r))return!0;let J=e.getSourceFiles();return J.indexOf(l)<=J.indexOf(f)}if(a.flags&16777216||v2(a)||Wge(a))return!0;if(r.pos<=a.pos&&!(hs(r)&&r6(a.parent)&&!r.initializer&&!r.exclamationToken)){if(r.kind===209){let J=j0(a,209);return J?vr(J,Da)!==vr(r,Da)||r.pos<J.pos:ky(j0(r,261),a)}else{if(r.kind===261)return!y(r,a);if(ni(r)){let J=vr(a,K=>K===r?"quit":na(K)?K.parent.parent===r:!$&&Il(K)&&(K.parent===r||hc(K.parent)&&K.parent.parent===r||EM(K.parent)&&K.parent.parent===r||hs(K.parent)&&K.parent.parent===r||Gi(K.parent)&&K.parent.parent.parent===r));return J?!$&&Il(J)?!!vr(a,K=>K===J?"quit":Fs(K)&&!N0(K)):!1:!0}else{if(hs(r))return!G(r,a,!1);if(Tf(r,r.parent))return!(U&&cu(r)===cu(a)&&k(a,r))}}return!0}if(a.parent.kind===282||a.parent.kind===278&&a.parent.isExportEquals||a.kind===278&&a.isExportEquals)return!0;if(k(a,r))return U&&cu(r)&&(hs(r)||Tf(r,r.parent))?!G(r,a,!0):!0;return!1;function y(J,K){switch(J.parent.parent.kind){case 244:case 249:case 251:if(Ud(K,J,m))return!0;break}let be=J.parent.parent;return KT(be)&&Ud(K,be.expression,m)}function k(J,K){return M(J,K)}function M(J,K){return!!vr(J,be=>{if(be===m)return"quit";if(Fs(be))return!N0(be);if(zc(be))return K.pos<J.pos;let he=Hn(be.parent,hs);if(he&&he.initializer===be){if(Ks(be.parent)){if(K.kind===175)return!0;if(hs(K)&&cu(J)===cu(K)){let xt=K.name;if(Be(xt)||zi(xt)){let Vt=an(wn(K)),_r=Mn(K.parent.members,zc);if(agt(xt,Vt,_r,K.parent.pos,be.pos))return!0}}}else if(!(K.kind===173&&!Ks(K))||cu(J)!==cu(K))return!0}let He=Hn(be.parent,Il);if(He&&He.expression===be){if(Gi(He.parent))return M(He.parent.parent.parent,K)?!0:"quit";if(hc(He.parent))return M(He.parent.parent,K)?!0:"quit"}return!1})}function G(J,K,be){return K.end>J.end?!1:vr(K,He=>{if(He===J)return"quit";switch(He.kind){case 220:return!0;case 173:return be&&(hs(J)&&He.parent===J.parent||Tf(J,J.parent)&&He.parent===J.parent.parent)?"quit":!0;case 242:switch(He.parent.kind){case 178:case 175:case 179:return!0;default:return!1}default:return!1}})===void 0}}function pT(r){return Nn(r).declarationRequiresScopeChange}function vD(r,a){Nn(r).declarationRequiresScopeChange=a}function iN(r,a,l,f){return U?!1:(r&&!f&&Zk(r,a,a)||$e(r,r&&l.type&&xM(l.type,r.pos)?_.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:_.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,To(l.name),ff(a)),!0)}function Pn(r,a,l,f){let m=Is(a)?a:a.escapedText;n(()=>{if(!r||r.parent.kind!==325&&!Zk(r,m,a)&&!Hb(r)&&!bD(r,m,l)&&!Bg(r,m)&&!Kb(r,m,l)&&!ym(r,m,l)&&!PC(r,m,l)){let y,k;if(a&&(k=rft(a),k&&$e(r,f,ff(a),k)),!k&&xC<rN&&(y=sFe(r,m,l),y?.valueDeclaration&&pp(y.valueDeclaration)&&Cg(y.valueDeclaration)&&(y=void 0),y)){let G=Xi(y),J=vhe(r,y,!1),K=l===1920||a&&typeof a!="string"&&ko(a)?_.Cannot_find_namespace_0_Did_you_mean_1:J?_.Could_not_find_name_0_Did_you_mean_1:_.Cannot_find_name_0_Did_you_mean_1,be=cT(r,K,ff(a),G);be.canonicalHead=Gte(f,ff(a)),Ih(!J,be),y.valueDeclaration&&Xs(be,_n(y.valueDeclaration,_._0_is_declared_here,G))}!y&&!k&&a&&$e(r,f,ff(a)),xC++}})}function bp(r,a,l,f,m,y){n(()=>{var k;let M=a.escapedName,G=f&&Li(f)&&xf(f);if(r&&(l&2||(l&32||l&384)&&(l&111551)===111551)){let J=yt(a);(J.flags&2||J.flags&32||J.flags&384)&&y_(J,r)}if(G&&(l&111551)===111551&&!(r.flags&16777216)){let J=Ja(a);Dr(J.declarations)&&Fi(J.declarations,K=>f4(K)||Li(K)&&!!K.symbol.globalExports)&&Jd(!O.allowUmdGlobalAccess,r,_._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Ai(M))}if(m&&!y&&(l&111551)===111551){let J=Ja(QQ(a)),K=zm(m);J===wn(m)?$e(r,_.Parameter_0_cannot_reference_itself,To(m.name)):J.valueDeclaration&&J.valueDeclaration.pos>m.pos&&K.parent.locals&&du(K.parent.locals,J.escapedName,l)===J&&$e(r,_.Parameter_0_cannot_reference_identifier_1_declared_after_it,To(m.name),To(r))}if(r&&l&111551&&a.flags&2097152&&!(a.flags&111551)&&!B0(r)){let J=vm(a,111551);if(J){let K=J.kind===282||J.kind===279||J.kind===281?_._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:_._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,be=Ai(M);Ts($e(r,K,be),J,be)}}if(O.isolatedModules&&a&&G&&(l&111551)===111551){let K=du(nt,M,l)===a&&Li(f)&&f.locals&&du(f.locals,M,-111552);if(K){let be=(k=K.declarations)==null?void 0:k.find(he=>he.kind===277||he.kind===274||he.kind===275||he.kind===272);be&&!Ew(be)&&$e(be,_.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Ai(M))}}})}function Ts(r,a,l){return a?Xs(r,_n(a,a.kind===282||a.kind===279||a.kind===281?_._0_was_exported_here:_._0_was_imported_here,l)):r}function ff(r){return Is(r)?Ai(r):To(r)}function Zk(r,a,l){if(!Be(r)||r.escapedText!==a||c7e(r)||v2(r))return!1;let f=fp(r,!1,!1),m=f;for(;m;){if(ni(m.parent)){let y=wn(m.parent);if(!y)break;let k=an(y);if(ca(k,a))return $e(r,_.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,ff(l),Xi(y)),!0;if(m===f&&!Ks(m)){let M=No(y).thisType;if(ca(M,a))return $e(r,_.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,ff(l)),!0}}m=m.parent}return!1}function Hb(r){let a=bn(r);return a&&Pc(a,64,!0)?($e(r,_.Cannot_extend_an_interface_0_Did_you_mean_implements,pc(a)),!0):!1}function bn(r){switch(r.kind){case 80:case 212:return r.parent?bn(r.parent):void 0;case 234:if(mo(r.expression))return r.expression;default:return}}function bD(r,a,l){let f=1920|(dn(r)?111551:0);if(l===f){let m=nl(ft(r,a,788968&~f,void 0,!1)),y=r.parent;if(m){if(Ip(y)){w.assert(y.left===r,"Should only be resolving left side of qualified name as a namespace");let k=y.right.escapedText;if(ca(No(m),k))return $e(y,_.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ai(a),Ai(k)),!0}return $e(r,_._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Ai(a)),!0}}return!1}function PC(r,a,l){if(l&788584){let f=nl(ft(r,a,111127,void 0,!1));if(f&&!(f.flags&1920))return $e(r,_._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Ai(a)),!0}return!1}function rp(r){return r==="any"||r==="string"||r==="number"||r==="boolean"||r==="never"||r==="unknown"}function Bg(r,a){return rp(a)&&r.parent.kind===282?($e(r,_.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function ym(r,a,l){if(l&111551){if(rp(a)){let y=r.parent.parent;if(y&&y.parent&&Af(y)){let k=y.token;y.parent.kind===265&&k===96?$e(r,_.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Ai(a)):ni(y.parent)&&k===96?$e(r,_.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Ai(a)):ni(y.parent)&&k===119&&$e(r,_.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Ai(a))}else $e(r,_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Ai(a));return!0}let f=nl(ft(r,a,788544,void 0,!1)),m=f&&rf(f);if(f&&m!==void 0&&!(m&111551)){let y=Ai(a);return ex(a)?$e(r,_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,y):Qb(r,f)?$e(r,_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,y,y==="K"?"P":"K"):$e(r,_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,y),!0}}return!1}function Qb(r,a){let l=vr(r.parent,f=>na(f)||mp(f)?!1:Dp(f)||"quit");if(l&&l.members.length===1){let f=No(a);return!!(f.flags&1048576)&&nO(f,384,!0)}return!1}function ex(r){switch(r){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function Kb(r,a,l){if(l&111127){if(nl(ft(r,a,1024,void 0,!1)))return $e(r,_.Cannot_use_namespace_0_as_a_value,Ai(a)),!0}else if(l&788544&&nl(ft(r,a,1536,void 0,!1)))return $e(r,_.Cannot_use_namespace_0_as_a_type,Ai(a)),!0;return!1}function y_(r,a){var l;if(w.assert(!!(r.flags&2||r.flags&32||r.flags&384)),r.flags&67108881&&r.flags&32)return;let f=(l=r.declarations)==null?void 0:l.find(m=>cz(m)||ni(m)||m.kind===267);if(f===void 0)return w.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(f.flags&33554432)&&!ky(f,a)){let m,y=To(Ss(f));r.flags&2?m=$e(a,_.Block_scoped_variable_0_used_before_its_declaration,y):r.flags&32?m=$e(a,_.Class_0_used_before_its_declaration,y):r.flags&256?m=$e(a,_.Enum_0_used_before_its_declaration,y):(w.assert(!!(r.flags&128)),md(O)&&(m=$e(a,_.Enum_0_used_before_its_declaration,y))),m&&Xs(m,_n(f,_._0_is_declared_here,y))}}function Ud(r,a,l){return!!a&&!!vr(r,f=>f===a||(f===l||Fs(f)&&(!N0(f)||Yc(f)&3)?"quit":!1))}function $_(r){switch(r.kind){case 272:return r;case 274:return r.parent;case 275:return r.parent.parent;case 277:return r.parent.parent.parent;default:return}}function tf(r){return r.declarations&&aS(r.declarations,kv)}function kv(r){return r.kind===272||r.kind===271||r.kind===274&&!!r.name||r.kind===275||r.kind===281||r.kind===277||r.kind===282||r.kind===278&&S6(r)||vn(r)&&Hc(r)===2&&S6(r)||Oo(r)&&vn(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===64&&I1(r.parent.right)||r.kind===305||r.kind===304&&I1(r.initializer)||r.kind===261&&SS(r)||r.kind===209&&SS(r.parent.parent)}function I1(r){return ZF(r)||Ao(r)&&yg(r)}function AC(r,a){let l=MC(r);if(l){let m=nI(l.expression).arguments[0];return Be(l.name)?nl(ca(R4e(m),l.name.escapedText)):void 0}if(li(r)||r.moduleReference.kind===284){let m=np(r,Cz(r)||QP(r)),y=df(m);if(y&&102<=z&&z<=199){let k=fT(y,"module.exports",r,a);if(k)return k}return H_(r,m,y,!1),y}let f=t0(r.moduleReference,a);return D1(r,f),f}function D1(r,a){if(H_(r,void 0,a,!1)&&!r.isTypeOnly){let l=vm(wn(r)),f=l.kind===282||l.kind===279,m=f?_.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:_.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,y=f?_._0_was_exported_here:_._0_was_imported_here,k=l.kind===279?"*":gb(l.name);Xs($e(r.moduleReference,m),_n(l,y,k))}}function Xb(r,a,l,f){let m=r.exports.get("export="),y=m?ca(an(m),a,!0):r.exports.get(a),k=nl(y,f);return H_(l,y,k,!1),k}function EC(r){return Qo(r)&&!r.isExportEquals||ri(r,2048)||Xu(r)||Ag(r)}function xy(r){return Ha(r)?e.getEmitSyntaxForUsageLocation(Nr(r),r):void 0}function ug(r,a){return r===99&&a===1}function Yb(r,a){if(100<=z&&z<=199&&xy(r)===99){a??(a=np(r,r,!0));let f=a&&JM(a);return f&&(M_(f)||P7(f.fileName)===".d.json.ts")}return!1}function P1(r,a,l,f){let m=r&&xy(f);if(r&&m!==void 0){let y=e.getImpliedNodeFormatForEmit(r);if(m===99&&y===1&&100<=z&&z<=199)return!0;if(m===99&&y===99)return!1}if(!_e)return!1;if(!r||r.isDeclarationFile){let y=Xb(a,"default",void 0,!0);return!(y&&_t(y.declarations,EC)||Xb(a,gc("__esModule"),void 0,l))}return Cp(r)?typeof r.externalModuleIndicator!="object"&&!Xb(a,gc("__esModule"),void 0,l):qd(a)}function xv(r,a){let l=np(r,r.parent.moduleSpecifier);if(l)return Zb(l,r,a)}function Zb(r,a,l){var f;let m=(f=r.declarations)==null?void 0:f.find(Li),y=Vd(a),k,M;if(qM(r))k=r;else if(m&&y&&102<=z&&z<=199&&xy(y)===1&&e.getImpliedNodeFormatForEmit(m)===99&&(M=Xb(r,"module.exports",a,l))){if(!Vm(O)){$e(a.name,_.Module_0_can_only_be_default_imported_using_the_1_flag,Xi(r),"esModuleInterop");return}return H_(a,M,void 0,!1),M}else k=Xb(r,"default",a,l);if(!y)return k;let G=Yb(y,r),J=P1(m,r,l,y);if(!k&&!J&&!G)if(qd(r)&&!_e){let K=z>=5?"allowSyntheticDefaultImports":"esModuleInterop",he=r.exports.get("export=").valueDeclaration,He=$e(a.name,_.Module_0_can_only_be_default_imported_using_the_1_flag,Xi(r),K);he&&Xs(He,_n(he,_.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,K))}else Ld(a)?Cy(r,a):tx(r,r,a,lb(a)&&a.propertyName||a.name);else if(J||G){let K=df(r,l)||nl(r,l);return H_(a,r,K,!1),K}return H_(a,k,void 0,!1),k}function Vd(r){switch(r.kind){case 274:return r.parent.moduleSpecifier;case 272:return ay(r.moduleReference)?r.moduleReference.expression:void 0;case 275:return r.parent.parent.moduleSpecifier;case 277:return r.parent.parent.parent.moduleSpecifier;case 282:return r.parent.parent.moduleSpecifier;default:return w.assertNever(r)}}function Cy(r,a){var l,f,m;if((l=r.exports)!=null&&l.has(a.symbol.escapedName))$e(a.name,_.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Xi(r),Xi(a.symbol));else{let y=$e(a.name,_.Module_0_has_no_default_export,Xi(r)),k=(f=r.exports)==null?void 0:f.get("__export");if(k){let M=(m=k.declarations)==null?void 0:m.find(G=>{var J,K;return!!(tl(G)&&G.moduleSpecifier&&((K=(J=np(G,G.moduleSpecifier))==null?void 0:J.exports)!=null&&K.has("default")))});M&&Xs(y,_n(M,_.export_Asterisk_does_not_re_export_a_default))}}}function Ph(r,a){let l=r.parent.parent.moduleSpecifier,f=np(r,l),m=Nh(f,l,a,!1);return H_(r,f,m,!1),m}function e0(r,a){let l=r.parent.moduleSpecifier,f=l&&np(r,l),m=l&&Nh(f,l,a,!1);return H_(r,f,m,!1),m}function tu(r,a){if(r===Z&&a===Z)return Z;if(r.flags&790504)return r;let l=wa(r.flags|a.flags,r.escapedName);return w.assert(r.declarations||a.declarations),l.declarations=oS(Qi(r.declarations,a.declarations),eb),l.parent=r.parent||a.parent,r.valueDeclaration&&(l.valueDeclaration=r.valueDeclaration),a.members&&(l.members=new Map(a.members)),r.exports&&(l.exports=new Map(r.exports)),l}function fT(r,a,l,f){var m;if(r.flags&1536){let y=Wf(r).get(a),k=nl(y,f),M=(m=Wn(r).typeOnlyExportStarMap)==null?void 0:m.get(a);return H_(l,y,k,!1,M,a),k}}function Ah(r,a){if(r.flags&3){let l=r.valueDeclaration.type;if(l)return nl(ca(Oi(l),a))}}function A1(r,a,l=!1){var f;let m=Cz(r)||r.moduleSpecifier,y=np(r,m),k=!Ln(a)&&a.propertyName||a.name;if(!Be(k)&&k.kind!==11)return;let M=yS(k),J=Nh(y,m,!1,M==="default"&&_e);if(J&&(M||k.kind===11)){if(qM(y))return y;let K;y&&y.exports&&y.exports.get("export=")?K=ca(an(J),M,!0):K=Ah(J,M),K=nl(K,l);let be=fT(J,M,a,l);if(be===void 0&&M==="default"){let He=(f=y.declarations)==null?void 0:f.find(Li);(Yb(m,y)||P1(He,y,l,m))&&(be=df(y,l)||nl(y,l))}let he=be&&K&&be!==K?tu(K,be):be||K;return lb(a)&&Yb(m,y)&&M!=="default"?$e(k,_.Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0,kw[z]):he||tx(y,J,r,k),he}}function tx(r,a,l,f){var m;let y=Cv(r,l),k=To(f),M=Be(f)?The(f,a):void 0;if(M!==void 0){let G=Xi(M),J=$e(f,_._0_has_no_exported_member_named_1_Did_you_mean_2,y,k,G);M.valueDeclaration&&Xs(J,_n(M.valueDeclaration,_._0_is_declared_here,G))}else(m=r.exports)!=null&&m.has("default")?$e(f,_.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,y,k):Eh(l,f,k,r,y)}function Eh(r,a,l,f,m){var y,k;let M=(k=(y=Hn(f.valueDeclaration,Tg))==null?void 0:y.locals)==null?void 0:k.get(yS(a)),G=f.exports;if(M){let J=G?.get("export=");if(J)pe(J,M)?SD(r,a,l,m):$e(a,_.Module_0_has_no_exported_member_1,m,l);else{let K=G?Bn(kme(G),he=>!!pe(he,M)):void 0,be=K?$e(a,_.Module_0_declares_1_locally_but_it_is_exported_as_2,m,l,Xi(K)):$e(a,_.Module_0_declares_1_locally_but_it_is_not_exported,m,l);M.declarations&&Xs(be,...kr(M.declarations,(he,He)=>_n(he,He===0?_._0_is_declared_here:_.and_here,l)))}}else $e(a,_.Module_0_has_no_exported_member_1,m,l)}function SD(r,a,l,f){if(z>=5){let m=Vm(O)?_._0_can_only_be_imported_by_using_a_default_import:_._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;$e(a,m,l)}else if(dn(r)){let m=Vm(O)?_._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:_._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;$e(a,m,l)}else{let m=Vm(O)?_._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:_._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;$e(a,m,l,l,f)}}function NC(r,a){if(gp(r)&&xg(r.propertyName||r.name)){let k=Vd(r),M=k&&np(r,k);if(M)return Zb(M,r,a)}let l=Da(r)?zm(r):r.parent.parent.parent,f=MC(l),m=A1(l,f||r,a),y=r.propertyName||r.name;return f&&m&&Be(y)?nl(ca(an(m),y.escapedText),a):(H_(r,void 0,m,!1),m)}function MC(r){if(li(r)&&r.initializer&&Ln(r.initializer))return r.initializer}function sN(r,a){if(rm(r.parent)){let l=df(r.parent.symbol,a);return H_(r,void 0,l,!1),l}}function RC(r,a,l){let f=r.propertyName||r.name;if(xg(f)){let y=Vd(r),k=y&&np(r,y);if(k)return Zb(k,r,!!l)}let m=r.parent.parent.moduleSpecifier?A1(r.parent.parent,r,l):f.kind===11?void 0:Pc(f,a,!1,l);return H_(r,void 0,m,!1),m}function E1(r,a){let l=Qo(r)?r.expression:r.right,f=wy(l,a);return H_(r,void 0,f,!1),f}function wy(r,a){if(Zc(r))return Ac(r).symbol;if(!xp(r)&&!mo(r))return;let l=Pc(r,901119,!0,a);return l||(Ac(r),Nn(r).resolvedSymbol)}function TD(r,a){if(vn(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===64)return wy(r.parent.right,a)}function N1(r,a=!1){switch(r.kind){case 272:case 261:return AC(r,a);case 274:return xv(r,a);case 275:return Ph(r,a);case 281:return e0(r,a);case 277:case 209:return NC(r,a);case 282:return RC(r,901119,a);case 278:case 227:return E1(r,a);case 271:return sN(r,a);case 305:return Pc(r.name,901119,!0,a);case 304:return wy(r.initializer,a);case 213:case 212:return TD(r,a);default:return w.fail()}}function rx(r,a=901119){return r?(r.flags&(2097152|a))===2097152||!!(r.flags&2097152&&r.flags&67108864):!1}function nl(r,a){return!a&&rx(r)?ru(r):r}function ru(r){w.assert((r.flags&2097152)!==0,"Should only get Alias here.");let a=Wn(r);if(a.aliasTarget)a.aliasTarget===Ee&&(a.aliasTarget=Z);else{a.aliasTarget=Ee;let l=tf(r);if(!l)return w.fail();let f=N1(l);a.aliasTarget===Ee?a.aliasTarget=f||Z:$e(l,_.Circular_definition_of_import_alias_0,Xi(r))}return a.aliasTarget}function OC(r){if(Wn(r).aliasTarget!==Ee)return ru(r)}function rf(r,a,l){let f=a&&vm(r),m=f&&tl(f),y=f&&(m?np(f.moduleSpecifier,f.moduleSpecifier,!0):ru(f.symbol)),k=m&&y?pg(y):void 0,M=l?0:r.flags,G;for(;r.flags&2097152;){let J=yt(ru(r));if(!m&&J===y||k?.get(J.escapedName)===J)break;if(J===Z)return-1;if(J===r||G?.has(J))break;J.flags&2097152&&(G?G.add(J):G=new Set([r,J])),M|=J.flags,r=J}return M}function H_(r,a,l,f,m,y){if(!r||Ln(r))return!1;let k=wn(r);if($y(r)){let G=Wn(k);return G.typeOnlyDeclaration=r,!0}if(m){let G=Wn(k);return G.typeOnlyDeclaration=m,k.escapedName!==y&&(G.typeOnlyExportStarName=y),!0}let M=Wn(k);return _T(M,a,f)||_T(M,l,f)}function _T(r,a,l){var f;if(a&&(r.typeOnlyDeclaration===void 0||l&&r.typeOnlyDeclaration===!1)){let m=((f=a.exports)==null?void 0:f.get("export="))??a,y=m.declarations&&Bn(m.declarations,$y);r.typeOnlyDeclaration=y??Wn(m).typeOnlyDeclaration??!1}return!!r.typeOnlyDeclaration}function vm(r,a){var l;if(!(r.flags&2097152))return;let f=Wn(r);if(f.typeOnlyDeclaration===void 0){f.typeOnlyDeclaration=!1;let m=nl(r);H_((l=r.declarations)==null?void 0:l[0],tf(r)&&tX(r),m,!0)}if(a===void 0)return f.typeOnlyDeclaration||void 0;if(f.typeOnlyDeclaration){let m=f.typeOnlyDeclaration.kind===279?nl(pg(f.typeOnlyDeclaration.symbol.parent).get(f.typeOnlyExportStarName||r.escapedName)):ru(f.typeOnlyDeclaration.symbol);return rf(m)&a?f.typeOnlyDeclaration:void 0}}function t0(r,a){return r.kind===80&&_A(r)&&(r=r.parent),r.kind===80||r.parent.kind===167?Pc(r,1920,!1,a):(w.assert(r.parent.kind===272),Pc(r,901119,!1,a))}function Cv(r,a){return r.parent?Cv(r.parent,a)+"."+Xi(r):Xi(r,a,void 0,36)}function FC(r){for(;Ip(r.parent);)r=r.parent;return r}function aN(r){let a=wp(r),l=ft(a,a,111551,void 0,!0);if(l){for(;Ip(a.parent);){let f=an(l);if(l=ca(f,a.parent.right.escapedText),!l)return;a=a.parent}return l}}function Pc(r,a,l,f,m){if(xc(r))return;let y=1920|(dn(r)?a&111551:0),k;if(r.kind===80){let M=a===y||ko(r)?_.Cannot_find_namespace_0:R3e(wp(r)),G=dn(r)&&!ko(r)?kD(r,a):void 0;if(k=Ja(ft(m||r,r,a,l||G?void 0:M,!0,!1)),!k)return Ja(G)}else if(r.kind===167||r.kind===212){let M=r.kind===167?r.left:r.expression,G=r.kind===167?r.right:r.name,J=Pc(M,y,l,!1,m);if(!J||xc(G))return;if(J===Z)return J;if(J.valueDeclaration&&dn(J.valueDeclaration)&&Ku(O)!==100&&li(J.valueDeclaration)&&J.valueDeclaration.initializer&&AFe(J.valueDeclaration.initializer)){let K=J.valueDeclaration.initializer.arguments[0],be=np(K,K);if(be){let he=df(be);he&&(J=he)}}if(k=Ja(du(Wf(J),G.escapedText,a)),!k&&J.flags&2097152&&(k=Ja(du(Wf(ru(J)),G.escapedText,a))),!k){if(!l){let K=Cv(J),be=To(G),he=The(G,J);if(he){$e(G,_._0_has_no_exported_member_named_1_Did_you_mean_2,K,be,Xi(he));return}let He=Ip(r)&&FC(r);if(zt&&a&788968&&He&&!dI(He.parent)&&aN(He)){$e(He,_._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,kf(He));return}if(a&1920&&Ip(r.parent)){let xt=Ja(du(Wf(J),G.escapedText,788968));if(xt){$e(r.parent.right,_.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Xi(xt),Ai(r.parent.right.escapedText));return}}$e(G,_.Namespace_0_has_no_exported_member_1,K,be)}return}}else w.assertNever(r,"Unknown entity name kind.");return!ko(r)&&xp(r)&&(k.flags&2097152||r.parent.kind===278)&&H_(Oz(r),k,void 0,!0),k.flags&a||f?k:ru(k)}function kD(r,a){if(oK(r.parent)){let l=nx(r.parent);if(l)return ft(l,r,a,void 0,!0)}}function nx(r){if(vr(r,m=>Rw(m)||m.flags&16777216?fd(m):"quit"))return;let l=kS(r);if(l&&Ql(l)&&_6(l.expression)){let m=wn(l.expression.left);if(m)return dT(m)}if(l&&Ao(l)&&_6(l.parent)&&Ql(l.parent.parent)){let m=wn(l.parent.left);if(m)return dT(m)}if(l&&(pd(l)||yl(l))&&vn(l.parent.parent)&&Hc(l.parent.parent)===6){let m=wn(l.parent.parent.left);if(m)return dT(m)}let f=F0(r);if(f&&Fs(f)){let m=wn(f);return m&&m.valueDeclaration}}function dT(r){let a=r.parent.valueDeclaration;return a?(XP(a)?f2(a):XT(a)?YP(a):void 0)||a:void 0}function jC(r){let a=r.valueDeclaration;if(!a||!dn(a)||r.flags&524288||R0(a,!1))return;let l=li(a)?YP(a):f2(a);if(l){let f=v_(l);if(f)return Nhe(f,r)}}function np(r,a,l){let m=Ku(O)===1?_.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:_.Cannot_find_module_0_or_its_corresponding_type_declarations;return _f(r,a,l?void 0:m,l)}function _f(r,a,l,f=!1,m=!1){return Ha(a)?ix(r,a.text,l,f?void 0:a,m):void 0}function ix(r,a,l,f,m=!1){var y,k,M,G,J,K,be,he,He,gt,xt,Vt;if(f&&Zi(a,"@types/")){let Pi=_.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Rs=dP(a,"@types/");$e(f,Pi,Rs,a)}let _r=M4e(a,!0);if(_r)return _r;let $r=Nr(r),on=Ha(r)?r:((y=el(r)?r:r.parent&&el(r.parent)&&r.parent.name===r?r.parent:void 0)==null?void 0:y.name)||((k=Yh(r)?r:void 0)==null?void 0:k.argument.literal)||(li(r)&&r.initializer&&Vp(r.initializer,!0)?r.initializer.arguments[0]:void 0)||((M=vr(r,Up))==null?void 0:M.arguments[0])||((G=vr(r,vf(ac,Zm,tl)))==null?void 0:G.moduleSpecifier)||((J=vr(r,M0))==null?void 0:J.moduleReference.expression),dr=on&&Ha(on)?e.getModeForUsageLocation($r,on):e.getDefaultResolutionModeForFile($r),pr=Ku(O),pn=(K=e.getResolvedModule($r,a,dr))==null?void 0:K.resolvedModule,si=f&&pn&&TV(O,pn,$r),$i=pn&&(!si||si===_.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(pn.resolvedFileName);if($i){if(si&&$e(f,si,a,pn.resolvedFileName),pn.resolvedUsingTsExtension&&Kl(a)){let Pi=((be=vr(r,ac))==null?void 0:be.importClause)||vr(r,vf(Dl,tl));(f&&Pi&&!Pi.isTypeOnly||vr(r,Up))&&$e(f,_.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Qn(w.checkDefined(y8(a))))}else if(pn.resolvedUsingTsExtension&&!OI(O,$r.fileName)){let Pi=((he=vr(r,ac))==null?void 0:he.importClause)||vr(r,vf(Dl,tl));if(f&&!(Pi?.isTypeOnly||vr(r,Hm))){let Rs=w.checkDefined(y8(a));$e(f,_.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Rs)}}else if(O.rewriteRelativeImportExtensions&&!(r.flags&33554432)&&!Kl(a)&&!Yh(r)&&!ete(r)){let Pi=m6(a,O);if(!pn.resolvedUsingTsExtension&&Pi)$e(f,_.This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0,Cw(as($r.fileName,e.getCurrentDirectory()),pn.resolvedFileName,ty(e)));else if(pn.resolvedUsingTsExtension&&!Pi&&wS($i,e))$e(f,_.This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path,Xx(a));else if(pn.resolvedUsingTsExtension&&Pi){let Rs=(He=e.getRedirectFromSourceFile($i.path))==null?void 0:He.resolvedRef;if(Rs){let Ya=!e.useCaseSensitiveFileNames(),es=e.getCommonSourceDirectory(),Zo=Mk(Rs.commandLine,Ya),jc=n_(es,Zo,Ya),ap=n_(O.outDir||es,Rs.commandLine.options.outDir||Zo,Ya);jc!==ap&&$e(f,_.This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files)}}}if($i.symbol){if(f&&pn.isExternalLibraryImport&&!kA(pn.extension)&&M1(!1,f,$r,dr,pn,a),f&&(z===100||z===101)){let Pi=$r.impliedNodeFormat===1&&!vr(r,Up)||!!vr(r,Dl),Rs=vr(r,Ya=>Hm(Ya)||tl(Ya)||ac(Ya)||Zm(Ya));if(Pi&&$i.impliedNodeFormat===99&&!Nne(Rs))if(vr(r,Dl))$e(f,_.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,a);else{let Ya,es=hh($r.fileName);(es===".ts"||es===".js"||es===".tsx"||es===".jsx")&&(Ya=rz($r));let Zo=Rs?.kind===273&&((gt=Rs.importClause)!=null&>.isTypeOnly)?_.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:Rs?.kind===206?_.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:_.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead;Ba.add(uh(Nr(f),f,Ns(Ya,Zo,a)))}}return Ja($i.symbol)}f&&l&&!HG(f)&&$e(f,_.File_0_is_not_a_module,$i.fileName);return}if(Xp){let Pi=UW(Xp,Rs=>Rs.pattern,a);if(Pi){let Rs=Re&&Re.get(a);return Ja(Rs||Pi.symbol)}}if(!f)return;if(pn&&!kA(pn.extension)&&si===void 0||si===_.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(m){let Pi=_.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;$e(f,Pi,a,pn.resolvedFileName)}else M1(de&&!!l,f,$r,dr,pn,a);return}if(l){if(pn){let Pi=e.getRedirectFromSourceFile(pn.resolvedFileName);if(Pi?.outputDts){$e(f,_.Output_file_0_has_not_been_built_from_source_file_1,Pi.outputDts,pn.resolvedFileName);return}}if(si)$e(f,si,a,pn.resolvedFileName);else{let Pi=$f(a)&&!xw(a),Rs=pr===3||pr===99;if(!ES(O)&&uc(a,".json")&&pr!==1&&D8(O))$e(f,_.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(dr===99&&Rs&&Pi){let Ya=as(a,ti($r.path)),es=(xt=yp.find(([Zo,jc])=>e.fileExists(Ya+Zo)))==null?void 0:xt[1];es?$e(f,_.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+es):$e(f,_.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if((Vt=e.getResolvedModule($r,a,dr))!=null&&Vt.alternateResult){let Ya=xF($r,e,a,dr,a);Jd(!0,f,Ns(Ya,l,a))}else $e(f,l,a)}}return;function Qn(Pi){let Rs=$6(a,Pi);if(G6(z)||dr===99){let Ya=Kl(a)&&OI(O);return Rs+(Pi===".mts"||Pi===".d.mts"?Ya?".mts":".mjs":Pi===".cts"||Pi===".d.mts"?Ya?".cts":".cjs":Ya?".ts":".js")}return Rs}}function M1(r,a,l,f,{packageId:m,resolvedFileName:y},k){if(HG(a))return;let M;!Ul(k)&&m&&(M=xF(l,e,k,f,m.name)),Jd(r,a,Ns(M,_.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,k,y))}function df(r,a){if(r?.exports){let l=nl(r.exports.get("export="),a),f=sx(Ja(l),Ja(r));return Ja(f)||r}}function sx(r,a){if(!r||r===Z||r===a||a.exports.size===1||r.flags&2097152)return r;let l=Wn(r);if(l.cjsExportMerged)return l.cjsExportMerged;let f=r.flags&33554432?r:lT(r);return f.flags=f.flags|512,f.exports===void 0&&(f.exports=Qs()),a.exports.forEach((m,y)=>{y!=="export="&&f.exports.set(y,f.exports.has(y)?q_(f.exports.get(y),m):m)}),f===r&&(Wn(f).resolvedExports=void 0,Wn(f).resolvedMembers=void 0),Wn(f).cjsExportMerged=f,l.cjsExportMerged=f}function Nh(r,a,l,f){var m;let y=df(r,l);if(!l&&y){if(!f&&!(y.flags&1539)&&!$o(y,308)){let G=z>=5?"allowSyntheticDefaultImports":"esModuleInterop";return $e(a,_.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,G),y}let k=a.parent,M=ac(k)&&qw(k);if(M||Up(k)){let G=Up(k)?k.arguments[0]:k.moduleSpecifier,J=an(y),K=DFe(J,y,r,G);if(K)return ax(y,K,k);let be=(m=r?.declarations)==null?void 0:m.find(Li),he=xy(G),He;if(M&&be&&102<=z&&z<=199&&he===1&&e.getImpliedNodeFormatForEmit(be)===99&&(He=Xb(y,"module.exports",M,l)))return!f&&!(y.flags&1539)&&$e(a,_.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,"esModuleInterop"),Vm(O)&&LC(J)?ax(He,J,k):He;let gt=be&&ug(he,e.getImpliedNodeFormatForEmit(be));if((Vm(O)||gt)&&(LC(J)||ca(J,"default",!0)||gt)){let xt=J.flags&3670016?PFe(J,y,r,G):Mhe(y,y.parent);return ax(y,xt,k)}}}return y}function LC(r){return _t(WL(r,0))||_t(WL(r,1))}function ax(r,a,l){let f=wa(r.flags,r.escapedName);f.declarations=r.declarations?r.declarations.slice():[],f.parent=r.parent,f.links.target=r,f.links.originatingImport=l,r.valueDeclaration&&(f.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(f.constEnumOnlyModule=!0),r.members&&(f.members=new Map(r.members)),r.exports&&(f.exports=new Map(r.exports));let m=km(a);return f.links.type=oc(f,m.members,Ke,Ke,m.indexInfos),f}function qd(r){return r.exports.get("export=")!==void 0}function WC(r){return kme(pg(r))}function xD(r){let a=WC(r),l=df(r);if(l!==r){let f=an(l);wv(f)&&Gn(a,ao(f))}return a}function BC(r,a){pg(r).forEach((m,y)=>{F1(y)||a(m,y)});let f=df(r);if(f!==r){let m=an(f);wv(m)&&_at(m,(y,k)=>{a(y,k)})}}function ox(r,a){let l=pg(a);if(l)return l.get(r)}function zC(r,a){let l=ox(r,a);if(l)return l;let f=df(a);if(f===a)return;let m=an(f);return wv(m)?ca(m,r):void 0}function wv(r){return!(r.flags&402784252||jn(r)&1||Z_(r)||Aa(r))}function Wf(r){return r.flags&6256?lme(r,"resolvedExports"):r.flags&1536?pg(r):r.exports||E}function pg(r){let a=Wn(r);if(!a.resolvedExports){let{exports:l,typeOnlyExportStarMap:f}=lx(r);a.resolvedExports=l,a.typeOnlyExportStarMap=f}return a.resolvedExports}function cx(r,a,l,f){a&&a.forEach((m,y)=>{if(y==="default")return;let k=r.get(y);if(!k)r.set(y,m),l&&f&&l.set(y,{specifierText:pc(f.moduleSpecifier)});else if(l&&f&&k&&nl(k)!==nl(m)){let M=l.get(y);M.exportsWithDuplicate?M.exportsWithDuplicate.push(f):M.exportsWithDuplicate=[f]}})}function lx(r){let a=[],l,f=new Set;r=df(r);let m=y(r)||E;return l&&f.forEach(k=>l.delete(k)),{exports:m,typeOnlyExportStarMap:l};function y(k,M,G){if(!G&&k?.exports&&k.exports.forEach((be,he)=>f.add(he)),!(k&&k.exports&&D_(a,k)))return;let J=new Map(k.exports),K=k.exports.get("__export");if(K){let be=Qs(),he=new Map;if(K.declarations)for(let He of K.declarations){let gt=np(He,He.moduleSpecifier),xt=y(gt,He,G||He.isTypeOnly);cx(be,xt,he,He)}he.forEach(({exportsWithDuplicate:He},gt)=>{if(!(gt==="export="||!(He&&He.length)||J.has(gt)))for(let xt of He)Ba.add(_n(xt,_.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,he.get(gt).specifierText,Ai(gt)))}),cx(J,be)}return M?.isTypeOnly&&(l??(l=new Map),J.forEach((be,he)=>l.set(he,M))),J}}function Ja(r){let a;return r&&r.mergeId&&(a=qk[r.mergeId])?a:r}function wn(r){return Ja(r.symbol&&QQ(r.symbol))}function v_(r){return rm(r)?wn(r):void 0}function Wl(r){return Ja(r.parent&&QQ(r.parent))}function R1(r){var a,l;return(((a=r.valueDeclaration)==null?void 0:a.kind)===220||((l=r.valueDeclaration)==null?void 0:l.kind)===219)&&v_(r.valueDeclaration.parent)||r}function ux(r,a){let l=Nr(a),f=qa(l),m=Wn(r),y;if(m.extendedContainersByFile&&(y=m.extendedContainersByFile.get(f)))return y;if(l&&l.imports){for(let M of l.imports){if(ko(M))continue;let G=np(a,M,!0);!G||!C(G,r)||(y=Fr(y,G))}if(Dr(y))return(m.extendedContainersByFile||(m.extendedContainersByFile=new Map)).set(f,y),y}if(m.extendedContainers)return m.extendedContainers;let k=e.getSourceFiles();for(let M of k){if(!Pl(M))continue;let G=wn(M);C(G,r)&&(y=Fr(y,G))}return m.extendedContainers=y||Ke}function mT(r,a,l){let f=Wl(r);if(f&&!(r.flags&262144))return G(f);let m=Ji(r.declarations,K=>{if(!pp(K)&&K.parent){if(hT(K.parent))return wn(K.parent);if(Qm(K.parent)&&K.parent.parent&&df(wn(K.parent.parent))===r)return wn(K.parent.parent)}if(Zc(K)&&vn(K.parent)&&K.parent.operatorToken.kind===64&&Oo(K.parent.left)&&mo(K.parent.left.expression))return fh(K.parent.left)||rk(K.parent.left.expression)?wn(Nr(K)):(Ac(K.parent.left.expression),Nn(K.parent.left.expression).resolvedSymbol)});if(!Dr(m))return;let y=Ji(m,K=>C(K,r)?K:void 0),k=[],M=[];for(let K of y){let[be,...he]=G(K);k=Fr(k,be),M=Gn(M,he)}return Qi(k,M);function G(K){let be=Ji(K.declarations,J),he=a&&ux(r,a),He=O1(K,l);if(a&&K.flags&$d(l)&&Dv(K,a,1920,!1))return Fr(Qi(Qi([K],be),he),He);let gt=!(K.flags&$d(l))&&K.flags&788968&&No(K).flags&524288&&l===111551?Iv(a,Vt=>Rl(Vt,_r=>{if(_r.flags&$d(l)&&an(_r)===No(K))return _r})):void 0,xt=gt?[gt,...be,K]:[...be,K];return xt=Fr(xt,He),xt=Gn(xt,he),xt}function J(K){return f&&px(K,f)}}function O1(r,a){let l=!!Dr(r.declarations)&&Ra(r.declarations);if(a&111551&&l&&l.parent&&li(l.parent)&&(Sa(l)&&l===l.parent.initializer||Dp(l)&&l===l.parent.type))return wn(l.parent)}function px(r,a){let l=_x(r),f=l&&l.exports&&l.exports.get("export=");return f&&pe(f,a)?l:void 0}function C(r,a){if(r===Wl(a))return a;let l=r.exports&&r.exports.get("export=");if(l&&pe(l,a))return r;let f=Wf(r),m=f.get(a.escapedName);return m&&pe(m,a)?m:Rl(f,y=>{if(pe(y,a))return y})}function pe(r,a){if(Ja(nl(Ja(r)))===Ja(nl(Ja(a))))return r}function yt(r){return Ja(r&&(r.flags&1048576)!==0&&r.exportSymbol||r)}function gr(r,a){return!!(r.flags&111551||r.flags&2097152&&rf(r,!a)&111551)}function ui(r){var a;let l=new c(Hr,r);return u++,l.id=u,(a=mn)==null||a.recordType(l),l}function xi(r,a){let l=ui(r);return l.symbol=a,l}function cs(r){return new c(Hr,r)}function ki(r,a,l=0,f){Pa(a,f);let m=ui(r);return m.intrinsicName=a,m.debugIntrinsicName=f,m.objectFlags=l|524288|2097152|33554432|16777216,m}function Pa(r,a){let l=`${r},${a??""}`;Pt.has(l)&&w.fail(`Duplicate intrinsic type name ${r}${a?` (${a})`:""}; you may need to pass a name to createIntrinsicType.`),Pt.add(l)}function il(r,a){let l=xi(524288,a);return l.objectFlags=r,l.members=void 0,l.properties=void 0,l.callSignatures=void 0,l.constructSignatures=void 0,l.indexInfos=void 0,l}function Bu(){return ii(ds(nae.keys(),mf))}function Op(r){return xi(262144,r)}function F1(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)!==95&&r.charCodeAt(2)!==64&&r.charCodeAt(2)!==35}function Fp(r){let a;return r.forEach((l,f)=>{r0(l,f)&&(a||(a=[])).push(l)}),a||Ke}function r0(r,a){return!F1(a)&&gr(r)}function GC(r){let a=Fp(r),l=tK(r);return l?Qi(a,[l]):a}function Id(r,a,l,f,m){let y=r;return y.members=a,y.properties=Ke,y.callSignatures=l,y.constructSignatures=f,y.indexInfos=m,a!==E&&(y.properties=Fp(a)),y}function oc(r,a,l,f,m){return Id(il(16,r),a,l,f,m)}function fx(r){if(r.constructSignatures.length===0)return r;if(r.objectTypeWithoutAbstractConstructSignatures)return r.objectTypeWithoutAbstractConstructSignatures;let a=Mn(r.constructSignatures,f=>!(f.flags&4));if(r.constructSignatures===a)return r;let l=oc(r.symbol,r.members,r.callSignatures,_t(a)?a:Ke,r.indexInfos);return r.objectTypeWithoutAbstractConstructSignatures=l,l.objectTypeWithoutAbstractConstructSignatures=l,l}function Iv(r,a){let l;for(let f=r;f;f=f.parent){if(Tg(f)&&f.locals&&!Qy(f)&&(l=a(f.locals,void 0,!0,f)))return l;switch(f.kind){case 308:if(!xf(f))break;case 268:let m=wn(f);if(l=a(m?.exports||E,void 0,!0,f))return l;break;case 264:case 232:case 265:let y;if((wn(f).members||E).forEach((k,M)=>{k.flags&788968&&(y||(y=Qs())).set(M,k)}),y&&(l=a(y,void 0,!1,f)))return l;break}}return a(nt,void 0,!0)}function $d(r){return r===111551?111551:1920}function Dv(r,a,l,f,m=new Map){if(!(r&&!DL(r)))return;let y=Wn(r),k=y.accessibleChainCache||(y.accessibleChainCache=new Map),M=Iv(a,(_r,$r,on,dr)=>dr),G=`${f?0:1}|${M?qa(M):0}|${l}`;if(k.has(G))return k.get(G);let J=sa(r),K=m.get(J);K||m.set(J,K=[]);let be=Iv(a,he);return k.set(G,be),be;function he(_r,$r,on){if(!D_(K,_r))return;let dr=xt(_r,$r,on);return K.pop(),dr}function He(_r,$r){return!gT(_r,a,$r)||!!Dv(_r.parent,a,$d($r),f,m)}function gt(_r,$r,on){return(r===($r||_r)||Ja(r)===Ja($r||_r))&&!_t(_r.declarations,hT)&&(on||He(Ja(_r),l))}function xt(_r,$r,on){return gt(_r.get(r.escapedName),void 0,$r)?[r]:Rl(_r,pr=>{if(pr.flags&2097152&&pr.escapedName!=="export="&&pr.escapedName!=="default"&&!(T8(pr)&&a&&Pl(Nr(a)))&&(!f||_t(pr.declarations,M0))&&(!on||!_t(pr.declarations,nre))&&($r||!$o(pr,282))){let pn=ru(pr),si=Vt(pr,pn,$r);if(si)return si}if(pr.escapedName===r.escapedName&&pr.exportSymbol&>(Ja(pr.exportSymbol),void 0,$r))return[r]})||(_r===nt?Vt(Ue,Ue,$r):void 0)}function Vt(_r,$r,on){if(gt(_r,$r,on))return[_r];let dr=Wf($r),pr=dr&&he(dr,!0);if(pr&&He(_r,$d(l)))return[_r].concat(pr)}}function gT(r,a,l){let f=!1;return Iv(a,m=>{let y=Ja(m.get(r.escapedName));if(!y)return!1;if(y===r)return!0;let k=y.flags&2097152&&!$o(y,282);return y=k?ru(y):y,(k?rf(y):y.flags)&l?(f=!0,!0):!1}),f}function DL(r){if(r.declarations&&r.declarations.length){for(let a of r.declarations)switch(a.kind){case 173:case 175:case 178:case 179:continue;default:return!1}return!0}return!1}function oN(r,a){return UC(r,a,788968,!1,!0).accessibility===0}function JC(r,a){return UC(r,a,111551,!1,!0).accessibility===0}function cN(r,a,l){return UC(r,a,l,!1,!1).accessibility===0}function m3(r,a,l,f,m,y){if(!Dr(r))return;let k,M=!1;for(let G of r){let J=Dv(G,a,f,!1);if(J){k=G;let he=dx(J[0],m);if(he)return he}if(y&&_t(G.declarations,hT)){if(m){M=!0;continue}return{accessibility:0}}let K=mT(G,a,f),be=m3(K,a,l,l===G?$d(f):f,m,y);if(be)return be}if(M)return{accessibility:0};if(k)return{accessibility:1,errorSymbolName:Xi(l,a,f),errorModuleName:k!==l?Xi(k,a,1920):void 0}}function n0(r,a,l,f){return UC(r,a,l,f,!0)}function UC(r,a,l,f,m){if(r&&a){let y=m3([r],a,r,l,f,m);if(y)return y;let k=or(r.declarations,_x);if(k){let M=_x(a);if(k!==M)return{accessibility:2,errorSymbolName:Xi(r,a,l),errorModuleName:Xi(k),errorNode:dn(a)?a:void 0}}return{accessibility:1,errorSymbolName:Xi(r,a,l)}}return{accessibility:0}}function _x(r){let a=vr(r,PL);return a&&wn(a)}function PL(r){return pp(r)||r.kind===308&&xf(r)}function hT(r){return PF(r)||r.kind===308&&xf(r)}function dx(r,a){let l;if(!Fi(Mn(r.declarations,y=>y.kind!==80),f))return;return{accessibility:0,aliasesToMakeVisible:l};function f(y){var k,M;if(!Gg(y)){let G=$_(y);if(G&&!ri(G,32)&&Gg(G.parent))return m(y,G);if(li(y)&&Qc(y.parent.parent)&&!ri(y.parent.parent,32)&&Gg(y.parent.parent.parent))return m(y,y.parent.parent);if(AF(y)&&!ri(y,32)&&Gg(y.parent))return m(y,y);if(Da(y)){if(r.flags&2097152&&dn(y)&&((k=y.parent)!=null&&k.parent)&&li(y.parent.parent)&&((M=y.parent.parent.parent)!=null&&M.parent)&&Qc(y.parent.parent.parent.parent)&&!ri(y.parent.parent.parent.parent,32)&&y.parent.parent.parent.parent.parent&&Gg(y.parent.parent.parent.parent.parent))return m(y,y.parent.parent.parent.parent);if(r.flags&2){let J=UT(y);if(J.kind===170)return!1;let K=J.parent.parent;return K.kind!==244?!1:ri(K,32)?!0:Gg(K.parent)?m(y,K):!1}}return!1}return!0}function m(y,k){return a&&(Nn(y).isVisible=!0,l=qh(l,k)),!0}}function lN(r){let a;return r.parent.kind===187||r.parent.kind===234&&!Wm(r.parent)||r.parent.kind===168||r.parent.kind===183&&r.parent.parameterName===r?a=1160127:r.kind===167||r.kind===212||r.parent.kind===272||r.parent.kind===167&&r.parent.left===r||r.parent.kind===212&&r.parent.expression===r||r.parent.kind===213&&r.parent.expression===r?a=1920:a=788968,a}function VC(r,a,l=!0){let f=lN(r),m=wp(r),y=ft(a,m.escapedText,f,void 0,!1);return y&&y.flags&262144&&f&788968?{accessibility:0}:!y&&Sb(m)&&n0(wn(fp(m,!1,!1)),m,f,!1).accessibility===0?{accessibility:0}:y?dx(y,l)||{accessibility:1,errorSymbolName:pc(m),errorNode:m}:{accessibility:3,errorSymbolName:pc(m),errorNode:m}}function Xi(r,a,l,f=4,m){let y=70221824,k=0;f&2&&(y|=128),f&1&&(y|=512),f&8&&(y|=16384),f&32&&(k|=4),f&16&&(k|=1);let M=f&4?ge.symbolToNode:ge.symbolToEntityName;return m?G(m).getText():Fw(G);function G(J){let K=M(r,l,a,y,k),be=a?.kind===308?Zae():HS(),he=a&&Nr(a);return be.writeNode(4,K,he,J),J}}function i0(r,a,l=0,f,m,y,k,M){return m?G(m).getText():Fw(G);function G(J){let K;l&262144?K=f===1?186:185:K=f===1?181:180;let be=ge.signatureToSignatureDeclaration(r,K,a,yT(l)|70221824|512,void 0,void 0,y,k,M),he=sV(),He=a&&Nr(a);return he.writeNode(4,be,He,Hz(J)),J}}function Yr(r,a,l=1064960,f=D6(""),m,y,k){let M=!m&&O.noErrorTruncation||l&1,G=ge.typeToTypeNode(r,a,yT(l)|70221824|(M?1:0),void 0,void 0,m,y,k);if(G===void 0)return w.fail("should always get typenode");let J=r!==Gt?HS():Yae(),K=a&&Nr(a);J.writeNode(4,G,K,f);let be=f.getText(),he=m||(M?ez*2:zP*2);return he&&be&&be.length>=he?be.substr(0,he-3)+"...":be}function uN(r,a){let l=wD(r.symbol)?Yr(r,r.symbol.valueDeclaration):Yr(r),f=wD(a.symbol)?Yr(a,a.symbol.valueDeclaration):Yr(a);return l===f&&(l=CD(r),f=CD(a)),[l,f]}function CD(r){return Yr(r,void 0,64)}function wD(r){return r&&!!r.valueDeclaration&&ht(r.valueDeclaration)&&!k_(r.valueDeclaration)}function yT(r=0){return r&848330095}function g3(r){return!!r.symbol&&!!(r.symbol.flags&32)&&(r===K_(r.symbol)||!!(r.flags&524288)&&!!(jn(r)&16777216))}function mx(r){return Oi(r)}function AL(){return{syntacticBuilderResolver:{evaluateEntityNameExpression:Z8e,isExpandoFunctionDeclaration:b7e,hasLateBindableName:AD,shouldRemoveDeclaration(Pe,ie){return!(Pe.internalFlags&8&&mo(ie.name.expression)&&Xd(ie.name).flags&1)},createRecoveryBoundary(Pe){return Pi(Pe)},isDefinitelyReferenceToGlobalSymbolObject:Wg,getAllAccessorDeclarations:xye,requiresAddingImplicitUndefined(Pe,ie,Zt){var sr;switch(Pe.kind){case 173:case 172:case 349:ie??(ie=wn(Pe));let we=an(ie);return!!(ie.flags&4&&ie.flags&16777216&&E2(Pe)&&((sr=ie.links)!=null&&sr.mappedType)&&Wct(we));case 170:case 342:return K9(Pe,Zt);default:w.assertNever(Pe)}},isOptionalParameter:C3,isUndefinedIdentifierExpression(Pe){return rd(Pe)===ae},isEntityNameVisible(Pe,ie,Zt){return VC(ie,Pe.enclosingDeclaration,Zt)},serializeExistingTypeNode(Pe,ie,Zt){return sf(Pe,ie,!!Zt)},serializeReturnTypeForSignature(Pe,ie,Zt){let sr=Pe,we=T_(ie);Zt??(Zt=wn(ie));let Ge=sr.enclosingSymbolTypes.get(sa(Zt))??qi(Xa(we),sr.mapper);return ba(sr,we,Ge)},serializeTypeOfExpression(Pe,ie){let Zt=Pe,sr=qi(Uf(f7e(ie)),Zt.mapper);return Vt(sr,Zt)},serializeTypeOfDeclaration(Pe,ie,Zt){var sr;let we=Pe;Zt??(Zt=wn(ie));let Ge=(sr=we.enclosingSymbolTypes)==null?void 0:sr.get(sa(Zt));return Ge===void 0&&(Ge=Zt.flags&98304&&ie.kind===179?qi(Nv(Zt),we.mapper):Zt&&!(Zt.flags&133120)?qi(H1(an(Zt)),we.mapper):Ye),ie&&(Gi(ie)||c_(ie))&&K9(ie,we.enclosingDeclaration)&&(Ge=_0(Ge)),sn(Zt,we,Ge)},serializeNameOfParameter(Pe,ie){return Ni(wn(ie),ie,Pe)},serializeEntityName(Pe,ie){let Zt=Pe,sr=rd(ie,!0);if(sr&&JC(sr,Zt.enclosingDeclaration))return nd(sr,Zt,1160127)},serializeTypeName(Pe,ie,Zt,sr){return zl(Pe,ie,Zt,sr)},getJsDocPropertyOverride(Pe,ie,Zt){let sr=Pe,we=Be(Zt.name)?Zt.name:Zt.name.right,Ge=lr(a(sr,ie),we.escapedText);return Ge&&Zt.typeExpression&&a(sr,Zt.typeExpression.type)!==Ge?Vt(Ge,sr):void 0},enterNewScope(Pe,ie){if(Fs(ie)||cv(ie)){let Zt=T_(ie);return Rs(Pe,ie,Zt.parameters,Zt.typeParameters)}else{let Zt=jS(ie)?Xme(ie):[W1(wn(ie.typeParameter))];return Rs(Pe,ie,void 0,Zt)}},markNodeReuse(Pe,ie,Zt){return l(Pe,ie,Zt)},trackExistingEntityName(Pe,ie){return Io(ie,Pe)},trackComputedName(Pe,ie){cn(ie,Pe.enclosingDeclaration,Pe)},getModuleSpecifierOverride(Pe,ie,Zt){let sr=Pe;if(sr.bundled||sr.enclosingFile!==Nr(Zt)){let we=Zt.text,Ge=we,st=Nn(ie).resolvedSymbol,Ft=ie.isTypeOf?111551:788968,tr=st&&n0(st,sr.enclosingDeclaration,Ft,!1).accessibility===0&&bs(st,sr,Ft,!0)[0];if(tr&&a2(tr))we=Xc(tr,sr);else{let Lt=Iye(ie);Lt&&(we=Xc(Lt.symbol,sr))}if(we.includes("/node_modules/")&&(sr.encounteredError=!0,sr.tracker.reportLikelyUnsafeImportRequiredError&&sr.tracker.reportLikelyUnsafeImportRequiredError(we)),we!==Ge)return we}},canReuseTypeNode(Pe,ie){return op(Pe,ie)},canReuseTypeNodeAnnotation(Pe,ie,Zt,sr,we){var Ge;let st=Pe;if(st.enclosingDeclaration===void 0)return!1;sr??(sr=wn(ie));let Ft=(Ge=st.enclosingSymbolTypes)==null?void 0:Ge.get(sa(sr));Ft===void 0&&(sr.flags&98304?Ft=ie.kind===179?Nv(sr):mN(sr):ak(ie)?Ft=Xa(T_(ie)):Ft=an(sr));let tr=mx(Zt);return rn(tr)?!0:(we&&tr&&(tr=ip(tr,!Gi(ie))),!!tr&&ci(ie,Ft,tr)&&Sr(Zt,Ft))}},typeToTypeNode:(Pe,ie,Zt,sr,we,Ge,st,Ft)=>J(ie,Zt,sr,we,Ge,st,tr=>Vt(Pe,tr),Ft),typePredicateToTypePredicateNode:(Pe,ie,Zt,sr,we)=>J(ie,Zt,sr,we,void 0,void 0,Ge=>ap(Pe,Ge)),serializeTypeForDeclaration:(Pe,ie,Zt,sr,we,Ge)=>J(Zt,sr,we,Ge,void 0,void 0,st=>ke.serializeTypeOfDeclaration(Pe,ie,st)),serializeReturnTypeForSignature:(Pe,ie,Zt,sr,we)=>J(ie,Zt,sr,we,void 0,void 0,Ge=>ke.serializeReturnTypeForSignature(Pe,wn(Pe),Ge)),serializeTypeForExpression:(Pe,ie,Zt,sr,we)=>J(ie,Zt,sr,we,void 0,void 0,Ge=>ke.serializeTypeOfExpression(Pe,Ge)),indexInfoToIndexSignatureDeclaration:(Pe,ie,Zt,sr,we)=>J(ie,Zt,sr,we,void 0,void 0,Ge=>$i(Pe,Ge,void 0)),signatureToSignatureDeclaration:(Pe,ie,Zt,sr,we,Ge,st,Ft,tr)=>J(Zt,sr,we,Ge,st,Ft,Lt=>Qn(Pe,ie,Lt),tr),symbolToEntityName:(Pe,ie,Zt,sr,we,Ge)=>J(Zt,sr,we,Ge,void 0,void 0,st=>qc(Pe,st,ie,!1)),symbolToExpression:(Pe,ie,Zt,sr,we,Ge)=>J(Zt,sr,we,Ge,void 0,void 0,st=>nd(Pe,st,ie)),symbolToTypeParameterDeclarations:(Pe,ie,Zt,sr,we)=>J(ie,Zt,sr,we,void 0,void 0,Ge=>Uo(Pe,Ge)),symbolToParameterDeclaration:(Pe,ie,Zt,sr,we)=>J(ie,Zt,sr,we,void 0,void 0,Ge=>Kr(Pe,Ge)),typeParameterToDeclaration:(Pe,ie,Zt,sr,we,Ge,st,Ft)=>J(ie,Zt,sr,we,Ge,st,tr=>jc(Pe,tr),Ft),symbolTableToDeclarationStatements:(Pe,ie,Zt,sr,we)=>J(ie,Zt,sr,we,void 0,void 0,Ge=>Z1(Pe,Ge)),symbolToNode:(Pe,ie,Zt,sr,we,Ge)=>J(Zt,sr,we,Ge,void 0,void 0,st=>f(Pe,st,ie)),symbolToDeclarations:m};function a(Pe,ie,Zt){let sr=mx(ie);if(!Pe.mapper)return sr;let we=qi(sr,Pe.mapper);return Zt&&we!==sr?void 0:we}function l(Pe,ie,Zt){if((!ko(ie)||!(ie.flags&16)||!Pe.enclosingFile||Pe.enclosingFile!==Nr(sc(ie)))&&(ie=A.cloneNode(ie)),ie===Zt||!Zt)return ie;let sr=ie.original;for(;sr&&sr!==Zt;)sr=sr.original;return sr||Rn(ie,Zt),Pe.enclosingFile&&Pe.enclosingFile===Nr(sc(Zt))?mt(ie,Zt):ie}function f(Pe,ie,Zt){if(ie.internalFlags&1){if(Pe.valueDeclaration){let we=Ss(Pe.valueDeclaration);if(we&&na(we))return we}let sr=Wn(Pe).nameType;if(sr&&sr.flags&9216)return ie.enclosingDeclaration=sr.symbol.valueDeclaration,A.createComputedPropertyName(nd(sr.symbol,ie,Zt))}return nd(Pe,ie,Zt)}function m(Pe,ie,Zt,sr,we,Ge){let st=J(void 0,Zt,void 0,void 0,sr,we,Ft=>G(Pe,Ft),Ge);return Ji(st,Ft=>{switch(Ft.kind){case 264:return y(Ft,Pe);case 267:return k(Ft,H0,Pe);case 265:return M(Ft,Pe,ie);case 268:return k(Ft,el,Pe);default:return}})}function y(Pe,ie){let Zt=Mn(ie.declarations,ni),sr=Zt&&Zt.length>0?Zt[0]:Pe,we=Mu(sr)&-161;return Zc(sr)&&(Pe=A.updateClassDeclaration(Pe,Pe.modifiers,void 0,Pe.typeParameters,Pe.heritageClauses,Pe.members)),A.replaceModifiers(Pe,we)}function k(Pe,ie,Zt){let sr=Mn(Zt.declarations,ie),we=sr&&sr.length>0?sr[0]:Pe,Ge=Mu(we)&-161;return A.replaceModifiers(Pe,Ge)}function M(Pe,ie,Zt){if(Zt&64)return k(Pe,uu,ie)}function G(Pe,ie){let Zt=No(Pe);ie.typeStack.push(Zt.id),ie.typeStack.push(-1);let sr=Qs([Pe]),we=Z1(sr,ie);return ie.typeStack.pop(),ie.typeStack.pop(),we}function J(Pe,ie,Zt,sr,we,Ge,st,Ft){let tr=sr?.trackSymbol?sr.moduleResolverHost:(Zt||0)&4?ZGe(e):void 0;ie=ie||0;let Lt=we||(ie&1?ez:zP),ir={enclosingDeclaration:Pe,enclosingFile:Pe&&Nr(Pe),flags:ie,internalFlags:Zt||0,tracker:void 0,maxTruncationLength:Lt,maxExpansionDepth:Ge??-1,encounteredError:!1,suppressReportInferenceFallback:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0,bundled:!!O.outFile&&!!Pe&&xf(Nr(Pe)),truncating:!1,usedSymbolNames:void 0,remappedSymbolNames:void 0,remappedSymbolReferences:void 0,reverseMappedStack:void 0,mustCreateTypeParameterSymbolList:!0,typeParameterSymbolList:void 0,mustCreateTypeParametersNamesLookups:!0,typeParameterNames:void 0,typeParameterNamesByText:void 0,typeParameterNamesByTextNextNameCount:void 0,enclosingSymbolTypes:new Map,mapper:void 0,depth:0,typeStack:[],out:{canIncreaseExpansionDepth:!1,truncated:!1}};ir.tracker=new sae(ir,sr,tr);let qr=st(ir);return ir.truncating&&ir.flags&1&&ir.tracker.reportTruncationError(),Ft&&(Ft.canIncreaseExpansionDepth=ir.out.canIncreaseExpansionDepth,Ft.truncated=ir.out.truncated),ir.encounteredError?void 0:qr}function K(Pe,ie,Zt){let sr=sa(ie),we=Pe.enclosingSymbolTypes.get(sr);return Pe.enclosingSymbolTypes.set(sr,Zt),Ge;function Ge(){we?Pe.enclosingSymbolTypes.set(sr,we):Pe.enclosingSymbolTypes.delete(sr)}}function be(Pe){let ie=Pe.flags,Zt=Pe.internalFlags,sr=Pe.depth;return we;function we(){Pe.flags=ie,Pe.internalFlags=Zt,Pe.depth=sr}}function he(Pe){return Pe.maxExpansionDepth>=0&&He(Pe)}function He(Pe){return Pe.truncating?Pe.truncating:Pe.truncating=Pe.approximateLength>Pe.maxTruncationLength}function gt(Pe,ie){for(let Zt=0;Zt<ie.typeStack.length-1;Zt++)if(ie.typeStack[Zt]===Pe.id)return!1;return ie.depth<ie.maxExpansionDepth||ie.depth===ie.maxExpansionDepth&&!ie.out.canIncreaseExpansionDepth}function xt(Pe,ie,Zt=!1){if(!Zt&&ID(Pe))return!1;for(let we=0;we<ie.typeStack.length-1;we++)if(ie.typeStack[we]===Pe.id)return!1;let sr=ie.depth<ie.maxExpansionDepth;return sr||(ie.out.canIncreaseExpansionDepth=!0),sr}function Vt(Pe,ie){let Zt=be(ie);Pe&&ie.typeStack.push(Pe.id);let sr=_r(Pe,ie);return Pe&&ie.typeStack.pop(),Zt(),sr}function _r(Pe,ie){var Zt,sr;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let we=ie.flags&8388608;ie.flags&=-8388609;let Ge=!1;if(!Pe){if(!(ie.flags&262144)){ie.encounteredError=!0;return}return ie.approximateLength+=3,A.createKeywordTypeNode(133)}if(ie.flags&536870912||(Pe=Pd(Pe)),Pe.flags&1)return Pe.aliasSymbol?A.createTypeReferenceNode(sl(Pe.aliasSymbol),pn(Pe.aliasTypeArguments,ie)):Pe===Gt?Ib(A.createKeywordTypeNode(133),3,"unresolved"):(ie.approximateLength+=3,A.createKeywordTypeNode(Pe===Ae?141:133));if(Pe.flags&2)return A.createKeywordTypeNode(159);if(Pe.flags&4)return ie.approximateLength+=6,A.createKeywordTypeNode(154);if(Pe.flags&8)return ie.approximateLength+=6,A.createKeywordTypeNode(150);if(Pe.flags&64)return ie.approximateLength+=6,A.createKeywordTypeNode(163);if(Pe.flags&16&&!Pe.aliasSymbol)return ie.approximateLength+=7,A.createKeywordTypeNode(136);if(Pe.flags&1056){if(Pe.symbol.flags&8){let cr=Wl(Pe.symbol),En=oo(cr,ie,788968);if(No(cr)===Pe)return En;let ks=kc(Pe.symbol);return af(ks,1)?Xr(En,A.createTypeReferenceNode(ks,void 0)):Hm(En)?(En.isTypeOf=!0,A.createIndexedAccessTypeNode(En,A.createLiteralTypeNode(A.createStringLiteral(ks)))):Pf(En)?A.createIndexedAccessTypeNode(A.createTypeQueryNode(En.typeName),A.createLiteralTypeNode(A.createStringLiteral(ks))):w.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(xt(Pe,ie))Ge=!0;else return oo(Pe.symbol,ie,788968)}if(Pe.flags&128)return ie.approximateLength+=Pe.value.length+2,A.createLiteralTypeNode(yn(A.createStringLiteral(Pe.value,!!(ie.flags&268435456)),16777216));if(Pe.flags&256){let cr=Pe.value;return ie.approximateLength+=(""+cr).length,A.createLiteralTypeNode(cr<0?A.createPrefixUnaryExpression(41,A.createNumericLiteral(-cr)):A.createNumericLiteral(cr))}if(Pe.flags&2048)return ie.approximateLength+=MS(Pe.value).length+1,A.createLiteralTypeNode(A.createBigIntLiteral(Pe.value));if(Pe.flags&512)return ie.approximateLength+=Pe.intrinsicName.length,A.createLiteralTypeNode(Pe.intrinsicName==="true"?A.createTrue():A.createFalse());if(Pe.flags&8192){if(!(ie.flags&1048576)){if(JC(Pe.symbol,ie.enclosingDeclaration))return ie.approximateLength+=6,oo(Pe.symbol,ie,111551);ie.tracker.reportInaccessibleUniqueSymbolError&&ie.tracker.reportInaccessibleUniqueSymbolError()}return ie.approximateLength+=13,A.createTypeOperatorNode(158,A.createKeywordTypeNode(155))}if(Pe.flags&16384)return ie.approximateLength+=4,A.createKeywordTypeNode(116);if(Pe.flags&32768)return ie.approximateLength+=9,A.createKeywordTypeNode(157);if(Pe.flags&65536)return ie.approximateLength+=4,A.createLiteralTypeNode(A.createNull());if(Pe.flags&131072)return ie.approximateLength+=5,A.createKeywordTypeNode(146);if(Pe.flags&4096)return ie.approximateLength+=6,A.createKeywordTypeNode(155);if(Pe.flags&67108864)return ie.approximateLength+=6,A.createKeywordTypeNode(151);if(EA(Pe))return ie.flags&4194304&&(!ie.encounteredError&&!(ie.flags&32768)&&(ie.encounteredError=!0),(sr=(Zt=ie.tracker).reportInaccessibleThisError)==null||sr.call(Zt)),ie.approximateLength+=4,A.createThisTypeNode();if(!we&&Pe.aliasSymbol&&(ie.flags&16384||oN(Pe.aliasSymbol,ie.enclosingDeclaration))){if(!xt(Pe,ie,!0)){let cr=pn(Pe.aliasTypeArguments,ie);return F1(Pe.aliasSymbol.escapedName)&&!(Pe.aliasSymbol.flags&32)?A.createTypeReferenceNode(A.createIdentifier(""),cr):Dr(cr)===1&&Pe.aliasSymbol===La.symbol?A.createArrayTypeNode(cr[0]):oo(Pe.aliasSymbol,ie,788968,cr)}ie.depth+=1}let st=jn(Pe);if(st&4)return w.assert(!!(Pe.flags&524288)),xt(Pe,ie)?(ie.depth+=1,fn(Pe,!0,!0)):Pe.node?In(Pe,Zn):Zn(Pe);if(Pe.flags&262144||st&3){if(Pe.flags&262144&&ws(ie.inferTypeParameters,Pe)){ie.approximateLength+=kc(Pe.symbol).length+6;let En,ks=jp(Pe);if(ks){let ss=W4e(Pe,!0);ss&&Bh(ks,ss)||(ie.approximateLength+=9,En=ks&&Vt(ks,ie))}return A.createInferTypeNode(es(Pe,ie,En))}if(ie.flags&4&&Pe.flags&262144){let En=lc(Pe,ie);return ie.approximateLength+=Fn(En).length,A.createTypeReferenceNode(A.createIdentifier(Fn(En)),void 0)}if(st&3&&xt(Pe,ie))return ie.depth+=1,fn(Pe,!0,!0);if(Pe.symbol)return oo(Pe.symbol,ie,788968);let cr=(Pe===We||Pe===dt)&&I&&I.symbol?(Pe===dt?"sub-":"super-")+kc(I.symbol):"?";return A.createTypeReferenceNode(A.createIdentifier(cr),void 0)}if(Pe.flags&1048576&&Pe.origin&&(Pe=Pe.origin),Pe.flags&3145728){let cr=Pe.flags&1048576?h3(Pe.types,Ge):Pe.types;if(Dr(cr)===1)return Vt(cr[0],ie);let En=pn(cr,ie,!0);if(En&&En.length>0)return Pe.flags&1048576?A.createUnionTypeNode(En):A.createIntersectionTypeNode(En);!ie.encounteredError&&!(ie.flags&262144)&&(ie.encounteredError=!0);return}if(st&48)return w.assert(!!(Pe.flags&524288)),fn(Pe);if(Pe.flags&4194304){let cr=Pe.type;ie.approximateLength+=6;let En=Vt(cr,ie);return A.createTypeOperatorNode(143,En)}if(Pe.flags&134217728){let cr=Pe.texts,En=Pe.types,ks=A.createTemplateHead(cr[0]),ss=A.createNodeArray(kr(En,(Na,Za)=>A.createTemplateLiteralTypeSpan(Vt(Na,ie),(Za<En.length-1?A.createTemplateMiddle:A.createTemplateTail)(cr[Za+1]))));return ie.approximateLength+=2,A.createTemplateLiteralType(ks,ss)}if(Pe.flags&268435456){let cr=Vt(Pe.type,ie);return oo(Pe.symbol,ie,788968,[cr])}if(Pe.flags&8388608){let cr=Vt(Pe.objectType,ie),En=Vt(Pe.indexType,ie);return ie.approximateLength+=2,A.createIndexedAccessTypeNode(cr,En)}if(Pe.flags&16777216)return In(Pe,cr=>Ft(cr));if(Pe.flags&33554432){let cr=Vt(Pe.baseType,ie),En=FD(Pe)&&Nme("NoInfer",!1);return En?oo(En,ie,788968,[cr]):cr}return w.fail("Should be unreachable.");function Ft(cr){let En=Vt(cr.checkType,ie);if(ie.approximateLength+=15,ie.flags&4&&cr.root.isDistributive&&!(cr.checkType.flags&262144)){let ms=Op(wa(262144,"T")),Sl=lc(ms,ie),Tl=A.createTypeReferenceNode(Sl);ie.approximateLength+=37;let Pu=Cx(cr.root.checkType,ms,cr.mapper),cp=ie.inferTypeParameters;ie.inferTypeParameters=cr.root.inferTypeParameters;let Wp=Vt(qi(cr.root.extendsType,Pu),ie);ie.inferTypeParameters=cp;let By=tr(qi(a(ie,cr.root.node.trueType),Pu)),tS=tr(qi(a(ie,cr.root.node.falseType),Pu));return A.createConditionalTypeNode(En,A.createInferTypeNode(A.createTypeParameterDeclaration(void 0,A.cloneNode(Tl.typeName))),A.createConditionalTypeNode(A.createTypeReferenceNode(A.cloneNode(Sl)),Vt(cr.checkType,ie),A.createConditionalTypeNode(Tl,Wp,By,tS),A.createKeywordTypeNode(146)),A.createKeywordTypeNode(146))}let ks=ie.inferTypeParameters;ie.inferTypeParameters=cr.root.inferTypeParameters;let ss=Vt(cr.extendsType,ie);ie.inferTypeParameters=ks;let Na=tr(u0(cr)),Za=tr(p0(cr));return A.createConditionalTypeNode(En,ss,Na,Za)}function tr(cr){var En,ks,ss;return cr.flags&1048576?(En=ie.visitedTypes)!=null&&En.has(nu(cr))?(ie.flags&131072||(ie.encounteredError=!0,(ss=(ks=ie.tracker)==null?void 0:ks.reportCyclicStructureError)==null||ss.call(ks)),$r(ie)):In(cr,Na=>Vt(Na,ie)):Vt(cr,ie)}function Lt(cr){return!!M3(cr)}function ir(cr){return!!cr.target&&Lt(cr.target)&&!Lt(cr)}function qr(cr){var En;w.assert(!!(cr.flags&524288));let ks=cr.declaration.readonlyToken?A.createToken(cr.declaration.readonlyToken.kind):void 0,ss=cr.declaration.questionToken?A.createToken(cr.declaration.questionToken.kind):void 0,Na,Za,ms=Fh(cr),Sl=Kd(cr),Tl=!ND(cr)&&!(B1(cr).flags&2)&&ie.flags&4&&!(S_(cr).flags&262144&&((En=jp(S_(cr)))==null?void 0:En.flags)&4194304);if(ND(cr)){if(ir(cr)&&ie.flags&4){let y0=Op(wa(262144,"T")),_w=lc(y0,ie),VN=cr.target;Za=A.createTypeReferenceNode(_w),ms=qi(Fh(VN),JRe([Kd(VN),B1(VN)],[Sl,y0]))}Na=A.createTypeOperatorNode(143,Za||Vt(B1(cr),ie))}else if(Tl){let y0=Op(wa(262144,"T")),_w=lc(y0,ie);Za=A.createTypeReferenceNode(_w),Na=Za}else Na=Vt(S_(cr),ie);let Pu=es(Sl,ie,Na),cp=Rs(ie,cr.declaration,void 0,[W1(wn(cr.declaration.typeParameter))]),Wp=cr.declaration.nameType?Vt(Mv(cr),ie):void 0,By=Vt(Fy(ms,!!(Vg(cr)&4)),ie);cp();let tS=A.createMappedTypeNode(ks,Pu,Wp,ss,By,void 0);ie.approximateLength+=10;let RT=yn(tS,1);if(ir(cr)&&ie.flags&4){let y0=qi(jp(a(ie,cr.declaration.typeParameter.constraint.type))||wt,cr.mapper);return A.createConditionalTypeNode(Vt(B1(cr),ie),A.createInferTypeNode(A.createTypeParameterDeclaration(void 0,A.cloneNode(Za.typeName),y0.flags&2?void 0:Vt(y0,ie))),RT,A.createKeywordTypeNode(146))}else if(Tl)return A.createConditionalTypeNode(Vt(S_(cr),ie),A.createInferTypeNode(A.createTypeParameterDeclaration(void 0,A.cloneNode(Za.typeName),A.createTypeOperatorNode(143,Vt(B1(cr),ie)))),RT,A.createKeywordTypeNode(146));return RT}function fn(cr,En=!1,ks=!1){var ss,Na;let Za=cr.id,ms=cr.symbol;if(ms){if(!!(jn(cr)&8388608)){let Wp=cr.node;if(FS(Wp)&&a(ie,Wp)===cr){let By=ke.tryReuseExistingTypeNode(ie,Wp);if(By)return By}return(ss=ie.visitedTypes)!=null&&ss.has(Za)?$r(ie):In(cr,ai)}let Pu=g3(cr)?788968:111551;if(yg(ms.valueDeclaration))return oo(ms,ie,Pu);if(!ks&&(ms.flags&32&&!En&&!b3(ms)&&!(ms.valueDeclaration&&ni(ms.valueDeclaration)&&ie.flags&2048&&(!hl(ms.valueDeclaration)||n0(ms,ie.enclosingDeclaration,Pu,!1).accessibility!==0))||ms.flags&896||Sl()))if(xt(cr,ie))ie.depth+=1;else return oo(ms,ie,Pu);if((Na=ie.visitedTypes)!=null&&Na.has(Za)){let cp=EL(cr);return cp?oo(cp,ie,788968):$r(ie)}else return In(cr,ai)}else return ai(cr);function Sl(){var Tl;let Pu=!!(ms.flags&8192)&&_t(ms.declarations,Wp=>Ks(Wp)&&!a4e(Ss(Wp))),cp=!!(ms.flags&16)&&(ms.parent||or(ms.declarations,Wp=>Wp.parent.kind===308||Wp.parent.kind===269));if(Pu||cp)return(!!(ie.flags&4096)||((Tl=ie.visitedTypes)==null?void 0:Tl.has(Za)))&&(!(ie.flags&8)||JC(ms,ie.enclosingDeclaration))}}function In(cr,En){var ks,ss,Na;let Za=cr.id,ms=jn(cr)&16&&cr.symbol&&cr.symbol.flags&32,Sl=jn(cr)&4&&cr.node?"N"+qa(cr.node):cr.flags&16777216?"N"+qa(cr.root.node):cr.symbol?(ms?"+":"")+sa(cr.symbol):void 0;ie.visitedTypes||(ie.visitedTypes=new Set),Sl&&!ie.symbolDepth&&(ie.symbolDepth=new Map);let Tl=ie.maxExpansionDepth>=0?void 0:ie.enclosingDeclaration&&Nn(ie.enclosingDeclaration),Pu=`${nu(cr)}|${ie.flags}|${ie.internalFlags}`;Tl&&(Tl.serializedTypes||(Tl.serializedTypes=new Map));let cp=(ks=Tl?.serializedTypes)==null?void 0:ks.get(Pu);if(cp)return(ss=cp.trackedSymbols)==null||ss.forEach(([Kg,KD,Z9])=>ie.tracker.trackSymbol(Kg,KD,Z9)),cp.truncating&&(ie.truncating=!0),ie.approximateLength+=cp.addedLength,_w(cp.node);let Wp;if(Sl){if(Wp=ie.symbolDepth.get(Sl)||0,Wp>10)return $r(ie);ie.symbolDepth.set(Sl,Wp+1)}ie.visitedTypes.add(Za);let By=ie.trackedSymbols;ie.trackedSymbols=void 0;let tS=ie.approximateLength,RT=En(cr),y0=ie.approximateLength-tS;return!ie.reportedDiagnostic&&!ie.encounteredError&&((Na=Tl?.serializedTypes)==null||Na.set(Pu,{node:RT,truncating:ie.truncating,addedLength:y0,trackedSymbols:ie.trackedSymbols})),ie.visitedTypes.delete(Za),Sl&&ie.symbolDepth.set(Sl,Wp),ie.trackedSymbols=By,RT;function _w(Kg){return!ko(Kg)&&As(Kg)===Kg?Kg:l(ie,A.cloneNode(Pr(Kg,_w,void 0,VN,_w)),Kg)}function VN(Kg,KD,Z9,Mye,Rye){return Kg&&Kg.length===0?mt(A.createNodeArray(void 0,Kg.hasTrailingComma),Kg):Br(Kg,KD,Z9,Mye,Rye)}}function ai(cr){if(nf(cr)||cr.containsError)return qr(cr);let En=km(cr);if(!En.properties.length&&!En.indexInfos.length){if(!En.callSignatures.length&&!En.constructSignatures.length)return ie.approximateLength+=2,yn(A.createTypeLiteralNode(void 0),1);if(En.callSignatures.length===1&&!En.constructSignatures.length){let ms=En.callSignatures[0];return Qn(ms,185,ie)}if(En.constructSignatures.length===1&&!En.callSignatures.length){let ms=En.constructSignatures[0];return Qn(ms,186,ie)}}let ks=Mn(En.constructSignatures,ms=>!!(ms.flags&4));if(_t(ks)){let ms=kr(ks,vx);return En.callSignatures.length+(En.constructSignatures.length-ks.length)+En.indexInfos.length+(ie.flags&2048?Jy(En.properties,Tl=>!(Tl.flags&4194304)):Dr(En.properties))&&ms.push(fx(En)),Vt(ma(ms),ie)}let ss=be(ie);ie.flags|=4194304;let Na=Wa(En);ss();let Za=A.createTypeLiteralNode(Na);return ie.approximateLength+=2,yn(Za,ie.flags&1024?0:1),Za}function Zn(cr){let En=Jo(cr);if(cr.target===La||cr.target===Ca){if(ie.flags&2){let Na=Vt(En[0],ie);return A.createTypeReferenceNode(cr.target===La?"Array":"ReadonlyArray",[Na])}let ks=Vt(En[0],ie),ss=A.createArrayTypeNode(ks);return cr.target===La?ss:A.createTypeOperatorNode(148,ss)}else if(cr.target.objectFlags&8){if(En=fl(En,(ks,ss)=>Fy(ks,!!(cr.target.elementFlags[ss]&2))),En.length>0){let ks=Fv(cr),ss=pn(En.slice(0,ks),ie);if(ss){let{labeledElementDeclarations:Na}=cr.target;for(let ms=0;ms<ss.length;ms++){let Sl=cr.target.elementFlags[ms],Tl=Na?.[ms];Tl?ss[ms]=A.createNamedTupleMember(Sl&12?A.createToken(26):void 0,A.createIdentifier(Ai(Lhe(Tl))),Sl&2?A.createToken(58):void 0,Sl&4?A.createArrayTypeNode(ss[ms]):ss[ms]):ss[ms]=Sl&12?A.createRestTypeNode(Sl&4?A.createArrayTypeNode(ss[ms]):ss[ms]):Sl&2?A.createOptionalTypeNode(ss[ms]):ss[ms]}let Za=yn(A.createTupleTypeNode(ss),1);return cr.target.readonly?A.createTypeOperatorNode(148,Za):Za}}if(ie.encounteredError||ie.flags&524288){let ks=yn(A.createTupleTypeNode([]),1);return cr.target.readonly?A.createTypeOperatorNode(148,ks):ks}ie.encounteredError=!0;return}else{if(ie.flags&2048&&cr.symbol.valueDeclaration&&ni(cr.symbol.valueDeclaration)&&!JC(cr.symbol,ie.enclosingDeclaration))return fn(cr);{let ks=cr.target.outerTypeParameters,ss=0,Na;if(ks){let Tl=ks.length;for(;ss<Tl;){let Pu=ss,cp=B4e(ks[ss]);do ss++;while(ss<Tl&&B4e(ks[ss])===cp);if(!EW(ks,En,Pu,ss)){let Wp=pn(En.slice(Pu,ss),ie),By=be(ie);ie.flags|=16;let tS=oo(cp,ie,788968,Wp);By(),Na=Na?Xr(Na,tS):tS}}}let Za;if(En.length>0){let Tl=0;if(cr.target.typeParameters&&(Tl=Math.min(cr.target.typeParameters.length,En.length),(Bf(cr,uK(!1))||Bf(cr,sRe(!1))||Bf(cr,JL(!1))||Bf(cr,iRe(!1)))&&(!cr.node||!Pf(cr.node)||!cr.node.typeArguments||cr.node.typeArguments.length<Tl)))for(;Tl>0;){let Pu=En[Tl-1],cp=cr.target.typeParameters[Tl-1],Wp=ST(cp);if(!Wp||!Bh(Pu,Wp))break;Tl--}Za=pn(En.slice(ss,Tl),ie)}let ms=be(ie);ie.flags|=16;let Sl=oo(cr.symbol,ie,788968,Za);return ms(),Na?Xr(Na,Sl):Sl}}}function Xr(cr,En){if(Hm(cr)){let ks=cr.typeArguments,ss=cr.qualifier;ss&&(Be(ss)?ks!==dk(ss)&&(ss=iv(A.cloneNode(ss),ks)):ks!==dk(ss.right)&&(ss=A.updateQualifiedName(ss,ss.left,iv(A.cloneNode(ss.right),ks)))),ks=En.typeArguments;let Na=gi(En);for(let Za of Na)ss=ss?A.createQualifiedName(ss,Za):Za;return A.updateImportTypeNode(cr,cr.argument,cr.attributes,ss,ks,cr.isTypeOf)}else{let ks=cr.typeArguments,ss=cr.typeName;Be(ss)?ks!==dk(ss)&&(ss=iv(A.cloneNode(ss),ks)):ks!==dk(ss.right)&&(ss=A.updateQualifiedName(ss,ss.left,iv(A.cloneNode(ss.right),ks))),ks=En.typeArguments;let Na=gi(En);for(let Za of Na)ss=A.createQualifiedName(ss,Za);return A.updateTypeReferenceNode(cr,ss,ks)}}function gi(cr){let En=cr.typeName,ks=[];for(;!Be(En);)ks.unshift(En.right),En=En.left;return ks.unshift(En),ks}function _s(cr,En,ks){if(cr.components&&Fi(cr.components,Na=>{var Za;return!!(Na.name&&na(Na.name)&&mo(Na.name.expression)&&En.enclosingDeclaration&&((Za=VC(Na.name.expression,En.enclosingDeclaration,!1))==null?void 0:Za.accessibility)===0)})){let Na=Mn(cr.components,Za=>!AD(Za));return kr(Na,Za=>(cn(Za.name.expression,En.enclosingDeclaration,En),l(En,A.createPropertySignature(cr.isReadonly?[A.createModifier(148)]:void 0,Za.name,(mp(Za)||hs(Za)||jd(Za)||hc(Za)||ah(Za)||Fm(Za))&&Za.questionToken?A.createToken(58):void 0,ks||Vt(an(Za.symbol),En)),Za)))}return[$i(cr,En,ks)]}function Wa(cr){if(He(ie))return ie.out.truncated=!0,ie.flags&1?[FA(A.createNotEmittedTypeElement(),3,"elided")]:[A.createPropertySignature(void 0,"...",void 0,void 0)];ie.typeStack.push(-1);let En=[];for(let Na of cr.callSignatures)En.push(Qn(Na,180,ie));for(let Na of cr.constructSignatures)Na.flags&4||En.push(Qn(Na,181,ie));for(let Na of cr.indexInfos)En.push(..._s(Na,ie,cr.objectFlags&1024?$r(ie):void 0));let ks=cr.properties;if(!ks)return ie.typeStack.pop(),En;let ss=0;for(let Na of ks)if(!(eS(ie)&&Na.flags&4194304)){if(ss++,ie.flags&2048){if(Na.flags&4194304)continue;j_(Na)&6&&ie.tracker.reportPrivateInBaseOfClassExpression&&ie.tracker.reportPrivateInBaseOfClassExpression(Ai(Na.escapedName))}if(He(ie)&&ss+2<ks.length-1){if(ie.out.truncated=!0,ie.flags&1){let Za=En.pop();En.push(FA(Za,3,`... ${ks.length-ss} more elided ...`))}else En.push(A.createPropertySignature(void 0,`... ${ks.length-ss} more ...`,void 0,void 0));dr(ks[ks.length-1],ie,En);break}dr(Na,ie,En)}return ie.typeStack.pop(),En.length?En:void 0}}function $r(Pe){return Pe.approximateLength+=3,Pe.flags&1?Ib(A.createKeywordTypeNode(133),3,"elided"):A.createTypeReferenceNode(A.createIdentifier("..."),void 0)}function on(Pe,ie){var Zt;return!!(Cc(Pe)&8192)&&(ws(ie.reverseMappedStack,Pe)||((Zt=ie.reverseMappedStack)==null?void 0:Zt[0])&&!(jn(ka(ie.reverseMappedStack).links.propertyType)&16)||we());function we(){var Ge;if((((Ge=ie.reverseMappedStack)==null?void 0:Ge.length)??0)<3)return!1;for(let st=0;st<3;st++)if(ie.reverseMappedStack[ie.reverseMappedStack.length-1-st].links.mappedType.symbol!==Pe.links.mappedType.symbol)return!1;return!0}}function dr(Pe,ie,Zt){var sr;let we=!!(Cc(Pe)&8192),Ge=on(Pe,ie)?Le:Sm(Pe),st=ie.enclosingDeclaration;if(ie.enclosingDeclaration=void 0,ie.tracker.canTrackSymbol&&S3(Pe.escapedName))if(Pe.declarations){let In=Ra(Pe.declarations);if(AD(In))if(vn(In)){let ai=Ss(In);ai&&xo(ai)&&N6(ai.argumentExpression)&&cn(ai.argumentExpression,st,ie)}else cn(In.name.expression,st,ie)}else ie.tracker.reportNonSerializableProperty(Xi(Pe));ie.enclosingDeclaration=Pe.valueDeclaration||((sr=Pe.declarations)==null?void 0:sr[0])||st;let Ft=UN(Pe,ie);if(ie.enclosingDeclaration=st,ie.approximateLength+=kc(Pe).length+1,Pe.flags&98304){let In=Nv(Pe);if(!rn(Ge)&&!rn(In)){let ai=Wn(Pe).mapper,Zn=$o(Pe,173);if(Ge!==In||Pe.parent.flags&32&&!Zn){let Xr=$o(Pe,178);if(Xr){let _s=T_(Xr);Zt.push(pr(ie,Qn(ai?wx(_s,ai):_s,178,ie,{name:Ft}),Xr))}let gi=$o(Pe,179);if(gi){let _s=T_(gi);Zt.push(pr(ie,Qn(ai?wx(_s,ai):_s,179,ie,{name:Ft}),gi))}return}if(Pe.parent.flags&32&&Zn&&Bn(Zn.modifiers,dJ)){let Xr=_g(void 0,void 0,void 0,Ke,Ge,void 0,0,0);Zt.push(pr(ie,Qn(Xr,178,ie,{name:Ft}),Zn));let gi=wa(1,"arg");gi.links.type=In;let _s=_g(void 0,void 0,void 0,[gi],hr,void 0,0,0);Zt.push(Qn(_s,179,ie,{name:Ft}));return}}}let tr=Pe.flags&16777216?A.createToken(58):void 0;if(Pe.flags&8208&&!Rv(Ge).length&&!Am(Pe)){let In=Gs(pl(Ge,ai=>!(ai.flags&32768)),0);for(let ai of In){let Zn=Qn(ai,174,ie,{name:Ft,questionToken:tr});Zt.push(fn(Zn,ai.declaration||Pe.valueDeclaration))}if(In.length||!tr)return}let Lt;on(Pe,ie)?Lt=$r(ie):(we&&(ie.reverseMappedStack||(ie.reverseMappedStack=[]),ie.reverseMappedStack.push(Pe)),Lt=Ge?An(ie,void 0,Ge,Pe):A.createKeywordTypeNode(133),we&&ie.reverseMappedStack.pop());let ir=Am(Pe)?[A.createToken(148)]:void 0;ir&&(ie.approximateLength+=9);let qr=A.createPropertySignature(ir,Ft,tr,Lt);Zt.push(fn(qr,Pe.valueDeclaration));function fn(In,ai){var Zn;let Xr=(Zn=Pe.declarations)==null?void 0:Zn.find(gi=>gi.kind===349);if(Xr){let gi=AM(Xr.comment);gi&&G0(In,[{kind:3,text:`*
|
|
* `+gi.replace(/\n/g,`
|
|
* `)+`
|
|
`,pos:-1,end:-1,hasTrailingNewLine:!0}])}else ai&&pr(ie,In,ai);return In}}function pr(Pe,ie,Zt){return Pe.enclosingFile&&Pe.enclosingFile===Nr(Zt)?gl(ie,Zt):ie}function pn(Pe,ie,Zt){if(_t(Pe)){if(He(ie))if(ie.out.truncated=!0,Zt){if(Pe.length>2)return[Vt(Pe[0],ie),ie.flags&1?Ib(A.createKeywordTypeNode(133),3,`... ${Pe.length-2} more elided ...`):A.createTypeReferenceNode(`... ${Pe.length-2} more ...`,void 0),Vt(Pe[Pe.length-1],ie)]}else return[ie.flags&1?Ib(A.createKeywordTypeNode(133),3,"elided"):A.createTypeReferenceNode("...",void 0)];let we=!(ie.flags&64)?od():void 0,Ge=[],st=0;for(let Ft of Pe){if(st++,He(ie)&&st+2<Pe.length-1){ie.out.truncated=!0,Ge.push(ie.flags&1?Ib(A.createKeywordTypeNode(133),3,`... ${Pe.length-st} more elided ...`):A.createTypeReferenceNode(`... ${Pe.length-st} more ...`,void 0));let Lt=Vt(Pe[Pe.length-1],ie);Lt&&Ge.push(Lt);break}ie.approximateLength+=2;let tr=Vt(Ft,ie);tr&&(Ge.push(tr),we&&kne(tr)&&we.add(tr.typeName.escapedText,[Ft,Ge.length-1]))}if(we){let Ft=be(ie);ie.flags|=64,we.forEach(tr=>{if(!xne(tr,([Lt],[ir])=>si(Lt,ir)))for(let[Lt,ir]of tr)Ge[ir]=Vt(Lt,ie)}),Ft()}return Ge}}function si(Pe,ie){return Pe===ie||!!Pe.symbol&&Pe.symbol===ie.symbol||!!Pe.aliasSymbol&&Pe.aliasSymbol===ie.aliasSymbol}function $i(Pe,ie,Zt){let sr=Lte(Pe)||"x",we=Vt(Pe.keyType,ie),Ge=A.createParameterDeclaration(void 0,void 0,sr,void 0,we,void 0);return Zt||(Zt=Vt(Pe.type||Le,ie)),!Pe.type&&!(ie.flags&2097152)&&(ie.encounteredError=!0),ie.approximateLength+=sr.length+4,A.createIndexSignature(Pe.isReadonly?[A.createToken(148)]:void 0,[Ge],Zt)}function Qn(Pe,ie,Zt,sr){var we;let Ge,st,Ft=_4e(Pe,!0)[0],tr=Rs(Zt,Pe.declaration,Ft,Pe.typeParameters,Pe.parameters,Pe.mapper);Zt.approximateLength+=3,Zt.flags&32&&Pe.target&&Pe.mapper&&Pe.target.typeParameters?st=Pe.target.typeParameters.map(Zn=>Vt(qi(Zn,Pe.mapper),Zt)):Ge=Pe.typeParameters&&Pe.typeParameters.map(Zn=>jc(Zn,Zt));let Lt=be(Zt);Zt.flags&=-257;let ir=(_t(Ft,Zn=>Zn!==Ft[Ft.length-1]&&!!(Cc(Zn)&32768))?Pe.parameters:Ft).map(Zn=>Kr(Zn,Zt,ie===177)),qr=Zt.flags&33554432?void 0:Ya(Pe,Zt);qr&&ir.unshift(qr),Lt();let fn=ga(Zt,Pe),In=sr?.modifiers;if(ie===186&&Pe.flags&4){let Zn=Jm(In);In=A.createModifiersFromModifierFlags(Zn|64)}let ai=ie===180?A.createCallSignature(Ge,ir,fn):ie===181?A.createConstructSignature(Ge,ir,fn):ie===174?A.createMethodSignature(In,sr?.name??A.createIdentifier(""),sr?.questionToken,Ge,ir,fn):ie===175?A.createMethodDeclaration(In,void 0,sr?.name??A.createIdentifier(""),void 0,Ge,ir,fn,void 0):ie===177?A.createConstructorDeclaration(In,ir,void 0):ie===178?A.createGetAccessorDeclaration(In,sr?.name??A.createIdentifier(""),ir,fn,void 0):ie===179?A.createSetAccessorDeclaration(In,sr?.name??A.createIdentifier(""),ir,void 0):ie===182?A.createIndexSignature(In,ir,fn):ie===318?A.createJSDocFunctionType(ir,fn):ie===185?A.createFunctionTypeNode(Ge,ir,fn??A.createTypeReferenceNode(A.createIdentifier(""))):ie===186?A.createConstructorTypeNode(In,Ge,ir,fn??A.createTypeReferenceNode(A.createIdentifier(""))):ie===263?A.createFunctionDeclaration(In,void 0,sr?.name?Zs(sr.name,Be):A.createIdentifier(""),Ge,ir,fn,void 0):ie===219?A.createFunctionExpression(In,void 0,sr?.name?Zs(sr.name,Be):A.createIdentifier(""),Ge,ir,fn,A.createBlock([])):ie===220?A.createArrowFunction(In,Ge,ir,fn,void 0,A.createBlock([])):w.assertNever(ie);if(st&&(ai.typeArguments=A.createNodeArray(st)),((we=Pe.declaration)==null?void 0:we.kind)===324&&Pe.declaration.parent.kind===340){let Zn=pc(Pe.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(Xr=>Xr.replace(/^\s+/," ")).join(`
|
|
`);Ib(ai,3,Zn,!0)}return tr?.(),ai}function Pi(Pe){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let ie,Zt,sr=!1,we=Pe.tracker,Ge=Pe.trackedSymbols;Pe.trackedSymbols=void 0;let st=Pe.encounteredError;return Pe.tracker=new sae(Pe,{...we.inner,reportCyclicStructureError(){Ft(()=>we.reportCyclicStructureError())},reportInaccessibleThisError(){Ft(()=>we.reportInaccessibleThisError())},reportInaccessibleUniqueSymbolError(){Ft(()=>we.reportInaccessibleUniqueSymbolError())},reportLikelyUnsafeImportRequiredError(ir){Ft(()=>we.reportLikelyUnsafeImportRequiredError(ir))},reportNonSerializableProperty(ir){Ft(()=>we.reportNonSerializableProperty(ir))},reportPrivateInBaseOfClassExpression(ir){Ft(()=>we.reportPrivateInBaseOfClassExpression(ir))},trackSymbol(ir,qr,fn){return(ie??(ie=[])).push([ir,qr,fn]),!1},moduleResolverHost:Pe.tracker.moduleResolverHost},Pe.tracker.moduleResolverHost),{startRecoveryScope:tr,finalizeBoundary:Lt,markError:Ft,hadError:()=>sr};function Ft(ir){sr=!0,ir&&(Zt??(Zt=[])).push(ir)}function tr(){let ir=ie?.length??0,qr=Zt?.length??0;return()=>{sr=!1,ie&&(ie.length=ir),Zt&&(Zt.length=qr)}}function Lt(){return Pe.tracker=we,Pe.trackedSymbols=Ge,Pe.encounteredError=st,Zt?.forEach(ir=>ir()),sr?!1:(ie?.forEach(([ir,qr,fn])=>Pe.tracker.trackSymbol(ir,qr,fn)),!0)}}function Rs(Pe,ie,Zt,sr,we,Ge){let st=hO(Pe),Ft,tr,Lt=Pe.enclosingDeclaration,ir=Pe.mapper;if(Ge&&(Pe.mapper=Ge),Pe.enclosingDeclaration&&ie){let fn=function(In,ai){w.assert(Pe.enclosingDeclaration);let Zn;Nn(Pe.enclosingDeclaration).fakeScopeForSignatureDeclaration===In?Zn=Pe.enclosingDeclaration:Pe.enclosingDeclaration.parent&&Nn(Pe.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===In&&(Zn=Pe.enclosingDeclaration.parent),w.assertOptionalNode(Zn,Bs);let Xr=Zn?.locals??Qs(),gi,_s;if(ai((Wa,cr)=>{if(Zn){let En=Xr.get(Wa);En?_s=Fr(_s,{name:Wa,oldSymbol:En}):gi=Fr(gi,Wa)}Xr.set(Wa,cr)}),Zn)return function(){or(gi,cr=>Xr.delete(cr)),or(_s,cr=>Xr.set(cr.name,cr.oldSymbol))};{let Wa=A.createBlock(Ke);Nn(Wa).fakeScopeForSignatureDeclaration=In,Wa.locals=Xr,Ka(Wa,Pe.enclosingDeclaration),Pe.enclosingDeclaration=Wa}};var qr=fn;Ft=_t(Zt)?fn("params",In=>{if(Zt)for(let ai=0;ai<Zt.length;ai++){let Zn=Zt[ai],Xr=we?.[ai];we&&Xr!==Zn?(In(Zn.escapedName,Z),Xr&&In(Xr.escapedName,Z)):or(Zn.declarations,gi=>{if(Gi(gi)&&Ls(gi.name))return _s(gi.name),!0;return;function _s(cr){or(cr.elements,En=>{switch(En.kind){case 233:return;case 209:return Wa(En);default:return w.assertNever(En)}})}function Wa(cr){if(Ls(cr.name))return _s(cr.name);let En=wn(cr);In(En.escapedName,En)}})||In(Zn.escapedName,Zn)}}):void 0,Pe.flags&4&&_t(sr)&&(tr=fn("typeParams",In=>{for(let ai of sr??Ke){let Zn=lc(ai,Pe).escapedText;In(Zn,ai.symbol)}}))}return()=>{Ft?.(),tr?.(),st(),Pe.enclosingDeclaration=Lt,Pe.mapper=ir}}function Ya(Pe,ie){if(Pe.thisParameter)return Kr(Pe.thisParameter,ie);if(Pe.declaration&&dn(Pe.declaration)){let Zt=nF(Pe.declaration);if(Zt&&Zt.typeExpression)return A.createParameterDeclaration(void 0,void 0,"this",void 0,Vt(a(ie,Zt.typeExpression),ie))}}function es(Pe,ie,Zt){let sr=be(ie);ie.flags&=-513;let we=A.createModifiersFromModifierFlags(hge(Pe)),Ge=lc(Pe,ie),st=ST(Pe),Ft=st&&Vt(st,ie);return sr(),A.createTypeParameterDeclaration(we,Ge,Zt,Ft)}function Zo(Pe,ie,Zt){return!gt(Pe,Zt)&&ie&&a(Zt,ie)===Pe&&ke.tryReuseExistingTypeNode(Zt,ie)||Vt(Pe,Zt)}function jc(Pe,ie,Zt=jp(Pe)){let sr=Zt&&Zo(Zt,iK(Pe),ie);return es(Pe,ie,sr)}function ap(Pe,ie){let Zt=Pe.kind===2||Pe.kind===3?A.createToken(131):void 0,sr=Pe.kind===1||Pe.kind===3?yn(A.createIdentifier(Pe.parameterName),16777216):A.createThisTypeNode(),we=Pe.type&&Vt(Pe.type,ie);return A.createTypePredicateNode(Zt,sr,we)}function Lr(Pe){let ie=$o(Pe,170);if(ie)return ie;if(!oh(Pe))return $o(Pe,342)}function Kr(Pe,ie,Zt){let sr=Lr(Pe),we=an(Pe),Ge=An(ie,sr,we,Pe),st=!(ie.flags&8192)&&Zt&&sr&&yd(sr)?kr(fS(sr),A.cloneNode):void 0,tr=sr&&kg(sr)||Cc(Pe)&32768?A.createToken(26):void 0,Lt=Ni(Pe,sr,ie),qr=sr&&C3(sr)||Cc(Pe)&16384?A.createToken(58):void 0,fn=A.createParameterDeclaration(st,tr,Lt,qr,Ge,void 0);return ie.approximateLength+=kc(Pe).length+3,fn}function Ni(Pe,ie,Zt){return ie&&ie.name?ie.name.kind===80?yn(A.cloneNode(ie.name),16777216):ie.name.kind===167?yn(A.cloneNode(ie.name.right),16777216):sr(ie.name):kc(Pe);function sr(we){return Ge(we);function Ge(st){Zt.tracker.canTrackSymbol&&na(st)&&cme(st)&&cn(st.expression,Zt.enclosingDeclaration,Zt);let Ft=Pr(st,Ge,void 0,void 0,Ge);return Da(Ft)&&(Ft=A.updateBindingElement(Ft,Ft.dotDotDotToken,Ft.propertyName,Ft.name,void 0)),ko(Ft)||(Ft=A.cloneNode(Ft)),yn(Ft,16777217)}}}function cn(Pe,ie,Zt){if(!Zt.tracker.canTrackSymbol)return;let sr=wp(Pe),we=ft(ie,sr.escapedText,1160127,void 0,!0);if(we)Zt.tracker.trackSymbol(we,ie,111551);else{let Ge=ft(sr,sr.escapedText,1160127,void 0,!0);Ge&&Zt.tracker.trackSymbol(Ge,ie,111551)}}function bs(Pe,ie,Zt,sr){return ie.tracker.trackSymbol(Pe,ie.enclosingDeclaration,Zt),io(Pe,ie,Zt,sr)}function io(Pe,ie,Zt,sr){let we;return!(Pe.flags&262144)&&(ie.enclosingDeclaration||ie.flags&64)&&!(ie.internalFlags&4)?(we=w.checkDefined(st(Pe,Zt,!0)),w.assert(we&&we.length>0)):we=[Pe],we;function st(Ft,tr,Lt){let ir=Dv(Ft,ie.enclosingDeclaration,tr,!!(ie.flags&128)),qr;if(!ir||gT(ir[0],ie.enclosingDeclaration,ir.length===1?tr:$d(tr))){let In=mT(ir?ir[0]:Ft,ie.enclosingDeclaration,tr);if(Dr(In)){qr=In.map(Xr=>_t(Xr.declarations,hT)?Xc(Xr,ie):void 0);let ai=In.map((Xr,gi)=>gi);ai.sort(fn);let Zn=ai.map(Xr=>In[Xr]);for(let Xr of Zn){let gi=st(Xr,$d(tr),!1);if(gi){if(Xr.exports&&Xr.exports.get("export=")&&pe(Xr.exports.get("export="),Ft)){ir=gi;break}ir=gi.concat(ir||[C(Xr,Ft)||Ft]);break}}}}if(ir)return ir;if(Lt||!(Ft.flags&6144))return!Lt&&!sr&&or(Ft.declarations,hT)?void 0:[Ft];function fn(In,ai){let Zn=qr[In],Xr=qr[ai];if(Zn&&Xr){let gi=$f(Xr);return $f(Zn)===gi?nj(Zn)-nj(Xr):gi?-1:1}return 0}}}function Uo(Pe,ie){let Zt;return QD(Pe).flags&524384&&(Zt=A.createNodeArray(kr(da(Pe),we=>jc(we,ie)))),Zt}function su(Pe,ie,Zt){var sr;w.assert(Pe&&0<=ie&&ie<Pe.length);let we=Pe[ie],Ge=sa(we);if((sr=Zt.typeParameterSymbolList)!=null&&sr.has(Ge))return;Zt.mustCreateTypeParameterSymbolList&&(Zt.mustCreateTypeParameterSymbolList=!1,Zt.typeParameterSymbolList=new Set(Zt.typeParameterSymbolList)),Zt.typeParameterSymbolList.add(Ge);let st;if(Zt.flags&512&&ie<Pe.length-1){let Ft=we,tr=Pe[ie+1];if(Cc(tr)&1){let Lt=wo(Ft.flags&2097152?ru(Ft):Ft);st=pn(kr(Lt,ir=>jv(ir,tr.links.mapper)),Zt)}else st=Uo(we,Zt)}return st}function Ea(Pe){return LS(Pe.objectType)?Ea(Pe.objectType):Pe}function Xc(Pe,ie,Zt){let sr=$o(Pe,308);if(!sr){let qr=fo(Pe.declarations,fn=>px(fn,Pe));qr&&(sr=$o(qr,308))}if(sr&&sr.moduleName!==void 0)return sr.moduleName;if(!sr&&rae.test(Pe.escapedName))return Pe.escapedName.substring(1,Pe.escapedName.length-1);if(!ie.enclosingFile||!ie.tracker.moduleResolverHost)return rae.test(Pe.escapedName)?Pe.escapedName.substring(1,Pe.escapedName.length-1):Nr(fz(Pe)).fileName;let we=sc(ie.enclosingDeclaration),Ge=lre(we)?_2(we):void 0,st=ie.enclosingFile,Ft=Zt||Ge&&e.getModeForUsageLocation(st,Ge)||st&&e.getDefaultResolutionModeForFile(st),tr=nE(st.path,Ft),Lt=Wn(Pe),ir=Lt.specifierCache&&Lt.specifierCache.get(tr);if(!ir){let qr=!!O.outFile,{moduleResolverHost:fn}=ie.tracker,In=qr?{...O,baseUrl:fn.getCommonSourceDirectory()}:O;ir=Ra(WSe(Pe,Hr,In,st,fn,{importModuleSpecifierPreference:qr?"non-relative":"project-relative",importModuleSpecifierEnding:qr?"minimal":Ft===99?"js":void 0},{overrideImportMode:Zt})),Lt.specifierCache??(Lt.specifierCache=new Map),Lt.specifierCache.set(tr,ir)}return ir}function sl(Pe){let ie=A.createIdentifier(Ai(Pe.escapedName));return Pe.parent?A.createQualifiedName(sl(Pe.parent),ie):ie}function oo(Pe,ie,Zt,sr){let we=bs(Pe,ie,Zt,!(ie.flags&16384)),Ge=Zt===111551;if(_t(we[0].declarations,hT)){let tr=we.length>1?Ft(we,we.length-1,1):void 0,Lt=sr||su(we,0,ie),ir=Nr(sc(ie.enclosingDeclaration)),qr=JM(we[0]),fn,In;if((Ku(O)===3||Ku(O)===99)&&qr?.impliedNodeFormat===99&&qr.impliedNodeFormat!==ir?.impliedNodeFormat&&(fn=Xc(we[0],ie,99),In=A.createImportAttributes(A.createNodeArray([A.createImportAttribute(A.createStringLiteral("resolution-mode"),A.createStringLiteral("import"))]))),fn||(fn=Xc(we[0],ie)),!(ie.flags&67108864)&&Ku(O)!==1&&fn.includes("/node_modules/")){let Zn=fn;if(Ku(O)===3||Ku(O)===99){let Xr=ir?.impliedNodeFormat===99?1:99;fn=Xc(we[0],ie,Xr),fn.includes("/node_modules/")?fn=Zn:In=A.createImportAttributes(A.createNodeArray([A.createImportAttribute(A.createStringLiteral("resolution-mode"),A.createStringLiteral(Xr===99?"import":"require"))]))}In||(ie.encounteredError=!0,ie.tracker.reportLikelyUnsafeImportRequiredError&&ie.tracker.reportLikelyUnsafeImportRequiredError(Zn))}let ai=A.createLiteralTypeNode(A.createStringLiteral(fn));if(ie.approximateLength+=fn.length+10,!tr||xp(tr)){if(tr){let Zn=Be(tr)?tr:tr.right;iv(Zn,void 0)}return A.createImportTypeNode(ai,In,tr,Lt,Ge)}else{let Zn=Ea(tr),Xr=Zn.objectType.typeName;return A.createIndexedAccessTypeNode(A.createImportTypeNode(ai,In,Xr,Lt,Ge),Zn.indexType)}}let st=Ft(we,we.length-1,0);if(LS(st))return st;if(Ge)return A.createTypeQueryNode(st);{let tr=Be(st)?st:st.right,Lt=dk(tr);return iv(tr,void 0),A.createTypeReferenceNode(st,Lt)}function Ft(tr,Lt,ir){let qr=Lt===tr.length-1?sr:su(tr,Lt,ie),fn=tr[Lt],In=tr[Lt-1],ai;if(Lt===0)ie.flags|=16777216,ai=L1(fn,ie),ie.approximateLength+=(ai?ai.length:0)+1,ie.flags^=16777216;else if(In&&Wf(In)){let Xr=Wf(In);Rl(Xr,(gi,_s)=>{if(pe(gi,fn)&&!S3(_s)&&_s!=="export=")return ai=Ai(_s),!0})}if(ai===void 0){let Xr=fo(fn.declarations,Ss);if(Xr&&na(Xr)&&xp(Xr.expression)){let gi=Ft(tr,Lt-1,ir);return xp(gi)?A.createIndexedAccessTypeNode(A.createParenthesizedType(A.createTypeQueryNode(gi)),A.createTypeQueryNode(Xr.expression)):gi}ai=L1(fn,ie)}if(ie.approximateLength+=ai.length+1,!(ie.flags&16)&&In&&Ug(In)&&Ug(In).get(fn.escapedName)&&pe(Ug(In).get(fn.escapedName),fn)){let Xr=Ft(tr,Lt-1,ir);return LS(Xr)?A.createIndexedAccessTypeNode(Xr,A.createLiteralTypeNode(A.createStringLiteral(ai))):A.createIndexedAccessTypeNode(A.createTypeReferenceNode(Xr,qr),A.createLiteralTypeNode(A.createStringLiteral(ai)))}let Zn=yn(A.createIdentifier(ai),16777216);if(qr&&iv(Zn,A.createNodeArray(qr)),Zn.symbol=fn,Lt>ir){let Xr=Ft(tr,Lt-1,ir);return xp(Xr)?A.createQualifiedName(Xr,Zn):w.fail("Impossible construct - an export of an indexed access cannot be reachable")}return Zn}}function x_(Pe,ie,Zt){let sr=ft(ie.enclosingDeclaration,Pe,788968,void 0,!1);return sr&&sr.flags&262144?sr!==Zt.symbol:!1}function lc(Pe,ie){var Zt,sr,we,Ge;if(ie.flags&4&&ie.typeParameterNames){let tr=ie.typeParameterNames.get(nu(Pe));if(tr)return tr}let st=qc(Pe.symbol,ie,788968,!0);if(!(st.kind&80))return A.createIdentifier("(Missing type parameter)");let Ft=(sr=(Zt=Pe.symbol)==null?void 0:Zt.declarations)==null?void 0:sr[0];if(Ft&&Ho(Ft)&&(st=l(ie,st,Ft.name)),ie.flags&4){let tr=st.escapedText,Lt=((we=ie.typeParameterNamesByTextNextNameCount)==null?void 0:we.get(tr))||0,ir=tr;for(;(Ge=ie.typeParameterNamesByText)!=null&&Ge.has(ir)||x_(ir,ie,Pe);)Lt++,ir=`${tr}_${Lt}`;if(ir!==tr){let qr=dk(st);st=A.createIdentifier(ir),iv(st,qr)}ie.mustCreateTypeParametersNamesLookups&&(ie.mustCreateTypeParametersNamesLookups=!1,ie.typeParameterNames=new Map(ie.typeParameterNames),ie.typeParameterNamesByTextNextNameCount=new Map(ie.typeParameterNamesByTextNextNameCount),ie.typeParameterNamesByText=new Set(ie.typeParameterNamesByText)),ie.typeParameterNamesByTextNextNameCount.set(tr,Lt),ie.typeParameterNames.set(nu(Pe),st),ie.typeParameterNamesByText.add(ir)}return st}function qc(Pe,ie,Zt,sr){let we=bs(Pe,ie,Zt);return sr&&we.length!==1&&!ie.encounteredError&&!(ie.flags&65536)&&(ie.encounteredError=!0),Ge(we,we.length-1);function Ge(st,Ft){let tr=su(st,Ft,ie),Lt=st[Ft];Ft===0&&(ie.flags|=16777216);let ir=L1(Lt,ie);Ft===0&&(ie.flags^=16777216);let qr=yn(A.createIdentifier(ir),16777216);return tr&&iv(qr,A.createNodeArray(tr)),qr.symbol=Lt,Ft>0?A.createQualifiedName(Ge(st,Ft-1),qr):qr}}function nd(Pe,ie,Zt){let sr=bs(Pe,ie,Zt);return we(sr,sr.length-1);function we(Ge,st){let Ft=su(Ge,st,ie),tr=Ge[st];st===0&&(ie.flags|=16777216);let Lt=L1(tr,ie);st===0&&(ie.flags^=16777216);let ir=Lt.charCodeAt(0);if(c6(ir)&&_t(tr.declarations,hT)){let qr=Xc(tr,ie);return ie.approximateLength+=2+qr.length,A.createStringLiteral(qr)}if(st===0||GG(Lt,W)){let qr=yn(A.createIdentifier(Lt),16777216);return Ft&&iv(qr,A.createNodeArray(Ft)),qr.symbol=tr,ie.approximateLength+=1+Lt.length,st>0?A.createPropertyAccessExpression(we(Ge,st-1),qr):qr}else{ir===91&&(Lt=Lt.substring(1,Lt.length-1),ir=Lt.charCodeAt(0));let qr;if(c6(ir)&&!(tr.flags&8)){let fn=_d(Lt).replace(/\\./g,In=>In.substring(1));ie.approximateLength+=fn.length+2,qr=A.createStringLiteral(fn,ir===39)}else""+ +Lt===Lt&&(ie.approximateLength+=Lt.length,qr=A.createNumericLiteral(+Lt));if(!qr){let fn=yn(A.createIdentifier(Lt),16777216);Ft&&iv(fn,A.createNodeArray(Ft)),fn.symbol=tr,ie.approximateLength+=Lt.length,qr=fn}return ie.approximateLength+=2,A.createElementAccessExpression(we(Ge,st-1),qr)}}}function JN(Pe){let ie=Ss(Pe);return ie?na(ie)?!!(ts(ie.expression).flags&402653316):xo(ie)?!!(ts(ie.argumentExpression).flags&402653316):ya(ie):!1}function gO(Pe){let ie=Ss(Pe);return!!(ie&&ya(ie)&&(ie.singleQuote||!ko(ie)&&Zi(pc(ie,!1),"'")))}function UN(Pe,ie){let Zt=$X(Pe);if(Zt)if(!!ie.tracker.reportPrivateInBaseOfClassExpression&&ie.flags&2048){let Lt=Ai(Pe.escapedName);return Lt=Lt.replace(/__#\d+@#/g,"__#private@#"),Q6(Lt,xa(O),!1,!0,!!(Pe.flags&8192))}else return Zt;let sr=!!Dr(Pe.declarations)&&Fi(Pe.declarations,JN),we=!!Dr(Pe.declarations)&&Fi(Pe.declarations,gO),Ge=!!(Pe.flags&8192),st=Zf(Pe,ie,we,sr,Ge);if(st)return st;let Ft=Ai(Pe.escapedName);return Q6(Ft,xa(O),we,sr,Ge)}function Zf(Pe,ie,Zt,sr,we){let Ge=Wn(Pe).nameType;if(Ge){if(Ge.flags&384){let st=""+Ge.value;return!af(st,xa(O))&&(sr||!yh(st))?A.createStringLiteral(st,!!Zt):yh(st)&&Zi(st,"-")?A.createComputedPropertyName(A.createPrefixUnaryExpression(41,A.createNumericLiteral(-st))):Q6(st,xa(O),Zt,sr,we)}if(Ge.flags&8192)return A.createComputedPropertyName(nd(Ge.symbol,ie,111551))}}function hO(Pe){let ie=Pe.mustCreateTypeParameterSymbolList,Zt=Pe.mustCreateTypeParametersNamesLookups;Pe.mustCreateTypeParameterSymbolList=!0,Pe.mustCreateTypeParametersNamesLookups=!0;let sr=Pe.typeParameterNames,we=Pe.typeParameterNamesByText,Ge=Pe.typeParameterNamesByTextNextNameCount,st=Pe.typeParameterSymbolList;return()=>{Pe.typeParameterNames=sr,Pe.typeParameterNamesByText=we,Pe.typeParameterNamesByTextNextNameCount=Ge,Pe.typeParameterSymbolList=st,Pe.mustCreateTypeParameterSymbolList=ie,Pe.mustCreateTypeParametersNamesLookups=Zt}}function Wt(Pe,ie){return Pe.declarations&&Bn(Pe.declarations,Zt=>!!T7e(Zt)&&(!ie||!!vr(Zt,sr=>sr===ie)))}function Sr(Pe,ie){if(!(jn(ie)&4)||!Pf(Pe))return!0;cK(Pe);let Zt=Nn(Pe).resolvedSymbol,sr=Zt&&No(Zt);return!sr||sr!==ie.target?!0:Dr(Pe.typeArguments)>=qg(ie.target.typeParameters)}function Gr(Pe){for(;Nn(Pe).fakeScopeForSignatureDeclaration;)Pe=Pe.parent;return Pe}function sn(Pe,ie,Zt){return Zt.flags&8192&&Zt.symbol===Pe&&(!ie.enclosingDeclaration||_t(Pe.declarations,we=>Nr(we)===ie.enclosingFile))&&(ie.flags|=1048576),Vt(Zt,ie)}function An(Pe,ie,Zt,sr){var we;let Ge,st=ie&&(Gi(ie)||c_(ie))&&K9(ie,Pe.enclosingDeclaration),Ft=ie??sr.valueDeclaration??Wt(sr)??((we=sr.declarations)==null?void 0:we[0]);if(!gt(Zt,Pe)&&Ft){let tr=K(Pe,sr,Zt);pb(Ft)?Ge=ke.serializeTypeOfAccessor(Ft,sr,Pe):K8(Ft)&&!ko(Ft)&&!(jn(Zt)&196608)&&(Ge=ke.serializeTypeOfDeclaration(Ft,sr,Pe)),tr()}return Ge||(st&&(Zt=_0(Zt)),Ge=sn(sr,Pe,Zt)),Ge??A.createKeywordTypeNode(133)}function ci(Pe,ie,Zt){return Zt===ie?!0:Pe&&((mp(Pe)||hs(Pe))&&Pe.questionToken||Gi(Pe)&&XQ(Pe))?ed(ie,524288)===Zt:!1}function ga(Pe,ie){let Zt=Pe.flags&256,sr=be(Pe);Zt&&(Pe.flags&=-257);let we,Ge=Xa(ie);if(!(Zt&&xn(Ge))){if(ie.declaration&&!ko(ie.declaration)&&!gt(Ge,Pe)){let st=wn(ie.declaration),Ft=K(Pe,st,Ge);we=ke.serializeReturnTypeForSignature(ie.declaration,st,Pe),Ft()}we||(we=ba(Pe,ie,Ge))}return!we&&!Zt&&(we=A.createKeywordTypeNode(133)),sr(),we}function ba(Pe,ie,Zt){let sr=Pe.suppressReportInferenceFallback;Pe.suppressReportInferenceFallback=!0;let we=X_(ie),Ge=we?ap(Pe.mapper?qRe(we,Pe.mapper):we,Pe):Vt(Zt,Pe);return Pe.suppressReportInferenceFallback=sr,Ge}function Io(Pe,ie,Zt=ie.enclosingDeclaration){let sr=!1,we=wp(Pe);if(dn(Pe)&&(rk(we)||fh(we.parent)||Ip(we.parent)&&Iz(we.parent.left)&&rk(we.parent.right)))return sr=!0,{introducesError:sr,node:Pe};let Ge=lN(Pe),st;if(Sb(we))return st=wn(fp(we,!1,!1)),n0(st,we,Ge,!1).accessibility!==0&&(sr=!0,ie.tracker.reportInaccessibleThisError()),{introducesError:sr,node:Ft(Pe)};if(st=Pc(we,Ge,!0,!0),ie.enclosingDeclaration&&!(st&&st.flags&262144)){st=yt(st);let tr=Pc(we,Ge,!0,!0,ie.enclosingDeclaration);if(tr===Z||tr===void 0&&st!==void 0||tr&&st&&!pe(yt(tr),st))return tr!==Z&&ie.tracker.reportInferenceFallback(Pe),sr=!0,{introducesError:sr,node:Pe,sym:st};st=tr}if(st)return st.flags&1&&st.valueDeclaration&&(L0(st.valueDeclaration)||c_(st.valueDeclaration))?{introducesError:sr,node:Ft(Pe)}:(!(st.flags&262144)&&!Ig(Pe)&&n0(st,Zt,Ge,!1).accessibility!==0?(ie.tracker.reportInferenceFallback(Pe),sr=!0):ie.tracker.trackSymbol(st,Zt,Ge),{introducesError:sr,node:Ft(Pe)});return{introducesError:sr,node:Pe};function Ft(tr){if(tr===we){let ir=No(st),qr=st.flags&262144?lc(ir,ie):A.cloneNode(tr);return qr.symbol=st,l(ie,yn(qr,16777216),tr)}let Lt=Pr(tr,ir=>Ft(ir),void 0);return l(ie,Lt,tr)}}function zl(Pe,ie,Zt,sr){let we=Zt?111551:788968,Ge=Pc(ie,we,!0);if(!Ge)return;let st=Ge.flags&2097152?ru(Ge):Ge;if(n0(Ge,Pe.enclosingDeclaration,we,!1).accessibility===0)return oo(st,Pe,we,sr)}function op(Pe,ie){let Zt=a(Pe,ie,!0);if(!Zt)return!1;if(dn(ie)&&Yh(ie)){jRe(ie);let sr=Nn(ie).resolvedSymbol;return!sr||!(!ie.isTypeOf&&!(sr.flags&788968)||!(Dr(ie.typeArguments)>=qg(da(sr))))}if(Pf(ie)){if(Nd(ie))return!1;let sr=Nn(ie).resolvedSymbol;if(!sr)return!1;if(sr.flags&262144){let we=No(sr);return!(Pe.mapper&&jv(we,Pe.mapper)!==we)}if(KP(ie))return Sr(ie,Zt)&&!H4e(ie)&&!!(sr.flags&788968)}if(J0(ie)&&ie.operator===158&&ie.type.kind===155){let sr=Pe.enclosingDeclaration&&Gr(Pe.enclosingDeclaration);return!!vr(ie,we=>we===sr)}return!0}function sf(Pe,ie,Zt){let sr=a(Pe,ie);if(Zt&&!td(sr,we=>!!(we.flags&32768))&&op(Pe,ie)){let we=ke.tryReuseExistingTypeNode(Pe,ie);if(we)return A.createUnionTypeNode([we,A.createKeywordTypeNode(157)])}return Vt(sr,Pe)}function Z1(Pe,ie){var Zt;let sr=L7e(A.createPropertyDeclaration,175,!0),we=L7e((Ct,nn,pi,hi)=>A.createPropertySignature(Ct,nn,pi,hi),174,!1),Ge=ie.enclosingDeclaration,st=[],Ft=new Set,tr=[],Lt=ie;ie={...Lt,usedSymbolNames:new Set(Lt.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Zt=Lt.remappedSymbolReferences)==null?void 0:Zt.entries()),tracker:void 0};let ir={...Lt.tracker.inner,trackSymbol:(Ct,nn,pi)=>{var hi,kn;if((hi=ie.remappedSymbolNames)!=null&&hi.has(sa(Ct)))return!1;if(n0(Ct,nn,pi,!1).accessibility===0){let Ta=io(Ct,ie,pi);if(!(Ct.flags&4)){let Os=Ta[0],Ti=Nr(Lt.enclosingDeclaration);_t(Os.declarations,ia=>Nr(ia)===Ti)&&Na(Os)}}else if((kn=Lt.tracker.inner)!=null&&kn.trackSymbol)return Lt.tracker.inner.trackSymbol(Ct,nn,pi);return!1}};ie.tracker=new sae(ie,ir,Lt.tracker.moduleResolverHost),Rl(Pe,(Ct,nn)=>{let pi=Ai(nn);Xg(Ct,pi)});let qr=!ie.bundled,fn=Pe.get("export=");return fn&&Pe.size>1&&fn.flags&2098688&&(Pe=Qs(),Pe.set("export=",fn)),En(Pe),_s(st);function In(Ct){return!!Ct&&Ct.kind===80}function ai(Ct){return Qc(Ct)?Mn(kr(Ct.declarationList.declarations,Ss),In):Mn([Ss(Ct)],In)}function Zn(Ct){let nn=Bn(Ct,Qo),pi=Tc(Ct,el),hi=pi!==-1?Ct[pi]:void 0;if(hi&&nn&&nn.isExportEquals&&Be(nn.expression)&&Be(hi.name)&&Fn(hi.name)===Fn(nn.expression)&&hi.body&&Qm(hi.body)){let kn=Mn(Ct,Os=>!!(Mu(Os)&32)),pa=hi.name,Ta=hi.body;if(Dr(kn)&&(hi=A.updateModuleDeclaration(hi,hi.modifiers,hi.name,Ta=A.updateModuleBlock(Ta,A.createNodeArray([...hi.body.statements,A.createExportDeclaration(void 0,!1,A.createNamedExports(kr(Ma(kn,Os=>ai(Os)),Os=>A.createExportSpecifier(!1,void 0,Os))),void 0)]))),Ct=[...Ct.slice(0,pi),hi,...Ct.slice(pi+1)]),!Bn(Ct,Os=>Os!==hi&&DM(Os,pa))){st=[];let Os=!_t(Ta.statements,Ti=>ri(Ti,32)||Qo(Ti)||tl(Ti));or(Ta.statements,Ti=>{ms(Ti,Os?32:0)}),Ct=[...Mn(Ct,Ti=>Ti!==hi&&Ti!==nn),...st]}}return Ct}function Xr(Ct){let nn=Mn(Ct,hi=>tl(hi)&&!hi.moduleSpecifier&&!!hi.exportClause&&G_(hi.exportClause));Dr(nn)>1&&(Ct=[...Mn(Ct,kn=>!tl(kn)||!!kn.moduleSpecifier||!kn.exportClause),A.createExportDeclaration(void 0,!1,A.createNamedExports(Ma(nn,kn=>Zs(kn.exportClause,G_).elements)),void 0)]);let pi=Mn(Ct,hi=>tl(hi)&&!!hi.moduleSpecifier&&!!hi.exportClause&&G_(hi.exportClause));if(Dr(pi)>1){let hi=vw(pi,kn=>ya(kn.moduleSpecifier)?">"+kn.moduleSpecifier.text:">");if(hi.length!==pi.length)for(let kn of hi)kn.length>1&&(Ct=[...Mn(Ct,pa=>!kn.includes(pa)),A.createExportDeclaration(void 0,!1,A.createNamedExports(Ma(kn,pa=>Zs(pa.exportClause,G_).elements)),kn[0].moduleSpecifier)])}return Ct}function gi(Ct){let nn=Tc(Ct,pi=>tl(pi)&&!pi.moduleSpecifier&&!pi.attributes&&!!pi.exportClause&&G_(pi.exportClause));if(nn>=0){let pi=Ct[nn],hi=Ji(pi.exportClause.elements,kn=>{if(!kn.propertyName&&kn.name.kind!==11){let pa=kn.name,Ta=NO(Ct),Os=Mn(Ta,Ti=>DM(Ct[Ti],pa));if(Dr(Os)&&Fi(Os,Ti=>K6(Ct[Ti]))){for(let Ti of Os)Ct[Ti]=Wa(Ct[Ti]);return}}return kn});Dr(hi)?Ct[nn]=A.updateExportDeclaration(pi,pi.modifiers,pi.isTypeOnly,A.updateNamedExports(pi.exportClause,hi),pi.moduleSpecifier,pi.attributes):rb(Ct,nn)}return Ct}function _s(Ct){return Ct=Zn(Ct),Ct=Xr(Ct),Ct=gi(Ct),Ge&&(Li(Ge)&&xf(Ge)||el(Ge))&&(!_t(Ct,LM)||!cte(Ct)&&_t(Ct,_F))&&Ct.push(d4(A)),Ct}function Wa(Ct){let nn=(Mu(Ct)|32)&-129;return A.replaceModifiers(Ct,nn)}function cr(Ct){let nn=Mu(Ct)&-33;return A.replaceModifiers(Ct,nn)}function En(Ct,nn,pi){nn||tr.push(new Map);let hi=0,kn=Array.from(Ct.values());for(let pa of kn){if(hi++,he(ie)&&hi+2<Ct.size-1){ie.out.truncated=!0,st.push(_w(`... (${Ct.size-hi} more ...)`)),ks(kn[kn.length-1],!1,!!pi);break}ks(pa,!1,!!pi)}nn||(tr[tr.length-1].forEach(pa=>{ks(pa,!0,!!pi)}),tr.pop())}function ks(Ct,nn,pi){ao(an(Ct));let hi=Ja(Ct);if(Ft.has(sa(hi)))return;if(Ft.add(sa(hi)),!nn||Dr(Ct.declarations)&&_t(Ct.declarations,pa=>!!vr(pa,Ta=>Ta===Ge))){let pa=hO(ie);ie.tracker.pushErrorFallbackNode(Bn(Ct.declarations,Ta=>Nr(Ta)===ie.enclosingFile)),ss(Ct,nn,pi),ie.tracker.popErrorFallbackNode(),pa()}}function ss(Ct,nn,pi,hi=Ct.escapedName){var kn,pa,Ta,Os,Ti,ia,kl;let ic=Ai(hi),Uu=hi==="default";if(nn&&!(ie.flags&131072)&&y2(ic)&&!Uu){ie.encounteredError=!0;return}let Lc=Uu&&!!(Ct.flags&-113||Ct.flags&16&&Dr(ao(an(Ct))))&&!(Ct.flags&2097152),Vo=!Lc&&!nn&&y2(ic)&&!Uu;(Lc||Vo)&&(nn=!0);let Sc=(nn?0:32)|(Uu&&!Lc?2048:0),Ec=Ct.flags&1536&&Ct.flags&7&&hi!=="export=",C_=Ec&&Oye(an(Ct),Ct);if((Ct.flags&8208||C_)&&y0(an(Ct),Ct,Xg(Ct,ic),Sc),Ct.flags&524288&&Sl(Ct,ic,Sc),Ct.flags&98311&&hi!=="export="&&!(Ct.flags&4194304)&&!(Ct.flags&32)&&!(Ct.flags&8192)&&!C_)if(pi)eW(Ct)&&(Vo=!1,Lc=!1);else{let al=an(Ct),Bp=Xg(Ct,ic);if(al.symbol&&al.symbol!==Ct&&al.symbol.flags&16&&_t(al.symbol.declarations,Cb)&&((kn=al.symbol.members)!=null&&kn.size||(pa=al.symbol.exports)!=null&&pa.size))ie.remappedSymbolReferences||(ie.remappedSymbolReferences=new Map),ie.remappedSymbolReferences.set(sa(al.symbol),Ct),ss(al.symbol,nn,pi,hi),ie.remappedSymbolReferences.delete(sa(al.symbol));else if(!(Ct.flags&16)&&Oye(al,Ct))y0(al,Ct,Bp,Sc);else{let Gv=Ct.flags&2?iw(Ct)?2:1:(Ta=Ct.parent)!=null&&Ta.valueDeclaration&&Li((Os=Ct.parent)==null?void 0:Os.valueDeclaration)?2:void 0,w_=Lc||!(Ct.flags&4)?Bp:rW(Bp,Ct),Uh=Ct.declarations&&Bn(Ct.declarations,b0=>li(b0));Uh&&lu(Uh.parent)&&Uh.parent.declarations.length===1&&(Uh=Uh.parent.parent);let v0=(Ti=Ct.declarations)==null?void 0:Ti.find(Ln);if(v0&&vn(v0.parent)&&Be(v0.parent.right)&&((ia=al.symbol)!=null&&ia.valueDeclaration)&&Li(al.symbol.valueDeclaration)){let b0=Bp===v0.parent.right.escapedText?void 0:v0.parent.right;ie.approximateLength+=12+(((kl=b0?.escapedText)==null?void 0:kl.length)??0),ms(A.createExportDeclaration(void 0,!1,A.createNamedExports([A.createExportSpecifier(!1,b0,Bp)])),0),ie.tracker.trackSymbol(al.symbol,ie.enclosingDeclaration,111551)}else{let b0=l(ie,A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(w_,void 0,An(ie,void 0,al,Ct))],Gv)),Uh);ie.approximateLength+=7+w_.length,ms(b0,w_!==Bp?Sc&-33:Sc),w_!==Bp&&!nn&&(ie.approximateLength+=16+w_.length+Bp.length,ms(A.createExportDeclaration(void 0,!1,A.createNamedExports([A.createExportSpecifier(!1,w_,Bp)])),0),Vo=!1,Lc=!1)}}}if(Ct.flags&384&&RT(Ct,ic,Sc),Ct.flags&32&&(Ct.flags&4&&Ct.valueDeclaration&&vn(Ct.valueDeclaration.parent)&&Zc(Ct.valueDeclaration.parent.right)?j7e(Ct,Xg(Ct,ic),Sc):Mye(Ct,Xg(Ct,ic),Sc)),(Ct.flags&1536&&(!Ec||By(Ct))||C_)&&tS(Ct,ic,Sc),Ct.flags&64&&!(Ct.flags&32)&&Tl(Ct,ic,Sc),Ct.flags&2097152&&j7e(Ct,Xg(Ct,ic),Sc),Ct.flags&4&&Ct.escapedName==="export="&&eW(Ct),Ct.flags&8388608&&Ct.declarations)for(let al of Ct.declarations){let Bp=np(al,al.moduleSpecifier);if(!Bp)continue;let Gv=al.isTypeOnly,w_=Xc(Bp,ie);ie.approximateLength+=17+w_.length,ms(A.createExportDeclaration(void 0,Gv,void 0,A.createStringLiteral(w_)),0)}if(Lc){let al=Xg(Ct,ic);ie.approximateLength+=16+al.length,ms(A.createExportAssignment(void 0,!1,A.createIdentifier(al)),0)}else if(Vo){let al=Xg(Ct,ic);ie.approximateLength+=22+ic.length+al.length,ms(A.createExportDeclaration(void 0,!1,A.createNamedExports([A.createExportSpecifier(!1,al,ic)])),0)}}function Na(Ct){if(_t(Ct.declarations,L0))return;w.assertIsDefined(tr[tr.length-1]),rW(Ai(Ct.escapedName),Ct);let nn=!!(Ct.flags&2097152)&&!_t(Ct.declarations,pi=>!!vr(pi,tl)||Ag(pi)||Dl(pi)&&!ay(pi.moduleReference));tr[nn?0:tr.length-1].set(sa(Ct),Ct)}function Za(Ct){return Li(Ct)&&(xf(Ct)||M_(Ct))||pp(Ct)&&!Cg(Ct)}function ms(Ct,nn){if(yd(Ct)){let pi=Mu(Ct),hi=0,kn=ie.enclosingDeclaration&&(fd(ie.enclosingDeclaration)?Nr(ie.enclosingDeclaration):ie.enclosingDeclaration);nn&32&&kn&&(Za(kn)||el(kn))&&K6(Ct)&&(hi|=32),qr&&!(hi&32)&&(!kn||!(kn.flags&33554432))&&(H0(Ct)||Qc(Ct)||Gc(Ct)||hl(Ct)||el(Ct))&&(hi|=128),nn&2048&&(hl(Ct)||uu(Ct)||Gc(Ct))&&(hi|=2048),hi&&(Ct=A.replaceModifiers(Ct,hi|pi)),ie.approximateLength+=tW(hi|pi)}st.push(Ct)}function Sl(Ct,nn,pi){var hi;let kn=X6e(Ct),pa=Wn(Ct).typeParameters,Ta=kr(pa,Lc=>jc(Lc,ie)),Os=(hi=Ct.declarations)==null?void 0:hi.find(fd),Ti=AM(Os?Os.comment||Os.parent.comment:void 0),ia=be(ie);ie.flags|=8388608;let kl=ie.enclosingDeclaration;ie.enclosingDeclaration=Os;let ic=Os&&Os.typeExpression&&K0(Os.typeExpression)&&ke.tryReuseExistingTypeNode(ie,Os.typeExpression.type)||Vt(kn,ie),Uu=Xg(Ct,nn);ie.approximateLength+=8+(Ti?.length??0)+Uu.length,ms(G0(A.createTypeAliasDeclaration(void 0,Uu,Ta,ic),Ti?[{kind:3,text:`*
|
|
* `+Ti.replace(/\n/g,`
|
|
* `)+`
|
|
`,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),pi),ia(),ie.enclosingDeclaration=kl}function Tl(Ct,nn,pi){let hi=Xg(Ct,nn);ie.approximateLength+=14+hi.length;let kn=K_(Ct),pa=da(Ct),Ta=kr(pa,Vo=>jc(Vo,ie)),Os=Qd(kn),Ti=Dr(Os)?ma(Os):void 0,ia=Pu(ao(kn),!1,Ti),kl=Fye(0,kn,Ti,180),ic=Fye(1,kn,Ti,181),Uu=B7e(kn,Ti),Lc=Dr(Os)?[A.createHeritageClause(96,Ji(Os,Vo=>jye(Vo,111551)))]:void 0;ms(A.createInterfaceDeclaration(void 0,hi,Ta,Lc,[...Uu,...ic,...kl,...ia]),pi)}function Pu(Ct,nn,pi,hi){let kn=[],pa=0;for(let Ta of Ct){if(pa++,he(ie)&&pa+2<Ct.length-1){ie.out.truncated=!0;let Ti=cp(`... ${Ct.length-pa} more ... `,nn);kn.push(Ti);let ia=nn?sr(Ct[Ct.length-1],hi,pi):W7e(Ct[Ct.length-1],pi);gs(ia)?kn.push(...ia):kn.push(ia);break}ie.approximateLength+=1;let Os=nn?sr(Ta,hi,pi):W7e(Ta,pi);gs(Os)?kn.push(...Os):kn.push(Os)}return kn}function cp(Ct,nn){return ie.flags&1?Ib(A.createNotEmittedTypeElement(),3,Ct):nn?A.createPropertyDeclaration(void 0,Ct,void 0,void 0,void 0):A.createPropertySignature(void 0,Ct,void 0,void 0)}function Wp(Ct){let nn=ds(Wf(Ct).values()),pi=Ja(Ct);if(pi!==Ct){let hi=new Set(nn);for(let kn of Wf(pi).values())rf(nl(kn))&111551||hi.add(kn);nn=ds(hi)}return Mn(nn,hi=>KD(hi)&&af(hi.escapedName,99))}function By(Ct){return Fi(Wp(Ct),nn=>!(rf(nl(nn))&111551))}function tS(Ct,nn,pi){let hi=Wp(Ct),kn=eS(ie),pa=uM(hi,Ti=>Ti.parent&&Ti.parent===Ct||kn?"real":"merged"),Ta=pa.get("real")||Ke,Os=pa.get("merged")||Ke;if(Dr(Ta)||kn){let Ti;if(kn){let ia=ie.flags;ie.flags|=514,Ti=f(Ct,ie,-1),ie.flags=ia}else{let ia=Xg(Ct,nn);Ti=A.createIdentifier(ia),ie.approximateLength+=ia.length}Kg(Ta,Ti,pi,!!(Ct.flags&67108880))}if(Dr(Os)){let Ti=Nr(ie.enclosingDeclaration),ia=Xg(Ct,nn),kl=A.createModuleBlock([A.createExportDeclaration(void 0,!1,A.createNamedExports(Ji(Mn(Os,ic=>ic.escapedName!=="export="),ic=>{var Uu,Lc;let Vo=Ai(ic.escapedName),Sc=Xg(ic,Vo),Ec=ic.declarations&&tf(ic);if(Ti&&(Ec?Ti!==Nr(Ec):!_t(ic.declarations,Bp=>Nr(Bp)===Ti))){(Lc=(Uu=ie.tracker)==null?void 0:Uu.reportNonlocalAugmentation)==null||Lc.call(Uu,Ti,Ct,ic);return}let C_=Ec&&N1(Ec,!0);Na(C_||ic);let al=C_?Xg(C_,Ai(C_.escapedName)):Sc;return A.createExportSpecifier(!1,Vo===al?void 0:al,Vo)})))]);ms(A.createModuleDeclaration(void 0,A.createIdentifier(ia),kl,32),0)}}function RT(Ct,nn,pi){let hi=Xg(Ct,nn);ie.approximateLength+=9+hi.length;let kn=[],pa=Mn(ao(an(Ct)),Os=>!!(Os.flags&8)),Ta=0;for(let Os of pa){if(Ta++,he(ie)&&Ta+2<pa.length-1){ie.out.truncated=!0,kn.push(A.createEnumMember(` ... ${pa.length-Ta} more ... `));let Lc=pa[pa.length-1],Vo=Lc.declarations&&Lc.declarations[0]&&oy(Lc.declarations[0])?zX(Lc.declarations[0]):void 0,Sc=Vo===void 0?void 0:typeof Vo=="string"?A.createStringLiteral(Vo):A.createNumericLiteral(Vo),Ec=Ai(Lc.escapedName),C_=A.createEnumMember(Ec,Sc);kn.push(C_);break}let Ti=Os.declarations&&Os.declarations[0]&&oy(Os.declarations[0])?Os.declarations[0]:void 0,ia,kl;if(eS(ie)&&Ti&&Ti.initializer)ia=to(Ti.initializer),kl=Ti.initializer.end-Ti.initializer.pos;else{let Lc=Ti&&zX(Ti);ia=Lc===void 0?void 0:typeof Lc=="string"?A.createStringLiteral(Lc):A.createNumericLiteral(Lc),kl=ia?.text.length??0}let ic=Ai(Os.escapedName);ie.approximateLength+=4+ic.length+kl;let Uu=A.createEnumMember(ic,ia);kn.push(Uu)}ms(A.createEnumDeclaration(A.createModifiersFromModifierFlags(qhe(Ct)?4096:0),hi,kn),pi)}function y0(Ct,nn,pi,hi){let kn=Gs(Ct,0);for(let pa of kn){ie.approximateLength+=1;let Ta=Qn(pa,263,ie,{name:A.createIdentifier(pi)});ms(l(ie,Ta,VN(pa)),hi)}if(!(nn.flags&1536&&nn.exports&&nn.exports.size)){let pa=Mn(ao(Ct),KD);ie.approximateLength+=pi.length,Kg(pa,A.createIdentifier(pi),hi,!0)}}function _w(Ct){return ie.flags&1?Ib(A.createEmptyStatement(),3,Ct):A.createExpressionStatement(A.createIdentifier(Ct))}function VN(Ct){if(Ct.declaration&&Ct.declaration.parent){if(vn(Ct.declaration.parent)&&Hc(Ct.declaration.parent)===5)return Ct.declaration.parent;if(li(Ct.declaration.parent)&&Ct.declaration.parent.parent)return Ct.declaration.parent.parent}return Ct.declaration}function Kg(Ct,nn,pi,hi){let kn=Be(nn)?32:0,pa=eS(ie);if(Dr(Ct)){ie.approximateLength+=14;let Os=uM(Ct,Ec=>!Dr(Ec.declarations)||_t(Ec.declarations,C_=>Nr(C_)===Nr(ie.enclosingDeclaration))||pa?"local":"remote").get("local")||Ke,Ti=Z0.createModuleDeclaration(void 0,nn,A.createModuleBlock([]),kn);Ka(Ti,Ge),Ti.locals=Qs(Ct),Ti.symbol=Ct[0].parent;let ia=st;st=[];let kl=qr;qr=!1;let ic={...ie,enclosingDeclaration:Ti},Uu=ie;ie=ic,En(Qs(Os),hi,!0),ie=Uu,qr=kl;let Lc=st;st=ia;let Vo=kr(Lc,Ec=>Qo(Ec)&&!Ec.isExportEquals&&Be(Ec.expression)?A.createExportDeclaration(void 0,!1,A.createNamedExports([A.createExportSpecifier(!1,Ec.expression,A.createIdentifier("default"))])):Ec),Sc=Fi(Vo,Ec=>ri(Ec,32))?kr(Vo,cr):Vo;Ti=A.updateModuleDeclaration(Ti,Ti.modifiers,Ti.name,A.createModuleBlock(Sc)),ms(Ti,pi)}else pa&&(ie.approximateLength+=14,ms(A.createModuleDeclaration(void 0,nn,A.createModuleBlock([]),kn),pi))}function KD(Ct){return!!(Ct.flags&2887656)||!(Ct.flags&4194304||Ct.escapedName==="prototype"||Ct.valueDeclaration&&Ks(Ct.valueDeclaration)&&ni(Ct.valueDeclaration.parent))}function Z9(Ct){let nn=Ji(Ct,pi=>{let hi=ie.enclosingDeclaration;ie.enclosingDeclaration=pi;let kn=pi.expression;if(mo(kn)){if(Be(kn)&&Fn(kn)==="")return pa(void 0);let Ta;if({introducesError:Ta,node:kn}=Io(kn,ie),Ta)return pa(void 0)}return pa(A.createExpressionWithTypeArguments(kn,kr(pi.typeArguments,Ta=>ke.tryReuseExistingTypeNode(ie,Ta)||Vt(a(ie,Ta),ie))));function pa(Ta){return ie.enclosingDeclaration=hi,Ta}});if(nn.length===Ct.length)return nn}function Mye(Ct,nn,pi){var hi,kn;ie.approximateLength+=9+nn.length;let pa=(hi=Ct.declarations)==null?void 0:hi.find(ni),Ta=ie.enclosingDeclaration;ie.enclosingDeclaration=pa||Ta;let Os=da(Ct),Ti=kr(Os,Jv=>jc(Jv,ie));or(Os,Jv=>ie.approximateLength+=kc(Jv.symbol).length);let ia=zf(K_(Ct)),kl=Qd(ia),ic=pa&&Qw(pa),Uu=ic&&Z9(ic)||Ji(PD(ia),byt),Lc=an(Ct),Vo=!!((kn=Lc.symbol)!=null&&kn.valueDeclaration)&&ni(Lc.symbol.valueDeclaration),Sc=Vo?Iy(Lc):Le;ie.approximateLength+=(Dr(kl)?8:0)+(Dr(Uu)?11:0);let Ec=[...Dr(kl)?[A.createHeritageClause(96,kr(kl,Jv=>vyt(Jv,Sc,nn)))]:[],...Dr(Uu)?[A.createHeritageClause(119,Uu)]:[]],C_=ngt(ia,kl,ao(ia)),al=Mn(C_,Jv=>!Y9(Jv)),Bp=_t(C_,Y9),Gv=Bp?eS(ie)?Pu(Mn(C_,Y9),!0,kl[0],!1):[A.createPropertyDeclaration(void 0,A.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:Ke;Bp&&!eS(ie)&&(ie.approximateLength+=9);let w_=Pu(al,!0,kl[0],!1),Uh=Pu(Mn(ao(Lc),Jv=>!(Jv.flags&4194304)&&Jv.escapedName!=="prototype"&&!KD(Jv)),!0,Sc,!0),v0=!Vo&&!!Ct.valueDeclaration&&dn(Ct.valueDeclaration)&&!_t(Gs(Lc,1));v0&&(ie.approximateLength+=21);let b0=v0?[A.createConstructorDeclaration(A.createModifiersFromModifierFlags(2),[],void 0)]:Fye(1,Lc,Sc,177),Syt=B7e(ia,kl[0]);ie.enclosingDeclaration=Ta,ms(l(ie,A.createClassDeclaration(void 0,nn,Ti,Ec,[...Syt,...Uh,...b0,...w_,...Gv]),Ct.declarations&&Mn(Ct.declarations,Jv=>hl(Jv)||Zc(Jv))[0]),pi)}function Rye(Ct){return fo(Ct,nn=>{if(gp(nn)||Xu(nn))return gb(nn.propertyName||nn.name);if(vn(nn)||Qo(nn)){let pi=Qo(nn)?nn.expression:nn.right;if(Ln(pi))return Fn(pi.name)}if(kv(nn)){let pi=Ss(nn);if(pi&&Be(pi))return Fn(pi)}})}function j7e(Ct,nn,pi){var hi,kn,pa,Ta,Os;let Ti=tf(Ct);if(!Ti)return w.fail();let ia=Ja(N1(Ti,!0));if(!ia)return;let kl=qM(ia)&&Rye(Ct.declarations)||Ai(ia.escapedName);kl==="export="&&_e&&(kl="default");let ic=Xg(ia,kl);switch(Na(ia),Ti.kind){case 209:if(((kn=(hi=Ti.parent)==null?void 0:hi.parent)==null?void 0:kn.kind)===261){let Vo=Xc(ia.parent||ia,ie),{propertyName:Sc}=Ti,Ec=Sc&&Be(Sc)?Fn(Sc):void 0;ie.approximateLength+=24+nn.length+Vo.length+(Ec?.length??0),ms(A.createImportDeclaration(void 0,A.createImportClause(void 0,void 0,A.createNamedImports([A.createImportSpecifier(!1,Ec?A.createIdentifier(Ec):void 0,A.createIdentifier(nn))])),A.createStringLiteral(Vo),void 0),0);break}w.failBadSyntaxKind(((pa=Ti.parent)==null?void 0:pa.parent)||Ti,"Unhandled binding element grandparent kind in declaration serialization");break;case 305:((Os=(Ta=Ti.parent)==null?void 0:Ta.parent)==null?void 0:Os.kind)===227&&qN(Ai(Ct.escapedName),ic);break;case 261:if(Ln(Ti.initializer)){let Vo=Ti.initializer,Sc=A.createUniqueName(nn),Ec=Xc(ia.parent||ia,ie);ie.approximateLength+=22+Ec.length+Fn(Sc).length,ms(A.createImportEqualsDeclaration(void 0,!1,Sc,A.createExternalModuleReference(A.createStringLiteral(Ec))),0),ie.approximateLength+=12+nn.length+Fn(Sc).length+Fn(Vo.name).length,ms(A.createImportEqualsDeclaration(void 0,!1,A.createIdentifier(nn),A.createQualifiedName(Sc,Vo.name)),pi);break}case 272:if(ia.escapedName==="export="&&_t(ia.declarations,Vo=>Li(Vo)&&M_(Vo))){eW(Ct);break}let Uu=!(ia.flags&512)&&!li(Ti);ie.approximateLength+=11+nn.length+Ai(ia.escapedName).length,ms(A.createImportEqualsDeclaration(void 0,!1,A.createIdentifier(nn),Uu?qc(ia,ie,-1,!1):A.createExternalModuleReference(A.createStringLiteral(Xc(ia,ie)))),Uu?pi:0);break;case 271:ms(A.createNamespaceExportDeclaration(Fn(Ti.name)),0);break;case 274:{let Vo=Xc(ia.parent||ia,ie),Sc=ie.bundled?A.createStringLiteral(Vo):Ti.parent.moduleSpecifier,Ec=ac(Ti.parent)?Ti.parent.attributes:void 0,C_=Zm(Ti.parent);ie.approximateLength+=14+nn.length+3+(C_?4:0),ms(A.createImportDeclaration(void 0,A.createImportClause(C_?156:void 0,A.createIdentifier(nn),void 0),Sc,Ec),0);break}case 275:{let Vo=Xc(ia.parent||ia,ie),Sc=ie.bundled?A.createStringLiteral(Vo):Ti.parent.parent.moduleSpecifier,Ec=Zm(Ti.parent.parent);ie.approximateLength+=19+nn.length+3+(Ec?4:0),ms(A.createImportDeclaration(void 0,A.createImportClause(Ec?156:void 0,void 0,A.createNamespaceImport(A.createIdentifier(nn))),Sc,Ti.parent.attributes),0);break}case 281:ie.approximateLength+=19+nn.length+3,ms(A.createExportDeclaration(void 0,!1,A.createNamespaceExport(A.createIdentifier(nn)),A.createStringLiteral(Xc(ia,ie))),0);break;case 277:{let Vo=Xc(ia.parent||ia,ie),Sc=ie.bundled?A.createStringLiteral(Vo):Ti.parent.parent.parent.moduleSpecifier,Ec=Zm(Ti.parent.parent.parent);ie.approximateLength+=19+nn.length+3+(Ec?4:0),ms(A.createImportDeclaration(void 0,A.createImportClause(Ec?156:void 0,void 0,A.createNamedImports([A.createImportSpecifier(!1,nn!==kl?A.createIdentifier(kl):void 0,A.createIdentifier(nn))])),Sc,Ti.parent.parent.parent.attributes),0);break}case 282:let Lc=Ti.parent.parent.moduleSpecifier;if(Lc){let Vo=Ti.propertyName;Vo&&xg(Vo)&&(kl="default")}qN(Ai(Ct.escapedName),Lc?kl:ic,Lc&&Ha(Lc)?A.createStringLiteral(Lc.text):void 0);break;case 278:eW(Ct);break;case 227:case 212:case 213:Ct.escapedName==="default"||Ct.escapedName==="export="?eW(Ct):qN(nn,ic);break;default:return w.failBadSyntaxKind(Ti,"Unhandled alias declaration kind in symbol serializer!")}}function qN(Ct,nn,pi){ie.approximateLength+=16+Ct.length+(Ct!==nn?nn.length:0),ms(A.createExportDeclaration(void 0,!1,A.createNamedExports([A.createExportSpecifier(!1,Ct!==nn?nn:void 0,Ct)]),pi),0)}function eW(Ct){var nn;if(Ct.flags&4194304)return!1;let pi=Ai(Ct.escapedName),hi=pi==="export=",pa=hi||pi==="default",Ta=Ct.declarations&&tf(Ct),Os=Ta&&N1(Ta,!0);if(Os&&Dr(Os.declarations)&&_t(Os.declarations,Ti=>Nr(Ti)===Nr(Ge))){let Ti=Ta&&(Qo(Ta)||vn(Ta)?Fz(Ta):hre(Ta)),ia=Ti&&mo(Ti)?ygt(Ti):void 0,kl=ia&&Pc(ia,-1,!0,!0,Ge);(kl||Os)&&Na(kl||Os);let ic=ie.tracker.disableTrackSymbol;if(ie.tracker.disableTrackSymbol=!0,pa)ie.approximateLength+=10,st.push(A.createExportAssignment(void 0,hi,nd(Os,ie,-1)));else if(ia===Ti&&ia)qN(pi,Fn(ia));else if(Ti&&Zc(Ti))qN(pi,Xg(Os,kc(Os)));else{let Uu=rW(pi,Ct);ie.approximateLength+=Uu.length+10,ms(A.createImportEqualsDeclaration(void 0,!1,A.createIdentifier(Uu),qc(Os,ie,-1,!1)),0),qN(pi,Uu)}return ie.tracker.disableTrackSymbol=ic,!0}else{let Ti=rW(pi,Ct),ia=Uf(an(Ja(Ct)));if(Oye(ia,Ct))y0(ia,Ct,Ti,pa?0:32);else{let kl=((nn=ie.enclosingDeclaration)==null?void 0:nn.kind)===268&&(!(Ct.flags&98304)||Ct.flags&65536)?1:2;ie.approximateLength+=Ti.length+5;let ic=A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(Ti,void 0,An(ie,void 0,ia,Ct))],kl));ms(ic,Os&&Os.flags&4&&Os.escapedName==="export="?128:pi===Ti?32:0)}return pa?(ie.approximateLength+=Ti.length+10,st.push(A.createExportAssignment(void 0,hi,A.createIdentifier(Ti))),!0):pi!==Ti?(qN(pi,Ti),!0):!1}}function Oye(Ct,nn){var pi;let hi=Nr(ie.enclosingDeclaration);return jn(Ct)&48&&!_t((pi=Ct.symbol)==null?void 0:pi.declarations,yi)&&!Dr(zu(Ct))&&!g3(Ct)&&!!(Dr(Mn(ao(Ct),KD))||Dr(Gs(Ct,0)))&&!Dr(Gs(Ct,1))&&!Wt(nn,Ge)&&!(Ct.symbol&&_t(Ct.symbol.declarations,kn=>Nr(kn)!==hi))&&!_t(ao(Ct),kn=>S3(kn.escapedName))&&!_t(ao(Ct),kn=>_t(kn.declarations,pa=>Nr(pa)!==hi))&&Fi(ao(Ct),kn=>af(kc(kn),W)?kn.flags&98304?Sm(kn)===Nv(kn):!0:!1)}function L7e(Ct,nn,pi){return function(kn,pa,Ta){var Os,Ti,ia,kl,ic,Uu;let Lc=j_(kn),Vo=!!(Lc&2)&&!eS(ie);if(pa&&kn.flags&2887656)return[];if(kn.flags&4194304||kn.escapedName==="constructor"||Ta&&ca(Ta,kn.escapedName)&&Am(ca(Ta,kn.escapedName))===Am(kn)&&(kn.flags&16777216)===(ca(Ta,kn.escapedName).flags&16777216)&&Bh(an(kn),lr(Ta,kn.escapedName)))return[];let Sc=Lc&-1025|(pa?256:0),Ec=UN(kn,ie),C_=(Os=kn.declarations)==null?void 0:Os.find(vf(hs,pb,li,mp,vn,Ln));if(kn.flags&98304&&pi){let al=[];if(kn.flags&65536){let Bp=kn.declarations&&or(kn.declarations,Uh=>{if(Uh.kind===179)return Uh;if(Ws(Uh)&&nk(Uh))return or(Uh.arguments[2].properties,v0=>{let b0=Ss(v0);if(b0&&Be(b0)&&Fn(b0)==="set")return v0})});w.assert(!!Bp);let Gv=yo(Bp)?T_(Bp).parameters[0]:void 0,w_=(Ti=kn.declarations)==null?void 0:Ti.find(Fm);ie.approximateLength+=tW(Sc)+7+(Gv?kc(Gv).length:5)+(Vo?0:2),al.push(l(ie,A.createSetAccessorDeclaration(A.createModifiersFromModifierFlags(Sc),Ec,[A.createParameterDeclaration(void 0,void 0,Gv?Ni(Gv,Lr(Gv),ie):"value",void 0,Vo?void 0:An(ie,w_,Nv(kn),kn))],void 0),w_??C_))}if(kn.flags&32768){let Bp=(ia=kn.declarations)==null?void 0:ia.find(ah);ie.approximateLength+=tW(Sc)+8+(Vo?0:2),al.push(l(ie,A.createGetAccessorDeclaration(A.createModifiersFromModifierFlags(Sc),Ec,[],Vo?void 0:An(ie,Bp,an(kn),kn),void 0),Bp??C_))}return al}else if(kn.flags&98311){let al=(Am(kn)?8:0)|Sc;return ie.approximateLength+=2+(Vo?0:2)+tW(al),l(ie,Ct(A.createModifiersFromModifierFlags(al),Ec,kn.flags&16777216?A.createToken(58):void 0,Vo?void 0:An(ie,(kl=kn.declarations)==null?void 0:kl.find(uf),Nv(kn),kn),void 0),((ic=kn.declarations)==null?void 0:ic.find(vf(hs,li)))||C_)}if(kn.flags&8208){let al=an(kn),Bp=Gs(al,0);if(Vo){let w_=(Am(kn)?8:0)|Sc;return ie.approximateLength+=1+tW(w_),l(ie,Ct(A.createModifiersFromModifierFlags(w_),Ec,kn.flags&16777216?A.createToken(58):void 0,void 0,void 0),((Uu=kn.declarations)==null?void 0:Uu.find(yo))||Bp[0]&&Bp[0].declaration||kn.declarations&&kn.declarations[0])}let Gv=[];for(let w_ of Bp){ie.approximateLength+=1;let Uh=Qn(w_,nn,ie,{name:Ec,questionToken:kn.flags&16777216?A.createToken(58):void 0,modifiers:Sc?A.createModifiersFromModifierFlags(Sc):void 0}),v0=w_.declaration&&_6(w_.declaration.parent)?w_.declaration.parent:w_.declaration;Gv.push(l(ie,Uh,v0))}return Gv}return w.fail(`Unhandled class member kind! ${kn.__debugFlags||kn.flags}`)}}function tW(Ct){let nn=0;return Ct&32&&(nn+=7),Ct&128&&(nn+=8),Ct&2048&&(nn+=8),Ct&4096&&(nn+=6),Ct&1&&(nn+=7),Ct&2&&(nn+=8),Ct&4&&(nn+=10),Ct&64&&(nn+=9),Ct&256&&(nn+=7),Ct&16&&(nn+=9),Ct&8&&(nn+=9),Ct&512&&(nn+=9),Ct&1024&&(nn+=6),Ct&8192&&(nn+=3),Ct&16384&&(nn+=4),nn}function W7e(Ct,nn){return we(Ct,!1,nn)}function Fye(Ct,nn,pi,hi){let kn=Gs(nn,Ct);if(Ct===1){if(!pi&&Fi(kn,Os=>Dr(Os.parameters)===0))return[];if(pi){let Os=Gs(pi,1);if(!Dr(Os)&&Fi(kn,Ti=>Dr(Ti.parameters)===0))return[];if(Os.length===kn.length){let Ti=!1;for(let ia=0;ia<Os.length;ia++)if(!n9(kn[ia],Os[ia],!1,!1,!0,O3)){Ti=!0;break}if(!Ti)return[]}}let Ta=0;for(let Os of kn)Os.declaration&&(Ta|=b2(Os.declaration,6));if(Ta)return[l(ie,A.createConstructorDeclaration(A.createModifiersFromModifierFlags(Ta),[],void 0),kn[0].declaration)]}let pa=[];for(let Ta of kn){ie.approximateLength+=1;let Os=Qn(Ta,hi,ie);pa.push(l(ie,Os,Ta.declaration))}return pa}function B7e(Ct,nn){let pi=[];for(let hi of zu(Ct)){if(nn){let kn=jh(nn,hi.keyType);if(kn&&Bh(hi.type,kn.type))continue}pi.push($i(hi,ie,void 0))}return pi}function vyt(Ct,nn,pi){let hi=jye(Ct,111551);if(hi)return hi;let kn=rW(`${pi}_base`),pa=A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(kn,void 0,Vt(nn,ie))],2));return ms(pa,0),A.createExpressionWithTypeArguments(A.createIdentifier(kn),void 0)}function jye(Ct,nn){let pi,hi;if(Ct.target&&cN(Ct.target.symbol,Ge,nn)?(pi=kr(Jo(Ct),kn=>Vt(kn,ie)),hi=nd(Ct.target.symbol,ie,788968)):Ct.symbol&&cN(Ct.symbol,Ge,nn)&&(hi=nd(Ct.symbol,ie,788968)),hi)return A.createExpressionWithTypeArguments(hi,pi)}function byt(Ct){let nn=jye(Ct,788968);if(nn)return nn;if(Ct.symbol)return A.createExpressionWithTypeArguments(nd(Ct.symbol,ie,788968),void 0)}function rW(Ct,nn){var pi,hi;let kn=nn?sa(nn):void 0;if(kn&&ie.remappedSymbolNames.has(kn))return ie.remappedSymbolNames.get(kn);nn&&(Ct=z7e(nn,Ct));let pa=0,Ta=Ct;for(;(pi=ie.usedSymbolNames)!=null&&pi.has(Ct);)pa++,Ct=`${Ta}_${pa}`;return(hi=ie.usedSymbolNames)==null||hi.add(Ct),kn&&ie.remappedSymbolNames.set(kn,Ct),Ct}function z7e(Ct,nn){if(nn==="default"||nn==="__class"||nn==="__function"){let pi=be(ie);ie.flags|=16777216;let hi=L1(Ct,ie);pi(),nn=hi.length>0&&c6(hi.charCodeAt(0))?_d(hi):hi}return nn==="default"?nn="_default":nn==="export="&&(nn="_exports"),nn=af(nn,W)&&!y2(nn)?nn:"_"+nn.replace(/[^a-z0-9]/gi,"_"),nn}function Xg(Ct,nn){let pi=sa(Ct);return ie.remappedSymbolNames.has(pi)?ie.remappedSymbolNames.get(pi):(nn=z7e(Ct,nn),ie.remappedSymbolNames.set(pi,nn),nn)}}function eS(Pe){return Pe.maxExpansionDepth!==-1}function Y9(Pe){return!!Pe.valueDeclaration&&Vl(Pe.valueDeclaration)&&zi(Pe.valueDeclaration.name)}function $X(Pe){if(Pe.valueDeclaration&&Vl(Pe.valueDeclaration)&&zi(Pe.valueDeclaration.name))return A.cloneNode(Pe.valueDeclaration.name)}}function ID(r){var a;let l=(jn(r)&4)!==0?r.target.symbol:r.symbol;return Aa(r)||!!((a=l?.declarations)!=null&&a.some(f=>e.isSourceFileDefaultLibrary(Nr(f))))}function zg(r,a,l=16384,f){return f?m(f).getText():Fw(m);function m(y){let k=yT(l)|70221824|512,M=ge.typePredicateToTypePredicateNode(r,a,k),G=HS(),J=a&&Nr(a);return G.writeNode(4,M,J,y),y}}function h3(r,a){let l=[],f=0;for(let m=0;m<r.length;m++){let y=r[m];if(f|=y.flags,!(y.flags&98304)){if(y.flags&512||!a&&y.flags|1056){let k=y.flags&512?Ot:HQ(y);if(k.flags&1048576){let M=k.types.length;if(m+M<=r.length&&Tp(r[m+M-1])===Tp(k.types[M-1])){l.push(k),m+=M-1;continue}}}l.push(y)}}return f&65536&&l.push(jt),f&32768&&l.push(fe),l||r}function j1(r){return r===2?"private":r===4?"protected":"public"}function EL(r){if(r.symbol&&r.symbol.flags&2048&&r.symbol.declarations){let a=v6(r.symbol.declarations[0].parent);if(gd(a))return wn(a)}}function pN(r){return r&&r.parent&&r.parent.kind===269&&vS(r.parent.parent)}function y3(r){return r.kind===308||pp(r)}function fN(r,a){let l=Wn(r).nameType;if(l){if(l.flags&384){let f=""+l.value;return!af(f,xa(O))&&!yh(f)?`"${Dg(f,34)}"`:yh(f)&&Zi(f,"-")?`[${f}]`:f}if(l.flags&8192)return`[${L1(l.symbol,a)}]`}}function L1(r,a){var l;if((l=a?.remappedSymbolReferences)!=null&&l.has(sa(r))&&(r=a.remappedSymbolReferences.get(sa(r))),a&&r.escapedName==="default"&&!(a.flags&16384)&&(!(a.flags&16777216)||!r.declarations||a.enclosingDeclaration&&vr(r.declarations[0],y3)!==vr(a.enclosingDeclaration,y3)))return"default";if(r.declarations&&r.declarations.length){let m=fo(r.declarations,k=>Ss(k)?k:void 0),y=m&&Ss(m);if(m&&y){if(Ws(m)&&nk(m))return kc(r);if(na(y)&&!(Cc(r)&4096)){let k=Wn(r).nameType;if(k&&k.flags&384){let M=fN(r,a);if(M!==void 0)return M}}return To(y)}if(m||(m=r.declarations[0]),m.parent&&m.parent.kind===261)return To(m.parent.name);switch(m.kind){case 232:case 219:case 220:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),m.kind===232?"(Anonymous class)":"(Anonymous function)"}}let f=fN(r,a);return f!==void 0?f:kc(r)}function Gg(r){if(r){let l=Nn(r);return l.isVisible===void 0&&(l.isVisible=!!a()),l.isVisible}return!1;function a(){switch(r.kind){case 339:case 347:case 341:return!!(r.parent&&r.parent.parent&&r.parent.parent.parent&&Li(r.parent.parent.parent));case 209:return Gg(r.parent.parent);case 261:if(Ls(r.name)&&!r.name.elements.length)return!1;case 268:case 264:case 265:case 266:case 263:case 267:case 272:if(vS(r))return!0;let l=Dt(r);return!(qX(r)&32)&&!(r.kind!==272&&l.kind!==308&&l.flags&33554432)?Qy(l):Gg(l);case 173:case 172:case 178:case 179:case 175:case 174:if(If(r,6))return!1;case 177:case 181:case 180:case 182:case 170:case 269:case 185:case 186:case 188:case 184:case 189:case 190:case 193:case 194:case 197:case 203:return Gg(r.parent);case 274:case 275:case 277:return!1;case 169:case 308:case 271:return!0;case 278:return!1;default:return!1}}}function DD(r,a){let l;r.kind!==11&&r.parent&&r.parent.kind===278?l=ft(r,r,2998271,void 0,!1):r.parent.kind===282&&(l=RC(r.parent,2998271));let f,m;return l&&(m=new Set,m.add(sa(l)),y(l.declarations)),f;function y(k){or(k,M=>{let G=$_(M)||M;if(a?Nn(M).isVisible=!0:(f=f||[],D_(f,G)),tk(M)){let J=M.moduleReference,K=wp(J),be=ft(M,K.escapedText,901119,void 0,!1);be&&m&&Uy(m,sa(be))&&y(be.declarations)}})}}function fg(r,a){let l=Y(r,a);if(l>=0){let{length:f}=wh;for(let m=l;m<f;m++)h1[m]=!1;return!1}return wh.push(r),h1.push(!0),Uk.push(a),!0}function Y(r,a){for(let l=wh.length-1;l>=hv;l--){if(De(wh[l],Uk[l]))return-1;if(wh[l]===r&&Uk[l]===a)return l}return-1}function De(r,a){switch(a){case 0:return!!Wn(r).type;case 2:return!!Wn(r).declaredType;case 1:return!!r.resolvedBaseConstructorType;case 3:return!!r.resolvedReturnType;case 4:return!!r.immediateBaseConstraint;case 5:return!!r.resolvedTypeArguments;case 6:return!!r.baseTypesResolved;case 7:return!!Wn(r).writeType;case 8:return Nn(r).parameterInitializerContainsUndefined!==void 0}return w.assertNever(a)}function Ze(){return wh.pop(),Uk.pop(),h1.pop()}function Dt(r){return vr(zm(r),a=>{switch(a.kind){case 261:case 262:case 277:case 276:case 275:case 274:return!1;default:return!0}}).parent}function Xt(r){let a=No(Wl(r));return a.typeParameters?Dy(a,kr(a.typeParameters,l=>Le)):a}function lr(r,a){let l=ca(r,a);return l?an(l):void 0}function qn(r,a){var l;let f;return lr(r,a)||(f=(l=XC(r,a))==null?void 0:l.type)&&ip(f,!0,!0)}function xn(r){return r&&(r.flags&1)!==0}function rn(r){return r===Ye||!!(r.flags&1&&r.aliasSymbol)}function mi(r,a){if(a!==0)return qC(r,!1,a);let l=wn(r);return l&&Wn(l).type||qC(r,!1,a)}function Hi(r,a,l){if(r=pl(r,G=>!(G.flags&98304)),r.flags&131072)return fa;if(r.flags&1048576)return cc(r,G=>Hi(G,a,l));let f=ii(kr(a,Py)),m=[],y=[];for(let G of ao(r)){let J=YC(G,8576);!$s(J,f)&&!(j_(G)&6)&&dK(G)?m.push(G):y.push(J)}if(kx(r)||xx(f)){if(y.length&&(f=ii([f,...y])),f.flags&131072)return r;let G=aot();return G?OD(G,[r,f]):Ye}let k=Qs();for(let G of m)k.set(G.escapedName,ege(G,!1));let M=oc(l,k,Ke,Ke,zu(r));return M.objectFlags|=4194304,M}function Co(r){return!!(r.flags&465829888)&&Vc(wu(r)||wt,32768)}function po(r){let a=td(r,Co)?cc(r,l=>l.flags&465829888?dg(l):l):r;return ed(a,524288)}function Ua(r,a){let l=Q_(r);return l?jy(l,a):a}function Q_(r){let a=b_(r);if(a&&$w(a)&&a.flowNode){let l=Pv(r);if(l){let f=mt(Z0.createStringLiteral(l),r),m=Jp(a)?a:Z0.createParenthesizedExpression(a),y=mt(Z0.createElementAccessExpression(m,f),r);return Ka(f,y),Ka(y,r),m!==a&&Ka(m,y),y.flowNode=a.flowNode,y}}}function b_(r){let a=r.parent.parent;switch(a.kind){case 209:case 304:return Q_(a);case 210:return Q_(r.parent);case 261:return a.initializer;case 227:return a.right}}function Pv(r){let a=r.parent;return r.kind===209&&a.kind===207?Av(r.propertyName||r.name):r.kind===304||r.kind===305?Av(r.name):""+a.elements.indexOf(r)}function Av(r){let a=Py(r);return a.flags&384?""+a.value:void 0}function Mh(r){let a=r.dotDotDotToken?32:0,l=mi(r.parent.parent,a);return l&&s0(r,l,!1)}function s0(r,a,l){if(xn(a))return a;let f=r.parent;re&&r.flags&33554432&&L0(r)?a=Oy(a):re&&f.parent.initializer&&!wm(V3e(f.parent.initializer),65536)&&(a=ed(a,524288));let m=32|(l||aw(r)?16:0),y;if(f.kind===207)if(r.dotDotDotToken){if(a=Pd(a),a.flags&2||!b9(a))return $e(r,_.Rest_types_may_only_be_created_from_object_types),Ye;let k=[];for(let M of f.elements)M.dotDotDotToken||k.push(M.propertyName||M.name);y=Hi(a,k,r.symbol)}else{let k=r.propertyName||r.name,M=Py(k),G=Gf(a,M,m,k);y=Ua(r,G)}else{let k=Bv(65|(r.dotDotDotToken?0:128),a,fe,f),M=f.elements.indexOf(r);if(r.dotDotDotToken){let G=cc(a,J=>J.flags&58982400?dg(J):J);y=gf(G,Aa)?cc(G,J=>CN(J,M)):Gu(k)}else if(Lv(a)){let G=xm(M),J=l0(a,G,m,r.name)||Ye;y=Ua(r,J)}else y=k}return r.initializer?ml(UT(r))?re&&!wm(ON(r,0),16777216)?po(y):y:Qhe(r,ii([po(y),ON(r,0)],2)):y}function $a(r){let a=qy(r);if(a)return Oi(a)}function El(r){let a=Qa(r,!0);return a.kind===106||a.kind===80&&sp(a)===ae}function Ev(r){let a=Qa(r,!0);return a.kind===210&&a.elements.length===0}function ip(r,a=!1,l=!0){return re&&l?_0(r,a):r}function qC(r,a,l){if(li(r)&&r.parent.parent.kind===250){let k=mg(ghe(ts(r.parent.parent.expression,l)));return k.flags&4456448?CRe(k):ut}if(li(r)&&r.parent.parent.kind===251){let k=r.parent.parent;return V9(k)||Le}if(Ls(r.parent))return Mh(r);let f=hs(r)&&!Gm(r)||mp(r)||Aie(r),m=a&&E2(r),y=o0(r);if(lz(r))return y?xn(y)||y===wt?y:Ye:H?wt:Le;if(y)return ip(y,f,m);if((de||dn(r))&&li(r)&&!Ls(r.name)&&!(qX(r)&32)&&!(r.flags&33554432)){if(!(MT(r)&6)&&(!r.initializer||El(r.initializer)))return kt;if(r.initializer&&Ev(r.initializer))return Zl}if(Gi(r)){if(!r.symbol)return;let k=r.parent;if(k.kind===179&&ED(k)){let J=$o(wn(r.parent),178);if(J){let K=T_(J),be=Aye(k);return be&&r===be?(w.assert(!be.type),an(K.thisParameter)):Xa(K)}}let M=Aat(k,r);if(M)return M;let G=r.symbol.escapedName==="this"?rhe(k):TOe(r);if(G)return ip(G,!1,m)}if(XT(r)&&r.initializer){if(dn(r)&&!Gi(r)){let M=Yt(r,wn(r),YP(r));if(M)return M}let k=Qhe(r,ON(r,l));return ip(k,f,m)}if(hs(r)&&(de||dn(r)))if(Cl(r)){let k=Mn(r.parent.members,zc),M=k.length?D(r.symbol,k):Mu(r)&128?CK(r.symbol):void 0;return M&&ip(M,!0,m)}else{let k=Z6(r.parent),M=k?B(r.symbol,k):Mu(r)&128?CK(r.symbol):void 0;return M&&ip(M,!0,m)}if(Ym(r))return ct;if(Ls(r.name))return _N(r.name,!1,!0)}function Rh(r){if(r.valueDeclaration&&vn(r.valueDeclaration)){let a=Wn(r);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!un(r)&&Fi(r.declarations,l=>vn(l)&&KK(l)&&(l.left.kind!==213||s_(l.left.argumentExpression))&&!Cn(void 0,l,r,l))),a.isConstructorDeclaredProperty}return!1}function Jg(r){let a=r.valueDeclaration;return a&&hs(a)&&!ml(a)&&!a.initializer&&(de||dn(a))}function un(r){if(r.declarations)for(let a of r.declarations){let l=fp(a,!1,!1);if(l&&(l.kind===177||yg(l)))return l}}function v(r){let a=Nr(r.declarations[0]),l=Ai(r.escapedName),f=r.declarations.every(y=>dn(y)&&Oo(y)&&fh(y.expression)),m=f?A.createPropertyAccessExpression(A.createPropertyAccessExpression(A.createIdentifier("module"),A.createIdentifier("exports")),l):A.createPropertyAccessExpression(A.createIdentifier("exports"),l);return f&&Ka(m.expression.expression,m.expression),Ka(m.expression,m),Ka(m,a),m.flowNode=a.endFlowNode,jy(m,kt,fe)}function D(r,a){let l=Zi(r.escapedName,"__#")?A.createPrivateIdentifier(r.escapedName.split("@")[1]):Ai(r.escapedName);for(let f of a){let m=A.createPropertyAccessExpression(A.createThis(),l);Ka(m.expression,m),Ka(m,f),m.flowNode=f.returnFlowNode;let y=ue(m,r);if(de&&(y===kt||y===Zl)&&$e(r.valueDeclaration,_.Member_0_implicitly_has_an_1_type,Xi(r),Yr(y)),!gf(y,k9))return pO(y)}}function B(r,a){let l=Zi(r.escapedName,"__#")?A.createPrivateIdentifier(r.escapedName.split("@")[1]):Ai(r.escapedName),f=A.createPropertyAccessExpression(A.createThis(),l);Ka(f.expression,f),Ka(f,a),f.flowNode=a.returnFlowNode;let m=ue(f,r);return de&&(m===kt||m===Zl)&&$e(r.valueDeclaration,_.Member_0_implicitly_has_an_1_type,Xi(r),Yr(m)),gf(m,k9)?void 0:pO(m)}function ue(r,a){let l=a?.valueDeclaration&&(!Jg(a)||Mu(a.valueDeclaration)&128)&&CK(a)||fe;return jy(r,kt,l)}function Xe(r,a){let l=f2(r.valueDeclaration);if(l){let M=dn(l)?D0(l):void 0;return M&&M.typeExpression?Oi(M.typeExpression):r.valueDeclaration&&Yt(r.valueDeclaration,r,l)||H1(Ac(l))}let f,m=!1,y=!1;if(Rh(r)&&(f=B(r,un(r))),!f){let M;if(r.declarations){let G;for(let J of r.declarations){let K=vn(J)||Ws(J)?J:Oo(J)?vn(J.parent)?J.parent:J:void 0;if(!K)continue;let be=Oo(K)?f6(K):Hc(K);(be===4||vn(K)&&KK(K,be))&&(Yf(K)?m=!0:y=!0),Ws(K)||(G=Cn(G,K,r,J)),G||(M||(M=[])).push(vn(K)||Ws(K)?vs(r,a,K,be):ur)}f=G}if(!f){if(!Dr(M))return Ye;let G=m&&r.declarations?a0(M,r.declarations):void 0;if(y){let K=CK(r);K&&((G||(G=[])).push(K),m=!0)}let J=_t(G,K=>!!(K.flags&-98305))?G:M;f=ii(J)}}let k=Uf(ip(f,!1,y&&!m));return r.valueDeclaration&&dn(r.valueDeclaration)&&pl(k,M=>!!(M.flags&-98305))===ur?(Q1(r.valueDeclaration,Le),Le):k}function Yt(r,a,l){var f,m;if(!dn(r)||!l||!Sa(l)||l.properties.length)return;let y=Qs();for(;vn(r)||Ln(r);){let G=v_(r);(f=G?.exports)!=null&&f.size&&lg(y,G.exports),r=vn(r)?r.parent:r.parent.parent}let k=v_(r);(m=k?.exports)!=null&&m.size&&lg(y,k.exports);let M=oc(a,y,Ke,Ke,Ke);return M.objectFlags|=4096,M}function Cn(r,a,l,f){var m;let y=ml(a.parent);if(y){let k=Uf(Oi(y));if(r)!rn(r)&&!rn(k)&&!Bh(r,k)&&A8e(void 0,r,f,k);else return k}if((m=l.parent)!=null&&m.valueDeclaration){let k=R1(l.parent);if(k.valueDeclaration){let M=ml(k.valueDeclaration);if(M){let G=ca(Oi(M),l.escapedName);if(G)return Sm(G)}}}return r}function vs(r,a,l,f){if(Ws(l)){if(a)return an(a);let k=Ac(l.arguments[2]),M=lr(k,"value");if(M)return M;let G=lr(k,"get");if(G){let K=Fx(G);if(K)return Xa(K)}let J=lr(k,"set");if(J){let K=Fx(J);if(K)return Whe(K)}return Le}if(Go(l.left,l.right))return Le;let m=f===1&&(Ln(l.left)||xo(l.left))&&(fh(l.left.expression)||Be(l.left.expression)&&rk(l.left.expression)),y=a?an(a):m?Tp(Ac(l.right)):H1(Ac(l.right));if(y.flags&524288&&f===2&&r.escapedName==="export="){let k=km(y),M=Qs();TF(k.members,M);let G=M.size;a&&!a.exports&&(a.exports=Qs()),(a||r).exports.forEach((K,be)=>{var he;let He=M.get(be);if(He&&He!==K&&!(K.flags&2097152))if(K.flags&111551&&He.flags&111551){if(K.valueDeclaration&&He.valueDeclaration&&Nr(K.valueDeclaration)!==Nr(He.valueDeclaration)){let xt=Ai(K.escapedName),Vt=((he=Hn(He.valueDeclaration,Vl))==null?void 0:he.name)||He.valueDeclaration;Xs($e(K.valueDeclaration,_.Duplicate_identifier_0,xt),_n(Vt,_._0_was_also_declared_here,xt)),Xs($e(Vt,_.Duplicate_identifier_0,xt),_n(K.valueDeclaration,_._0_was_also_declared_here,xt))}let gt=wa(K.flags|He.flags,be);gt.links.type=ii([an(K),an(He)]),gt.valueDeclaration=He.valueDeclaration,gt.declarations=Qi(He.declarations,K.declarations),M.set(be,gt)}else M.set(be,q_(K,He));else M.set(be,K)});let J=oc(G!==M.size?void 0:k.symbol,M,k.callSignatures,k.constructSignatures,k.indexInfos);if(G===M.size&&(y.aliasSymbol&&(J.aliasSymbol=y.aliasSymbol,J.aliasTypeArguments=y.aliasTypeArguments),jn(y)&4)){J.aliasSymbol=y.symbol;let K=Jo(y);J.aliasTypeArguments=Dr(K)?K:void 0}return J.objectFlags|=BL([y])|jn(y)&20608,J.symbol&&J.symbol.flags&32&&y===K_(J.symbol)&&(J.objectFlags|=16777216),J}return IK(y)?(Q1(l,fu),fu):y}function Go(r,a){return Ln(r)&&r.expression.kind===110&&K2(a,l=>gu(r,l))}function Yf(r){let a=fp(r,!1,!1);return a.kind===177||a.kind===263||a.kind===219&&!_6(a.parent)}function a0(r,a){return w.assert(r.length===a.length),r.filter((l,f)=>{let m=a[f],y=vn(m)?m:vn(m.parent)?m.parent:void 0;return y&&Yf(y)})}function bm(r,a,l){if(r.initializer){let f=Ls(r.name)?_N(r.name,!0,!1):wt;return ip(r8e(r,ON(r,0,f)))}return Ls(r.name)?_N(r.name,a,l):(l&&!zQ(r)&&Q1(r,Le),a?ln:Le)}function $C(r,a,l){let f=Qs(),m,y=131200;or(r.elements,M=>{let G=M.propertyName||M.name;if(M.dotDotDotToken){m=Lh(ut,Le,!1);return}let J=Py(G);if(!L_(J)){y|=512;return}let K=W_(J),be=4|(M.initializer?16777216:0),he=wa(be,K);he.links.type=bm(M,a,l),f.set(he.escapedName,he)});let k=oc(void 0,f,Ke,Ke,m?[m]:Ke);return k.objectFlags|=y,a&&(k.pattern=r,k.objectFlags|=131072),k}function Xde(r,a,l){let f=r.elements,m=Wo(f),y=m&&m.kind===209&&m.dotDotDotToken?m:void 0;if(f.length===0||f.length===1&&y)return W>=2?lRe(Le):fu;let k=kr(f,K=>Fl(K)?Le:bm(K,a,l)),M=EO(f,K=>!(K===y||Fl(K)||aw(K)),f.length-1)+1,G=kr(f,(K,be)=>K===y?4:be>=M?2:1),J=$g(k,G);return a&&(J=z4e(J),J.pattern=r,J.objectFlags|=131072),J}function _N(r,a=!1,l=!1){a&&xd.push(r);let f=r.kind===207?$C(r,a,l):Xde(r,a,l);return a&&xd.pop(),f}function HC(r,a){return v3(qC(r,!0,0),r,a)}function Yde(r){let a=Nn(r);if(!a.resolvedType){let l=wa(4096,"__importAttributes"),f=Qs();or(r.elements,y=>{let k=wa(4,H8(y));k.parent=l,k.links.type=vgt(y),k.links.target=k,f.set(k.escapedName,k)});let m=oc(l,f,Ke,Ke,Ke);m.objectFlags|=262272,a.resolvedType=m}return a.resolvedType}function Zde(r){let a=v_(r),l=qat(!1);return l&&a&&a===l}function v3(r,a,l){return r?(r.flags&4096&&Zde(a.parent)&&(r=tge(a)),l&&OK(a,r),r.flags&8192&&(Da(a)||!o0(a))&&r.symbol!==wn(a)&&(r=Ht),Uf(r)):(r=Gi(a)&&a.dotDotDotToken?fu:Le,l&&(zQ(a)||Q1(a,r)),r)}function zQ(r){let a=zm(r),l=a.kind===170?a.parent:a;return W9(l)}function o0(r){let a=ml(r);if(a)return Oi(a)}function eme(r){let a=r.valueDeclaration;return a?(Da(a)&&(a=UT(a)),Gi(a)?yK(a.parent):!1):!1}function tme(r){let a=Wn(r);if(!a.type){let l=rme(r);return!a.type&&!eme(r)&&(a.type=l),l}return a.type}function rme(r){if(r.flags&4194304)return Xt(r);if(r===Ne)return Le;if(r.flags&134217728&&r.valueDeclaration){let f=wn(Nr(r.valueDeclaration)),m=wa(f.flags,"exports");m.declarations=f.declarations?f.declarations.slice():[],m.parent=r,m.links.target=f,f.valueDeclaration&&(m.valueDeclaration=f.valueDeclaration),f.members&&(m.members=new Map(f.members)),f.exports&&(m.exports=new Map(f.exports));let y=Qs();return y.set("exports",m),oc(r,y,Ke,Ke,Ke)}w.assertIsDefined(r.valueDeclaration);let a=r.valueDeclaration;if(Li(a)&&M_(a))return a.statements.length?Uf(H1(ts(a.statements[0].expression))):fa;if(pb(a))return mN(r);if(!fg(r,0))return r.flags&512&&!(r.flags&67108864)?gN(r):gx(r);let l;if(a.kind===278)l=v3(o0(a)||Ac(a.expression),a);else if(vn(a)||dn(a)&&(Ws(a)||(Ln(a)||KF(a))&&vn(a.parent)))l=Xe(r);else if(Ln(a)||xo(a)||Be(a)||Ha(a)||Hp(a)||hl(a)||Gc(a)||hc(a)&&!pd(a)||jd(a)||Li(a)){if(r.flags&9136)return gN(r);l=vn(a.parent)?Xe(r):o0(a)||Le}else if(yl(a))l=o0(a)||n8e(a);else if(Ym(a))l=o0(a)||jOe(a);else if(Fu(a))l=o0(a)||jN(a.name,0);else if(pd(a))l=o0(a)||i8e(a,0);else if(Gi(a)||hs(a)||mp(a)||li(a)||Da(a)||OP(a))l=HC(a,!0);else if(H0(a))l=gN(r);else if(oy(a))l=VQ(r);else return w.fail("Unhandled declaration kind! "+w.formatSyntaxKind(a.kind)+" for "+w.formatSymbol(r));return Ze()?l:r.flags&512&&!(r.flags&67108864)?gN(r):gx(r)}function vT(r){if(r)switch(r.kind){case 178:return wf(r);case 179:return tG(r);case 173:return w.assert(Gm(r)),ml(r)}}function dN(r){let a=vT(r);return a&&Oi(a)}function QC(r){let a=Aye(r);return a&&a.symbol}function GQ(r){return G1(T_(r))}function mN(r){let a=Wn(r);if(!a.type){if(!fg(r,0))return Ye;let l=$o(r,178),f=$o(r,179),m=Hn($o(r,173),Gp),y=l&&dn(l)&&$a(l)||dN(l)||dN(f)||dN(m)||l&&l.body&&gX(l)||m&&HC(m,!0);y||(f&&!W9(f)?Jd(de,f,_.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Xi(r)):l&&!W9(l)?Jd(de,l,_.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Xi(r)):m&&!W9(m)&&Jd(de,m,_.Member_0_implicitly_has_an_1_type,Xi(r),"any"),y=Le),Ze()||(vT(l)?$e(l,_._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Xi(r)):vT(f)||vT(m)?$e(f,_._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Xi(r)):l&&de&&$e(l,_._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Xi(r)),y=Le),a.type??(a.type=y)}return a.type}function JQ(r){let a=Wn(r);if(!a.writeType){if(!fg(r,7))return Ye;let l=$o(r,179)??Hn($o(r,173),Gp),f=dN(l);Ze()||(vT(l)&&$e(l,_._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Xi(r)),f=Le),a.writeType??(a.writeType=f||mN(r))}return a.writeType}function b3(r){let a=Iy(K_(r));return a.flags&8650752?a:a.flags&2097152?Bn(a.types,l=>!!(l.flags&8650752)):void 0}function gN(r){let a=Wn(r),l=a;if(!a.type){let f=r.valueDeclaration&&dX(r.valueDeclaration,!1);if(f){let m=Nhe(r,f);m&&(r=m,a=m.links)}l.type=a.type=UQ(r)}return a.type}function UQ(r){let a=r.valueDeclaration;if(r.flags&1536&&qM(r))return Le;if(a&&(a.kind===227||Oo(a)&&a.parent.kind===227))return Xe(r);if(r.flags&512&&a&&Li(a)&&a.commonJsModuleIndicator){let f=df(r);if(f!==r){if(!fg(r,0))return Ye;let m=Ja(r.exports.get("export=")),y=Xe(m,m===f?void 0:f);return Ze()?y:gx(r)}}let l=il(16,r);if(r.flags&32){let f=b3(r);return f?ma([l,f]):l}else return re&&r.flags&16777216?_0(l,!0):l}function VQ(r){let a=Wn(r);return a.type||(a.type=e4e(r))}function nme(r){let a=Wn(r);if(!a.type){if(!fg(r,0))return Ye;let l=ru(r),f=r.declarations&&N1(tf(r),!0),m=fo(f?.declarations,y=>Qo(y)?o0(y):void 0);if(a.type??(a.type=f?.declarations&&FX(f.declarations)&&r.declarations.length?v(f):FX(r.declarations)?kt:m||(rf(l)&111551?an(l):Ye)),!Ze())return gx(f??r),a.type??(a.type=Ye)}return a.type}function ime(r){let a=Wn(r);return a.type||(a.type=qi(an(a.target),a.mapper))}function sme(r){let a=Wn(r);return a.writeType||(a.writeType=qi(Nv(a.target),a.mapper))}function gx(r){let a=r.valueDeclaration;if(a){if(ml(a))return $e(r.valueDeclaration,_._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Xi(r)),Ye;de&&(a.kind!==170||a.initializer)&&$e(r.valueDeclaration,_._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Xi(r))}else if(r.flags&2097152){let l=tf(r);l&&$e(l,_.Circular_definition_of_import_alias_0,Xi(r))}return Le}function qQ(r){let a=Wn(r);return a.type||(w.assertIsDefined(a.deferralParent),w.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?ii(a.deferralConstituents):ma(a.deferralConstituents)),a.type}function ame(r){let a=Wn(r);return!a.writeType&&a.deferralWriteConstituents&&(w.assertIsDefined(a.deferralParent),w.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?ii(a.deferralWriteConstituents):ma(a.deferralWriteConstituents)),a.writeType}function Nv(r){let a=Cc(r);return a&2?a&65536?ame(r)||qQ(r):r.links.writeType||r.links.type:r.flags&4?Fy(an(r),!!(r.flags&16777216)):r.flags&98304?a&1?sme(r):JQ(r):an(r)}function an(r){let a=Cc(r);return a&65536?qQ(r):a&1?ime(r):a&262144?pat(r):a&8192?Dlt(r):r.flags&7?tme(r):r.flags&9136?gN(r):r.flags&8?VQ(r):r.flags&98304?mN(r):r.flags&2097152?nme(r):Ye}function Sm(r){return Fy(an(r),!!(r.flags&16777216))}function $Q(r,a){if(r===void 0||(jn(r)&4)===0)return!1;for(let l of a)if(r.target===l)return!0;return!1}function Bf(r,a){return r!==void 0&&a!==void 0&&(jn(r)&4)!==0&&r.target===a}function Or(r){return jn(r)&4?r.target:r}function On(r,a){return l(r);function l(f){if(jn(f)&7){let m=Or(f);return m===a||_t(Qd(m),l)}else if(f.flags&2097152)return _t(f.types,l);return!1}}function Vn(r,a){for(let l of a)r=qh(r,W1(wn(l)));return r}function Si(r,a){for(;;){if(r=r.parent,r&&vn(r)){let f=Hc(r);if(f===6||f===3){let m=wn(r.left);m&&m.parent&&!vr(m.parent.valueDeclaration,y=>r===y)&&(r=m.parent.valueDeclaration)}}if(!r)return;let l=r.kind;switch(l){case 264:case 232:case 265:case 180:case 181:case 174:case 185:case 186:case 318:case 263:case 175:case 219:case 220:case 266:case 346:case 347:case 341:case 339:case 201:case 195:{let m=Si(r,a);if((l===219||l===220||pd(r))&&k_(r)){let M=_l(Gs(an(wn(r)),0));if(M&&M.typeParameters)return[...m||Ke,...M.typeParameters]}if(l===201)return Fr(m,W1(wn(r.typeParameter)));if(l===195)return Qi(m,Xme(r));let y=Vn(m,ob(r)),k=a&&(l===264||l===232||l===265||yg(r))&&K_(wn(r)).thisType;return k?Fr(y,k):y}case 342:let f=y6(r);f&&(r=f.valueDeclaration);break;case 321:{let m=Si(r,a);return r.tags?Vn(m,Ma(r.tags,y=>hd(y)?y.typeParameters:void 0)):m}}}}function wi(r){var a;let l=r.flags&32||r.flags&16?r.valueDeclaration:(a=r.declarations)==null?void 0:a.find(f=>{if(f.kind===265)return!0;if(f.kind!==261)return!1;let m=f.initializer;return!!m&&(m.kind===219||m.kind===220)});return w.assert(!!l,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Si(l)}function da(r){if(!r.declarations)return;let a;for(let l of r.declarations)(l.kind===265||l.kind===264||l.kind===232||yg(l)||g6(l))&&(a=Vn(a,ob(l)));return a}function wo(r){return Qi(wi(r),da(r))}function mu(r){let a=Gs(r,1);if(a.length===1){let l=a[0];if(!l.typeParameters&&l.parameters.length===1&&Zu(l)){let f=A9(l.parameters[0]);return xn(f)||s9(f)===Le}}return!1}function Tm(r){if(Gs(r,1).length>0)return!0;if(r.flags&8650752){let a=wu(r);return!!a&&mu(a)}return!1}function Dd(r){let a=iy(r.symbol);return a&&im(a)}function Hd(r,a,l){let f=Dr(a),m=dn(l);return Mn(Gs(r,1),y=>(m||f>=qg(y.typeParameters))&&f<=Dr(y.typeParameters))}function Oh(r,a,l){let f=Hd(r,a,l),m=kr(a,Oi);return fl(f,y=>_t(y.typeParameters)?I3(y,m,dn(l)):y)}function Iy(r){if(!r.resolvedBaseConstructorType){let a=iy(r.symbol),l=a&&im(a),f=Dd(r);if(!f)return r.resolvedBaseConstructorType=fe;if(!fg(r,1))return Ye;let m=ts(f.expression);if(l&&f!==l&&(w.assert(!l.typeArguments),ts(l.expression)),m.flags&2621440&&km(m),!Ze())return $e(r.symbol.valueDeclaration,_._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Xi(r.symbol)),r.resolvedBaseConstructorType??(r.resolvedBaseConstructorType=Ye);if(!(m.flags&1)&&m!==Ce&&!Tm(m)){let y=$e(f.expression,_.Type_0_is_not_a_constructor_function_type,Yr(m));if(m.flags&262144){let k=TN(m),M=wt;if(k){let G=Gs(k,1);G[0]&&(M=Xa(G[0]))}m.symbol.declarations&&Xs(y,_n(m.symbol.declarations[0],_.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Xi(m.symbol),Yr(M)))}return r.resolvedBaseConstructorType??(r.resolvedBaseConstructorType=Ye)}r.resolvedBaseConstructorType??(r.resolvedBaseConstructorType=m)}return r.resolvedBaseConstructorType}function PD(r){let a=Ke;if(r.symbol.declarations)for(let l of r.symbol.declarations){let f=Qw(l);if(f)for(let m of f){let y=Oi(m);rn(y)||(a===Ke?a=[y]:a.push(y))}}return a}function hN(r,a){$e(r,_.Type_0_recursively_references_itself_as_a_base_type,Yr(a,void 0,2))}function Qd(r){if(!r.baseTypesResolved){if(fg(r,6)&&(r.objectFlags&8?r.resolvedBaseTypes=[Fst(r)]:r.symbol.flags&96?(r.symbol.flags&32&&jst(r),r.symbol.flags&64&&Wst(r)):w.fail("type must be class or interface"),!Ze()&&r.symbol.declarations))for(let a of r.symbol.declarations)(a.kind===264||a.kind===265)&&hN(a,r);r.baseTypesResolved=!0}return r.resolvedBaseTypes}function Fst(r){let a=fl(r.typeParameters,(l,f)=>r.elementFlags[f]&8?Gf(l,Qt):l);return Gu(ii(a||Ke),r.readonly)}function jst(r){r.resolvedBaseTypes=ZB;let a=Sp(Iy(r));if(!(a.flags&2621441))return r.resolvedBaseTypes=Ke;let l=Dd(r),f,m=a.symbol?No(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&Lst(m))f=G4e(l,a.symbol);else if(a.flags&1)f=a;else{let k=Oh(a,l.typeArguments,l);if(!k.length)return $e(l.expression,_.No_base_constructor_has_the_specified_number_of_type_arguments),r.resolvedBaseTypes=Ke;f=Xa(k[0])}if(rn(f))return r.resolvedBaseTypes=Ke;let y=Pd(f);if(!NL(y)){let k=vme(void 0,f),M=Ns(k,_.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Yr(y));return Ba.add(uh(Nr(l.expression),l.expression,M)),r.resolvedBaseTypes=Ke}return r===y||On(y,r)?($e(r.symbol.valueDeclaration,_.Type_0_recursively_references_itself_as_a_base_type,Yr(r,void 0,2)),r.resolvedBaseTypes=Ke):(r.resolvedBaseTypes===ZB&&(r.members=void 0),r.resolvedBaseTypes=[y])}function Lst(r){let a=r.outerTypeParameters;if(a){let l=a.length-1,f=Jo(r);return a[l].symbol!==f[l].symbol}return!0}function NL(r){if(r.flags&262144){let a=wu(r);if(a)return NL(a)}return!!(r.flags&67633153&&!nf(r)||r.flags&2097152&&Fi(r.types,NL))}function Wst(r){if(r.resolvedBaseTypes=r.resolvedBaseTypes||Ke,r.symbol.declarations){for(let a of r.symbol.declarations)if(a.kind===265&&iA(a))for(let l of iA(a)){let f=Pd(Oi(l));rn(f)||(NL(f)?r!==f&&!On(f,r)?r.resolvedBaseTypes===Ke?r.resolvedBaseTypes=[f]:r.resolvedBaseTypes.push(f):hN(a,r):$e(l,_.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function Bst(r){if(!r.declarations)return!0;for(let a of r.declarations)if(a.kind===265){if(a.flags&256)return!1;let l=iA(a);if(l){for(let f of l)if(mo(f.expression)){let m=Pc(f.expression,788968,!0);if(!m||!(m.flags&64)||K_(m).thisType)return!1}}}return!0}function K_(r){let a=Wn(r),l=a;if(!a.declaredType){let f=r.flags&32?1:2,m=Nhe(r,r.valueDeclaration&&Bft(r.valueDeclaration));m&&(r=m,a=m.links);let y=l.declaredType=a.declaredType=il(f,r),k=wi(r),M=da(r);(k||M||f===1||!Bst(r))&&(y.objectFlags|=4,y.typeParameters=Qi(k,M),y.outerTypeParameters=k,y.localTypeParameters=M,y.instantiations=new Map,y.instantiations.set(Ad(y.typeParameters),y),y.target=y,y.resolvedTypeArguments=y.typeParameters,y.thisType=Op(r),y.thisType.isThisType=!0,y.thisType.constraint=y)}return a.declaredType}function X6e(r){var a;let l=Wn(r);if(!l.declaredType){if(!fg(r,2))return Ye;let f=w.checkDefined((a=r.declarations)==null?void 0:a.find(g6),"Type alias symbol with no valid declaration found"),m=fd(f)?f.typeExpression:f.type,y=m?Oi(m):Ye;if(Ze()){let k=da(r);k&&(l.typeParameters=k,l.instantiations=new Map,l.instantiations.set(Ad(k),y)),y===Ae&&r.escapedName==="BuiltinIteratorReturn"&&(y=Ome())}else y=Ye,f.kind===341?$e(f.typeExpression.type,_.Type_alias_0_circularly_references_itself,Xi(r)):$e(Vl(f)&&f.name||f,_.Type_alias_0_circularly_references_itself,Xi(r));l.declaredType??(l.declaredType=y)}return l.declaredType}function HQ(r){return r.flags&1056&&r.symbol.flags&8?No(Wl(r.symbol)):r}function Y6e(r){let a=Wn(r);if(!a.declaredType){let l=[];if(r.declarations){for(let m of r.declarations)if(m.kind===267){for(let y of m.members)if(ED(y)){let k=wn(y),M=Lx(y).value,G=tw(M!==void 0?cct(M,sa(r),k):Z6e(k));Wn(k).declaredType=G,l.push(Tp(G))}}}let f=l.length?ii(l,1,r,void 0):Z6e(r);f.flags&1048576&&(f.flags|=1024,f.symbol=r),a.declaredType=f}return a.declaredType}function Z6e(r){let a=xi(32,r),l=xi(32,r);return a.regularType=a,a.freshType=l,l.regularType=a,l.freshType=l,a}function e4e(r){let a=Wn(r);if(!a.declaredType){let l=Y6e(Wl(r));a.declaredType||(a.declaredType=l)}return a.declaredType}function W1(r){let a=Wn(r);return a.declaredType||(a.declaredType=Op(r))}function zst(r){let a=Wn(r);return a.declaredType||(a.declaredType=No(ru(r)))}function No(r){return t4e(r)||Ye}function t4e(r){if(r.flags&96)return K_(r);if(r.flags&524288)return X6e(r);if(r.flags&262144)return W1(r);if(r.flags&384)return Y6e(r);if(r.flags&8)return e4e(r);if(r.flags&2097152)return zst(r)}function ML(r){switch(r.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 202:return!0;case 189:return ML(r.elementType);case 184:return!r.typeArguments||r.typeArguments.every(ML)}return!1}function Gst(r){let a=Aw(r);return!a||ML(a)}function r4e(r){let a=ml(r);return a?ML(a):!Hy(r)}function Jst(r){let a=wf(r),l=ob(r);return(r.kind===177||!!a&&ML(a))&&r.parameters.every(r4e)&&l.every(Gst)}function Ust(r){if(r.declarations&&r.declarations.length===1){let a=r.declarations[0];if(a)switch(a.kind){case 173:case 172:return r4e(a);case 175:case 174:case 177:case 178:case 179:return Jst(a)}}return!1}function n4e(r,a,l){let f=Qs();for(let m of r)f.set(m.escapedName,l&&Ust(m)?m:sge(m,a));return f}function i4e(r,a){for(let l of a){if(s4e(l))continue;let f=r.get(l.escapedName);(!f||f.valueDeclaration&&vn(f.valueDeclaration)&&!Rh(f)&&!Zte(f.valueDeclaration))&&(r.set(l.escapedName,l),r.set(l.escapedName,l))}}function s4e(r){return!!r.valueDeclaration&&Hu(r.valueDeclaration)&&Ks(r.valueDeclaration)}function ome(r){if(!r.declaredProperties){let a=r.symbol,l=Ug(a);r.declaredProperties=Fp(l),r.declaredCallSignatures=Ke,r.declaredConstructSignatures=Ke,r.declaredIndexInfos=Ke,r.declaredCallSignatures=TT(l.get("__call")),r.declaredConstructSignatures=TT(l.get("__new")),r.declaredIndexInfos=L4e(a)}return r}function cme(r){return o4e(r)&&L_(na(r)?Xd(r):Ac(r.argumentExpression))}function a4e(r){return o4e(r)&&Vst(na(r)?Xd(r):Ac(r.argumentExpression))}function o4e(r){if(!na(r)&&!xo(r))return!1;let a=na(r)?r.expression:r.argumentExpression;return mo(a)}function Vst(r){return $s(r,di)}function S3(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)===64}function AD(r){let a=Ss(r);return!!a&&cme(a)}function c4e(r){let a=Ss(r);return!!a&&a4e(a)}function ED(r){return!ey(r)||AD(r)}function l4e(r){return n8(r)&&!cme(r)}function qst(r,a,l){w.assert(!!(Cc(r)&4096),"Expected a late-bound symbol."),r.flags|=l,Wn(a.symbol).lateSymbol=r,r.declarations?a.symbol.isReplaceableByMethod||r.declarations.push(a):r.declarations=[a],l&111551&&ZP(r,a)}function u4e(r,a,l,f){w.assert(!!f.symbol,"The member is expected to have a symbol.");let m=Nn(f);if(!m.resolvedSymbol){m.resolvedSymbol=f.symbol;let y=vn(f)?f.left:f.name,k=xo(y)?Ac(y.argumentExpression):Xd(y);if(L_(k)){let M=W_(k),G=f.symbol.flags,J=l.get(M);J||l.set(M,J=wa(0,M,4096));let K=a&&a.get(M);if(!(r.flags&32)&&J.flags&Xk(G)){let be=K?Qi(K.declarations,J.declarations):J.declarations,he=!(k.flags&8192)&&Ai(M)||To(y);or(be,He=>$e(Ss(He)||He,_.Property_0_was_also_declared_here,he)),$e(y||f,_.Duplicate_property_0,he),J=wa(0,M,4096)}return J.links.nameType=k,qst(J,f,G),J.parent?w.assert(J.parent===r,"Existing symbol parent should match new one"):J.parent=r,m.resolvedSymbol=J}}return m.resolvedSymbol}function $st(r,a,l,f){let m=l.get("__index");if(!m){let y=a?.get("__index");y?(m=lT(y),m.links.checkFlags|=4096):m=wa(0,"__index",4096),l.set("__index",m)}m.declarations?f.symbol.isReplaceableByMethod||m.declarations.push(f):m.declarations=[f]}function lme(r,a){let l=Wn(r);if(!l[a]){let f=a==="resolvedExports",m=f?r.flags&1536?lx(r).exports:r.exports:r.members;l[a]=m||E;let y=Qs();for(let G of r.declarations||Ke){let J=qte(G);if(J)for(let K of J)f===Cl(K)&&(AD(K)?u4e(r,m,y,K):c4e(K)&&$st(r,m,y,K))}let k=R1(r).assignmentDeclarationMembers;if(k){let G=ds(k.values());for(let J of G){let K=Hc(J),be=K===3||vn(J)&&KK(J,K)||K===9||K===6;f===!be&&AD(J)&&u4e(r,m,y,J)}}let M=Tv(m,y);if(r.flags&33554432&&l.cjsExportMerged&&r.declarations)for(let G of r.declarations){let J=Wn(G.symbol)[a];if(!M){M=J;continue}J&&J.forEach((K,be)=>{let he=M.get(be);if(!he)M.set(be,K);else{if(he===K)return;M.set(be,q_(he,K))}})}l[a]=M||E}return l[a]}function Ug(r){return r.flags&6256?lme(r,"resolvedMembers"):r.members||E}function QQ(r){if(r.flags&106500&&r.escapedName==="__computed"){let a=Wn(r);if(!a.lateSymbol&&_t(r.declarations,AD)){let l=Ja(r.parent);_t(r.declarations,Cl)?Wf(l):Ug(l)}return a.lateSymbol||(a.lateSymbol=r)}return r}function zf(r,a,l){if(jn(r)&4){let f=r.target,m=Jo(r);return Dr(f.typeParameters)===Dr(m)?Dy(f,Qi(m,[a||f.thisType])):r}else if(r.flags&2097152){let f=fl(r.types,m=>zf(m,a,l));return f!==r.types?ma(f):r}return l?Sp(r):r}function p4e(r,a,l,f){let m,y,k,M,G;EW(l,f,0,l.length)?(y=a.symbol?Ug(a.symbol):Qs(a.declaredProperties),k=a.declaredCallSignatures,M=a.declaredConstructSignatures,G=a.declaredIndexInfos):(m=Jf(l,f),y=n4e(a.declaredProperties,m,l.length===1),k=gK(a.declaredCallSignatures,m),M=gK(a.declaredConstructSignatures,m),G=GRe(a.declaredIndexInfos,m));let J=Qd(a);if(J.length){if(a.symbol&&y===Ug(a.symbol)){let be=Qs(a.declaredProperties),he=eK(a.symbol);he&&be.set("__index",he),y=be}Id(r,y,k,M,G);let K=Wo(f);for(let be of J){let he=K?zf(qi(be,m),K):be;i4e(y,ao(he)),k=Qi(k,Gs(he,0)),M=Qi(M,Gs(he,1));let He=he!==Le?zu(he):[Ri];G=Qi(G,Mn(He,gt=>!bN(G,gt.keyType)))}}Id(r,y,k,M,G)}function Hst(r){p4e(r,ome(r),Ke,Ke)}function Qst(r){let a=ome(r.target),l=Qi(a.typeParameters,[a.thisType]),f=Jo(r),m=f.length===l.length?f:Qi(f,[r]);p4e(r,a,l,m)}function _g(r,a,l,f,m,y,k,M){let G=new p(Hr,M);return G.declaration=r,G.typeParameters=a,G.parameters=f,G.thisParameter=l,G.resolvedReturnType=m,G.resolvedTypePredicate=y,G.minArgumentCount=k,G.resolvedMinArgumentCount=void 0,G.target=void 0,G.mapper=void 0,G.compositeSignatures=void 0,G.compositeKind=void 0,G}function T3(r){let a=_g(r.declaration,r.typeParameters,r.thisParameter,r.parameters,void 0,void 0,r.minArgumentCount,r.flags&167);return a.target=r.target,a.mapper=r.mapper,a.compositeSignatures=r.compositeSignatures,a.compositeKind=r.compositeKind,a}function f4e(r,a){let l=T3(r);return l.compositeSignatures=a,l.compositeKind=1048576,l.target=void 0,l.mapper=void 0,l}function Kst(r,a){if((r.flags&24)===a)return r;r.optionalCallSignatureCache||(r.optionalCallSignatureCache={});let l=a===8?"inner":"outer";return r.optionalCallSignatureCache[l]||(r.optionalCallSignatureCache[l]=Xst(r,a))}function Xst(r,a){w.assert(a===8||a===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");let l=T3(r);return l.flags|=a,l}function _4e(r,a){if(Zu(r)){let m=r.parameters.length-1,y=r.parameters[m],k=an(y);if(Aa(k))return[l(k,m,y)];if(!a&&k.flags&1048576&&Fi(k.types,Aa))return kr(k.types,M=>l(M,m,y))}return[r.parameters];function l(m,y,k){let M=Jo(m),G=f(m,k),J=kr(M,(K,be)=>{let he=G&&G[be]?G[be]:RN(r,y+be,m),He=m.target.elementFlags[be],gt=He&12?32768:He&2?16384:0,xt=wa(1,he,gt);return xt.links.type=He&4?Gu(K):K,xt});return Qi(r.parameters.slice(0,y),J)}function f(m,y){let k=kr(m.target.labeledElementDeclarations,(M,G)=>Lhe(M,G,m.target.elementFlags[G],y));if(k){let M=[],G=new Set;for(let K=0;K<k.length;K++){let be=k[K];Uy(G,be)||M.push(K)}let J=new Map;for(let K of M){let be=J.get(k[K])??1,he;for(;!Uy(G,he=`${k[K]}_${be}`);)be++;k[K]=he,J.set(k[K],be+1)}}return k}}function Yst(r){let a=Iy(r),l=Gs(a,1),f=iy(r.symbol),m=!!f&&ri(f,64);if(l.length===0)return[_g(void 0,r.localTypeParameters,void 0,Ke,r,void 0,0,m?4:0)];let y=Dd(r),k=dn(y),M=zL(y),G=Dr(M),J=[];for(let K of l){let be=qg(K.typeParameters),he=Dr(K.typeParameters);if(k||G>=be&&G<=he){let He=he?ZQ(K,Ov(M,K.typeParameters,be,k)):T3(K);He.typeParameters=r.localTypeParameters,He.resolvedReturnType=r,He.flags=m?He.flags|4:He.flags&-5,J.push(He)}}return J}function KQ(r,a,l,f,m){for(let y of r)if(n9(y,a,l,f,m,l?Cct:O3))return y}function Zst(r,a,l){if(a.typeParameters){if(l>0)return;for(let m=1;m<r.length;m++)if(!KQ(r[m],a,!1,!1,!1))return;return[a]}let f;for(let m=0;m<r.length;m++){let y=m===l?a:KQ(r[m],a,!1,!1,!0)||KQ(r[m],a,!0,!1,!0);if(!y)return;f=qh(f,y)}return f}function ume(r){let a,l;for(let f=0;f<r.length;f++){if(r[f].length===0)return Ke;r[f].length>1&&(l=l===void 0?f:-1);for(let m of r[f])if(!a||!KQ(a,m,!1,!1,!0)){let y=Zst(r,m,f);if(y){let k=m;if(y.length>1){let M=m.thisParameter,G=or(y,J=>J.thisParameter);if(G){let J=ma(Ji(y,K=>K.thisParameter&&an(K.thisParameter)));M=Dx(G,J)}k=f4e(m,y),k.thisParameter=M}(a||(a=[])).push(k)}}}if(!Dr(a)&&l!==-1){let f=r[l!==void 0?l:0],m=f.slice();for(let y of r)if(y!==f){let k=y[0];if(w.assert(!!k,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),m=k.typeParameters&&_t(m,M=>!!M.typeParameters&&!d4e(k.typeParameters,M.typeParameters))?void 0:kr(m,M=>rat(M,k)),!m)break}a=m}return a||Ke}function d4e(r,a){if(Dr(r)!==Dr(a))return!1;if(!r||!a)return!0;let l=Jf(a,r);for(let f=0;f<r.length;f++){let m=r[f],y=a[f];if(m!==y&&!Bh(TN(m)||wt,qi(TN(y)||wt,l)))return!1}return!0}function eat(r,a,l){if(!r||!a)return r||a;let f=ma([an(r),qi(an(a),l)]);return Dx(r,f)}function tat(r,a,l){let f=hf(r),m=hf(a),y=f>=m?r:a,k=y===r?a:r,M=y===r?f:m,G=Qg(r)||Qg(a),J=G&&!Qg(y),K=new Array(M+(J?1:0));for(let be=0;be<M;be++){let he=NT(y,be);y===a&&(he=qi(he,l));let He=NT(k,be)||wt;k===a&&(He=qi(He,l));let gt=ma([he,He]),xt=G&&!J&&be===M-1,Vt=be>=Pm(y)&&be>=Pm(k),_r=be>=f?void 0:RN(r,be),$r=be>=m?void 0:RN(a,be),on=_r===$r?_r:_r?$r?void 0:_r:$r,dr=wa(1|(Vt&&!xt?16777216:0),on||`arg${be}`,xt?32768:Vt?16384:0);dr.links.type=xt?Gu(gt):gt,K[be]=dr}if(J){let be=wa(1,"args",32768);be.links.type=Gu(Dm(k,M)),k===a&&(be.links.type=qi(be.links.type,l)),K[M]=be}return K}function rat(r,a){let l=r.typeParameters||a.typeParameters,f;r.typeParameters&&a.typeParameters&&(f=Jf(a.typeParameters,r.typeParameters));let m=(r.flags|a.flags)&166,y=r.declaration,k=tat(r,a,f),M=Wo(k);M&&Cc(M)&32768&&(m|=1);let G=eat(r.thisParameter,a.thisParameter,f),J=Math.max(r.minArgumentCount,a.minArgumentCount),K=_g(y,l,G,k,void 0,void 0,J,m);return K.compositeKind=1048576,K.compositeSignatures=Qi(r.compositeKind!==2097152&&r.compositeSignatures||[r],[a]),f?K.mapper=r.compositeKind!==2097152&&r.mapper&&r.compositeSignatures?V1(r.mapper,f):f:r.compositeKind!==2097152&&r.mapper&&r.compositeSignatures&&(K.mapper=r.mapper),K}function m4e(r){let a=zu(r[0]);if(a){let l=[];for(let f of a){let m=f.keyType;Fi(r,y=>!!jh(y,m))&&l.push(Lh(m,ii(kr(r,y=>z1(y,m))),_t(r,y=>jh(y,m).isReadonly)))}return l}return Ke}function nat(r){let a=ume(kr(r.types,m=>m===Vr?[Yn]:Gs(m,0))),l=ume(kr(r.types,m=>Gs(m,1))),f=m4e(r.types);Id(r,E,a,l,f)}function RL(r,a){return r?a?ma([r,a]):r:a}function g4e(r){let a=Jy(r,f=>Gs(f,1).length>0),l=kr(r,mu);if(a>0&&a===Jy(l,f=>f)){let f=l.indexOf(!0);l[f]=!1}return l}function iat(r,a,l,f){let m=[];for(let y=0;y<a.length;y++)y===f?m.push(r):l[y]&&m.push(Xa(Gs(a[y],1)[0]));return ma(m)}function sat(r){let a,l,f,m=r.types,y=g4e(m),k=Jy(y,M=>M);for(let M=0;M<m.length;M++){let G=r.types[M];if(!y[M]){let J=Gs(G,1);J.length&&k>0&&(J=kr(J,K=>{let be=T3(K);return be.resolvedReturnType=iat(Xa(K),m,y,M),be})),l=h4e(l,J)}a=h4e(a,Gs(G,0)),f=lp(zu(G),(J,K)=>y4e(J,K,!1),f)}Id(r,E,a||Ke,l||Ke,f||Ke)}function h4e(r,a){for(let l of a)(!r||Fi(r,f=>!n9(f,l,!1,!1,!1,O3)))&&(r=Fr(r,l));return r}function y4e(r,a,l){if(r)for(let f=0;f<r.length;f++){let m=r[f];if(m.keyType===a.keyType)return r[f]=Lh(m.keyType,l?ii([m.type,a.type]):ma([m.type,a.type]),l?m.isReadonly||a.isReadonly:m.isReadonly&&a.isReadonly),r}return Fr(r,a)}function aat(r){if(r.target){Id(r,E,Ke,Ke,Ke);let k=n4e(Rv(r.target),r.mapper,!1),M=gK(Gs(r.target,0),r.mapper),G=gK(Gs(r.target,1),r.mapper),J=GRe(zu(r.target),r.mapper);Id(r,k,M,G,J);return}let a=Ja(r.symbol);if(a.flags&2048){Id(r,E,Ke,Ke,Ke);let k=Ug(a),M=TT(k.get("__call")),G=TT(k.get("__new")),J=L4e(a);Id(r,k,M,G,J);return}let l=Wf(a),f;if(a===Ue){let k=new Map;l.forEach(M=>{var G;!(M.flags&418)&&!(M.flags&512&&((G=M.declarations)!=null&&G.length)&&Fi(M.declarations,pp))&&k.set(M.escapedName,M)}),l=k}let m;if(Id(r,l,Ke,Ke,Ke),a.flags&32){let k=K_(a),M=Iy(k);M.flags&11272192?(l=Qs(GC(l)),i4e(l,ao(M))):M===Le&&(m=Ri)}let y=tK(l);if(y?f=rK(y,ds(l.values())):(m&&(f=Fr(f,m)),a.flags&384&&(No(a).flags&32||_t(r.properties,k=>!!(an(k).flags&296)))&&(f=Fr(f,Di))),Id(r,l,Ke,Ke,f||Ke),a.flags&8208&&(r.callSignatures=TT(a)),a.flags&32){let k=K_(a),M=a.members?TT(a.members.get("__constructor")):Ke;a.flags&16&&(M=Gn(M.slice(),Ji(r.callSignatures,G=>yg(G.declaration)?_g(G.declaration,G.typeParameters,G.thisParameter,G.parameters,k,void 0,G.minArgumentCount,G.flags&167):void 0))),M.length||(M=Yst(k)),r.constructSignatures=M}}function oat(r,a,l){return qi(r,Jf([a.indexType,a.objectType],[xm(0),$g([l])]))}function cat(r){let a=S_(r.mappedType);if(!(a.flags&1048576||a.flags&2097152))return;let l=a.flags&1048576?a.origin:a;if(!l||!(l.flags&2097152))return;let f=ma(l.types.filter(m=>m!==r.constraintType));return f!==ur?f:void 0}function lat(r){let a=jh(r.source,ut),l=Vg(r.mappedType),f=!(l&1),m=l&4?0:16777216,y=a?[Lh(ut,jK(a.type,r.mappedType,r.constraintType)||wt,f&&a.isReadonly)]:Ke,k=Qs(),M=cat(r);for(let G of ao(r.source)){if(M){let be=YC(G,8576);if(!$s(be,M))continue}let J=8192|(f&&Am(G)?8:0),K=wa(4|G.flags&m,G.escapedName,J);if(K.declarations=G.declarations,K.links.nameType=Wn(G).nameType,K.links.propertyType=an(G),r.constraintType.type.flags&8388608&&r.constraintType.type.objectType.flags&262144&&r.constraintType.type.indexType.flags&262144){let be=r.constraintType.type.objectType,he=oat(r.mappedType,r.constraintType.type,be);K.links.mappedType=he,K.links.constraintType=mg(be)}else K.links.mappedType=r.mappedType,K.links.constraintType=r.constraintType;k.set(G.escapedName,K)}Id(r,k,Ke,Ke,y)}function OL(r){if(r.flags&4194304){let a=Sp(r.type);return f0(a)?_Re(a):mg(a)}if(r.flags&16777216){if(r.root.isDistributive){let a=r.checkType,l=OL(a);if(l!==a)return oge(r,Cx(r.root.checkType,l,r.mapper),!1)}return r}if(r.flags&1048576)return cc(r,OL,!0);if(r.flags&2097152){let a=r.types;return a.length===2&&a[0].flags&76&&a[1]===Ys?r:ma(fl(r.types,OL))}return r}function pme(r){return Cc(r)&4096}function fme(r,a,l,f){for(let m of ao(r))f(YC(m,a));if(r.flags&1)f(ut);else for(let m of zu(r))(!l||m.keyType.flags&134217732)&&f(m.keyType)}function uat(r){let a=Qs(),l;Id(r,E,Ke,Ke,Ke);let f=Kd(r),m=S_(r),y=r.target||r,k=Mv(y),M=k3(y)!==2,G=Fh(y),J=Sp(B1(r)),K=Vg(r);ND(r)?fme(J,8576,!1,he):Nx(OL(m),he),Id(r,a,Ke,Ke,l||Ke);function he(gt){let xt=k?qi(k,N3(r.mapper,f,gt)):gt;Nx(xt,Vt=>He(gt,Vt))}function He(gt,xt){if(L_(xt)){let Vt=W_(xt),_r=a.get(Vt);if(_r)_r.links.nameType=ii([_r.links.nameType,xt]),_r.links.keyType=ii([_r.links.keyType,gt]);else{let $r=L_(gt)?ca(J,W_(gt)):void 0,on=!!(K&4||!(K&8)&&$r&&$r.flags&16777216),dr=!!(K&1||!(K&2)&&$r&&Am($r)),pr=re&&!on&&$r&&$r.flags&16777216,pn=$r?pme($r):0,si=wa(4|(on?16777216:0),Vt,pn|262144|(dr?8:0)|(pr?524288:0));si.links.mappedType=r,si.links.nameType=xt,si.links.keyType=gt,$r&&(si.links.syntheticOrigin=$r,si.declarations=M?$r.declarations:void 0),a.set(Vt,si)}}else if(nK(xt)||xt.flags&33){let Vt=xt.flags&5?ut:xt.flags&40?Qt:xt,_r=qi(G,N3(r.mapper,f,gt)),$r=x3(J,xt),on=!!(K&1||!(K&2)&&$r?.isReadonly),dr=Lh(Vt,_r,on);l=y4e(l,dr,!0)}}}function pat(r){var a;if(!r.links.type){let l=r.links.mappedType;if(!fg(r,0))return l.containsError=!0,Ye;let f=Fh(l.target||l),m=N3(l.mapper,Kd(l),r.links.keyType),y=qi(f,m),k=re&&r.flags&16777216&&!Vc(y,49152)?_0(y,!0):r.links.checkFlags&524288?NK(y):y;Ze()||($e(x,_.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Xi(r),Yr(l)),k=Ye),(a=r.links).type??(a.type=k)}return r.links.type}function Kd(r){return r.typeParameter||(r.typeParameter=W1(wn(r.declaration.typeParameter)))}function S_(r){return r.constraintType||(r.constraintType=jp(Kd(r))||Ye)}function Mv(r){return r.declaration.nameType?r.nameType||(r.nameType=qi(Oi(r.declaration.nameType),r.mapper)):void 0}function Fh(r){return r.templateType||(r.templateType=r.declaration.type?qi(ip(Oi(r.declaration.type),!0,!!(Vg(r)&4)),r.mapper):Ye)}function v4e(r){return Aw(r.declaration.typeParameter)}function ND(r){let a=v4e(r);return a.kind===199&&a.operator===143}function B1(r){if(!r.modifiersType)if(ND(r))r.modifiersType=qi(Oi(v4e(r).type),r.mapper);else{let a=Qme(r.declaration),l=S_(a),f=l&&l.flags&262144?jp(l):l;r.modifiersType=f&&f.flags&4194304?qi(f.type,r.mapper):wt}return r.modifiersType}function Vg(r){let a=r.declaration;return(a.readonlyToken?a.readonlyToken.kind===41?2:1:0)|(a.questionToken?a.questionToken.kind===41?8:4:0)}function b4e(r){let a=Vg(r);return a&8?-1:a&4?1:0}function yN(r){if(jn(r)&32)return b4e(r)||yN(B1(r));if(r.flags&2097152){let a=yN(r.types[0]);return Fi(r.types,(l,f)=>f===0||yN(l)===a)?a:0}return 0}function fat(r){return!!(jn(r)&32&&Vg(r)&4)}function nf(r){if(jn(r)&32){let a=S_(r);if(xx(a))return!0;let l=Mv(r);if(l&&xx(qi(l,wT(Kd(r),a))))return!0}return!1}function k3(r){let a=Mv(r);return a?$s(a,Kd(r))?1:2:0}function km(r){return r.members||(r.flags&524288?r.objectFlags&4?Qst(r):r.objectFlags&3?Hst(r):r.objectFlags&1024?lat(r):r.objectFlags&16?aat(r):r.objectFlags&32?uat(r):w.fail("Unhandled object type "+w.formatObjectFlags(r.objectFlags)):r.flags&1048576?nat(r):r.flags&2097152?sat(r):w.fail("Unhandled type "+w.formatTypeFlags(r.flags))),r}function Rv(r){return r.flags&524288?km(r).properties:Ke}function bT(r,a){if(r.flags&524288){let f=km(r).members.get(a);if(f&&gr(f))return f}}function FL(r){if(!r.resolvedProperties){let a=Qs();for(let l of r.types){for(let f of ao(l))if(!a.has(f.escapedName)){let m=LL(r,f.escapedName,!!(r.flags&2097152));m&&a.set(f.escapedName,m)}if(r.flags&1048576&&zu(l).length===0)break}r.resolvedProperties=Fp(a)}return r.resolvedProperties}function ao(r){return r=vN(r),r.flags&3145728?FL(r):Rv(r)}function _at(r,a){r=vN(r),r.flags&3670016&&km(r).members.forEach((l,f)=>{r0(l,f)&&a(l,f)})}function dat(r,a){return a.properties.some(f=>{let m=f.name&&(lm(f.name)?mf(Y6(f.name)):Py(f.name)),y=m&&L_(m)?W_(m):void 0,k=y===void 0?void 0:lr(r,y);return!!k&&L3(k)&&!$s(uw(f),k)})}function mat(r){let a=ii(r);if(!(a.flags&1048576))return Sye(a);let l=Qs();for(let f of r)for(let{escapedName:m}of Sye(f))if(!l.has(m)){let y=I4e(a,m);y&&l.set(m,y)}return ds(l.values())}function hx(r){return r.flags&262144?jp(r):r.flags&8388608?hat(r):r.flags&16777216?k4e(r):wu(r)}function jp(r){return jL(r)?TN(r):void 0}function gat(r,a){let l=M3(r);return!!l&&yx(l,a)}function yx(r,a=0){var l;return a<5&&!!(r&&(r.flags&262144&&_t((l=r.symbol)==null?void 0:l.declarations,f=>ri(f,4096))||r.flags&3145728&&_t(r.types,f=>yx(f,a))||r.flags&8388608&&yx(r.objectType,a+1)||r.flags&16777216&&yx(k4e(r),a+1)||r.flags&33554432&&yx(r.baseType,a)||jn(r)&32&&gat(r,a)||f0(r)&&Tc(kT(r),(f,m)=>!!(r.target.elementFlags[m]&8)&&yx(f,a))>=0))}function hat(r){return jL(r)?yat(r):void 0}function _me(r){let a=Ay(r,!1);return a!==r?a:hx(r)}function yat(r){if(hme(r))return fK(r.objectType,r.indexType);let a=_me(r.indexType);if(a&&a!==r.indexType){let f=l0(r.objectType,a,r.accessFlags);if(f)return f}let l=_me(r.objectType);if(l&&l!==r.objectType)return l0(l,r.indexType,r.accessFlags)}function dme(r){if(!r.resolvedDefaultConstraint){let a=nct(r),l=p0(r);r.resolvedDefaultConstraint=xn(a)?l:xn(l)?a:ii([a,l])}return r.resolvedDefaultConstraint}function S4e(r){if(r.resolvedConstraintOfDistributive!==void 0)return r.resolvedConstraintOfDistributive||void 0;if(r.root.isDistributive&&r.restrictiveInstantiation!==r){let a=Ay(r.checkType,!1),l=a===r.checkType?hx(a):a;if(l&&l!==r.checkType){let f=oge(r,Cx(r.root.checkType,l,r.mapper),!0);if(!(f.flags&131072))return r.resolvedConstraintOfDistributive=f,f}}r.resolvedConstraintOfDistributive=!1}function T4e(r){return S4e(r)||dme(r)}function k4e(r){return jL(r)?T4e(r):void 0}function vat(r,a){let l,f=!1;for(let m of r)if(m.flags&465829888){let y=hx(m);for(;y&&y.flags&21233664;)y=hx(y);y&&(l=Fr(l,y),a&&(l=Fr(l,m)))}else(m.flags&469892092||Hg(m))&&(f=!0);if(l&&(a||f)){if(f)for(let m of r)(m.flags&469892092||Hg(m))&&(l=Fr(l,m));return e9(ma(l,2),!1)}}function wu(r){if(r.flags&464781312||f0(r)){let a=mme(r);return a!==Mc&&a!==rl?a:void 0}return r.flags&4194304?di:void 0}function dg(r){return wu(r)||r}function jL(r){return mme(r)!==rl}function mme(r){if(r.resolvedBaseConstraint)return r.resolvedBaseConstraint;let a=[];return r.resolvedBaseConstraint=l(r);function l(y){if(!y.immediateBaseConstraint){if(!fg(y,4))return rl;let k,M=wK(y);if((a.length<10||a.length<50&&!ws(a,M))&&(a.push(M),k=m(Ay(y,!1)),a.pop()),!Ze()){if(y.flags&262144){let G=iK(y);if(G){let J=$e(G,_.Type_parameter_0_has_a_circular_constraint,Yr(y));x&&!xS(G,x)&&!xS(x,G)&&Xs(J,_n(x,_.Circularity_originates_in_type_at_this_location))}}k=rl}y.immediateBaseConstraint??(y.immediateBaseConstraint=k||Mc)}return y.immediateBaseConstraint}function f(y){let k=l(y);return k!==Mc&&k!==rl?k:void 0}function m(y){if(y.flags&262144){let k=TN(y);return y.isThisType||!k?k:f(k)}if(y.flags&3145728){let k=y.types,M=[],G=!1;for(let J of k){let K=f(J);K?(K!==J&&(G=!0),M.push(K)):G=!0}return G?y.flags&1048576&&M.length===k.length?ii(M):y.flags&2097152&&M.length?ma(M):void 0:y}if(y.flags&4194304)return di;if(y.flags&134217728){let k=y.types,M=Ji(k,f);return M.length===k.length?Sx(y.texts,M):ut}if(y.flags&268435456){let k=f(y.type);return k&&k!==y.type?ZC(y.symbol,k):ut}if(y.flags&8388608){if(hme(y))return f(fK(y.objectType,y.indexType));let k=f(y.objectType),M=f(y.indexType),G=k&&M&&l0(k,M,y.accessFlags);return G&&f(G)}if(y.flags&16777216){let k=T4e(y);return k&&f(k)}if(y.flags&33554432)return f(Ame(y));if(f0(y)){let k=kr(kT(y),(M,G)=>{let J=M.flags&262144&&y.target.elementFlags[G]&8&&f(M)||M;return J!==M&&gf(J,K=>$1(K)&&!f0(K))?J:M});return $g(k,y.target.elementFlags,y.target.readonly,y.target.labeledElementDeclarations)}return y}}function bat(r,a){if(r===a)return r.resolvedApparentType||(r.resolvedApparentType=zf(r,a,!0));let l=`I${nu(r)},${nu(a)}`;return Rp(l)??Cd(l,zf(r,a,!0))}function gme(r){if(r.default)r.default===Yl&&(r.default=rl);else if(r.target){let a=gme(r.target);r.default=a?qi(a,r.mapper):Mc}else{r.default=Yl;let a=r.symbol&&or(r.symbol.declarations,f=>Ho(f)&&f.default),l=a?Oi(a):Mc;r.default===Yl&&(r.default=l)}return r.default}function ST(r){let a=gme(r);return a!==Mc&&a!==rl?a:void 0}function Sat(r){return gme(r)!==rl}function x4e(r){return!!(r.symbol&&or(r.symbol.declarations,a=>Ho(a)&&a.default))}function C4e(r){return r.resolvedApparentType||(r.resolvedApparentType=Tat(r))}function Tat(r){let a=r.target??r,l=M3(a);if(l&&!a.declaration.nameType){let f=B1(r),m=nf(f)?C4e(f):wu(f);if(m&&gf(m,y=>$1(y)||w4e(y)))return qi(a,Cx(l,m,r.mapper))}return r}function w4e(r){return!!(r.flags&2097152)&&Fi(r.types,$1)}function hme(r){let a;return!!(r.flags&8388608&&jn(a=r.objectType)&32&&!nf(a)&&xx(r.indexType)&&!(Vg(a)&8)&&!a.declaration.nameType)}function Sp(r){let a=r.flags&465829888?wu(r)||wt:r,l=jn(a);return l&32?C4e(a):l&4&&a!==r?zf(a,r):a.flags&2097152?bat(a,r):a.flags&402653316?bl:a.flags&296?zo:a.flags&2112?oot():a.flags&528?bc:a.flags&12288?rRe():a.flags&67108864?fa:a.flags&4194304?di:a.flags&2&&!re?fa:a}function vN(r){return Pd(Sp(Pd(r)))}function I4e(r,a,l){var f,m,y;let k=0,M,G,J,K=r.flags&1048576,be,he=4,He=K?0:8,gt=!1;for(let $i of r.types){let Qn=Sp($i);if(!(rn(Qn)||Qn.flags&131072)){let Pi=ca(Qn,a,l),Rs=Pi?j_(Pi):0;if(Pi){if(Pi.flags&106500&&(be??(be=K?0:16777216),K?be|=Pi.flags&16777216:be&=Pi.flags),!M)M=Pi,k=Pi.flags&98304||4;else if(Pi!==M){if((QD(Pi)||Pi)===(QD(M)||M)&&yge(M,Pi,(es,Zo)=>es===Zo?-1:0)===-1)gt=!!M.parent&&!!Dr(da(M.parent));else{G||(G=new Map,G.set(sa(M),M));let es=sa(Pi);G.has(es)||G.set(es,Pi)}k&98304&&(Pi.flags&98304)!==(k&98304)&&(k=k&-98305|4)}K&&Am(Pi)?He|=8:!K&&!Am(Pi)&&(He&=-9),He|=(Rs&6?0:256)|(Rs&4?512:0)|(Rs&2?1024:0)|(Rs&256?2048:0),dhe(Pi)||(he=2)}else if(K){let Ya=!S3(a)&&XC(Qn,a);Ya?(k=k&-98305|4,He|=32|(Ya.isReadonly?8:0),J=Fr(J,Aa(Qn)?PK(Qn)||fe:Ya.type)):Wv(Qn)&&!(jn(Qn)&2097152)?(He|=32,J=Fr(J,fe)):He|=16}}}if(!M||K&&(G||He&48)&&He&1536&&!(G&&kat(G.values())))return;if(!G&&!(He&16)&&!J)if(gt){let $i=(f=Hn(M,oh))==null?void 0:f.links,Qn=Dx(M,$i?.type);return Qn.parent=(y=(m=M.valueDeclaration)==null?void 0:m.symbol)==null?void 0:y.parent,Qn.links.containingType=r,Qn.links.mapper=$i?.mapper,Qn.links.writeType=Nv(M),Qn}else return M;let xt=G?ds(G.values()):[M],Vt,_r,$r,on=[],dr,pr,pn=!1;for(let $i of xt){pr?$i.valueDeclaration&&$i.valueDeclaration!==pr&&(pn=!0):pr=$i.valueDeclaration,Vt=Gn(Vt,$i.declarations);let Qn=an($i);_r||(_r=Qn,$r=Wn($i).nameType);let Pi=Nv($i);(dr||Pi!==Qn)&&(dr=Fr(dr||on.slice(),Pi)),Qn!==_r&&(He|=64),(L3(Qn)||Tx(Qn))&&(He|=128),Qn.flags&131072&&Qn!==vo&&(He|=131072),on.push(Qn)}Gn(on,J);let si=wa(k|(be??0),a,he|He);return si.links.containingType=r,!pn&&pr&&(si.valueDeclaration=pr,pr.symbol.parent&&(si.parent=pr.symbol.parent)),si.declarations=Vt,si.links.nameType=$r,on.length>2?(si.links.checkFlags|=65536,si.links.deferralParent=r,si.links.deferralConstituents=on,si.links.deferralWriteConstituents=dr):(si.links.type=K?ii(on):ma(on),dr&&(si.links.writeType=K?ii(dr):ma(dr))),si}function D4e(r,a,l){var f,m,y;let k=l?(f=r.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:f.get(a):(m=r.propertyCache)==null?void 0:m.get(a);return k||(k=I4e(r,a,l),k&&((l?r.propertyCacheWithoutObjectFunctionPropertyAugment||(r.propertyCacheWithoutObjectFunctionPropertyAugment=Qs()):r.propertyCache||(r.propertyCache=Qs())).set(a,k),l&&!(Cc(k)&48)&&!((y=r.propertyCache)!=null&&y.get(a))&&(r.propertyCache||(r.propertyCache=Qs())).set(a,k))),k}function kat(r){let a;for(let l of r){if(!l.declarations)return;if(!a){a=new Set(l.declarations);continue}if(a.forEach(f=>{ws(l.declarations,f)||a.delete(f)}),a.size===0)return}return a}function LL(r,a,l){let f=D4e(r,a,l);return f&&!(Cc(f)&16)?f:void 0}function Pd(r){return r.flags&1048576&&r.objectFlags&16777216?r.resolvedReducedType||(r.resolvedReducedType=xat(r)):r.flags&2097152?(r.objectFlags&16777216||(r.objectFlags|=16777216|(_t(FL(r),Cat)?33554432:0)),r.objectFlags&33554432?ur:r):r}function xat(r){let a=fl(r.types,Pd);if(a===r.types)return r;let l=ii(a);return l.flags&1048576&&(l.resolvedReducedType=l),l}function Cat(r){return P4e(r)||A4e(r)}function P4e(r){return!(r.flags&16777216)&&(Cc(r)&131264)===192&&!!(an(r).flags&131072)}function A4e(r){return!r.valueDeclaration&&!!(Cc(r)&1024)}function yme(r){return!!(r.flags&1048576&&r.objectFlags&16777216&&_t(r.types,yme)||r.flags&2097152&&wat(r))}function wat(r){let a=r.uniqueLiteralFilledInstantiation||(r.uniqueLiteralFilledInstantiation=qi(r,Ki));return Pd(a)!==a}function vme(r,a){if(a.flags&2097152&&jn(a)&33554432){let l=Bn(FL(a),P4e);if(l)return Ns(r,_.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Yr(a,void 0,536870912),Xi(l));let f=Bn(FL(a),A4e);if(f)return Ns(r,_.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Yr(a,void 0,536870912),Xi(f))}return r}function ca(r,a,l,f){var m,y;if(r=vN(r),r.flags&524288){let k=km(r),M=k.members.get(a);if(M&&!f&&((m=r.symbol)==null?void 0:m.flags)&512&&((y=Wn(r.symbol).typeOnlyExportStarMap)!=null&&y.has(a)))return;if(M&&gr(M,f))return M;if(l)return;let G=k===uo?Vr:k.callSignatures.length?ns:k.constructSignatures.length?ja:void 0;if(G){let J=bT(G,a);if(J)return J}return bT(zt,a)}if(r.flags&2097152){let k=LL(r,a,!0);return k||(l?void 0:LL(r,a,l))}if(r.flags&1048576)return LL(r,a,l)}function WL(r,a){if(r.flags&3670016){let l=km(r);return a===0?l.callSignatures:l.constructSignatures}return Ke}function Gs(r,a){let l=WL(vN(r),a);if(a===0&&!Dr(l)&&r.flags&1048576){if(r.arrayFallbackSignatures)return r.arrayFallbackSignatures;let f;if(gf(r,m=>{var y;return!!((y=m.symbol)!=null&&y.parent)&&Iat(m.symbol.parent)&&(f?f===m.symbol.escapedName:(f=m.symbol.escapedName,!0))})){let m=cc(r,k=>jv((E4e(k.symbol.parent)?Ca:La).typeParameters[0],k.mapper)),y=Gu(m,td(r,k=>E4e(k.symbol.parent)));return r.arrayFallbackSignatures=Gs(lr(y,f),a)}r.arrayFallbackSignatures=l}return l}function Iat(r){return!r||!La.symbol||!Ca.symbol?!1:!!pe(r,La.symbol)||!!pe(r,Ca.symbol)}function E4e(r){return!r||!Ca.symbol?!1:!!pe(r,Ca.symbol)}function bN(r,a){return Bn(r,l=>l.keyType===a)}function bme(r,a){let l,f,m;for(let y of r)y.keyType===ut?l=y:KC(a,y.keyType)&&(f?(m||(m=[f])).push(y):f=y);return m?Lh(wt,ma(kr(m,y=>y.type)),lp(m,(y,k)=>y&&k.isReadonly,!0)):f||(l&&KC(a,ut)?l:void 0)}function KC(r,a){return $s(r,a)||a===ut&&$s(r,Qt)||a===Qt&&(r===xs||!!(r.flags&128)&&yh(r.value))}function Sme(r){return r.flags&3670016?km(r).indexInfos:Ke}function zu(r){return Sme(vN(r))}function jh(r,a){return bN(zu(r),a)}function z1(r,a){var l;return(l=jh(r,a))==null?void 0:l.type}function Tme(r,a){return zu(r).filter(l=>KC(a,l.keyType))}function x3(r,a){return bme(zu(r),a)}function XC(r,a){return x3(r,S3(a)?Ht:mf(Ai(a)))}function N4e(r){var a;let l;for(let f of ob(r))l=qh(l,W1(f.symbol));return l?.length?l:Gc(r)?(a=SN(r))==null?void 0:a.typeParameters:void 0}function kme(r){let a=[];return r.forEach((l,f)=>{F1(f)||a.push(l)}),a}function M4e(r,a){if(Ul(r))return;let l=du(nt,'"'+r+'"',512);return l&&a?Ja(l):l}function XQ(r){return m2(r)||X6(r)||Gi(r)&&q8(r)}function C3(r){if(XQ(r))return!0;if(!Gi(r))return!1;if(r.initializer){let l=T_(r.parent),f=r.parent.parameters.indexOf(r);return w.assert(f>=0),f>=Pm(l,3)}let a=N0(r.parent);return a?!r.type&&!r.dotDotDotToken&&r.parent.parameters.indexOf(r)>=fX(a).length:!1}function Dat(r){return hs(r)&&!Gm(r)&&r.questionToken}function w3(r,a,l,f){return{kind:r,parameterName:a,parameterIndex:l,type:f}}function qg(r){let a=0;if(r)for(let l=0;l<r.length;l++)x4e(r[l])||(a=l+1);return a}function Ov(r,a,l,f){let m=Dr(a);if(!m)return[];let y=Dr(r);if(f||y>=l&&y<=m){let k=r?r.slice():[];for(let G=y;G<m;G++)k[G]=Ye;let M=jge(f);for(let G=y;G<m;G++){let J=ST(a[G]);f&&J&&(Bh(J,wt)||Bh(J,fa))&&(J=Le),k[G]=J?qi(J,Jf(a,k)):M}return k.length=a.length,k}return r&&r.slice()}function T_(r){let a=Nn(r);if(!a.resolvedSignature){let l=[],f=0,m=0,y,k=dn(r)?nF(r):void 0,M=!1,G=N0(r),J=g2(r);!G&&dn(r)&&ak(r)&&!Gee(r)&&!_t(r.parameters,gt=>!!qy(gt))&&!qy(r)&&!eX(r)&&(f|=32);for(let gt=J?1:0;gt<r.parameters.length;gt++){let xt=r.parameters[gt];if(dn(xt)&&IJ(xt)){k=xt;continue}let Vt=xt.symbol,_r=c_(xt)?xt.typeExpression&&xt.typeExpression.type:xt.type;Vt&&Vt.flags&4&&!Ls(xt.name)&&(Vt=ft(xt,Vt.escapedName,111551,void 0,!1)),gt===0&&Vt.escapedName==="this"?(M=!0,y=xt.symbol):l.push(Vt),_r&&_r.kind===202&&(f|=2),XQ(xt)||Gi(xt)&&xt.initializer||kg(xt)||G&&l.length>G.arguments.length&&!_r||(m=l.length)}if((r.kind===178||r.kind===179)&&ED(r)&&(!M||!y)){let gt=r.kind===178?179:178,xt=$o(wn(r),gt);xt&&(y=QC(xt))}k&&k.typeExpression&&(y=Dx(wa(1,"this"),Oi(k.typeExpression)));let be=cv(r)?F0(r):r,he=be&&yc(be)?K_(Ja(be.parent.symbol)):void 0,He=he?he.localTypeParameters:N4e(r);(YB(r)||dn(r)&&Pat(r,l))&&(f|=1),(fI(r)&&ri(r,64)||yc(r)&&ri(r.parent,64))&&(f|=4),a.resolvedSignature=_g(r,He,y,l,void 0,void 0,m,f)}return a.resolvedSignature}function Pat(r,a){if(cv(r)||!xme(r))return!1;let l=Wo(r.parameters),f=l?Pw(l):P0(r).filter(c_),m=fo(f,k=>k.typeExpression&&g7(k.typeExpression.type)?k.typeExpression.type:void 0),y=wa(3,"args",32768);return m?y.links.type=Gu(Oi(m.type)):(y.links.checkFlags|=65536,y.links.deferralParent=ur,y.links.deferralConstituents=[fu],y.links.deferralWriteConstituents=[fu]),m&&a.pop(),a.push(y),!0}function SN(r){if(!(dn(r)&&yo(r)))return;let a=D0(r);return a?.typeExpression&&Fx(Oi(a.typeExpression))}function Aat(r,a){let l=SN(r);if(!l)return;let f=r.parameters.indexOf(a);return a.dotDotDotToken?E9(l,f):Dm(l,f)}function Eat(r){let a=SN(r);return a&&Xa(a)}function xme(r){let a=Nn(r);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=l(r.body)),a.containsArgumentsReference;function l(f){if(!f)return!1;switch(f.kind){case 80:return f.escapedText===te.escapedName&&dO(f)===te;case 173:case 175:case 178:case 179:return f.name.kind===168&&l(f.name);case 212:case 213:return l(f.expression);case 304:return l(f.initializer);default:return!Gz(f)&&!Wm(f)&&!!Ms(f,l)}}}function TT(r){if(!r||!r.declarations)return Ke;let a=[];for(let l=0;l<r.declarations.length;l++){let f=r.declarations[l];if(Fs(f)){if(l>0&&f.body){let m=r.declarations[l-1];if(f.parent===m.parent&&f.kind===m.kind&&f.pos===m.end)continue}if(dn(f)&&f.jsDoc){let m=Nz(f);if(Dr(m)){for(let y of m){let k=y.typeExpression;k.type===void 0&&!yc(f)&&Q1(k,Le),a.push(T_(k))}continue}}a.push(!Cb(f)&&!pd(f)&&SN(f)||T_(f))}}return a}function R4e(r){let a=np(r,r);if(a){let l=df(a);if(l)return an(l)}return Le}function G1(r){if(r.thisParameter)return an(r.thisParameter)}function X_(r){if(!r.resolvedTypePredicate){if(r.target){let a=X_(r.target);r.resolvedTypePredicate=a?qRe(a,r.mapper):Ut}else if(r.compositeSignatures)r.resolvedTypePredicate=Not(r.compositeSignatures,r.compositeKind)||Ut;else{let a=r.declaration&&wf(r.declaration),l;if(!a){let f=SN(r.declaration);f&&r!==f&&(l=X_(f))}if(a||l)r.resolvedTypePredicate=a&&z2(a)?Nat(a,r):l||Ut;else if(r.declaration&&yo(r.declaration)&&(!r.resolvedReturnType||r.resolvedReturnType.flags&16)&&hf(r)>0){let{declaration:f}=r;r.resolvedTypePredicate=Ut,r.resolvedTypePredicate=y_t(f)||Ut}else r.resolvedTypePredicate=Ut}w.assert(!!r.resolvedTypePredicate)}return r.resolvedTypePredicate===Ut?void 0:r.resolvedTypePredicate}function Nat(r,a){let l=r.parameterName,f=r.type&&Oi(r.type);return l.kind===198?w3(r.assertsModifier?2:0,void 0,void 0,f):w3(r.assertsModifier?3:1,l.escapedText,Tc(a.parameters,m=>m.escapedName===l.escapedText),f)}function O4e(r,a,l){return a!==2097152?ii(r,l):ma(r)}function Xa(r){if(!r.resolvedReturnType){if(!fg(r,3))return Ye;let a=r.target?qi(Xa(r.target),r.mapper):r.compositeSignatures?qi(O4e(kr(r.compositeSignatures,Xa),r.compositeKind,2),r.mapper):MD(r.declaration)||(xc(r.declaration.body)?Le:gX(r.declaration));if(r.flags&8?a=S3e(a):r.flags&16&&(a=_0(a)),!Ze()){if(r.declaration){let l=wf(r.declaration);if(l)$e(l,_.Return_type_annotation_circularly_references_itself);else if(de){let f=r.declaration,m=Ss(f);m?$e(m,_._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,To(m)):$e(f,_.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}a=Le}r.resolvedReturnType??(r.resolvedReturnType=a)}return r.resolvedReturnType}function MD(r){if(r.kind===177)return K_(Ja(r.parent.symbol));let a=wf(r);if(cv(r)){let l=Hw(r);if(l&&yc(l.parent)&&!a)return K_(Ja(l.parent.parent.symbol))}if(g2(r))return Oi(r.parameters[0].type);if(a)return Oi(a);if(r.kind===178&&ED(r)){let l=dn(r)&&$a(r);if(l)return l;let f=$o(wn(r),179),m=dN(f);if(m)return m}return Eat(r)}function YQ(r){return r.compositeSignatures&&_t(r.compositeSignatures,YQ)||!r.resolvedReturnType&&Y(r,3)>=0}function Mat(r){return F4e(r)||Le}function F4e(r){if(Zu(r)){let a=an(r.parameters[r.parameters.length-1]),l=Aa(a)?PK(a):a;return l&&z1(l,Qt)}}function I3(r,a,l,f){let m=Cme(r,Ov(a,r.typeParameters,qg(r.typeParameters),l));if(f){let y=fFe(Xa(m));if(y){let k=T3(y);k.typeParameters=f;let M=vx(k);M.mapper=m.mapper;let G=T3(m);return G.resolvedReturnType=M,G}}return m}function Cme(r,a){let l=r.instantiations||(r.instantiations=new Map),f=Ad(a),m=l.get(f);return m||l.set(f,m=ZQ(r,a)),m}function ZQ(r,a){return wx(r,Rat(r,a),!0)}function j4e(r){return fl(r.typeParameters,a=>a.mapper?qi(a,a.mapper):a)}function Rat(r,a){return Jf(j4e(r),a)}function D3(r){return r.typeParameters?r.erasedSignatureCache||(r.erasedSignatureCache=Oat(r)):r}function Oat(r){return wx(r,URe(r.typeParameters),!0)}function Fat(r){return r.typeParameters?r.canonicalSignatureCache||(r.canonicalSignatureCache=jat(r)):r}function jat(r){return I3(r,kr(r.typeParameters,a=>a.target&&!jp(a.target)?a.target:a),dn(r.declaration))}function Lat(r){let a=r.typeParameters;if(a){if(r.baseSignatureCache)return r.baseSignatureCache;let l=URe(a),f=Jf(a,kr(a,y=>jp(y)||wt)),m=kr(a,y=>qi(y,f)||wt);for(let y=0;y<a.length-1;y++)m=Ny(m,f);return m=Ny(m,l),r.baseSignatureCache=wx(r,Jf(a,m),!0)}return r}function vx(r){var a,l;if(!r.isolatedSignatureType){let f=(a=r.declaration)==null?void 0:a.kind,m=f===void 0||f===177||f===181||f===186,y=il(134217744,(l=r.declaration)==null?void 0:l.symbol);y.members=E,y.properties=Ke,y.callSignatures=m?Ke:[r],y.constructSignatures=m?[r]:Ke,y.indexInfos=Ke,r.isolatedSignatureType=y}return r.isolatedSignatureType}function eK(r){return r.members?tK(Ug(r)):void 0}function tK(r){return r.get("__index")}function Lh(r,a,l,f,m){return{keyType:r,type:a,isReadonly:l,declaration:f,components:m}}function L4e(r){let a=eK(r);return a?rK(a,ds(Ug(r).values())):Ke}function rK(r,a=r.parent?ds(Ug(r.parent).values()):void 0){if(r.declarations){let l=[],f=!1,m=!0,y=!1,k=!0,M=!1,G=!0,J=[];for(let be of r.declarations)if(Pb(be)){if(be.parameters.length===1){let he=be.parameters[0];he.type&&Nx(Oi(he.type),He=>{nK(He)&&!bN(l,He)&&l.push(Lh(He,be.type?Oi(be.type):Le,If(be,8),be))})}}else if(c4e(be)){let he=vn(be)?be.left:be.name,He=xo(he)?Ac(he.argumentExpression):Xd(he);if(bN(l,He))continue;$s(He,di)&&($s(He,Qt)?(f=!0,lk(be)||(m=!1)):$s(He,Ht)?(y=!0,lk(be)||(k=!1)):(M=!0,lk(be)||(G=!1)),J.push(be.symbol))}let K=Qi(J,Mn(a,be=>be!==r));return M&&!bN(l,ut)&&l.push(Q3(G,0,K,ut)),f&&!bN(l,Qt)&&l.push(Q3(m,0,K,Qt)),y&&!bN(l,Ht)&&l.push(Q3(k,0,K,Ht)),l}return Ke}function nK(r){return!!(r.flags&4108)||Tx(r)||!!(r.flags&2097152)&&!U1(r)&&_t(r.types,nK)}function iK(r){return Ji(Mn(r.symbol&&r.symbol.declarations,Ho),Aw)[0]}function W4e(r,a){var l;let f;if((l=r.symbol)!=null&&l.declarations){for(let m of r.symbol.declarations)if(m.parent.kind===196){let[y=m.parent,k]=mre(m.parent.parent);if(k.kind===184&&!a){let M=k,G=eye(M);if(G){let J=M.typeArguments.indexOf(y);if(J<G.length){let K=jp(G[J]);if(K){let be=nge(G,G.map((He,gt)=>()=>hdt(M,G,gt))),he=qi(K,be);he!==r&&(f=Fr(f,he))}}}}else if(k.kind===170&&k.dotDotDotToken||k.kind===192||k.kind===203&&k.dotDotDotToken)f=Fr(f,Gu(wt));else if(k.kind===205)f=Fr(f,ut);else if(k.kind===169&&k.parent.kind===201)f=Fr(f,di);else if(k.kind===201&&k.type&&Qa(k.type)===m.parent&&k.parent.kind===195&&k.parent.extendsType===k&&k.parent.checkType.kind===201&&k.parent.checkType.type){let M=k.parent.checkType,G=Oi(M.type);f=Fr(f,qi(G,wT(W1(wn(M.typeParameter)),M.typeParameter.constraint?Oi(M.typeParameter.constraint):di)))}}}return f&&ma(f)}function TN(r){if(!r.constraint)if(r.target){let a=jp(r.target);r.constraint=a?qi(a,r.mapper):Mc}else{let a=iK(r);if(!a)r.constraint=W4e(r)||Mc;else{let l=Oi(a);l.flags&1&&!rn(l)&&(l=a.parent.parent.kind===201?di:wt),r.constraint=l}}return r.constraint===Mc?void 0:r.constraint}function B4e(r){let a=$o(r.symbol,169),l=hd(a.parent)?YF(a.parent):a.parent;return l&&v_(l)}function Ad(r){let a="";if(r){let l=r.length,f=0;for(;f<l;){let m=r[f].id,y=1;for(;f+y<l&&r[f+y].id===m+y;)y++;a.length&&(a+=","),a+=m,y>1&&(a+=":"+y),f+=y}}return a}function bx(r,a){return r?`@${sa(r)}`+(a?`:${Ad(a)}`:""):""}function BL(r,a){let l=0;for(let f of r)(a===void 0||!(f.flags&a))&&(l|=jn(f));return l&458752}function RD(r,a){return _t(a)&&r===$t?wt:Dy(r,a)}function Dy(r,a){let l=Ad(a),f=r.instantiations.get(l);return f||(f=il(4,r.symbol),r.instantiations.set(l,f),f.objectFlags|=a?BL(a):0,f.target=r,f.resolvedTypeArguments=a),f}function z4e(r){let a=xi(r.flags,r.symbol);return a.objectFlags=r.objectFlags,a.target=r.target,a.resolvedTypeArguments=r.resolvedTypeArguments,a}function wme(r,a,l,f,m){if(!f){f=ew(a);let k=LD(f);m=l?Ny(k,l):k}let y=il(4,r.symbol);return y.target=r,y.node=a,y.mapper=l,y.aliasSymbol=f,y.aliasTypeArguments=m,y}function Jo(r){var a,l;if(!r.resolvedTypeArguments){if(!fg(r,5))return Qi(r.target.outerTypeParameters,(a=r.target.localTypeParameters)==null?void 0:a.map(()=>Ye))||Ke;let f=r.node,m=f?f.kind===184?Qi(r.target.outerTypeParameters,TX(f,r.target.localTypeParameters)):f.kind===189?[Oi(f.elementType)]:kr(f.elements,Oi):Ke;Ze()?r.resolvedTypeArguments??(r.resolvedTypeArguments=r.mapper?Ny(m,r.mapper):m):(r.resolvedTypeArguments??(r.resolvedTypeArguments=Qi(r.target.outerTypeParameters,((l=r.target.localTypeParameters)==null?void 0:l.map(()=>Ye))||Ke)),$e(r.node||x,r.target.symbol?_.Type_arguments_for_0_circularly_reference_themselves:_.Tuple_type_arguments_circularly_reference_themselves,r.target.symbol&&Xi(r.target.symbol)))}return r.resolvedTypeArguments}function Fv(r){return Dr(r.target.typeParameters)}function G4e(r,a){let l=No(Ja(a)),f=l.localTypeParameters;if(f){let m=Dr(r.typeArguments),y=qg(f),k=dn(r);if(!(!de&&k)&&(m<y||m>f.length)){let J=k&&sy(r)&&!H2(r.parent),K=y===f.length?J?_.Expected_0_type_arguments_provide_these_with_an_extends_tag:_.Generic_type_0_requires_1_type_argument_s:J?_.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:_.Generic_type_0_requires_between_1_and_2_type_arguments,be=Yr(l,void 0,2);if($e(r,K,be,y,f.length),!k)return Ye}if(r.kind===184&&pRe(r,Dr(r.typeArguments)!==f.length))return wme(l,r,void 0);let G=Qi(l.outerTypeParameters,Ov(zL(r),f,y,k));return Dy(l,G)}return J1(r,a)?l:Ye}function OD(r,a,l,f){let m=No(r);if(m===Ae){let J=EU.get(r.escapedName);if(J!==void 0&&a&&a.length===1)return J===4?Ime(a[0]):ZC(r,a[0])}let y=Wn(r),k=y.typeParameters,M=Ad(a)+bx(l,f),G=y.instantiations.get(M);return G||y.instantiations.set(M,G=QRe(m,Jf(k,Ov(a,k,qg(k),dn(r.valueDeclaration))),l,f)),G}function Wat(r,a){if(Cc(a)&1048576){let m=zL(r),y=bx(a,m),k=at.get(y);return k||(k=ki(1,"error",void 0,`alias ${y}`),k.aliasSymbol=a,k.aliasTypeArguments=m,at.set(y,k)),k}let l=No(a),f=Wn(a).typeParameters;if(f){let m=Dr(r.typeArguments),y=qg(f);if(m<y||m>f.length)return $e(r,y===f.length?_.Generic_type_0_requires_1_type_argument_s:_.Generic_type_0_requires_between_1_and_2_type_arguments,Xi(a),y,f.length),Ye;let k=ew(r),M=k&&(J4e(a)||!J4e(k))?k:void 0,G;if(M)G=LD(M);else if(vF(r)){let J=kN(r,2097152,!0);if(J&&J!==Z){let K=ru(J);K&&K.flags&524288&&(M=K,G=zL(r)||(f?[]:void 0))}}return OD(a,zL(r),M,G)}return J1(r,a)?l:Ye}function J4e(r){var a;let l=(a=r.declarations)==null?void 0:a.find(g6);return!!(l&&i_(l))}function Bat(r){switch(r.kind){case 184:return r.typeName;case 234:let a=r.expression;if(mo(a))return a}}function U4e(r){return r.parent?`${U4e(r.parent)}.${r.escapedName}`:r.escapedName}function sK(r){let l=(r.kind===167?r.right:r.kind===212?r.name:r).escapedText;if(l){let f=r.kind===167?sK(r.left):r.kind===212?sK(r.expression):void 0,m=f?`${U4e(f)}.${l}`:l,y=et.get(m);return y||(et.set(m,y=wa(524288,l,1048576)),y.parent=f,y.links.declaredType=Gt),y}return Z}function kN(r,a,l){let f=Bat(r);if(!f)return Z;let m=Pc(f,a,l);return m&&m!==Z?m:l?Z:sK(f)}function aK(r,a){if(a===Z)return Ye;if(a=jC(a)||a,a.flags&96)return G4e(r,a);if(a.flags&524288)return Wat(r,a);let l=t4e(a);if(l)return J1(r,a)?Tp(l):Ye;if(a.flags&111551&&oK(r)){let f=zat(r,a);return f||(kN(r,788968),an(a))}return Ye}function zat(r,a){let l=Nn(r);if(!l.resolvedJSDocType){let f=an(a),m=f;if(a.valueDeclaration){let y=r.kind===206&&r.qualifier;f.symbol&&f.symbol!==a&&y&&(m=aK(r,f.symbol))}l.resolvedJSDocType=m}return l.resolvedJSDocType}function Ime(r){return Dme(r)?V4e(r,wt):r}function Dme(r){return!!(r.flags&3145728&&_t(r.types,Dme)||r.flags&33554432&&!FD(r)&&Dme(r.baseType)||r.flags&524288&&!Hg(r)||r.flags&432275456&&!Tx(r))}function FD(r){return!!(r.flags&33554432&&r.constraint.flags&2)}function Pme(r,a){return a.flags&3||a===r||r.flags&1?r:V4e(r,a)}function V4e(r,a){let l=`${nu(r)}>${nu(a)}`,f=oa.get(l);if(f)return f;let m=ui(33554432);return m.baseType=r,m.constraint=a,oa.set(l,m),m}function Ame(r){return FD(r)?r.baseType:ma([r.constraint,r.baseType])}function q4e(r){return r.kind===190&&r.elements.length===1}function $4e(r,a,l){return q4e(a)&&q4e(l)?$4e(r,a.elements[0],l.elements[0]):Ey(Oi(a))===Ey(r)?Oi(l):void 0}function Gat(r,a){let l,f=!0;for(;a&&!Ei(a)&&a.kind!==321;){let m=a.parent;if(m.kind===170&&(f=!f),(f||r.flags&8650752)&&m.kind===195&&a===m.trueType){let y=$4e(r,m.checkType,m.extendsType);y&&(l=Fr(l,y))}else if(r.flags&262144&&m.kind===201&&!m.nameType&&a===m.type){let y=Oi(m);if(Kd(y)===Ey(r)){let k=M3(y);if(k){let M=jp(k);M&&gf(M,$1)&&(l=Fr(l,ii([Qt,xs])))}}}a=m}return l?Pme(r,ma(l)):r}function oK(r){return!!(r.flags&16777216)&&(r.kind===184||r.kind===206)}function J1(r,a){return r.typeArguments?($e(r,_.Type_0_is_not_generic,a?Xi(a):r.typeName?To(r.typeName):IU),!1):!0}function H4e(r){if(Be(r.typeName)){let a=r.typeArguments;switch(r.typeName.escapedText){case"String":return J1(r),ut;case"Number":return J1(r),Qt;case"BigInt":return J1(r),Zr;case"Boolean":return J1(r),Ot;case"Void":return J1(r),hr;case"Undefined":return J1(r),fe;case"Null":return J1(r),jt;case"Function":case"function":return J1(r),Vr;case"array":return(!a||!a.length)&&!de?fu:void 0;case"promise":return(!a||!a.length)&&!de?M9(Le):void 0;case"Object":if(a&&a.length===2){if(HF(r)){let l=Oi(a[0]),f=Oi(a[1]),m=l===ut||l===Qt?[Lh(l,f,!1)]:Ke;return oc(void 0,E,Ke,Ke,m)}return Le}return J1(r),de?void 0:Le}}}function Jat(r){let a=Oi(r.type);return re?a9(a,65536):a}function cK(r){let a=Nn(r);if(!a.resolvedType){if(Nd(r)&&gS(r.parent))return a.resolvedSymbol=Z,a.resolvedType=Ac(r.parent.expression);let l,f,m=788968;oK(r)&&(f=H4e(r),f||(l=kN(r,m,!0),l===Z?l=kN(r,m|111551):kN(r,m),f=aK(r,l))),f||(l=kN(r,m),f=aK(r,l)),a.resolvedSymbol=l,a.resolvedType=f}return a.resolvedType}function zL(r){return kr(r.typeArguments,Oi)}function Q4e(r){let a=Nn(r);if(!a.resolvedType){let l=MFe(r);a.resolvedType=Tp(Uf(l))}return a.resolvedType}function K4e(r,a){function l(m){let y=m.declarations;if(y)for(let k of y)switch(k.kind){case 264:case 265:case 267:return k}}if(!r)return a?$t:fa;let f=No(r);return f.flags&524288?Dr(f.typeParameters)!==a?($e(l(r),_.Global_type_0_must_have_1_type_parameter_s,kc(r),a),a?$t:fa):f:($e(l(r),_.Global_type_0_must_be_a_class_or_interface_type,kc(r)),a?$t:fa)}function Eme(r,a){return jD(r,111551,a?_.Cannot_find_global_value_0:void 0)}function Nme(r,a){return jD(r,788968,a?_.Cannot_find_global_type_0:void 0)}function lK(r,a,l){let f=jD(r,788968,l?_.Cannot_find_global_type_0:void 0);if(f&&(No(f),Dr(Wn(f).typeParameters)!==a)){let m=f.declarations&&Bn(f.declarations,gd);$e(m,_.Global_type_0_must_have_1_type_parameter_s,kc(f),a);return}return f}function jD(r,a,l){return ft(void 0,r,a,l,!1,!1)}function Fc(r,a,l){let f=Nme(r,l);return f||l?K4e(f,a):void 0}function X4e(r,a){let l;for(let f of r)l=Fr(l,Fc(f,a,!1));return l??Ke}function Uat(){return Ch||(Ch=Fc("TypedPropertyDescriptor",1,!0)||$t)}function Vat(){return is||(is=Fc("TemplateStringsArray",0,!0)||fa)}function Y4e(){return zs||(zs=Fc("ImportMeta",0,!0)||fa)}function Z4e(){if(!os){let r=wa(0,"ImportMetaExpression"),a=Y4e(),l=wa(4,"meta",8);l.parent=r,l.links.type=a;let f=Qs([l]);r.members=f,os=oc(r,f,Ke,Ke,Ke)}return os}function eRe(r){return Ps||(Ps=Fc("ImportCallOptions",0,r))||fa}function Mme(r){return rc||(rc=Fc("ImportAttributes",0,r))||fa}function tRe(r){return U_||(U_=Eme("Symbol",r))}function qat(r){return Rg||(Rg=Nme("SymbolConstructor",r))}function rRe(){return xh||(xh=Fc("Symbol",0,!1))||fa}function GL(r){return Yp||(Yp=Fc("Promise",1,r))||$t}function nRe(r){return Ll||(Ll=Fc("PromiseLike",1,r))||$t}function Rme(r){return mm||(mm=Eme("Promise",r))}function $at(r){return m_||(m_=Fc("PromiseConstructorLike",0,r))||fa}function JL(r){return $n||($n=Fc("AsyncIterable",3,r))||$t}function Hat(r){return fi||(fi=Fc("AsyncIterator",3,r))||$t}function iRe(r){return Wi||(Wi=Fc("AsyncIterableIterator",3,r))||$t}function Qat(){return Fe??(Fe=X4e(["ReadableStreamAsyncIterator"],1))}function Kat(r){return Et||(Et=Fc("AsyncIteratorObject",3,r))||$t}function Xat(r){return Er||(Er=Fc("AsyncGenerator",3,r))||$t}function uK(r){return og||(og=Fc("Iterable",3,r))||$t}function Yat(r){return ne||(ne=Fc("Iterator",3,r))||$t}function sRe(r){return ot||(ot=Fc("IterableIterator",3,r))||$t}function Ome(){return le?fe:Le}function Zat(){return L??(L=X4e(["ArrayIterator","MapIterator","SetIterator","StringIterator"],1))}function eot(r){return Kt||(Kt=Fc("IteratorObject",3,r))||$t}function tot(r){return er||(er=Fc("Generator",3,r))||$t}function rot(r){return Ar||(Ar=Fc("IteratorYieldResult",1,r))||$t}function not(r){return Qr||(Qr=Fc("IteratorReturnResult",1,r))||$t}function aRe(r){return _a||(_a=Fc("Disposable",0,r))||fa}function iot(r){return eu||(eu=Fc("AsyncDisposable",0,r))||fa}function oRe(r,a=0){let l=jD(r,788968,void 0);return l&&K4e(l,a)}function sot(){return jf||(jf=lK("Extract",2,!0)||Z),jf===Z?void 0:jf}function aot(){return g_||(g_=lK("Omit",2,!0)||Z),g_===Z?void 0:g_}function Fme(r){return V_||(V_=lK("Awaited",1,r)||(r?Z:void 0)),V_===Z?void 0:V_}function oot(){return gy||(gy=Fc("BigInt",0,!1))||fa}function cot(r){return Og??(Og=Fc("ClassDecoratorContext",1,r))??$t}function lot(r){return gm??(gm=Fc("ClassMethodDecoratorContext",2,r))??$t}function uot(r){return Td??(Td=Fc("ClassGetterDecoratorContext",2,r))??$t}function pot(r){return Jb??(Jb=Fc("ClassSetterDecoratorContext",2,r))??$t}function fot(r){return Ve??(Ve=Fc("ClassAccessorDecoratorContext",2,r))??$t}function _ot(r){return lt??(lt=Fc("ClassAccessorDecoratorTarget",2,r))??$t}function dot(r){return Jt??(Jt=Fc("ClassAccessorDecoratorResult",2,r))??$t}function mot(r){return yr??(yr=Fc("ClassFieldDecoratorContext",2,r))??$t}function got(){return gv||(gv=Eme("NaN",!1))}function hot(){return Mp||(Mp=lK("Record",2,!0)||Z),Mp===Z?void 0:Mp}function xN(r,a){return r!==$t?Dy(r,a):fa}function cRe(r){return xN(Uat(),[r])}function lRe(r){return xN(uK(!0),[r,hr,fe])}function Gu(r,a){return xN(a?Ca:La,[r])}function jme(r){switch(r.kind){case 191:return 2;case 192:return uRe(r);case 203:return r.questionToken?2:r.dotDotDotToken?uRe(r):1;default:return 1}}function uRe(r){return QL(r.type)?4:8}function yot(r){let a=Sot(r.parent);if(QL(r))return a?Ca:La;let f=kr(r.elements,jme);return Lme(f,a,kr(r.elements,vot))}function vot(r){return _I(r)||Gi(r)?r:void 0}function pRe(r,a){return!!ew(r)||fRe(r)&&(r.kind===189?c0(r.elementType):r.kind===190?_t(r.elements,c0):a||_t(r.typeArguments,c0))}function fRe(r){let a=r.parent;switch(a.kind){case 197:case 203:case 184:case 193:case 194:case 200:case 195:case 199:case 189:case 190:return fRe(a);case 266:return!0}return!1}function c0(r){switch(r.kind){case 184:return oK(r)||!!(kN(r,788968).flags&524288);case 187:return!0;case 199:return r.operator!==158&&c0(r.type);case 197:case 191:case 203:case 317:case 315:case 316:case 310:return c0(r.type);case 192:return r.type.kind!==189||c0(r.type.elementType);case 193:case 194:return _t(r.types,c0);case 200:return c0(r.objectType)||c0(r.indexType);case 195:return c0(r.checkType)||c0(r.extendsType)||c0(r.trueType)||c0(r.falseType)}return!1}function bot(r){let a=Nn(r);if(!a.resolvedType){let l=yot(r);if(l===$t)a.resolvedType=fa;else if(!(r.kind===190&&_t(r.elements,f=>!!(jme(f)&8)))&&pRe(r))a.resolvedType=r.kind===190&&r.elements.length===0?l:wme(l,r,void 0);else{let f=r.kind===189?[Oi(r.elementType)]:kr(r.elements,Oi);a.resolvedType=Wme(l,f)}}return a.resolvedType}function Sot(r){return J0(r)&&r.operator===148}function $g(r,a,l=!1,f=[]){let m=Lme(a||kr(r,y=>1),l,f);return m===$t?fa:r.length?Wme(m,r):m}function Lme(r,a,l){if(r.length===1&&r[0]&4)return a?Ca:La;let f=kr(r,y=>y&1?"#":y&2?"?":y&4?".":"*").join()+(a?"R":"")+(_t(l,y=>!!y)?","+kr(l,y=>y?qa(y):"_").join(","):""),m=zn.get(f);return m||zn.set(f,m=Tot(r,a,l)),m}function Tot(r,a,l){let f=r.length,m=Jy(r,be=>!!(be&9)),y,k=[],M=0;if(f){y=new Array(f);for(let be=0;be<f;be++){let he=y[be]=Op(),He=r[be];if(M|=He,!(M&12)){let gt=wa(4|(He&2?16777216:0),""+be,a?8:0);gt.links.tupleLabelDeclaration=l?.[be],gt.links.type=he,k.push(gt)}}}let G=k.length,J=wa(4,"length",a?8:0);if(M&12)J.links.type=Qt;else{let be=[];for(let he=m;he<=f;he++)be.push(xm(he));J.links.type=ii(be)}k.push(J);let K=il(12);return K.typeParameters=y,K.outerTypeParameters=void 0,K.localTypeParameters=y,K.instantiations=new Map,K.instantiations.set(Ad(K.typeParameters),K),K.target=K,K.resolvedTypeArguments=K.typeParameters,K.thisType=Op(),K.thisType.isThisType=!0,K.thisType.constraint=K,K.declaredProperties=k,K.declaredCallSignatures=Ke,K.declaredConstructSignatures=Ke,K.declaredIndexInfos=Ke,K.elementFlags=r,K.minLength=m,K.fixedLength=G,K.hasRestElement=!!(M&12),K.combinedFlags=M,K.readonly=a,K.labeledElementDeclarations=l,K}function Wme(r,a){return r.objectFlags&8?Bme(r,a):Dy(r,a)}function Bme(r,a){var l,f,m,y;if(!(r.combinedFlags&14))return Dy(r,a);if(r.combinedFlags&8){let gt=Tc(a,(xt,Vt)=>!!(r.elementFlags[Vt]&8&&xt.flags&1179648));if(gt>=0)return VL(kr(a,(xt,Vt)=>r.elementFlags[Vt]&8?xt:wt))?cc(a[gt],xt=>Bme(r,RW(a,gt,xt))):Ye}let k=[],M=[],G=[],J=-1,K=-1,be=-1;for(let gt=0;gt<a.length;gt++){let xt=a[gt],Vt=r.elementFlags[gt];if(Vt&8)if(xt.flags&1)He(xt,4,(l=r.labeledElementDeclarations)==null?void 0:l[gt]);else if(xt.flags&58982400||nf(xt))He(xt,8,(f=r.labeledElementDeclarations)==null?void 0:f[gt]);else if(Aa(xt)){let _r=kT(xt);if(_r.length+k.length>=1e4)return $e(x,Wm(x)?_.Type_produces_a_tuple_type_that_is_too_large_to_represent:_.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Ye;or(_r,($r,on)=>{var dr;return He($r,xt.target.elementFlags[on],(dr=xt.target.labeledElementDeclarations)==null?void 0:dr[on])})}else He(Lv(xt)&&z1(xt,Qt)||Ye,4,(m=r.labeledElementDeclarations)==null?void 0:m[gt]);else He(xt,Vt,(y=r.labeledElementDeclarations)==null?void 0:y[gt])}for(let gt=0;gt<J;gt++)M[gt]&2&&(M[gt]=1);K>=0&&K<be&&(k[K]=ii(fl(k.slice(K,be+1),(gt,xt)=>M[K+xt]&8?Gf(gt,Qt):gt)),k.splice(K+1,be-K),M.splice(K+1,be-K),G.splice(K+1,be-K));let he=Lme(M,r.readonly,G);return he===$t?fa:M.length?Dy(he,k):he;function He(gt,xt,Vt){xt&1&&(J=M.length),xt&4&&K<0&&(K=M.length),xt&6&&(be=M.length),k.push(xt&2?ip(gt,!0):gt),M.push(xt),G.push(Vt)}}function CN(r,a,l=0){let f=r.target,m=Fv(r)-l;return a>f.fixedLength?llt(r)||$g(Ke):$g(Jo(r).slice(a,m),f.elementFlags.slice(a,m),!1,f.labeledElementDeclarations&&f.labeledElementDeclarations.slice(a,m))}function _Re(r){return ii(Fr(jY(r.target.fixedLength,a=>mf(""+a)),mg(r.target.readonly?Ca:La)))}function kot(r,a){let l=Tc(r.elementFlags,f=>!(f&a));return l>=0?l:r.elementFlags.length}function P3(r,a){return r.elementFlags.length-EO(r.elementFlags,l=>!(l&a))-1}function zme(r){return r.fixedLength+P3(r,3)}function kT(r){let a=Jo(r),l=Fv(r);return a.length===l?a:a.slice(0,l)}function xot(r){return ip(Oi(r.type),!0)}function nu(r){return r.id}function Wh(r,a){return Xv(r,a,nu,Po)>=0}function UL(r,a){let l=Xv(r,a,nu,Po);return l<0?(r.splice(~l,0,a),!0):!1}function Cot(r,a,l){let f=l.flags;if(!(f&131072))if(a|=f&473694207,f&465829888&&(a|=33554432),f&2097152&&jn(l)&67108864&&(a|=536870912),l===Tt&&(a|=8388608),rn(l)&&(a|=1073741824),!re&&f&98304)jn(l)&65536||(a|=4194304);else{let m=r.length,y=m&&l.id>r[m-1].id?~m:Xv(r,l,nu,Po);y<0&&r.splice(~y,0,l)}return a}function dRe(r,a,l){let f;for(let m of l)m!==f&&(a=m.flags&1048576?dRe(r,a|(Eot(m)?1048576:0),m.types):Cot(r,a,m),f=m);return a}function wot(r,a){var l;if(r.length<2)return r;let f=Ad(r),m=wr.get(f);if(m)return m;let y=a&&_t(r,J=>!!(J.flags&524288)&&!nf(J)&&pge(km(J))),k=r.length,M=k,G=0;for(;M>0;){M--;let J=r[M];if(y||J.flags&469499904){if(J.flags&262144&&dg(J).flags&1048576){gg(J,ii(kr(r,he=>he===J?ur:he)),Yo)&&rb(r,M);continue}let K=J.flags&61603840?Bn(ao(J),he=>Cm(an(he))):void 0,be=K&&Tp(an(K));for(let he of r)if(J!==he){if(G===1e5&&G/(k-M)*k>1e6){(l=mn)==null||l.instant(mn.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:r.map(gt=>gt.id)}),$e(x,_.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(G++,K&&he.flags&61603840){let He=lr(he,K.escapedName);if(He&&Cm(He)&&Tp(He)!==be)continue}if(gg(J,he,Yo)&&(!(jn(Or(J))&1)||!(jn(Or(he))&1)||q1(J,he))){rb(r,M);break}}}}return wr.set(f,r),r}function Iot(r,a,l){let f=r.length;for(;f>0;){f--;let m=r[f],y=m.flags;(y&402653312&&a&4||y&256&&a&8||y&2048&&a&64||y&8192&&a&4096||l&&y&32768&&a&16384||CT(m)&&Wh(r,m.regularType))&&rb(r,f)}}function Dot(r){let a=Mn(r,Tx);if(a.length){let l=r.length;for(;l>0;){l--;let f=r[l];f.flags&128&&_t(a,m=>Pot(f,m))&&rb(r,l)}}}function Pot(r,a){return a.flags&134217728?WK(r,a):LK(r,a)}function Aot(r){let a=[];for(let l of r)if(l.flags&2097152&&jn(l)&67108864){let f=l.types[0].flags&8650752?0:1;D_(a,l.types[f])}for(let l of a){let f=[];for(let y of r)if(y.flags&2097152&&jn(y)&67108864){let k=y.types[0].flags&8650752?0:1;y.types[k]===l&&UL(f,y.types[1-k])}let m=wu(l);if(gf(m,y=>Wh(f,y))){let y=r.length;for(;y>0;){y--;let k=r[y];if(k.flags&2097152&&jn(k)&67108864){let M=k.types[0].flags&8650752?0:1;k.types[M]===l&&Wh(f,k.types[1-M])&&rb(r,y)}}UL(r,l)}}}function Eot(r){return!!(r.flags&1048576&&(r.aliasSymbol||r.origin))}function mRe(r,a){for(let l of a)if(l.flags&1048576){let f=l.origin;l.aliasSymbol||f&&!(f.flags&1048576)?D_(r,l):f&&f.flags&1048576&&mRe(r,f.types)}}function Gme(r,a){let l=cs(r);return l.types=a,l}function ii(r,a=1,l,f,m){if(r.length===0)return ur;if(r.length===1)return r[0];if(r.length===2&&!m&&(r[0].flags&1048576||r[1].flags&1048576)){let y=a===0?"N":a===2?"S":"L",k=r[0].id<r[1].id?0:1,M=r[k].id+y+r[1-k].id+bx(l,f),G=_i.get(M);return G||(G=gRe(r,a,l,f,void 0),_i.set(M,G)),G}return gRe(r,a,l,f,m)}function gRe(r,a,l,f,m){let y=[],k=dRe(y,0,r);if(a!==0){if(k&3)return k&1?k&8388608?Tt:k&1073741824?Ye:Le:wt;if(k&32768&&y.length>=2&&y[0]===fe&&y[1]===je&&rb(y,1),(k&402664352||k&16384&&k&32768)&&Iot(y,k,!!(a&2)),k&128&&k&402653184&&Dot(y),k&536870912&&Aot(y),a===2&&(y=wot(y,!!(k&524288)),!y))return Ye;if(y.length===0)return k&65536?k&4194304?jt:Ce:k&32768?k&4194304?fe:j:ur}if(!m&&k&1048576){let G=[];mRe(G,r);let J=[];for(let be of y)_t(G,he=>Wh(he.types,be))||J.push(be);if(!l&&G.length===1&&J.length===0)return G[0];if(lp(G,(be,he)=>be+he.types.length,0)+J.length===y.length){for(let be of G)UL(J,be);m=Gme(1048576,J)}}let M=(k&36323331?0:32768)|(k&2097152?16777216:0);return Ume(y,M,l,f,m)}function Not(r,a){let l,f=[];for(let y of r){let k=X_(y);if(k){if(k.kind!==0&&k.kind!==1||l&&!Jme(l,k))return;l=k,f.push(k.type)}else{let M=a!==2097152?Xa(y):void 0;if(M!==jr&&M!==Jr)return}}if(!l)return;let m=O4e(f,a);return w3(l.kind,l.parameterName,l.parameterIndex,m)}function Jme(r,a){return r.kind===a.kind&&r.parameterIndex===a.parameterIndex}function Ume(r,a,l,f,m){if(r.length===0)return ur;if(r.length===1)return r[0];let k=(m?m.flags&1048576?`|${Ad(m.types)}`:m.flags&2097152?`&${Ad(m.types)}`:`#${m.type.id}|${Ad(r)}`:Ad(r))+bx(l,f),M=Sn.get(k);return M||(M=ui(1048576),M.objectFlags=a|BL(r,98304),M.types=r,M.origin=m,M.aliasSymbol=l,M.aliasTypeArguments=f,r.length===2&&r[0].flags&512&&r[1].flags&512&&(M.flags|=16,M.intrinsicName="boolean"),Sn.set(k,M)),M}function Mot(r){let a=Nn(r);if(!a.resolvedType){let l=ew(r);a.resolvedType=ii(kr(r.types,Oi),1,l,LD(l))}return a.resolvedType}function Rot(r,a,l){let f=l.flags;return f&2097152?hRe(r,a,l.types):(Hg(l)?a&16777216||(a|=16777216,r.set(l.id.toString(),l)):(f&3?(l===Tt&&(a|=8388608),rn(l)&&(a|=1073741824)):(re||!(f&98304))&&(l===je&&(a|=262144,l=fe),r.has(l.id.toString())||(l.flags&109472&&a&109472&&(a|=67108864),r.set(l.id.toString(),l))),a|=f&473694207),a)}function hRe(r,a,l){for(let f of l)a=Rot(r,a,Tp(f));return a}function Oot(r,a){let l=r.length;for(;l>0;){l--;let f=r[l];(f.flags&4&&a&402653312||f.flags&8&&a&256||f.flags&64&&a&2048||f.flags&4096&&a&8192||f.flags&16384&&a&32768||Hg(f)&&a&470302716)&&rb(r,l)}}function Fot(r,a){for(let l of r)if(!Wh(l.types,a)){if(a===je)return Wh(l.types,fe);if(a===fe)return Wh(l.types,je);let f=a.flags&128?ut:a.flags&288?Qt:a.flags&2048?Zr:a.flags&8192?Ht:void 0;if(!f||!Wh(l.types,f))return!1}return!0}function jot(r){let a=r.length,l=Mn(r,f=>!!(f.flags&128));for(;a>0;){a--;let f=r[a];if(f.flags&402653184){for(let m of l)if(IT(m,f)){rb(r,a);break}else if(Tx(f))return!0}}return!1}function yRe(r,a){for(let l=0;l<r.length;l++)r[l]=pl(r[l],f=>!(f.flags&a))}function Lot(r){let a,l=Tc(r,k=>!!(jn(k)&32768));if(l<0)return!1;let f=l+1;for(;f<r.length;){let k=r[f];jn(k)&32768?((a||(a=[r[l]])).push(k),rb(r,f)):f++}if(!a)return!1;let m=[],y=[];for(let k of a)for(let M of k.types)if(UL(m,M)&&Fot(a,M)){if(M===fe&&y.length&&y[0]===je)continue;if(M===je&&y.length&&y[0]===fe){y[0]=je;continue}UL(y,M)}return r[l]=Ume(y,32768),!0}function Wot(r,a,l,f){let m=ui(2097152);return m.objectFlags=a|BL(r,98304),m.types=r,m.aliasSymbol=l,m.aliasTypeArguments=f,m}function ma(r,a=0,l,f){let m=new Map,y=hRe(m,0,r),k=ds(m.values()),M=0;if(y&131072)return ws(k,Nt)?Nt:ur;if(re&&y&98304&&y&84410368||y&67108864&&y&402783228||y&402653316&&y&67238776||y&296&&y&469891796||y&2112&&y&469889980||y&12288&&y&469879804||y&49152&&y&469842940||y&402653184&&y&128&&jot(k))return ur;if(y&1)return y&8388608?Tt:y&1073741824?Ye:Le;if(!re&&y&98304)return y&16777216?ur:y&32768?fe:jt;if((y&4&&y&402653312||y&8&&y&256||y&64&&y&2048||y&4096&&y&8192||y&16384&&y&32768||y&16777216&&y&470302716)&&(a&1||Oot(k,y)),y&262144&&(k[k.indexOf(fe)]=je),k.length===0)return wt;if(k.length===1)return k[0];if(k.length===2&&!(a&2)){let K=k[0].flags&8650752?0:1,be=k[K],he=k[1-K];if(be.flags&8650752&&(he.flags&469893116&&!PRe(he)||y&16777216)){let He=wu(be);if(He&&gf(He,gt=>!!(gt.flags&469893116)||Hg(gt))){if(wN(He,he))return be;if(!(He.flags&1048576&&td(He,gt=>wN(gt,he)))&&!wN(he,He))return ur;M=67108864}}}let G=Ad(k)+(a&2?"*":bx(l,f)),J=qe.get(G);if(!J){if(y&1048576)if(Lot(k))J=ma(k,a,l,f);else if(Fi(k,K=>!!(K.flags&1048576&&K.types[0].flags&32768))){let K=_t(k,B3)?je:fe;yRe(k,32768),J=ii([ma(k,a),K],1,l,f)}else if(Fi(k,K=>!!(K.flags&1048576&&(K.types[0].flags&65536||K.types[1].flags&65536))))yRe(k,65536),J=ii([ma(k,a),jt],1,l,f);else if(k.length>=3&&r.length>2){let K=Math.floor(k.length/2);J=ma([ma(k.slice(0,K),a),ma(k.slice(K),a)],a,l,f)}else{if(!VL(k))return Ye;let K=Bot(k,a),be=_t(K,he=>!!(he.flags&2097152))&&Vme(K)>Vme(k)?Gme(2097152,k):void 0;J=ii(K,1,l,f,be)}else J=Wot(k,M,l,f);qe.set(G,J)}return J}function vRe(r){return lp(r,(a,l)=>l.flags&1048576?a*l.types.length:l.flags&131072?0:a,1)}function VL(r){var a;let l=vRe(r);return l>=1e5?((a=mn)==null||a.instant(mn.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:r.map(f=>f.id),size:l}),$e(x,_.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function Bot(r,a){let l=vRe(r),f=[];for(let m=0;m<l;m++){let y=r.slice(),k=m;for(let G=r.length-1;G>=0;G--)if(r[G].flags&1048576){let J=r[G].types,K=J.length;y[G]=J[k%K],k=Math.floor(k/K)}let M=ma(y,a);M.flags&131072||f.push(M)}return f}function bRe(r){return!(r.flags&3145728)||r.aliasSymbol?1:r.flags&1048576&&r.origin?bRe(r.origin):Vme(r.types)}function Vme(r){return lp(r,(a,l)=>a+bRe(l),0)}function zot(r){let a=Nn(r);if(!a.resolvedType){let l=ew(r),f=kr(r.types,Oi),m=f.length===2?f.indexOf(Ys):-1,y=m>=0?f[1-m]:wt,k=!!(y.flags&76||y.flags&134217728&&Tx(y));a.resolvedType=ma(f,k?1:0,l,LD(l))}return a.resolvedType}function SRe(r,a){let l=ui(4194304);return l.type=r,l.indexFlags=a,l}function Got(r){let a=cs(4194304);return a.type=r,a}function TRe(r,a){return a&1?r.resolvedStringIndexType||(r.resolvedStringIndexType=SRe(r,1)):r.resolvedIndexType||(r.resolvedIndexType=SRe(r,0))}function kRe(r,a){let l=Kd(r),f=S_(r),m=Mv(r.target||r);if(!m&&!(a&2))return f;let y=[];if(xx(f)){if(ND(r))return TRe(r,a);Nx(f,M)}else if(ND(r)){let G=Sp(B1(r));fme(G,8576,!!(a&1),M)}else Nx(OL(f),M);let k=a&2?pl(ii(y),G=>!(G.flags&5)):ii(y);if(k.flags&1048576&&f.flags&1048576&&Ad(k.types)===Ad(f.types))return f;return k;function M(G){let J=m?qi(m,N3(r.mapper,l,G)):G;y.push(J===ut?rr:J)}}function Jot(r){let a=Kd(r);return l(Mv(r)||a);function l(f){return f.flags&470810623?!0:f.flags&16777216?f.root.isDistributive&&f.checkType===a:f.flags&137363456?Fi(f.types,l):f.flags&8388608?l(f.objectType)&&l(f.indexType):f.flags&33554432?l(f.baseType)&&l(f.constraint):f.flags&268435456?l(f.type):!1}}function Py(r){if(zi(r))return ur;if(Hp(r))return Tp(ts(r));if(na(r))return Tp(Xd(r));let a=ok(r);return a!==void 0?mf(Ai(a)):ht(r)?Tp(ts(r)):ur}function YC(r,a,l){if(l||!(j_(r)&6)){let f=Wn(QQ(r)).nameType;if(!f){let m=Ss(r.valueDeclaration);f=r.escapedName==="default"?mf("default"):m&&Py(m)||(oA(r)?void 0:mf(kc(r)))}if(f&&f.flags&a)return f}return ur}function xRe(r,a){return!!(r.flags&a||r.flags&2097152&&_t(r.types,l=>xRe(l,a)))}function Uot(r,a,l){let f=l&&(jn(r)&7||r.aliasSymbol)?Got(r):void 0,m=kr(ao(r),k=>YC(k,a)),y=kr(zu(r),k=>k!==Di&&xRe(k.keyType,a)?k.keyType===ut&&a&8?rr:k.keyType:ur);return ii(Qi(m,y),1,void 0,void 0,f)}function qme(r,a=0){return!!(r.flags&58982400||f0(r)||nf(r)&&(!Jot(r)||k3(r)===2)||r.flags&1048576&&!(a&4)&&yme(r)||r.flags&2097152&&Vc(r,465829888)&&_t(r.types,Hg))}function mg(r,a=0){return r=Pd(r),FD(r)?Ime(mg(r.baseType,a)):qme(r,a)?TRe(r,a):r.flags&1048576?ma(kr(r.types,l=>mg(l,a))):r.flags&2097152?ii(kr(r.types,l=>mg(l,a))):jn(r)&32?kRe(r,a):r===Tt?Tt:r.flags&2?ur:r.flags&131073?di:Uot(r,(a&2?128:402653316)|(a&1?0:12584),a===0)}function CRe(r){let a=sot();return a?OD(a,[r,ut]):ut}function Vot(r){let a=CRe(mg(r));return a.flags&131072?ut:a}function qot(r){let a=Nn(r);if(!a.resolvedType)switch(r.operator){case 143:a.resolvedType=mg(Oi(r.type));break;case 158:a.resolvedType=r.type.kind===155?tge(v6(r.parent)):Ye;break;case 148:a.resolvedType=Oi(r.type);break;default:w.assertNever(r.operator)}return a.resolvedType}function $ot(r){let a=Nn(r);return a.resolvedType||(a.resolvedType=Sx([r.head.text,...kr(r.templateSpans,l=>l.literal.text)],kr(r.templateSpans,l=>Oi(l.type)))),a.resolvedType}function Sx(r,a){let l=Tc(a,J=>!!(J.flags&1179648));if(l>=0)return VL(a)?cc(a[l],J=>Sx(r,RW(a,l,J))):Ye;if(ws(a,Tt))return Tt;let f=[],m=[],y=r[0];if(!G(r,a))return ut;if(f.length===0)return mf(y);if(m.push(y),Fi(m,J=>J==="")){if(Fi(f,J=>!!(J.flags&4)))return ut;if(f.length===1&&Tx(f[0]))return f[0]}let k=`${Ad(f)}|${kr(m,J=>J.length).join(",")}|${m.join("")}`,M=Mi.get(k);return M||Mi.set(k,M=Qot(m,f)),M;function G(J,K){for(let be=0;be<K.length;be++){let he=K[be];if(he.flags&101248)y+=Hot(he)||"",y+=J[be+1];else if(he.flags&134217728){if(y+=he.texts[0],!G(he.texts,he.types))return!1;y+=J[be+1]}else if(xx(he)||qL(he))f.push(he),m.push(y),y=J[be+1];else return!1}return!0}}function Hot(r){return r.flags&128?r.value:r.flags&256?""+r.value:r.flags&2048?MS(r.value):r.flags&98816?r.intrinsicName:void 0}function Qot(r,a){let l=ui(134217728);return l.texts=r,l.types=a,l}function ZC(r,a){return a.flags&1179648?cc(a,l=>ZC(r,l)):a.flags&128?mf(wRe(r,a.value)):a.flags&134217728?Sx(...Kot(r,a.texts,a.types)):a.flags&268435456&&r===a.symbol?a:a.flags&268435461||xx(a)?IRe(r,a):qL(a)?IRe(r,Sx(["",""],[a])):a}function wRe(r,a){switch(EU.get(r.escapedName)){case 0:return a.toUpperCase();case 1:return a.toLowerCase();case 2:return a.charAt(0).toUpperCase()+a.slice(1);case 3:return a.charAt(0).toLowerCase()+a.slice(1)}return a}function Kot(r,a,l){switch(EU.get(r.escapedName)){case 0:return[a.map(f=>f.toUpperCase()),l.map(f=>ZC(r,f))];case 1:return[a.map(f=>f.toLowerCase()),l.map(f=>ZC(r,f))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[ZC(r,l[0]),...l.slice(1)]:l];case 3:return[a[0]===""?a:[a[0].charAt(0).toLowerCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[ZC(r,l[0]),...l.slice(1)]:l]}return[a,l]}function IRe(r,a){let l=`${sa(r)},${nu(a)}`,f=js.get(l);return f||js.set(l,f=Xot(r,a)),f}function Xot(r,a){let l=xi(268435456,r);return l.type=a,l}function Yot(r,a,l,f,m){let y=ui(8388608);return y.objectType=r,y.indexType=a,y.accessFlags=l,y.aliasSymbol=f,y.aliasTypeArguments=m,y}function A3(r){if(de)return!1;if(jn(r)&4096)return!0;if(r.flags&1048576)return Fi(r.types,A3);if(r.flags&2097152)return _t(r.types,A3);if(r.flags&465829888){let a=mme(r);return a!==r&&A3(a)}return!1}function pK(r,a){return L_(r)?W_(r):a&&ol(a)?ok(a):void 0}function $me(r,a){if(a.flags&8208){let l=vr(r.parent,f=>!Oo(f))||r.parent;return mS(l)?Om(l)&&Be(r)&&W3e(l,r):Fi(a.declarations,f=>!Fs(f)||hm(f))}return!0}function DRe(r,a,l,f,m,y){let k=m&&m.kind===213?m:void 0,M=m&&zi(m)?void 0:pK(l,m);if(M!==void 0){if(y&256)return K1(a,M)||Le;let J=ca(a,M);if(J){if(y&64&&m&&J.declarations&&vp(J)&&$me(m,J)){let be=k?.argumentExpression??(LS(m)?m.indexType:m);wd(be,J.declarations,M)}if(k){if(w9(J,k,aFe(k.expression,a.symbol)),HFe(k,J,yb(k))){$e(k.argumentExpression,_.Cannot_assign_to_0_because_it_is_a_read_only_property,Xi(J));return}if(y&8&&(Nn(m).resolvedSymbol=J),YOe(k,J))return kt}let K=y&4?Nv(J):an(J);return k&&yb(k)!==1?jy(k,K):m&&LS(m)&&B3(K)?ii([K,fe]):K}if(gf(a,Aa)&&yh(M)){let K=+M;if(m&&gf(a,be=>!(be.target.combinedFlags&12))&&!(y&16)){let be=Hme(m);if(Aa(a)){if(K<0)return $e(be,_.A_tuple_type_cannot_be_indexed_with_a_negative_value),fe;$e(be,_.Tuple_type_0_of_length_1_has_no_element_at_index_2,Yr(a),Fv(a),Ai(M))}else $e(be,_.Property_0_does_not_exist_on_type_1,Ai(M),Yr(a))}if(K>=0)return G(jh(a,Qt)),y3e(a,K,y&1?je:void 0)}}if(!(l.flags&98304)&&Iu(l,402665900)){if(a.flags&131073)return a;let J=x3(a,l)||jh(a,ut);if(J){if(y&2&&J.keyType!==Qt){k&&(y&4?$e(k,_.Type_0_is_generic_and_can_only_be_indexed_for_reading,Yr(r)):$e(k,_.Type_0_cannot_be_used_to_index_type_1,Yr(l),Yr(r)));return}if(m&&J.keyType===ut&&!Iu(l,12)){let K=Hme(m);return $e(K,_.Type_0_cannot_be_used_as_an_index_type,Yr(l)),y&1?ii([J.type,je]):J.type}return G(J),y&1&&!(a.symbol&&a.symbol.flags&384&&l.symbol&&l.flags&1024&&Wl(l.symbol)===a.symbol)?ii([J.type,je]):J.type}if(l.flags&131072)return ur;if(A3(a))return Le;if(k&&!vX(a)){if(Wv(a)){if(de&&l.flags&384)return Ba.add(_n(k,_.Property_0_does_not_exist_on_type_1,l.value,Yr(a))),fe;if(l.flags&12){let K=kr(a.properties,be=>an(be));return ii(Fr(K,fe))}}if(a.symbol===Ue&&M!==void 0&&Ue.exports.has(M)&&Ue.exports.get(M).flags&418)$e(k,_.Property_0_does_not_exist_on_type_1,Ai(M),Yr(a));else if(de&&!(y&128))if(M!==void 0&&tFe(M,a)){let K=Yr(a);$e(k,_.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,M,K,K+"["+pc(k.argumentExpression)+"]")}else if(z1(a,Qt))$e(k.argumentExpression,_.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let K;if(M!==void 0&&(K=iFe(M,a)))K!==void 0&&$e(k.argumentExpression,_.Property_0_does_not_exist_on_type_1_Did_you_mean_2,M,Yr(a),K);else{let be=sft(a,k,l);if(be!==void 0)$e(k,_.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Yr(a),be);else{let he;if(l.flags&1024)he=Ns(void 0,_.Property_0_does_not_exist_on_type_1,"["+Yr(l)+"]",Yr(a));else if(l.flags&8192){let He=Cv(l.symbol,k);he=Ns(void 0,_.Property_0_does_not_exist_on_type_1,"["+He+"]",Yr(a))}else l.flags&128||l.flags&256?he=Ns(void 0,_.Property_0_does_not_exist_on_type_1,l.value,Yr(a)):l.flags&12&&(he=Ns(void 0,_.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Yr(l),Yr(a)));he=Ns(he,_.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Yr(f),Yr(a)),Ba.add(uh(Nr(k),k,he))}}}return}}if(y&16&&Wv(a))return fe;if(A3(a))return Le;if(m){let J=Hme(m);if(J.kind!==10&&l.flags&384)$e(J,_.Property_0_does_not_exist_on_type_1,""+l.value,Yr(a));else if(l.flags&12)$e(J,_.Type_0_has_no_matching_index_signature_for_type_1,Yr(a),Yr(l));else{let K=J.kind===10?"bigint":Yr(l);$e(J,_.Type_0_cannot_be_used_as_an_index_type,K)}}if(xn(l))return l;return;function G(J){J&&J.isReadonly&&k&&(vb(k)||Rz(k))&&$e(k,_.Index_signature_in_type_0_only_permits_reading,Yr(a))}}function Hme(r){return r.kind===213?r.argumentExpression:r.kind===200?r.indexType:r.kind===168?r.expression:r}function qL(r){if(r.flags&2097152){let a=!1;for(let l of r.types)if(l.flags&101248||qL(l))a=!0;else if(!(l.flags&524288))return!1;return a}return!!(r.flags&77)||Tx(r)}function Tx(r){return!!(r.flags&134217728)&&Fi(r.types,qL)||!!(r.flags&268435456)&&qL(r.type)}function PRe(r){return!!(r.flags&402653184)&&!Tx(r)}function U1(r){return!!E3(r)}function kx(r){return!!(E3(r)&4194304)}function xx(r){return!!(E3(r)&8388608)}function E3(r){return r.flags&3145728?(r.objectFlags&2097152||(r.objectFlags|=2097152|lp(r.types,(a,l)=>a|E3(l),0)),r.objectFlags&12582912):r.flags&33554432?(r.objectFlags&2097152||(r.objectFlags|=2097152|E3(r.baseType)|E3(r.constraint)),r.objectFlags&12582912):(r.flags&58982400||nf(r)||f0(r)?4194304:0)|(r.flags&63176704||PRe(r)?8388608:0)}function Ay(r,a){return r.flags&8388608?ect(r,a):r.flags&16777216?tct(r,a):r}function ARe(r,a,l){if(r.flags&1048576||r.flags&2097152&&!qme(r)){let f=kr(r.types,m=>Ay(Gf(m,a),l));return r.flags&2097152||l?ma(f):ii(f)}}function Zot(r,a,l){if(a.flags&1048576){let f=kr(a.types,m=>Ay(Gf(r,m),l));return l?ma(f):ii(f)}}function ect(r,a){let l=a?"simplifiedForWriting":"simplifiedForReading";if(r[l])return r[l]===rl?r:r[l];r[l]=rl;let f=Ay(r.objectType,a),m=Ay(r.indexType,a),y=Zot(f,m,a);if(y)return r[l]=y;if(!(m.flags&465829888)){let k=ARe(f,m,a);if(k)return r[l]=k}if(f0(f)&&m.flags&296){let k=PN(f,m.flags&8?0:f.target.fixedLength,0,a);if(k)return r[l]=k}return nf(f)&&k3(f)!==2?r[l]=cc(fK(f,r.indexType),k=>Ay(k,a)):r[l]=r}function tct(r,a){let l=r.checkType,f=r.extendsType,m=u0(r),y=p0(r);if(y.flags&131072&&Ey(m)===Ey(l)){if(l.flags&1||$s(Ix(l),Ix(f)))return Ay(m,a);if(ERe(l,f))return ur}else if(m.flags&131072&&Ey(y)===Ey(l)){if(!(l.flags&1)&&$s(Ix(l),Ix(f)))return ur;if(l.flags&1||ERe(l,f))return Ay(y,a)}return r}function ERe(r,a){return!!(ii([RL(r,a),ur]).flags&131072)}function fK(r,a){let l=Jf([Kd(r)],[a]),f=V1(r.mapper,l),m=qi(Fh(r.target||r),f),y=b4e(r)>0||(U1(r)?yN(B1(r))>0:rct(r,a));return ip(m,!0,y)}function rct(r,a){let l=wu(a);return!!l&&_t(ao(r),f=>!!(f.flags&16777216)&&$s(YC(f,8576),l))}function Gf(r,a,l=0,f,m,y){return l0(r,a,l,f,m,y)||(f?Ye:wt)}function NRe(r,a){return gf(r,l=>{if(l.flags&384){let f=W_(l);if(yh(f)){let m=+f;return m>=0&&m<a}}return!1})}function l0(r,a,l=0,f,m,y){if(r===Tt||a===Tt)return Tt;if(r=Pd(r),i3e(r)&&!(a.flags&98304)&&Iu(a,12)&&(a=ut),O.noUncheckedIndexedAccess&&l&32&&(l|=1),xx(a)||(f&&f.kind!==200?f0(r)&&!NRe(a,zme(r.target)):kx(r)&&!(Aa(r)&&NRe(a,zme(r.target)))||yme(r))){if(r.flags&3)return r;let M=l&1,G=r.id+","+a.id+","+M+bx(m,y),J=ei.get(G);return J||ei.set(G,J=Yot(r,a,M,m,y)),J}let k=vN(r);if(a.flags&1048576&&!(a.flags&16)){let M=[],G=!1;for(let J of a.types){let K=DRe(r,k,J,a,f,l|(G?128:0));if(K)M.push(K);else if(f)G=!0;else return}return G?void 0:l&4?ma(M,0,m,y):ii(M,1,m,y)}return DRe(r,k,a,a,f,l|8|64)}function MRe(r){let a=Nn(r);if(!a.resolvedType){let l=Oi(r.objectType),f=Oi(r.indexType),m=ew(r);a.resolvedType=Gf(l,f,0,r,m,LD(m))}return a.resolvedType}function Qme(r){let a=Nn(r);if(!a.resolvedType){let l=il(32,r.symbol);l.declaration=r,l.aliasSymbol=ew(r),l.aliasTypeArguments=LD(l.aliasSymbol),a.resolvedType=l,S_(l)}return a.resolvedType}function Ey(r){return r.flags&33554432?Ey(r.baseType):r.flags&8388608&&(r.objectType.flags&33554432||r.indexType.flags&33554432)?Gf(Ey(r.objectType),Ey(r.indexType)):r}function RRe(r){return G2(r)&&Dr(r.elements)>0&&!_t(r.elements,a=>l7(a)||u7(a)||_I(a)&&!!(a.questionToken||a.dotDotDotToken))}function ORe(r,a){return U1(r)||a&&Aa(r)&&_t(kT(r),U1)}function Kme(r,a,l,f,m){let y,k,M=0;for(;;){if(M===1e3)return $e(x,_.Type_instantiation_is_excessively_deep_and_possibly_infinite),Ye;let J=qi(Ey(r.checkType),a),K=qi(r.extendsType,a);if(J===Ye||K===Ye)return Ye;if(J===Tt||K===Tt)return Tt;let be=tA(r.node.checkType),he=tA(r.node.extendsType),He=RRe(be)&&RRe(he)&&Dr(be.elements)===Dr(he.elements),gt=ORe(J,He),xt;if(r.inferTypeParameters){let _r=G3(r.inferTypeParameters,void 0,0);a&&(_r.nonFixingMapper=V1(_r.nonFixingMapper,a)),gt||zh(_r.inferences,J,K,1536),xt=a?V1(_r.mapper,a):_r.mapper}let Vt=xt?qi(r.extendsType,xt):K;if(!gt&&!ORe(Vt,He)){if(!(Vt.flags&3)&&(J.flags&1||!$s(R3(J),R3(Vt)))){(J.flags&1||l&&!(Vt.flags&131072)&&td(R3(Vt),$r=>$s($r,R3(J))))&&(k||(k=[])).push(qi(Oi(r.node.trueType),xt||a));let _r=Oi(r.node.falseType);if(_r.flags&16777216){let $r=_r.root;if($r.node.parent===r.node&&(!$r.isDistributive||$r.checkType===r.checkType)){r=$r;continue}if(G(_r,a))continue}y=qi(_r,a);break}if(Vt.flags&3||$s(Ix(J),Ix(Vt))){let _r=Oi(r.node.trueType),$r=xt||a;if(G(_r,$r))continue;y=qi(_r,$r);break}}y=ui(16777216),y.root=r,y.checkType=qi(r.checkType,a),y.extendsType=qi(r.extendsType,a),y.mapper=a,y.combinedMapper=xt,y.aliasSymbol=f||r.aliasSymbol,y.aliasTypeArguments=f?m:Ny(r.aliasTypeArguments,a);break}return k?ii(Fr(k,y)):y;function G(J,K){if(J.flags&16777216&&K){let be=J.root;if(be.outerTypeParameters){let he=V1(J.mapper,K),He=kr(be.outerTypeParameters,Vt=>jv(Vt,he)),gt=Jf(be.outerTypeParameters,He),xt=be.isDistributive?jv(be.checkType,gt):void 0;if(!xt||xt===be.checkType||!(xt.flags&1179648))return r=be,a=gt,f=void 0,m=void 0,be.aliasSymbol&&M++,!0}}return!1}}function u0(r){return r.resolvedTrueType||(r.resolvedTrueType=qi(Oi(r.root.node.trueType),r.mapper))}function p0(r){return r.resolvedFalseType||(r.resolvedFalseType=qi(Oi(r.root.node.falseType),r.mapper))}function nct(r){return r.resolvedInferredTrueType||(r.resolvedInferredTrueType=r.combinedMapper?qi(Oi(r.root.node.trueType),r.combinedMapper):u0(r))}function Xme(r){let a;return r.locals&&r.locals.forEach(l=>{l.flags&262144&&(a=Fr(a,No(l)))}),a}function ict(r){return r.isDistributive&&(XL(r.checkType,r.node.trueType)||XL(r.checkType,r.node.falseType))}function sct(r){let a=Nn(r);if(!a.resolvedType){let l=Oi(r.checkType),f=ew(r),m=LD(f),y=Si(r,!0),k=m?y:Mn(y,G=>XL(G,r)),M={node:r,checkType:l,extendsType:Oi(r.extendsType),isDistributive:!!(l.flags&262144),inferTypeParameters:Xme(r),outerTypeParameters:k,instantiations:void 0,aliasSymbol:f,aliasTypeArguments:m};a.resolvedType=Kme(M,void 0,!1),k&&(M.instantiations=new Map,M.instantiations.set(Ad(k),a.resolvedType))}return a.resolvedType}function act(r){let a=Nn(r);return a.resolvedType||(a.resolvedType=W1(wn(r.typeParameter))),a.resolvedType}function FRe(r){return Be(r)?[r]:Fr(FRe(r.left),r.right)}function jRe(r){var a;let l=Nn(r);if(!l.resolvedType){if(!Yh(r))return $e(r.argument,_.String_literal_expected),l.resolvedSymbol=Z,l.resolvedType=Ye;let f=r.isTypeOf?111551:r.flags&16777216?900095:788968,m=np(r,r.argument.literal);if(!m)return l.resolvedSymbol=Z,l.resolvedType=Ye;let y=!!((a=m.exports)!=null&&a.get("export=")),k=df(m,!1);if(xc(r.qualifier))if(k.flags&f)l.resolvedType=LRe(r,l,k,f);else{let M=f===111551?_.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:_.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;$e(r,M,r.argument.literal.text),l.resolvedSymbol=Z,l.resolvedType=Ye}else{let M=FRe(r.qualifier),G=k,J;for(;J=M.shift();){let K=M.length?1920:f,be=Ja(nl(G)),he=r.isTypeOf||dn(r)&&y?ca(an(be),J.escapedText,!1,!0):void 0,gt=(r.isTypeOf?void 0:du(Wf(be),J.escapedText,K))??he;if(!gt)return $e(J,_.Namespace_0_has_no_exported_member_1,Cv(G),To(J)),l.resolvedType=Ye;Nn(J).resolvedSymbol=gt,Nn(J.parent).resolvedSymbol=gt,G=gt}l.resolvedType=LRe(r,l,G,f)}}return l.resolvedType}function LRe(r,a,l,f){let m=nl(l);return a.resolvedSymbol=m,f===111551?RFe(an(l),r):aK(r,m)}function WRe(r){let a=Nn(r);if(!a.resolvedType){let l=ew(r);if(!r.symbol||Ug(r.symbol).size===0&&!l)a.resolvedType=Ys;else{let f=il(16,r.symbol);f.aliasSymbol=l,f.aliasTypeArguments=LD(l),xk(r)&&r.isArrayType&&(f=Gu(f)),a.resolvedType=f}}return a.resolvedType}function ew(r){let a=r.parent;for(;hk(a)||K0(a)||J0(a)&&a.operator===148;)a=a.parent;return g6(a)?wn(a):void 0}function LD(r){return r?da(r):void 0}function _K(r){return!!(r.flags&524288)&&!nf(r)}function Yme(r){return My(r)||!!(r.flags&474058748)}function Zme(r,a){if(!(r.flags&1048576))return r;if(Fi(r.types,Yme))return Bn(r.types,My)||fa;let l=Bn(r.types,y=>!Yme(y));if(!l||Bn(r.types,y=>y!==l&&!Yme(y)))return r;return m(l);function m(y){let k=Qs();for(let G of ao(y))if(!(j_(G)&6)){if(dK(G)){let J=G.flags&65536&&!(G.flags&32768),be=wa(16777220,G.escapedName,pme(G)|(a?8:0));be.links.type=J?fe:ip(an(G),!0),be.declarations=G.declarations,be.links.nameType=Wn(G).nameType,be.links.syntheticOrigin=G,k.set(G.escapedName,be)}}let M=oc(y.symbol,k,Ke,Ke,zu(y));return M.objectFlags|=131200,M}}function xT(r,a,l,f,m){if(r.flags&1||a.flags&1)return Le;if(r.flags&2||a.flags&2)return wt;if(r.flags&131072)return a;if(a.flags&131072)return r;if(r=Zme(r,m),r.flags&1048576)return VL([r,a])?cc(r,J=>xT(J,a,l,f,m)):Ye;if(a=Zme(a,m),a.flags&1048576)return VL([r,a])?cc(a,J=>xT(r,J,l,f,m)):Ye;if(a.flags&473960444)return r;if(kx(r)||kx(a)){if(My(r))return a;if(r.flags&2097152){let J=r.types,K=J[J.length-1];if(_K(K)&&_K(a))return ma(Qi(J.slice(0,J.length-1),[xT(K,a,l,f,m)]))}return ma([r,a])}let y=Qs(),k=new Set,M=r===fa?zu(a):m4e([r,a]);for(let J of ao(a))j_(J)&6?k.add(J.escapedName):dK(J)&&y.set(J.escapedName,ege(J,m));for(let J of ao(r))if(!(k.has(J.escapedName)||!dK(J)))if(y.has(J.escapedName)){let K=y.get(J.escapedName),be=an(K);if(K.flags&16777216){let he=Qi(J.declarations,K.declarations),He=4|J.flags&16777216,gt=wa(He,J.escapedName),xt=an(J),Vt=NK(xt),_r=NK(be);gt.links.type=Vt===_r?xt:ii([xt,_r],2),gt.links.leftSpread=J,gt.links.rightSpread=K,gt.declarations=he,gt.links.nameType=Wn(J).nameType,y.set(J.escapedName,gt)}}else y.set(J.escapedName,ege(J,m));let G=oc(l,y,Ke,Ke,fl(M,J=>oct(J,m)));return G.objectFlags|=2228352|f,G}function dK(r){var a;return!_t(r.declarations,Hu)&&(!(r.flags&106496)||!((a=r.declarations)!=null&&a.some(l=>ni(l.parent))))}function ege(r,a){let l=r.flags&65536&&!(r.flags&32768);if(!l&&a===Am(r))return r;let f=4|r.flags&16777216,m=wa(f,r.escapedName,pme(r)|(a?8:0));return m.links.type=l?fe:an(r),m.declarations=r.declarations,m.links.nameType=Wn(r).nameType,m.links.syntheticOrigin=r,m}function oct(r,a){return r.isReadonly!==a?Lh(r.keyType,r.type,a,r.declaration,r.components):r}function $L(r,a,l,f){let m=xi(r,l);return m.value=a,m.regularType=f||m,m}function tw(r){if(r.flags&2976){if(!r.freshType){let a=$L(r.flags,r.value,r.symbol,r);a.freshType=a,r.freshType=a}return r.freshType}return r}function Tp(r){return r.flags&2976?r.regularType:r.flags&1048576?r.regularType||(r.regularType=cc(r,Tp)):r}function CT(r){return!!(r.flags&2976)&&r.freshType===r}function mf(r){let a;return bt.get(r)||(bt.set(r,a=$L(128,r)),a)}function xm(r){let a;return ar.get(r)||(ar.set(r,a=$L(256,r)),a)}function HL(r){let a,l=MS(r);return tn.get(l)||(tn.set(l,a=$L(2048,r)),a)}function cct(r,a,l){let f,m=`${a}${typeof r=="string"?"@":"#"}${r}`,y=1024|(typeof r=="string"?128:256);return Xn.get(m)||(Xn.set(m,f=$L(y,r,l)),f)}function lct(r){if(r.literal.kind===106)return jt;let a=Nn(r);return a.resolvedType||(a.resolvedType=Tp(ts(r.literal))),a.resolvedType}function uct(r){let a=xi(8192,r);return a.escapedName=`__@${a.symbol.escapedName}@${sa(a.symbol)}`,a}function tge(r){if(dn(r)&&K0(r)){let a=kS(r);a&&(r=h2(a)||a)}if(Hte(r)){let a=FF(r)?v_(r.left):v_(r);if(a){let l=Wn(a);return l.uniqueESSymbolType||(l.uniqueESSymbolType=uct(a))}}return Ht}function pct(r){let a=fp(r,!1,!1),l=a&&a.parent;if(l&&(ni(l)||l.kind===265)&&!Ks(a)&&(!yc(a)||xS(r,a.body)))return K_(wn(l)).thisType;if(l&&Sa(l)&&vn(l.parent)&&Hc(l.parent)===6)return K_(v_(l.parent.left).parent).thisType;let f=r.flags&16777216?O0(r):void 0;return f&&Ao(f)&&vn(f.parent)&&Hc(f.parent)===3?K_(v_(f.parent.left).parent).thisType:yg(a)&&xS(r,a.body)?K_(wn(a)).thisType:($e(r,_.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Ye)}function rge(r){let a=Nn(r);return a.resolvedType||(a.resolvedType=pct(r)),a.resolvedType}function BRe(r){return Oi(QL(r.type)||r.type)}function QL(r){switch(r.kind){case 197:return QL(r.type);case 190:if(r.elements.length===1&&(r=r.elements[0],r.kind===192||r.kind===203&&r.dotDotDotToken))return QL(r.type);break;case 189:return r.elementType}}function fct(r){let a=Nn(r);return a.resolvedType||(a.resolvedType=r.dotDotDotToken?BRe(r):ip(Oi(r.type),!0,!!r.questionToken))}function Oi(r){return Gat(zRe(r),r)}function zRe(r){switch(r.kind){case 133:case 313:case 314:return Le;case 159:return wt;case 154:return ut;case 150:return Qt;case 163:return Zr;case 136:return Ot;case 155:return Ht;case 116:return hr;case 157:return fe;case 106:return jt;case 146:return ur;case 151:return r.flags&524288&&!de?Le:Cr;case 141:return Ae;case 198:case 110:return rge(r);case 202:return lct(r);case 184:return cK(r);case 183:return r.assertsModifier?hr:Ot;case 234:return cK(r);case 187:return Q4e(r);case 189:case 190:return bot(r);case 191:return xot(r);case 193:return Mot(r);case 194:return zot(r);case 315:return Jat(r);case 317:return ip(Oi(r.type));case 203:return fct(r);case 197:case 316:case 310:return Oi(r.type);case 192:return BRe(r);case 319:return Agt(r);case 185:case 186:case 188:case 323:case 318:case 324:return WRe(r);case 199:return qot(r);case 200:return MRe(r);case 201:return Qme(r);case 195:return sct(r);case 196:return act(r);case 204:return $ot(r);case 206:return jRe(r);case 80:case 167:case 212:let a=rd(r);return a?No(a):Ye;default:return Ye}}function mK(r,a,l){if(r&&r.length)for(let f=0;f<r.length;f++){let m=r[f],y=l(m,a);if(m!==y){let k=f===0?[]:r.slice(0,f);for(k.push(y),f++;f<r.length;f++)k.push(l(r[f],a));return k}}return r}function Ny(r,a){return mK(r,a,qi)}function gK(r,a){return mK(r,a,wx)}function GRe(r,a){return mK(r,a,kct)}function Jf(r,a){return r.length===1?wT(r[0],a?a[0]:Le):JRe(r,a)}function jv(r,a){switch(a.kind){case 0:return r===a.source?a.target:r;case 1:{let f=a.sources,m=a.targets;for(let y=0;y<f.length;y++)if(r===f[y])return m?m[y]:Le;return r}case 2:{let f=a.sources,m=a.targets;for(let y=0;y<f.length;y++)if(r===f[y])return m[y]();return r}case 3:return a.func(r);case 4:case 5:let l=jv(r,a.mapper1);return l!==r&&a.kind===4?qi(l,a.mapper2):jv(l,a.mapper2)}}function wT(r,a){return w.attachDebugPrototypeIfDebug({kind:0,source:r,target:a})}function JRe(r,a){return w.attachDebugPrototypeIfDebug({kind:1,sources:r,targets:a})}function KL(r,a){return w.attachDebugPrototypeIfDebug({kind:3,func:r,debugInfo:w.isDebugging?a:void 0})}function nge(r,a){return w.attachDebugPrototypeIfDebug({kind:2,sources:r,targets:a})}function hK(r,a,l){return w.attachDebugPrototypeIfDebug({kind:r,mapper1:a,mapper2:l})}function URe(r){return Jf(r,void 0)}function _ct(r,a){let l=r.inferences.slice(a);return Jf(kr(l,f=>f.typeParameter),kr(l,()=>wt))}function dct(r){return r.outerReturnMapper??(r.outerReturnMapper=VRe(r.returnMapper,x3e(r).mapper))}function V1(r,a){return r?hK(4,r,a):a}function VRe(r,a){return r?hK(5,r,a):a}function Cx(r,a,l){return l?hK(5,wT(r,a),l):wT(r,a)}function N3(r,a,l){return r?hK(5,r,wT(a,l)):wT(a,l)}function mct(r){return!r.constraint&&!iK(r)||r.constraint===Mc?r:r.restrictiveInstantiation||(r.restrictiveInstantiation=Op(r.symbol),r.restrictiveInstantiation.constraint=Mc,r.restrictiveInstantiation)}function ige(r){let a=Op(r.symbol);return a.target=r,a}function qRe(r,a){return w3(r.kind,r.parameterName,r.parameterIndex,qi(r.type,a))}function wx(r,a,l){let f;if(r.typeParameters&&!l){f=kr(r.typeParameters,ige),a=V1(Jf(r.typeParameters,f),a);for(let y of f)y.mapper=a}let m=_g(r.declaration,f,r.thisParameter&&sge(r.thisParameter,a),mK(r.parameters,a,sge),void 0,void 0,r.minArgumentCount,r.flags&167);return m.target=r,m.mapper=a,m}function sge(r,a){let l=Wn(r);if(l.type&&!d0(l.type)&&(!(r.flags&65536)||l.writeType&&!d0(l.writeType)))return r;Cc(r)&1&&(r=l.target,a=V1(l.mapper,a));let f=wa(r.flags,r.escapedName,1|Cc(r)&53256);return f.declarations=r.declarations,f.parent=r.parent,f.links.target=r,f.links.mapper=a,r.valueDeclaration&&(f.valueDeclaration=r.valueDeclaration),l.nameType&&(f.links.nameType=l.nameType),f}function gct(r,a,l,f){let m=r.objectFlags&4||r.objectFlags&8388608?r.node:r.symbol.declarations[0],y=Nn(m),k=r.objectFlags&4?y.resolvedType:r.objectFlags&64?r.target:r,M=y.outerTypeParameters;if(!M){let G=Si(m,!0);if(yg(m)){let K=N4e(m);G=Gn(G,K)}M=G||Ke;let J=r.objectFlags&8388612?[m]:r.symbol.declarations;M=(k.objectFlags&8388612||k.symbol.flags&8192||k.symbol.flags&2048)&&!k.aliasTypeArguments?Mn(M,K=>_t(J,be=>XL(K,be))):M,y.outerTypeParameters=M}if(M.length){let G=V1(r.mapper,a),J=kr(M,gt=>jv(gt,G)),K=l||r.aliasSymbol,be=l?f:Ny(r.aliasTypeArguments,a),he=Ad(J)+bx(K,be);k.instantiations||(k.instantiations=new Map,k.instantiations.set(Ad(M)+bx(k.aliasSymbol,k.aliasTypeArguments),k));let He=k.instantiations.get(he);if(!He){let gt=Jf(M,J);k.objectFlags&134217728&&a&&(gt=V1(gt,a)),He=k.objectFlags&4?wme(r.target,r.node,gt,K,be):k.objectFlags&32?yct(k,gt,K,be):age(k,gt,K,be),k.instantiations.set(he,He);let xt=jn(He);if(He.flags&3899393&&!(xt&524288)){let Vt=_t(J,d0);jn(He)&524288||(xt&52?He.objectFlags|=524288|(Vt?1048576:0):He.objectFlags|=Vt?0:524288)}}return He}return r}function hct(r){return!(r.parent.kind===184&&r.parent.typeArguments&&r===r.parent.typeName||r.parent.kind===206&&r.parent.typeArguments&&r===r.parent.qualifier)}function XL(r,a){if(r.symbol&&r.symbol.declarations&&r.symbol.declarations.length===1){let f=r.symbol.declarations[0].parent;for(let m=a;m!==f;m=m.parent)if(!m||m.kind===242||m.kind===195&&Ms(m.extendsType,l))return!0;return l(a)}return!0;function l(f){switch(f.kind){case 198:return!!r.isThisType;case 80:return!r.isThisType&&Wm(f)&&hct(f)&&zRe(f)===r;case 187:let m=f.exprName,y=wp(m);if(!Sb(y)){let k=sp(y),M=r.symbol.declarations[0],G=M.kind===169?M.parent:r.isThisType?M:void 0;if(k.declarations&&G)return _t(k.declarations,J=>xS(J,G))||_t(f.typeArguments,l)}return!0;case 175:case 174:return!f.type&&!!f.body||_t(f.typeParameters,l)||_t(f.parameters,l)||!!f.type&&l(f.type)}return!!Ms(f,l)}}function M3(r){let a=S_(r);if(a.flags&4194304){let l=Ey(a.type);if(l.flags&262144)return l}}function yct(r,a,l,f){let m=M3(r);if(m){let k=qi(m,a);if(m!==k)return Q3e(Pd(k),y,l,f)}return qi(S_(r),a)===Tt?Tt:age(r,a,l,f);function y(k){if(k.flags&61603843&&k!==Tt&&!rn(k)){if(!r.declaration.nameType){let M;if(Z_(k)||k.flags&1&&Y(m,4)<0&&(M=jp(m))&&gf(M,$1))return bct(k,r,Cx(m,k,a));if(Aa(k))return vct(k,r,m,a);if(w4e(k))return ma(kr(k.types,y))}return age(r,Cx(m,k,a))}return k}}function $Re(r,a){return a&1?!0:a&2?!1:r}function vct(r,a,l,f){let m=r.target.elementFlags,y=r.target.fixedLength,k=y?Cx(l,r,f):f,M=kr(kT(r),(be,he)=>{let He=m[he];return he<y?HRe(a,mf(""+he),!!(He&2),k):He&8?qi(a,Cx(l,be,f)):s9(qi(a,Cx(l,Gu(be),f)))??wt}),G=Vg(a),J=G&4?kr(m,be=>be&1?2:be):G&8?kr(m,be=>be&2?1:be):m,K=$Re(r.target.readonly,Vg(a));return ws(M,Ye)?Ye:$g(M,J,K,r.target.labeledElementDeclarations)}function bct(r,a,l){let f=HRe(a,Qt,!0,l);return rn(f)?Ye:Gu(f,$Re(IN(r),Vg(a)))}function HRe(r,a,l,f){let m=N3(f,Kd(r),a),y=qi(Fh(r.target||r),m),k=Vg(r);return re&&k&4&&!Vc(y,49152)?_0(y,!0):re&&k&8&&l?ed(y,524288):y}function age(r,a,l,f){w.assert(r.symbol,"anonymous type must have symbol to be instantiated");let m=il(r.objectFlags&-1572865|64,r.symbol);if(r.objectFlags&32){m.declaration=r.declaration;let y=Kd(r),k=ige(y);m.typeParameter=k,a=V1(wT(y,k),a),k.mapper=a}return r.objectFlags&8388608&&(m.node=r.node),m.target=r,m.mapper=a,m.aliasSymbol=l||r.aliasSymbol,m.aliasTypeArguments=l?f:Ny(r.aliasTypeArguments,a),m.objectFlags|=m.aliasTypeArguments?BL(m.aliasTypeArguments):0,m}function oge(r,a,l,f,m){let y=r.root;if(y.outerTypeParameters){let k=kr(y.outerTypeParameters,J=>jv(J,a)),M=(l?"C":"")+Ad(k)+bx(f,m),G=y.instantiations.get(M);if(!G){let J=Jf(y.outerTypeParameters,k),K=y.checkType,be=y.isDistributive?Pd(jv(K,J)):void 0;G=be&&K!==be&&be.flags&1179648?Q3e(be,he=>Kme(y,Cx(K,he,J),l),f,m):Kme(y,J,l,f,m),y.instantiations.set(M,G)}return G}return r}function qi(r,a){return r&&a?QRe(r,a,void 0,void 0):r}function QRe(r,a,l,f){var m;if(!d0(r))return r;if(S===100||h>=5e6)return(m=mn)==null||m.instant(mn.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:r.id,instantiationDepth:S,instantiationCount:h}),$e(x,_.Type_instantiation_is_excessively_deep_and_possibly_infinite),Ye;let y=apt(a);y===-1&&ipt(a);let k=r.id+bx(l,f),M=g1[y!==-1?y:jg-1],G=M.get(k);if(G)return G;d++,h++,S++;let J=Sct(r,a,l,f);return y===-1?spt():M.set(k,J),S--,J}function Sct(r,a,l,f){let m=r.flags;if(m&262144)return jv(r,a);if(m&524288){let y=r.objectFlags;if(y&52){if(y&4&&!r.node){let k=r.resolvedTypeArguments,M=Ny(k,a);return M!==k?Wme(r.target,M):r}return y&1024?Tct(r,a):gct(r,a,l,f)}return r}if(m&3145728){let y=r.flags&1048576?r.origin:void 0,k=y&&y.flags&3145728?y.types:r.types,M=Ny(k,a);if(M===k&&l===r.aliasSymbol)return r;let G=l||r.aliasSymbol,J=l?f:Ny(r.aliasTypeArguments,a);return m&2097152||y&&y.flags&2097152?ma(M,0,G,J):ii(M,1,G,J)}if(m&4194304)return mg(qi(r.type,a));if(m&134217728)return Sx(r.texts,Ny(r.types,a));if(m&268435456)return ZC(r.symbol,qi(r.type,a));if(m&8388608){let y=l||r.aliasSymbol,k=l?f:Ny(r.aliasTypeArguments,a);return Gf(qi(r.objectType,a),qi(r.indexType,a),r.accessFlags,void 0,y,k)}if(m&16777216)return oge(r,V1(r.mapper,a),!1,l,f);if(m&33554432){let y=qi(r.baseType,a);if(FD(r))return Ime(y);let k=qi(r.constraint,a);return y.flags&8650752&&U1(k)?Pme(y,k):k.flags&3||$s(Ix(y),Ix(k))?y:y.flags&8650752?Pme(y,k):ma([k,y])}return r}function Tct(r,a){let l=qi(r.mappedType,a);if(!(jn(l)&32))return r;let f=qi(r.constraintType,a);if(!(f.flags&4194304))return r;let m=I3e(qi(r.source,a),l,f);return m||r}function R3(r){return r.flags&402915327?r:r.permissiveInstantiation||(r.permissiveInstantiation=qi(r,vc))}function Ix(r){return r.flags&402915327?r:(r.restrictiveInstantiation||(r.restrictiveInstantiation=qi(r,Dc),r.restrictiveInstantiation.restrictiveInstantiation=r.restrictiveInstantiation),r.restrictiveInstantiation)}function kct(r,a){return Lh(r.keyType,qi(r.type,a),r.isReadonly,r.declaration,r.components)}function k_(r){switch(w.assert(r.kind!==175||pd(r)),r.kind){case 219:case 220:case 175:case 263:return KRe(r);case 211:return _t(r.properties,k_);case 210:return _t(r.elements,k_);case 228:return k_(r.whenTrue)||k_(r.whenFalse);case 227:return(r.operatorToken.kind===57||r.operatorToken.kind===61)&&(k_(r.left)||k_(r.right));case 304:return k_(r.initializer);case 218:return k_(r.expression);case 293:return _t(r.properties,k_)||cm(r.parent)&&_t(r.parent.parent.children,k_);case 292:{let{initializer:a}=r;return!!a&&k_(a)}case 295:{let{expression:a}=r;return!!a&&k_(a)}}return!1}function KRe(r){return U8(r)||xct(r)}function xct(r){return r.typeParameters||wf(r)||!r.body?!1:r.body.kind!==242?k_(r.body):!!hb(r.body,a=>!!a.expression&&k_(a.expression))}function yK(r){return(Cb(r)||pd(r))&&KRe(r)}function XRe(r){if(r.flags&524288){let a=km(r);if(a.constructSignatures.length||a.callSignatures.length){let l=il(16,r.symbol);return l.members=a.members,l.properties=a.properties,l.callSignatures=Ke,l.constructSignatures=Ke,l.indexInfos=Ke,l}}else if(r.flags&2097152)return ma(kr(r.types,XRe));return r}function Bh(r,a){return gg(r,a,Wu)}function O3(r,a){return gg(r,a,Wu)?-1:0}function cge(r,a){return gg(r,a,Lu)?-1:0}function Cct(r,a){return gg(r,a,Lg)?-1:0}function IT(r,a){return gg(r,a,Lg)}function wN(r,a){return gg(r,a,Yo)}function $s(r,a){return gg(r,a,Lu)}function q1(r,a){return r.flags&1048576?Fi(r.types,l=>q1(l,a)):a.flags&1048576?_t(a.types,l=>q1(r,l)):r.flags&2097152?_t(r.types,l=>q1(l,a)):r.flags&58982400?q1(wu(r)||wt,a):Hg(a)?!!(r.flags&67633152):a===zt?!!(r.flags&67633152)&&!Hg(r):a===Vr?!!(r.flags&524288)&&Gge(r):On(r,Or(a))||Z_(a)&&!IN(a)&&q1(r,Ca)}function vK(r,a){return gg(r,a,ef)}function YL(r,a){return vK(r,a)||vK(a,r)}function Ju(r,a,l,f,m,y){return Y_(r,a,Lu,l,f,m,y)}function DT(r,a,l,f,m,y){return lge(r,a,Lu,l,f,m,y,void 0)}function lge(r,a,l,f,m,y,k,M){return gg(r,a,l)?!0:!f||!F3(m,r,a,l,y,k,M)?Y_(r,a,l,f,y,k,M):!1}function YRe(r){return!!(r.flags&16777216||r.flags&2097152&&_t(r.types,YRe))}function F3(r,a,l,f,m,y,k){if(!r||YRe(l))return!1;if(!Y_(a,l,f,void 0)&&wct(r,a,l,f,m,y,k))return!0;switch(r.kind){case 235:if(!qG(r))break;case 295:case 218:return F3(r.expression,a,l,f,m,y,k);case 227:switch(r.operatorToken.kind){case 64:case 28:return F3(r.right,a,l,f,m,y,k)}break;case 211:return Rct(r,a,l,f,y,k);case 210:return Nct(r,a,l,f,y,k);case 293:return Ect(r,a,l,f,y,k);case 220:return Ict(r,a,l,f,y,k)}return!1}function wct(r,a,l,f,m,y,k){let M=Gs(a,0),G=Gs(a,1);for(let J of[G,M])if(_t(J,K=>{let be=Xa(K);return!(be.flags&131073)&&Y_(be,l,f,void 0)})){let K=k||{};Ju(a,l,r,m,y,K);let be=K.errors[K.errors.length-1];return Xs(be,_n(r,J===G?_.Did_you_mean_to_use_new_with_this_expression:_.Did_you_mean_to_call_this_expression)),!0}return!1}function Ict(r,a,l,f,m,y){if(Bs(r.body)||_t(r.parameters,yF))return!1;let k=Fx(a);if(!k)return!1;let M=Gs(l,0);if(!Dr(M))return!1;let G=r.body,J=Xa(k),K=ii(kr(M,Xa));if(!Y_(J,K,f,void 0)){let be=G&&F3(G,J,K,f,void 0,m,y);if(be)return be;let he=y||{};if(Y_(J,K,f,G,void 0,m,he),he.errors)return l.symbol&&Dr(l.symbol.declarations)&&Xs(he.errors[he.errors.length-1],_n(l.symbol.declarations[0],_.The_expected_type_comes_from_the_return_type_of_this_signature)),(Yc(r)&2)===0&&!lr(J,"then")&&Y_(M9(J),K,f,void 0)&&Xs(he.errors[he.errors.length-1],_n(r,_.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function ZRe(r,a,l){let f=l0(a,l);if(f)return f;if(a.flags&1048576){let m=o3e(r,a);if(m)return l0(m,l)}}function e3e(r,a){v9(r,a,!1);let l=jN(r,1);return $3(),l}function ZL(r,a,l,f,m,y){let k=!1;for(let M of r){let{errorNode:G,innerExpression:J,nameType:K,errorMessage:be}=M,he=ZRe(a,l,K);if(!he||he.flags&8388608)continue;let He=l0(a,K);if(!He)continue;let gt=pK(K,void 0);if(!Y_(He,he,f,void 0)){let xt=J&&F3(J,He,he,f,void 0,m,y);if(k=!0,!xt){let Vt=y||{},_r=J?e3e(J,He):He;if(Se&&SK(_r,he)){let $r=_n(G,_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Yr(_r),Yr(he));Ba.add($r),Vt.errors=[$r]}else{let $r=!!(gt&&(ca(l,gt)||Z).flags&16777216),on=!!(gt&&(ca(a,gt)||Z).flags&16777216);he=Fy(he,$r),He=Fy(He,$r&&on),Y_(_r,he,f,G,be,m,Vt)&&_r!==He&&Y_(He,he,f,G,be,m,Vt)}if(Vt.errors){let $r=Vt.errors[Vt.errors.length-1],on=L_(K)?W_(K):void 0,dr=on!==void 0?ca(l,on):void 0,pr=!1;if(!dr){let pn=x3(l,K);pn&&pn.declaration&&!Nr(pn.declaration).hasNoDefaultLib&&(pr=!0,Xs($r,_n(pn.declaration,_.The_expected_type_comes_from_this_index_signature)))}if(!pr&&(dr&&Dr(dr.declarations)||l.symbol&&Dr(l.symbol.declarations))){let pn=dr&&Dr(dr.declarations)?dr.declarations[0]:l.symbol.declarations[0];Nr(pn).hasNoDefaultLib||Xs($r,_n(pn,_.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,on&&!(K.flags&8192)?Ai(on):Yr(K),Yr(l)))}}}}}return k}function Dct(r,a,l,f,m,y){let k=pl(l,DK),M=pl(l,K=>!DK(K)),G=M!==ur?uye(13,0,M,void 0):void 0,J=!1;for(let K=r.next();!K.done;K=r.next()){let{errorNode:be,innerExpression:he,nameType:He,errorMessage:gt}=K.value,xt=G,Vt=k!==ur?ZRe(a,k,He):void 0;if(Vt&&!(Vt.flags&8388608)&&(xt=G?ii([G,Vt]):Vt),!xt)continue;let _r=l0(a,He);if(!_r)continue;let $r=pK(He,void 0);if(!Y_(_r,xt,f,void 0)){let on=he&&F3(he,_r,xt,f,void 0,m,y);if(J=!0,!on){let dr=y||{},pr=he?e3e(he,_r):_r;if(Se&&SK(pr,xt)){let pn=_n(be,_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Yr(pr),Yr(xt));Ba.add(pn),dr.errors=[pn]}else{let pn=!!($r&&(ca(k,$r)||Z).flags&16777216),si=!!($r&&(ca(a,$r)||Z).flags&16777216);xt=Fy(xt,pn),_r=Fy(_r,pn&&si),Y_(pr,xt,f,be,gt,m,dr)&&pr!==_r&&Y_(_r,xt,f,be,gt,m,dr)}}}}return J}function*Pct(r){if(Dr(r.properties))for(let a of r.properties)$2(a)||phe(Y6(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:mf(Y6(a.name))})}function*Act(r,a){if(!Dr(r.children))return;let l=0;for(let f=0;f<r.children.length;f++){let m=r.children[f],y=xm(f-l),k=t3e(m,y,a);k?yield k:l++}}function t3e(r,a,l){switch(r.kind){case 295:return{errorNode:r,innerExpression:r.expression,nameType:a};case 12:if(r.containsOnlyTriviaWhiteSpaces)break;return{errorNode:r,innerExpression:void 0,nameType:a,errorMessage:l()};case 285:case 286:case 289:return{errorNode:r,innerExpression:r,nameType:a};default:return w.assertNever(r,"Found invalid jsx child")}}function Ect(r,a,l,f,m,y){let k=ZL(Pct(r),a,l,f,m,y),M;if(cm(r.parent)&&Xm(r.parent.parent)){let J=r.parent.parent,K=S9(Rx(r)),be=K===void 0?"children":Ai(K),he=mf(be),He=Gf(l,he),gt=Xw(J.children);if(!Dr(gt))return k;let xt=Dr(gt)>1,Vt,_r;if(uK(!1)!==$t){let on=lRe(Le);Vt=pl(He,dr=>$s(dr,on)),_r=pl(He,dr=>!$s(dr,on))}else Vt=pl(He,DK),_r=pl(He,on=>!DK(on));if(xt){if(Vt!==ur){let on=$g(rX(J,0)),dr=Act(J,G);k=Dct(dr,on,Vt,f,m,y)||k}else if(!gg(Gf(a,he),He,f)){k=!0;let on=$e(J.openingElement.tagName,_.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,be,Yr(He));y&&y.skipLogging&&(y.errors||(y.errors=[])).push(on)}}else if(_r!==ur){let on=gt[0],dr=t3e(on,he,G);dr&&(k=ZL((function*(){yield dr})(),a,l,f,m,y)||k)}else if(!gg(Gf(a,he),He,f)){k=!0;let on=$e(J.openingElement.tagName,_.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,be,Yr(He));y&&y.skipLogging&&(y.errors||(y.errors=[])).push(on)}}return k;function G(){if(!M){let J=pc(r.parent.tagName),K=S9(Rx(r)),be=K===void 0?"children":Ai(K),he=Gf(l,mf(be)),He=_._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;M={...He,key:"!!ALREADY FORMATTED!!",message:I2(He,J,be,Yr(he))}}return M}}function*r3e(r,a){let l=Dr(r.elements);if(l)for(let f=0;f<l;f++){if(DN(a)&&!ca(a,""+f))continue;let m=r.elements[f];if(Fl(m))continue;let y=xm(f),k=pX(m);yield{errorNode:k,innerExpression:k,nameType:y}}}function Nct(r,a,l,f,m,y){if(l.flags&402915324)return!1;if(DN(a))return ZL(r3e(r,l),a,l,f,m,y);v9(r,l,!1);let k=ROe(r,1,!0);return $3(),DN(k)?ZL(r3e(r,l),k,l,f,m,y):!1}function*Mct(r){if(Dr(r.properties))for(let a of r.properties){if(Sh(a))continue;let l=YC(wn(a),8576);if(!(!l||l.flags&131072))switch(a.kind){case 179:case 178:case 175:case 305:yield{errorNode:a.name,innerExpression:void 0,nameType:l};break;case 304:yield{errorNode:a.name,innerExpression:a.initializer,nameType:l,errorMessage:HM(a.name)?_.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:w.assertNever(a)}}}function Rct(r,a,l,f,m,y){return l.flags&402915324?!1:ZL(Mct(r),a,l,f,m,y)}function n3e(r,a,l,f,m){return Y_(r,a,ef,l,f,m)}function Oct(r,a,l){return uge(r,a,l?4:0,!1,void 0,void 0,cge,void 0)!==0}function bK(r){if(!r.typeParameters&&(!r.thisParameter||xn(A9(r.thisParameter)))&&r.parameters.length===1&&Zu(r)){let a=A9(r.parameters[0]);return!!((Z_(a)?Jo(a)[0]:a).flags&131073&&Xa(r).flags&3)}return!1}function uge(r,a,l,f,m,y,k,M){if(r===a||!(l&16&&bK(r))&&bK(a))return-1;if(l&16&&bK(r)&&!bK(a))return 0;let G=hf(a);if(!Qg(a)&&(l&8?Qg(r)||hf(r)>G:Pm(r)>G))return f&&!(l&8)&&m(_.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,Pm(r),G),0;r.typeParameters&&r.typeParameters!==a.typeParameters&&(a=Fat(a),r=_Fe(r,a,void 0,k));let K=hf(r),be=tO(r),he=tO(a);(be||he)&&qi(be||he,M);let He=a.declaration?a.declaration.kind:0,gt=!(l&3)&&V&&He!==175&&He!==174&&He!==177,xt=-1,Vt=G1(r);if(Vt&&Vt!==hr){let on=G1(a);if(on){let dr=!gt&&k(Vt,on,!1)||k(on,Vt,f);if(!dr)return f&&m(_.The_this_types_of_each_signature_are_incompatible),0;xt&=dr}}let _r=be||he?Math.min(K,G):Math.max(K,G),$r=be||he?_r-1:-1;for(let on=0;on<_r;on++){let dr=on===$r?LFe(r,on):NT(r,on),pr=on===$r?LFe(a,on):NT(a,on);if(dr&&pr&&(dr!==pr||l&8)){let pn=l&3||pFe(r,on)?void 0:Fx(Oy(dr)),si=l&3||pFe(a,on)?void 0:Fx(Oy(pr)),Qn=pn&&si&&!X_(pn)&&!X_(si)&&BD(dr,50331648)===BD(pr,50331648)?uge(si,pn,l&8|(gt?2:1),f,m,y,k,M):!(l&3)&&!gt&&k(dr,pr,!1)||k(pr,dr,f);if(Qn&&l&8&&on>=Pm(r)&&on<Pm(a)&&k(dr,pr,!1)&&(Qn=0),!Qn)return f&&m(_.Types_of_parameters_0_and_1_are_incompatible,Ai(RN(r,on)),Ai(RN(a,on))),0;xt&=Qn}}if(!(l&4)){let on=YQ(a)?Le:a.declaration&&yg(a.declaration)?K_(Ja(a.declaration.symbol)):Xa(a);if(on===hr||on===Le)return xt;let dr=YQ(r)?Le:r.declaration&&yg(r.declaration)?K_(Ja(r.declaration.symbol)):Xa(r),pr=X_(a);if(pr){let pn=X_(r);if(pn)xt&=Fct(pn,pr,f,m,k);else if(Kte(pr)||Xte(pr))return f&&m(_.Signature_0_must_be_a_type_predicate,i0(r)),0}else xt&=l&1&&k(on,dr,!1)||k(dr,on,f),!xt&&f&&y&&y(dr,on)}return xt}function Fct(r,a,l,f,m){if(r.kind!==a.kind)return l&&(f(_.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),f(_.Type_predicate_0_is_not_assignable_to_1,zg(r),zg(a))),0;if((r.kind===1||r.kind===3)&&r.parameterIndex!==a.parameterIndex)return l&&(f(_.Parameter_0_is_not_in_the_same_position_as_parameter_1,r.parameterName,a.parameterName),f(_.Type_predicate_0_is_not_assignable_to_1,zg(r),zg(a))),0;let y=r.type===a.type?-1:r.type&&a.type?m(r.type,a.type,l):0;return y===0&&l&&f(_.Type_predicate_0_is_not_assignable_to_1,zg(r),zg(a)),y}function jct(r,a){let l=D3(r),f=D3(a),m=Xa(l),y=Xa(f);return y===hr||gg(y,m,Lu)||gg(m,y,Lu)?Oct(l,f,!0):!1}function pge(r){return r!==uo&&r.properties.length===0&&r.callSignatures.length===0&&r.constructSignatures.length===0&&r.indexInfos.length===0}function My(r){return r.flags&524288?!nf(r)&&pge(km(r)):r.flags&67108864?!0:r.flags&1048576?_t(r.types,My):r.flags&2097152?Fi(r.types,My):!1}function Hg(r){return!!(jn(r)&16&&(r.members&&pge(r)||r.symbol&&r.symbol.flags&2048&&Ug(r.symbol).size===0))}function Lct(r){if(re&&r.flags&1048576){if(!(r.objectFlags&33554432)){let a=r.types;r.objectFlags|=33554432|(a.length>=3&&a[0].flags&32768&&a[1].flags&65536&&_t(a,Hg)?67108864:0)}return!!(r.objectFlags&67108864)}return!1}function WD(r){return!!((r.flags&1048576?r.types[0]:r).flags&32768)}function Wct(r){let a=r.flags&1048576?r.types[0]:r;return!!(a.flags&32768)&&a!==je}function i3e(r){return r.flags&524288&&!nf(r)&&ao(r).length===0&&zu(r).length===1&&!!jh(r,ut)||r.flags&3145728&&Fi(r.types,i3e)||!1}function fge(r,a,l){let f=r.flags&8?Wl(r):r,m=a.flags&8?Wl(a):a;if(f===m)return!0;if(f.escapedName!==m.escapedName||!(f.flags&256)||!(m.flags&256))return!1;let y=sa(f)+","+sa(m),k=S1.get(y);if(k!==void 0&&!(k&2&&l))return!!(k&1);let M=an(m);for(let G of ao(an(f)))if(G.flags&8){let J=ca(M,G.escapedName);if(!J||!(J.flags&8))return l&&l(_.Property_0_is_missing_in_type_1,kc(G),Yr(No(m),void 0,64)),S1.set(y,2),!1;let K=Lx($o(G,307)).value,be=Lx($o(J,307)).value;if(K!==be){let he=typeof K=="string",He=typeof be=="string";if(K!==void 0&&be!==void 0){if(l){let gt=he?`"${Dg(K)}"`:K,xt=He?`"${Dg(be)}"`:be;l(_.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,kc(m),kc(J),xt,gt)}return S1.set(y,2),!1}if(he||He){if(l){let gt=K??be;w.assert(typeof gt=="string");let xt=`"${Dg(gt)}"`;l(_.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,kc(m),kc(J),xt)}return S1.set(y,2),!1}}}return S1.set(y,1),!0}function j3(r,a,l,f){let m=r.flags,y=a.flags;return y&1||m&131072||r===Tt||y&2&&!(l===Yo&&m&1)?!0:y&131072?!1:!!(m&402653316&&y&4||m&128&&m&1024&&y&128&&!(y&1024)&&r.value===a.value||m&296&&y&8||m&256&&m&1024&&y&256&&!(y&1024)&&r.value===a.value||m&2112&&y&64||m&528&&y&16||m&12288&&y&4096||m&32&&y&32&&r.symbol.escapedName===a.symbol.escapedName&&fge(r.symbol,a.symbol,f)||m&1024&&y&1024&&(m&1048576&&y&1048576&&fge(r.symbol,a.symbol,f)||m&2944&&y&2944&&r.value===a.value&&fge(r.symbol,a.symbol,f))||m&32768&&(!re&&!(y&3145728)||y&49152)||m&65536&&(!re&&!(y&3145728)||y&65536)||m&524288&&y&67108864&&!(l===Yo&&Hg(r)&&!(jn(r)&8192))||(l===Lu||l===ef)&&(m&1||m&8&&(y&32||y&256&&y&1024)||m&256&&!(m&1024)&&(y&32||y&256&&y&1024&&r.value===a.value)||Lct(a)))}function gg(r,a,l){if(CT(r)&&(r=r.regularType),CT(a)&&(a=a.regularType),r===a)return!0;if(l!==Wu){if(l===ef&&!(a.flags&131072)&&j3(a,r,l)||j3(r,a,l))return!0}else if(!((r.flags|a.flags)&61865984)){if(r.flags!==a.flags)return!1;if(r.flags&67358815)return!0}if(r.flags&524288&&a.flags&524288){let f=l.get(xK(r,a,0,l,!1));if(f!==void 0)return!!(f&1)}return r.flags&469499904||a.flags&469499904?Y_(r,a,l,void 0):!1}function s3e(r,a){return jn(r)&2048&&phe(a.escapedName)}function e9(r,a){for(;;){let l=CT(r)?r.regularType:f0(r)?Gct(r,a):jn(r)&4?r.node?Dy(r.target,Jo(r)):bge(r)||r:r.flags&3145728?Bct(r,a):r.flags&33554432?a?r.baseType:Ame(r):r.flags&25165824?Ay(r,a):r;if(l===r)return l;r=l}}function Bct(r,a){let l=Pd(r);if(l!==r)return l;if(r.flags&2097152&&zct(r)){let f=fl(r.types,m=>e9(m,a));if(f!==r.types)return ma(f)}return r}function zct(r){let a=!1,l=!1;for(let f of r.types)if(a||(a=!!(f.flags&465829888)),l||(l=!!(f.flags&98304)||Hg(f)),a&&l)return!0;return!1}function Gct(r,a){let l=kT(r),f=fl(l,m=>m.flags&25165824?Ay(m,a):m);return l!==f?Bme(r.target,f):r}function Y_(r,a,l,f,m,y,k){var M;let G,J,K,be,he,He,gt=0,xt=0,Vt=0,_r=0,$r=!1,on=0,dr=0,pr,pn,si=16e6-l.size>>3;w.assert(l!==Wu||!f,"no error reporting in identity checking");let $i=cn(r,a,3,!!f,m);if(pn&&Ya(),$r){let we=xK(r,a,0,l,!1);l.set(we,2|(si<=0?32:64)),(M=mn)==null||M.instant(mn.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:r.id,targetId:a.id,depth:xt,targetDepth:Vt});let Ge=si<=0?_.Excessive_complexity_comparing_types_0_and_1:_.Excessive_stack_depth_comparing_types_0_and_1,st=$e(f||x,Ge,Yr(r),Yr(a));k&&(k.errors||(k.errors=[])).push(st)}else if(G){if(y){let st=y();st&&(tne(st,G),G=st)}let we;if(m&&f&&!$i&&r.symbol){let st=Wn(r.symbol);if(st.originatingImport&&!Up(st.originatingImport)&&Y_(an(st.target),a,l,void 0)){let tr=_n(st.originatingImport,_.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);we=Fr(we,tr)}}let Ge=uh(Nr(f),f,G,we);J&&Xs(Ge,...J),k&&(k.errors||(k.errors=[])).push(Ge),(!k||!k.skipLogging)&&Ba.add(Ge)}return f&&k&&k.skipLogging&&$i===0&&w.assert(!!k.errors,"missed opportunity to interact with error."),$i!==0;function Qn(we){G=we.errorInfo,pr=we.lastSkippedInfo,pn=we.incompatibleStack,on=we.overrideNextErrorInfo,dr=we.skipParentCounter,J=we.relatedInfo}function Pi(){return{errorInfo:G,lastSkippedInfo:pr,incompatibleStack:pn?.slice(),overrideNextErrorInfo:on,skipParentCounter:dr,relatedInfo:J?.slice()}}function Rs(we,...Ge){on++,pr=void 0,(pn||(pn=[])).push([we,...Ge])}function Ya(){let we=pn||[];pn=void 0;let Ge=pr;if(pr=void 0,we.length===1){es(...we[0]),Ge&&ap(void 0,...Ge);return}let st="",Ft=[];for(;we.length;){let[tr,...Lt]=we.pop();switch(tr.code){case _.Types_of_property_0_are_incompatible.code:{st.indexOf("new ")===0&&(st=`(${st})`);let ir=""+Lt[0];st.length===0?st=`${ir}`:af(ir,xa(O))?st=`${st}.${ir}`:ir[0]==="["&&ir[ir.length-1]==="]"?st=`${st}${ir}`:st=`${st}[${ir}]`;break}case _.Call_signature_return_types_0_and_1_are_incompatible.code:case _.Construct_signature_return_types_0_and_1_are_incompatible.code:case _.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case _.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(st.length===0){let ir=tr;tr.code===_.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?ir=_.Call_signature_return_types_0_and_1_are_incompatible:tr.code===_.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(ir=_.Construct_signature_return_types_0_and_1_are_incompatible),Ft.unshift([ir,Lt[0],Lt[1]])}else{let ir=tr.code===_.Construct_signature_return_types_0_and_1_are_incompatible.code||tr.code===_.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",qr=tr.code===_.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||tr.code===_.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";st=`${ir}${st}(${qr})`}break}case _.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Ft.unshift([_.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Lt[0],Lt[1]]);break}case _.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Ft.unshift([_.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Lt[0],Lt[1],Lt[2]]);break}default:return w.fail(`Unhandled Diagnostic: ${tr.code}`)}}st?es(st[st.length-1]===")"?_.The_types_returned_by_0_are_incompatible_between_these_types:_.The_types_of_0_are_incompatible_between_these_types,st):Ft.shift();for(let[tr,...Lt]of Ft){let ir=tr.elidedInCompatabilityPyramid;tr.elidedInCompatabilityPyramid=!1,es(tr,...Lt),tr.elidedInCompatabilityPyramid=ir}Ge&&ap(void 0,...Ge)}function es(we,...Ge){w.assert(!!f),pn&&Ya(),!we.elidedInCompatabilityPyramid&&(dr===0?G=Ns(G,we,...Ge):dr--)}function Zo(we,...Ge){es(we,...Ge),dr++}function jc(we){w.assert(!!G),J?J.push(we):J=[we]}function ap(we,Ge,st){pn&&Ya();let[Ft,tr]=uN(Ge,st),Lt=Ge,ir=Ft;if(!(st.flags&131072)&&L3(Ge)&&!_ge(st)&&(Lt=Ry(Ge),w.assert(!$s(Lt,st),"generalized source shouldn't be assignable"),ir=CD(Lt)),(st.flags&8388608&&!(Ge.flags&8388608)?st.objectType.flags:st.flags)&262144&&st!==We&&st!==dt){let fn=wu(st),In;fn&&($s(Lt,fn)||(In=$s(Ge,fn)))?es(_._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,In?Ft:ir,tr,Yr(fn)):(G=void 0,es(_._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,tr,ir))}if(we)we===_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Se&&a3e(Ge,st).length&&(we=_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(l===ef)we=_.Type_0_is_not_comparable_to_type_1;else if(Ft===tr)we=_.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Se&&a3e(Ge,st).length)we=_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(Ge.flags&128&&st.flags&1048576){let fn=aft(Ge,st);if(fn){es(_.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,ir,tr,Yr(fn));return}}we=_.Type_0_is_not_assignable_to_type_1}es(we,ir,tr)}function Lr(we,Ge){let st=wD(we.symbol)?Yr(we,we.symbol.valueDeclaration):Yr(we),Ft=wD(Ge.symbol)?Yr(Ge,Ge.symbol.valueDeclaration):Yr(Ge);(bl===we&&ut===Ge||zo===we&&Qt===Ge||bc===we&&Ot===Ge||rRe()===we&&Ht===Ge)&&es(_._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Ft,st)}function Kr(we,Ge,st){return Aa(we)?we.target.readonly&&i9(Ge)?(st&&es(_.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Yr(we),Yr(Ge)),!1):$1(Ge):IN(we)&&i9(Ge)?(st&&es(_.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Yr(we),Yr(Ge)),!1):Aa(Ge)?Z_(we):!0}function Ni(we,Ge,st){return cn(we,Ge,3,st)}function cn(we,Ge,st=3,Ft=!1,tr,Lt=0){if(we===Ge)return-1;if(we.flags&524288&&Ge.flags&402784252)return l===ef&&!(Ge.flags&131072)&&j3(Ge,we,l)||j3(we,Ge,l,Ft?es:void 0)?-1:(Ft&&bs(we,Ge,we,Ge,tr),0);let ir=e9(we,!1),qr=e9(Ge,!0);if(ir===qr)return-1;if(l===Wu)return ir.flags!==qr.flags?0:ir.flags&67358815?-1:(io(ir,qr),gO(ir,qr,!1,0,st));if(ir.flags&262144&&hx(ir)===qr)return-1;if(ir.flags&470302716&&qr.flags&1048576){let fn=qr.types,In=fn.length===2&&fn[0].flags&98304?fn[1]:fn.length===3&&fn[0].flags&98304&&fn[1].flags&98304?fn[2]:void 0;if(In&&!(In.flags&98304)&&(qr=e9(In,!0),ir===qr))return-1}if(l===ef&&!(qr.flags&131072)&&j3(qr,ir,l)||j3(ir,qr,l,Ft?es:void 0))return-1;if(ir.flags&469499904||qr.flags&469499904){if(!(Lt&2)&&Wv(ir)&&jn(ir)&8192&&su(ir,qr,Ft))return Ft&&ap(tr,ir,Ge.aliasSymbol?Ge:qr),0;let In=(l!==ef||Cm(ir))&&!(Lt&2)&&ir.flags&405405692&&ir!==zt&&qr.flags&2621440&&mge(qr)&&(ao(ir).length>0||WX(ir)),ai=!!(jn(ir)&2048);if(In&&!Uct(ir,qr,ai)){if(Ft){let gi=Yr(we.aliasSymbol?we:ir),_s=Yr(Ge.aliasSymbol?Ge:qr),Wa=Gs(ir,0),cr=Gs(ir,1);Wa.length>0&&cn(Xa(Wa[0]),qr,1,!1)||cr.length>0&&cn(Xa(cr[0]),qr,1,!1)?es(_.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,gi,_s):es(_.Type_0_has_no_properties_in_common_with_type_1,gi,_s)}return 0}io(ir,qr);let Xr=ir.flags&1048576&&ir.types.length<4&&!(qr.flags&1048576)||qr.flags&1048576&&qr.types.length<4&&!(ir.flags&469499904)?Xc(ir,qr,Ft,Lt):gO(ir,qr,Ft,Lt,st);if(Xr)return Xr}return Ft&&bs(we,Ge,ir,qr,tr),0}function bs(we,Ge,st,Ft,tr){var Lt,ir;let qr=!!bge(we),fn=!!bge(Ge);st=we.aliasSymbol||qr?we:st,Ft=Ge.aliasSymbol||fn?Ge:Ft;let In=on>0;if(In&&on--,st.flags&524288&&Ft.flags&524288){let ai=G;Kr(st,Ft,!0),G!==ai&&(In=!!G)}if(st.flags&524288&&Ft.flags&402784252)Lr(st,Ft);else if(st.symbol&&st.flags&524288&&zt===st)es(_.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(jn(st)&2048&&Ft.flags&2097152){let ai=Ft.types,Zn=ET(u_.IntrinsicAttributes,f),Xr=ET(u_.IntrinsicClassAttributes,f);if(!rn(Zn)&&!rn(Xr)&&(ws(ai,Zn)||ws(ai,Xr)))return}else G=vme(G,Ge);if(!tr&&In){let ai=Pi();ap(tr,st,Ft);let Zn;G&&G!==ai.errorInfo&&(Zn={code:G.code,messageText:G.messageText}),Qn(ai),Zn&&G&&(G.canonicalHead=Zn),pr=[st,Ft];return}if(ap(tr,st,Ft),st.flags&262144&&((ir=(Lt=st.symbol)==null?void 0:Lt.declarations)!=null&&ir[0])&&!hx(st)){let ai=ige(st);if(ai.constraint=qi(Ft,wT(st,ai)),jL(ai)){let Zn=Yr(Ft,st.symbol.declarations[0]);jc(_n(st.symbol.declarations[0],_.This_type_parameter_might_need_an_extends_0_constraint,Zn))}}}function io(we,Ge){if(mn&&we.flags&3145728&&Ge.flags&3145728){let st=we,Ft=Ge;if(st.objectFlags&Ft.objectFlags&32768)return;let tr=st.types.length,Lt=Ft.types.length;tr*Lt>1e6&&mn.instant(mn.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:we.id,sourceSize:tr,targetId:Ge.id,targetSize:Lt,pos:f?.pos,end:f?.end})}}function Uo(we,Ge){return ii(lp(we,(Ft,tr)=>{var Lt;tr=Sp(tr);let ir=tr.flags&3145728?LL(tr,Ge):bT(tr,Ge),qr=ir&&an(ir)||((Lt=XC(tr,Ge))==null?void 0:Lt.type)||fe;return Fr(Ft,qr)},void 0)||Ke)}function su(we,Ge,st){var Ft;if(!K3(Ge)||!de&&jn(Ge)&4096)return!1;let tr=!!(jn(we)&2048);if((l===Lu||l===ef)&&(EN(zt,Ge)||!tr&&My(Ge)))return!1;let Lt=Ge,ir;Ge.flags&1048576&&(Lt=F7e(we,Ge,cn)||gyt(Ge),ir=Lt.flags&1048576?Lt.types:[Lt]);for(let qr of ao(we))if(Ea(qr,we.symbol)&&!s3e(we,qr)){if(!sX(Lt,qr.escapedName,tr)){if(st){let fn=pl(Lt,K3);if(!f)return w.fail();if(zS(f)||Qu(f)||Qu(f.parent)){qr.valueDeclaration&&Ym(qr.valueDeclaration)&&Nr(f)===Nr(qr.valueDeclaration.name)&&(f=qr.valueDeclaration.name);let In=Xi(qr),ai=nFe(In,fn),Zn=ai?Xi(ai):void 0;Zn?es(_.Property_0_does_not_exist_on_type_1_Did_you_mean_2,In,Yr(fn),Zn):es(_.Property_0_does_not_exist_on_type_1,In,Yr(fn))}else{let In=((Ft=we.symbol)==null?void 0:Ft.declarations)&&_l(we.symbol.declarations),ai;if(qr.valueDeclaration&&vr(qr.valueDeclaration,Zn=>Zn===In)&&Nr(In)===Nr(f)){let Zn=qr.valueDeclaration;w.assertNode(Zn,Xh);let Xr=Zn.name;f=Xr,Be(Xr)&&(ai=iFe(Xr,fn))}ai!==void 0?Zo(_.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Xi(qr),Yr(fn),ai):Zo(_.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Xi(qr),Yr(fn))}}return!0}if(ir&&!cn(an(qr),Uo(ir,qr.escapedName),3,st))return st&&Rs(_.Types_of_property_0_are_incompatible,Xi(qr)),!0}return!1}function Ea(we,Ge){return we.valueDeclaration&&Ge.valueDeclaration&&we.valueDeclaration.parent===Ge.valueDeclaration}function Xc(we,Ge,st,Ft){if(we.flags&1048576){if(Ge.flags&1048576){let tr=we.origin;if(tr&&tr.flags&2097152&&Ge.aliasSymbol&&ws(tr.types,Ge))return-1;let Lt=Ge.origin;if(Lt&&Lt.flags&1048576&&we.aliasSymbol&&ws(Lt.types,we))return-1}return l===ef?lc(we,Ge,st&&!(we.flags&402784252),Ft):nd(we,Ge,st&&!(we.flags&402784252),Ft)}if(Ge.flags&1048576)return oo(z3(we),Ge,st&&!(we.flags&402784252)&&!(Ge.flags&402784252),Ft);if(Ge.flags&2097152)return x_(we,Ge,st,2);if(l===ef&&Ge.flags&402784252){let tr=fl(we.types,Lt=>Lt.flags&465829888?wu(Lt)||wt:Lt);if(tr!==we.types){if(we=ma(tr),we.flags&131072)return 0;if(!(we.flags&2097152))return cn(we,Ge,1,!1)||cn(Ge,we,1,!1)}}return lc(we,Ge,!1,1)}function sl(we,Ge){let st=-1,Ft=we.types;for(let tr of Ft){let Lt=oo(tr,Ge,!1,0);if(!Lt)return 0;st&=Lt}return st}function oo(we,Ge,st,Ft){let tr=Ge.types;if(Ge.flags&1048576){if(Wh(tr,we))return-1;if(l!==ef&&jn(Ge)&32768&&!(we.flags&1024)&&(we.flags&2688||(l===Lg||l===Yo)&&we.flags&256)){let ir=we===we.regularType?we.freshType:we.regularType,qr=we.flags&128?ut:we.flags&256?Qt:we.flags&2048?Zr:void 0;return qr&&Wh(tr,qr)||ir&&Wh(tr,ir)?-1:0}let Lt=j3e(Ge,we);if(Lt){let ir=cn(we,Lt,2,!1,void 0,Ft);if(ir)return ir}}for(let Lt of tr){let ir=cn(we,Lt,2,!1,void 0,Ft);if(ir)return ir}if(st){let Lt=o3e(we,Ge,cn);Lt&&cn(we,Lt,2,!0,void 0,Ft)}return 0}function x_(we,Ge,st,Ft){let tr=-1,Lt=Ge.types;for(let ir of Lt){let qr=cn(we,ir,2,st,void 0,Ft);if(!qr)return 0;tr&=qr}return tr}function lc(we,Ge,st,Ft){let tr=we.types;if(we.flags&1048576&&Wh(tr,Ge))return-1;let Lt=tr.length;for(let ir=0;ir<Lt;ir++){let qr=cn(tr[ir],Ge,1,st&&ir===Lt-1,void 0,Ft);if(qr)return qr}return 0}function qc(we,Ge){return we.flags&1048576&&Ge.flags&1048576&&!(we.types[0].flags&32768)&&Ge.types[0].flags&32768?NN(Ge,-32769):Ge}function nd(we,Ge,st,Ft){let tr=-1,Lt=we.types,ir=qc(we,Ge);for(let qr=0;qr<Lt.length;qr++){let fn=Lt[qr];if(ir.flags&1048576&&Lt.length>=ir.types.length&&Lt.length%ir.types.length===0){let ai=cn(fn,ir.types[qr%ir.types.length],3,!1,void 0,Ft);if(ai){tr&=ai;continue}}let In=cn(fn,Ge,1,st,void 0,Ft);if(!In)return 0;tr&=In}return tr}function JN(we=Ke,Ge=Ke,st=Ke,Ft,tr){if(we.length!==Ge.length&&l===Wu)return 0;let Lt=we.length<=Ge.length?we.length:Ge.length,ir=-1;for(let qr=0;qr<Lt;qr++){let fn=qr<st.length?st[qr]:1,In=fn&7;if(In!==4){let ai=we[qr],Zn=Ge[qr],Xr=-1;if(fn&8?Xr=l===Wu?cn(ai,Zn,3,!1):O3(ai,Zn):In===1?Xr=cn(ai,Zn,3,Ft,void 0,tr):In===2?Xr=cn(Zn,ai,3,Ft,void 0,tr):In===3?(Xr=cn(Zn,ai,3,!1),Xr||(Xr=cn(ai,Zn,3,Ft,void 0,tr))):(Xr=cn(ai,Zn,3,Ft,void 0,tr),Xr&&(Xr&=cn(Zn,ai,3,Ft,void 0,tr))),!Xr)return 0;ir&=Xr}}return ir}function gO(we,Ge,st,Ft,tr){var Lt,ir,qr;if($r)return 0;let fn=xK(we,Ge,Ft,l,!1),In=l.get(fn);if(In!==void 0&&!(st&&In&2&&!(In&96))){if(Cs){let cr=In&24;cr&8&&qi(we,Lo),cr&16&&qi(we,ll)}if(st&&In&96){let cr=In&32?_.Excessive_complexity_comparing_types_0_and_1:_.Excessive_stack_depth_comparing_types_0_and_1;es(cr,Yr(we),Yr(Ge)),on++}return In&1?-1:0}if(si<=0)return $r=!0,0;if(!K)K=[],be=new Set,he=[],He=[];else{if(be.has(fn))return 3;let cr=fn.startsWith("*")?xK(we,Ge,Ft,l,!0):void 0;if(cr&&be.has(cr))return 3;if(xt===100||Vt===100)return $r=!0,0}let ai=gt;K[gt]=fn,be.add(fn),gt++;let Zn=_r;tr&1&&(he[xt]=we,xt++,!(_r&1)&&nw(we,he,xt)&&(_r|=1)),tr&2&&(He[Vt]=Ge,Vt++,!(_r&2)&&nw(Ge,He,Vt)&&(_r|=2));let Xr,gi=0;Cs&&(Xr=Cs,Cs=cr=>(gi|=cr?16:8,Xr(cr)));let _s;return _r===3?((Lt=mn)==null||Lt.instant(mn.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:we.id,sourceIdStack:he.map(cr=>cr.id),targetId:Ge.id,targetIdStack:He.map(cr=>cr.id),depth:xt,targetDepth:Vt}),_s=3):((ir=mn)==null||ir.push(mn.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:we.id,targetId:Ge.id}),_s=UN(we,Ge,st,Ft),(qr=mn)==null||qr.pop()),Cs&&(Cs=Xr),tr&1&&xt--,tr&2&&Vt--,_r=Zn,_s?(_s===-1||xt===0&&Vt===0)&&Wa(_s===-1||_s===3):(l.set(fn,2|gi),si--,Wa(!1)),_s;function Wa(cr){for(let En=ai;En<gt;En++)be.delete(K[En]),cr&&(l.set(K[En],1|gi),si--);gt=ai}}function UN(we,Ge,st,Ft){let tr=Pi(),Lt=hO(we,Ge,st,Ft,tr);if(l!==Wu){if(!Lt&&(we.flags&2097152||we.flags&262144&&Ge.flags&1048576)){let ir=vat(we.flags&2097152?we.types:[we],!!(Ge.flags&1048576));ir&&gf(ir,qr=>qr!==we)&&(Lt=cn(ir,Ge,1,!1,void 0,Ft))}Lt&&!(Ft&2)&&Ge.flags&2097152&&!kx(Ge)&&we.flags&2621440?(Lt&=ga(we,Ge,st,void 0,!1,0),Lt&&Wv(we)&&jn(we)&8192&&(Lt&=Pe(we,Ge,!1,st,0))):Lt&&_K(Ge)&&!$1(Ge)&&we.flags&2097152&&Sp(we).flags&3670016&&!_t(we.types,ir=>ir===Ge||!!(jn(ir)&262144))&&(Lt&=ga(we,Ge,st,void 0,!0,Ft))}return Lt&&Qn(tr),Lt}function Zf(we,Ge){let st=Sp(B1(Ge)),Ft=[];return fme(st,8576,!1,tr=>{Ft.push(qi(we,N3(Ge.mapper,Kd(Ge),tr)))}),ii(Ft)}function hO(we,Ge,st,Ft,tr){let Lt,ir,qr=!1,fn=we.flags,In=Ge.flags;if(l===Wu){if(fn&3145728){let Xr=sl(we,Ge);return Xr&&(Xr&=sl(Ge,we)),Xr}if(fn&4194304)return cn(we.type,Ge.type,3,!1);if(fn&8388608&&(Lt=cn(we.objectType,Ge.objectType,3,!1))&&(Lt&=cn(we.indexType,Ge.indexType,3,!1))||fn&16777216&&we.root.isDistributive===Ge.root.isDistributive&&(Lt=cn(we.checkType,Ge.checkType,3,!1))&&(Lt&=cn(we.extendsType,Ge.extendsType,3,!1))&&(Lt&=cn(u0(we),u0(Ge),3,!1))&&(Lt&=cn(p0(we),p0(Ge),3,!1))||fn&33554432&&(Lt=cn(we.baseType,Ge.baseType,3,!1))&&(Lt&=cn(we.constraint,Ge.constraint,3,!1)))return Lt;if(fn&134217728&&qf(we.texts,Ge.texts)){let Xr=we.types,gi=Ge.types;Lt=-1;for(let _s=0;_s<Xr.length&&(Lt&=cn(Xr[_s],gi[_s],3,!1));_s++);return Lt}if(fn&268435456&&we.symbol===Ge.symbol)return cn(we.type,Ge.type,3,!1);if(!(fn&524288))return 0}else if(fn&3145728||In&3145728){if(Lt=Xc(we,Ge,st,Ft))return Lt;if(!(fn&465829888||fn&524288&&In&1048576||fn&2097152&&In&467402752))return 0}if(fn&17301504&&we.aliasSymbol&&we.aliasTypeArguments&&we.aliasSymbol===Ge.aliasSymbol&&!(TK(we)||TK(Ge))){let Xr=c3e(we.aliasSymbol);if(Xr===Ke)return 1;let gi=Wn(we.aliasSymbol).typeParameters,_s=qg(gi),Wa=Ov(we.aliasTypeArguments,gi,_s,dn(we.aliasSymbol.valueDeclaration)),cr=Ov(Ge.aliasTypeArguments,gi,_s,dn(we.aliasSymbol.valueDeclaration)),En=Zn(Wa,cr,Xr,Ft);if(En!==void 0)return En}if(h3e(we)&&!we.target.readonly&&(Lt=cn(Jo(we)[0],Ge,1))||h3e(Ge)&&(Ge.target.readonly||i9(wu(we)||we))&&(Lt=cn(we,Jo(Ge)[0],2)))return Lt;if(In&262144){if(jn(we)&32&&!we.declaration.nameType&&cn(mg(Ge),S_(we),3)&&!(Vg(we)&4)){let Xr=Fh(we),gi=Gf(Ge,Kd(we));if(Lt=cn(Xr,gi,3,st))return Lt}if(l===ef&&fn&262144){let Xr=jp(we);if(Xr)for(;Xr&&td(Xr,gi=>!!(gi.flags&262144));){if(Lt=cn(Xr,Ge,1,!1))return Lt;Xr=jp(Xr)}return 0}}else if(In&4194304){let Xr=Ge.type;if(fn&4194304&&(Lt=cn(Xr,we.type,3,!1)))return Lt;if(Aa(Xr)){if(Lt=cn(we,_Re(Xr),2,st))return Lt}else{let gi=_me(Xr);if(gi){if(cn(we,mg(gi,Ge.indexFlags|4),2,st)===-1)return-1}else if(nf(Xr)){let _s=Mv(Xr),Wa=S_(Xr),cr;if(_s&&ND(Xr)){let En=Zf(_s,Xr);cr=ii([En,_s])}else cr=_s||Wa;if(cn(we,cr,2,st)===-1)return-1}}}else if(In&8388608){if(fn&8388608){if((Lt=cn(we.objectType,Ge.objectType,3,st))&&(Lt&=cn(we.indexType,Ge.indexType,3,st)),Lt)return Lt;st&&(ir=G)}if(l===Lu||l===ef){let Xr=Ge.objectType,gi=Ge.indexType,_s=wu(Xr)||Xr,Wa=wu(gi)||gi;if(!kx(_s)&&!xx(Wa)){let cr=4|(_s!==Xr?2:0),En=l0(_s,Wa,cr);if(En){if(st&&ir&&Qn(tr),Lt=cn(we,En,2,st,void 0,Ft))return Lt;st&&ir&&G&&(G=ai([ir])<=ai([G])?ir:G)}}}st&&(ir=void 0)}else if(nf(Ge)&&l!==Wu){let Xr=!!Ge.declaration.nameType,gi=Fh(Ge),_s=Vg(Ge);if(!(_s&8)){if(!Xr&&gi.flags&8388608&&gi.objectType===we&&gi.indexType===Kd(Ge))return-1;if(!nf(we)){let Wa=Xr?Mv(Ge):S_(Ge),cr=mg(we,2),En=_s&4,ks=En?RL(Wa,cr):void 0;if(En?!(ks.flags&131072):cn(Wa,cr,3)){let ss=Fh(Ge),Na=Kd(Ge),Za=NN(ss,-98305);if(!Xr&&Za.flags&8388608&&Za.indexType===Na){if(Lt=cn(we,Za.objectType,2,st))return Lt}else{let ms=Xr?ks||Wa:ks?ma([ks,Na]):Na,Sl=Gf(we,ms);if(Lt=cn(Sl,ss,3,st))return Lt}}ir=G,Qn(tr)}}}else if(In&16777216){if(nw(Ge,He,Vt,10))return 3;let Xr=Ge;if(!Xr.root.inferTypeParameters&&!ict(Xr.root)&&!(we.flags&16777216&&we.root===Xr.root)){let gi=!$s(R3(Xr.checkType),R3(Xr.extendsType)),_s=!gi&&$s(Ix(Xr.checkType),Ix(Xr.extendsType));if((Lt=gi?-1:cn(we,u0(Xr),2,!1,void 0,Ft))&&(Lt&=_s?-1:cn(we,p0(Xr),2,!1,void 0,Ft),Lt))return Lt}}else if(In&134217728){if(fn&134217728){if(l===ef)return Nlt(we,Ge)?0:-1;qi(we,ll)}if(WK(we,Ge))return-1}else if(Ge.flags&268435456&&!(we.flags&268435456)&&LK(we,Ge))return-1;if(fn&8650752){if(!(fn&8388608&&In&8388608)){let Xr=hx(we)||wt;if(Lt=cn(Xr,Ge,1,!1,void 0,Ft))return Lt;if(Lt=cn(zf(Xr,we),Ge,1,st&&Xr!==wt&&!(In&fn&262144),void 0,Ft))return Lt;if(hme(we)){let gi=hx(we.indexType);if(gi&&(Lt=cn(Gf(we.objectType,gi),Ge,1,st)))return Lt}}}else if(fn&4194304){let Xr=qme(we.type,we.indexFlags)&&jn(we.type)&32;if(Lt=cn(di,Ge,1,st&&!Xr))return Lt;if(Xr){let gi=we.type,_s=Mv(gi),Wa=_s&&ND(gi)?Zf(_s,gi):_s||S_(gi);if(Lt=cn(Wa,Ge,1,st))return Lt}}else if(fn&134217728&&!(In&524288)){if(!(In&134217728)){let Xr=wu(we);if(Xr&&Xr!==we&&(Lt=cn(Xr,Ge,1,st)))return Lt}}else if(fn&268435456)if(In&268435456){if(we.symbol!==Ge.symbol)return 0;if(Lt=cn(we.type,Ge.type,3,st))return Lt}else{let Xr=wu(we);if(Xr&&(Lt=cn(Xr,Ge,1,st)))return Lt}else if(fn&16777216){if(nw(we,he,xt,10))return 3;if(In&16777216){let _s=we.root.inferTypeParameters,Wa=we.extendsType,cr;if(_s){let En=G3(_s,void 0,0,Ni);zh(En.inferences,Ge.extendsType,Wa,1536),Wa=qi(Wa,En.mapper),cr=En.mapper}if(Bh(Wa,Ge.extendsType)&&(cn(we.checkType,Ge.checkType,3)||cn(Ge.checkType,we.checkType,3))&&((Lt=cn(qi(u0(we),cr),u0(Ge),3,st))&&(Lt&=cn(p0(we),p0(Ge),3,st)),Lt))return Lt}let Xr=dme(we);if(Xr&&(Lt=cn(Xr,Ge,1,st)))return Lt;let gi=!(In&16777216)&&jL(we)?S4e(we):void 0;if(gi&&(Qn(tr),Lt=cn(gi,Ge,1,st)))return Lt}else{if(l!==Lg&&l!==Yo&&fat(Ge)&&My(we))return-1;if(nf(Ge))return nf(we)&&(Lt=Wt(we,Ge,st))?Lt:0;let Xr=!!(fn&402784252);if(l!==Wu)we=Sp(we),fn=we.flags;else if(nf(we))return 0;if(jn(we)&4&&jn(Ge)&4&&we.target===Ge.target&&!Aa(we)&&!(TK(we)||TK(Ge))){if(IK(we))return-1;let gi=gge(we.target);if(gi===Ke)return 1;let _s=Zn(Jo(we),Jo(Ge),gi,Ft);if(_s!==void 0)return _s}else{if(IN(Ge)?gf(we,$1):Z_(Ge)&&gf(we,gi=>Aa(gi)&&!gi.target.readonly))return l!==Wu?cn(z1(we,Qt)||Le,z1(Ge,Qt)||Le,3,st):0;if(f0(we)&&Aa(Ge)&&!f0(Ge)){let gi=dg(we);if(gi!==we)return cn(gi,Ge,1,st)}else if((l===Lg||l===Yo)&&My(Ge)&&jn(Ge)&8192&&!My(we))return 0}if(fn&2621440&&In&524288){let gi=st&&G===tr.errorInfo&&!Xr;if(Lt=ga(we,Ge,gi,void 0,!1,Ft),Lt&&(Lt&=Io(we,Ge,0,gi,Ft),Lt&&(Lt&=Io(we,Ge,1,gi,Ft),Lt&&(Lt&=Pe(we,Ge,Xr,gi,Ft)))),qr&&Lt)G=ir||G||tr.errorInfo;else if(Lt)return Lt}if(fn&2621440&&In&1048576){let gi=NN(Ge,36175872);if(gi.flags&1048576){let _s=Sr(we,gi);if(_s)return _s}}}return 0;function ai(Xr){return Xr?lp(Xr,(gi,_s)=>gi+1+ai(_s.next),0):0}function Zn(Xr,gi,_s,Wa){if(Lt=JN(Xr,gi,_s,st,Wa))return Lt;if(_t(_s,En=>!!(En&24))){ir=void 0,Qn(tr);return}let cr=gi&&Vct(gi,_s);if(qr=!cr,_s!==Ke&&!cr){if(qr&&!(st&&_t(_s,En=>(En&7)===0)))return 0;ir=G,Qn(tr)}}}function Wt(we,Ge,st){if(l===ef||(l===Wu?Vg(we)===Vg(Ge):yN(we)<=yN(Ge))){let tr,Lt=S_(Ge),ir=qi(S_(we),yN(we)<0?Lo:ll);if(tr=cn(Lt,ir,3,st)){let qr=Jf([Kd(we)],[Kd(Ge)]);if(qi(Mv(we),qr)===qi(Mv(Ge),qr))return tr&cn(qi(Fh(we),qr),Fh(Ge),3,st)}}return 0}function Sr(we,Ge){var st;let Ft=ao(we),tr=F3e(Ft,Ge);if(!tr)return 0;let Lt=1;for(let Zn of tr)if(Lt*=aut(Sm(Zn)),Lt>25)return(st=mn)==null||st.instant(mn.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:we.id,targetId:Ge.id,numCombinations:Lt}),0;let ir=new Array(tr.length),qr=new Set;for(let Zn=0;Zn<tr.length;Zn++){let Xr=tr[Zn],gi=Sm(Xr);ir[Zn]=gi.flags&1048576?gi.types:[gi],qr.add(Xr.escapedName)}let fn=QY(ir),In=[];for(let Zn of fn){let Xr=!1;e:for(let gi of Ge.types){for(let _s=0;_s<tr.length;_s++){let Wa=tr[_s],cr=ca(gi,Wa.escapedName);if(!cr)continue e;if(Wa===cr)continue;if(!An(we,Ge,Wa,cr,ks=>Zn[_s],!1,0,re||l===ef))continue e}D_(In,gi,eb),Xr=!0}if(!Xr)return 0}let ai=-1;for(let Zn of In)if(ai&=ga(we,Zn,!1,qr,!1,0),ai&&(ai&=Io(we,Zn,0,!1,0),ai&&(ai&=Io(we,Zn,1,!1,0),ai&&!(Aa(we)&&Aa(Zn))&&(ai&=Pe(we,Zn,!1,!1,0)))),!ai)return ai;return ai}function Gr(we,Ge){if(!Ge||we.length===0)return we;let st;for(let Ft=0;Ft<we.length;Ft++)Ge.has(we[Ft].escapedName)?st||(st=we.slice(0,Ft)):st&&st.push(we[Ft]);return st||we}function sn(we,Ge,st,Ft,tr){let Lt=re&&!!(Cc(Ge)&48),ir=ip(Sm(Ge),!1,Lt);if(ir.flags&(l===Yo?1:3))return-1;let qr=st(we);return cn(qr,ir,3,Ft,void 0,tr)}function An(we,Ge,st,Ft,tr,Lt,ir,qr){let fn=j_(st),In=j_(Ft);if(fn&2||In&2){if(st.valueDeclaration!==Ft.valueDeclaration)return Lt&&(fn&2&&In&2?es(_.Types_have_separate_declarations_of_a_private_property_0,Xi(Ft)):es(_.Property_0_is_private_in_type_1_but_not_in_type_2,Xi(Ft),Yr(fn&2?we:Ge),Yr(fn&2?Ge:we))),0}else if(In&4){if(!Kct(st,Ft))return Lt&&es(_.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Xi(Ft),Yr(rw(st)||we),Yr(rw(Ft)||Ge)),0}else if(fn&4)return Lt&&es(_.Property_0_is_protected_in_type_1_but_public_in_type_2,Xi(Ft),Yr(we),Yr(Ge)),0;if(l===Yo&&Am(st)&&!Am(Ft))return 0;let ai=sn(st,Ft,tr,Lt,ir);return ai?!qr&&st.flags&16777216&&Ft.flags&106500&&!(Ft.flags&16777216)?(Lt&&es(_.Property_0_is_optional_in_type_1_but_required_in_type_2,Xi(Ft),Yr(we),Yr(Ge)),0):ai:(Lt&&Rs(_.Types_of_property_0_are_incompatible,Xi(Ft)),0)}function ci(we,Ge,st,Ft){let tr=!1;if(st.valueDeclaration&&Vl(st.valueDeclaration)&&zi(st.valueDeclaration.name)&&we.symbol&&we.symbol.flags&32){let ir=st.valueDeclaration.name.escapedText,qr=k6(we.symbol,ir);if(qr&&ca(we,qr)){let fn=A.getDeclarationName(we.symbol.valueDeclaration),In=A.getDeclarationName(Ge.symbol.valueDeclaration);es(_.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,ff(ir),ff(fn.escapedText===""?IU:fn),ff(In.escapedText===""?IU:In));return}}let Lt=ds(Nge(we,Ge,Ft,!1));if((!m||m.code!==_.Class_0_incorrectly_implements_interface_1.code&&m.code!==_.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(tr=!0),Lt.length===1){let ir=Xi(st,void 0,0,20);es(_.Property_0_is_missing_in_type_1_but_required_in_type_2,ir,...uN(we,Ge)),Dr(st.declarations)&&jc(_n(st.declarations[0],_._0_is_declared_here,ir)),tr&&G&&on++}else Kr(we,Ge,!1)&&(Lt.length>5?es(_.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Yr(we),Yr(Ge),kr(Lt.slice(0,4),ir=>Xi(ir)).join(", "),Lt.length-4):es(_.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Yr(we),Yr(Ge),kr(Lt,ir=>Xi(ir)).join(", ")),tr&&G&&on++)}function ga(we,Ge,st,Ft,tr,Lt){if(l===Wu)return ba(we,Ge,Ft);let ir=-1;if(Aa(Ge)){if($1(we)){if(!Ge.target.readonly&&(IN(we)||Aa(we)&&we.target.readonly))return 0;let Zn=Fv(we),Xr=Fv(Ge),gi=Aa(we)?we.target.combinedFlags&4:4,_s=!!(Ge.target.combinedFlags&12),Wa=Aa(we)?we.target.minLength:0,cr=Ge.target.minLength;if(!gi&&Zn<cr)return st&&es(_.Source_has_0_element_s_but_target_requires_1,Zn,cr),0;if(!_s&&Xr<Wa)return st&&es(_.Source_has_0_element_s_but_target_allows_only_1,Wa,Xr),0;if(!_s&&(gi||Xr<Zn))return st&&(Wa<cr?es(_.Target_requires_0_element_s_but_source_may_have_fewer,cr):es(_.Target_allows_only_0_element_s_but_source_may_have_more,Xr)),0;let En=Jo(we),ks=Jo(Ge),ss=kot(Ge.target,11),Na=P3(Ge.target,11),Za=!!Ft;for(let ms=0;ms<Zn;ms++){let Sl=Aa(we)?we.target.elementFlags[ms]:4,Tl=Zn-1-ms,Pu=_s&&ms>=ss?Xr-1-Math.min(Tl,Na):ms,cp=Ge.target.elementFlags[Pu];if(cp&8&&!(Sl&8))return st&&es(_.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Pu),0;if(Sl&8&&!(cp&12))return st&&es(_.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,ms,Pu),0;if(cp&1&&!(Sl&1))return st&&es(_.Source_provides_no_match_for_required_element_at_position_0_in_target,Pu),0;if(Za&&((Sl&12||cp&12)&&(Za=!1),Za&&Ft?.has(""+ms)))continue;let Wp=Fy(En[ms],!!(Sl&cp&2)),By=ks[Pu],tS=Sl&8&&cp&4?Gu(By):Fy(By,!!(cp&2)),RT=cn(Wp,tS,3,st,void 0,Lt);if(!RT)return st&&(Xr>1||Zn>1)&&(_s&&ms>=ss&&Tl>=Na&&ss!==Zn-Na-1?Rs(_.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,ss,Zn-Na-1,Pu):Rs(_.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,ms,Pu)),0;ir&=RT}return ir}if(Ge.target.combinedFlags&12)return 0}let qr=(l===Lg||l===Yo)&&!Wv(we)&&!IK(we)&&!Aa(we),fn=Mge(we,Ge,qr,!1);if(fn)return st&&zl(we,Ge)&&ci(we,Ge,fn,qr),0;if(Wv(Ge)){for(let Zn of Gr(ao(we),Ft))if(!bT(Ge,Zn.escapedName)&&!(an(Zn).flags&32768))return st&&es(_.Property_0_does_not_exist_on_type_1,Xi(Zn),Yr(Ge)),0}let In=ao(Ge),ai=Aa(we)&&Aa(Ge);for(let Zn of Gr(In,Ft)){let Xr=Zn.escapedName;if(!(Zn.flags&4194304)&&(!ai||yh(Xr)||Xr==="length")&&(!tr||Zn.flags&16777216)){let gi=ca(we,Xr);if(gi&&gi!==Zn){let _s=An(we,Ge,gi,Zn,Sm,st,Lt,l===ef);if(!_s)return 0;ir&=_s}}}return ir}function ba(we,Ge,st){if(!(we.flags&524288&&Ge.flags&524288))return 0;let Ft=Gr(Rv(we),st),tr=Gr(Rv(Ge),st);if(Ft.length!==tr.length)return 0;let Lt=-1;for(let ir of Ft){let qr=bT(Ge,ir.escapedName);if(!qr)return 0;let fn=yge(ir,qr,cn);if(!fn)return 0;Lt&=fn}return Lt}function Io(we,Ge,st,Ft,tr){var Lt,ir;if(l===Wu)return eS(we,Ge,st);if(Ge===uo||we===uo)return-1;let qr=we.symbol&&yg(we.symbol.valueDeclaration),fn=Ge.symbol&&yg(Ge.symbol.valueDeclaration),In=Gs(we,qr&&st===1?0:st),ai=Gs(Ge,fn&&st===1?0:st);if(st===1&&In.length&&ai.length){let Wa=!!(In[0].flags&4),cr=!!(ai[0].flags&4);if(Wa&&!cr)return Ft&&es(_.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!sr(In[0],ai[0],Ft))return 0}let Zn=-1,Xr=st===1?sf:op,gi=jn(we),_s=jn(Ge);if(gi&64&&_s&64&&we.symbol===Ge.symbol||gi&4&&_s&4&&we.target===Ge.target){w.assertEqual(In.length,ai.length);for(let Wa=0;Wa<ai.length;Wa++){let cr=Z1(In[Wa],ai[Wa],!0,Ft,tr,Xr(In[Wa],ai[Wa]));if(!cr)return 0;Zn&=cr}}else if(In.length===1&&ai.length===1){let Wa=l===ef,cr=Ra(In),En=Ra(ai);if(Zn=Z1(cr,En,Wa,Ft,tr,Xr(cr,En)),!Zn&&Ft&&st===1&&gi&_s&&(((Lt=En.declaration)==null?void 0:Lt.kind)===177||((ir=cr.declaration)==null?void 0:ir.kind)===177)){let ks=ss=>i0(ss,void 0,262144,st);return es(_.Type_0_is_not_assignable_to_type_1,ks(cr),ks(En)),es(_.Types_of_construct_signatures_are_incompatible),Zn}}else e:for(let Wa of ai){let cr=Pi(),En=Ft;for(let ks of In){let ss=Z1(ks,Wa,!0,En,tr,Xr(ks,Wa));if(ss){Zn&=ss,Qn(cr);continue e}En=!1}return En&&es(_.Type_0_provides_no_match_for_the_signature_1,Yr(we),i0(Wa,void 0,void 0,st)),0}return Zn}function zl(we,Ge){let st=WL(we,0),Ft=WL(we,1),tr=Rv(we);return(st.length||Ft.length)&&!tr.length?!!(Gs(Ge,0).length&&st.length||Gs(Ge,1).length&&Ft.length):!0}function op(we,Ge){return we.parameters.length===0&&Ge.parameters.length===0?(st,Ft)=>Rs(_.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Yr(st),Yr(Ft)):(st,Ft)=>Rs(_.Call_signature_return_types_0_and_1_are_incompatible,Yr(st),Yr(Ft))}function sf(we,Ge){return we.parameters.length===0&&Ge.parameters.length===0?(st,Ft)=>Rs(_.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Yr(st),Yr(Ft)):(st,Ft)=>Rs(_.Construct_signature_return_types_0_and_1_are_incompatible,Yr(st),Yr(Ft))}function Z1(we,Ge,st,Ft,tr,Lt){let ir=l===Lg?16:l===Yo?24:0;return uge(st?D3(we):we,st?D3(Ge):Ge,ir,Ft,es,Lt,qr,ll);function qr(fn,In,ai){return cn(fn,In,3,ai,void 0,tr)}}function eS(we,Ge,st){let Ft=Gs(we,st),tr=Gs(Ge,st);if(Ft.length!==tr.length)return 0;let Lt=-1;for(let ir=0;ir<Ft.length;ir++){let qr=n9(Ft[ir],tr[ir],!1,!1,!1,cn);if(!qr)return 0;Lt&=qr}return Lt}function Y9(we,Ge,st,Ft){let tr=-1,Lt=Ge.keyType,ir=we.flags&2097152?FL(we):Rv(we);for(let qr of ir)if(!s3e(we,qr)&&KC(YC(qr,8576),Lt)){let fn=Sm(qr),In=Se||fn.flags&32768||Lt===Qt||!(qr.flags&16777216)?fn:ed(fn,524288),ai=cn(In,Ge.type,3,st,void 0,Ft);if(!ai)return st&&es(_.Property_0_is_incompatible_with_index_signature,Xi(qr)),0;tr&=ai}for(let qr of zu(we))if(KC(qr.keyType,Lt)){let fn=$X(qr,Ge,st,Ft);if(!fn)return 0;tr&=fn}return tr}function $X(we,Ge,st,Ft){let tr=cn(we.type,Ge.type,3,st,void 0,Ft);return!tr&&st&&(we.keyType===Ge.keyType?es(_._0_index_signatures_are_incompatible,Yr(we.keyType)):es(_._0_and_1_index_signatures_are_incompatible,Yr(we.keyType),Yr(Ge.keyType))),tr}function Pe(we,Ge,st,Ft,tr){if(l===Wu)return Zt(we,Ge);let Lt=zu(Ge),ir=_t(Lt,fn=>fn.keyType===ut),qr=-1;for(let fn of Lt){let In=l!==Yo&&!st&&ir&&fn.type.flags&1?-1:nf(we)&&ir?cn(Fh(we),fn.type,3,Ft):ie(we,fn,Ft,tr);if(!In)return 0;qr&=In}return qr}function ie(we,Ge,st,Ft){let tr=x3(we,Ge.keyType);return tr?$X(tr,Ge,st,Ft):!(Ft&1)&&(l!==Yo||jn(we)&8192)&&MK(we)?Y9(we,Ge,st,Ft):(st&&es(_.Index_signature_for_type_0_is_missing_in_type_1,Yr(Ge.keyType),Yr(we)),0)}function Zt(we,Ge){let st=zu(we),Ft=zu(Ge);if(st.length!==Ft.length)return 0;for(let tr of Ft){let Lt=jh(we,tr.keyType);if(!(Lt&&cn(Lt.type,tr.type,3)&&Lt.isReadonly===tr.isReadonly))return 0}return-1}function sr(we,Ge,st){if(!we.declaration||!Ge.declaration)return!0;let Ft=b2(we.declaration,6),tr=b2(Ge.declaration,6);return tr===2||tr===4&&Ft!==2||tr!==4&&!Ft?!0:(st&&es(_.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,j1(Ft),j1(tr)),!1)}}function _ge(r){if(r.flags&16)return!1;if(r.flags&3145728)return!!or(r.types,_ge);if(r.flags&465829888){let a=hx(r);if(a&&a!==r)return _ge(a)}return Cm(r)||!!(r.flags&134217728)||!!(r.flags&268435456)}function a3e(r,a){return Aa(r)&&Aa(a)?Ke:ao(a).filter(l=>SK(lr(r,l.escapedName),an(l)))}function SK(r,a){return!!r&&!!a&&Vc(r,32768)&&!!B3(a)}function Jct(r){return ao(r).filter(a=>B3(an(a)))}function o3e(r,a,l=cge){return F7e(r,a,l)||fyt(r,a)||_yt(r,a)||dyt(r,a)||myt(r,a)}function dge(r,a,l){let f=r.types,m=f.map(k=>k.flags&402784252?0:-1);for(let[k,M]of a){let G=!1;for(let J=0;J<f.length;J++)if(m[J]){let K=qn(f[J],M);K&&(td(k(),be=>!!l(be,K))?G=!0:m[J]=3)}for(let J=0;J<f.length;J++)m[J]===3&&(m[J]=G?0:-1)}let y=ws(m,0)?ii(f.filter((k,M)=>m[M]),0):r;return y.flags&131072?r:y}function mge(r){if(r.flags&524288){let a=km(r);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&Fi(a.properties,l=>!!(l.flags&16777216))}return r.flags&33554432?mge(r.baseType):r.flags&2097152?Fi(r.types,mge):!1}function Uct(r,a,l){for(let f of ao(r))if(sX(a,f.escapedName,l))return!0;return!1}function gge(r){return r===La||r===Ca||r.objectFlags&8?F:l3e(r.symbol,r.typeParameters)}function c3e(r){return l3e(r,Wn(r).typeParameters)}function l3e(r,a=Ke){var l,f;let m=Wn(r);if(!m.variances){(l=mn)==null||l.push(mn.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:nu(No(r))});let y=Vk,k=hv;Vk||(Vk=!0,hv=wh.length),m.variances=Ke;let M=[];for(let G of a){let J=hge(G),K=J&16384?J&8192?0:1:J&8192?2:void 0;if(K===void 0){let be=!1,he=!1,He=Cs;Cs=Vt=>Vt?he=!0:be=!0;let gt=t9(r,G,Ko),xt=t9(r,G,Rc);K=($s(xt,gt)?1:0)|($s(gt,xt)?2:0),K===3&&$s(t9(r,G,N),gt)&&(K=4),Cs=He,(be||he)&&(be&&(K|=8),he&&(K|=16))}M.push(K)}y||(Vk=!1,hv=k),m.variances=M,(f=mn)==null||f.pop({variances:M.map(w.formatVariance)})}return m.variances}function t9(r,a,l){let f=wT(a,l),m=No(r);if(rn(m))return m;let y=r.flags&524288?OD(r,Ny(Wn(r).typeParameters,f)):Dy(m,Ny(m.typeParameters,f));return pt.add(nu(y)),y}function TK(r){return pt.has(nu(r))}function hge(r){var a;return lp((a=r.symbol)==null?void 0:a.declarations,(l,f)=>l|Mu(f),0)&28672}function Vct(r,a){for(let l=0;l<a.length;l++)if((a[l]&7)===1&&r[l].flags&16384)return!0;return!1}function qct(r){return r.flags&262144&&!jp(r)}function $ct(r){return!!(jn(r)&4)&&!r.node}function kK(r){return $ct(r)&&_t(Jo(r),a=>!!(a.flags&262144)||kK(a))}function Hct(r,a,l,f){let m=[],y="",k=G(r,0),M=G(a,0);return`${y}${k},${M}${l}`;function G(J,K=0){let be=""+J.target.id;for(let he of Jo(J)){if(he.flags&262144){if(f||qct(he)){let He=m.indexOf(he);He<0&&(He=m.length,m.push(he)),be+="="+He;continue}y="*"}else if(K<4&&kK(he)){be+="<"+G(he,K+1)+">";continue}be+="-"+he.id}return be}}function xK(r,a,l,f,m){if(f===Wu&&r.id>a.id){let k=r;r=a,a=k}let y=l?":"+l:"";return kK(r)&&kK(a)?Hct(r,a,y,m):`${r.id},${a.id}${y}`}function r9(r,a){if(Cc(r)&6){for(let l of r.links.containingType.types){let f=ca(l,r.escapedName),m=f&&r9(f,a);if(m)return m}return}return a(r)}function rw(r){return r.parent&&r.parent.flags&32?No(Wl(r)):void 0}function CK(r){let a=rw(r),l=a&&Qd(a)[0];return l&&lr(l,r.escapedName)}function Qct(r,a){return r9(r,l=>{let f=rw(l);return f?On(f,a):!1})}function Kct(r,a){return!r9(a,l=>j_(l)&4?!Qct(r,rw(l)):!1)}function u3e(r,a,l){return r9(a,f=>j_(f,l)&4?!On(r,rw(f)):!1)?void 0:r}function nw(r,a,l,f=3){if(l>=f){if((jn(r)&96)===96&&(r=p3e(r)),r.flags&2097152)return _t(r.types,M=>nw(M,a,l,f));let m=wK(r),y=0,k=0;for(let M=0;M<l;M++){let G=a[M];if(f3e(G,m)){if(G.id>=k&&(y++,y>=f))return!0;k=G.id}}}return!1}function p3e(r){let a;for(;(jn(r)&96)===96&&(a=B1(r))&&(a.symbol||a.flags&2097152&&_t(a.types,l=>!!l.symbol));)r=a;return r}function f3e(r,a){return(jn(r)&96)===96&&(r=p3e(r)),r.flags&2097152?_t(r.types,l=>f3e(l,a)):wK(r)===a}function wK(r){if(r.flags&524288&&!Oge(r)){if(jn(r)&4&&r.node)return r.node;if(r.symbol&&!(jn(r)&16&&r.symbol.flags&32))return r.symbol;if(Aa(r))return r.target}if(r.flags&262144)return r.symbol;if(r.flags&8388608){do r=r.objectType;while(r.flags&8388608);return r}return r.flags&16777216?r.root:r}function Xct(r,a){return yge(r,a,O3)!==0}function yge(r,a,l){if(r===a)return-1;let f=j_(r)&6,m=j_(a)&6;if(f!==m)return 0;if(f){if(QD(r)!==QD(a))return 0}else if((r.flags&16777216)!==(a.flags&16777216))return 0;return Am(r)!==Am(a)?0:l(an(r),an(a))}function Yct(r,a,l){let f=hf(r),m=hf(a),y=Pm(r),k=Pm(a),M=Qg(r),G=Qg(a);return!!(f===m&&y===k&&M===G||l&&y<=k)}function n9(r,a,l,f,m,y){if(r===a)return-1;if(!Yct(r,a,l)||Dr(r.typeParameters)!==Dr(a.typeParameters))return 0;if(a.typeParameters){let G=Jf(r.typeParameters,a.typeParameters);for(let J=0;J<a.typeParameters.length;J++){let K=r.typeParameters[J],be=a.typeParameters[J];if(!(K===be||y(qi(TN(K),G)||wt,TN(be)||wt)&&y(qi(ST(K),G)||wt,ST(be)||wt)))return 0}r=wx(r,G,!0)}let k=-1;if(!f){let G=G1(r);if(G){let J=G1(a);if(J){let K=y(G,J);if(!K)return 0;k&=K}}}let M=hf(a);for(let G=0;G<M;G++){let J=Dm(r,G),K=Dm(a,G),be=y(K,J);if(!be)return 0;k&=be}if(!m){let G=X_(r),J=X_(a);k&=G||J?Zct(G,J,y):y(Xa(r),Xa(a))}return k}function Zct(r,a,l){return r&&a&&Jme(r,a)?r.type===a.type?-1:r.type&&a.type?l(r.type,a.type):0:0}function elt(r){let a;for(let l of r)if(!(l.flags&131072)){let f=Ry(l);if(a??(a=f),f===l||f!==a)return!1}return!0}function _3e(r){return lp(r,(a,l)=>a|(l.flags&1048576?_3e(l.types):l.flags),0)}function tlt(r){if(r.length===1)return r[0];let a=re?fl(r,f=>pl(f,m=>!(m.flags&98304))):r,l=elt(a)?ii(a):rlt(a);return a===r?l:a9(l,_3e(r)&98304)}function rlt(r){let a=lp(r,(l,f)=>wN(l,f)?f:l);return Fi(r,l=>l===a||wN(l,a))?a:lp(r,(l,f)=>IT(l,f)?f:l)}function nlt(r){return lp(r,(a,l)=>IT(l,a)?l:a)}function Z_(r){return!!(jn(r)&4)&&(r.target===La||r.target===Ca)}function IN(r){return!!(jn(r)&4)&&r.target===Ca}function $1(r){return Z_(r)||Aa(r)}function i9(r){return Z_(r)&&!IN(r)||Aa(r)&&!r.target.readonly}function s9(r){return Z_(r)?Jo(r)[0]:void 0}function Lv(r){return Z_(r)||!(r.flags&98304)&&$s(r,Ff)}function vge(r){return i9(r)||!(r.flags&98305)&&$s(r,fu)}function bge(r){if(!(jn(r)&4)||!(jn(r.target)&3))return;if(jn(r)&33554432)return jn(r)&67108864?r.cachedEquivalentBaseType:void 0;r.objectFlags|=33554432;let a=r.target;if(jn(a)&1){let m=Dd(a);if(m&&m.expression.kind!==80&&m.expression.kind!==212)return}let l=Qd(a);if(l.length!==1||Ug(r.symbol).size)return;let f=Dr(a.typeParameters)?qi(l[0],Jf(a.typeParameters,Jo(r).slice(0,a.typeParameters.length))):l[0];return Dr(Jo(r))>Dr(a.typeParameters)&&(f=zf(f,ka(Jo(r)))),r.objectFlags|=67108864,r.cachedEquivalentBaseType=f}function d3e(r){return re?r===mr:r===j}function IK(r){let a=s9(r);return!!a&&d3e(a)}function DN(r){let a;return Aa(r)||!!ca(r,"0")||Lv(r)&&!!(a=lr(r,"length"))&&gf(a,l=>!!(l.flags&256))}function DK(r){return Lv(r)||DN(r)}function ilt(r,a){let l=lr(r,""+a);if(l)return l;if(gf(r,Aa))return y3e(r,a,O.noUncheckedIndexedAccess?fe:void 0)}function slt(r){return!(r.flags&240544)}function Cm(r){return!!(r.flags&109472)}function m3e(r){let a=dg(r);return a.flags&2097152?_t(a.types,Cm):Cm(a)}function alt(r){return r.flags&2097152&&Bn(r.types,Cm)||r}function L3(r){return r.flags&16?!0:r.flags&1048576?r.flags&1024?!0:Fi(r.types,Cm):Cm(r)}function Ry(r){return r.flags&1056?HQ(r):r.flags&402653312?ut:r.flags&256?Qt:r.flags&2048?Zr:r.flags&512?Ot:r.flags&1048576?olt(r):r}function olt(r){let a=`B${nu(r)}`;return Rp(a)??Cd(a,cc(r,Ry))}function Sge(r){return r.flags&402653312?ut:r.flags&288?Qt:r.flags&2048?Zr:r.flags&512?Ot:r.flags&1048576?cc(r,Sge):r}function H1(r){return r.flags&1056&&CT(r)?HQ(r):r.flags&128&&CT(r)?ut:r.flags&256&&CT(r)?Qt:r.flags&2048&&CT(r)?Zr:r.flags&512&&CT(r)?Ot:r.flags&1048576?cc(r,H1):r}function g3e(r){return r.flags&8192?Ht:r.flags&1048576?cc(r,g3e):r}function Tge(r,a){return bX(r,a)||(r=g3e(H1(r))),Tp(r)}function clt(r,a,l){if(r&&Cm(r)){let f=a?l?oO(a):a:void 0;r=Tge(r,f)}return r}function kge(r,a,l,f){if(r&&Cm(r)){let m=a?zv(l,a,f):void 0;r=Tge(r,m)}return r}function Aa(r){return!!(jn(r)&4&&r.target.objectFlags&8)}function f0(r){return Aa(r)&&!!(r.target.combinedFlags&8)}function h3e(r){return f0(r)&&r.target.elementFlags.length===1}function PK(r){return PN(r,r.target.fixedLength)}function y3e(r,a,l){return cc(r,f=>{let m=f,y=PK(m);return y?l&&a>=zme(m.target)?ii([y,l]):y:fe})}function llt(r){let a=PK(r);return a&&Gu(a)}function PN(r,a,l=0,f=!1,m=!1){let y=Fv(r)-l;if(a<y){let k=Jo(r),M=[];for(let G=a;G<y;G++){let J=k[G];M.push(r.target.elementFlags[G]&8?Gf(J,Qt):J)}return f?ma(M):ii(M,m?0:1)}}function ult(r,a){return Fv(r)===Fv(a)&&Fi(r.target.elementFlags,(l,f)=>(l&12)===(a.target.elementFlags[f]&12))}function v3e({value:r}){return r.base10Value==="0"}function b3e(r){return pl(r,a=>wm(a,4194304))}function plt(r){return cc(r,flt)}function flt(r){return r.flags&4?dD:r.flags&8?tN:r.flags&64?mD:r===Jr||r===jr||r.flags&114691||r.flags&128&&r.value===""||r.flags&256&&r.value===0||r.flags&2048&&v3e(r)?r:ur}function a9(r,a){let l=a&~r.flags&98304;return l===0?r:ii(l===32768?[r,fe]:l===65536?[r,jt]:[r,fe,jt])}function _0(r,a=!1){w.assert(re);let l=a?q:fe;return r===l||r.flags&1048576&&r.types[0]===l?r:ii([r,l])}function _lt(r){return hp||(hp=jD("NonNullable",524288,void 0)||Z),hp!==Z?OD(hp,[r]):ma([r,fa])}function Oy(r){return re?Ex(r,2097152):r}function S3e(r){return re?ii([r,vt]):r}function AK(r){return re?zK(r,vt):r}function EK(r,a,l){return l?MP(a)?_0(r):S3e(r):r}function W3(r,a){return oF(a)?Oy(r):$u(a)?AK(r):r}function Fy(r,a){return Se&&a?zK(r,je):r}function B3(r){return r===je||!!(r.flags&1048576)&&r.types[0]===je}function NK(r){return Se?zK(r,je):ed(r,524288)}function dlt(r,a){return(r.flags&524)!==0&&(a.flags&28)!==0}function MK(r){let a=jn(r);return r.flags&2097152?Fi(r.types,MK):!!(r.symbol&&(r.symbol.flags&7040)!==0&&!(r.symbol.flags&32)&&!WX(r))||!!(a&4194304)||!!(a&1024&&MK(r.source))}function Dx(r,a){let l=wa(r.flags,r.escapedName,Cc(r)&8);l.declarations=r.declarations,l.parent=r.parent,l.links.type=a,l.links.target=r,r.valueDeclaration&&(l.valueDeclaration=r.valueDeclaration);let f=Wn(r).nameType;return f&&(l.links.nameType=f),l}function mlt(r,a){let l=Qs();for(let f of Rv(r)){let m=an(f),y=a(m);l.set(f.escapedName,y===m?f:Dx(f,y))}return l}function z3(r){if(!(Wv(r)&&jn(r)&8192))return r;let a=r.regularType;if(a)return a;let l=r,f=mlt(r,z3),m=oc(l.symbol,f,l.callSignatures,l.constructSignatures,l.indexInfos);return m.flags=l.flags,m.objectFlags|=l.objectFlags&-8193,r.regularType=m,m}function T3e(r,a,l){return{parent:r,propertyName:a,siblings:l,resolvedProperties:void 0}}function k3e(r){if(!r.siblings){let a=[];for(let l of k3e(r.parent))if(Wv(l)){let f=bT(l,r.propertyName);f&&Nx(an(f),m=>{a.push(m)})}r.siblings=a}return r.siblings}function glt(r){if(!r.resolvedProperties){let a=new Map;for(let l of k3e(r))if(Wv(l)&&!(jn(l)&2097152))for(let f of ao(l))a.set(f.escapedName,f);r.resolvedProperties=ds(a.values())}return r.resolvedProperties}function hlt(r,a){if(!(r.flags&4))return r;let l=an(r),f=a&&T3e(a,r.escapedName,void 0),m=xge(l,f);return m===l?r:Dx(r,m)}function ylt(r){let a=se.get(r.escapedName);if(a)return a;let l=Dx(r,q);return l.flags|=16777216,se.set(r.escapedName,l),l}function vlt(r,a){let l=Qs();for(let m of Rv(r))l.set(m.escapedName,hlt(m,a));if(a)for(let m of glt(a))l.has(m.escapedName)||l.set(m.escapedName,ylt(m));let f=oc(r.symbol,l,Ke,Ke,fl(zu(r),m=>Lh(m.keyType,Uf(m.type),m.isReadonly,m.declaration,m.components)));return f.objectFlags|=jn(r)&266240,f}function Uf(r){return xge(r,void 0)}function xge(r,a){if(jn(r)&196608){if(a===void 0&&r.widened)return r.widened;let l;if(r.flags&98305)l=Le;else if(Wv(r))l=vlt(r,a);else if(r.flags&1048576){let f=a||T3e(void 0,void 0,r.types),m=fl(r.types,y=>y.flags&98304?y:xge(y,f));l=ii(m,_t(m,My)?2:1)}else r.flags&2097152?l=ma(fl(r.types,Uf)):$1(r)&&(l=Dy(r.target,fl(Jo(r),Uf)));return l&&a===void 0&&(r.widened=l),l||r}return r}function RK(r){var a;let l=!1;if(jn(r)&65536){if(r.flags&1048576)if(_t(r.types,My))l=!0;else for(let f of r.types)l||(l=RK(f));else if($1(r))for(let f of Jo(r))l||(l=RK(f));else if(Wv(r))for(let f of Rv(r)){let m=an(f);if(jn(m)&65536&&(l=RK(m),!l)){let y=(a=f.declarations)==null?void 0:a.find(k=>{var M;return((M=k.symbol.valueDeclaration)==null?void 0:M.parent)===r.symbol.valueDeclaration});y&&($e(y,_.Object_literal_s_property_0_implicitly_has_an_1_type,Xi(f),Yr(Uf(m))),l=!0)}}}return l}function Q1(r,a,l){let f=Yr(Uf(a));if(dn(r)&&!CA(Nr(r),O))return;let m;switch(r.kind){case 227:case 173:case 172:m=de?_.Member_0_implicitly_has_an_1_type:_.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 170:let y=r;if(Be(y.name)){let k=VT(y.name);if((B2(y.parent)||jd(y.parent)||Pg(y.parent))&&y.parent.parameters.includes(y)&&(ft(y,y.name.escapedText,788968,void 0,!0)||k&&yG(k))){let M="arg"+y.parent.parameters.indexOf(y),G=To(y.name)+(y.dotDotDotToken?"[]":"");Jd(de,r,_.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,M,G);return}}m=r.dotDotDotToken?de?_.Rest_parameter_0_implicitly_has_an_any_type:_.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:de?_.Parameter_0_implicitly_has_an_1_type:_.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 209:if(m=_.Binding_element_0_implicitly_has_an_1_type,!de)return;break;case 318:$e(r,_.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,f);return;case 324:de&&TI(r.parent)&&$e(r.parent.tagName,_.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,f);return;case 263:case 175:case 174:case 178:case 179:case 219:case 220:if(de&&!r.name){l===3?$e(r,_.Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation,f):$e(r,_.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,f);return}m=de?l===3?_._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:_._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:_._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 201:de&&$e(r,_.Mapped_object_type_implicitly_has_an_any_template_type);return;default:m=de?_.Variable_0_implicitly_has_an_1_type:_.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Jd(de,r,m,To(Ss(r)),f)}function blt(r,a){let l=eX(r);if(!l)return!0;let f=Xa(l),m=Yc(r);switch(a){case 1:return m&1?f=zv(1,f,!!(m&2))??f:m&2&&(f=Ly(f)??f),U1(f);case 3:let y=zv(0,f,!!(m&2));return!!y&&U1(y);case 2:let k=zv(2,f,!!(m&2));return!!k&&U1(k)}return!1}function OK(r,a,l){n(()=>{de&&jn(a)&65536&&(!l||yo(r)&&blt(r,l))&&(RK(a)||Q1(r,a,l))})}function Cge(r,a,l){let f=hf(r),m=hf(a),y=eO(r),k=eO(a),M=k?m-1:m,G=y?M:Math.min(f,M),J=G1(r);if(J){let K=G1(a);K&&l(J,K)}for(let K=0;K<G;K++)l(Dm(r,K),Dm(a,K));k&&l(E9(r,G,yx(k)&&!td(k,vge)),k)}function wge(r,a,l){let f=X_(a);if(f){let y=X_(r);if(y&&Jme(y,f)&&y.type&&f.type){l(y.type,f.type);return}}let m=Xa(a);d0(m)&&l(Xa(r),m)}function G3(r,a,l,f){return Ige(r.map(Pge),a,l,f||cge)}function x3e(r,a=0){return r&&Ige(kr(r.inferences,C3e),r.signature,r.flags|a,r.compareTypes)}function Ige(r,a,l,f){let m={inferences:r,signature:a,flags:l,compareTypes:f,mapper:Lo,nonFixingMapper:Lo};return m.mapper=Slt(m),m.nonFixingMapper=Tlt(m),m}function Slt(r){return nge(kr(r.inferences,a=>a.typeParameter),kr(r.inferences,(a,l)=>()=>(a.isFixed||(klt(r),FK(r.inferences),a.isFixed=!0),Fge(r,l))))}function Tlt(r){return nge(kr(r.inferences,a=>a.typeParameter),kr(r.inferences,(a,l)=>()=>Fge(r,l)))}function FK(r){for(let a of r)a.isFixed||(a.inferredType=void 0)}function Dge(r,a,l){(r.intraExpressionInferenceSites??(r.intraExpressionInferenceSites=[])).push({node:a,type:l})}function klt(r){if(r.intraExpressionInferenceSites){for(let{node:a,type:l}of r.intraExpressionInferenceSites){let f=a.kind===175?POe(a,2):Lp(a,2);f&&zh(r.inferences,l,f)}r.intraExpressionInferenceSites=void 0}}function Pge(r){return{typeParameter:r,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function C3e(r){return{typeParameter:r.typeParameter,candidates:r.candidates&&r.candidates.slice(),contraCandidates:r.contraCandidates&&r.contraCandidates.slice(),inferredType:r.inferredType,priority:r.priority,topLevel:r.topLevel,isFixed:r.isFixed,impliedArity:r.impliedArity}}function xlt(r){let a=Mn(r.inferences,HD);return a.length?Ige(kr(a,C3e),r.signature,r.flags,r.compareTypes):void 0}function Age(r){return r&&r.mapper}function d0(r){let a=jn(r);if(a&524288)return!!(a&1048576);let l=!!(r.flags&465829888||r.flags&524288&&!w3e(r)&&(a&4&&(r.node||_t(Jo(r),d0))||a&16&&r.symbol&&r.symbol.flags&14384&&r.symbol.declarations||a&12583968)||r.flags&3145728&&!(r.flags&1024)&&!w3e(r)&&_t(r.types,d0));return r.flags&3899393&&(r.objectFlags|=524288|(l?1048576:0)),l}function w3e(r){if(r.aliasSymbol&&!r.aliasTypeArguments){let a=$o(r.aliasSymbol,266);return!!(a&&vr(a.parent,l=>l.kind===308?!0:l.kind===268?!1:"quit"))}return!1}function J3(r,a,l=0){return!!(r===a||r.flags&3145728&&_t(r.types,f=>J3(f,a,l))||l<3&&r.flags&16777216&&(J3(u0(r),a,l+1)||J3(p0(r),a,l+1)))}function Clt(r,a){let l=X_(r);return l?!!l.type&&J3(l.type,a):J3(Xa(r),a)}function wlt(r){let a=Qs();Nx(r,f=>{if(!(f.flags&128))return;let m=gc(f.value),y=wa(4,m);y.links.type=Le,f.symbol&&(y.declarations=f.symbol.declarations,y.valueDeclaration=f.symbol.valueDeclaration),a.set(m,y)});let l=r.flags&4?[Lh(ut,fa,!1)]:Ke;return oc(void 0,a,Ke,Ke,l)}function I3e(r,a,l){let f=r.id+","+a.id+","+l.id;if(Cu.has(f))return Cu.get(f);let m=Ilt(r,a,l);return Cu.set(f,m),m}function Ege(r){return!(jn(r)&262144)||Wv(r)&&_t(ao(r),a=>Ege(an(a)))||Aa(r)&&_t(kT(r),Ege)}function Ilt(r,a,l){if(!(jh(r,ut)||ao(r).length!==0&&Ege(r)))return;if(Z_(r)){let m=jK(Jo(r)[0],a,l);return m?Gu(m,IN(r)):void 0}if(Aa(r)){let m=kr(kT(r),k=>jK(k,a,l));if(!Fi(m,k=>!!k))return;let y=Vg(a)&4?fl(r.target.elementFlags,k=>k&2?1:k):r.target.elementFlags;return $g(m,y,r.target.readonly,r.target.labeledElementDeclarations)}let f=il(1040,void 0);return f.source=r,f.mappedType=a,f.constraintType=l,f}function Dlt(r){let a=Wn(r);return a.type||(a.type=jK(r.links.propertyType,r.links.mappedType,r.links.constraintType)||wt),a.type}function Plt(r,a,l){let f=Gf(l.type,Kd(a)),m=Fh(a),y=Pge(f);return zh([y],r,m),D3e(y)||wt}function jK(r,a,l){let f=r.id+","+a.id+","+l.id;if(Of.has(f))return Of.get(f)||wt;v1.push(r),Hk.push(a);let m=b1;nw(r,v1,v1.length,2)&&(b1|=1),nw(a,Hk,Hk.length,2)&&(b1|=2);let y;return b1!==3&&(y=Plt(r,a,l)),v1.pop(),Hk.pop(),b1=m,Of.set(f,y),y}function*Nge(r,a,l,f){let m=ao(a);for(let y of m)if(!s4e(y)&&(l||!(y.flags&16777216||Cc(y)&48))){let k=ca(r,y.escapedName);if(!k)yield y;else if(f){let M=an(y);if(M.flags&109472){let G=an(k);G.flags&1||Tp(G)===Tp(M)||(yield y)}}}}function Mge(r,a,l,f){return MO(Nge(r,a,l,f))}function Alt(r,a){return!(a.target.combinedFlags&8)&&a.target.minLength>r.target.minLength||!(a.target.combinedFlags&12)&&(!!(r.target.combinedFlags&12)||a.target.fixedLength<r.target.fixedLength)}function Elt(r,a){return Aa(r)&&Aa(a)?Alt(r,a):!!Mge(r,a,!1,!0)&&!!Mge(a,r,!1,!1)}function D3e(r){return r.candidates?ii(r.candidates,2):r.contraCandidates?ma(r.contraCandidates):void 0}function Rge(r){return!!Nn(r).skipDirectInference}function P3e(r){return!!(r.symbol&&_t(r.symbol.declarations,Rge))}function Nlt(r,a){let l=r.texts[0],f=a.texts[0],m=r.texts[r.texts.length-1],y=a.texts[a.texts.length-1],k=Math.min(l.length,f.length),M=Math.min(m.length,y.length);return l.slice(0,k)!==f.slice(0,k)||m.slice(m.length-M)!==y.slice(y.length-M)}function A3e(r,a){if(r==="")return!1;let l=+r;return isFinite(l)&&(!a||""+l===r)}function Mlt(r){return HL(WG(r))}function LK(r,a){if(a.flags&1)return!0;if(a.flags&134217732)return $s(r,a);if(a.flags&268435456){let l=[];for(;a.flags&268435456;)l.unshift(a.symbol),a=a.type;return lp(l,(m,y)=>ZC(y,m),r)===r&&LK(r,a)}return!1}function E3e(r,a){if(a.flags&2097152)return Fi(a.types,l=>l===Ys||E3e(r,l));if(a.flags&4||$s(r,a))return!0;if(r.flags&128){let l=r.value;return!!(a.flags&8&&A3e(l,!1)||a.flags&64&&J8(l,!1)||a.flags&98816&&l===a.intrinsicName||a.flags&268435456&&LK(r,a)||a.flags&134217728&&WK(r,a))}if(r.flags&134217728){let l=r.texts;return l.length===2&&l[0]===""&&l[1]===""&&$s(r.types[0],a)}return!1}function N3e(r,a){return r.flags&128?M3e([r.value],Ke,a):r.flags&134217728?qf(r.texts,a.texts)?kr(r.types,(l,f)=>$s(dg(l),dg(a.types[f]))?l:Rlt(l)):M3e(r.texts,r.types,a):void 0}function WK(r,a){let l=N3e(r,a);return!!l&&Fi(l,(f,m)=>E3e(f,a.types[m]))}function Rlt(r){return r.flags&402653317?r:Sx(["",""],[r])}function M3e(r,a,l){let f=r.length-1,m=r[0],y=r[f],k=l.texts,M=k.length-1,G=k[0],J=k[M];if(f===0&&m.length<G.length+J.length||!m.startsWith(G)||!y.endsWith(J))return;let K=y.slice(0,y.length-J.length),be=[],he=0,He=G.length;for(let Vt=1;Vt<M;Vt++){let _r=k[Vt];if(_r.length>0){let $r=he,on=He;for(;on=gt($r).indexOf(_r,on),!(on>=0);){if($r++,$r===r.length)return;on=0}xt($r,on),He+=_r.length}else if(He<gt(he).length)xt(he,He+1);else if(he<f)xt(he+1,0);else return}return xt(f,gt(f).length),be;function gt(Vt){return Vt<f?r[Vt]:K}function xt(Vt,_r){let $r=Vt===he?mf(gt(Vt).slice(He,_r)):Sx([r[he].slice(He),...r.slice(he+1,Vt),gt(Vt).slice(0,_r)],a.slice(he,Vt));be.push($r),he=Vt,He=_r}}function zh(r,a,l,f=0,m=!1){let y=!1,k,M=2048,G,J,K,be=0;he(a,l);function he(Lr,Kr){if(!(!d0(Kr)||FD(Kr))){if(Lr===Tt||Lr===Rt){let Ni=k;k=Lr,he(Kr,Kr),k=Ni;return}if(Lr.aliasSymbol&&Lr.aliasSymbol===Kr.aliasSymbol){if(Lr.aliasTypeArguments){let Ni=Wn(Lr.aliasSymbol).typeParameters,cn=qg(Ni),bs=Ov(Lr.aliasTypeArguments,Ni,cn,dn(Lr.aliasSymbol.valueDeclaration)),io=Ov(Kr.aliasTypeArguments,Ni,cn,dn(Lr.aliasSymbol.valueDeclaration));$r(bs,io,c3e(Lr.aliasSymbol))}return}if(Lr===Kr&&Lr.flags&3145728){for(let Ni of Lr.types)he(Ni,Ni);return}if(Kr.flags&1048576){let[Ni,cn]=_r(Lr.flags&1048576?Lr.types:[Lr],Kr.types,Olt),[bs,io]=_r(Ni,cn,Flt);if(io.length===0)return;if(Kr=ii(io),bs.length===0){He(Lr,Kr,1);return}Lr=ii(bs)}else if(Kr.flags&2097152&&!Fi(Kr.types,_K)&&!(Lr.flags&1048576)){let[Ni,cn]=_r(Lr.flags&2097152?Lr.types:[Lr],Kr.types,Bh);if(Ni.length===0||cn.length===0)return;Lr=ma(Ni),Kr=ma(cn)}if(Kr.flags&41943040){if(FD(Kr))return;Kr=Ey(Kr)}if(Kr.flags&8650752){if(P3e(Lr))return;let Ni=pr(Kr);if(Ni){if(jn(Lr)&262144||Lr===ln)return;if(!Ni.isFixed){let bs=k||Lr;if(bs===Rt)return;(Ni.priority===void 0||f<Ni.priority)&&(Ni.candidates=void 0,Ni.contraCandidates=void 0,Ni.topLevel=!0,Ni.priority=f),f===Ni.priority&&(m&&!y?ws(Ni.contraCandidates,bs)||(Ni.contraCandidates=Fr(Ni.contraCandidates,bs),FK(r)):ws(Ni.candidates,bs)||(Ni.candidates=Fr(Ni.candidates,bs),FK(r))),!(f&128)&&Kr.flags&262144&&Ni.topLevel&&!J3(l,Kr)&&(Ni.topLevel=!1,FK(r))}M=Math.min(M,f);return}let cn=Ay(Kr,!1);if(cn!==Kr)he(Lr,cn);else if(Kr.flags&8388608){let bs=Ay(Kr.indexType,!1);if(bs.flags&465829888){let io=ARe(Ay(Kr.objectType,!1),bs,!1);io&&io!==Kr&&he(Lr,io)}}}if(jn(Lr)&4&&jn(Kr)&4&&(Lr.target===Kr.target||Z_(Lr)&&Z_(Kr))&&!(Lr.node&&Kr.node))$r(Jo(Lr),Jo(Kr),gge(Lr.target));else if(Lr.flags&4194304&&Kr.flags&4194304)on(Lr.type,Kr.type);else if((L3(Lr)||Lr.flags&4)&&Kr.flags&4194304){let Ni=wlt(Lr);gt(Ni,Kr.type,256)}else if(Lr.flags&8388608&&Kr.flags&8388608)he(Lr.objectType,Kr.objectType),he(Lr.indexType,Kr.indexType);else if(Lr.flags&268435456&&Kr.flags&268435456)Lr.symbol===Kr.symbol&&he(Lr.type,Kr.type);else if(Lr.flags&33554432)he(Lr.baseType,Kr),He(Ame(Lr),Kr,4);else if(Kr.flags&16777216)Vt(Lr,Kr,Qn);else if(Kr.flags&3145728)si(Lr,Kr.types,Kr.flags);else if(Lr.flags&1048576){let Ni=Lr.types;for(let cn of Ni)he(cn,Kr)}else if(Kr.flags&134217728)Pi(Lr,Kr);else{if(Lr=Pd(Lr),nf(Lr)&&nf(Kr)&&Vt(Lr,Kr,Rs),!(f&512&&Lr.flags&467927040)){let Ni=Sp(Lr);if(Ni!==Lr&&!(Ni.flags&2621440))return he(Ni,Kr);Lr=Ni}Lr.flags&2621440&&Vt(Lr,Kr,Ya)}}}function He(Lr,Kr,Ni){let cn=f;f|=Ni,he(Lr,Kr),f=cn}function gt(Lr,Kr,Ni){let cn=f;f|=Ni,on(Lr,Kr),f=cn}function xt(Lr,Kr,Ni,cn){let bs=f;f|=cn,si(Lr,Kr,Ni),f=bs}function Vt(Lr,Kr,Ni){let cn=Lr.id+","+Kr.id,bs=G&&G.get(cn);if(bs!==void 0){M=Math.min(M,bs);return}(G||(G=new Map)).set(cn,-1);let io=M;M=2048;let Uo=be;(J??(J=[])).push(Lr),(K??(K=[])).push(Kr),nw(Lr,J,J.length,2)&&(be|=1),nw(Kr,K,K.length,2)&&(be|=2),be!==3?Ni(Lr,Kr):M=-1,K.pop(),J.pop(),be=Uo,G.set(cn,M),M=Math.min(M,io)}function _r(Lr,Kr,Ni){let cn,bs;for(let io of Kr)for(let Uo of Lr)Ni(Uo,io)&&(he(Uo,io),cn=qh(cn,Uo),bs=qh(bs,io));return[cn?Mn(Lr,io=>!ws(cn,io)):Lr,bs?Mn(Kr,io=>!ws(bs,io)):Kr]}function $r(Lr,Kr,Ni){let cn=Lr.length<Kr.length?Lr.length:Kr.length;for(let bs=0;bs<cn;bs++)bs<Ni.length&&(Ni[bs]&7)===2?on(Lr[bs],Kr[bs]):he(Lr[bs],Kr[bs])}function on(Lr,Kr){m=!m,he(Lr,Kr),m=!m}function dr(Lr,Kr){V||f&1024?on(Lr,Kr):he(Lr,Kr)}function pr(Lr){if(Lr.flags&8650752){for(let Kr of r)if(Lr===Kr.typeParameter)return Kr}}function pn(Lr){let Kr;for(let Ni of Lr){let cn=Ni.flags&2097152&&Bn(Ni.types,bs=>!!pr(bs));if(!cn||Kr&&cn!==Kr)return;Kr=cn}return Kr}function si(Lr,Kr,Ni){let cn=0;if(Ni&1048576){let bs,io=Lr.flags&1048576?Lr.types:[Lr],Uo=new Array(io.length),su=!1;for(let Ea of Kr)if(pr(Ea))bs=Ea,cn++;else for(let Xc=0;Xc<io.length;Xc++){let sl=M;M=2048,he(io[Xc],Ea),M===f&&(Uo[Xc]=!0),su=su||M===-1,M=Math.min(M,sl)}if(cn===0){let Ea=pn(Kr);Ea&&He(Lr,Ea,1);return}if(cn===1&&!su){let Ea=Ma(io,(Xc,sl)=>Uo[sl]?void 0:Xc);if(Ea.length){he(ii(Ea),bs);return}}}else for(let bs of Kr)pr(bs)?cn++:he(Lr,bs);if(Ni&2097152?cn===1:cn>0)for(let bs of Kr)pr(bs)&&He(Lr,bs,1)}function $i(Lr,Kr,Ni){if(Ni.flags&1048576||Ni.flags&2097152){let cn=!1;for(let bs of Ni.types)cn=$i(Lr,Kr,bs)||cn;return cn}if(Ni.flags&4194304){let cn=pr(Ni.type);if(cn&&!cn.isFixed&&!P3e(Lr)){let bs=I3e(Lr,Kr,Ni);bs&&He(bs,cn.typeParameter,jn(Lr)&262144?16:8)}return!0}if(Ni.flags&262144){He(mg(Lr,Lr.pattern?2:0),Ni,32);let cn=hx(Ni);if(cn&&$i(Lr,Kr,cn))return!0;let bs=kr(ao(Lr),an),io=kr(zu(Lr),Uo=>Uo!==Di?Uo.type:ur);return he(ii(Qi(bs,io)),Fh(Kr)),!0}return!1}function Qn(Lr,Kr){if(Lr.flags&16777216)he(Lr.checkType,Kr.checkType),he(Lr.extendsType,Kr.extendsType),he(u0(Lr),u0(Kr)),he(p0(Lr),p0(Kr));else{let Ni=[u0(Kr),p0(Kr)];xt(Lr,Ni,Kr.flags,m?64:0)}}function Pi(Lr,Kr){let Ni=N3e(Lr,Kr),cn=Kr.types;if(Ni||Fi(Kr.texts,bs=>bs.length===0))for(let bs=0;bs<cn.length;bs++){let io=Ni?Ni[bs]:ur,Uo=cn[bs];if(io.flags&128&&Uo.flags&8650752){let su=pr(Uo),Ea=su?wu(su.typeParameter):void 0;if(Ea&&!xn(Ea)){let Xc=Ea.flags&1048576?Ea.types:[Ea],sl=lp(Xc,(oo,x_)=>oo|x_.flags,0);if(!(sl&4)){let oo=io.value;sl&296&&!A3e(oo,!0)&&(sl&=-297),sl&2112&&!J8(oo,!0)&&(sl&=-2113);let x_=lp(Xc,(lc,qc)=>qc.flags&sl?lc.flags&4?lc:qc.flags&4?io:lc.flags&134217728?lc:qc.flags&134217728&&WK(io,qc)?io:lc.flags&268435456?lc:qc.flags&268435456&&oo===wRe(qc.symbol,oo)?io:lc.flags&128?lc:qc.flags&128&&qc.value===oo?qc:lc.flags&8?lc:qc.flags&8?xm(+oo):lc.flags&32?lc:qc.flags&32?xm(+oo):lc.flags&256?lc:qc.flags&256&&qc.value===+oo?qc:lc.flags&64?lc:qc.flags&64?Mlt(oo):lc.flags&2048?lc:qc.flags&2048&&MS(qc.value)===oo?qc:lc.flags&16?lc:qc.flags&16?oo==="true"?ct:oo==="false"?jr:Ot:lc.flags&512?lc:qc.flags&512&&qc.intrinsicName===oo?qc:lc.flags&32768?lc:qc.flags&32768&&qc.intrinsicName===oo?qc:lc.flags&65536?lc:qc.flags&65536&&qc.intrinsicName===oo?qc:lc:lc,ur);if(!(x_.flags&131072)){he(x_,Uo);continue}}}}he(io,Uo)}}function Rs(Lr,Kr){he(S_(Lr),S_(Kr)),he(Fh(Lr),Fh(Kr));let Ni=Mv(Lr),cn=Mv(Kr);Ni&&cn&&he(Ni,cn)}function Ya(Lr,Kr){var Ni,cn;if(jn(Lr)&4&&jn(Kr)&4&&(Lr.target===Kr.target||Z_(Lr)&&Z_(Kr))){$r(Jo(Lr),Jo(Kr),gge(Lr.target));return}if(nf(Lr)&&nf(Kr)&&Rs(Lr,Kr),jn(Kr)&32&&!Kr.declaration.nameType){let bs=S_(Kr);if($i(Lr,Kr,bs))return}if(!Elt(Lr,Kr)){if($1(Lr)){if(Aa(Kr)){let bs=Fv(Lr),io=Fv(Kr),Uo=Jo(Kr),su=Kr.target.elementFlags;if(Aa(Lr)&&ult(Lr,Kr)){for(let sl=0;sl<io;sl++)he(Jo(Lr)[sl],Uo[sl]);return}let Ea=Aa(Lr)?Math.min(Lr.target.fixedLength,Kr.target.fixedLength):0,Xc=Math.min(Aa(Lr)?P3(Lr.target,3):0,Kr.target.combinedFlags&12?P3(Kr.target,3):0);for(let sl=0;sl<Ea;sl++)he(Jo(Lr)[sl],Uo[sl]);if(!Aa(Lr)||bs-Ea-Xc===1&&Lr.target.elementFlags[Ea]&4){let sl=Jo(Lr)[Ea];for(let oo=Ea;oo<io-Xc;oo++)he(su[oo]&8?Gu(sl):sl,Uo[oo])}else{let sl=io-Ea-Xc;if(sl===2){if(su[Ea]&su[Ea+1]&8){let oo=pr(Uo[Ea]);oo&&oo.impliedArity!==void 0&&(he(CN(Lr,Ea,Xc+bs-oo.impliedArity),Uo[Ea]),he(CN(Lr,Ea+oo.impliedArity,Xc),Uo[Ea+1]))}else if(su[Ea]&8&&su[Ea+1]&4){let oo=(Ni=pr(Uo[Ea]))==null?void 0:Ni.typeParameter,x_=oo&&wu(oo);if(x_&&Aa(x_)&&!(x_.target.combinedFlags&12)){let lc=x_.target.fixedLength;he(CN(Lr,Ea,bs-(Ea+lc)),Uo[Ea]),he(PN(Lr,Ea+lc,Xc),Uo[Ea+1])}}else if(su[Ea]&4&&su[Ea+1]&8){let oo=(cn=pr(Uo[Ea+1]))==null?void 0:cn.typeParameter,x_=oo&&wu(oo);if(x_&&Aa(x_)&&!(x_.target.combinedFlags&12)){let lc=x_.target.fixedLength,qc=bs-P3(Kr.target,3),nd=qc-lc,JN=$g(Jo(Lr).slice(nd,qc),Lr.target.elementFlags.slice(nd,qc),!1,Lr.target.labeledElementDeclarations&&Lr.target.labeledElementDeclarations.slice(nd,qc));he(PN(Lr,Ea,Xc+lc),Uo[Ea]),he(JN,Uo[Ea+1])}}}else if(sl===1&&su[Ea]&8){let oo=Kr.target.elementFlags[io-1]&2,x_=CN(Lr,Ea,Xc);He(x_,Uo[Ea],oo?2:0)}else if(sl===1&&su[Ea]&4){let oo=PN(Lr,Ea,Xc);oo&&he(oo,Uo[Ea])}}for(let sl=0;sl<Xc;sl++)he(Jo(Lr)[bs-sl-1],Uo[io-sl-1]);return}if(Z_(Kr)){ap(Lr,Kr);return}}es(Lr,Kr),Zo(Lr,Kr,0),Zo(Lr,Kr,1),ap(Lr,Kr)}}function es(Lr,Kr){let Ni=Rv(Kr);for(let cn of Ni){let bs=ca(Lr,cn.escapedName);bs&&!_t(bs.declarations,Rge)&&he(Fy(an(bs),!!(bs.flags&16777216)),Fy(an(cn),!!(cn.flags&16777216)))}}function Zo(Lr,Kr,Ni){let cn=Gs(Lr,Ni),bs=cn.length;if(bs>0){let io=Gs(Kr,Ni),Uo=io.length;for(let su=0;su<Uo;su++){let Ea=Math.max(bs-Uo+su,0);jc(Lat(cn[Ea]),D3(io[su]))}}}function jc(Lr,Kr){if(!(Lr.flags&64)){let Ni=y,cn=Kr.declaration?Kr.declaration.kind:0;y=y||cn===175||cn===174||cn===177,Cge(Lr,Kr,dr),y=Ni}wge(Lr,Kr,he)}function ap(Lr,Kr){let Ni=jn(Lr)&jn(Kr)&32?8:0,cn=zu(Kr);if(MK(Lr))for(let bs of cn){let io=[];for(let Uo of ao(Lr))if(KC(YC(Uo,8576),bs.keyType)){let su=an(Uo);io.push(Uo.flags&16777216?NK(su):su)}for(let Uo of zu(Lr))KC(Uo.keyType,bs.keyType)&&io.push(Uo.type);io.length&&He(ii(io),bs.type,Ni)}for(let bs of cn){let io=x3(Lr,bs.keyType);io&&He(io.type,bs.type,Ni)}}}function Olt(r,a){return a===je?r===a:Bh(r,a)||!!(a.flags&4&&r.flags&128||a.flags&8&&r.flags&256)}function Flt(r,a){return!!(r.flags&524288&&a.flags&524288&&r.symbol&&r.symbol===a.symbol||r.aliasSymbol&&r.aliasTypeArguments&&r.aliasSymbol===a.aliasSymbol)}function jlt(r){let a=jp(r);return!!a&&Vc(a.flags&16777216?dme(a):a,406978556)}function Wv(r){return!!(jn(r)&128)}function Oge(r){return!!(jn(r)&16512)}function Llt(r){if(r.length>1){let a=Mn(r,Oge);if(a.length){let l=ii(a,2);return Qi(Mn(r,f=>!Oge(f)),[l])}}return r}function Wlt(r){return r.priority&416?ma(r.contraCandidates):nlt(r.contraCandidates)}function Blt(r,a){let l=Llt(r.candidates),f=jlt(r.typeParameter)||yx(r.typeParameter),m=!f&&r.topLevel&&(r.isFixed||!Clt(a,r.typeParameter)),y=f?fl(l,Tp):m?fl(l,H1):l,k=r.priority&416?ii(y,2):tlt(y);return Uf(k)}function Fge(r,a){let l=r.inferences[a];if(!l.inferredType){let f,m;if(r.signature){let k=l.candidates?Blt(l,r.signature):void 0,M=l.contraCandidates?Wlt(l):void 0;if(k||M){let G=k&&(!M||!(k.flags&131073)&&_t(l.contraCandidates,J=>$s(k,J))&&Fi(r.inferences,J=>J!==l&&jp(J.typeParameter)!==l.typeParameter||Fi(J.candidates,K=>$s(K,k))));f=G?k:M,m=G?M:k}else if(r.flags&1)f=Nt;else{let G=ST(l.typeParameter);G&&(f=qi(G,VRe(_ct(r,a),r.nonFixingMapper)))}}else f=D3e(l);l.inferredType=f||jge(!!(r.flags&2));let y=jp(l.typeParameter);if(y){let k=qi(y,r.nonFixingMapper);(!f||!r.compareTypes(f,zf(k,f)))&&(l.inferredType=m&&r.compareTypes(m,zf(k,m))?m:k)}opt()}return l.inferredType}function jge(r){return r?Le:wt}function Lge(r){let a=[];for(let l=0;l<r.inferences.length;l++)a.push(Fge(r,l));return a}function R3e(r){switch(r.escapedText){case"document":case"console":return _.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return O.types?_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return O.types?_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return O.types?_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Bun":return O.types?_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return _.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;case"await":if(Ws(r.parent))return _.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return r.parent.kind===305?_.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:_.Cannot_find_name_0}}function sp(r){let a=Nn(r);return a.resolvedSymbol||(a.resolvedSymbol=!xc(r)&&ft(r,r,1160127,R3e(r),!S8(r),!1)||Z),a.resolvedSymbol}function Wge(r){return!!(r.flags&33554432||vr(r,a=>uu(a)||gd(a)||Dp(a)))}function o9(r,a,l,f){switch(r.kind){case 80:if(!DS(r)){let k=sp(r);return k!==Z?`${f?qa(f):"-1"}|${nu(a)}|${nu(l)}|${sa(k)}`:void 0}case 110:return`0|${f?qa(f):"-1"}|${nu(a)}|${nu(l)}`;case 236:case 218:return o9(r.expression,a,l,f);case 167:let m=o9(r.left,a,l,f);return m&&`${m}.${r.right.escapedText}`;case 212:case 213:let y=Px(r);if(y!==void 0){let k=o9(r.expression,a,l,f);return k&&`${k}.${y}`}if(xo(r)&&Be(r.argumentExpression)){let k=sp(r.argumentExpression);if(iw(k)||q3(k)&&!V3(k)){let M=o9(r.expression,a,l,f);return M&&`${M}.@${sa(k)}`}}break;case 207:case 208:case 263:case 219:case 220:case 175:return`${qa(r)}#${nu(a)}`}}function gu(r,a){switch(a.kind){case 218:case 236:return gu(r,a.expression);case 227:return Hl(a)&&gu(r,a.left)||vn(a)&&a.operatorToken.kind===28&&gu(r,a.right)}switch(r.kind){case 237:return a.kind===237&&r.keywordToken===a.keywordToken&&r.name.escapedText===a.name.escapedText;case 80:case 81:return DS(r)?a.kind===110:a.kind===80&&sp(r)===sp(a)||(li(a)||Da(a))&&yt(sp(r))===wn(a);case 110:return a.kind===110;case 108:return a.kind===108;case 236:case 218:case 239:return gu(r.expression,a);case 212:case 213:let l=Px(r);if(l!==void 0){let f=Oo(a)?Px(a):void 0;if(f!==void 0)return f===l&&gu(r.expression,a.expression)}if(xo(r)&&xo(a)&&Be(r.argumentExpression)&&Be(a.argumentExpression)){let f=sp(r.argumentExpression);if(f===sp(a.argumentExpression)&&(iw(f)||q3(f)&&!V3(f)))return gu(r.expression,a.expression)}break;case 167:return Oo(a)&&r.right.escapedText===Px(a)&&gu(r.left,a.expression);case 227:return vn(r)&&r.operatorToken.kind===28&&gu(r.right,a)}return!1}function Px(r){if(Ln(r))return r.name.escapedText;if(xo(r))return zlt(r);if(Da(r)){let a=Pv(r);return a?gc(a):void 0}if(Gi(r))return""+r.parent.parameters.indexOf(r)}function Bge(r){return r.flags&8192?r.escapedName:r.flags&384?gc(""+r.value):void 0}function zlt(r){return s_(r.argumentExpression)?gc(r.argumentExpression.text):mo(r.argumentExpression)?Glt(r.argumentExpression):void 0}function Glt(r){let a=Pc(r,111551,!0);if(!a||!(iw(a)||a.flags&8))return;let l=a.valueDeclaration;if(l===void 0)return;let f=o0(l);if(f){let m=Bge(f);if(m!==void 0)return m}if(XT(l)&&ky(l,r)){let m=l6(l);if(m){let y=Ls(l.parent)?Mh(l):Du(m);return y&&Bge(y)}if(oy(l))return p2(l.name)}}function O3e(r,a){for(;Oo(r);)if(r=r.expression,gu(r,a))return!0;return!1}function Ax(r,a){for(;$u(r);)if(r=r.expression,gu(r,a))return!0;return!1}function AN(r,a){if(r&&r.flags&1048576){let l=D4e(r,a);if(l&&Cc(l)&2)return l.links.isDiscriminantProperty===void 0&&(l.links.isDiscriminantProperty=(l.links.checkFlags&192)===192&&!U1(an(l))),!!l.links.isDiscriminantProperty}return!1}function F3e(r,a){let l;for(let f of r)if(AN(a,f.escapedName)){if(l){l.push(f);continue}l=[f]}return l}function Jlt(r,a){let l=new Map,f=0;for(let m of r)if(m.flags&61603840){let y=lr(m,a);if(y){if(!L3(y))return;let k=!1;Nx(y,M=>{let G=nu(Tp(M)),J=l.get(G);J?J!==wt&&(l.set(G,wt),k=!0):l.set(G,m)}),k||f++}}return f>=10&&f*2>=r.length?l:void 0}function c9(r){let a=r.types;if(!(a.length<10||jn(r)&32768||Jy(a,l=>!!(l.flags&59506688))<10)){if(r.keyPropertyName===void 0){let l=or(a,m=>m.flags&59506688?or(ao(m),y=>Cm(an(y))?y.escapedName:void 0):void 0),f=l&&Jlt(a,l);r.keyPropertyName=f?l:"",r.constituentMap=f}return r.keyPropertyName.length?r.keyPropertyName:void 0}}function l9(r,a){var l;let f=(l=r.constituentMap)==null?void 0:l.get(nu(Tp(a)));return f!==wt?f:void 0}function j3e(r,a){let l=c9(r),f=l&&lr(a,l);return f&&l9(r,f)}function Ult(r,a){let l=c9(r),f=l&&Bn(a.properties,y=>y.symbol&&y.kind===304&&y.symbol.escapedName===l&&y9(y.initializer)),m=f&&L9(f.initializer);return m&&l9(r,m)}function L3e(r,a){return gu(r,a)||O3e(r,a)}function W3e(r,a){if(r.arguments){for(let l of r.arguments)if(L3e(a,l)||Ax(l,a))return!0}return!!(r.expression.kind===212&&L3e(a,r.expression.expression))}function zge(r){return r.id<=0&&(r.id=YSe,YSe++),r.id}function Vlt(r,a){if(!(r.flags&1048576))return $s(r,a);for(let l of r.types)if($s(l,a))return!0;return!1}function qlt(r,a){if(r===a)return r;if(a.flags&131072)return a;let l=`A${nu(r)},${nu(a)}`;return Rp(l)??Cd(l,$lt(r,a))}function $lt(r,a){let l=pl(r,m=>Vlt(a,m)),f=a.flags&512&&CT(a)?cc(l,tw):l;return $s(a,f)?f:r}function Gge(r){if(jn(r)&256)return!1;let a=km(r);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&IT(r,Vr))}function BD(r,a){return Jge(r,a)&a}function wm(r,a){return BD(r,a)!==0}function Jge(r,a){r.flags&467927040&&(r=wu(r)||wt);let l=r.flags;if(l&268435460)return re?16317953:16776705;if(l&134217856){let f=l&128&&r.value==="";return re?f?12123649:7929345:f?12582401:16776705}if(l&40)return re?16317698:16776450;if(l&256){let f=r.value===0;return re?f?12123394:7929090:f?12582146:16776450}if(l&64)return re?16317188:16775940;if(l&2048){let f=v3e(r);return re?f?12122884:7928580:f?12581636:16775940}return l&16?re?16316168:16774920:l&528?re?r===jr||r===Jr?12121864:7927560:r===jr||r===Jr?12580616:16774920:l&524288?(a&(re?83427327:83886079))===0?0:jn(r)&16&&My(r)?re?83427327:83886079:Gge(r)?re?7880640:16728e3:re?7888800:16736160:l&16384?9830144:l&32768?26607360:l&65536?42917664:l&12288?re?7925520:16772880:l&67108864?re?7888800:16736160:l&131072?0:l&1048576?lp(r.types,(f,m)=>f|Jge(m,a),0):l&2097152?Hlt(r,a):83886079}function Hlt(r,a){let l=Vc(r,402784252),f=0,m=134217727;for(let y of r.types)if(!(l&&y.flags&524288)){let k=Jge(y,a);f|=k,m&=k}return f&8256|m&134209471}function ed(r,a){return pl(r,l=>wm(l,a))}function Ex(r,a){let l=Uge(ed(re&&r.flags&2?Fa:r,a));if(re)switch(a){case 524288:return B3e(l,65536,131072,33554432,jt);case 1048576:return B3e(l,131072,65536,16777216,fe);case 2097152:case 4194304:return cc(l,f=>wm(f,262144)?_lt(f):f)}return l}function B3e(r,a,l,f,m){let y=BD(r,50528256);if(!(y&a))return r;let k=ii([fa,m]);return cc(r,M=>wm(M,a)?ma([M,!(y&f)&&wm(M,l)?k:fa]):M)}function Uge(r){return r===Fa?wt:r}function Vge(r,a){return a?ii([po(r),Du(a)]):r}function z3e(r,a){var l;let f=Py(a);if(!L_(f))return Ye;let m=W_(f);return lr(r,m)||U3((l=XC(r,m))==null?void 0:l.type)||Ye}function G3e(r,a){return gf(r,DN)&&ilt(r,a)||U3(Bv(65,r,fe,void 0))||Ye}function U3(r){return r&&(O.noUncheckedIndexedAccess?ii([r,je]):r)}function J3e(r){return Gu(Bv(65,r,fe,void 0)||Ye)}function Qlt(r){return r.parent.kind===210&&qge(r.parent)||r.parent.kind===304&&qge(r.parent.parent)?Vge(u9(r),r.right):Du(r.right)}function qge(r){return r.parent.kind===227&&r.parent.left===r||r.parent.kind===251&&r.parent.initializer===r}function Klt(r,a){return G3e(u9(r),r.elements.indexOf(a))}function Xlt(r){return J3e(u9(r.parent))}function U3e(r){return z3e(u9(r.parent),r.name)}function Ylt(r){return Vge(U3e(r),r.objectAssignmentInitializer)}function u9(r){let{parent:a}=r;switch(a.kind){case 250:return ut;case 251:return V9(a)||Ye;case 227:return Qlt(a);case 221:return fe;case 210:return Klt(a,r);case 231:return Xlt(a);case 304:return U3e(a);case 305:return Ylt(a)}return Ye}function Zlt(r){let a=r.parent,l=q3e(a.parent),f=a.kind===207?z3e(l,r.propertyName||r.name):r.dotDotDotToken?J3e(l):G3e(l,a.elements.indexOf(r));return Vge(f,r.initializer)}function V3e(r){return Nn(r).resolvedType||Du(r)}function eut(r){return r.initializer?V3e(r.initializer):r.parent.parent.kind===250?ut:r.parent.parent.kind===251&&V9(r.parent.parent)||Ye}function q3e(r){return r.kind===261?eut(r):Zlt(r)}function tut(r){return r.kind===261&&r.initializer&&Ev(r.initializer)||r.kind!==209&&r.parent.kind===227&&Ev(r.parent.right)}function PT(r){switch(r.kind){case 218:return PT(r.expression);case 227:switch(r.operatorToken.kind){case 64:case 76:case 77:case 78:return PT(r.left);case 28:return PT(r.right)}}return r}function $3e(r){let{parent:a}=r;return a.kind===218||a.kind===227&&a.operatorToken.kind===64&&a.left===r||a.kind===227&&a.operatorToken.kind===28&&a.right===r?$3e(a):r}function rut(r){return r.kind===297?Tp(Du(r.expression)):ur}function BK(r){let a=Nn(r);if(!a.switchTypes){a.switchTypes=[];for(let l of r.caseBlock.clauses)a.switchTypes.push(rut(l))}return a.switchTypes}function H3e(r){if(_t(r.caseBlock.clauses,l=>l.kind===297&&!Ha(l.expression)))return;let a=[];for(let l of r.caseBlock.clauses){let f=l.kind===297?l.expression.text:void 0;a.push(f&&!ws(a,f)?f:void 0)}return a}function nut(r,a){return r.flags&1048576?!or(r.types,l=>!ws(a,l)):ws(a,r)}function EN(r,a){return!!(r===a||r.flags&131072||a.flags&1048576&&iut(r,a))}function iut(r,a){if(r.flags&1048576){for(let l of r.types)if(!Wh(a.types,l))return!1;return!0}return r.flags&1056&&HQ(r)===a?!0:Wh(a.types,r)}function Nx(r,a){return r.flags&1048576?or(r.types,a):a(r)}function td(r,a){return r.flags&1048576?_t(r.types,a):a(r)}function gf(r,a){return r.flags&1048576?Fi(r.types,a):a(r)}function sut(r,a){return r.flags&3145728?Fi(r.types,a):a(r)}function pl(r,a){if(r.flags&1048576){let l=r.types,f=Mn(l,a);if(f===l)return r;let m=r.origin,y;if(m&&m.flags&1048576){let k=m.types,M=Mn(k,G=>!!(G.flags&1048576)||a(G));if(k.length-M.length===l.length-f.length){if(M.length===1)return M[0];y=Gme(1048576,M)}}return Ume(f,r.objectFlags&16809984,void 0,void 0,y)}return r.flags&131072||a(r)?r:ur}function zK(r,a){return pl(r,l=>l!==a)}function aut(r){return r.flags&1048576?r.types.length:1}function cc(r,a,l){if(r.flags&131072)return r;if(!(r.flags&1048576))return a(r);let f=r.origin,m=f&&f.flags&1048576?f.types:r.types,y,k=!1;for(let M of m){let G=M.flags&1048576?cc(M,a,l):a(M);k||(k=M!==G),G&&(y?y.push(G):y=[G])}return k?y&&ii(y,l?0:1):r}function Q3e(r,a,l,f){return r.flags&1048576&&l?ii(kr(r.types,a),1,l,f):cc(r,a)}function NN(r,a){return pl(r,l=>(l.flags&a)!==0)}function K3e(r,a){return Vc(r,134217804)&&Vc(a,402655616)?cc(r,l=>l.flags&4?NN(a,402653316):Tx(l)&&!Vc(a,402653188)?NN(a,128):l.flags&8?NN(a,264):l.flags&64?NN(a,2112):l):r}function zD(r){return r.flags===0}function Mx(r){return r.flags===0?r.type:r}function GD(r,a){return a?{flags:0,type:r.flags&131072?Nt:r}:r}function out(r){let a=il(256);return a.elementType=r,a}function $ge(r){return Mt[r.id]||(Mt[r.id]=out(r))}function X3e(r,a){let l=z3(Ry(L9(a)));return EN(l,r.elementType)?r:$ge(ii([r.elementType,l]))}function cut(r){return r.flags&131072?Zl:Gu(r.flags&1048576?ii(r.types,2):r)}function lut(r){return r.finalArrayType||(r.finalArrayType=cut(r.elementType))}function p9(r){return jn(r)&256?lut(r):r}function uut(r){return jn(r)&256?r.elementType:ur}function put(r){let a=!1;for(let l of r)if(!(l.flags&131072)){if(!(jn(l)&256))return!1;a=!0}return a}function Y3e(r){let a=$3e(r),l=a.parent,f=Ln(l)&&(l.name.escapedText==="length"||l.parent.kind===214&&Be(l.name)&&zz(l.name)),m=l.kind===213&&l.expression===a&&l.parent.kind===227&&l.parent.operatorToken.kind===64&&l.parent.left===l&&!vb(l.parent)&&Iu(Du(l.argumentExpression),296);return f||m}function fut(r){return(li(r)||hs(r)||mp(r)||Gi(r))&&!!(ml(r)||dn(r)&&Hy(r)&&r.initializer&&Cb(r.initializer)&&wf(r.initializer))}function GK(r,a){if(r=nl(r),r.flags&8752)return an(r);if(r.flags&7){if(Cc(r)&262144){let f=r.links.syntheticOrigin;if(f&&GK(f))return an(r)}let l=r.valueDeclaration;if(l){if(fut(l))return an(r);if(li(l)&&l.parent.parent.kind===251){let f=l.parent.parent,m=f9(f.expression,void 0);if(m){let y=f.awaitModifier?15:13;return Bv(y,m,fe,void 0)}}a&&Xs(a,_n(l,_._0_needs_an_explicit_type_annotation,Xi(r)))}}}function f9(r,a){if(!(r.flags&67108864))switch(r.kind){case 80:let l=yt(sp(r));return GK(l,a);case 110:return Mut(r);case 108:return HK(r);case 212:{let f=f9(r.expression,a);if(f){let m=r.name,y;if(zi(m)){if(!f.symbol)return;y=ca(f,k6(f.symbol,m.escapedText))}else y=ca(f,m.escapedText);return y&&GK(y,a)}return}case 218:return f9(r.expression,a)}}function _9(r){let a=Nn(r),l=a.effectsSignature;if(l===void 0){let f;if(vn(r)){let k=UD(r.right);f=$he(k)}else r.parent.kind===245?f=f9(r.expression,void 0):r.expression.kind!==108&&($u(r)?f=hg(W3(ts(r.expression),r.expression),r.expression):f=UD(r.expression));let m=Gs(f&&Sp(f)||wt,0),y=m.length===1&&!m[0].typeParameters?m[0]:_t(m,Z3e)?qD(r):void 0;l=a.effectsSignature=y&&Z3e(y)?y:Yn}return l===Yn?void 0:l}function Z3e(r){return!!(X_(r)||r.declaration&&(MD(r.declaration)||wt).flags&131072)}function _ut(r,a){if(r.kind===1||r.kind===3)return a.arguments[r.parameterIndex];let l=Qa(a.expression);return Oo(l)?Qa(l.expression):void 0}function dut(r){let a=vr(r,UB),l=Nr(r),f=jm(l,a.statements.pos);Ba.add(wl(l,f.start,f.length,_.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function d9(r){let a=JK(r,!1);return oi=r,fs=a,a}function m9(r){let a=Qa(r,!0);return a.kind===97||a.kind===227&&(a.operatorToken.kind===56&&(m9(a.left)||m9(a.right))||a.operatorToken.kind===57&&m9(a.left)&&m9(a.right))}function JK(r,a){for(;;){if(r===oi)return fs;let l=r.flags;if(l&4096){if(!a){let f=zge(r),m=DC[f];return m!==void 0?m:DC[f]=JK(r,!0)}a=!1}if(l&368)r=r.antecedent;else if(l&512){let f=_9(r.node);if(f){let m=X_(f);if(m&&m.kind===3&&!m.type){let y=r.node.arguments[m.parameterIndex];if(y&&m9(y))return!1}if(Xa(f).flags&131072)return!1}r=r.antecedent}else{if(l&4)return _t(r.antecedent,f=>JK(f,!1));if(l&8){let f=r.antecedent;if(f===void 0||f.length===0)return!1;r=f[0]}else if(l&128){let f=r.node;if(f.clauseStart===f.clauseEnd&&VFe(f.switchStatement))return!1;r=r.antecedent}else if(l&1024){oi=void 0;let f=r.node.target,m=f.antecedent;f.antecedent=r.node.antecedents;let y=JK(r.antecedent,!1);return f.antecedent=m,y}else return!(l&1)}}}function UK(r,a){for(;;){let l=r.flags;if(l&4096){if(!a){let f=zge(r),m=oT[f];return m!==void 0?m:oT[f]=UK(r,!0)}a=!1}if(l&496)r=r.antecedent;else if(l&512){if(r.node.expression.kind===108)return!0;r=r.antecedent}else{if(l&4)return Fi(r.antecedent,f=>UK(f,!1));if(l&8)r=r.antecedent[0];else if(l&1024){let f=r.node.target,m=f.antecedent;f.antecedent=r.node.antecedents;let y=UK(r.antecedent,!1);return f.antecedent=m,y}else return!!(l&1)}}}function Hge(r){switch(r.kind){case 110:return!0;case 80:if(!DS(r)){let l=sp(r);return iw(l)||q3(l)&&!V3(l)||!!l.valueDeclaration&&Ao(l.valueDeclaration)}break;case 212:case 213:return Hge(r.expression)&&Am(Nn(r).resolvedSymbol||Z);case 207:case 208:let a=zm(r.parent);return Gi(a)||Dne(a)?!Qge(a):li(a)&&mO(a)}return!1}function jy(r,a,l=a,f,m=(y=>(y=Hn(r,$w))==null?void 0:y.flowNode)()){let y,k=!1,M=0;if(Ci)return Ye;if(!m)return a;ps++;let G=en,J=Mx(he(m));en=G;let K=jn(J)&256&&Y3e(r)?Zl:p9(J);if(K===Tr||r.parent&&r.parent.kind===236&&!(K.flags&131072)&&ed(K,2097152).flags&131072)return a;return K;function be(){return k?y:(k=!0,y=o9(r,a,l,f))}function he(Wt){var Sr;if(M===2e3)return(Sr=mn)==null||Sr.instant(mn.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:Wt.id}),Ci=!0,dut(r),Ye;M++;let Gr;for(;;){let sn=Wt.flags;if(sn&4096){for(let ci=G;ci<en;ci++)if(Ub[ci]===Wt)return M--,IC[ci];Gr=Wt}let An;if(sn&16){if(An=gt(Wt),!An){Wt=Wt.antecedent;continue}}else if(sn&512){if(An=Vt(Wt),!An){Wt=Wt.antecedent;continue}}else if(sn&96)An=$r(Wt);else if(sn&128)An=on(Wt);else if(sn&12){if(Wt.antecedent.length===1){Wt=Wt.antecedent[0];continue}An=sn&4?dr(Wt):pr(Wt)}else if(sn&256){if(An=_r(Wt),!An){Wt=Wt.antecedent;continue}}else if(sn&1024){let ci=Wt.node.target,ga=ci.antecedent;ci.antecedent=Wt.node.antecedents,An=he(Wt.antecedent),ci.antecedent=ga}else if(sn&2){let ci=Wt.node;if(ci&&ci!==f&&r.kind!==212&&r.kind!==213&&!(r.kind===110&&ci.kind!==220)){Wt=ci.flowNode;continue}An=l}else An=pO(a);return Gr&&(Ub[en]=Gr,IC[en]=An,en++),M--,An}}function He(Wt){let Sr=Wt.node;return Kge(Sr.kind===261||Sr.kind===209?q3e(Sr):u9(Sr),r)}function gt(Wt){let Sr=Wt.node;if(gu(r,Sr)){if(!d9(Wt))return Tr;if(yb(Sr)===2){let sn=he(Wt.antecedent);return GD(Ry(Mx(sn)),zD(sn))}if(a===kt||a===Zl){if(tut(Sr))return $ge(ur);let sn=H1(He(Wt));return $s(sn,a)?sn:fu}let Gr=Mz(Sr)?Ry(a):a;return Gr.flags&1048576?qlt(Gr,He(Wt)):Gr}if(O3e(r,Sr)){if(!d9(Wt))return Tr;if(li(Sr)&&(dn(Sr)||mO(Sr))){let Gr=YP(Sr);if(Gr&&(Gr.kind===219||Gr.kind===220))return he(Wt.antecedent)}return a}if(li(Sr)&&Sr.parent.parent.kind===250&&(gu(r,Sr.parent.parent.expression)||Ax(Sr.parent.parent.expression,r)))return ghe(p9(Mx(he(Wt.antecedent))))}function xt(Wt,Sr){let Gr=Qa(Sr,!0);if(Gr.kind===97)return Tr;if(Gr.kind===227){if(Gr.operatorToken.kind===56)return xt(xt(Wt,Gr.left),Gr.right);if(Gr.operatorToken.kind===57)return ii([xt(Wt,Gr.left),xt(Wt,Gr.right)])}return Zf(Wt,Gr,!0)}function Vt(Wt){let Sr=_9(Wt.node);if(Sr){let Gr=X_(Sr);if(Gr&&(Gr.kind===2||Gr.kind===3)){let sn=he(Wt.antecedent),An=p9(Mx(sn)),ci=Gr.type?UN(An,Gr,Wt.node,!0):Gr.kind===3&&Gr.parameterIndex>=0&&Gr.parameterIndex<Wt.node.arguments.length?xt(An,Wt.node.arguments[Gr.parameterIndex]):An;return ci===An?sn:GD(ci,zD(sn))}if(Xa(Sr).flags&131072)return Tr}}function _r(Wt){if(a===kt||a===Zl){let Sr=Wt.node,Gr=Sr.kind===214?Sr.expression.expression:Sr.left.expression;if(gu(r,PT(Gr))){let sn=he(Wt.antecedent),An=Mx(sn);if(jn(An)&256){let ci=An;if(Sr.kind===214)for(let ga of Sr.arguments)ci=X3e(ci,ga);else{let ga=L9(Sr.left.argumentExpression);Iu(ga,296)&&(ci=X3e(ci,Sr.right))}return ci===An?sn:GD(ci,zD(sn))}return sn}}}function $r(Wt){let Sr=he(Wt.antecedent),Gr=Mx(Sr);if(Gr.flags&131072)return Sr;let sn=(Wt.flags&32)!==0,An=p9(Gr),ci=Zf(An,Wt.node,sn);return ci===An?Sr:GD(ci,zD(Sr))}function on(Wt){let Sr=Qa(Wt.node.switchStatement.expression),Gr=he(Wt.antecedent),sn=Mx(Gr);if(gu(r,Sr))sn=Uo(sn,Wt.node);else if(Sr.kind===222&&gu(r,Sr.expression))sn=Xc(sn,Wt.node);else if(Sr.kind===112)sn=sl(sn,Wt.node);else{re&&(Ax(Sr,r)?sn=io(sn,Wt.node,ci=>!(ci.flags&163840)):Sr.kind===222&&Ax(Sr.expression,r)&&(sn=io(sn,Wt.node,ci=>!(ci.flags&131072||ci.flags&128&&ci.value==="undefined"))));let An=$i(Sr,sn);An&&(sn=Rs(sn,An,Wt.node))}return GD(sn,zD(Gr))}function dr(Wt){let Sr=[],Gr=!1,sn=!1,An;for(let ci of Wt.antecedent){if(!An&&ci.flags&128&&ci.node.clauseStart===ci.node.clauseEnd){An=ci;continue}let ga=he(ci),ba=Mx(ga);if(ba===a&&a===l)return ba;D_(Sr,ba),EN(ba,l)||(Gr=!0),zD(ga)&&(sn=!0)}if(An){let ci=he(An),ga=Mx(ci);if(!(ga.flags&131072)&&!ws(Sr,ga)&&!VFe(An.node.switchStatement)){if(ga===a&&a===l)return ga;Sr.push(ga),EN(ga,l)||(Gr=!0),zD(ci)&&(sn=!0)}}return GD(pn(Sr,Gr?2:1),sn)}function pr(Wt){let Sr=zge(Wt),Gr=gD[Sr]||(gD[Sr]=new Map),sn=be();if(!sn)return a;let An=Gr.get(sn);if(An)return An;for(let zl=Tn;zl<zr;zl++)if($k[zl]===Wt&&wC[zl]===sn&&aT[zl].length)return GD(pn(aT[zl],1),!0);let ci=[],ga=!1,ba;for(let zl of Wt.antecedent){let op;if(!ba)op=ba=he(zl);else{$k[zr]=Wt,wC[zr]=sn,aT[zr]=ci,zr++;let Z1=Bi;Bi=void 0,op=he(zl),Bi=Z1,zr--;let eS=Gr.get(sn);if(eS)return eS}let sf=Mx(op);if(D_(ci,sf),EN(sf,l)||(ga=!0),sf===a)break}let Io=pn(ci,ga?2:1);return zD(ba)?GD(Io,!0):(Gr.set(sn,Io),Io)}function pn(Wt,Sr){if(put(Wt))return $ge(ii(kr(Wt,uut)));let Gr=Uge(ii(fl(Wt,p9),Sr));return Gr!==a&&Gr.flags&a.flags&1048576&&qf(Gr.types,a.types)?a:Gr}function si(Wt){if(Ls(r)||Cb(r)||pd(r)){if(Be(Wt)){let Sr=sp(Wt),Gr=yt(Sr).valueDeclaration;if(Gr&&(Da(Gr)||Gi(Gr))&&r===Gr.parent&&!Gr.initializer&&!Gr.dotDotDotToken)return Gr}}else if(Oo(Wt)){if(gu(r,Wt.expression))return Wt}else if(Be(Wt)){let Sr=sp(Wt);if(iw(Sr)){let Gr=Sr.valueDeclaration;if(li(Gr)&&!Gr.type&&Gr.initializer&&Oo(Gr.initializer)&&gu(r,Gr.initializer.expression))return Gr.initializer;if(Da(Gr)&&!Gr.initializer){let sn=Gr.parent.parent;if(li(sn)&&!sn.type&&sn.initializer&&(Be(sn.initializer)||Oo(sn.initializer))&&gu(r,sn.initializer))return Gr}}}}function $i(Wt,Sr){if(a.flags&1048576||Sr.flags&1048576){let Gr=si(Wt);if(Gr){let sn=Px(Gr);if(sn){let An=a.flags&1048576&&EN(Sr,a)?a:Sr;if(AN(An,sn))return Gr}}}}function Qn(Wt,Sr,Gr){let sn=Px(Sr);if(sn===void 0)return Wt;let An=$u(Sr),ci=re&&(An||Ane(Sr))&&Vc(Wt,98304),ga=lr(ci?ed(Wt,2097152):Wt,sn);if(!ga)return Wt;ga=ci&&An?_0(ga):ga;let ba=Gr(ga);return pl(Wt,Io=>{let zl=qn(Io,sn)||wt;return!(zl.flags&131072)&&!(ba.flags&131072)&&YL(ba,zl)})}function Pi(Wt,Sr,Gr,sn,An){if((Gr===37||Gr===38)&&Wt.flags&1048576){let ci=c9(Wt);if(ci&&ci===Px(Sr)){let ga=l9(Wt,Du(sn));if(ga)return Gr===(An?37:38)?ga:Cm(lr(ga,ci)||wt)?zK(Wt,ga):Wt}}return Qn(Wt,Sr,ci=>Ni(ci,Gr,sn,An))}function Rs(Wt,Sr,Gr){if(Gr.clauseStart<Gr.clauseEnd&&Wt.flags&1048576&&c9(Wt)===Px(Sr)){let sn=BK(Gr.switchStatement).slice(Gr.clauseStart,Gr.clauseEnd),An=ii(kr(sn,ci=>l9(Wt,ci)||wt));if(An!==wt)return An}return Qn(Wt,Sr,sn=>Uo(sn,Gr))}function Ya(Wt,Sr,Gr){if(gu(r,Sr))return Ex(Wt,Gr?4194304:8388608);re&&Gr&&Ax(Sr,r)&&(Wt=Ex(Wt,2097152));let sn=$i(Sr,Wt);return sn?Qn(Wt,sn,An=>ed(An,Gr?4194304:8388608)):Wt}function es(Wt,Sr,Gr){let sn=ca(Wt,Sr);return sn?!!(sn.flags&16777216||Cc(sn)&48)||Gr:!!XC(Wt,Sr)||!Gr}function Zo(Wt,Sr,Gr){let sn=W_(Sr);if(td(Wt,ci=>es(ci,sn,!0)))return pl(Wt,ci=>es(ci,sn,Gr));if(Gr){let ci=hot();if(ci)return ma([Wt,OD(ci,[Sr,wt])])}return Wt}function jc(Wt,Sr,Gr,sn,An){return An=An!==(Gr.kind===112)!=(sn!==38&&sn!==36),Zf(Wt,Sr,An)}function ap(Wt,Sr,Gr){switch(Sr.operatorToken.kind){case 64:case 76:case 77:case 78:return Ya(Zf(Wt,Sr.right,Gr),Sr.left,Gr);case 35:case 36:case 37:case 38:let sn=Sr.operatorToken.kind,An=PT(Sr.left),ci=PT(Sr.right);if(An.kind===222&&Ha(ci))return cn(Wt,An,sn,ci,Gr);if(ci.kind===222&&Ha(An))return cn(Wt,ci,sn,An,Gr);if(gu(r,An))return Ni(Wt,sn,ci,Gr);if(gu(r,ci))return Ni(Wt,sn,An,Gr);re&&(Ax(An,r)?Wt=Kr(Wt,sn,ci,Gr):Ax(ci,r)&&(Wt=Kr(Wt,sn,An,Gr)));let ga=$i(An,Wt);if(ga)return Pi(Wt,ga,sn,ci,Gr);let ba=$i(ci,Wt);if(ba)return Pi(Wt,ba,sn,An,Gr);if(oo(An))return x_(Wt,sn,ci,Gr);if(oo(ci))return x_(Wt,sn,An,Gr);if(LP(ci)&&!Oo(An))return jc(Wt,An,ci,sn,Gr);if(LP(An)&&!Oo(ci))return jc(Wt,ci,An,sn,Gr);break;case 104:return lc(Wt,Sr,Gr);case 103:if(zi(Sr.left))return Lr(Wt,Sr,Gr);let Io=PT(Sr.right);if(B3(Wt)&&Oo(r)&&gu(r.expression,Io)){let zl=Du(Sr.left);if(L_(zl)&&Px(r)===W_(zl))return ed(Wt,Gr?524288:65536)}if(gu(r,Io)){let zl=Du(Sr.left);if(L_(zl))return Zo(Wt,zl,Gr)}break;case 28:return Zf(Wt,Sr.right,Gr);case 56:return Gr?Zf(Zf(Wt,Sr.left,!0),Sr.right,!0):ii([Zf(Wt,Sr.left,!1),Zf(Wt,Sr.right,!1)]);case 57:return Gr?ii([Zf(Wt,Sr.left,!0),Zf(Wt,Sr.right,!0)]):Zf(Zf(Wt,Sr.left,!1),Sr.right,!1)}return Wt}function Lr(Wt,Sr,Gr){let sn=PT(Sr.right);if(!gu(r,sn))return Wt;w.assertNode(Sr.left,zi);let An=oX(Sr.left);if(An===void 0)return Wt;let ci=An.parent,ga=Cl(w.checkDefined(An.valueDeclaration,"should always have a declaration"))?an(ci):No(ci);return nd(Wt,ga,Gr,!0)}function Kr(Wt,Sr,Gr,sn){let An=Sr===35||Sr===37,ci=Sr===35||Sr===36?98304:32768,ga=Du(Gr);return An!==sn&&gf(ga,Io=>!!(Io.flags&ci))||An===sn&&gf(ga,Io=>!(Io.flags&(3|ci)))?Ex(Wt,2097152):Wt}function Ni(Wt,Sr,Gr,sn){if(Wt.flags&1)return Wt;(Sr===36||Sr===38)&&(sn=!sn);let An=Du(Gr),ci=Sr===35||Sr===36;if(An.flags&98304){if(!re)return Wt;let ga=ci?sn?262144:2097152:An.flags&65536?sn?131072:1048576:sn?65536:524288;return Ex(Wt,ga)}if(sn){if(!ci&&(Wt.flags&2||td(Wt,Hg))){if(An.flags&469893116||Hg(An))return An;if(An.flags&524288)return Cr}let ga=pl(Wt,ba=>YL(ba,An)||ci&&dlt(ba,An));return K3e(ga,An)}return Cm(An)?pl(Wt,ga=>!(m3e(ga)&&YL(ga,An))):Wt}function cn(Wt,Sr,Gr,sn,An){(Gr===36||Gr===38)&&(An=!An);let ci=PT(Sr.expression);if(!gu(r,ci)){re&&Ax(ci,r)&&An===(sn.text!=="undefined")&&(Wt=Ex(Wt,2097152));let ga=$i(ci,Wt);return ga?Qn(Wt,ga,ba=>bs(ba,sn,An)):Wt}return bs(Wt,sn,An)}function bs(Wt,Sr,Gr){return Gr?su(Wt,Sr.text):Ex(Wt,nae.get(Sr.text)||32768)}function io(Wt,{switchStatement:Sr,clauseStart:Gr,clauseEnd:sn},An){return Gr!==sn&&Fi(BK(Sr).slice(Gr,sn),An)?ed(Wt,2097152):Wt}function Uo(Wt,{switchStatement:Sr,clauseStart:Gr,clauseEnd:sn}){let An=BK(Sr);if(!An.length)return Wt;let ci=An.slice(Gr,sn),ga=Gr===sn||ws(ci,ur);if(Wt.flags&2&&!ga){let op;for(let sf=0;sf<ci.length;sf+=1){let Z1=ci[sf];if(Z1.flags&469893116)op!==void 0&&op.push(Z1);else if(Z1.flags&524288)op===void 0&&(op=ci.slice(0,sf)),op.push(Cr);else return Wt}return ii(op===void 0?ci:op)}let ba=ii(ci),Io=ba.flags&131072?ur:K3e(pl(Wt,op=>YL(ba,op)),ba);if(!ga)return Io;let zl=pl(Wt,op=>!(m3e(op)&&ws(An,op.flags&32768?fe:Tp(alt(op)))));return Io.flags&131072?zl:ii([Io,zl])}function su(Wt,Sr){switch(Sr){case"string":return Ea(Wt,ut,1);case"number":return Ea(Wt,Qt,2);case"bigint":return Ea(Wt,Zr,4);case"boolean":return Ea(Wt,Ot,8);case"symbol":return Ea(Wt,Ht,16);case"object":return Wt.flags&1?Wt:ii([Ea(Wt,Cr,32),Ea(Wt,jt,131072)]);case"function":return Wt.flags&1?Wt:Ea(Wt,Vr,64);case"undefined":return Ea(Wt,fe,65536)}return Ea(Wt,Cr,128)}function Ea(Wt,Sr,Gr){return cc(Wt,sn=>gg(sn,Sr,Yo)?wm(sn,Gr)?sn:ur:IT(Sr,sn)?Sr:wm(sn,Gr)?ma([sn,Sr]):ur)}function Xc(Wt,{switchStatement:Sr,clauseStart:Gr,clauseEnd:sn}){let An=H3e(Sr);if(!An)return Wt;let ci=Tc(Sr.caseBlock.clauses,Io=>Io.kind===298);if(Gr===sn||ci>=Gr&&ci<sn){let Io=UFe(Gr,sn,An);return pl(Wt,zl=>BD(zl,Io)===Io)}let ba=An.slice(Gr,sn);return ii(kr(ba,Io=>Io?su(Wt,Io):ur))}function sl(Wt,{switchStatement:Sr,clauseStart:Gr,clauseEnd:sn}){let An=Tc(Sr.caseBlock.clauses,ba=>ba.kind===298),ci=Gr===sn||An>=Gr&&An<sn;for(let ba=0;ba<Gr;ba++){let Io=Sr.caseBlock.clauses[ba];Io.kind===297&&(Wt=Zf(Wt,Io.expression,!1))}if(ci){for(let ba=sn;ba<Sr.caseBlock.clauses.length;ba++){let Io=Sr.caseBlock.clauses[ba];Io.kind===297&&(Wt=Zf(Wt,Io.expression,!1))}return Wt}let ga=Sr.caseBlock.clauses.slice(Gr,sn);return ii(kr(ga,ba=>ba.kind===297?Zf(Wt,ba.expression,!0):ur))}function oo(Wt){return(Ln(Wt)&&Fn(Wt.name)==="constructor"||xo(Wt)&&Ha(Wt.argumentExpression)&&Wt.argumentExpression.text==="constructor")&&gu(r,Wt.expression)}function x_(Wt,Sr,Gr,sn){if(sn?Sr!==35&&Sr!==37:Sr!==36&&Sr!==38)return Wt;let An=Du(Gr);if(!kye(An)&&!Tm(An))return Wt;let ci=ca(An,"prototype");if(!ci)return Wt;let ga=an(ci),ba=xn(ga)?void 0:ga;if(!ba||ba===zt||ba===Vr)return Wt;if(xn(Wt))return ba;return pl(Wt,zl=>Io(zl,ba));function Io(zl,op){return zl.flags&524288&&jn(zl)&1||op.flags&524288&&jn(op)&1?zl.symbol===op.symbol:IT(zl,op)}}function lc(Wt,Sr,Gr){let sn=PT(Sr.left);if(!gu(r,sn))return Gr&&re&&Ax(sn,r)?Ex(Wt,2097152):Wt;let An=Sr.right,ci=Du(An);if(!q1(ci,zt))return Wt;let ga=_9(Sr),ba=ga&&X_(ga);if(ba&&ba.kind===1&&ba.parameterIndex===0)return nd(Wt,ba.type,Gr,!0);if(!q1(ci,Vr))return Wt;let Io=cc(ci,qc);return xn(Wt)&&(Io===zt||Io===Vr)||!Gr&&!(Io.flags&524288&&!Hg(Io))?Wt:nd(Wt,Io,Gr,!0)}function qc(Wt){let Sr=lr(Wt,"prototype");if(Sr&&!xn(Sr))return Sr;let Gr=Gs(Wt,1);return Gr.length?ii(kr(Gr,sn=>Xa(D3(sn)))):fa}function nd(Wt,Sr,Gr,sn){let An=Wt.flags&1048576?`N${nu(Wt)},${nu(Sr)},${(Gr?1:0)|(sn?2:0)}`:void 0;return Rp(An)??Cd(An,JN(Wt,Sr,Gr,sn))}function JN(Wt,Sr,Gr,sn){if(!Gr){if(Wt===Sr)return ur;if(sn)return pl(Wt,Io=>!q1(Io,Sr));Wt=Wt.flags&2?Fa:Wt;let ba=nd(Wt,Sr,!0,!1);return Uge(pl(Wt,Io=>!EN(Io,ba)))}if(Wt.flags&3||Wt===Sr)return Sr;let An=sn?q1:IT,ci=Wt.flags&1048576?c9(Wt):void 0,ga=cc(Sr,ba=>{let Io=ci&&lr(ba,ci),zl=Io&&l9(Wt,Io),op=cc(zl||Wt,sn?sf=>q1(sf,ba)?sf:q1(ba,sf)?ba:ur:sf=>wN(sf,ba)?sf:wN(ba,sf)?ba:IT(sf,ba)?sf:IT(ba,sf)?ba:ur);return op.flags&131072?cc(Wt,sf=>Vc(sf,465829888)&&An(ba,wu(sf)||wt)?ma([sf,ba]):ur):op});return ga.flags&131072?IT(Sr,Wt)?Sr:$s(Wt,Sr)?Wt:$s(Sr,Wt)?Sr:ma([Wt,Sr]):ga}function gO(Wt,Sr,Gr){if(W3e(Sr,r)){let sn=Gr||!qT(Sr)?_9(Sr):void 0,An=sn&&X_(sn);if(An&&(An.kind===0||An.kind===1))return UN(Wt,An,Sr,Gr)}if(B3(Wt)&&Oo(r)&&Ln(Sr.expression)){let sn=Sr.expression;if(gu(r.expression,PT(sn.expression))&&Be(sn.name)&&sn.name.escapedText==="hasOwnProperty"&&Sr.arguments.length===1){let An=Sr.arguments[0];if(Ha(An)&&Px(r)===gc(An.text))return ed(Wt,Gr?524288:65536)}}return Wt}function UN(Wt,Sr,Gr,sn){if(Sr.type&&!(xn(Wt)&&(Sr.type===zt||Sr.type===Vr))){let An=_ut(Sr,Gr);if(An){if(gu(r,An))return nd(Wt,Sr.type,sn,!1);re&&Ax(An,r)&&(sn&&!wm(Sr.type,65536)||!sn&&gf(Sr.type,k9))&&(Wt=Ex(Wt,2097152));let ci=$i(An,Wt);if(ci)return Qn(Wt,ci,ga=>nd(ga,Sr.type,sn,!1))}}return Wt}function Zf(Wt,Sr,Gr){if(oF(Sr)||vn(Sr.parent)&&(Sr.parent.operatorToken.kind===61||Sr.parent.operatorToken.kind===78)&&Sr.parent.left===Sr)return hO(Wt,Sr,Gr);switch(Sr.kind){case 80:if(!gu(r,Sr)&&T<5){let sn=sp(Sr);if(iw(sn)){let An=sn.valueDeclaration;if(An&&li(An)&&!An.type&&An.initializer&&Hge(r)){T++;let ci=Zf(Wt,An.initializer,Gr);return T--,ci}}}case 110:case 108:case 212:case 213:return Ya(Wt,Sr,Gr);case 214:return gO(Wt,Sr,Gr);case 218:case 236:case 239:return Zf(Wt,Sr.expression,Gr);case 227:return ap(Wt,Sr,Gr);case 225:if(Sr.operator===54)return Zf(Wt,Sr.operand,!Gr);break}return Wt}function hO(Wt,Sr,Gr){if(gu(r,Sr))return Ex(Wt,Gr?2097152:262144);let sn=$i(Sr,Wt);return sn?Qn(Wt,sn,An=>ed(An,Gr?2097152:262144)):Wt}}function mut(r,a){if(r=yt(r),(a.kind===80||a.kind===81)&&(_A(a)&&(a=a.parent),wg(a)&&(!vb(a)||k2(a)))){let l=AK(k2(a)&&a.kind===212?aX(a,void 0,!0):Du(a));if(yt(Nn(a).resolvedSymbol)===r)return l}return Ig(a)&&Fm(a.parent)&&vT(a.parent)?JQ(a.parent.symbol):cG(a)&&k2(a.parent)?Nv(r):Sm(r)}function MN(r){return vr(r.parent,a=>Fs(a)&&!N0(a)||a.kind===269||a.kind===308||a.kind===173)}function gut(r){return(r.lastAssignmentPos!==void 0||V3(r)&&r.lastAssignmentPos!==void 0)&&r.lastAssignmentPos<0}function V3(r){return!eOe(r,void 0)}function eOe(r,a){let l=vr(r.valueDeclaration,VK);if(!l)return!1;let f=Nn(l);return f.flags&131072||(f.flags|=131072,hut(l)||rOe(l)),!r.lastAssignmentPos||a&&Math.abs(r.lastAssignmentPos)<a.pos}function Qge(r){return w.assert(li(r)||Gi(r)),tOe(r.name)}function tOe(r){return r.kind===80?V3(wn(r.parent)):_t(r.elements,a=>a.kind!==233&&tOe(a.name))}function hut(r){return!!vr(r.parent,a=>VK(a)&&!!(Nn(a).flags&131072))}function VK(r){return yo(r)||Li(r)}function rOe(r){switch(r.kind){case 80:let a=yb(r);if(a!==0){let m=sp(r),y=a===1||m.lastAssignmentPos!==void 0&&m.lastAssignmentPos<0;if(q3(m)){if(m.lastAssignmentPos===void 0||Math.abs(m.lastAssignmentPos)!==Number.MAX_VALUE){let k=vr(r,VK),M=vr(m.valueDeclaration,VK);m.lastAssignmentPos=k===M?yut(r,m.valueDeclaration):Number.MAX_VALUE}y&&m.lastAssignmentPos>0&&(m.lastAssignmentPos*=-1)}}return;case 282:let l=r.parent.parent,f=r.propertyName||r.name;if(!r.isTypeOnly&&!l.isTypeOnly&&!l.moduleSpecifier&&f.kind!==11){let m=Pc(f,111551,!0,!0);if(m&&q3(m)){let y=m.lastAssignmentPos!==void 0&&m.lastAssignmentPos<0?-1:1;m.lastAssignmentPos=y*Number.MAX_VALUE}}return;case 265:case 266:case 267:return}yi(r)||Ms(r,rOe)}function yut(r,a){let l=r.pos;for(;r&&r.pos>a.pos;){switch(r.kind){case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 255:case 256:case 259:case 264:l=r.end}r=r.parent}return l}function iw(r){return r.flags&3&&(_he(r)&6)!==0}function q3(r){let a=r.valueDeclaration&&zm(r.valueDeclaration);return!!a&&(Gi(a)||li(a)&&(GS(a.parent)||nOe(a)))}function nOe(r){return!!(r.parent.flags&1)&&!(I0(r)&32||r.parent.parent.kind===244&&Qy(r.parent.parent.parent))}function vut(r){let a=Nn(r);if(a.parameterInitializerContainsUndefined===void 0){if(!fg(r,8))return gx(r.symbol),!0;let l=!!wm(ON(r,0),16777216);if(!Ze())return gx(r.symbol),!0;a.parameterInitializerContainsUndefined??(a.parameterInitializerContainsUndefined=l)}return a.parameterInitializerContainsUndefined}function but(r,a){return re&&a.kind===170&&a.initializer&&wm(r,16777216)&&!vut(a)?ed(r,524288):r}function Sut(r,a){let l=a.parent;return l.kind===212||l.kind===167||l.kind===214&&l.expression===a||l.kind===215&&l.expression===a||l.kind===213&&l.expression===a&&!(td(r,sOe)&&xx(Du(l.argumentExpression)))}function iOe(r){return r.flags&2097152?_t(r.types,iOe):!!(r.flags&465829888&&dg(r).flags&1146880)}function sOe(r){return r.flags&2097152?_t(r.types,sOe):!!(r.flags&465829888&&!Vc(dg(r),98304))}function Tut(r,a){let l=(Be(r)||Ln(r)||xo(r))&&!((cm(r.parent)||kk(r.parent))&&r.parent.tagName===r)&&(a&&a&32?Lp(r,8):Lp(r,void 0));return l&&!U1(l)}function Kge(r,a,l){return FD(r)&&(r=r.baseType),!(l&&l&2)&&td(r,iOe)&&(Sut(r,a)||Tut(a,l))?cc(r,dg):r}function aOe(r){return!!vr(r,a=>{let l=a.parent;return l===void 0?"quit":Qo(l)?l.expression===a&&mo(a):Xu(l)?l.name===a||l.propertyName===a:!1})}function sw(r,a,l,f){if(xe&&!(r.flags&33554432&&!mp(r)&&!hs(r)))switch(a){case 1:return qK(r);case 2:return oOe(r,l,f);case 3:return cOe(r);case 4:return Xge(r);case 5:return lOe(r);case 6:return uOe(r);case 7:return pOe(r);case 8:return fOe(r);case 0:{if(Be(r)&&(wg(r)||Fu(r.parent)||Dl(r.parent)&&r.parent.moduleReference===r)&&gOe(r)){if(jM(r.parent)&&(Ln(r.parent)?r.parent.expression:r.parent.left)!==r)return;qK(r);return}if(jM(r)){let m=r;for(;jM(m);){if(Wm(m))return;m=m.parent}return oOe(r)}return Qo(r)?cOe(r):Qu(r)||Wd(r)?Xge(r):Dl(r)?tk(r)||NX(r)?uOe(r):void 0:Xu(r)?pOe(r):((yo(r)||jd(r))&&lOe(r),!O.emitDecoratorMetadata||!US(r)||!a_(r)||!r.modifiers||!i6($,r,r.parent,r.parent.parent)?void 0:fOe(r))}default:w.assertNever(a,`Unhandled reference hint: ${a}`)}}function qK(r){let a=sp(r);a&&a!==te&&a!==Z&&!DS(r)&&g9(a,r)}function oOe(r,a,l){let f=Ln(r)?r.expression:r.left;if(Sb(f)||!Be(f))return;let m=sp(f);if(!m||m===Z)return;if(md(O)||kb(O)&&aOe(r)){g9(m,r);return}let y=l||Ac(f);if(xn(y)||y===Nt){g9(m,r);return}let k=a;if(!k&&!l){let M=Ln(r)?r.name:r.right,G=zi(M)&&x9(M.escapedText,M),J=yb(r),K=Sp(J!==0||hhe(r)?Uf(y):y);k=zi(M)?G&&cX(K,G)||void 0:ca(K,M.escapedText)}k&&(_O(k)||k.flags&8&&r.parent.kind===307)||g9(m,r)}function cOe(r){if(Be(r.expression)){let a=r.expression,l=yt(Pc(a,-1,!0,!0,r));l&&g9(l,a)}}function Xge(r){if(!iX(r)){let a=Ba&&O.jsx===2?_.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:void 0,l=Gd(r),f=Qu(r)?r.tagName:r,m=O.jsx!==1&&O.jsx!==3,y;if(Wd(r)&&l==="null"||(y=ft(f,l,m?111551:111167,a,!0)),y&&(y.isReferenced=-1,xe&&y.flags&2097152&&!vm(y)&&$K(y)),Wd(r)){let k=Nr(r),M=Cye(k);if(M){let G=wp(M).escapedText;ft(f,G,m?111551:111167,a,!0)}}}}function lOe(r){if(W<2&&Yc(r)&2){let a=wf(r);kut(a)}}function uOe(r){ri(r,32)&&_Oe(r)}function pOe(r){if(!r.parent.parent.moduleSpecifier&&!r.isTypeOnly&&!r.parent.parent.isTypeOnly){let a=r.propertyName||r.name;if(a.kind===11)return;let l=ft(a,a.escapedText,2998271,void 0,!0);if(!(l&&(l===ae||l===Ue||l.declarations&&Qy(Dt(l.declarations[0]))))){let f=l&&(l.flags&2097152?ru(l):l);(!f||rf(f)&111551)&&(_Oe(r),qK(a))}return}}function fOe(r){if(O.emitDecoratorMetadata){let a=Bn(r.modifiers,Il);if(!a)return;switch(Bl(a,16),r.kind){case 264:let l=_h(r);if(l)for(let k of l.parameters)JD(CX(k));break;case 178:case 179:let f=r.kind===178?179:178,m=$o(wn(r),f);JD(vT(r)||m&&vT(m));break;case 175:for(let k of r.parameters)JD(CX(k));JD(wf(r));break;case 173:JD(ml(r));break;case 170:JD(CX(r));let y=r.parent;for(let k of y.parameters)JD(CX(k));JD(wf(y));break}}}function g9(r,a){if(xe&&rx(r,111551)&&!v2(a)){let l=ru(r);rf(r,!0)&1160127&&(md(O)||kb(O)&&aOe(a)||!_O(yt(l)))&&$K(r)}}function $K(r){w.assert(xe);let a=Wn(r);if(!a.referenced){a.referenced=!0;let l=tf(r);if(!l)return w.fail();if(tk(l)&&rf(nl(r))&111551){let f=wp(l.moduleReference);qK(f)}}}function _Oe(r){let a=wn(r),l=ru(a);l&&(l===Z||rf(a,!0)&111551&&!_O(l))&&$K(a)}function dOe(r,a){if(!r)return;let l=wp(r),f=(r.kind===80?788968:1920)|2097152,m=ft(l,l.escapedText,f,void 0,!0);if(m&&m.flags&2097152){if(xe&&gr(m)&&!_O(ru(m))&&!vm(m))$K(m);else if(a&&md(O)&&_p(O)>=5&&!gr(m)&&!_t(m.declarations,$y)){let y=$e(r,_.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),k=Bn(m.declarations||Ke,kv);k&&Xs(y,_n(k,_._0_was_imported_here,Fn(l)))}}}function kut(r){dOe(r&&n6(r),!1)}function JD(r){let a=nye(r);a&&xp(a)&&dOe(a,!0)}function xut(r,a){var l;let f=an(r),m=r.valueDeclaration;if(m){if(Da(m)&&!m.initializer&&!m.dotDotDotToken&&m.parent.elements.length>=2){let y=m.parent.parent,k=zm(y);if(k.kind===261&&MT(k)&6||k.kind===170){let M=Nn(y);if(!(M.flags&4194304)){M.flags|=4194304;let G=mi(y,0),J=G&&cc(G,dg);if(M.flags&=-4194305,J&&J.flags&1048576&&!(k.kind===170&&Qge(k))){let K=m.parent,be=jy(K,J,J,void 0,a.flowNode);return be.flags&131072?ur:s0(m,be,!0)}}}}if(Gi(m)&&!m.type&&!m.initializer&&!m.dotDotDotToken){let y=m.parent;if(y.parameters.length>=2&&yK(y)){let k=H3(y);if(k&&k.parameters.length===1&&Zu(k)){let M=vN(qi(an(k.parameters[0]),(l=AT(y))==null?void 0:l.nonFixingMapper));if(M.flags&1048576&&gf(M,Aa)&&!_t(y.parameters,Qge)){let G=jy(y,M,M,void 0,a.flowNode),J=y.parameters.indexOf(m)-(IS(y)?1:0);return Gf(G,xm(J))}}}}}return f}function mOe(r,a){if(DS(r))return;if(a===te){if(bhe(r,!0)){$e(r,_.arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks);return}let y=i_(r);if(y)for(W<2&&(y.kind===220?$e(r,_.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression):ri(y,1024)&&$e(r,_.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method)),Nn(y).flags|=512;y&&Fo(y);)y=i_(y),y&&(Nn(y).flags|=512);return}let l=yt(a),f=gye(l,r);vp(f)&&$me(r,f)&&f.declarations&&wd(r,f.declarations,r.escapedText);let m=l.valueDeclaration;if(m&&l.flags&32&&ni(m)&&m.name!==r){let y=fp(r,!1,!1);for(;y.kind!==308&&y.parent!==m;)y=fp(y,!1,!1);y.kind!==308&&(Nn(m).flags|=262144,Nn(y).flags|=262144,Nn(r).flags|=536870912)}Put(r,a)}function Cut(r,a){if(DS(r))return h9(r);let l=sp(r);if(l===Z)return Ye;if(mOe(r,l),l===te)return bhe(r)?Ye:an(l);gOe(r)&&sw(r,1);let f=yt(l),m=f.valueDeclaration,y=m;if(m&&m.kind===209&&ws(xd,m.parent)&&vr(r,pr=>pr===m.parent))return ln;let k=xut(f,r),M=yb(r);if(M){if(!(f.flags&3)&&!(dn(r)&&f.flags&512)){let pr=f.flags&384?_.Cannot_assign_to_0_because_it_is_an_enum:f.flags&32?_.Cannot_assign_to_0_because_it_is_a_class:f.flags&1536?_.Cannot_assign_to_0_because_it_is_a_namespace:f.flags&16?_.Cannot_assign_to_0_because_it_is_a_function:f.flags&2097152?_.Cannot_assign_to_0_because_it_is_an_import:_.Cannot_assign_to_0_because_it_is_not_a_variable;return $e(r,pr,Xi(l)),Ye}if(Am(f))return f.flags&3?$e(r,_.Cannot_assign_to_0_because_it_is_a_constant,Xi(l)):$e(r,_.Cannot_assign_to_0_because_it_is_a_read_only_property,Xi(l)),Ye}let G=f.flags&2097152;if(f.flags&3){if(M===1)return Mz(r)?Ry(k):k}else if(G)m=tf(l);else return k;if(!m)return k;k=Kge(k,r,a);let J=zm(m).kind===170,K=MN(m),be=MN(r),he=be!==K,He=r.parent&&r.parent.parent&&Sh(r.parent)&&qge(r.parent.parent),gt=l.flags&134217728,xt=k===kt||k===Zl,Vt=xt&&r.parent.kind===236;for(;be!==K&&(be.kind===219||be.kind===220||jF(be))&&(iw(f)&&k!==Zl||q3(f)&&eOe(f,r));)be=MN(be);let _r=y&&li(y)&&!y.initializer&&!y.exclamationToken&&nOe(y)&&!gut(l),$r=J||G||he&&!_r||He||gt||wut(r,m)||k!==kt&&k!==Zl&&(!re||(k.flags&16387)!==0||v2(r)||Wge(r)||r.parent.kind===282)||r.parent.kind===236||m.kind===261&&m.exclamationToken||m.flags&33554432,on=Vt?fe:$r?J?but(k,m):k:xt?fe:_0(k),dr=Vt?Oy(jy(r,k,on,be)):jy(r,k,on,be);if(!Y3e(r)&&(k===kt||k===Zl)){if(dr===kt||dr===Zl)return de&&($e(Ss(m),_.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Xi(l),Yr(dr)),$e(r,_.Variable_0_implicitly_has_an_1_type,Xi(l),Yr(dr))),pO(dr)}else if(!$r&&!WD(k)&&WD(dr))return $e(r,_.Variable_0_is_used_before_being_assigned,Xi(l)),k;return M?Ry(dr):dr}function wut(r,a){if(Da(a)){let l=vr(r,Da);return l&&zm(l)===zm(a)}}function gOe(r){var a;let l=r.parent;if(l){if(Ln(l)&&l.expression===r||Xu(l)&&l.isTypeOnly)return!1;let f=(a=l.parent)==null?void 0:a.parent;if(f&&tl(f)&&f.isTypeOnly)return!1}return!0}function Iut(r,a){return!!vr(r,l=>l===a?"quit":Fs(l)||l.parent&&hs(l.parent)&&!Cl(l.parent)&&l.parent.initializer===l)}function Dut(r,a){return vr(r,l=>l===a?"quit":l===a.initializer||l===a.condition||l===a.incrementor||l===a.statement)}function Yge(r){return vr(r,a=>!a||Gz(a)?"quit":fb(a,!1))}function Put(r,a){if(W>=2||(a.flags&34)===0||!a.valueDeclaration||Li(a.valueDeclaration)||a.valueDeclaration.parent.kind===300)return;let l=nm(a.valueDeclaration),f=Iut(r,l),m=Yge(l);if(m){if(f){let y=!0;if($0(l)){let k=j0(a.valueDeclaration,262);if(k&&k.parent===l){let M=Dut(r.parent,l);if(M){let G=Nn(M);G.flags|=8192;let J=G.capturedBlockScopeBindings||(G.capturedBlockScopeBindings=[]);D_(J,a),M===l.initializer&&(y=!1)}}}y&&(Nn(m).flags|=4096)}if($0(l)){let y=j0(a.valueDeclaration,262);y&&y.parent===l&&Eut(r,l)&&(Nn(a.valueDeclaration).flags|=65536)}Nn(a.valueDeclaration).flags|=32768}f&&(Nn(a.valueDeclaration).flags|=16384)}function Aut(r,a){let l=Nn(r);return!!l&&ws(l.capturedBlockScopeBindings,wn(a))}function Eut(r,a){let l=r;for(;l.parent.kind===218;)l=l.parent;let f=!1;if(vb(l))f=!0;else if(l.parent.kind===225||l.parent.kind===226){let m=l.parent;f=m.operator===46||m.operator===47}return f?!!vr(l,m=>m===a?"quit":m===a.statement):!1}function Zge(r,a){if(Nn(r).flags|=2,a.kind===173||a.kind===177){let l=a.parent;Nn(l).flags|=4}else Nn(a).flags|=4}function hOe(r){return ek(r)?r:Fs(r)?void 0:Ms(r,hOe)}function ehe(r){let a=wn(r),l=No(a);return Iy(l)===Ce}function yOe(r,a,l){let f=a.parent;CS(f)&&!ehe(f)&&$w(r)&&r.flowNode&&!UK(r.flowNode,!1)&&$e(r,l)}function Nut(r,a){hs(a)&&Cl(a)&&$&&a.initializer&&xM(a.initializer,r.pos)&&a_(a.parent)&&$e(r,_.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function h9(r){let a=v2(r),l=fp(r,!0,!0),f=!1,m=!1;for(l.kind===177&&yOe(r,l,_.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(l.kind===220&&(l=fp(l,!1,!m),f=!0),l.kind===168){l=fp(l,!f,!1),m=!0;continue}break}if(Nut(r,l),m)$e(r,_.this_cannot_be_referenced_in_a_computed_property_name);else switch(l.kind){case 268:$e(r,_.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 267:$e(r,_.this_cannot_be_referenced_in_current_location);break}!a&&f&&W<2&&Zge(r,l);let y=the(r,!0,l);if(ve){let k=an(Ue);if(y===k&&f)$e(r,_.The_containing_arrow_function_captures_the_global_value_of_this);else if(!y){let M=$e(r,_.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Li(l)){let G=the(l);G&&G!==k&&Xs(M,_n(l,_.An_outer_value_of_this_is_shadowed_by_this_container))}}}return y||Le}function the(r,a=!0,l=fp(r,!1,!1)){let f=dn(r);if(Fs(l)&&(!ihe(r)||IS(l))){let m=GQ(l)||f&&Out(l);if(!m){let y=Rut(l);if(f&&y){let k=ts(y).symbol;k&&k.members&&k.flags&16&&(m=No(k).thisType)}else yg(l)&&(m=No(Ja(l.symbol)).thisType);m||(m=rhe(l))}if(m)return jy(r,m)}if(ni(l.parent)){let m=wn(l.parent),y=Ks(l)?an(m):No(m).thisType;return jy(r,y)}if(Li(l))if(l.commonJsModuleIndicator){let m=wn(l);return m&&an(m)}else{if(l.externalModuleIndicator)return fe;if(a)return an(Ue)}}function Mut(r){let a=fp(r,!1,!1);if(Fs(a)){let l=T_(a);if(l.thisParameter)return GK(l.thisParameter)}if(ni(a.parent)){let l=wn(a.parent);return Ks(a)?an(l):No(l).thisType}}function Rut(r){if(r.kind===219&&vn(r.parent)&&Hc(r.parent)===3)return r.parent.left.expression.expression;if(r.kind===175&&r.parent.kind===211&&vn(r.parent.parent)&&Hc(r.parent.parent)===6)return r.parent.parent.left.expression;if(r.kind===219&&r.parent.kind===304&&r.parent.parent.kind===211&&vn(r.parent.parent.parent)&&Hc(r.parent.parent.parent)===6)return r.parent.parent.parent.left.expression;if(r.kind===219&&yl(r.parent)&&Be(r.parent.name)&&(r.parent.name.escapedText==="value"||r.parent.name.escapedText==="get"||r.parent.name.escapedText==="set")&&Sa(r.parent.parent)&&Ws(r.parent.parent.parent)&&r.parent.parent.parent.arguments[2]===r.parent.parent&&Hc(r.parent.parent.parent)===9)return r.parent.parent.parent.arguments[0].expression;if(hc(r)&&Be(r.name)&&(r.name.escapedText==="value"||r.name.escapedText==="get"||r.name.escapedText==="set")&&Sa(r.parent)&&Ws(r.parent.parent)&&r.parent.parent.arguments[2]===r.parent&&Hc(r.parent.parent)===9)return r.parent.parent.arguments[0].expression}function Out(r){let a=nF(r);if(a&&a.typeExpression)return Oi(a.typeExpression);let l=SN(r);if(l)return G1(l)}function Fut(r,a){return!!vr(r,l=>yo(l)?"quit":l.kind===170&&l.parent===a)}function HK(r){let a=r.parent.kind===214&&r.parent.expression===r,l=t6(r,!0),f=l,m=!1,y=!1;if(!a){for(;f&&f.kind===220;)ri(f,1024)&&(y=!0),f=t6(f,!0),m=W<2;f&&ri(f,1024)&&(y=!0)}let k=0;if(!f||!K(f)){let be=vr(r,he=>he===f?"quit":he.kind===168);return be&&be.kind===168?$e(r,_.super_cannot_be_referenced_in_a_computed_property_name):a?$e(r,_.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!f||!f.parent||!(ni(f.parent)||f.parent.kind===211)?$e(r,_.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):$e(r,_.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),Ye}if(!a&&l.kind===177&&yOe(r,f,_.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),Ks(f)||a?(k=32,!a&&W>=2&&W<=8&&(hs(f)||zc(f))&&jte(r.parent,be=>{(!Li(be)||xf(be))&&(Nn(be).flags|=2097152)})):k=16,Nn(r).flags|=k,f.kind===175&&y&&(of(r.parent)&&vb(r.parent)?Nn(f).flags|=256:Nn(f).flags|=128),m&&Zge(r.parent,f),f.parent.kind===211)return W<2?($e(r,_.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Ye):Le;let M=f.parent;if(!CS(M))return $e(r,_.super_can_only_be_referenced_in_a_derived_class),Ye;if(ehe(M))return a?Ye:Ce;let G=No(wn(M)),J=G&&Qd(G)[0];if(!J)return Ye;if(f.kind===177&&Fut(r,f))return $e(r,_.super_cannot_be_referenced_in_constructor_arguments),Ye;return k===32?Iy(G):zf(J,G.thisType);function K(be){return a?be.kind===177:ni(be.parent)||be.parent.kind===211?Ks(be)?be.kind===175||be.kind===174||be.kind===178||be.kind===179||be.kind===173||be.kind===176:be.kind===175||be.kind===174||be.kind===178||be.kind===179||be.kind===173||be.kind===172||be.kind===177:!1}}function vOe(r){return(r.kind===175||r.kind===178||r.kind===179)&&r.parent.kind===211?r.parent:r.kind===219&&r.parent.kind===304?r.parent.parent:void 0}function bOe(r){return jn(r)&4&&r.target===Xf?Jo(r)[0]:void 0}function jut(r){return cc(r,a=>a.flags&2097152?or(a.types,bOe):bOe(a))}function SOe(r,a){let l=r,f=a;for(;f;){let m=jut(f);if(m)return m;if(l.parent.kind!==304)break;l=l.parent.parent,f=X1(l,void 0)}}function rhe(r){if(r.kind===220)return;if(yK(r)){let l=H3(r);if(l){let f=l.thisParameter;if(f)return an(f)}}let a=dn(r);if(ve||a){let l=vOe(r);if(l){let m=X1(l,void 0),y=SOe(l,m);return y?qi(y,Age(AT(l))):Uf(m?Oy(m):Ac(l))}let f=Od(r.parent);if(Hl(f)){let m=f.left;if(Oo(m)){let{expression:y}=m;if(a&&Be(y)){let k=Nr(f);if(k.commonJsModuleIndicator&&sp(y)===k.symbol)return}return Uf(Ac(y))}}}}function TOe(r){let a=r.parent;if(!yK(a))return;let l=N0(a);if(l&&l.arguments){let m=fX(l),y=a.parameters.indexOf(r);if(r.dotDotDotToken)return Dhe(m,y,m.length,Le,void 0,0);let k=Nn(l),M=k.resolvedSignature;k.resolvedSignature=Wr;let G=y<m.length?H1(ts(m[y])):r.initializer?void 0:j;return k.resolvedSignature=M,G}let f=H3(a);if(f){let m=a.parameters.indexOf(r)-(IS(a)?1:0);return r.dotDotDotToken&&Wo(a.parameters)===r?E9(f,m):NT(f,m)}}function nhe(r,a){let l=ml(r)||(dn(r)?$8(r):void 0);if(l)return Oi(l);switch(r.kind){case 170:return TOe(r);case 209:return Lut(r,a);case 173:if(Ks(r))return Wut(r,a)}}function Lut(r,a){let l=r.parent.parent,f=r.propertyName||r.name,m=nhe(l,a)||l.kind!==209&&l.initializer&&ON(l,r.dotDotDotToken?32:0);if(!m||Ls(f)||HM(f))return;if(l.name.kind===208){let k=jw(r.parent.elements,r);return k<0?void 0:lhe(m,k)}let y=Py(f);if(L_(y)){let k=W_(y);return lr(m,k)}}function Wut(r,a){let l=ht(r.parent)&&Lp(r.parent,a);if(l)return K1(l,wn(r).escapedName)}function But(r,a){let l=r.parent;if(Hy(l)&&r===l.initializer){let f=nhe(l,a);if(f)return f;if(!(a&8)&&Ls(l.name)&&l.name.elements.length>0)return _N(l.name,!0,!1)}}function zut(r,a){let l=i_(r);if(l){let f=QK(l,a);if(f){let m=Yc(l);if(m&1){let y=(m&2)!==0;f.flags&1048576&&(f=pl(f,M=>!!zv(1,M,y)));let k=zv(1,f,(m&2)!==0);if(!k)return;f=k}if(m&2){let y=cc(f,Ly);return y&&ii([y,GFe(y)])}return f}}}function Gut(r,a){let l=Lp(r,a);if(l){let f=Ly(l);return f&&ii([f,GFe(f)])}}function Jut(r,a){let l=i_(r);if(l){let f=Yc(l),m=QK(l,a);if(m){let y=(f&2)!==0;if(!r.asteriskToken&&m.flags&1048576&&(m=pl(m,k=>!!zv(1,k,y))),r.asteriskToken){let k=dye(m,y),M=k?.yieldType??Nt,G=Lp(r,a)??Nt,J=k?.nextType??wt,K=hX(M,G,J,!1);if(y){let be=hX(M,G,J,!0);return ii([K,be])}return K}return zv(0,m,y)}}}function ihe(r){let a=!1;for(;r.parent&&!Fs(r.parent);){if(Gi(r.parent)&&(a||r.parent.initializer===r))return!0;Da(r.parent)&&r.parent.initializer===r&&(a=!0),r=r.parent}return!1}function kOe(r,a){let l=!!(Yc(a)&2),f=QK(a,void 0);if(f)return zv(r,f,l)||void 0}function QK(r,a){let l=MD(r);if(l)return l;let f=eX(r);if(f&&!YQ(f)){let y=Xa(f),k=Yc(r);return k&1?pl(y,M=>!!(M.flags&58998787)||Yhe(M,k,void 0)):k&2?pl(y,M=>!!(M.flags&58998787)||!!LN(M)):y}let m=N0(r);if(m)return Lp(m,a)}function xOe(r,a){let f=fX(r).indexOf(a);return f===-1?void 0:she(r,f)}function she(r,a){if(Up(r))return a===0?ut:a===1?eRe(!1):Le;let l=Nn(r).resolvedSignature===hn?hn:qD(r);if(Qu(r)&&a===0)return ZK(l,r);let f=l.parameters.length-1;return Zu(l)&&a>=f?Gf(an(l.parameters[f]),xm(a-f),256):Dm(l,a)}function Uut(r){let a=Ghe(r);return a?vx(a):void 0}function Vut(r,a){if(r.parent.kind===216)return xOe(r.parent,a)}function qut(r,a){let l=r.parent,{left:f,operatorToken:m,right:y}=l;switch(m.kind){case 64:case 77:case 76:case 78:return r===y?Hut(l):void 0;case 57:case 61:let k=Lp(l,a);return r===y&&(k&&k.pattern||!k&&!sre(l))?Du(f):k;case 56:case 28:return r===y?Lp(l,a):void 0;default:return}}function $ut(r){if(rm(r)&&r.symbol)return r.symbol;if(Be(r))return sp(r);if(Ln(r)){let l=Du(r.expression);return zi(r.name)?a(l,r.name):ca(l,r.name.escapedText)}if(xo(r)){let l=Ac(r.argumentExpression);if(!L_(l))return;let f=Du(r.expression);return ca(f,W_(l))}return;function a(l,f){let m=x9(f.escapedText,f);return m&&cX(l,m)}}function Hut(r){var a,l;let f=Hc(r);switch(f){case 0:case 4:let m=$ut(r.left),y=m&&m.valueDeclaration;if(y&&(hs(y)||mp(y))){let G=ml(y);return G&&qi(Oi(G),Wn(m).mapper)||(hs(y)?y.initializer&&Du(r.left):void 0)}return f===0?Du(r.left):COe(r);case 5:if(KK(r,f))return COe(r);if(!rm(r.left)||!r.left.symbol)return Du(r.left);{let G=r.left.symbol.valueDeclaration;if(!G)return;let J=Zs(r.left,Oo),K=ml(G);if(K)return Oi(K);if(Be(J.expression)){let be=J.expression,he=ft(be,be.escapedText,111551,void 0,!0);if(he){let He=he.valueDeclaration&&ml(he.valueDeclaration);if(He){let gt=Zh(J);if(gt!==void 0)return K1(Oi(He),gt)}return}}return dn(G)||G===r.left?void 0:Du(r.left)}case 1:case 6:case 3:case 2:let k;f!==2&&(k=rm(r.left)?(a=r.left.symbol)==null?void 0:a.valueDeclaration:void 0),k||(k=(l=r.symbol)==null?void 0:l.valueDeclaration);let M=k&&ml(k);return M?Oi(M):void 0;case 7:case 8:case 9:return w.fail("Does not apply");default:return w.assertNever(f)}}function KK(r,a=Hc(r)){if(a===4)return!0;if(!dn(r)||a!==5||!Be(r.left.expression))return!1;let l=r.left.expression.escapedText,f=ft(r.left,l,111551,void 0,!0,!0);return GF(f?.valueDeclaration)}function COe(r){if(!r.symbol)return Du(r.left);if(r.symbol.valueDeclaration){let m=ml(r.symbol.valueDeclaration);if(m){let y=Oi(m);if(y)return y}}let a=Zs(r.left,Oo);if(!pd(fp(a.expression,!1,!1)))return;let l=h9(a.expression),f=Zh(a);return f!==void 0&&K1(l,f)||void 0}function Qut(r){return!!(Cc(r)&262144&&!r.links.type&&Y(r,0)>=0)}function ahe(r,a){if(r.flags&16777216){let l=r;return!!(Pd(u0(l)).flags&131072)&&Ey(p0(l))===Ey(l.checkType)&&$s(a,l.extendsType)}return r.flags&2097152?_t(r.types,l=>ahe(l,a)):!1}function K1(r,a,l){return cc(r,f=>{if(f.flags&2097152){let m,y,k=!1;for(let M of f.types){if(!(M.flags&524288))continue;if(nf(M)&&k3(M)!==2){let J=wOe(M,a,l);m=ohe(m,J);continue}let G=IOe(M,a);if(!G){k||(y=Fr(y,M));continue}k=!0,y=void 0,m=ohe(m,G)}if(y)for(let M of y){let G=DOe(M,a,l);m=ohe(m,G)}return m?m.length===1?m[0]:ma(m):void 0}if(f.flags&524288)return nf(f)&&k3(f)!==2?wOe(f,a,l):IOe(f,a)??DOe(f,a,l)},!0)}function ohe(r,a){return a?Fr(r,a.flags&1?wt:a):r}function wOe(r,a,l){let f=l||mf(Ai(a)),m=S_(r);if(r.nameType&&ahe(r.nameType,f)||ahe(m,f))return;let y=wu(m)||m;if($s(f,y))return fK(r,f)}function IOe(r,a){let l=ca(r,a);if(!(!l||Qut(l)))return Fy(an(l),!!(l.flags&16777216))}function DOe(r,a,l){var f;if(Aa(r)&&yh(a)&&+a>=0){let m=PN(r,r.target.fixedLength,0,!1,!0);if(m)return m}return(f=bme(Sme(r),l||mf(Ai(a))))==null?void 0:f.type}function POe(r,a){if(w.assert(pd(r)),!(r.flags&67108864))return che(r,a)}function che(r,a){let l=r.parent,f=yl(r)&&nhe(r,a);if(f)return f;let m=X1(l,a);if(m){if(ED(r)){let y=wn(r);return K1(m,y.escapedName,Wn(y).nameType)}if(ey(r)){let y=Ss(r);if(y&&na(y)){let k=ts(y.expression),M=L_(k)&&K1(m,W_(k));if(M)return M}}if(r.name){let y=Py(r.name);return cc(m,k=>{var M;return(M=bme(Sme(k),y))==null?void 0:M.type},!0)}}}function Kut(r){let a,l;for(let f=0;f<r.length;f++)z_(r[f])&&(a??(a=f),l=f);return{first:a,last:l}}function lhe(r,a,l,f,m){return r&&cc(r,y=>{if(Aa(y)){if((f===void 0||a<f)&&a<y.target.fixedLength)return Fy(Jo(y)[a],!!y.target.elementFlags[a]);let k=l!==void 0&&(m===void 0||a>m)?l-a:0,M=k>0&&y.target.combinedFlags&12?P3(y.target,3):0;return k>0&&k<=M?Jo(y)[Fv(y)-k]:PN(y,f===void 0?y.target.fixedLength:Math.min(y.target.fixedLength,f),l===void 0||m===void 0?M:Math.min(M,l-m),!1,!0)}return(!f||a<f)&&K1(y,""+a)||lye(1,y,fe,void 0,!1)},!0)}function Xut(r,a){let l=r.parent;return r===l.whenTrue||r===l.whenFalse?Lp(l,a):void 0}function Yut(r,a,l){let f=X1(r.openingElement.attributes,l),m=S9(Rx(r));if(!(f&&!xn(f)&&m&&m!==""))return;let y=Xw(r.children),k=y.indexOf(a),M=K1(f,m);return M&&(y.length===1?M:cc(M,G=>Lv(G)?Gf(G,xm(k)):G,!0))}function Zut(r,a){let l=r.parent;return mF(l)?Lp(r,a):Xm(l)?Yut(l,r,a):void 0}function AOe(r,a){if(Ym(r)){let l=X1(r.parent,a);return!l||xn(l)?void 0:K1(l,NA(r.name))}else return Lp(r.parent,a)}function y9(r){switch(r.kind){case 11:case 9:case 10:case 15:case 229:case 112:case 97:case 106:case 80:case 157:return!0;case 212:case 218:return y9(r.expression);case 295:return!r.expression||y9(r.expression)}return!1}function ept(r,a){let l=`D${qa(r)},${nu(a)}`;return Rp(l)??Cd(l,Ult(a,r)??dge(a,Qi(kr(Mn(r.properties,f=>f.symbol?f.kind===304?y9(f.initializer)&&AN(a,f.symbol.escapedName):f.kind===305?AN(a,f.symbol.escapedName):!1:!1),f=>[()=>L9(f.kind===304?f.initializer:f.name),f.symbol.escapedName]),kr(Mn(ao(a),f=>{var m;return!!(f.flags&16777216)&&!!((m=r?.symbol)!=null&&m.members)&&!r.symbol.members.has(f.escapedName)&&AN(a,f.escapedName)}),f=>[()=>fe,f.escapedName])),$s))}function tpt(r,a){let l=`D${qa(r)},${nu(a)}`,f=Rp(l);if(f)return f;let m=S9(Rx(r));return Cd(l,dge(a,Qi(kr(Mn(r.properties,y=>!!y.symbol&&y.kind===292&&AN(a,y.symbol.escapedName)&&(!y.initializer||y9(y.initializer))),y=>[y.initializer?()=>L9(y.initializer):()=>ct,y.symbol.escapedName]),kr(Mn(ao(a),y=>{var k;if(!(y.flags&16777216)||!((k=r?.symbol)!=null&&k.members))return!1;let M=r.parent.parent;return y.escapedName===m&&Xm(M)&&Xw(M.children).length?!1:!r.symbol.members.has(y.escapedName)&&AN(a,y.escapedName)}),y=>[()=>fe,y.escapedName])),$s))}function X1(r,a){let l=pd(r)?POe(r,a):Lp(r,a),f=XK(l,r,a);if(f&&!(a&&a&2&&f.flags&8650752)){let m=cc(f,y=>jn(y)&32?y:Sp(y),!0);return m.flags&1048576&&Sa(r)?ept(r,m):m.flags&1048576&&zS(r)?tpt(r,m):m}}function XK(r,a,l){if(r&&Vc(r,465829888)){let f=AT(a);if(f&&l&1&&_t(f.inferences,X_t))return YK(r,f.nonFixingMapper);if(f?.returnMapper){let m=YK(r,f.returnMapper);return m.flags&1048576&&Wh(m.types,Jr)&&Wh(m.types,It)?pl(m,y=>y!==Jr&&y!==It):m}}return r}function YK(r,a){return r.flags&465829888?qi(r,a):r.flags&1048576?ii(kr(r.types,l=>YK(l,a)),0):r.flags&2097152?ma(kr(r.types,l=>YK(l,a))):r}function Lp(r,a){var l;if(r.flags&67108864)return;let f=NOe(r,!a);if(f>=0)return Zp[f];let{parent:m}=r;switch(m.kind){case 261:case 170:case 173:case 172:case 209:return But(r,a);case 220:case 254:return zut(r,a);case 230:return Jut(m,a);case 224:return Gut(m,a);case 214:case 215:return xOe(m,r);case 171:return Uut(m);case 217:case 235:return Nd(m.type)?Lp(m,a):Oi(m.type);case 227:return qut(r,a);case 304:case 305:return che(m,a);case 306:return Lp(m.parent,a);case 210:{let y=m,k=X1(y,a),M=jw(y.elements,r),G=(l=Nn(y)).spreadIndices??(l.spreadIndices=Kut(y.elements));return lhe(k,M,y.elements.length,G.first,G.last)}case 228:return Xut(r,a);case 240:return w.assert(m.parent.kind===229),Vut(m.parent,r);case 218:{if(dn(m)){if(JG(m))return Oi(UG(m));let y=D0(m);if(y&&!Nd(y.typeExpression.type))return Oi(y.typeExpression.type)}return Lp(m,a)}case 236:return Lp(m,a);case 239:return Oi(m.type);case 278:return o0(m);case 295:return Zut(m,a);case 292:case 294:return AOe(m,a);case 287:case 286:return lpt(m,a);case 302:return cpt(m)}}function EOe(r){v9(r,Lp(r,void 0),!0)}function v9(r,a,l){nc[_u]=r,Zp[_u]=a,kd[_u]=l,_u++}function $3(){_u--,nc[_u]=void 0,Zp[_u]=void 0,kd[_u]=void 0}function NOe(r,a){for(let l=_u-1;l>=0;l--)if(r===nc[l]&&(a||!kd[l]))return l;return-1}function rpt(r,a){Lf[cg]=r,m1[cg]=a,cg++}function npt(){cg--,Lf[cg]=void 0,m1[cg]=void 0}function AT(r){for(let a=cg-1;a>=0;a--)if(xS(r,Lf[a]))return m1[a]}function ipt(r){Fg[jg]=r,g1[jg]??(g1[jg]=new Map),jg++}function spt(){jg--,Fg[jg]=void 0,g1[jg].clear()}function apt(r){for(let a=jg-1;a>=0;a--)if(r===Fg[a])return a;return-1}function opt(){for(let r=jg-1;r>=0;r--)g1[r].clear()}function cpt(r){return K1(Mme(!1),H8(r))}function lpt(r,a){if(cm(r)&&a!==4){let l=NOe(r.parent,!a);if(l>=0)return Zp[l]}return she(r,0)}function ZK(r,a){return Wd(a)||gFe(a)!==0?upt(r,a):_pt(r,a)}function upt(r,a){let l=Bhe(r,wt);l=MOe(a,Rx(a),l);let f=ET(u_.IntrinsicAttributes,a);return rn(f)||(l=RL(f,l)),l}function ppt(r,a){if(r.compositeSignatures){let f=[];for(let m of r.compositeSignatures){let y=Xa(m);if(xn(y))return y;let k=lr(y,a);if(!k)return;f.push(k)}return ma(f)}let l=Xa(r);return xn(l)?l:lr(l,a)}function fpt(r){if(Wd(r))return wFe(r);if(ow(r.tagName)){let l=JOe(r),f=_X(r,l);return vx(f)}let a=Ac(r.tagName);if(a.flags&128){let l=GOe(a,r);if(!l)return Ye;let f=_X(r,l);return vx(f)}return a}function MOe(r,a,l){let f=Fpt(a);if(f){let m=fpt(r),y=qOe(f,dn(r),m,l);if(y)return y}return l}function _pt(r,a){let l=Rx(a),f=Lpt(l),m=f===void 0?Bhe(r,wt):f===""?Xa(r):ppt(r,f);if(!m)return f&&Dr(a.attributes.properties)&&$e(a,_.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Ai(f)),wt;if(m=MOe(a,l,m),xn(m))return m;{let y=m,k=ET(u_.IntrinsicClassAttributes,a);if(!rn(k)){let G=da(k.symbol),J=Xa(r),K;if(G){let be=Ov([J],G,qg(G),dn(a));K=qi(k,Jf(G,be))}else K=k;y=RL(K,y)}let M=ET(u_.IntrinsicAttributes,a);return rn(M)||(y=RL(M,y)),y}}function dpt(r){return Ru(O,"noImplicitAny")?lp(r,(a,l)=>a===l||!a?a:d4e(a.typeParameters,l.typeParameters)?hpt(a,l):void 0):void 0}function mpt(r,a,l){if(!r||!a)return r||a;let f=ii([an(r),qi(an(a),l)]);return Dx(r,f)}function gpt(r,a,l){let f=hf(r),m=hf(a),y=f>=m?r:a,k=y===r?a:r,M=y===r?f:m,G=Qg(r)||Qg(a),J=G&&!Qg(y),K=new Array(M+(J?1:0));for(let be=0;be<M;be++){let he=NT(y,be);y===a&&(he=qi(he,l));let He=NT(k,be)||wt;k===a&&(He=qi(He,l));let gt=ii([he,He]),xt=G&&!J&&be===M-1,Vt=be>=Pm(y)&&be>=Pm(k),_r=be>=f?void 0:RN(r,be),$r=be>=m?void 0:RN(a,be),on=_r===$r?_r:_r?$r?void 0:_r:$r,dr=wa(1|(Vt&&!xt?16777216:0),on||`arg${be}`,xt?32768:Vt?16384:0);dr.links.type=xt?Gu(gt):gt,K[be]=dr}if(J){let be=wa(1,"args",32768);be.links.type=Gu(Dm(k,M)),k===a&&(be.links.type=qi(be.links.type,l)),K[M]=be}return K}function hpt(r,a){let l=r.typeParameters||a.typeParameters,f;r.typeParameters&&a.typeParameters&&(f=Jf(a.typeParameters,r.typeParameters));let m=(r.flags|a.flags)&166,y=r.declaration,k=gpt(r,a,f),M=Wo(k);M&&Cc(M)&32768&&(m|=1);let G=mpt(r.thisParameter,a.thisParameter,f),J=Math.max(r.minArgumentCount,a.minArgumentCount),K=_g(y,l,G,k,void 0,void 0,J,m);return K.compositeKind=2097152,K.compositeSignatures=Qi(r.compositeKind===2097152&&r.compositeSignatures||[r],[a]),f&&(K.mapper=r.compositeKind===2097152&&r.mapper&&r.compositeSignatures?V1(r.mapper,f):f),K}function uhe(r,a){let l=Gs(r,0),f=Mn(l,m=>!ypt(m,a));return f.length===1?f[0]:dpt(f)}function ypt(r,a){let l=0;for(;l<a.parameters.length;l++){let f=a.parameters[l];if(f.initializer||f.questionToken||f.dotDotDotToken||q8(f))break}return a.parameters.length&&bb(a.parameters[0])&&l--,!Qg(r)&&hf(r)<l}function eX(r){return Cb(r)||pd(r)?H3(r):void 0}function H3(r){w.assert(r.kind!==175||pd(r));let a=SN(r);if(a)return a;let l=X1(r,1);if(!l)return;if(!(l.flags&1048576))return uhe(l,r);let f,m=l.types;for(let y of m){let k=uhe(y,r);if(k)if(!f)f=[k];else if(n9(f[0],k,!1,!0,!0,O3))f.push(k);else return}if(f)return f.length===1?f[0]:f4e(f[0],f)}function vpt(r){let a=Nr(r);if(!h0(a)&&!r.isUnterminated){let l;s??(s=ih(99,!0)),s.setScriptTarget(a.languageVersion),s.setLanguageVariant(a.languageVariant),s.setOnError((f,m,y)=>{let k=s.getTokenEnd();if(f.category===3&&l&&k===l.start&&m===l.length){let M=C2(a.fileName,a.text,k,m,f,y);Xs(l,M)}else(!l||k!==l.start)&&(l=wl(a,k,m,f,y),Ba.add(l))}),s.setText(a.text,r.pos,r.end-r.pos);try{return s.scan(),w.assert(s.reScanSlashToken(!0)===14,"Expected scanner to rescan RegularExpressionLiteral"),!!l}finally{s.setText(""),s.setOnError(void 0)}}return!1}function bpt(r){let a=Nn(r);return a.flags&1||(a.flags|=1,n(()=>vpt(r))),Oc}function Spt(r,a){W<Jl.SpreadElements&&Bl(r,O.downlevelIteration?1536:1024);let l=ts(r.expression,a);return Bv(33,l,fe,r.expression)}function Tpt(r){return r.isSpread?Gf(r.type,Qt):r.type}function aw(r){return r.kind===209&&!!r.initializer||r.kind===304&&aw(r.initializer)||r.kind===305&&!!r.objectAssignmentInitializer||r.kind===227&&r.operatorToken.kind===64}function kpt(r){let a=Od(r.parent);return z_(a)&&Om(a.parent)}function ROe(r,a,l){let f=r.elements,m=f.length,y=[],k=[];EOe(r);let M=vb(r),G=FN(r),J=X1(r,void 0),K=kpt(r)||!!J&&td(J,he=>DN(he)||nf(he)&&!he.nameType&&!!M3(he.target||he)),be=!1;for(let he=0;he<m;he++){let He=f[he];if(He.kind===231){W<Jl.SpreadElements&&Bl(He,O.downlevelIteration?1536:1024);let gt=ts(He.expression,a,l);if(Lv(gt))y.push(gt),k.push(8);else if(M){let xt=z1(gt,Qt)||lye(65,gt,fe,void 0,!1)||wt;y.push(xt),k.push(4)}else y.push(Bv(33,gt,fe,He.expression)),k.push(4)}else if(Se&&He.kind===233)be=!0,y.push(q),k.push(2);else{let gt=jN(He,a,l);if(y.push(ip(gt,!0,be)),k.push(be?2:1),K&&a&&a&2&&!(a&4)&&k_(He)){let xt=AT(r);w.assert(xt),Dge(xt,He,gt)}}}return $3(),M?$g(y,k):OOe(l||G||K?$g(y,k,G&&!(J&&td(J,vge))):Gu(y.length?ii(fl(y,(he,He)=>k[He]&8?l0(he,Qt)||Le:he),2):re?mr:j,G))}function OOe(r){if(!(jn(r)&4))return r;let a=r.literalType;return a||(a=r.literalType=z4e(r),a.objectFlags|=147456),a}function xpt(r){switch(r.kind){case 168:return Cpt(r);case 80:return yh(r.escapedText);case 9:case 11:return yh(r.text);default:return!1}}function Cpt(r){return Iu(Xd(r),296)}function Xd(r){let a=Nn(r.expression);if(!a.resolvedType){if((Dp(r.parent.parent)||ni(r.parent.parent)||uu(r.parent.parent))&&vn(r.expression)&&r.expression.operatorToken.kind===103&&r.parent.kind!==178&&r.parent.kind!==179)return a.resolvedType=Ye;if(a.resolvedType=ts(r.expression),hs(r.parent)&&!Cl(r.parent)&&Zc(r.parent.parent)){let l=nm(r.parent.parent),f=Yge(l);f&&(Nn(f).flags|=4096,Nn(r).flags|=32768,Nn(r.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!Iu(a.resolvedType,402665900)&&!$s(a.resolvedType,di))&&$e(r,_.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function wpt(r){var a;let l=(a=r.declarations)==null?void 0:a[0];return yh(r.escapedName)||l&&Vl(l)&&xpt(l.name)}function FOe(r){var a;let l=(a=r.declarations)==null?void 0:a[0];return oA(r)||l&&Vl(l)&&na(l.name)&&Iu(Xd(l.name),4096)}function Ipt(r){var a;let l=(a=r.declarations)==null?void 0:a[0];return l&&Vl(l)&&na(l.name)}function Q3(r,a,l,f){var m;let y=[],k;for(let G=a;G<l.length;G++){let J=l[G];(f===ut&&!FOe(J)||f===Qt&&wpt(J)||f===Ht&&FOe(J))&&(y.push(an(l[G])),Ipt(l[G])&&(k=Fr(k,(m=l[G].declarations)==null?void 0:m[0])))}let M=y.length?ii(y,2):fe;return Lh(f,M,r,void 0,k)}function tX(r){w.assert((r.flags&2097152)!==0,"Should only get Alias here.");let a=Wn(r);if(!a.immediateTarget){let l=tf(r);if(!l)return w.fail();a.immediateTarget=N1(l,!0)}return a.immediateTarget}function Dpt(r,a=0){let l=vb(r);zht(r,l);let f=re?Qs():void 0,m=Qs(),y=[],k=fa;EOe(r);let M=X1(r,void 0),G=M&&M.pattern&&(M.pattern.kind===207||M.pattern.kind===211),J=FN(r),K=J?8:0,be=dn(r)&&!qF(r),he=be?OB(r):void 0,He=!M&&be&&!he,gt=8192,xt=!1,Vt=!1,_r=!1,$r=!1;for(let pr of r.properties)pr.name&&na(pr.name)&&Xd(pr.name);let on=0;for(let pr of r.properties){let pn=wn(pr),si=pr.name&&pr.name.kind===168?Xd(pr.name):void 0;if(pr.kind===304||pr.kind===305||pd(pr)){let $i=pr.kind===304?n8e(pr,a):pr.kind===305?jN(!l&&pr.objectAssignmentInitializer?pr.objectAssignmentInitializer:pr.name,a):i8e(pr,a);if(be){let Rs=$a(pr);Rs?(Ju($i,Rs,pr),$i=Rs):he&&he.typeExpression&&Ju($i,Oi(he.typeExpression),pr)}gt|=jn($i)&458752;let Qn=si&&L_(si)?si:void 0,Pi=Qn?wa(4|pn.flags,W_(Qn),K|4096):wa(4|pn.flags,pn.escapedName,K);if(Qn&&(Pi.links.nameType=Qn),l&&aw(pr))Pi.flags|=16777216;else if(G&&!(jn(M)&512)){let Rs=ca(M,pn.escapedName);Rs?Pi.flags|=Rs.flags&16777216:jh(M,ut)||$e(pr.name,_.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Xi(pn),Yr(M))}if(Pi.declarations=pn.declarations,Pi.parent=pn.parent,pn.valueDeclaration&&(Pi.valueDeclaration=pn.valueDeclaration),Pi.links.type=$i,Pi.links.target=pn,pn=Pi,f?.set(Pi.escapedName,Pi),M&&a&2&&!(a&4)&&(pr.kind===304||pr.kind===175)&&k_(pr)){let Rs=AT(r);w.assert(Rs);let Ya=pr.kind===304?pr.initializer:pr;Dge(Rs,Ya,$i)}}else if(pr.kind===306){W<Jl.ObjectAssign&&Bl(pr,2),y.length>0&&(k=xT(k,dr(),r.symbol,gt,J),y=[],m=Qs(),Vt=!1,_r=!1,$r=!1);let $i=Pd(ts(pr.expression,a&2));if(b9($i)){let Qn=Zme($i,J);if(f&&WOe(Qn,f,pr),on=y.length,rn(k))continue;k=xT(k,Qn,r.symbol,gt,J)}else $e(pr,_.Spread_types_may_only_be_created_from_object_types),k=Ye;continue}else w.assert(pr.kind===178||pr.kind===179),lw(pr);si&&!(si.flags&8576)?$s(si,di)&&($s(si,Qt)?_r=!0:$s(si,Ht)?$r=!0:Vt=!0,l&&(xt=!0)):m.set(pn.escapedName,pn),y.push(pn)}if($3(),rn(k))return Ye;if(k!==fa)return y.length>0&&(k=xT(k,dr(),r.symbol,gt,J),y=[],m=Qs(),Vt=!1,_r=!1),cc(k,pr=>pr===fa?dr():pr);return dr();function dr(){let pr=[],pn=FN(r);Vt&&pr.push(Q3(pn,on,y,ut)),_r&&pr.push(Q3(pn,on,y,Qt)),$r&&pr.push(Q3(pn,on,y,Ht));let si=oc(r.symbol,m,Ke,Ke,pr);return si.objectFlags|=gt|128|131072,He&&(si.objectFlags|=4096),xt&&(si.objectFlags|=512),l&&(si.pattern=r),si}}function b9(r){let a=b3e(cc(r,dg));return!!(a.flags&126615553||a.flags&3145728&&Fi(a.types,b9))}function Ppt(r){fhe(r)}function Apt(r,a){return lw(r),T9(r)||Le}function Ept(r){fhe(r.openingElement),ow(r.closingElement.tagName)?nX(r.closingElement):ts(r.closingElement.tagName),rX(r)}function Npt(r,a){return lw(r),T9(r)||Le}function Mpt(r){fhe(r.openingFragment);let a=Nr(r);E8(O)&&(O.jsxFactory||a.pragmas.has("jsx"))&&!O.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&$e(r,O.jsxFactory?_.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:_.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),rX(r);let l=T9(r);return rn(l)?Le:l}function phe(r){return r.includes("-")}function ow(r){return Be(r)&&Yw(r.escapedText)||lm(r)}function jOe(r,a){return r.initializer?jN(r.initializer,a):ct}function LOe(r,a=0){let l=re?Qs():void 0,f=Qs(),m=Jc,y=!1,k,M=!1,G=2048,J=S9(Rx(r)),K=Wd(r),be,he=r;if(!K){let xt=r.attributes;be=xt.symbol,he=xt;let Vt=Lp(xt,0);for(let _r of xt.properties){let $r=_r.symbol;if(Ym(_r)){let on=jOe(_r,a);G|=jn(on)&458752;let dr=wa(4|$r.flags,$r.escapedName);if(dr.declarations=$r.declarations,dr.parent=$r.parent,$r.valueDeclaration&&(dr.valueDeclaration=$r.valueDeclaration),dr.links.type=on,dr.links.target=$r,f.set(dr.escapedName,dr),l?.set(dr.escapedName,dr),NA(_r.name)===J&&(M=!0),Vt){let pr=ca(Vt,$r.escapedName);pr&&pr.declarations&&vp(pr)&&Be(_r.name)&&wd(_r.name,pr.declarations,_r.name.escapedText)}if(Vt&&a&2&&!(a&4)&&k_(_r)){let pr=AT(xt);w.assert(pr);let pn=_r.initializer.expression;Dge(pr,pn,on)}}else{w.assert(_r.kind===294),f.size>0&&(m=xT(m,gt(),xt.symbol,G,!1),f=Qs());let on=Pd(ts(_r.expression,a&2));xn(on)&&(y=!0),b9(on)?(m=xT(m,on,xt.symbol,G,!1),l&&WOe(on,l,_r)):($e(_r.expression,_.Spread_types_may_only_be_created_from_object_types),k=k?ma([k,on]):on)}}y||f.size>0&&(m=xT(m,gt(),xt.symbol,G,!1))}let He=r.parent;if((Xm(He)&&He.openingElement===r||Q0(He)&&He.openingFragment===r)&&Xw(He.children).length>0){let xt=rX(He,a);if(!y&&J&&J!==""){M&&$e(he,_._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Ai(J));let Vt=cm(r)?X1(r.attributes,void 0):void 0,_r=Vt&&K1(Vt,J),$r=wa(4,J);$r.links.type=xt.length===1?xt[0]:_r&&td(_r,DN)?$g(xt):Gu(ii(xt)),$r.valueDeclaration=A.createPropertySignature(void 0,Ai(J),void 0,void 0),Ka($r.valueDeclaration,he),$r.valueDeclaration.symbol=$r;let on=Qs();on.set(J,$r),m=xT(m,oc(be,on,Ke,Ke,Ke),be,G,!1)}}if(y)return Le;if(k&&m!==Jc)return ma([k,m]);return k||(m===Jc?gt():m);function gt(){return G|=8192,Rpt(G,be,f)}}function Rpt(r,a,l){let f=oc(a,l,Ke,Ke,Ke);return f.objectFlags|=r|8192|128|131072,f}function rX(r,a){let l=[];for(let f of r.children)if(f.kind===12)f.containsOnlyTriviaWhiteSpaces||l.push(ut);else{if(f.kind===295&&!f.expression)continue;l.push(jN(f,a))}return l}function WOe(r,a,l){for(let f of ao(r))if(!(f.flags&16777216)){let m=a.get(f.escapedName);if(m){let y=$e(m.valueDeclaration,_._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Ai(m.escapedName));Xs(y,_n(l,_.This_spread_always_overwrites_this_property))}}}function Opt(r,a){return LOe(r.parent,a)}function ET(r,a){let l=Rx(a),f=l&&Wf(l),m=f&&du(f,r,788968);return m?No(m):Ye}function nX(r){let a=Nn(r);if(!a.resolvedSymbol){let l=ET(u_.IntrinsicElements,r);if(rn(l))return de&&$e(r,_.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Ai(u_.IntrinsicElements)),a.resolvedSymbol=Z;{if(!Be(r.tagName)&&!lm(r.tagName))return w.fail();let f=lm(r.tagName)?N2(r.tagName):r.tagName.escapedText,m=ca(l,f);if(m)return a.jsxFlags|=1,a.resolvedSymbol=m;let y=p7e(l,mf(Ai(f)));return y?(a.jsxFlags|=2,a.resolvedSymbol=y):qn(l,f)?(a.jsxFlags|=2,a.resolvedSymbol=l.symbol):($e(r,_.Property_0_does_not_exist_on_type_1,VG(r.tagName),"JSX."+u_.IntrinsicElements),a.resolvedSymbol=Z)}}return a.resolvedSymbol}function iX(r){let a=r&&Nr(r),l=a&&Nn(a);if(l&&l.jsxImplicitImportContainer===!1)return;if(l&&l.jsxImplicitImportContainer)return l.jsxImplicitImportContainer;let f=N8(J6(O,a),O);if(!f)return;let y=Ku(O)===1?_.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:_.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed,k=hyt(a,f),M=ix(k||r,f,y,r),G=M&&M!==Z?Ja(nl(M)):void 0;return l&&(l.jsxImplicitImportContainer=G||!1),G}function Rx(r){let a=r&&Nn(r);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let f=iX(r);if(!f||f===Z){let m=Gd(r);f=ft(r,m,1920,void 0,!1)}if(f){let m=nl(du(Wf(nl(f)),u_.JSX,1920));if(m&&m!==Z)return a&&(a.jsxNamespace=m),m}a&&(a.jsxNamespace=!1)}let l=nl(jD(u_.JSX,1920,void 0));if(l!==Z)return l}function BOe(r,a){let l=a&&du(a.exports,r,788968),f=l&&No(l),m=f&&ao(f);if(m){if(m.length===0)return"";if(m.length===1)return m[0].escapedName;m.length>1&&l.declarations&&$e(l.declarations[0],_.The_global_type_JSX_0_may_not_have_more_than_one_property,Ai(r))}}function Fpt(r){return r&&du(r.exports,u_.LibraryManagedAttributes,788968)}function jpt(r){return r&&du(r.exports,u_.ElementType,788968)}function Lpt(r){return BOe(u_.ElementAttributesPropertyNameContainer,r)}function S9(r){return O.jsx===4||O.jsx===5?"children":BOe(u_.ElementChildrenAttributeNameContainer,r)}function zOe(r,a){if(r.flags&4)return[Wr];if(r.flags&128){let m=GOe(r,a);return m?[_X(a,m)]:($e(a,_.Property_0_does_not_exist_on_type_1,r.value,"JSX."+u_.IntrinsicElements),Ke)}let l=Sp(r),f=Gs(l,1);return f.length===0&&(f=Gs(l,0)),f.length===0&&l.flags&1048576&&(f=ume(kr(l.types,m=>zOe(m,a)))),f}function GOe(r,a){let l=ET(u_.IntrinsicElements,a);if(!rn(l)){let f=r.value,m=ca(l,gc(f));if(m)return an(m);let y=z1(l,ut);return y||void 0}return Le}function Wpt(r,a,l){if(r===1){let m=VOe(l);m&&Y_(a,m,Lu,l.tagName,_.Its_return_type_0_is_not_a_valid_JSX_element,f)}else if(r===0){let m=UOe(l);m&&Y_(a,m,Lu,l.tagName,_.Its_instance_type_0_is_not_a_valid_JSX_element,f)}else{let m=VOe(l),y=UOe(l);if(!m||!y)return;let k=ii([m,y]);Y_(a,k,Lu,l.tagName,_.Its_element_type_0_is_not_a_valid_JSX_element,f)}function f(){let m=pc(l.tagName);return Ns(void 0,_._0_cannot_be_used_as_a_JSX_component,m)}}function JOe(r){var a;w.assert(ow(r.tagName));let l=Nn(r);if(!l.resolvedJsxElementAttributesType){let f=nX(r);if(l.jsxFlags&1)return l.resolvedJsxElementAttributesType=an(f)||Ye;if(l.jsxFlags&2){let m=lm(r.tagName)?N2(r.tagName):r.tagName.escapedText;return l.resolvedJsxElementAttributesType=((a=XC(ET(u_.IntrinsicElements,r),m))==null?void 0:a.type)||Ye}else return l.resolvedJsxElementAttributesType=Ye}return l.resolvedJsxElementAttributesType}function UOe(r){let a=ET(u_.ElementClass,r);if(!rn(a))return a}function T9(r){return ET(u_.Element,r)}function VOe(r){let a=T9(r);if(a)return ii([a,jt])}function Bpt(r){let a=Rx(r);if(!a)return;let l=jpt(a);if(!l)return;let f=qOe(l,dn(r));if(!(!f||rn(f)))return f}function qOe(r,a,...l){let f=No(r);if(r.flags&524288){let m=Wn(r).typeParameters;if(Dr(m)>=l.length){let y=Ov(l,m,l.length,a);return Dr(y)===0?f:OD(r,y)}}if(Dr(f.typeParameters)>=l.length){let m=Ov(l,f.typeParameters,l.length,a);return Dy(f,m)}}function zpt(r){let a=ET(u_.IntrinsicElements,r);return a?ao(a):Ke}function Gpt(r){(O.jsx||0)===0&&$e(r,_.Cannot_use_JSX_unless_the_jsx_flag_is_provided),T9(r)===void 0&&de&&$e(r,_.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function fhe(r){let a=Qu(r);a&&Ght(r),Gpt(r),Xge(r);let l=qD(r);if(mX(l,r),a){let f=r,m=Bpt(f);if(m!==void 0){let y=f.tagName,k=ow(y)?mf(VG(y)):ts(y);Y_(k,m,Lu,y,_.Its_type_0_is_not_a_valid_JSX_element_type,()=>{let M=pc(y);return Ns(void 0,_._0_cannot_be_used_as_a_JSX_component,M)})}else Wpt(gFe(f),Xa(l),f)}}function sX(r,a,l){if(r.flags&524288&&(bT(r,a)||XC(r,a)||S3(a)&&jh(r,ut)||l&&phe(a)))return!0;if(r.flags&33554432)return sX(r.baseType,a,l);if(r.flags&3145728&&K3(r)){for(let f of r.types)if(sX(f,a,l))return!0}return!1}function K3(r){return!!(r.flags&524288&&!(jn(r)&512)||r.flags&67108864||r.flags&33554432&&K3(r.baseType)||r.flags&1048576&&_t(r.types,K3)||r.flags&2097152&&Fi(r.types,K3))}function Jpt(r,a){if(Uht(r),r.expression){let l=ts(r.expression,a);return r.dotDotDotToken&&l!==Le&&!Z_(l)&&$e(r,_.JSX_spread_child_must_be_an_array_type),l}else return Ye}function _he(r){return r.valueDeclaration?MT(r.valueDeclaration):0}function dhe(r){if(r.flags&8192||Cc(r)&4)return!0;if(dn(r.valueDeclaration)){let a=r.valueDeclaration.parent;return a&&vn(a)&&Hc(a)===3}}function mhe(r,a,l,f,m,y=!0){let k=y?r.kind===167?r.right:r.kind===206?r:r.kind===209&&r.propertyName?r.propertyName:r.name:void 0;return $Oe(r,a,l,f,m,k)}function $Oe(r,a,l,f,m,y){var k;let M=j_(m,l);if(a){if(W<2&&HOe(m))return y&&$e(y,_.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(M&64)return y&&$e(y,_.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Xi(m),Yr(rw(m))),!1;if(!(M&256)&&((k=m.declarations)!=null&&k.some(rte)))return y&&$e(y,_.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,Xi(m)),!1}if(M&64&&HOe(m)&&(r6(r)||rre(r)||o_(r.parent)&&GF(r.parent.parent))){let J=iy(Wl(m));if(J&&Bgt(r))return y&&$e(y,_.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Xi(m),R_(J.name)),!1}if(!(M&6))return!0;if(M&2){let J=iy(Wl(m));return bye(r,J)?!0:(y&&$e(y,_.Property_0_is_private_and_only_accessible_within_class_1,Xi(m),Yr(rw(m))),!1)}if(a)return!0;let G=l7e(r,J=>{let K=No(wn(J));return u3e(K,m,l)});return!G&&(G=Upt(r),G=G&&u3e(G,m,l),M&256||!G)?(y&&$e(y,_.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Xi(m),Yr(rw(m)||f)),!1):M&256?!0:(f.flags&262144&&(f=f.isThisType?jp(f):wu(f)),!f||!On(f,G)?(y&&$e(y,_.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Xi(m),Yr(G),Yr(f)),!1):!0)}function Upt(r){let a=Vpt(r),l=a?.type&&Oi(a.type);if(l)l.flags&262144&&(l=jp(l));else{let f=fp(r,!1,!1);Fs(f)&&(l=rhe(f))}if(l&&jn(l)&7)return Or(l)}function Vpt(r){let a=fp(r,!1,!1);return a&&Fs(a)?IS(a):void 0}function HOe(r){return!!r9(r,a=>!(a.flags&8192))}function UD(r){return hg(ts(r),r)}function k9(r){return wm(r,50331648)}function ghe(r){return k9(r)?Oy(r):r}function qpt(r,a){let l=mo(r)?kf(r):void 0;if(r.kind===106){$e(r,_.The_value_0_cannot_be_used_here,"null");return}if(l!==void 0&&l.length<100){if(Be(r)&&l==="undefined"){$e(r,_.The_value_0_cannot_be_used_here,"undefined");return}$e(r,a&16777216?a&33554432?_._0_is_possibly_null_or_undefined:_._0_is_possibly_undefined:_._0_is_possibly_null,l)}else $e(r,a&16777216?a&33554432?_.Object_is_possibly_null_or_undefined:_.Object_is_possibly_undefined:_.Object_is_possibly_null)}function $pt(r,a){$e(r,a&16777216?a&33554432?_.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:_.Cannot_invoke_an_object_which_is_possibly_undefined:_.Cannot_invoke_an_object_which_is_possibly_null)}function QOe(r,a,l){if(re&&r.flags&2){if(mo(a)){let m=kf(a);if(m.length<100)return $e(a,_._0_is_of_type_unknown,m),Ye}return $e(a,_.Object_is_of_type_unknown),Ye}let f=BD(r,50331648);if(f&50331648){l(a,f);let m=Oy(r);return m.flags&229376?Ye:m}return r}function hg(r,a){return QOe(r,a,qpt)}function KOe(r,a){let l=hg(r,a);if(l.flags&16384){if(mo(a)){let f=kf(a);if(Be(a)&&f==="undefined")return $e(a,_.The_value_0_cannot_be_used_here,f),l;if(f.length<100)return $e(a,_._0_is_possibly_undefined,f),l}$e(a,_.Object_is_possibly_undefined)}return l}function aX(r,a,l){return r.flags&64?Hpt(r,a):yhe(r,r.expression,UD(r.expression),r.name,a,l)}function Hpt(r,a){let l=ts(r.expression),f=W3(l,r.expression);return EK(yhe(r,r.expression,hg(f,r.expression),r.name,a),r,f!==l)}function XOe(r,a){let l=VF(r)&&Sb(r.left)?hg(h9(r.left),r.left):UD(r.left);return yhe(r,r.left,l,r.right,a)}function hhe(r){for(;r.parent.kind===218;)r=r.parent;return Om(r.parent)&&r.parent.expression===r}function x9(r,a){for(let l=BF(a);l;l=cu(l)){let{symbol:f}=l,m=k6(f,r),y=f.members&&f.members.get(m)||f.exports&&f.exports.get(m);if(y)return y}}function Qpt(r){if(!cu(r))return br(r,_.Private_identifiers_are_not_allowed_outside_class_bodies);if(!_7(r.parent)){if(!wg(r))return br(r,_.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);let a=vn(r.parent)&&r.parent.operatorToken.kind===103;if(!oX(r)&&!a)return br(r,_.Cannot_find_name_0,Fn(r))}return!1}function Kpt(r){Qpt(r);let a=oX(r);return a&&w9(a,void 0,!1),Le}function oX(r){if(!wg(r))return;let a=Nn(r);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=x9(r.escapedText,r)),a.resolvedSymbol}function cX(r,a){return ca(r,a.escapedName)}function Xpt(r,a,l){let f,m=ao(r);m&&or(m,k=>{let M=k.valueDeclaration;if(M&&Vl(M)&&zi(M.name)&&M.name.escapedText===a.escapedText)return f=k,!0});let y=ff(a);if(f){let k=w.checkDefined(f.valueDeclaration),M=w.checkDefined(cu(k));if(l?.valueDeclaration){let G=l.valueDeclaration,J=cu(G);if(w.assert(!!J),vr(J,K=>M===K)){let K=$e(a,_.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,y,Yr(r));return Xs(K,_n(G,_.The_shadowing_declaration_of_0_is_defined_here,y),_n(k,_.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,y)),!0}}return $e(a,_.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,y,ff(M.name||IU)),!0}return!1}function YOe(r,a){return(Rh(a)||r6(r)&&Jg(a))&&fp(r,!0,!1)===un(a)}function yhe(r,a,l,f,m,y){let k=Nn(a).resolvedSymbol,M=yb(r),G=Sp(M!==0||hhe(r)?Uf(l):l),J=xn(G)||G===Nt,K;if(zi(f)){(W<Jl.PrivateNamesAndClassStaticBlocks||W<Jl.ClassAndClassElementDecorators||!X)&&(M!==0&&Bl(r,1048576),M!==1&&Bl(r,524288));let he=x9(f.escapedText,f);if(M&&he&&he.valueDeclaration&&hc(he.valueDeclaration)&&br(f,_.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,Fn(f)),J){if(he)return rn(G)?Ye:G;if(BF(f)===void 0)return br(f,_.Private_identifiers_are_not_allowed_outside_class_bodies),Le}if(K=he&&cX(l,he),K===void 0){if(Xpt(l,f,he))return Ye;let He=BF(f);He&&GP(Nr(He),O.checkJs)&&br(f,_.Private_field_0_must_be_declared_in_an_enclosing_class,Fn(f))}else K.flags&65536&&!(K.flags&32768)&&M!==1&&$e(r,_.Private_accessor_was_defined_without_a_getter)}else{if(J)return Be(a)&&k&&sw(r,2,void 0,l),rn(G)?Ye:G;K=ca(G,f.escapedText,vX(G),r.kind===167)}sw(r,2,K,l);let be;if(K){let he=gye(K,f);if(vp(he)&&$me(r,he)&&he.declarations&&wd(f,he.declarations,f.escapedText),Ypt(K,r,f),w9(K,r,aFe(a,k)),Nn(r).resolvedSymbol=K,mhe(r,a.kind===108,k2(r),G,K),HFe(r,K,M))return $e(f,_.Cannot_assign_to_0_because_it_is_a_read_only_property,Fn(f)),Ye;be=YOe(r,K)?kt:y||S8(r)?Nv(K):an(K)}else{let he=!zi(f)&&(M===0||!kx(l)||EA(l))?XC(G,f.escapedText):void 0;if(!(he&&he.type)){let He=vhe(r,l.symbol,!0);return!He&&A3(l)?Le:l.symbol===Ue?(Ue.exports.has(f.escapedText)&&Ue.exports.get(f.escapedText).flags&418?$e(f,_.Property_0_does_not_exist_on_type_1,Ai(f.escapedText),Yr(l)):de&&$e(f,_.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Yr(l)),Le):(f.escapedText&&!Hb(r)&&eFe(f,EA(l)?G:l,He),Ye)}he.isReadonly&&(vb(r)||Rz(r))&&$e(r,_.Index_signature_in_type_0_only_permits_reading,Yr(G)),be=he.type,O.noUncheckedIndexedAccess&&yb(r)!==1&&(be=ii([be,je])),O.noPropertyAccessFromIndexSignature&&Ln(r)&&$e(f,_.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Ai(f.escapedText)),he.declaration&&hm(he.declaration)&&wd(f,[he.declaration],f.escapedText)}return ZOe(r,K,be,f,m)}function vhe(r,a,l){var f;let m=Nr(r);if(m&&O.checkJs===void 0&&m.checkJsDirective===void 0&&(m.scriptKind===1||m.scriptKind===2)){let y=or(a?.declarations,Nr),k=!a?.valueDeclaration||!ni(a.valueDeclaration)||((f=a.valueDeclaration.heritageClauses)==null?void 0:f.length)||Ky(!1,a.valueDeclaration);return!(m!==y&&y&&Qy(y))&&!(l&&a&&a.flags&32&&k)&&!(r&&l&&Ln(r)&&r.expression.kind===110&&k)}return!1}function ZOe(r,a,l,f,m){let y=yb(r);if(y===1)return Fy(l,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&l.flags&1048576)&&!FX(a.declarations))return l;if(l===kt)return ue(r,a);l=Kge(l,r,m);let k=!1;if(re&&oe&&Oo(r)&&r.expression.kind===110){let G=a&&a.valueDeclaration;if(G&&K8e(G)&&!Ks(G)){let J=MN(r);J.kind===177&&J.parent===G.parent&&!(G.flags&33554432)&&(k=!0)}}else re&&a&&a.valueDeclaration&&Ln(a.valueDeclaration)&&f6(a.valueDeclaration)&&MN(r)===MN(a.valueDeclaration)&&(k=!0);let M=jy(r,l,k?_0(l):l);return k&&!WD(l)&&WD(M)?($e(f,_.Property_0_is_used_before_being_assigned,Xi(a)),l):y?Ry(M):M}function Ypt(r,a,l){let{valueDeclaration:f}=r;if(!f||Nr(a).isDeclarationFile)return;let m,y=Fn(l);bhe(a)&&!Dat(f)&&!(Oo(a)&&Oo(a.expression))&&!ky(f,l)&&!(hc(f)&&qX(f)&256)&&(X||!Zpt(r))?m=$e(l,_.Property_0_is_used_before_its_initialization,y):f.kind===264&&a.parent.kind!==184&&!(f.flags&33554432)&&!ky(f,l)&&(m=$e(l,_.Class_0_used_before_its_declaration,y)),m&&Xs(m,_n(f,_._0_is_declared_here,y))}function bhe(r,a){return!!vr(r,l=>{switch(l.kind){case 173:case 176:return!0;case 187:case 288:return"quit";case 220:return a?!1:"quit";case 242:return yo(l.parent)&&l.parent.kind!==220?"quit":!1;default:return!1}})}function Zpt(r){if(!(r.parent.flags&32))return!1;let a=an(r.parent);for(;;){if(a=a.symbol&&eft(a),!a)return!1;let l=ca(a,r.escapedName);if(l&&l.valueDeclaration)return!0}}function eft(r){let a=Qd(r);if(a.length!==0)return ma(a)}function eFe(r,a,l){let f=Nn(r),m=f.nonExistentPropCheckCache||(f.nonExistentPropCheckCache=new Set),y=`${nu(a)}|${l}`;if(m.has(y))return;m.add(y);let k,M;if(!zi(r)&&a.flags&1048576&&!(a.flags&402784252)){for(let J of a.types)if(!ca(J,r.escapedText)&&!XC(J,r.escapedText)){k=Ns(k,_.Property_0_does_not_exist_on_type_1,To(r),Yr(J));break}}if(tFe(r.escapedText,a)){let J=To(r),K=Yr(a);k=Ns(k,_.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,J,K,K+"."+J)}else{let J=oO(a);if(J&&ca(J,r.escapedText))k=Ns(k,_.Property_0_does_not_exist_on_type_1,To(r),Yr(a)),M=_n(r,_.Did_you_forget_to_use_await);else{let K=To(r),be=Yr(a),he=nft(K,a);if(he!==void 0)k=Ns(k,_.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,K,be,he);else{let He=She(r,a);if(He!==void 0){let gt=kc(He),xt=l?_.Property_0_may_not_exist_on_type_1_Did_you_mean_2:_.Property_0_does_not_exist_on_type_1_Did_you_mean_2;k=Ns(k,xt,K,be,gt),M=He.valueDeclaration&&_n(He.valueDeclaration,_._0_is_declared_here,gt)}else{let gt=tft(a)?_.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:_.Property_0_does_not_exist_on_type_1;k=Ns(vme(k,a),gt,K,be)}}}}let G=uh(Nr(r),r,k);M&&Xs(G,M),Ih(!l||k.code!==_.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,G)}function tft(r){return O.lib&&!O.lib.includes("lib.dom.d.ts")&&sut(r,a=>a.symbol&&/^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(Ai(a.symbol.escapedName)))&&My(r)}function tFe(r,a){let l=a.symbol&&ca(an(a.symbol),r);return l!==void 0&&!!l.valueDeclaration&&Ks(l.valueDeclaration)}function rft(r){let a=ff(r),f=oz().get(a);return f&&NW(f.keys())}function nft(r,a){let l=Sp(a).symbol;if(!l)return;let f=kc(l),y=oz().get(f);if(y){for(let[k,M]of y)if(ws(M,r))return k}}function rFe(r,a){return C9(r,ao(a),106500)}function She(r,a){let l=ao(a);if(typeof r!="string"){let f=r.parent;Ln(f)&&(l=Mn(l,m=>oFe(f,a,m))),r=Fn(r)}return C9(r,l,111551)}function nFe(r,a){let l=Is(r)?r:Fn(r),f=ao(a);return(l==="for"?Bn(f,y=>kc(y)==="htmlFor"):l==="class"?Bn(f,y=>kc(y)==="className"):void 0)??C9(l,f,111551)}function iFe(r,a){let l=She(r,a);return l&&kc(l)}function ift(r,a,l){let f=du(r,a,l);if(f)return f;let m;return r===nt?m=Ji(["string","number","boolean","object","bigint","symbol"],k=>r.has(k.charAt(0).toUpperCase()+k.slice(1))?wa(524288,k):void 0).concat(ds(r.values())):m=ds(r.values()),C9(Ai(a),m,l)}function sFe(r,a,l){return w.assert(a!==void 0,"outername should always be defined"),qt(r,a,l,void 0,!1,!1)}function The(r,a){return a.exports&&C9(Fn(r),WC(a),2623475)}function sft(r,a,l){function f(k){let M=bT(r,k);if(M){let G=Fx(an(M));return!!G&&Pm(G)>=1&&$s(l,Dm(G,0))}return!1}let m=vb(a)?"set":"get";if(!f(m))return;let y=M6(a.expression);return y===void 0?y=m:y+="."+m,y}function aft(r,a){let l=a.types.filter(f=>!!(f.flags&128));return pS(r.value,l,f=>f.value)}function C9(r,a,l){return pS(r,a,f);function f(m){let y=kc(m);if(!Zi(y,'"')){if(m.flags&l)return y;if(m.flags&2097152){let k=OC(m);if(k&&k.flags&l)return y}}}}function w9(r,a,l){let f=r&&r.flags&106500&&r.valueDeclaration;if(!f)return;let m=If(f,2),y=r.valueDeclaration&&Vl(r.valueDeclaration)&&zi(r.valueDeclaration.name);if(!(!m&&!y)&&!(a&&S8(a)&&!(r.flags&65536))){if(l){let k=vr(a,yo);if(k&&k.symbol===r)return}(Cc(r)&1?Wn(r).target:r).isReferenced=-1}}function aFe(r,a){return r.kind===110||!!a&&mo(r)&&a===sp(wp(r))}function oft(r,a){switch(r.kind){case 212:return khe(r,r.expression.kind===108,a,Uf(ts(r.expression)));case 167:return khe(r,!1,a,Uf(ts(r.left)));case 206:return khe(r,!1,a,Oi(r))}}function oFe(r,a,l){return xhe(r,r.kind===212&&r.expression.kind===108,!1,a,l)}function khe(r,a,l,f){if(xn(f))return!0;let m=ca(f,l);return!!m&&xhe(r,a,!1,f,m)}function xhe(r,a,l,f,m){if(xn(f))return!0;if(m.valueDeclaration&&Hu(m.valueDeclaration)){let y=cu(m.valueDeclaration);return!$u(r)&&!!vr(r,k=>k===y)}return $Oe(r,a,l,f,m)}function cft(r){let a=r.initializer;if(a.kind===262){let l=a.declarations[0];if(l&&!Ls(l.name))return wn(l)}else if(a.kind===80)return sp(a)}function lft(r){return zu(r).length===1&&!!jh(r,Qt)}function uft(r){let a=Qa(r);if(a.kind===80){let l=sp(a);if(l.flags&3){let f=r,m=r.parent;for(;m;){if(m.kind===250&&f===m.statement&&cft(m)===l&&lft(Du(m.expression)))return!0;f=m,m=m.parent}}}return!1}function pft(r,a){return r.flags&64?fft(r,a):cFe(r,UD(r.expression),a)}function fft(r,a){let l=ts(r.expression),f=W3(l,r.expression);return EK(cFe(r,hg(f,r.expression),a),r,f!==l)}function cFe(r,a,l){let f=yb(r)!==0||hhe(r)?Uf(a):a,m=r.argumentExpression,y=ts(m);if(rn(f)||f===Nt)return f;if(vX(f)&&!Ha(m))return $e(m,_.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Ye;let k=uft(m)?Qt:y,M=yb(r),G;M===0?G=32:(G=4|(kx(f)&&!EA(f)?2:0),M===2&&(G|=32));let J=l0(f,k,G,r)||Ye;return h8e(ZOe(r,Nn(r).resolvedSymbol,J,m,l),r)}function lFe(r){return Om(r)||U0(r)||Qu(r)}function Ox(r){return lFe(r)&&or(r.typeArguments,va),r.kind===216?ts(r.template):Qu(r)?ts(r.attributes):vn(r)?ts(r.left):Om(r)&&or(r.arguments,a=>{ts(a)}),Wr}function Im(r){return Ox(r),Yn}function _ft(r,a,l){let f,m,y=0,k,M=-1,G;w.assert(!a.length);for(let J of r){let K=J.declaration&&wn(J.declaration),be=J.declaration&&J.declaration.parent;!m||K===m?f&&be===f?k=k+1:(f=be,k=y):(k=y=a.length,f=be),m=K,nTe(J)?(M++,G=M,y++):G=k,a.splice(G,0,l?Kst(J,l):J)}}function lX(r){return!!r&&(r.kind===231||r.kind===238&&r.isSpread)}function Che(r){return Tc(r,lX)}function uFe(r){return!!(r.flags&16384)}function dft(r){return!!(r.flags&49155)}function uX(r,a,l,f=!1){if(Wd(r))return!0;let m,y=!1,k=hf(l),M=Pm(l);if(r.kind===216)if(m=a.length,r.template.kind===229){let G=ka(r.template.templateSpans);y=xc(G.literal)||!!G.literal.isUnterminated}else{let G=r.template;w.assert(G.kind===15),y=!!G.isUnterminated}else if(r.kind===171)m=yFe(r,l);else if(r.kind===227)m=1;else if(Qu(r)){if(y=r.attributes.end===r.end,y)return!0;m=M===0?a.length:1,k=a.length===0?k:1,M=Math.min(M,1)}else if(r.arguments){m=f?a.length+1:a.length,y=r.arguments.end===r.end;let G=Che(a);if(G>=0)return G>=Pm(l)&&(Qg(l)||G<hf(l))}else return w.assert(r.kind===215),Pm(l)===0;if(!Qg(l)&&m>k)return!1;if(y||m>=M)return!0;for(let G=m;G<M;G++){let J=Dm(l,G);if(pl(J,dn(r)&&!re?dft:uFe).flags&131072)return!1}return!0}function whe(r,a){let l=Dr(r.typeParameters),f=qg(r.typeParameters);return!_t(a)||a.length>=f&&a.length<=l}function pFe(r,a){let l;return!!(r.target&&(l=NT(r.target,a))&&U1(l))}function Fx(r){return X3(r,0,!1)}function fFe(r){return X3(r,0,!1)||X3(r,1,!1)}function X3(r,a,l){if(r.flags&524288){let f=km(r);if(l||f.properties.length===0&&f.indexInfos.length===0){if(a===0&&f.callSignatures.length===1&&f.constructSignatures.length===0)return f.callSignatures[0];if(a===1&&f.constructSignatures.length===1&&f.callSignatures.length===0)return f.constructSignatures[0]}}}function _Fe(r,a,l,f){let m=G3(j4e(r),r,0,f),y=eO(a),k=l&&(y&&y.flags&262144?l.nonFixingMapper:l.mapper),M=k?wx(a,k):a;return Cge(M,r,(G,J)=>{zh(m.inferences,G,J)}),l||wge(a,r,(G,J)=>{zh(m.inferences,G,J,128)}),I3(r,Lge(m),dn(a.declaration))}function mft(r,a,l,f){let m=ZK(a,r),y=$D(r.attributes,m,f,l);return zh(f.inferences,y,m),Lge(f)}function dFe(r){if(!r)return hr;let a=ts(r);return Lre(r)?a:NP(r.parent)?Oy(a):$u(r.parent)?AK(a):a}function Ihe(r,a,l,f,m){if(Qu(r))return mft(r,a,f,m);if(r.kind!==171&&r.kind!==227){let G=Fi(a.typeParameters,K=>!!ST(K)),J=Lp(r,G?8:0);if(J){let K=Xa(a);if(d0(K)){let be=AT(r);if(!(!G&&Lp(r,8)!==J)){let xt=Age(x3e(be,1)),Vt=qi(J,xt),_r=Fx(Vt),$r=_r&&_r.typeParameters?vx(Cme(_r,_r.typeParameters)):Vt;zh(m.inferences,$r,K,128)}let He=G3(a.typeParameters,a,m.flags),gt=qi(J,be&&dct(be));zh(He.inferences,gt,K),m.returnMapper=_t(He.inferences,HD)?Age(xlt(He)):void 0}}}let y=tO(a),k=y?Math.min(hf(a)-1,l.length):l.length;if(y&&y.flags&262144){let G=Bn(m.inferences,J=>J.typeParameter===y);G&&(G.impliedArity=Tc(l,lX,k)<0?l.length-k:void 0)}let M=G1(a);if(M&&d0(M)){let G=hFe(r);zh(m.inferences,dFe(G),M)}for(let G=0;G<k;G++){let J=l[G];if(J.kind!==233){let K=Dm(a,G);if(d0(K)){let be=$D(J,K,m,f);zh(m.inferences,be,K)}}}if(y&&d0(y)){let G=Dhe(l,k,l.length,y,m,f);zh(m.inferences,G,y)}return Lge(m)}function mFe(r){return r.flags&1048576?cc(r,mFe):r.flags&1||i9(wu(r)||r)?r:Aa(r)?$g(kT(r),r.target.elementFlags,!1,r.target.labeledElementDeclarations):$g([r],[8])}function Dhe(r,a,l,f,m,y){let k=yx(f);if(a>=l-1){let K=r[l-1];if(lX(K)){let be=K.kind===238?K.type:$D(K.expression,f,m,y);return Lv(be)?mFe(be):Gu(Bv(33,be,fe,K.kind===231?K.expression:K),k)}}let M=[],G=[],J=[];for(let K=a;K<l;K++){let be=r[K];if(lX(be)){let he=be.kind===238?be.type:ts(be.expression);Lv(he)?(M.push(he),G.push(8)):(M.push(Bv(33,he,fe,be.kind===231?be.expression:be)),G.push(4))}else{let he=Aa(f)?lhe(f,K-a,l-a)||wt:Gf(f,xm(K-a),256),He=$D(be,he,m,y),gt=k||Vc(he,406978556);M.push(gt?Tp(He):H1(He)),G.push(1)}be.kind===238&&be.tupleNameSource?J.push(be.tupleNameSource):J.push(void 0)}return $g(M,G,k&&!td(f,vge),J)}function Phe(r,a,l,f){let m=dn(r.declaration),y=r.typeParameters,k=Ov(kr(a,Oi),y,qg(y),m),M;for(let G=0;G<a.length;G++){w.assert(y[G]!==void 0,"Should not call checkTypeArguments with too many type arguments");let J=jp(y[G]);if(J){let K=l&&f?()=>Ns(void 0,_.Type_0_does_not_satisfy_the_constraint_1):void 0,be=f||_.Type_0_does_not_satisfy_the_constraint_1;M||(M=Jf(y,k));let he=k[G];if(!Ju(he,zf(qi(J,M),he),l?a[G]:void 0,be,K))return}}return k}function gFe(r){if(ow(r.tagName))return 2;let a=Sp(ts(r.tagName));return Dr(Gs(a,1))?0:Dr(Gs(a,0))?1:2}function gft(r,a,l,f,m,y,k){let M=ZK(a,r),G=Wd(r)?LOe(r):$D(r.attributes,M,void 0,f),J=f&4?z3(G):G;return K()&&lge(J,M,l,m?Wd(r)?r:r.tagName:void 0,Wd(r)?void 0:r.attributes,void 0,y,k);function K(){var be;if(iX(r))return!0;let he=(cm(r)||kk(r))&&!(ow(r.tagName)||lm(r.tagName))?ts(r.tagName):void 0;if(!he)return!0;let He=Gs(he,0);if(!Dr(He))return!0;let gt=Cye(r);if(!gt)return!0;let xt=Pc(gt,111551,!0,!1,r);if(!xt)return!0;let Vt=an(xt),_r=Gs(Vt,0);if(!Dr(_r))return!0;let $r=!1,on=0;for(let pr of _r){let pn=Dm(pr,0),si=Gs(pn,0);if(Dr(si))for(let $i of si){if($r=!0,Qg($i))return!0;let Qn=hf($i);Qn>on&&(on=Qn)}}if(!$r)return!0;let dr=1/0;for(let pr of He){let pn=Pm(pr);pn<dr&&(dr=pn)}if(dr<=on)return!0;if(m){let pr=r.tagName,pn=_n(pr,_.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,kf(pr),dr,kf(gt),on),si=(be=rd(pr))==null?void 0:be.valueDeclaration;si&&Xs(pn,_n(si,_._0_is_declared_here,kf(pr))),k&&k.skipLogging&&(k.errors||(k.errors=[])).push(pn),k.skipLogging||Ba.add(pn)}return!1}}function pX(r){let a=dn(r)?-2147483615:33;return Nc(r,a)}function I9(r,a,l,f,m,y,k){let M={errors:void 0,skipLogging:!0};if(gte(r))return gft(r,l,f,m,y,k,M)?void 0:(w.assert(!y||!!M.errors,"jsx should have errors when reporting errors"),M.errors||Ke);let G=G1(l);if(G&&G!==hr&&!(WS(r)||Ws(r)&&of(r.expression))){let He=hFe(r),gt=dFe(He),xt=y?He||r:void 0,Vt=_.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!Y_(gt,G,f,xt,Vt,k,M))return w.assert(!y||!!M.errors,"this parameter should have errors when reporting errors"),M.errors||Ke}let J=_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,K=tO(l),be=K?Math.min(hf(l)-1,a.length):a.length;for(let He=0;He<be;He++){let gt=a[He];if(gt.kind!==233){let xt=Dm(l,He),Vt=$D(gt,xt,void 0,m),_r=m&4?z3(Vt):Vt,$r=pX(gt);if(!lge(_r,xt,f,y?$r:void 0,$r,J,k,M))return w.assert(!y||!!M.errors,"parameter should have errors when reporting errors"),he(gt,_r,xt),M.errors||Ke}}if(K){let He=Dhe(a,be,a.length,K,void 0,m),gt=a.length-be,xt=y?gt===0?r:gt===1?pX(a[be]):om(Y3(r,He),a[be].pos,a[a.length-1].end):void 0;if(!Y_(He,K,f,xt,J,void 0,M))return w.assert(!y||!!M.errors,"rest parameter should have errors when reporting errors"),he(xt,He,K),M.errors||Ke}return;function he(He,gt,xt){if(He&&y&&M.errors&&M.errors.length){if(LN(xt))return;let Vt=LN(gt);Vt&&gg(Vt,xt,f)&&Xs(M.errors[0],_n(He,_.Did_you_forget_to_use_await))}}}function hFe(r){if(r.kind===227)return r.right;let a=r.kind===214?r.expression:r.kind===216?r.tag:r.kind===171&&!$?r.expression:void 0;if(a){let l=Nc(a);if(Oo(l))return l.expression}}function Y3(r,a,l,f){let m=Z0.createSyntheticExpression(a,l,f);return mt(m,r),Ka(m,r),m}function fX(r){if(Wd(r))return[Y3(r,d_)];if(r.kind===216){let f=r.template,m=[Y3(f,Vat())];return f.kind===229&&or(f.templateSpans,y=>{m.push(y.expression)}),m}if(r.kind===171)return hft(r);if(r.kind===227)return[r.left];if(Qu(r))return r.attributes.properties.length>0||cm(r)&&r.parent.children.length>0?[r.attributes]:Ke;let a=r.arguments||Ke,l=Che(a);if(l>=0){let f=a.slice(0,l);for(let m=l;m<a.length;m++){let y=a[m],k=y.kind===231&&(zr?ts(y.expression):Ac(y.expression));k&&Aa(k)?or(kT(k),(M,G)=>{var J;let K=k.target.elementFlags[G],be=Y3(y,K&4?Gu(M):M,!!(K&12),(J=k.target.labeledElementDeclarations)==null?void 0:J[G]);f.push(be)}):f.push(y)}return f}return a}function hft(r){let a=r.expression,l=Ghe(r);if(l){let f=[];for(let m of l.parameters){let y=an(m);f.push(Y3(a,y))}return f}return w.fail()}function yFe(r,a){return O.experimentalDecorators?yft(r,a):Math.min(Math.max(hf(a),1),2)}function yft(r,a){switch(r.parent.kind){case 264:case 232:return 1;case 173:return Gm(r.parent)?3:2;case 175:case 178:case 179:return a.parameters.length<=2?2:3;case 170:return 3;default:return w.fail()}}function vFe(r){let a=Nr(r),{start:l,length:f}=ZT(a,Ln(r.expression)?r.expression.name:r.expression);return{start:l,length:f,sourceFile:a}}function Z3(r,a,...l){if(Ws(r)){let{sourceFile:f,start:m,length:y}=vFe(r);return"message"in a?wl(f,m,y,a,...l):yz(f,a)}else return"message"in a?_n(r,a,...l):uh(Nr(r),r,a)}function vft(r){return Om(r)?Ln(r.expression)?r.expression.name:r.expression:U0(r)?Ln(r.tag)?r.tag.name:r.tag:Qu(r)?r.tagName:r}function bft(r){if(!Ws(r)||!Be(r.expression))return!1;let a=ft(r.expression,r.expression.escapedText,111551,void 0,!1),l=a?.valueDeclaration;if(!l||!Gi(l)||!Cb(l.parent)||!WS(l.parent.parent)||!Be(l.parent.parent.expression))return!1;let f=Rme(!1);return f?rd(l.parent.parent.expression,!0)===f:!1}function bFe(r,a,l,f){var m;let y=Che(l);if(y>-1)return _n(l[y],_.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let k=Number.POSITIVE_INFINITY,M=Number.NEGATIVE_INFINITY,G=Number.NEGATIVE_INFINITY,J=Number.POSITIVE_INFINITY,K;for(let xt of a){let Vt=Pm(xt),_r=hf(xt);Vt<k&&(k=Vt,K=xt),M=Math.max(M,_r),Vt<l.length&&Vt>G&&(G=Vt),l.length<_r&&_r<J&&(J=_r)}let be=_t(a,Qg),he=be?k:k<M?k+"-"+M:k,He=!be&&he===1&&l.length===0&&bft(r);if(He&&dn(r))return Z3(r,_.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);let gt=Il(r)?be?_.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:_.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:be?_.Expected_at_least_0_arguments_but_got_1:He?_.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:_.Expected_0_arguments_but_got_1;if(k<l.length&&l.length<M){if(f){let xt=Ns(void 0,_.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,l.length,G,J);return xt=Ns(xt,f),Z3(r,xt)}return Z3(r,_.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,l.length,G,J)}else if(l.length<k){let xt;if(f){let _r=Ns(void 0,gt,he,l.length);_r=Ns(_r,f),xt=Z3(r,_r)}else xt=Z3(r,gt,he,l.length);let Vt=(m=K?.declaration)==null?void 0:m.parameters[K.thisParameter?l.length+1:l.length];if(Vt){let _r=Ls(Vt.name)?[_.An_argument_matching_this_binding_pattern_was_not_provided]:kg(Vt)?[_.Arguments_for_the_rest_parameter_0_were_not_provided,Fn(wp(Vt.name))]:[_.An_argument_for_0_was_not_provided,Vt.name?Fn(wp(Vt.name)):l.length],$r=_n(Vt,..._r);return Xs(xt,$r)}return xt}else{let xt=A.createNodeArray(l.slice(M)),Vt=Ra(xt).pos,_r=ka(xt).end;if(_r===Vt&&_r++,om(xt,Vt,_r),f){let $r=Ns(void 0,gt,he,l.length);return $r=Ns($r,f),QM(Nr(r),xt,$r)}return Ww(Nr(r),xt,gt,he,l.length)}}function Sft(r,a,l,f){let m=l.length;if(a.length===1){let M=a[0],G=qg(M.typeParameters),J=Dr(M.typeParameters);if(f){let K=Ns(void 0,_.Expected_0_type_arguments_but_got_1,G<J?G+"-"+J:G,m);return K=Ns(K,f),QM(Nr(r),l,K)}return Ww(Nr(r),l,_.Expected_0_type_arguments_but_got_1,G<J?G+"-"+J:G,m)}let y=-1/0,k=1/0;for(let M of a){let G=qg(M.typeParameters),J=Dr(M.typeParameters);G>m?k=Math.min(k,G):J<m&&(y=Math.max(y,J))}if(y!==-1/0&&k!==1/0){if(f){let M=Ns(void 0,_.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,m,y,k);return M=Ns(M,f),QM(Nr(r),l,M)}return Ww(Nr(r),l,_.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,m,y,k)}if(f){let M=Ns(void 0,_.Expected_0_type_arguments_but_got_1,y===-1/0?k:y,m);return M=Ns(M,f),QM(Nr(r),l,M)}return Ww(Nr(r),l,_.Expected_0_type_arguments_but_got_1,y===-1/0?k:y,m)}function VD(r,a,l,f,m,y){let k=r.kind===216,M=r.kind===171,G=Qu(r),J=Wd(r),K=r.kind===227,be=!P&&!l,he,He,gt,xt,Vt=0,_r=[],$r;if(!M&&!K&&!ek(r)&&!J&&($r=r.typeArguments,(k||G||r.expression.kind!==108)&&or($r,va)),_r=l||[],_ft(a,_r,m),!J&&!_r.length)return be&&Ba.add(Z3(r,_.Call_target_does_not_contain_any_signatures)),Im(r);let on=fX(r),dr=_r.length===1&&!_r[0].typeParameters;!M&&!dr&&_t(on,k_)&&(Vt=4);let pr=!!(f&16)&&r.kind===214&&r.arguments.hasTrailingComma;_r.length>1&&(xt=$i(_r,Lg,dr,pr)),xt||(xt=$i(_r,Lu,dr,pr));let pn=Nn(r);if(pn.resolvedSignature!==hn&&!l)return w.assert(pn.resolvedSignature),pn.resolvedSignature;if(xt)return xt;if(xt=Tft(r,_r,on,!!l,f),pn.resolvedSignature=xt,be){if(!y&&K&&(y=_.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),he)if(he.length===1||he.length>3){let Qn=he[he.length-1],Pi;he.length>3&&(Pi=Ns(Pi,_.The_last_overload_gave_the_following_error),Pi=Ns(Pi,_.No_overload_matches_this_call)),y&&(Pi=Ns(Pi,y));let Rs=I9(r,on,Qn,Lu,0,!0,()=>Pi);if(Rs)for(let Ya of Rs)Qn.declaration&&he.length>3&&Xs(Ya,_n(Qn.declaration,_.The_last_overload_is_declared_here)),si(Qn,Ya),Ba.add(Ya);else w.fail("No error for last overload signature")}else{let Qn=[],Pi=0,Rs=Number.MAX_VALUE,Ya=0,es=0;for(let Kr of he){let cn=I9(r,on,Kr,Lu,0,!0,()=>Ns(void 0,_.Overload_0_of_1_2_gave_the_following_error,es+1,_r.length,i0(Kr)));cn?(cn.length<=Rs&&(Rs=cn.length,Ya=es),Pi=Math.max(Pi,cn.length),Qn.push(cn)):w.fail("No error for 3 or fewer overload signatures"),es++}let Zo=Pi>1?Qn[Ya]:ad(Qn);w.assert(Zo.length>0,"No errors reported for 3 or fewer overload signatures");let jc=Ns(kr(Zo,Bte),_.No_overload_matches_this_call);y&&(jc=Ns(jc,y));let ap=[...Ma(Zo,Kr=>Kr.relatedInformation)],Lr;if(Fi(Zo,Kr=>Kr.start===Zo[0].start&&Kr.length===Zo[0].length&&Kr.file===Zo[0].file)){let{file:Kr,start:Ni,length:cn}=Zo[0];Lr={file:Kr,start:Ni,length:cn,code:jc.code,category:jc.category,messageText:jc,relatedInformation:ap}}else Lr=uh(Nr(r),vft(r),jc,ap);si(he[0],Lr),Ba.add(Lr)}else if(He)Ba.add(bFe(r,[He],on,y));else if(gt)Phe(gt,r.typeArguments,!0,y);else if(!J){let Qn=Mn(a,Pi=>whe(Pi,$r));Qn.length===0?Ba.add(Sft(r,a,$r,y)):Ba.add(bFe(r,Qn,on,y))}}return xt;function si(Qn,Pi){var Rs,Ya;let es=he,Zo=He,jc=gt,ap=((Ya=(Rs=Qn.declaration)==null?void 0:Rs.symbol)==null?void 0:Ya.declarations)||Ke,Kr=ap.length>1?Bn(ap,Ni=>yo(Ni)&&ud(Ni.body)):void 0;if(Kr){let Ni=T_(Kr),cn=!Ni.typeParameters;$i([Ni],Lu,cn)&&Xs(Pi,_n(Kr,_.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}he=es,He=Zo,gt=jc}function $i(Qn,Pi,Rs,Ya=!1){if(he=void 0,He=void 0,gt=void 0,Rs){let es=Qn[0];if(_t($r)||!uX(r,on,es,Ya))return;if(I9(r,on,es,Pi,0,!1,void 0)){he=[es];return}return es}for(let es=0;es<Qn.length;es++){let Zo=Qn[es];if(!whe(Zo,$r)||!uX(r,on,Zo,Ya))continue;let jc,ap;if(Zo.typeParameters){let Lr;if(_t($r)){if(Lr=Phe(Zo,$r,!1),!Lr){gt=Zo;continue}}else ap=G3(Zo.typeParameters,Zo,dn(r)?2:0),Lr=Ihe(r,Zo,on,Vt|8,ap),Vt|=ap.flags&4?8:0;if(jc=I3(Zo,Lr,dn(Zo.declaration),ap&&ap.inferredTypeParameters),tO(Zo)&&!uX(r,on,jc,Ya)){He=jc;continue}}else jc=Zo;if(I9(r,on,jc,Pi,Vt,!1,void 0)){(he||(he=[])).push(jc);continue}if(Vt){if(Vt=0,ap){let Lr=Ihe(r,Zo,on,Vt,ap);if(jc=I3(Zo,Lr,dn(Zo.declaration),ap.inferredTypeParameters),tO(Zo)&&!uX(r,on,jc,Ya)){He=jc;continue}}if(I9(r,on,jc,Pi,Vt,!1,void 0)){(he||(he=[])).push(jc);continue}}return Qn[es]=jc,jc}}}function Tft(r,a,l,f,m){return w.assert(a.length>0),lw(r),f||a.length===1||a.some(y=>!!y.typeParameters)?Cft(r,a,l,m):kft(a)}function kft(r){let a=Ji(r,G=>G.thisParameter),l;a.length&&(l=SFe(a,a.map(A9)));let{min:f,max:m}=bne(r,xft),y=[];for(let G=0;G<m;G++){let J=Ji(r,K=>Zu(K)?G<K.parameters.length-1?K.parameters[G]:ka(K.parameters):G<K.parameters.length?K.parameters[G]:void 0);w.assert(J.length!==0),y.push(SFe(J,Ji(r,K=>NT(K,G))))}let k=Ji(r,G=>Zu(G)?ka(G.parameters):void 0),M=128;if(k.length!==0){let G=Gu(ii(Ji(r,F4e),2));y.push(TFe(k,G)),M|=1}return r.some(nTe)&&(M|=2),_g(r[0].declaration,void 0,l,y,ma(r.map(Xa)),void 0,f,M)}function xft(r){let a=r.parameters.length;return Zu(r)?a-1:a}function SFe(r,a){return TFe(r,ii(a,2))}function TFe(r,a){return Dx(Ra(r),a)}function Cft(r,a,l,f){let m=Dft(a,Qe===void 0?l.length:Qe),y=a[m],{typeParameters:k}=y;if(!k)return y;let M=lFe(r)?r.typeArguments:void 0,G=M?ZQ(y,wft(M,k,dn(r))):Ift(r,k,y,l,f);return a[m]=G,G}function wft(r,a,l){let f=r.map(uw);for(;f.length>a.length;)f.pop();for(;f.length<a.length;)f.push(ST(a[f.length])||jp(a[f.length])||jge(l));return f}function Ift(r,a,l,f,m){let y=G3(a,l,dn(r)?2:0),k=Ihe(r,l,f,m|4|8,y);return ZQ(l,k)}function Dft(r,a){let l=-1,f=-1;for(let m=0;m<r.length;m++){let y=r[m],k=hf(y);if(Qg(y)||k>=a)return m;k>f&&(f=k,l=m)}return l}function Pft(r,a,l){if(r.expression.kind===108){let G=HK(r.expression);if(xn(G)){for(let J of r.arguments)ts(J);return Wr}if(!rn(G)){let J=im(cu(r));if(J){let K=Oh(G,J.typeArguments,J);return VD(r,K,a,l,0)}}return Ox(r)}let f,m=ts(r.expression);if(qT(r)){let G=W3(m,r.expression);f=G===m?0:MP(r)?16:8,m=G}else f=0;if(m=QOe(m,r.expression,$pt),m===Nt)return Rr;let y=Sp(m);if(rn(y))return Im(r);let k=Gs(y,0),M=Gs(y,1).length;if(D9(m,y,k.length,M))return!rn(m)&&r.typeArguments&&$e(r,_.Untyped_function_calls_may_not_accept_type_arguments),Ox(r);if(!k.length){if(M)$e(r,_.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Yr(m));else{let G;if(r.arguments.length===1){let J=Nr(r).text;qu(J.charCodeAt(ha(J,r.expression.end,!0)-1))&&(G=_n(r.expression,_.Are_you_missing_a_semicolon))}Ehe(r.expression,y,0,G)}return Im(r)}return l&8&&!r.typeArguments&&k.some(Aft)?(a8e(r,l),hn):k.some(G=>dn(G.declaration)&&!!MB(G.declaration))?($e(r,_.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Yr(m)),Im(r)):VD(r,k,a,l,f)}function Aft(r){return!!(r.typeParameters&&kye(Xa(r)))}function D9(r,a,l,f){return xn(r)||xn(a)&&!!(r.flags&262144)||!l&&!f&&!(a.flags&1048576)&&!(Pd(a).flags&131072)&&$s(r,Vr)}function Eft(r,a,l){let f=UD(r.expression);if(f===Nt)return Rr;if(f=Sp(f),rn(f))return Im(r);if(xn(f))return r.typeArguments&&$e(r,_.Untyped_function_calls_may_not_accept_type_arguments),Ox(r);let m=Gs(f,1);if(m.length){if(!Nft(r,m[0]))return Im(r);if(kFe(m,M=>!!(M.flags&4)))return $e(r,_.Cannot_create_an_instance_of_an_abstract_class),Im(r);let k=f.symbol&&iy(f.symbol);return k&&ri(k,64)?($e(r,_.Cannot_create_an_instance_of_an_abstract_class),Im(r)):VD(r,m,a,l,0)}let y=Gs(f,0);if(y.length){let k=VD(r,y,a,l,0);return de||(k.declaration&&!yg(k.declaration)&&Xa(k)!==hr&&$e(r,_.Only_a_void_function_can_be_called_with_the_new_keyword),G1(k)===hr&&$e(r,_.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),k}return Ehe(r.expression,f,1),Im(r)}function kFe(r,a){return gs(r)?_t(r,l=>kFe(l,a)):r.compositeKind===1048576?_t(r.compositeSignatures,a):a(r)}function Ahe(r,a){let l=Qd(a);if(!Dr(l))return!1;let f=l[0];if(f.flags&2097152){let m=f.types,y=g4e(m),k=0;for(let M of f.types){if(!y[k]&&jn(M)&3&&(M.symbol===r||Ahe(r,M)))return!0;k++}return!1}return f.symbol===r?!0:Ahe(r,f)}function Nft(r,a){if(!a||!a.declaration)return!0;let l=a.declaration,f=b2(l,6);if(!f||l.kind!==177)return!0;let m=iy(l.parent.symbol),y=No(l.parent.symbol);if(!bye(r,m)){let k=cu(r);if(k&&f&4){let M=uw(k);if(Ahe(l.parent.symbol,M))return!0}return f&2&&$e(r,_.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Yr(y)),f&4&&$e(r,_.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Yr(y)),!1}return!0}function xFe(r,a,l){let f,m=l===0,y=cw(a),k=y&&Gs(y,l).length>0;if(a.flags&1048576){let G=a.types,J=!1;for(let K of G)if(Gs(K,l).length!==0){if(J=!0,f)break}else if(f||(f=Ns(f,m?_.Type_0_has_no_call_signatures:_.Type_0_has_no_construct_signatures,Yr(K)),f=Ns(f,m?_.Not_all_constituents_of_type_0_are_callable:_.Not_all_constituents_of_type_0_are_constructable,Yr(a))),J)break;J||(f=Ns(void 0,m?_.No_constituent_of_type_0_is_callable:_.No_constituent_of_type_0_is_constructable,Yr(a))),f||(f=Ns(f,m?_.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:_.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Yr(a)))}else f=Ns(f,m?_.Type_0_has_no_call_signatures:_.Type_0_has_no_construct_signatures,Yr(a));let M=m?_.This_expression_is_not_callable:_.This_expression_is_not_constructable;if(Ws(r.parent)&&r.parent.arguments.length===0){let{resolvedSymbol:G}=Nn(r);G&&G.flags&32768&&(M=_.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Ns(f,M),relatedMessage:k?_.Did_you_forget_to_use_await:void 0}}function Ehe(r,a,l,f){let{messageChain:m,relatedMessage:y}=xFe(r,a,l),k=uh(Nr(r),r,m);if(y&&Xs(k,_n(r,y)),Ws(r.parent)){let{start:M,length:G}=vFe(r.parent);k.start=M,k.length=G}Ba.add(k),CFe(a,l,f?Xs(k,f):k)}function CFe(r,a,l){if(!r.symbol)return;let f=Wn(r.symbol).originatingImport;if(f&&!Up(f)){let m=Gs(an(Wn(r.symbol).target),a);if(!m||!m.length)return;Xs(l,_n(f,_.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function Mft(r,a,l){let f=ts(r.tag),m=Sp(f);if(rn(m))return Im(r);let y=Gs(m,0),k=Gs(m,1).length;if(D9(f,m,y.length,k))return Ox(r);if(!y.length){if(Tu(r.parent)){let M=_n(r.tag,_.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return Ba.add(M),Im(r)}return Ehe(r.tag,m,0),Im(r)}return VD(r,y,a,l,0)}function Rft(r){switch(r.parent.kind){case 264:case 232:return _.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 170:return _.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 173:return _.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 175:case 178:case 179:return _.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return w.fail()}}function Oft(r,a,l){let f=ts(r.expression),m=Sp(f);if(rn(m))return Im(r);let y=Gs(m,0),k=Gs(m,1).length;if(D9(f,m,y.length,k))return Ox(r);if(Lft(r,y)&&!Pp(r.expression)){let G=pc(r.expression,!1);return $e(r,_._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,G),Im(r)}let M=Rft(r);if(!y.length){let G=xFe(r.expression,m,0),J=Ns(G.messageChain,M),K=uh(Nr(r.expression),r.expression,J);return G.relatedMessage&&Xs(K,_n(r.expression,G.relatedMessage)),Ba.add(K),CFe(m,0,K),Im(r)}return VD(r,y,a,l,0,M)}function _X(r,a){let l=Rx(r),f=l&&Wf(l),m=f&&du(f,u_.Element,788968),y=m&&ge.symbolToEntityName(m,788968,r),k=A.createFunctionTypeNode(void 0,[A.createParameterDeclaration(void 0,void 0,"props",void 0,ge.typeToTypeNode(a,r))],y?A.createTypeReferenceNode(y,void 0):A.createKeywordTypeNode(133)),M=wa(1,"props");return M.links.type=a,_g(k,void 0,void 0,[M],m?No(m):Ye,void 0,1,0)}function wFe(r){let a=Nn(Nr(r));if(a.jsxFragmentType!==void 0)return a.jsxFragmentType;let l=Gd(r);if(!((O.jsx===2||O.jsxFragmentFactory!==void 0)&&l!=="null"))return a.jsxFragmentType=Le;let m=O.jsx!==1&&O.jsx!==3,y=Ba?_.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:void 0,k=iX(r)??ft(r,l,m?111551:111167,y,!0);if(k===void 0)return a.jsxFragmentType=Ye;if(k.escapedName===MU.Fragment)return a.jsxFragmentType=an(k);let M=(k.flags&2097152)===0?k:ru(k),G=k&&Wf(M),J=G&&du(G,MU.Fragment,2),K=J&&an(J);return a.jsxFragmentType=K===void 0?Ye:K}function Fft(r,a,l){let f=Wd(r),m;if(f)m=wFe(r);else{if(ow(r.tagName)){let M=JOe(r),G=_X(r,M);return DT($D(r.attributes,ZK(G,r),void 0,0),M,r.tagName,r.attributes),Dr(r.typeArguments)&&(or(r.typeArguments,va),Ba.add(Ww(Nr(r),r.typeArguments,_.Expected_0_type_arguments_but_got_1,0,Dr(r.typeArguments)))),G}m=ts(r.tagName)}let y=Sp(m);if(rn(y))return Im(r);let k=zOe(m,r);return D9(m,y,k.length,0)?Ox(r):k.length===0?(f?$e(r,_.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,pc(r)):$e(r.tagName,_.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,pc(r.tagName)),Im(r)):VD(r,k,a,l,0)}function jft(r,a,l){let f=ts(r.right);if(!xn(f)){let m=$he(f);if(m){let y=Sp(m);if(rn(y))return Im(r);let k=Gs(y,0),M=Gs(y,1);if(D9(m,y,k.length,M.length))return Ox(r);if(k.length)return VD(r,k,a,l,0)}else if(!(WX(f)||IT(f,Vr)))return $e(r.right,_.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),Im(r)}return Wr}function Lft(r,a){return a.length&&Fi(a,l=>l.minArgumentCount===0&&!Zu(l)&&l.parameters.length<yFe(r,l))}function Wft(r,a,l){switch(r.kind){case 214:return Pft(r,a,l);case 215:return Eft(r,a,l);case 216:return Mft(r,a,l);case 171:return Oft(r,a,l);case 290:case 287:case 286:return Fft(r,a,l);case 227:return jft(r,a,l)}w.assertNever(r,"Branch in 'resolveSignature' should be unreachable.")}function qD(r,a,l){let f=Nn(r),m=f.resolvedSignature;if(m&&m!==hn&&!a)return m;let y=hv;m||(hv=wh.length),f.resolvedSignature=hn;let k=Wft(r,a,l||0);return hv=y,k!==hn&&(f.resolvedSignature=Tn===zr?k:m),k}function yg(r){var a;if(!r||!dn(r))return!1;let l=Gc(r)||Ao(r)?r:(li(r)||yl(r))&&r.initializer&&Ao(r.initializer)?r.initializer:void 0;if(l){if(MB(r))return!0;if(yl(Od(l.parent)))return!1;let f=wn(l);return!!((a=f?.members)!=null&&a.size)}return!1}function Nhe(r,a){var l,f;if(a){let m=Wn(a);if(!m.inferredClassSymbol||!m.inferredClassSymbol.has(sa(r))){let y=oh(r)?r:lT(r);return y.exports=y.exports||Qs(),y.members=y.members||Qs(),y.flags|=a.flags&32,(l=a.exports)!=null&&l.size&&lg(y.exports,a.exports),(f=a.members)!=null&&f.size&&lg(y.members,a.members),(m.inferredClassSymbol||(m.inferredClassSymbol=new Map)).set(sa(y),y),y}return m.inferredClassSymbol.get(sa(r))}}function Bft(r){var a;let l=r&&dX(r,!0),f=(a=l?.exports)==null?void 0:a.get("prototype"),m=f?.valueDeclaration&&zft(f.valueDeclaration);return m?wn(m):void 0}function dX(r,a){if(!r.parent)return;let l,f;if(li(r.parent)&&r.parent.initializer===r){if(!dn(r)&&!(mO(r.parent)&&yo(r)))return;l=r.parent.name,f=r.parent}else if(vn(r.parent)){let m=r.parent,y=r.parent.operatorToken.kind;if(y===64&&(a||m.right===r))l=m.left,f=l;else if((y===57||y===61)&&(li(m.parent)&&m.parent.initializer===m?(l=m.parent.name,f=m.parent):vn(m.parent)&&m.parent.operatorToken.kind===64&&(a||m.parent.right===m)&&(l=m.parent.left,f=l),!l||!ik(l)||!Vw(l,m.left)))return}else a&&Gc(r)&&(l=r.name,f=r);if(!(!f||!l||!a&&!R0(r,Tb(l))))return v_(f)}function zft(r){if(!r.parent)return!1;let a=r.parent;for(;a&&a.kind===212;)a=a.parent;if(a&&vn(a)&&Tb(a.left)&&a.operatorToken.kind===64){let l=Pz(a);return Sa(l)&&l}}function Gft(r,a){var l,f,m;X9(r,r.typeArguments);let y=qD(r,void 0,a);if(y===hn)return Nt;if(mX(y,r),r.expression.kind===108)return hr;if(r.kind===215){let M=y.declaration;if(M&&M.kind!==177&&M.kind!==181&&M.kind!==186&&!(cv(M)&&((f=(l=Hw(M))==null?void 0:l.parent)==null?void 0:f.kind)===177)&&!g2(M)&&!yg(M))return de&&$e(r,_.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Le}if(dn(r)&&AFe(r))return R4e(r.arguments[0]);let k=Xa(y);if(k.flags&12288&&IFe(r))return tge(Od(r.parent));if(r.kind===214&&!r.questionDotToken&&r.parent.kind===245&&k.flags&16384&&X_(y)){if(!E6(r.expression))$e(r.expression,_.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!_9(r)){let M=$e(r.expression,_.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);f9(r.expression,M)}}if(dn(r)){let M=dX(r,!1);if((m=M?.exports)!=null&&m.size){let G=oc(M,M.exports,Ke,Ke,Ke);return G.objectFlags|=4096,ma([k,G])}}return k}function mX(r,a){if(!(r.flags&128)&&r.declaration&&r.declaration.flags&536870912){let l=P9(a),f=M6(JF(a));x1(l,r.declaration,f,i0(r))}}function P9(r){switch(r=Qa(r),r.kind){case 214:case 171:case 215:return P9(r.expression);case 216:return P9(r.tag);case 287:case 286:return P9(r.tagName);case 213:return r.argumentExpression;case 212:return r.name;case 184:let a=r;return Ip(a.typeName)?a.typeName.right:a;default:return r}}function IFe(r){if(!Ws(r))return!1;let a=r.expression;if(Ln(a)&&a.name.escapedText==="for"&&(a=a.expression),!Be(a)||a.escapedText!=="Symbol")return!1;let l=tRe(!1);return l?l===ft(a,"Symbol",111551,void 0,!1):!1}function Jft(r){if(pyt(r),r.arguments.length===0)return R9(r,Le);let a=r.arguments[0],l=Ac(a),f=r.arguments.length>1?Ac(r.arguments[1]):void 0;for(let y=2;y<r.arguments.length;++y)Ac(r.arguments[y]);if((l.flags&32768||l.flags&65536||!$s(l,ut))&&$e(a,_.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Yr(l)),f){let y=eRe(!0);y!==fa&&Ju(f,a9(y,32768),r.arguments[1])}let m=np(r,a);if(m){let y=Nh(m,a,!0,!1);if(y)return R9(r,DFe(an(y),y,m,a)||PFe(an(y),y,m,a))}return R9(r,Le)}function Mhe(r,a,l){let f=Qs(),m=wa(2097152,"default");return m.parent=a,m.links.nameType=mf("default"),m.links.aliasTarget=nl(r),f.set("default",m),oc(l,f,Ke,Ke,Ke)}function DFe(r,a,l,f){if(Yb(f)&&r&&!rn(r)){let y=r;if(!y.defaultOnlyType){let k=Mhe(a,l);y.defaultOnlyType=k}return y.defaultOnlyType}}function PFe(r,a,l,f){var m;if(_e&&r&&!rn(r)){let y=r;if(!y.syntheticType){let k=(m=l.declarations)==null?void 0:m.find(Li);if(P1(k,l,!1,f)){let G=wa(2048,"__type"),J=Mhe(a,l,G);G.links.type=J,y.syntheticType=b9(r)?xT(r,J,G,0,!1):J}else y.syntheticType=r}return y.syntheticType}return r}function AFe(r){if(!Vp(r,!0))return!1;if(!Be(r.expression))return w.fail();let a=ft(r.expression,r.expression.escapedText,111551,void 0,!0);if(a===Ne)return!0;if(a.flags&2097152)return!1;let l=a.flags&16?263:a.flags&3?261:0;if(l!==0){let f=$o(a,l);return!!f&&!!(f.flags&33554432)}return!1}function Uft(r){Lht(r)||X9(r,r.typeArguments),W<Jl.TaggedTemplates&&Bl(r,262144);let a=qD(r);return mX(a,r),Xa(a)}function Vft(r,a){if(r.kind===217){let l=Nr(r);if(l&&Bc(l.fileName,[".cts",".mts"])&&br(r,_.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead),O.erasableSyntaxOnly){let f=ha(l.text,r.pos),m=r.expression.pos;Ba.add(wl(l,f,m-f,_.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled))}}return EFe(r,a)}function Rhe(r){switch(r.kind){case 11:case 15:case 9:case 10:case 112:case 97:case 210:case 211:case 229:return!0;case 218:return Rhe(r.expression);case 225:let a=r.operator,l=r.operand;return a===41&&(l.kind===9||l.kind===10)||a===40&&l.kind===9;case 212:case 213:let f=Qa(r.expression),m=mo(f)?Pc(f,111551,!0):void 0;return!!(m&&m.flags&384)}return!1}function EFe(r,a){let{type:l,expression:f}=NFe(r),m=ts(f,a);if(Nd(l))return Rhe(f)||$e(f,_.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),Tp(m);let y=Nn(r);return y.assertionExpressionType=m,va(l),lw(r),Oi(l)}function NFe(r){let a,l;switch(r.kind){case 235:case 217:a=r.type,l=r.expression;break;case 218:a=xI(r),l=r.expression;break}return{type:a,expression:l}}function qft(r){let{type:a}=NFe(r),l=Pp(r)?a:r,f=Nn(r);w.assertIsDefined(f.assertionExpressionType);let m=z3(Ry(f.assertionExpressionType)),y=Oi(a);rn(y)||n(()=>{let k=Uf(m);vK(y,k)||n3e(m,y,l,_.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})}function $ft(r){let a=ts(r.expression),l=W3(a,r.expression);return EK(Oy(l),r,l!==a)}function Hft(r){return r.flags&64?$ft(r):Oy(ts(r.expression))}function MFe(r){if(C7e(r),or(r.typeArguments,va),r.kind===234){let l=Od(r.parent);l.kind===227&&l.operatorToken.kind===104&&xS(r,l.right)&&$e(r,_.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}let a=r.kind===234?ts(r.expression):Sb(r.exprName)?h9(r.exprName):ts(r.exprName);return RFe(a,r)}function RFe(r,a){let l=a.typeArguments;if(r===Nt||rn(r)||!_t(l))return r;let f=Nn(a);if(f.instantiationExpressionTypes||(f.instantiationExpressionTypes=new Map),f.instantiationExpressionTypes.has(r.id))return f.instantiationExpressionTypes.get(r.id);let m=!1,y,k=G(r);f.instantiationExpressionTypes.set(r.id,k);let M=m?y:r;return M&&Ba.add(Ww(Nr(a),l,_.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Yr(M))),k;function G(K){let be=!1,he=!1,He=gt(K);return m||(m=he),be&&!he&&(y??(y=K)),He;function gt(xt){if(xt.flags&524288){let Vt=km(xt),_r=J(Vt.callSignatures),$r=J(Vt.constructSignatures);if(be||(be=Vt.callSignatures.length!==0||Vt.constructSignatures.length!==0),he||(he=_r.length!==0||$r.length!==0),_r!==Vt.callSignatures||$r!==Vt.constructSignatures){let on=oc(wa(0,"__instantiationExpression"),Vt.members,_r,$r,Vt.indexInfos);return on.objectFlags|=8388608,on.node=a,on}}else if(xt.flags&58982400){let Vt=wu(xt);if(Vt){let _r=gt(Vt);if(_r!==Vt)return _r}}else{if(xt.flags&1048576)return cc(xt,G);if(xt.flags&2097152)return ma(fl(xt.types,gt))}return xt}}function J(K){let be=Mn(K,he=>!!he.typeParameters&&whe(he,l));return fl(be,he=>{let He=Phe(he,l,!0);return He?I3(he,He,dn(he.declaration)):he})}}function Qft(r){return va(r.type),Ohe(r.expression,r.type)}function Ohe(r,a,l){let f=ts(r,l),m=Oi(a);if(rn(m))return m;let y=vr(a.parent,k=>k.kind===239||k.kind===351);return DT(f,m,y,r,_.Type_0_does_not_satisfy_the_expected_type_1),f}function Kft(r){return eyt(r),r.keywordToken===105?Fhe(r):r.keywordToken===102?r.name.escapedText==="defer"?(w.assert(!Ws(r.parent)||r.parent.expression!==r,"Trying to get the type of `import.defer` in `import.defer(...)`"),Ye):Xft(r):w.assertNever(r.keywordToken)}function OFe(r){switch(r.keywordToken){case 102:return Z4e();case 105:let a=Fhe(r);return rn(a)?Ye:d_t(a);default:w.assertNever(r.keywordToken)}}function Fhe(r){let a=tre(r);if(a)if(a.kind===177){let l=wn(a.parent);return an(l)}else{let l=wn(a);return an(l)}else return $e(r,_.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Ye}function Xft(r){100<=z&&z<=199?Nr(r).impliedNodeFormat!==99&&$e(r,_.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):z<6&&z!==4&&$e(r,_.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext);let a=Nr(r);return w.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),r.name.escapedText==="meta"?Y4e():Ye}function A9(r){let a=r.valueDeclaration;return ip(an(r),!1,!!a&&(Hy(a)||E2(a)))}function jhe(r,a,l){switch(r.name.kind){case 80:{let f=r.name.escapedText;return r.dotDotDotToken?l&12?f:`${f}_${a}`:l&3?f:`${f}_n`}case 208:{if(r.dotDotDotToken){let f=r.name.elements,m=Hn(Wo(f),Da),y=f.length-(m?.dotDotDotToken?1:0);if(a<y){let k=f[a];if(Da(k))return jhe(k,a,l)}else if(m?.dotDotDotToken)return jhe(m,a-y,l)}break}}return`arg_${a}`}function Lhe(r,a=0,l=3,f){if(!r){let m=Hn(f?.valueDeclaration,Gi);return m?jhe(m,a,l):`${f?.escapedName??"arg"}_${a}`}return w.assert(Be(r.name)),r.name.escapedText}function RN(r,a,l){var f;let m=r.parameters.length-(Zu(r)?1:0);if(a<m)return r.parameters[a].escapedName;let y=r.parameters[m]||Z,k=l||an(y);if(Aa(k)){let M=k.target,G=a-m,J=(f=M.labeledElementDeclarations)==null?void 0:f[G],K=M.elementFlags[G];return Lhe(J,G,K,y)}return y.escapedName}function Yft(r,a){var l;if(((l=r.declaration)==null?void 0:l.kind)===318)return;let f=r.parameters.length-(Zu(r)?1:0);if(a<f){let M=r.parameters[a],G=FFe(M);return G?{parameter:G,parameterName:M.escapedName,isRestParameter:!1}:void 0}let m=r.parameters[f]||Z,y=FFe(m);if(!y)return;let k=an(m);if(Aa(k)){let M=k.target.labeledElementDeclarations,G=a-f,J=M?.[G],K=!!J?.dotDotDotToken;return J?(w.assert(Be(J.name)),{parameter:J.name,parameterName:J.name.escapedText,isRestParameter:K}):void 0}if(a===f)return{parameter:y,parameterName:m.escapedName,isRestParameter:!0}}function FFe(r){return r.valueDeclaration&&Gi(r.valueDeclaration)&&Be(r.valueDeclaration.name)&&r.valueDeclaration.name}function jFe(r){return r.kind===203||Gi(r)&&r.name&&Be(r.name)}function Zft(r,a){let l=r.parameters.length-(Zu(r)?1:0);if(a<l){let y=r.parameters[a].valueDeclaration;return y&&jFe(y)?y:void 0}let f=r.parameters[l]||Z,m=an(f);if(Aa(m)){let y=m.target.labeledElementDeclarations,k=a-l;return y&&y[k]}return f.valueDeclaration&&jFe(f.valueDeclaration)?f.valueDeclaration:void 0}function Dm(r,a){return NT(r,a)||Le}function NT(r,a){let l=r.parameters.length-(Zu(r)?1:0);if(a<l)return A9(r.parameters[a]);if(Zu(r)){let f=an(r.parameters[l]),m=a-l;if(!Aa(f)||f.target.combinedFlags&12||m<f.target.fixedLength)return Gf(f,xm(m))}}function E9(r,a,l){let f=hf(r),m=Pm(r),y=eO(r);if(y&&a>=f-1)return a===f-1?y:Gu(Gf(y,Qt));let k=[],M=[],G=[];for(let J=a;J<f;J++)!y||J<f-1?(k.push(Dm(r,J)),M.push(J<m?1:2)):(k.push(y),M.push(8)),G.push(Zft(r,J));return $g(k,M,l,G)}function LFe(r,a){let l=E9(r,a),f=l&&s9(l);return f&&xn(f)?Le:l}function hf(r){let a=r.parameters.length;if(Zu(r)){let l=an(r.parameters[a-1]);if(Aa(l))return a+l.target.fixedLength-(l.target.combinedFlags&12?0:1)}return a}function Pm(r,a){let l=a&1,f=a&2;if(f||r.resolvedMinArgumentCount===void 0){let m;if(Zu(r)){let y=an(r.parameters[r.parameters.length-1]);if(Aa(y)){let k=Tc(y.target.elementFlags,G=>!(G&1)),M=k<0?y.target.fixedLength:k;M>0&&(m=r.parameters.length-1+M)}}if(m===void 0){if(!l&&r.flags&32)return 0;m=r.minArgumentCount}if(f)return m;for(let y=m-1;y>=0;y--){let k=Dm(r,y);if(pl(k,uFe).flags&131072)break;m=y}r.resolvedMinArgumentCount=m}return r.resolvedMinArgumentCount}function Qg(r){if(Zu(r)){let a=an(r.parameters[r.parameters.length-1]);return!Aa(a)||!!(a.target.combinedFlags&12)}return!1}function eO(r){if(Zu(r)){let a=an(r.parameters[r.parameters.length-1]);if(!Aa(a))return xn(a)?fu:a;if(a.target.combinedFlags&12)return CN(a,a.target.fixedLength)}}function tO(r){let a=eO(r);return a&&!Z_(a)&&!xn(a)?a:void 0}function Whe(r){return Bhe(r,ur)}function Bhe(r,a){return r.parameters.length>0?Dm(r,0):a}function WFe(r,a,l){let f=r.parameters.length-(Zu(r)?1:0);for(let y=0;y<f;y++){let k=r.parameters[y].valueDeclaration,M=ml(k);if(M){let G=ip(Oi(M),!1,E2(k)),J=Dm(a,y);zh(l.inferences,G,J)}}let m=r.declaration&&wf(r.declaration);if(m){let y=Oi(m),k=Xa(a);zh(l.inferences,y,k)}}function e_t(r,a){if(a.typeParameters)if(!r.typeParameters)r.typeParameters=a.typeParameters;else return;if(a.thisParameter){let f=r.thisParameter;(!f||f.valueDeclaration&&!f.valueDeclaration.type)&&(f||(r.thisParameter=Dx(a.thisParameter,void 0)),N9(r.thisParameter,an(a.thisParameter)))}let l=r.parameters.length-(Zu(r)?1:0);for(let f=0;f<l;f++){let m=r.parameters[f],y=m.valueDeclaration;if(!ml(y)){let k=NT(a,f);if(k&&y.initializer){let M=ON(y,0);!$s(M,k)&&$s(k,M=Qhe(y,M))&&(k=M)}N9(m,k)}}if(Zu(r)){let f=ka(r.parameters);if(f.valueDeclaration?!ml(f.valueDeclaration):Cc(f)&65536){let m=E9(a,l);N9(f,m)}}}function t_t(r){r.thisParameter&&N9(r.thisParameter);for(let a of r.parameters)N9(a)}function N9(r,a){let l=Wn(r);if(l.type)a&&w.assertEqual(l.type,a,"Parameter symbol already has a cached type which differs from newly assigned type");else{let f=r.valueDeclaration;l.type=ip(a||(f?HC(f,!0):an(r)),!1,!!f&&!f.initializer&&E2(f)),f&&f.name.kind!==80&&(l.type===wt&&(l.type=_N(f.name)),BFe(f.name,l.type))}}function BFe(r,a){for(let l of r.elements)if(!Fl(l)){let f=s0(l,a,!1);l.name.kind===80?Wn(wn(l)).type=f:BFe(l.name,f)}}function r_t(r){return RD(cot(!0),[r])}function n_t(r,a){return RD(lot(!0),[r,a])}function i_t(r,a){return RD(uot(!0),[r,a])}function s_t(r,a){return RD(pot(!0),[r,a])}function a_t(r,a){return RD(fot(!0),[r,a])}function o_t(r,a){return RD(mot(!0),[r,a])}function c_t(r,a,l){let f=`${a?"p":"P"}${l?"s":"S"}${r.id}`,m=Ds.get(f);if(!m){let y=Qs();y.set("name",Sv("name",r)),y.set("private",Sv("private",a?ct:jr)),y.set("static",Sv("static",l?ct:jr)),m=oc(void 0,y,Ke,Ke,Ke),Ds.set(f,m)}return m}function zFe(r,a,l){let f=Cl(r),m=zi(r.name),y=m?mf(Fn(r.name)):Py(r.name),k=hc(r)?n_t(a,l):B_(r)?i_t(a,l):uf(r)?s_t(a,l):Gp(r)?a_t(a,l):hs(r)?o_t(a,l):w.failBadSyntaxKind(r),M=c_t(y,m,f);return ma([k,M])}function l_t(r,a){return RD(_ot(!0),[r,a])}function u_t(r,a){return RD(dot(!0),[r,a])}function p_t(r,a){let l=h_("this",r),f=h_("value",a);return rye(void 0,l,[f],a,void 0,1)}function zhe(r,a,l){let f=h_("target",r),m=h_("context",a),y=ii([l,hr]);return cO(void 0,void 0,[f,m],y)}function f_t(r){let{parent:a}=r,l=Nn(a);if(!l.decoratorSignature)switch(l.decoratorSignature=Wr,a.kind){case 264:case 232:{let m=an(wn(a)),y=r_t(m);l.decoratorSignature=zhe(m,y,m);break}case 175:case 178:case 179:{let f=a;if(!ni(f.parent))break;let m=hc(f)?vx(T_(f)):uw(f),y=Cl(f)?an(wn(f.parent)):K_(wn(f.parent)),k=B_(f)?b8e(m):uf(f)?S8e(m):m,M=zFe(f,y,m),G=B_(f)?b8e(m):uf(f)?S8e(m):m;l.decoratorSignature=zhe(k,M,G);break}case 173:{let f=a;if(!ni(f.parent))break;let m=uw(f),y=Cl(f)?an(wn(f.parent)):K_(wn(f.parent)),k=Gm(f)?l_t(y,m):fe,M=zFe(f,y,m),G=Gm(f)?u_t(y,m):p_t(y,m);l.decoratorSignature=zhe(k,M,G);break}}return l.decoratorSignature===Wr?void 0:l.decoratorSignature}function __t(r){let{parent:a}=r,l=Nn(a);if(!l.decoratorSignature)switch(l.decoratorSignature=Wr,a.kind){case 264:case 232:{let m=an(wn(a)),y=h_("target",m);l.decoratorSignature=cO(void 0,void 0,[y],ii([m,hr]));break}case 170:{let f=a;if(!yc(f.parent)&&!(hc(f.parent)||uf(f.parent)&&ni(f.parent.parent))||IS(f.parent)===f)break;let m=IS(f.parent)?f.parent.parameters.indexOf(f)-1:f.parent.parameters.indexOf(f);w.assert(m>=0);let y=yc(f.parent)?an(wn(f.parent.parent)):_7e(f.parent),k=yc(f.parent)?fe:d7e(f.parent),M=xm(m),G=h_("target",y),J=h_("propertyKey",k),K=h_("parameterIndex",M);l.decoratorSignature=cO(void 0,void 0,[G,J,K],hr);break}case 175:case 178:case 179:case 173:{let f=a;if(!ni(f.parent))break;let m=_7e(f),y=h_("target",m),k=d7e(f),M=h_("propertyKey",k),G=hs(f)?hr:cRe(uw(f));if(!hs(a)||Gm(a)){let K=cRe(uw(f)),be=h_("descriptor",K);l.decoratorSignature=cO(void 0,void 0,[y,M,be],ii([G,hr]))}else l.decoratorSignature=cO(void 0,void 0,[y,M],ii([G,hr]));break}}return l.decoratorSignature===Wr?void 0:l.decoratorSignature}function Ghe(r){return $?__t(r):f_t(r)}function M9(r){let a=GL(!0);return a!==$t?(r=Ly(WN(r))||wt,Dy(a,[r])):wt}function GFe(r){let a=nRe(!0);return a!==$t?(r=Ly(WN(r))||wt,Dy(a,[r])):wt}function R9(r,a){let l=M9(a);return l===wt?($e(r,Up(r)?_.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:_.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Ye):(Rme(!0)||$e(r,Up(r)?_.A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:_.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),l)}function d_t(r){let a=wa(0,"NewTargetExpression"),l=wa(4,"target",8);l.parent=a,l.links.type=r;let f=Qs([l]);return a.members=f,oc(a,f,Ke,Ke,Ke)}function gX(r,a){if(!r.body)return Ye;let l=Yc(r),f=(l&2)!==0,m=(l&1)!==0,y,k,M,G=hr;if(r.body.kind!==242)y=Ac(r.body,a&&a&-9),f&&(y=WN(B9(y,!1,r,_.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(m){let J=qFe(r,a);J?J.length>0&&(y=ii(J,2)):G=ur;let{yieldTypes:K,nextTypes:be}=m_t(r,a);k=_t(K)?ii(K,2):void 0,M=_t(be)?ma(be):void 0}else{let J=qFe(r,a);if(!J)return l&2?R9(r,ur):ur;if(J.length===0){let K=QK(r,void 0),be=K&&(q9(K,l)||hr).flags&32768?fe:hr;return l&2?R9(r,be):be}y=ii(J,2)}if(y||k||M){if(k&&OK(r,k,3),y&&OK(r,y,1),M&&OK(r,M,2),y&&Cm(y)||k&&Cm(k)||M&&Cm(M)){let J=eX(r),K=J?J===T_(r)?m?void 0:y:XK(Xa(J),r,void 0):void 0;m?(k=kge(k,K,0,f),y=kge(y,K,1,f),M=kge(M,K,2,f)):y=clt(y,K,f)}k&&(k=Uf(k)),y&&(y=Uf(y)),M&&(M=Uf(M))}return m?hX(k||ur,y||G,M||kOe(2,r)||wt,f):f?M9(y||G):y||G}function hX(r,a,l,f){let m=f?Kc:Eo,y=m.getGlobalGeneratorType(!1);if(r=m.resolveIterationType(r,void 0)||wt,a=m.resolveIterationType(a,void 0)||wt,y===$t){let k=m.getGlobalIterableIteratorType(!1);return k!==$t?xN(k,[r,a,l]):(m.getGlobalIterableIteratorType(!0),fa)}return xN(y,[r,a,l])}function m_t(r,a){let l=[],f=[],m=(Yc(r)&2)!==0;return Vte(r.body,y=>{let k=y.expression?ts(y.expression,a):j;D_(l,JFe(y,k,Le,m));let M;if(y.asteriskToken){let G=PX(k,m?19:17,y.expression);M=G&&G.nextType}else M=Lp(y,void 0);M&&D_(f,M)}),{yieldTypes:l,nextTypes:f}}function JFe(r,a,l,f){if(a===Nt)return Nt;let m=r.expression||r,y=r.asteriskToken?Bv(f?19:17,a,l,m):a;return f?cw(y,m,r.asteriskToken?_.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:_.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):y}function UFe(r,a,l){let f=0;for(let m=0;m<l.length;m++){let y=m<r||m>=a?l[m]:void 0;f|=y!==void 0?nae.get(y)||32768:0}return f}function VFe(r){let a=Nn(r);if(a.isExhaustive===void 0){a.isExhaustive=0;let l=g_t(r);a.isExhaustive===0&&(a.isExhaustive=l)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function g_t(r){if(r.expression.kind===222){let f=H3e(r);if(!f)return!1;let m=dg(Ac(r.expression.expression)),y=UFe(0,0,f);return m.flags&3?(556800&y)===556800:!td(m,k=>BD(k,y)===y)}let a=dg(Ac(r.expression));if(!L3(a))return!1;let l=BK(r);return!l.length||_t(l,slt)?!1:nut(cc(a,Tp),l)}function Jhe(r){return r.endFlowNode&&d9(r.endFlowNode)}function qFe(r,a){let l=Yc(r),f=[],m=Jhe(r),y=!1;if(hb(r.body,k=>{let M=k.expression;if(M){if(M=Qa(M,!0),l&2&&M.kind===224&&(M=Qa(M.expression,!0)),M.kind===214&&M.expression.kind===80&&Ac(M.expression).symbol===Ja(r.symbol)&&(!Cb(r.symbol.valueDeclaration)||Hge(M.expression))){y=!0;return}let G=Ac(M,a&&a&-9);l&2&&(G=WN(B9(G,!1,r,_.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),G.flags&131072&&(y=!0),D_(f,G)}else m=!0}),!(f.length===0&&!m&&(y||h_t(r))))return re&&f.length&&m&&!(yg(r)&&f.some(k=>k.symbol===r.symbol))&&D_(f,fe),f}function h_t(r){switch(r.kind){case 219:case 220:return!0;case 175:return r.parent.kind===211;default:return!1}}function y_t(r){switch(r.kind){case 177:case 178:case 179:return}if(Yc(r)!==0)return;let l;if(r.body&&r.body.kind!==242)l=r.body;else if(hb(r.body,m=>{if(l||!m.expression)return!0;l=m.expression})||!l||Jhe(r))return;return v_t(r,l)}function v_t(r,a){if(a=Qa(a,!0),!!(Ac(a).flags&16))return or(r.parameters,(f,m)=>{let y=an(f.symbol);if(!y||y.flags&16||!Be(f.name)||V3(f.symbol)||kg(f))return;let k=b_t(r,a,f,y);if(k)return w3(1,Ai(f.name.escapedText),m,k)})}function b_t(r,a,l,f){let m=$w(a)&&a.flowNode||a.parent.kind===254&&a.parent.flowNode||Ng(2,void 0,void 0),y=Ng(32,a,m),k=jy(l.name,f,f,r,y);if(k===f)return;let M=Ng(64,a,m);return Pd(jy(l.name,f,k,r,M)).flags&131072?k:void 0}function Uhe(r,a){n(l);return;function l(){let f=Yc(r),m=a&&q9(a,f);if(m&&(Vc(m,16384)||m.flags&32769)||r.kind===174||xc(r.body)||r.body.kind!==242||!Jhe(r))return;let y=r.flags&1024,k=wf(r)||r;if(m&&m.flags&131072)$e(k,_.A_function_returning_never_cannot_have_a_reachable_end_point);else if(m&&!y)$e(k,_.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(m&&re&&!$s(fe,m))$e(k,_.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(O.noImplicitReturns){if(!m){if(!y)return;let M=Xa(T_(r));if(B8e(r,M))return}$e(k,_.Not_all_code_paths_return_a_value)}}}function $Fe(r,a){if(w.assert(r.kind!==175||pd(r)),lw(r),Ao(r)&&BN(r,r.name),a&&a&4&&k_(r)){if(!wf(r)&&!U8(r)){let f=H3(r);if(f&&d0(Xa(f))){let m=Nn(r);if(m.contextFreeType)return m.contextFreeType;let y=gX(r,a),k=_g(void 0,void 0,void 0,Ke,y,void 0,0,64),M=oc(r.symbol,E,[k],Ke,Ke);return M.objectFlags|=262144,m.contextFreeType=M}}return uo}return!JX(r)&&r.kind===219&&Dye(r),S_t(r,a),an(wn(r))}function S_t(r,a){let l=Nn(r);if(!(l.flags&64)){let f=H3(r);if(!(l.flags&64)){l.flags|=64;let m=_l(Gs(an(wn(r)),0));if(!m)return;if(k_(r))if(f){let y=AT(r),k;if(a&&a&2){WFe(m,f,y);let M=eO(f);M&&M.flags&262144&&(k=wx(f,y.nonFixingMapper))}k||(k=y?wx(f,y.mapper):f),e_t(m,k)}else t_t(m);else if(f&&!r.typeParameters&&f.parameters.length>r.parameters.length){let y=AT(r);a&&a&2&&WFe(m,f,y)}if(f&&!MD(r)&&!m.resolvedReturnType){let y=gX(r,a);m.resolvedReturnType||(m.resolvedReturnType=y)}iO(r)}}}function T_t(r){w.assert(r.kind!==175||pd(r));let a=Yc(r),l=MD(r);if(Uhe(r,l),r.body)if(wf(r)||Xa(T_(r)),r.body.kind===242)va(r.body);else{let f=ts(r.body),m=l&&q9(l,a);m&&AX(r,m,r.body,r.body,f)}}function yX(r,a,l,f=!1){if(!$s(a,Vs)){let m=f&&LN(a);return bv(r,!!m&&$s(m,Vs),l),!1}return!0}function k_t(r){if(!Ws(r)||!nk(r))return!1;let a=Ac(r.arguments[2]);if(lr(a,"value")){let m=ca(a,"writable"),y=m&&an(m);if(!y||y===jr||y===Jr)return!0;if(m&&m.valueDeclaration&&yl(m.valueDeclaration)){let k=m.valueDeclaration.initializer,M=ts(k);if(M===jr||M===Jr)return!0}return!1}return!ca(a,"set")}function Am(r){return!!(Cc(r)&8||r.flags&4&&j_(r)&8||r.flags&3&&_he(r)&6||r.flags&98304&&!(r.flags&65536)||r.flags&8||_t(r.declarations,k_t))}function HFe(r,a,l){var f,m;if(l===0)return!1;if(Am(a)){if(a.flags&4&&Oo(r)&&r.expression.kind===110){let y=MN(r);if(!(y&&(y.kind===177||yg(y))))return!0;if(a.valueDeclaration){let k=vn(a.valueDeclaration),M=y.parent===a.valueDeclaration.parent,G=y===a.valueDeclaration.parent,J=k&&((f=a.parent)==null?void 0:f.valueDeclaration)===y.parent,K=k&&((m=a.parent)==null?void 0:m.valueDeclaration)===y;return!(M||G||J||K)}}return!0}if(Oo(r)){let y=Qa(r.expression);if(y.kind===80){let k=Nn(y).resolvedSymbol;if(k.flags&2097152){let M=tf(k);return!!M&&M.kind===275}}}return!1}function rO(r,a,l){let f=Nc(r,39);return f.kind!==80&&!Oo(f)?($e(r,a),!1):f.flags&64?($e(r,l),!1):!0}function x_t(r){ts(r.expression);let a=Qa(r.expression);if(!Oo(a))return $e(a,_.The_operand_of_a_delete_operator_must_be_a_property_reference),Ot;Ln(a)&&zi(a.name)&&$e(a,_.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);let l=Nn(a),f=yt(l.resolvedSymbol);return f&&(Am(f)?$e(a,_.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):C_t(a,f)),Ot}function C_t(r,a){let l=an(a);re&&!(l.flags&131075)&&!(Se?a.flags&16777216:wm(l,16777216))&&$e(r,_.The_operand_of_a_delete_operator_must_be_optional)}function w_t(r){return ts(r.expression),hD}function I_t(r){return lw(r),j}function QFe(r){let a=!1,l=WF(r);if(l&&zc(l)){let f=Ab(r)?_.await_expression_cannot_be_used_inside_a_class_static_block:_.await_using_statements_cannot_be_used_inside_a_class_static_block;$e(r,f),a=!0}else if(!(r.flags&65536))if(zF(r)){let f=Nr(r);if(!h0(f)){let m;if(!Lw(f,O)){m??(m=jm(f,r.pos));let y=Ab(r)?_.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:_.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,k=wl(f,m.start,m.length,y);Ba.add(k),a=!0}switch(z){case 100:case 101:case 102:case 199:if(f.impliedNodeFormat===1){m??(m=jm(f,r.pos)),Ba.add(wl(f,m.start,m.length,_.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),a=!0;break}case 7:case 99:case 200:case 4:if(W>=4)break;default:m??(m=jm(f,r.pos));let y=Ab(r)?_.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:_.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;Ba.add(wl(f,m.start,m.length,y)),a=!0;break}}}else{let f=Nr(r);if(!h0(f)){let m=jm(f,r.pos),y=Ab(r)?_.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:_.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,k=wl(f,m.start,m.length,y);if(l&&l.kind!==177&&(Yc(l)&2)===0){let M=_n(l,_.Did_you_mean_to_mark_this_function_as_async);Xs(k,M)}Ba.add(k),a=!0}}return Ab(r)&&ihe(r)&&($e(r,_.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function D_t(r){n(()=>QFe(r));let a=ts(r.expression),l=B9(a,!0,r,_.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return l===a&&!rn(l)&&!(a.flags&3)&&Ih(!1,_n(r,_.await_has_no_effect_on_the_type_of_this_expression)),l}function P_t(r){let a=ts(r.operand);if(a===Nt)return Nt;switch(r.operand.kind){case 9:switch(r.operator){case 41:return tw(xm(-r.operand.text));case 40:return tw(xm(+r.operand.text))}break;case 10:if(r.operator===41)return tw(HL({negative:!0,base10Value:IA(r.operand.text)}))}switch(r.operator){case 40:case 41:case 55:return hg(a,r.operand),O9(a,12288)&&$e(r.operand,_.The_0_operator_cannot_be_applied_to_type_symbol,ta(r.operator)),r.operator===40?(O9(a,2112)&&$e(r.operand,_.Operator_0_cannot_be_applied_to_type_1,ta(r.operator),Yr(Ry(a))),Qt):Vhe(a);case 54:oye(a,r.operand);let l=BD(a,12582912);return l===4194304?jr:l===8388608?ct:Ot;case 46:case 47:return yX(r.operand,hg(a,r.operand),_.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&rO(r.operand,_.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,_.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Vhe(a)}return Ye}function A_t(r){let a=ts(r.operand);return a===Nt?Nt:(yX(r.operand,hg(a,r.operand),_.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&rO(r.operand,_.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,_.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Vhe(a))}function Vhe(r){return Vc(r,2112)?Iu(r,3)||Vc(r,296)?Vs:Zr:Qt}function O9(r,a){if(Vc(r,a))return!0;let l=dg(r);return!!l&&Vc(l,a)}function Vc(r,a){if(r.flags&a)return!0;if(r.flags&3145728){let l=r.types;for(let f of l)if(Vc(f,a))return!0}return!1}function Iu(r,a,l){return r.flags&a?!0:l&&r.flags&114691?!1:!!(a&296)&&$s(r,Qt)||!!(a&2112)&&$s(r,Zr)||!!(a&402653316)&&$s(r,ut)||!!(a&528)&&$s(r,Ot)||!!(a&16384)&&$s(r,hr)||!!(a&131072)&&$s(r,ur)||!!(a&65536)&&$s(r,jt)||!!(a&32768)&&$s(r,fe)||!!(a&4096)&&$s(r,Ht)||!!(a&67108864)&&$s(r,Cr)}function nO(r,a,l){return r.flags&1048576?Fi(r.types,f=>nO(f,a,l)):Iu(r,a,l)}function vX(r){return!!(jn(r)&16)&&!!r.symbol&&qhe(r.symbol)}function qhe(r){return(r.flags&128)!==0}function $he(r){let a=F8e("hasInstance");if(nO(r,67108864)){let l=ca(r,a);if(l){let f=an(l);if(f&&Gs(f,0).length!==0)return f}}}function E_t(r,a,l,f,m){if(l===Nt||f===Nt)return Nt;!xn(l)&&nO(l,402784252)&&$e(r,_.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),w.assert(h8(r.parent));let y=qD(r.parent,void 0,m);if(y===hn)return Nt;let k=Xa(y);return Ju(k,Ot,a,_.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),Ot}function N_t(r){return td(r,a=>a===Ga||!!(a.flags&2097152)&&Hg(dg(a)))}function M_t(r,a,l,f){if(l===Nt||f===Nt)return Nt;if(zi(r)){if((W<Jl.PrivateNamesAndClassStaticBlocks||W<Jl.ClassAndClassElementDecorators||!X)&&Bl(r,2097152),!Nn(r).resolvedSymbol&&cu(r)){let m=vhe(r,f.symbol,!0);eFe(r,f,m)}}else Ju(hg(l,r),di,r);return Ju(hg(f,a),Cr,a)&&N_t(f)&&$e(a,_.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Yr(f)),Ot}function R_t(r,a,l){let f=r.properties;if(re&&f.length===0)return hg(a,r);for(let m=0;m<f.length;m++)KFe(r,a,m,f,l);return a}function KFe(r,a,l,f,m=!1){let y=r.properties,k=y[l];if(k.kind===304||k.kind===305){let M=k.name,G=Py(M);if(L_(G)){let be=W_(G),he=ca(a,be);he&&(w9(he,k,m),mhe(k,!1,!0,a,he))}let J=Gf(a,G,32|(aw(k)?16:0),M),K=Ua(k,J);return jx(k.kind===305?k:k.initializer,K)}else if(k.kind===306)if(l<y.length-1)$e(k,_.A_rest_element_must_be_last_in_a_destructuring_pattern);else{W<Jl.ObjectSpreadRest&&Bl(k,4);let M=[];if(f)for(let J of f)Sh(J)||M.push(J.name);let G=Hi(a,M,a.symbol);return fw(f,_.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),jx(k.expression,G)}else $e(k,_.Property_assignment_expected)}function O_t(r,a,l){let f=r.elements;W<Jl.DestructuringAssignment&&O.downlevelIteration&&Bl(r,512);let m=Bv(193,a,fe,r)||Ye,y=O.noUncheckedIndexedAccess?void 0:m;for(let k=0;k<f.length;k++){let M=m;r.elements[k].kind===231&&(M=y=y??(Bv(65,a,fe,r)||Ye)),XFe(r,a,k,M,l)}return a}function XFe(r,a,l,f,m){let y=r.elements,k=y[l];if(k.kind!==233){if(k.kind!==231){let M=xm(l);if(Lv(a)){let G=32|(aw(k)?16:0),J=l0(a,M,G,Y3(k,M))||Ye,K=aw(k)?ed(J,524288):J,be=Ua(k,K);return jx(k,be,m)}return jx(k,f,m)}if(l<y.length-1)$e(k,_.A_rest_element_must_be_last_in_a_destructuring_pattern);else{let M=k.expression;if(M.kind===227&&M.operatorToken.kind===64)$e(M.operatorToken,_.A_rest_element_cannot_have_an_initializer);else{fw(r.elements,_.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);let G=gf(a,Aa)?cc(a,J=>CN(J,l)):Gu(f);return jx(M,G,m)}}}}function jx(r,a,l,f){let m;if(r.kind===305){let y=r;y.objectAssignmentInitializer&&(re&&!wm(ts(y.objectAssignmentInitializer),16777216)&&(a=ed(a,524288)),G_t(y.name,y.equalsToken,y.objectAssignmentInitializer,l)),m=r.name}else m=r;return m.kind===227&&m.operatorToken.kind===64&&(ye(m,l),m=m.left,re&&(a=ed(a,524288))),m.kind===211?R_t(m,a,f):m.kind===210?O_t(m,a,l):F_t(m,a,l)}function F_t(r,a,l){let f=ts(r,l),m=r.parent.kind===306?_.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:_.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,y=r.parent.kind===306?_.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:_.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return rO(r,m,y)&&DT(a,f,r,r),Nw(r)&&Bl(r.parent,1048576),a}function F9(r){switch(r=Qa(r),r.kind){case 80:case 11:case 14:case 216:case 229:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 219:case 232:case 220:case 210:case 211:case 222:case 236:case 286:case 285:return!0;case 228:return F9(r.whenTrue)&&F9(r.whenFalse);case 227:return ry(r.operatorToken.kind)?!1:F9(r.left)&&F9(r.right);case 225:case 226:switch(r.operator){case 54:case 40:case 41:case 55:return!0}return!1;default:return!1}}function Hhe(r,a){return(a.flags&98304)!==0||vK(r,a)}function j_t(){let r=w7(a,l,f,m,y,k);return(he,He)=>{let gt=r(he,He);return w.assertIsDefined(gt),gt};function a(he,He,gt){return He?(He.stackIndex++,He.skip=!1,J(He,void 0),be(He,void 0)):He={checkMode:gt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},dn(he)&&f2(he)?(He.skip=!0,be(He,ts(he.right,gt)),He):(L_t(he),he.operatorToken.kind===64&&(he.left.kind===211||he.left.kind===210)&&(He.skip=!0,be(He,jx(he.left,ts(he.right,gt),gt,he.right.kind===110))),He)}function l(he,He,gt){if(!He.skip)return M(He,he)}function f(he,He,gt){if(!He.skip){let xt=K(He);w.assertIsDefined(xt),J(He,xt),be(He,void 0);let Vt=he.kind;if(m8(Vt)){let _r=gt.parent;for(;_r.kind===218||A6(_r);)_r=_r.parent;(Vt===56||q0(_r))&&aye(gt.left,xt,q0(_r)?_r.thenStatement:void 0),P6(Vt)&&oye(xt,gt.left)}}}function m(he,He,gt){if(!He.skip)return M(He,he)}function y(he,He){let gt;if(He.skip)gt=K(He);else{let xt=G(He);w.assertIsDefined(xt);let Vt=K(He);w.assertIsDefined(Vt),gt=YFe(he.left,he.operatorToken,he.right,xt,Vt,He.checkMode,he)}return He.skip=!1,J(He,void 0),be(He,void 0),He.stackIndex--,gt}function k(he,He,gt){return be(he,He),he}function M(he,He){if(vn(He))return He;be(he,ts(He,he.checkMode))}function G(he){return he.typeStack[he.stackIndex]}function J(he,He){he.typeStack[he.stackIndex]=He}function K(he){return he.typeStack[he.stackIndex+1]}function be(he,He){he.typeStack[he.stackIndex+1]=He}}function L_t(r){if(r.operatorToken.kind===61){if(vn(r.parent)){let{left:a,operatorToken:l}=r.parent;vn(a)&&l.kind===57&&br(a,_._0_and_1_operations_cannot_be_mixed_without_parentheses,ta(61),ta(l.kind))}else if(vn(r.left)){let{operatorToken:a}=r.left;(a.kind===57||a.kind===56)&&br(r.left,_._0_and_1_operations_cannot_be_mixed_without_parentheses,ta(a.kind),ta(61))}else if(vn(r.right)){let{operatorToken:a}=r.right;a.kind===56&&br(r.right,_._0_and_1_operations_cannot_be_mixed_without_parentheses,ta(61),ta(a.kind))}W_t(r),B_t(r)}}function W_t(r){let a=Nc(r.left,63),l=j9(a);l!==3&&(l===1?$e(a,_.This_expression_is_always_nullish):$e(a,_.Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish))}function B_t(r){let a=Nc(r.right,63),l=j9(a);z_t(r)||(l===1?$e(a,_.This_expression_is_always_nullish):l===2&&$e(a,_.This_expression_is_never_nullish))}function z_t(r){return!vn(r.parent)||r.parent.operatorToken.kind!==61}function j9(r){switch(r=Nc(r),r.kind){case 224:case 214:case 216:case 213:case 237:case 215:case 212:case 230:case 110:return 3;case 227:switch(r.operatorToken.kind){case 64:case 61:case 78:case 57:case 76:case 56:case 77:return 3;case 28:return j9(r.right)}return 2;case 228:return j9(r.whenTrue)|j9(r.whenFalse);case 106:return 1;case 80:return sp(r)===ae?1:3}return 2}function G_t(r,a,l,f,m){let y=a.kind;if(y===64&&(r.kind===211||r.kind===210))return jx(r,ts(l,f),f,l.kind===110);let k;P6(y)?k=fO(r,f):k=ts(r,f);let M=ts(l,f);return YFe(r,a,l,k,M,f,m)}function YFe(r,a,l,f,m,y,k){let M=a.kind;switch(M){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(f===Nt||m===Nt)return Nt;f=hg(f,r),m=hg(m,l);let dr;if(f.flags&528&&m.flags&528&&(dr=he(a.kind))!==void 0)return $e(k||a,_.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,ta(a.kind),ta(dr)),Qt;{let si=yX(r,f,_.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),$i=yX(l,m,_.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Qn;if(Iu(f,3)&&Iu(m,3)||!(Vc(f,2112)||Vc(m,2112)))Qn=Qt;else if(G(f,m)){switch(M){case 50:case 73:Vt();break;case 43:case 68:W<3&&$e(k,_.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}Qn=Zr}else Vt(G),Qn=Ye;if(si&&$i)switch(He(Qn),M){case 48:case 71:case 49:case 72:case 50:case 73:let Pi=Oe(l);typeof Pi.value=="number"&&Math.abs(Pi.value)>=32&&Jd(oy(Od(l.parent.parent)),k||a,_.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2,pc(r),ta(M),Pi.value%32);break;default:break}return Qn}case 40:case 65:if(f===Nt||m===Nt)return Nt;!Iu(f,402653316)&&!Iu(m,402653316)&&(f=hg(f,r),m=hg(m,l));let pr;return Iu(f,296,!0)&&Iu(m,296,!0)?pr=Qt:Iu(f,2112,!0)&&Iu(m,2112,!0)?pr=Zr:Iu(f,402653316,!0)||Iu(m,402653316,!0)?pr=ut:(xn(f)||xn(m))&&(pr=rn(f)||rn(m)?Ye:Le),pr&&!be(M)?pr:pr?(M===65&&He(pr),pr):(Vt(($i,Qn)=>Iu($i,402655727)&&Iu(Qn,402655727)),Le);case 30:case 32:case 33:case 34:return be(M)&&(f=Sge(hg(f,r)),m=Sge(hg(m,l)),xt((si,$i)=>{if(xn(si)||xn($i))return!0;let Qn=$s(si,Vs),Pi=$s($i,Vs);return Qn&&Pi||!Qn&&!Pi&&YL(si,$i)})),Ot;case 35:case 36:case 37:case 38:if(!(y&&y&64)){if((zB(r)||zB(l))&&(!dn(r)||M===37||M===38)){let si=M===35||M===37;$e(k,_.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,si?"false":"true")}$r(k,M,r,l),xt((si,$i)=>Hhe(si,$i)||Hhe($i,si))}return Ot;case 104:return E_t(r,l,f,m,y);case 103:return M_t(r,l,f,m);case 56:case 77:{let si=wm(f,4194304)?ii([plt(re?f:Ry(m)),m]):f;return M===77&&He(m),si}case 57:case 76:{let si=wm(f,8388608)?ii([Oy(b3e(f)),m],2):f;return M===76&&He(m),si}case 61:case 78:{let si=wm(f,262144)?ii([Oy(f),m],2):f;return M===78&&He(m),si}case 64:let pn=vn(r.parent)?Hc(r.parent):0;return J(pn,m),gt(pn)?((!(m.flags&524288)||pn!==2&&pn!==6&&!My(m)&&!Gge(m)&&!(jn(m)&1))&&He(m),f):(He(m),m);case 28:if(!O.allowUnreachableCode&&F9(r)&&!K(r.parent)){let si=Nr(r),$i=si.text,Qn=ha($i,r.pos);si.parseDiagnostics.some(Rs=>Rs.code!==_.JSX_expressions_must_have_one_parent_element.code?!1:IB(Rs,Qn))||$e(r,_.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return m;default:return w.fail()}function G(dr,pr){return Iu(dr,2112)&&Iu(pr,2112)}function J(dr,pr){if(dr===2)for(let pn of Rv(pr)){let si=an(pn);if(si.symbol&&si.symbol.flags&32){let $i=pn.escapedName,Qn=ft(pn.valueDeclaration,$i,788968,void 0,!1);Qn?.declarations&&Qn.declarations.some(Ck)&&(Dh(Qn,_.Duplicate_identifier_0,Ai($i),pn),Dh(pn,_.Duplicate_identifier_0,Ai($i),Qn))}}}function K(dr){return dr.parent.kind===218&&Hp(dr.left)&&dr.left.text==="0"&&(Ws(dr.parent.parent)&&dr.parent.parent.expression===dr.parent||dr.parent.parent.kind===216)&&(Oo(dr.right)||Be(dr.right)&&dr.right.escapedText==="eval")}function be(dr){let pr=O9(f,12288)?r:O9(m,12288)?l:void 0;return pr?($e(pr,_.The_0_operator_cannot_be_applied_to_type_symbol,ta(dr)),!1):!0}function he(dr){switch(dr){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function He(dr){ry(M)&&n(pr);function pr(){let pn=f;if(lE(a.kind)&&r.kind===212&&(pn=aX(r,void 0,!0)),rO(r,_.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,_.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let si;if(Se&&Ln(r)&&Vc(dr,32768)){let $i=lr(Du(r.expression),r.name.escapedText);SK(dr,$i)&&(si=_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}DT(dr,pn,r,l,si)}}}function gt(dr){var pr;switch(dr){case 2:return!0;case 1:case 5:case 6:case 3:case 4:let pn=v_(r),si=f2(l);return!!si&&Sa(si)&&!!((pr=pn?.exports)!=null&&pr.size);default:return!1}}function xt(dr){return dr(f,m)?!1:(Vt(dr),!0)}function Vt(dr){let pr=!1,pn=k||a;if(dr){let Rs=Ly(f),Ya=Ly(m);pr=!(Rs===f&&Ya===m)&&!!(Rs&&Ya)&&dr(Rs,Ya)}let si=f,$i=m;!pr&&dr&&([si,$i]=J_t(f,m,dr));let[Qn,Pi]=uN(si,$i);_r(pn,pr,Qn,Pi)||bv(pn,pr,_.Operator_0_cannot_be_applied_to_types_1_and_2,ta(a.kind),Qn,Pi)}function _r(dr,pr,pn,si){switch(a.kind){case 37:case 35:case 38:case 36:return bv(dr,pr,_.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,pn,si);default:return}}function $r(dr,pr,pn,si){let $i=on(Qa(pn)),Qn=on(Qa(si));if($i||Qn){let Pi=$e(dr,_.This_condition_will_always_return_0,ta(pr===37||pr===35?97:112));if($i&&Qn)return;let Rs=pr===38||pr===36?ta(54):"",Ya=$i?si:pn,es=Qa(Ya);Xs(Pi,_n(Ya,_.Did_you_mean_0,`${Rs}Number.isNaN(${mo(es)?kf(es):"..."})`))}}function on(dr){if(Be(dr)&&dr.escapedText==="NaN"){let pr=got();return!!pr&&pr===sp(dr)}return!1}}function J_t(r,a,l){let f=r,m=a,y=Ry(r),k=Ry(a);return l(y,k)||(f=y,m=k),[f,m]}function U_t(r){n(be);let a=i_(r);if(!a)return Le;let l=Yc(a);if(!(l&1))return Le;let f=(l&2)!==0;r.asteriskToken&&(f&&W<Jl.AsyncGenerators&&Bl(r,26624),!f&&W<Jl.Generators&&O.downlevelIteration&&Bl(r,256));let m=MD(a);m&&m.flags&1048576&&(m=pl(m,he=>Yhe(he,l,void 0)));let y=m&&dye(m,f),k=y&&y.yieldType||Le,M=y&&y.nextType||Le,G=r.expression?ts(r.expression):j,J=JFe(r,G,M,f);if(m&&J&&DT(J,k,r.expression||r,r.expression),r.asteriskToken)return uye(f?19:17,1,G,r.expression)||Le;if(m)return zv(2,m,f)||Le;let K=kOe(2,a);return K||(K=Le,n(()=>{if(de&&!wne(r)){let he=Lp(r,void 0);(!he||xn(he))&&$e(r,_.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),K;function be(){r.flags&16384||iu(r,_.A_yield_expression_is_only_allowed_in_a_generator_body),ihe(r)&&$e(r,_.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function V_t(r,a){let l=fO(r.condition,a);aye(r.condition,l,r.whenTrue);let f=ts(r.whenTrue,a),m=ts(r.whenFalse,a);return ii([f,m],2)}function ZFe(r){let a=r.parent;return Pp(a)&&ZFe(a)||xo(a)&&a.argumentExpression===r}function q_t(r){let a=[r.head.text],l=[];for(let m of r.templateSpans){let y=ts(m.expression);O9(y,12288)&&$e(m.expression,_.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(m.literal.text),l.push($s(y,qs)?y:ut)}let f=r.parent.kind!==216&&Oe(r).value;return f?tw(mf(f)):FN(r)||ZFe(r)||td(Lp(r,void 0)||wt,$_t)?Sx(a,l):ut}function $_t(r){return!!(r.flags&134217856||r.flags&58982400&&Vc(wu(r)||wt,402653316))}function H_t(r){return zS(r)&&!kk(r.parent)?r.parent.parent:r}function $D(r,a,l,f){let m=H_t(r);v9(m,a,!1),rpt(m,l);let y=ts(r,f|1|(l?2:0));l&&l.intraExpressionInferenceSites&&(l.intraExpressionInferenceSites=void 0);let k=Vc(y,2944)&&bX(y,XK(a,r,void 0))?Tp(y):y;return npt(),$3(),k}function Ac(r,a){if(a)return ts(r,a);let l=Nn(r);if(!l.resolvedType){let f=Tn,m=Bi;Tn=zr,Bi=void 0,l.resolvedType=ts(r,a),Bi=m,Tn=f}return l.resolvedType}function e8e(r){return r=Qa(r,!0),r.kind===217||r.kind===235||JS(r)}function ON(r,a,l){let f=l6(r);if(dn(r)){let y=$8(r);if(y)return Ohe(f,y,a)}let m=Xhe(f)||(l?$D(f,l,void 0,a||0):Ac(f,a));if(Gi(Da(r)?UT(r):r)){if(r.name.kind===207&&Wv(m))return Q_t(m,r.name);if(r.name.kind===208&&Aa(m))return K_t(m,r.name)}return m}function Q_t(r,a){let l;for(let y of a.elements)if(y.initializer){let k=t8e(y);k&&!ca(r,k)&&(l=Fr(l,y))}if(!l)return r;let f=Qs();for(let y of Rv(r))f.set(y.escapedName,y);for(let y of l){let k=wa(16777220,t8e(y));k.links.type=bm(y,!1,!1),f.set(k.escapedName,k)}let m=oc(r.symbol,f,Ke,Ke,zu(r));return m.objectFlags=r.objectFlags,m}function t8e(r){let a=Py(r.propertyName||r.name);return L_(a)?W_(a):void 0}function K_t(r,a){if(r.target.combinedFlags&12||Fv(r)>=a.elements.length)return r;let l=a.elements,f=kT(r).slice(),m=r.target.elementFlags.slice();for(let y=Fv(r);y<l.length;y++){let k=l[y];(y<l.length-1||!(k.kind===209&&k.dotDotDotToken))&&(f.push(!Fl(k)&&aw(k)?bm(k,!1,!1):Le),m.push(2),!Fl(k)&&!aw(k)&&Q1(k,Le))}return $g(f,m,r.target.readonly)}function Qhe(r,a){let l=r8e(r,a);if(dn(r)){if(d3e(l))return Q1(r,Le),Le;if(IK(l))return Q1(r,fu),fu}return l}function r8e(r,a){return MT(r)&6||KM(r)?a:H1(a)}function bX(r,a){if(a){if(a.flags&3145728){let l=a.types;return _t(l,f=>bX(r,f))}if(a.flags&58982400){let l=wu(a)||wt;return Vc(l,4)&&Vc(r,128)||Vc(l,8)&&Vc(r,256)||Vc(l,64)&&Vc(r,2048)||Vc(l,4096)&&Vc(r,8192)||bX(r,l)}return!!(a.flags&406847616&&Vc(r,128)||a.flags&256&&Vc(r,256)||a.flags&2048&&Vc(r,2048)||a.flags&512&&Vc(r,512)||a.flags&8192&&Vc(r,8192))}return!1}function FN(r){let a=r.parent;return gS(a)&&Nd(a.type)||JS(a)&&Nd(xI(a))||Rhe(r)&&yx(Lp(r,0))||(Pp(a)||Tu(a)||z_(a))&&FN(a)||(yl(a)||Fu(a)||hI(a))&&FN(a.parent)}function jN(r,a,l){let f=ts(r,a,l);return FN(r)||$te(r)?Tp(f):e8e(r)?f:Tge(f,XK(Lp(r,void 0),r,void 0))}function n8e(r,a){return r.name.kind===168&&Xd(r.name),jN(r.initializer,a)}function i8e(r,a){D7e(r),r.name.kind===168&&Xd(r.name);let l=$Fe(r,a);return s8e(r,l,a)}function s8e(r,a,l){if(l&&l&10){let f=X3(a,0,!0),m=X3(a,1,!0),y=f||m;if(y&&y.typeParameters){let k=X1(r,2);if(k){let M=X3(Oy(k),f?0:1,!1);if(M&&!M.typeParameters){if(l&8)return a8e(r,l),uo;let G=AT(r),J=G.signature&&Xa(G.signature),K=J&&fFe(J);if(K&&!K.typeParameters&&!Fi(G.inferences,HD)){let be=edt(G,y.typeParameters),he=Cme(y,be),He=kr(G.inferences,gt=>Pge(gt.typeParameter));if(Cge(he,M,(gt,xt)=>{zh(He,gt,xt,0,!0)}),_t(He,HD)&&(wge(he,M,(gt,xt)=>{zh(He,gt,xt)}),!Y_t(G.inferences,He)))return Z_t(G.inferences,He),G.inferredTypeParameters=Qi(G.inferredTypeParameters,be),vx(he)}return vx(_Fe(y,M,G))}}}}return a}function a8e(r,a){if(a&2){let l=AT(r);l.flags|=4}}function HD(r){return!!(r.candidates||r.contraCandidates)}function X_t(r){return!!(r.candidates||r.contraCandidates||x4e(r.typeParameter))}function Y_t(r,a){for(let l=0;l<r.length;l++)if(HD(r[l])&&HD(a[l]))return!0;return!1}function Z_t(r,a){for(let l=0;l<r.length;l++)!HD(r[l])&&HD(a[l])&&(r[l]=a[l])}function edt(r,a){let l=[],f,m;for(let y of a){let k=y.symbol.escapedName;if(Khe(r.inferredTypeParameters,k)||Khe(l,k)){let M=tdt(Qi(r.inferredTypeParameters,l),k),G=wa(262144,M),J=Op(G);J.target=y,f=Fr(f,y),m=Fr(m,J),l.push(J)}else l.push(y)}if(m){let y=Jf(f,m);for(let k of m)k.mapper=y}return l}function Khe(r,a){return _t(r,l=>l.symbol.escapedName===a)}function tdt(r,a){let l=a.length;for(;l>1&&a.charCodeAt(l-1)>=48&&a.charCodeAt(l-1)<=57;)l--;let f=a.slice(0,l);for(let m=1;;m++){let y=f+m;if(!Khe(r,y))return y}}function o8e(r){let a=Fx(r);if(a&&!a.typeParameters)return Xa(a)}function rdt(r){let a=ts(r.expression),l=W3(a,r.expression),f=o8e(a);return f&&EK(f,r,l!==a)}function Du(r){let a=Xhe(r);if(a)return a;if(r.flags&268435456&&Bi){let m=Bi[qa(r)];if(m)return m}let l=ps,f=ts(r,64);if(ps!==l){let m=Bi||(Bi=[]);m[qa(r)]=f,Cne(r,r.flags|268435456)}return f}function Xhe(r){let a=Qa(r,!0);if(JS(a)){let l=xI(a);if(!Nd(l))return Oi(l)}if(a=Qa(r),Ab(a)){let l=Xhe(a.expression);return l?cw(l):void 0}if(Ws(a)&&a.expression.kind!==108&&!Vp(a,!0)&&!IFe(a)&&!Up(a))return qT(a)?rdt(a):o8e(UD(a.expression));if(gS(a)&&!Nd(a.type))return Oi(a.type);if($T(r)||LP(r))return ts(r)}function L9(r){let a=Nn(r);if(a.contextFreeType)return a.contextFreeType;v9(r,Le,!1);let l=a.contextFreeType=ts(r,4);return $3(),l}function ts(r,a,l){var f,m;(f=mn)==null||f.push(mn.Phase.Check,"checkExpression",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath});let y=x;x=r,h=0;let k=sdt(r,a,l),M=s8e(r,k,a);return vX(M)&&ndt(r,M),x=y,(m=mn)==null||m.pop(),M}function ndt(r,a){var l;let f=r.parent.kind===212&&r.parent.expression===r||r.parent.kind===213&&r.parent.expression===r||(r.kind===80||r.kind===167)&&jX(r)||r.parent.kind===187&&r.parent.exprName===r||r.parent.kind===282;if(f||$e(r,_.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),O.isolatedModules||O.verbatimModuleSyntax&&f&&!ft(r,wp(r),2097152,void 0,!1,!0)){w.assert(!!(a.symbol.flags&128));let m=a.symbol.valueDeclaration,y=(l=e.getRedirectFromOutput(Nr(m).resolvedPath))==null?void 0:l.resolvedRef;m.flags&33554432&&!B0(r)&&(!y||!kb(y.commandLine.options))&&$e(r,_.Cannot_access_ambient_const_enums_when_0_is_enabled,Ie)}}function idt(r,a){if(Hf(r)){if(JG(r))return Ohe(r.expression,UG(r),a);if(JS(r))return EFe(r,a)}return ts(r.expression,a)}function sdt(r,a,l){let f=r.kind;if(i)switch(f){case 232:case 219:case 220:i.throwIfCancellationRequested()}switch(f){case 80:return Cut(r,a);case 81:return Kpt(r);case 110:return h9(r);case 108:return HK(r);case 106:return Ce;case 15:case 11:return Rge(r)?Rt:tw(mf(r.text));case 9:return R7e(r),tw(xm(+r.text));case 10:return oyt(r),tw(HL({negative:!1,base10Value:IA(r.text)}));case 112:return ct;case 97:return jr;case 229:return q_t(r);case 14:return bpt(r);case 210:return ROe(r,a,l);case 211:return Dpt(r,a);case 212:return aX(r,a);case 167:return XOe(r,a);case 213:return pft(r,a);case 214:if(Up(r))return Jft(r);case 215:return Gft(r,a);case 216:return Uft(r);case 218:return idt(r,a);case 232:return Qmt(r);case 219:case 220:return $Fe(r,a);case 222:return w_t(r);case 217:case 235:return Vft(r,a);case 236:return Hft(r);case 234:return MFe(r);case 239:return Qft(r);case 237:return Kft(r);case 221:return x_t(r);case 223:return I_t(r);case 224:return D_t(r);case 225:return P_t(r);case 226:return A_t(r);case 227:return ye(r,a);case 228:return V_t(r,a);case 231:return Spt(r,a);case 233:return j;case 230:return U_t(r);case 238:return Tpt(r);case 295:return Jpt(r,a);case 285:return Npt(r,a);case 286:return Apt(r,a);case 289:return Mpt(r);case 293:return Opt(r,a);case 287:w.fail("Shouldn't ever directly check a JsxOpeningElement")}return Ye}function c8e(r){Jh(r),r.expression&&iu(r.expression,_.Type_expected),va(r.constraint),va(r.default);let a=W1(wn(r));wu(a),Sat(a)||$e(r.default,_.Type_parameter_0_has_a_circular_default,Yr(a));let l=jp(a),f=ST(a);l&&f&&Ju(f,zf(qi(l,wT(a,f)),f),r.default,_.Type_0_does_not_satisfy_the_constraint_1),lw(r),n(()=>zN(r.name,_.Type_parameter_name_cannot_be_0))}function adt(r){var a,l;if(uu(r.parent)||ni(r.parent)||gd(r.parent)){let f=W1(wn(r)),m=hge(f)&24576;if(m){let y=wn(r.parent);if(gd(r.parent)&&!(jn(No(y))&48))$e(r,_.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(m===8192||m===16384){(a=mn)==null||a.push(mn.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:nu(No(y)),id:nu(f)});let k=t9(y,f,m===16384?dt:We),M=t9(y,f,m===16384?We:dt),G=f;I=f,Ju(k,M,r,_.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),I=G,(l=mn)==null||l.pop()}}}}function l8e(r){Jh(r),U9(r);let a=i_(r);ri(r,31)&&(O.erasableSyntaxOnly&&$e(r,_.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),a.kind===177&&ud(a.body)||$e(r,_.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===177&&Be(r.name)&&r.name.escapedText==="constructor"&&$e(r.name,_.constructor_cannot_be_used_as_a_parameter_property_name)),!r.initializer&&E2(r)&&Ls(r.name)&&a.body&&$e(r,_.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),r.name&&Be(r.name)&&(r.name.escapedText==="this"||r.name.escapedText==="new")&&(a.parameters.indexOf(r)!==0&&$e(r,_.A_0_parameter_must_be_the_first_parameter,r.name.escapedText),(a.kind===177||a.kind===181||a.kind===186)&&$e(r,_.A_constructor_cannot_have_a_this_parameter),a.kind===220&&$e(r,_.An_arrow_function_cannot_have_a_this_parameter),(a.kind===178||a.kind===179)&&$e(r,_.get_and_set_accessors_cannot_declare_this_parameters)),r.dotDotDotToken&&!Ls(r.name)&&!$s(Pd(an(r.symbol)),Ff)&&$e(r,_.A_rest_parameter_must_be_of_an_array_type)}function odt(r){let a=cdt(r);if(!a){$e(r,_.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}let l=T_(a),f=X_(l);if(!f)return;va(r.type);let{parameterName:m}=r;if(f.kind!==0&&f.kind!==2){if(f.parameterIndex>=0){if(Zu(l)&&f.parameterIndex===l.parameters.length-1)$e(m,_.A_type_predicate_cannot_reference_a_rest_parameter);else if(f.type){let y=()=>Ns(void 0,_.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);Ju(f.type,an(l.parameters[f.parameterIndex]),r.type,void 0,y)}}else if(m){let y=!1;for(let{name:k}of a.parameters)if(Ls(k)&&u8e(k,m,f.parameterName)){y=!0;break}y||$e(r.parameterName,_.Cannot_find_parameter_0,f.parameterName)}}}function cdt(r){switch(r.parent.kind){case 220:case 180:case 263:case 219:case 185:case 175:case 174:let a=r.parent;if(r===a.type)return a}}function u8e(r,a,l){for(let f of r.elements){if(Fl(f))continue;let m=f.name;if(m.kind===80&&m.escapedText===l)return $e(a,_.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,l),!0;if((m.kind===208||m.kind===207)&&u8e(m,a,l))return!0}}function iO(r){r.kind===182?Fht(r):(r.kind===185||r.kind===263||r.kind===186||r.kind===180||r.kind===177||r.kind===181)&&JX(r);let a=Yc(r);a&4||((a&3)===3&&W<Jl.AsyncGenerators&&Bl(r,6144),(a&3)===2&&W<Jl.AsyncFunctions&&Bl(r,64),(a&3)!==0&&W<Jl.Generators&&Bl(r,128)),$9(ob(r)),qmt(r),or(r.parameters,l8e),r.type&&va(r.type),n(l);function l(){omt(r);let f=wf(r),m=f;if(dn(r)){let y=D0(r);if(y&&y.typeExpression&&Pf(y.typeExpression.type)){let k=Fx(Oi(y.typeExpression));k&&k.declaration&&(f=wf(k.declaration),m=y.typeExpression.type)}}if(de&&!f)switch(r.kind){case 181:$e(r,_.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 180:$e(r,_.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(f&&m){let y=Yc(r);if((y&5)===1){let k=Oi(f);k===hr?$e(m,_.A_generator_cannot_have_a_void_type_annotation):Yhe(k,y,m)}else(y&3)===2&&Wdt(r,f,m)}r.kind!==182&&r.kind!==318&&m0(r)}}function Yhe(r,a,l){let f=zv(0,r,(a&2)!==0)||Le,m=zv(1,r,(a&2)!==0)||f,y=zv(2,r,(a&2)!==0)||wt,k=hX(f,m,y,!!(a&2));return Ju(k,r,l)}function ldt(r){let a=new Map,l=new Map,f=new Map;for(let y of r.members)if(y.kind===177)for(let k of y.parameters)Tf(k,y)&&!Ls(k.name)&&m(a,k.name,k.name.escapedText,3);else{let k=Ks(y),M=y.name;if(!M)continue;let G=zi(M),J=G&&k?16:0,K=G?f:k?l:a,be=M&&Nye(M);if(be)switch(y.kind){case 178:m(K,M,be,1|J);break;case 179:m(K,M,be,2|J);break;case 173:m(K,M,be,3|J);break;case 175:m(K,M,be,8|J);break}}function m(y,k,M,G){let J=y.get(M);if(J)if((J&16)!==(G&16))$e(k,_.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,pc(k));else{let K=!!(J&8),be=!!(G&8);K||be?K!==be&&$e(k,_.Duplicate_identifier_0,pc(k)):J&G&-17?$e(k,_.Duplicate_identifier_0,pc(k)):y.set(M,J|G)}else y.set(M,G)}}function udt(r){for(let a of r.members){let l=a.name;if(Ks(a)&&l){let m=Nye(l);switch(m){case"name":case"length":case"caller":case"arguments":if(X)break;case"prototype":let y=_.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,k=L1(wn(r));$e(l,y,m,k);break}}}}function p8e(r){let a=new Map;for(let l of r.members)if(l.kind===172){let f,m=l.name;switch(m.kind){case 11:case 9:f=m.text;break;case 80:f=Fn(m);break;default:continue}a.get(f)?($e(Ss(l.symbol.valueDeclaration),_.Duplicate_identifier_0,f),$e(l.name,_.Duplicate_identifier_0,f)):a.set(f,!0)}}function Zhe(r){if(r.kind===265){let l=wn(r);if(l.declarations&&l.declarations.length>0&&l.declarations[0]!==r)return}let a=eK(wn(r));if(a?.declarations){let l=new Map;for(let f of a.declarations)Pb(f)&&f.parameters.length===1&&f.parameters[0].type&&Nx(Oi(f.parameters[0].type),m=>{let y=l.get(nu(m));y?y.declarations.push(f):l.set(nu(m),{type:m,declarations:[f]})});l.forEach(f=>{if(f.declarations.length>1)for(let m of f.declarations)$e(m,_.Duplicate_index_signature_for_type_0,Yr(f.type))})}}function f8e(r){!Jh(r)&&!iyt(r)&&UX(r.name),U9(r),SX(r),ri(r,64)&&r.kind===173&&r.initializer&&$e(r,_.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,To(r.name))}function pdt(r){return zi(r.name)&&$e(r,_.Private_identifiers_are_not_allowed_outside_class_bodies),f8e(r)}function fdt(r){D7e(r)||UX(r.name),hc(r)&&r.asteriskToken&&Be(r.name)&&Fn(r.name)==="constructor"&&$e(r.name,_.Class_constructor_may_not_be_a_generator),x8e(r),ri(r,64)&&r.kind===175&&r.body&&$e(r,_.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,To(r.name)),zi(r.name)&&!cu(r)&&$e(r,_.Private_identifiers_are_not_allowed_outside_class_bodies),SX(r)}function SX(r){if(zi(r.name)&&(W<Jl.PrivateNamesAndClassStaticBlocks||W<Jl.ClassAndClassElementDecorators||!X)){for(let a=nm(r);a;a=nm(a))Nn(a).flags|=1048576;if(Zc(r.parent)){let a=Yge(r.parent);a&&(Nn(r.name).flags|=32768,Nn(a).flags|=4096)}}}function _dt(r){Jh(r),Ms(r,va)}function ddt(r){iO(r),ryt(r)||nyt(r),va(r.body);let a=wn(r),l=$o(a,r.kind);if(r===l&&kX(a),xc(r.body))return;n(m);return;function f(y){return Hu(y)?!0:y.kind===173&&!Ks(y)&&!!y.initializer}function m(){let y=r.parent;if(CS(y)){Zge(r.parent,y);let k=ehe(y),M=hOe(r.body);if(M){if(k&&$e(M,_.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!U&&(_t(r.parent.members,f)||_t(r.parameters,J=>ri(J,31))))if(!mdt(M,r.body))$e(M,_.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);else{let J;for(let K of r.body.statements){if(Ql(K)&&ek(Nc(K.expression))){J=K;break}if(_8e(K))break}J===void 0&&$e(r,_.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else k||$e(r,_.Constructors_for_derived_classes_must_contain_a_super_call)}}}function mdt(r,a){let l=Od(r.parent);return Ql(l)&&l.parent===a}function _8e(r){return r.kind===108||r.kind===110?!0:ere(r)?!1:!!Ms(r,_8e)}function d8e(r){Be(r.name)&&Fn(r.name)==="constructor"&&ni(r.parent)&&$e(r.name,_.Class_constructor_may_not_be_an_accessor),n(a),va(r.body),SX(r);function a(){if(!JX(r)&&!Vht(r)&&UX(r.name),z9(r),iO(r),r.kind===178&&!(r.flags&33554432)&&ud(r.body)&&r.flags&512&&(r.flags&1024||$e(r.name,_.A_get_accessor_must_return_a_value)),r.name.kind===168&&Xd(r.name),ED(r)){let f=wn(r),m=$o(f,178),y=$o(f,179);if(m&&y&&!(pw(m)&1)){Nn(m).flags|=1;let k=Mu(m),M=Mu(y);(k&64)!==(M&64)&&($e(m.name,_.Accessors_must_both_be_abstract_or_non_abstract),$e(y.name,_.Accessors_must_both_be_abstract_or_non_abstract)),(k&4&&!(M&6)||k&2&&!(M&2))&&($e(m.name,_.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),$e(y.name,_.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}let l=mN(wn(r));r.kind===178&&Uhe(r,l)}}function gdt(r){z9(r)}function hdt(r,a,l){return r.typeArguments&&l<r.typeArguments.length?Oi(r.typeArguments[l]):TX(r,a)[l]}function TX(r,a){return Ov(kr(r.typeArguments,Oi),a,qg(a),dn(r))}function m8e(r,a){let l,f,m=!0;for(let y=0;y<a.length;y++){let k=jp(a[y]);k&&(l||(l=TX(r,a),f=Jf(a,l)),m=m&&Ju(l[y],qi(k,f),r.typeArguments[y],_.Type_0_does_not_satisfy_the_constraint_1))}return m}function ydt(r,a){if(!rn(r))return a.flags&524288&&Wn(a).typeParameters||(jn(r)&4?r.target.localTypeParameters:void 0)}function eye(r){let a=Oi(r);if(!rn(a)){let l=Nn(r).resolvedSymbol;if(l)return ydt(a,l)}}function tye(r){if(X9(r,r.typeArguments),r.kind===184&&!dn(r)&&!KP(r)&&r.typeArguments&&r.typeName.end!==r.typeArguments.pos){let a=Nr(r);Jte(a,r.typeName.end)===25&&Y1(r,ha(a.text,r.typeName.end),1,_.JSDoc_types_can_only_be_used_inside_documentation_comments)}or(r.typeArguments,va),g8e(r)}function g8e(r){let a=Oi(r);if(!rn(a)){r.typeArguments&&n(()=>{let f=eye(r);f&&m8e(r,f)});let l=Nn(r).resolvedSymbol;l&&_t(l.declarations,f=>A2(f)&&!!(f.flags&536870912))&&wd(P9(r),l.declarations,l.escapedName)}}function vdt(r){let a=Hn(r.parent,vF);if(!a)return;let l=eye(a);if(!l)return;let f=jp(l[a.typeArguments.indexOf(r)]);return f&&qi(f,Jf(l,TX(a,l)))}function bdt(r){Q4e(r)}function Sdt(r){or(r.members,va),n(a);function a(){let l=WRe(r);EX(l,l.symbol),Zhe(r),p8e(r)}}function Tdt(r){va(r.elementType)}function kdt(r){let a=!1,l=!1;for(let f of r.elements){let m=jme(f);if(m&8){let y=Oi(f.type);if(!Lv(y)){$e(f,_.A_rest_element_type_must_be_an_array_type);break}(Z_(y)||Aa(y)&&y.target.combinedFlags&4)&&(m|=4)}if(m&4){if(l){br(f,_.A_rest_element_cannot_follow_another_rest_element);break}l=!0}else if(m&2){if(l){br(f,_.An_optional_element_cannot_follow_a_rest_element);break}a=!0}else if(m&1&&a){br(f,_.A_required_element_cannot_follow_an_optional_element);break}}or(r.elements,va),Oi(r)}function xdt(r){or(r.types,va),Oi(r)}function h8e(r,a){if(!(r.flags&8388608))return r;let l=r.objectType,f=r.indexType,m=nf(l)&&k3(l)===2?kRe(l,0):mg(l,0),y=!!jh(l,Qt);if(gf(f,k=>$s(k,m)||y&&KC(k,Qt)))return a.kind===213&&vb(a)&&jn(l)&32&&Vg(l)&1&&$e(a,_.Index_signature_in_type_0_only_permits_reading,Yr(l)),r;if(kx(l)){let k=pK(f,a);if(k){let M=Nx(Sp(l),G=>ca(G,k));if(M&&j_(M)&6)return $e(a,_.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Ai(k)),Ye}}return $e(a,_.Type_0_cannot_be_used_to_index_type_1,Yr(f),Yr(l)),Ye}function Cdt(r){va(r.objectType),va(r.indexType),h8e(MRe(r),r)}function wdt(r){Idt(r),va(r.typeParameter),va(r.nameType),va(r.type),r.type||Q1(r,Le);let a=Qme(r),l=Mv(a);if(l)Ju(l,di,r.nameType);else{let f=S_(a);Ju(f,di,Aw(r.typeParameter))}}function Idt(r){var a;if((a=r.members)!=null&&a.length)return br(r.members[0],_.A_mapped_type_may_not_declare_properties_or_methods)}function Ddt(r){rge(r)}function Pdt(r){$ht(r),va(r.type)}function Adt(r){Ms(r,va)}function Edt(r){vr(r,l=>l.parent&&l.parent.kind===195&&l.parent.extendsType===l)||br(r,_.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),va(r.typeParameter);let a=wn(r.typeParameter);if(a.declarations&&a.declarations.length>1){let l=Wn(a);if(!l.typeParametersChecked){l.typeParametersChecked=!0;let f=W1(a),m=bte(a,169);if(!J8e(m,[f],y=>[y])){let y=Xi(a);for(let k of m)$e(k.name,_.All_declarations_of_0_must_have_identical_constraints,y)}}}m0(r)}function Ndt(r){for(let a of r.templateSpans){va(a.type);let l=Oi(a.type);Ju(l,qs,a.type)}Oi(r)}function Mdt(r){va(r.argument),r.attributes&&LI(r.attributes,br),g8e(r)}function Rdt(r){r.dotDotDotToken&&r.questionToken&&br(r,_.A_tuple_member_cannot_be_both_optional_and_rest),r.type.kind===191&&br(r.type,_.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),r.type.kind===192&&br(r.type,_.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),va(r.type),Oi(r)}function W9(r){return(If(r,2)||Hu(r))&&!!(r.flags&33554432)}function sO(r,a){let l=qX(r);if(r.parent.kind!==265&&r.parent.kind!==264&&r.parent.kind!==232&&r.flags&33554432){let f=EF(r);f&&f.flags&128&&!(l&128)&&!(Qm(r.parent)&&el(r.parent.parent)&&Cg(r.parent.parent))&&(l|=32),l|=128}return l&a}function kX(r){n(()=>Odt(r))}function Odt(r){function a(dr,pr){return pr!==void 0&&pr.parent===dr[0].parent?pr:dr[0]}function l(dr,pr,pn,si,$i){if((si^$i)!==0){let Pi=sO(a(dr,pr),pn);vw(dr,Rs=>Nr(Rs).fileName).forEach(Rs=>{let Ya=sO(a(Rs,pr),pn);for(let es of Rs){let Zo=sO(es,pn)^Pi,jc=sO(es,pn)^Ya;jc&32?$e(Ss(es),_.Overload_signatures_must_all_be_exported_or_non_exported):jc&128?$e(Ss(es),_.Overload_signatures_must_all_be_ambient_or_non_ambient):Zo&6?$e(Ss(es)||es,_.Overload_signatures_must_all_be_public_private_or_protected):Zo&64&&$e(Ss(es),_.Overload_signatures_must_all_be_abstract_or_non_abstract)}})}}function f(dr,pr,pn,si){if(pn!==si){let $i=m2(a(dr,pr));or(dr,Qn=>{m2(Qn)!==$i&&$e(Ss(Qn),_.Overload_signatures_must_all_be_optional_or_required)})}}let m=230,y=0,k=m,M=!1,G=!0,J=!1,K,be,he,He=r.declarations,gt=(r.flags&16384)!==0;function xt(dr){if(dr.name&&xc(dr.name))return;let pr=!1,pn=Ms(dr.parent,$i=>{if(pr)return $i;pr=$i===dr});if(pn&&pn.pos===dr.end&&pn.kind===dr.kind){let $i=pn.name||pn,Qn=pn.name;if(dr.name&&Qn&&(zi(dr.name)&&zi(Qn)&&dr.name.escapedText===Qn.escapedText||na(dr.name)&&na(Qn)&&Bh(Xd(dr.name),Xd(Qn))||Bm(dr.name)&&Bm(Qn)&&aA(dr.name)===aA(Qn))){if((dr.kind===175||dr.kind===174)&&Ks(dr)!==Ks(pn)){let Rs=Ks(dr)?_.Function_overload_must_be_static:_.Function_overload_must_not_be_static;$e($i,Rs)}return}if(ud(pn.body)){$e($i,_.Function_implementation_name_must_be_0,To(dr.name));return}}let si=dr.name||dr;gt?$e(si,_.Constructor_implementation_is_missing):ri(dr,64)?$e(si,_.All_declarations_of_an_abstract_method_must_be_consecutive):$e(si,_.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let Vt=!1,_r=!1,$r=!1,on=[];if(He)for(let dr of He){let pr=dr,pn=pr.flags&33554432,si=pr.parent&&(pr.parent.kind===265||pr.parent.kind===188)||pn;if(si&&(he=void 0),(pr.kind===264||pr.kind===232)&&!pn&&($r=!0),pr.kind===263||pr.kind===175||pr.kind===174||pr.kind===177){on.push(pr);let $i=sO(pr,m);y|=$i,k&=$i,M=M||m2(pr),G=G&&m2(pr);let Qn=ud(pr.body);Qn&&K?gt?_r=!0:Vt=!0:he?.parent===pr.parent&&he.end!==pr.pos&&xt(he),Qn?K||(K=pr):J=!0,he=pr,si||(be=pr)}dn(dr)&&Fs(dr)&&dr.jsDoc&&(J=Dr(Nz(dr))>0)}if(_r&&or(on,dr=>{$e(dr,_.Multiple_constructor_implementations_are_not_allowed)}),Vt&&or(on,dr=>{$e(Ss(dr)||dr,_.Duplicate_function_implementation)}),$r&&!gt&&r.flags&16&&He){let dr=Mn(He,pr=>pr.kind===264).map(pr=>_n(pr,_.Consider_adding_a_declare_modifier_to_this_class));or(He,pr=>{let pn=pr.kind===264?_.Class_declaration_cannot_implement_overload_list_for_0:pr.kind===263?_.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;pn&&Xs($e(Ss(pr)||pr,pn,kc(r)),...dr)})}if(be&&!be.body&&!ri(be,64)&&!be.questionToken&&xt(be),J&&(He&&(l(He,K,m,y,k),f(He,K,M,G)),K)){let dr=TT(r),pr=T_(K);for(let pn of dr)if(!jct(pr,pn)){let si=pn.declaration&&cv(pn.declaration)?pn.declaration.parent.tagName:pn.declaration;Xs($e(si,_.This_overload_signature_is_not_compatible_with_its_implementation_signature),_n(K,_.The_implementation_signature_is_declared_here));break}}}function aO(r){n(()=>Fdt(r))}function Fdt(r){let a=r.localSymbol;if(!a&&(a=wn(r),!a.exportSymbol)||$o(a,r.kind)!==r)return;let l=0,f=0,m=0;for(let J of a.declarations){let K=G(J),be=sO(J,2080);be&32?be&2048?m|=K:l|=K:f|=K}let y=l|f,k=l&f,M=m&y;if(k||M)for(let J of a.declarations){let K=G(J),be=Ss(J);K&M?$e(be,_.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,To(be)):K&k&&$e(be,_.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,To(be))}function G(J){let K=J;switch(K.kind){case 265:case 266:case 347:case 339:case 341:return 2;case 268:return pp(K)||ly(K)!==0?5:4;case 264:case 267:case 307:return 3;case 308:return 7;case 278:case 227:let be=K,he=Qo(be)?be.expression:be.right;if(!mo(he))return 1;K=he;case 272:case 275:case 274:let He=0,gt=ru(wn(K));return or(gt.declarations,xt=>{He|=G(xt)}),He;case 261:case 209:case 263:case 277:case 80:return 1;case 174:case 172:return 2;default:return w.failBadSyntaxKind(K)}}}function LN(r,a,l,...f){let m=oO(r,a);return m&&cw(m,a,l,...f)}function oO(r,a,l){if(xn(r))return;let f=r;if(f.promisedTypeOfPromise)return f.promisedTypeOfPromise;if(Bf(r,GL(!1)))return f.promisedTypeOfPromise=Jo(r)[0];if(nO(dg(r),402915324))return;let m=lr(r,"then");if(xn(m))return;let y=m?Gs(m,0):Ke;if(y.length===0){a&&$e(a,_.A_promise_must_have_a_then_method);return}let k,M;for(let K of y){let be=G1(K);be&&be!==hr&&!gg(r,be,Lg)?k=be:M=Fr(M,K)}if(!M){w.assertIsDefined(k),l&&(l.value=k),a&&$e(a,_.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Yr(r),Yr(k));return}let G=ed(ii(kr(M,Whe)),2097152);if(xn(G))return;let J=Gs(G,0);if(J.length===0){a&&$e(a,_.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return f.promisedTypeOfPromise=ii(kr(J,Whe),2)}function B9(r,a,l,f,...m){return(a?cw(r,l,f,...m):Ly(r,l,f,...m))||Ye}function y8e(r){if(nO(dg(r),402915324))return!1;let a=lr(r,"then");return!!a&&Gs(ed(a,2097152),0).length>0}function xX(r){var a;if(r.flags&16777216){let l=Fme(!1);return!!l&&r.aliasSymbol===l&&((a=r.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function WN(r){return r.flags&1048576?cc(r,WN):xX(r)?r.aliasTypeArguments[0]:r}function v8e(r){if(xn(r)||xX(r))return!1;if(kx(r)){let a=wu(r);if(a?a.flags&3||My(a)||td(a,y8e):Vc(r,8650752))return!0}return!1}function jdt(r){let a=Fme(!0);if(a)return OD(a,[WN(r)])}function Ldt(r){return v8e(r)?jdt(r)??r:(w.assert(xX(r)||oO(r)===void 0,"type provided should not be a non-generic 'promise'-like."),r)}function cw(r,a,l,...f){let m=Ly(r,a,l,...f);return m&&Ldt(m)}function Ly(r,a,l,...f){if(xn(r)||xX(r))return r;let m=r;if(m.awaitedTypeOfType)return m.awaitedTypeOfType;if(r.flags&1048576){if(qb.lastIndexOf(r.id)>=0){a&&$e(a,_.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}let M=a?J=>Ly(J,a,l,...f):Ly;qb.push(r.id);let G=cc(r,M);return qb.pop(),m.awaitedTypeOfType=G}if(v8e(r))return m.awaitedTypeOfType=r;let y={value:void 0},k=oO(r,void 0,y);if(k){if(r.id===k.id||qb.lastIndexOf(k.id)>=0){a&&$e(a,_.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}qb.push(r.id);let M=Ly(k,a,l,...f);return qb.pop(),M?m.awaitedTypeOfType=M:void 0}if(y8e(r)){if(a){w.assertIsDefined(l);let M;y.value&&(M=Ns(M,_.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Yr(r),Yr(y.value))),M=Ns(M,l,...f),Ba.add(uh(Nr(a),a,M))}return}return m.awaitedTypeOfType=r}function Wdt(r,a,l){let f=Oi(a);if(W>=2){if(rn(f))return;let y=GL(!0);if(y!==$t&&!Bf(f,y)){m(_.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,a,l,Yr(Ly(f)||hr));return}}else{if(sw(r,5),rn(f))return;let y=n6(a);if(y===void 0){m(_.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,l,Yr(f));return}let k=Pc(y,111551,!0),M=k?an(k):Ye;if(rn(M)){y.kind===80&&y.escapedText==="Promise"&&Or(f)===GL(!1)?$e(l,_.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):m(_.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,l,kf(y));return}let G=$at(!0);if(G===fa){m(_.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,l,kf(y));return}let J=_.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!Ju(M,G,l,J,()=>a===l?void 0:Ns(void 0,_.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;let be=y&&wp(y),he=du(r.locals,be.escapedText,111551);if(he){$e(he.valueDeclaration,_.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Fn(be),kf(y));return}}B9(f,!1,r,_.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function m(y,k,M,G){if(k===M)$e(M,y,G);else{let J=$e(M,_.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);Xs(J,_n(k,y,G))}}}function Bdt(r){let a=Nr(r);if(!h0(a)){let l=r.expression;if(Pp(l))return!1;let f=!0,m;for(;;){if(sy(l)||V2(l)){l=l.expression;continue}if(Ws(l)){f||(m=l),l.questionDotToken&&(m=l.questionDotToken),l=l.expression,f=!1;continue}if(Ln(l)){l.questionDotToken&&(m=l.questionDotToken),l=l.expression,f=!1;continue}Be(l)||(m=l);break}if(m)return Xs($e(r.expression,_.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator),_n(m,_.Invalid_syntax_in_decorator)),!0}return!1}function zdt(r){Bdt(r);let a=qD(r);mX(a,r);let l=Xa(a);if(l.flags&1)return;let f=Ghe(r);if(!f?.resolvedReturnType)return;let m,y=f.resolvedReturnType;switch(r.parent.kind){case 264:case 232:m=_.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 173:if(!$){m=_.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 170:m=_.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 175:case 178:case 179:m=_.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return w.failBadSyntaxKind(r.parent)}Ju(l,y,r.expression,m)}function cO(r,a,l,f,m,y=l.length,k=0){let M=A.createFunctionTypeNode(void 0,Ke,A.createKeywordTypeNode(133));return _g(M,r,a,l,f,m,y,k)}function rye(r,a,l,f,m,y,k){let M=cO(r,a,l,f,m,y,k);return vx(M)}function b8e(r){return rye(void 0,void 0,Ke,r)}function S8e(r){let a=h_("value",r);return rye(void 0,void 0,[a],hr)}function nye(r){if(r)switch(r.kind){case 194:case 193:return T8e(r.types);case 195:return T8e([r.trueType,r.falseType]);case 197:case 203:return nye(r.type);case 184:return r.typeName}}function T8e(r){let a;for(let l of r){for(;l.kind===197||l.kind===203;)l=l.type;if(l.kind===146||!re&&(l.kind===202&&l.literal.kind===106||l.kind===157))continue;let f=nye(l);if(!f)return;if(a){if(!Be(a)||!Be(f)||a.escapedText!==f.escapedText)return}else a=f}return a}function CX(r){let a=ml(r);return kg(r)?Sz(a):a}function z9(r){if(!US(r)||!a_(r)||!r.modifiers||!i6($,r,r.parent,r.parent.parent))return;let a=Bn(r.modifiers,Il);if(a){$?(Bl(a,8),r.kind===170&&Bl(a,32)):W<Jl.ClassAndClassElementDecorators&&(Bl(a,8),hl(r)?r.name?U8e(r)&&Bl(a,4194304):Bl(a,4194304):Zc(r)||(zi(r.name)&&(hc(r)||pb(r)||Gp(r))&&Bl(a,4194304),na(r.name)&&Bl(a,8388608))),sw(r,8);for(let l of r.modifiers)Il(l)&&zdt(l)}}function Gdt(r){n(a);function a(){x8e(r),Dye(r),BN(r,r.name)}}function Jdt(r){r.typeExpression||$e(r.name,_.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),r.name&&zN(r.name,_.Type_alias_name_cannot_be_0),va(r.typeExpression),$9(ob(r))}function Udt(r){va(r.constraint);for(let a of r.typeParameters)va(a)}function Vdt(r){va(r.typeExpression)}function qdt(r){va(r.typeExpression);let a=F0(r);if(a){let l=sF(a,b7);if(Dr(l)>1)for(let f=1;f<Dr(l);f++){let m=l[f].tagName;$e(m,_._0_tag_already_specified,Fn(m))}}}function $dt(r){r.name&&Q9(r.name,!0)}function Hdt(r){va(r.typeExpression)}function Qdt(r){va(r.typeExpression)}function Kdt(r){n(a),iO(r);function a(){!r.type&&!g2(r)&&Q1(r,Le)}}function Xdt(r){let a=F0(r);a&&Fo(a)&&$e(r.tagName,_.An_arrow_function_cannot_have_a_this_parameter)}function Ydt(r){hye(r)}function Zdt(r){let a=F0(r);(!a||!hl(a)&&!Zc(a))&&$e(a,_.JSDoc_0_is_not_attached_to_a_class,Fn(r.tagName))}function emt(r){let a=F0(r);if(!a||!hl(a)&&!Zc(a)){$e(a,_.JSDoc_0_is_not_attached_to_a_class,Fn(r.tagName));return}let l=P0(a).filter(H2);w.assert(l.length>0),l.length>1&&$e(l[1],_.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);let f=k8e(r.class.expression),m=CS(a);if(m){let y=k8e(m.expression);y&&f.escapedText!==y.escapedText&&$e(f,_.JSDoc_0_1_does_not_match_the_extends_2_clause,Fn(r.tagName),Fn(f),Fn(y))}}function tmt(r){let a=kS(r);a&&Hu(a)&&$e(r,_.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function k8e(r){switch(r.kind){case 80:return r;case 212:return r.name;default:return}}function x8e(r){var a;z9(r),iO(r);let l=Yc(r);if(r.name&&r.name.kind===168&&Xd(r.name),ED(r)){let y=wn(r),k=r.localSymbol||y,M=(a=k.declarations)==null?void 0:a.find(G=>G.kind===r.kind&&!(G.flags&524288));r===M&&kX(k),y.parent&&kX(y)}let f=r.kind===174?void 0:r.body;if(va(f),Uhe(r,MD(r)),n(m),dn(r)){let y=D0(r);y&&y.typeExpression&&!uhe(Oi(y.typeExpression),r)&&$e(y.typeExpression.type,_.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function m(){wf(r)||(xc(f)&&!W9(r)&&Q1(r,Le),l&1&&ud(f)&&Xa(T_(r)))}}function m0(r){n(a);function a(){let l=Nr(r),f=Ur.get(l.path);f||(f=[],Ur.set(l.path,f)),f.push(r)}}function C8e(r,a){for(let l of r)switch(l.kind){case 264:case 232:rmt(l,a),iye(l,a);break;case 308:case 268:case 242:case 270:case 249:case 250:case 251:D8e(l,a);break;case 177:case 219:case 263:case 220:case 175:case 178:case 179:l.body&&D8e(l,a),iye(l,a);break;case 174:case 180:case 181:case 185:case 186:case 266:case 265:iye(l,a);break;case 196:nmt(l,a);break;default:w.assertNever(l,"Node should not have been registered for unused identifiers check")}}function w8e(r,a,l){let f=Ss(r)||r,m=A2(r)?_._0_is_declared_but_never_used:_._0_is_declared_but_its_value_is_never_read;l(r,0,_n(f,m,a))}function lO(r){return Be(r)&&Fn(r).charCodeAt(0)===95}function rmt(r,a){for(let l of r.members)switch(l.kind){case 175:case 173:case 178:case 179:if(l.kind===179&&l.symbol.flags&32768)break;let f=wn(l);!f.isReferenced&&(If(l,2)||Vl(l)&&zi(l.name))&&!(l.flags&33554432)&&a(l,0,_n(l.name,_._0_is_declared_but_its_value_is_never_read,Xi(f)));break;case 177:for(let m of l.parameters)!m.symbol.isReferenced&&ri(m,2)&&a(m,0,_n(m.name,_.Property_0_is_declared_but_its_value_is_never_read,kc(m.symbol)));break;case 182:case 241:case 176:break;default:w.fail("Unexpected class member")}}function nmt(r,a){let{typeParameter:l}=r;sye(l)&&a(r,1,_n(r,_._0_is_declared_but_its_value_is_never_read,Fn(l.name)))}function iye(r,a){let l=wn(r).declarations;if(!l||ka(l)!==r)return;let f=ob(r),m=new Set;for(let y of f){if(!sye(y))continue;let k=Fn(y.name),{parent:M}=y;if(M.kind!==196&&M.typeParameters.every(sye)){if(Uy(m,M)){let G=Nr(M),J=hd(M)?jG(M):LG(G,M.typeParameters),be=M.typeParameters.length===1?[_._0_is_declared_but_its_value_is_never_read,k]:[_.All_type_parameters_are_unused];a(y,1,wl(G,J.pos,J.end-J.pos,...be))}}else a(y,1,_n(y,_._0_is_declared_but_its_value_is_never_read,k))}}function sye(r){return!(Ja(r.symbol).isReferenced&262144)&&!lO(r.name)}function G9(r,a,l,f){let m=String(f(a)),y=r.get(m);y?y[1].push(l):r.set(m,[a,[l]])}function I8e(r){return Hn(zm(r),Gi)}function imt(r){return Da(r)?o_(r.parent)?!!(r.propertyName&&lO(r.name)):lO(r.name):pp(r)||(li(r)&&KT(r.parent.parent)||P8e(r))&&lO(r.name)}function D8e(r,a){let l=new Map,f=new Map,m=new Map;r.locals.forEach(y=>{if(!(y.flags&262144?!(y.flags&3&&!(y.isReferenced&3)):y.isReferenced||y.exportSymbol)&&y.declarations){for(let k of y.declarations)if(!imt(k))if(P8e(k))G9(l,amt(k),k,qa);else if(Da(k)&&o_(k.parent)){let M=ka(k.parent.elements);(k===M||!ka(k.parent.elements).dotDotDotToken)&&G9(f,k.parent,k,qa)}else if(li(k)){let M=MT(k)&7,G=Ss(k);(M!==4&&M!==6||!G||!lO(G))&&G9(m,k.parent,k,qa)}else{let M=y.valueDeclaration&&I8e(y.valueDeclaration),G=y.valueDeclaration&&Ss(y.valueDeclaration);M&&G?!Tf(M,M.parent)&&!bb(M)&&!lO(G)&&(Da(k)&&ov(k.parent)?G9(f,k.parent,k,qa):a(M,1,_n(G,_._0_is_declared_but_its_value_is_never_read,kc(y)))):w8e(k,kc(y),a)}}}),l.forEach(([y,k])=>{let M=y.parent;if((y.name?1:0)+(y.namedBindings?y.namedBindings.kind===275?1:y.namedBindings.elements.length:0)===k.length)a(M,0,k.length===1?_n(M,_._0_is_declared_but_its_value_is_never_read,Fn(Ra(k).name)):_n(M,_.All_imports_in_import_declaration_are_unused));else for(let J of k)w8e(J,Fn(J.name),a)}),f.forEach(([y,k])=>{let M=I8e(y.parent)?1:0;if(y.elements.length===k.length)k.length===1&&y.parent.kind===261&&y.parent.parent.kind===262?G9(m,y.parent.parent,y.parent,qa):a(y,M,k.length===1?_n(y,_._0_is_declared_but_its_value_is_never_read,J9(Ra(k).name)):_n(y,_.All_destructured_elements_are_unused));else for(let G of k)a(G,M,_n(G,_._0_is_declared_but_its_value_is_never_read,J9(G.name)))}),m.forEach(([y,k])=>{if(y.declarations.length===k.length)a(y,0,k.length===1?_n(Ra(k).name,_._0_is_declared_but_its_value_is_never_read,J9(Ra(k).name)):_n(y.parent.kind===244?y.parent:y,_.All_variables_are_unused));else for(let M of k)a(M,0,_n(M,_._0_is_declared_but_its_value_is_never_read,J9(M.name)))})}function smt(){var r;for(let a of vy)if(!((r=wn(a))!=null&&r.isReferenced)){let l=UT(a);w.assert(L0(l),"Only parameter declaration should be checked here");let f=_n(a.name,_._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,To(a.name),To(a.propertyName));l.type||Xs(f,wl(Nr(l),l.end,0,_.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,To(a.propertyName))),Ba.add(f)}}function J9(r){switch(r.kind){case 80:return Fn(r);case 208:case 207:return J9(Zs(Ra(r.elements),Da).name);default:return w.assertNever(r)}}function P8e(r){return r.kind===274||r.kind===277||r.kind===275}function amt(r){return r.kind===274?r:r.kind===275?r.parent:r.parent.parent}function wX(r){if(r.kind===242&&Wy(r),UB(r)){let a=Ci;or(r.statements,va),Ci=a}else or(r.statements,va);r.locals&&m0(r)}function omt(r){W>=2||!YB(r)||r.flags&33554432||xc(r.body)||or(r.parameters,a=>{a.name&&!Ls(a.name)&&a.name.escapedText===te.escapedName&&vv("noEmit",a,_.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function uO(r,a,l){if(a?.escapedText!==l||r.kind===173||r.kind===172||r.kind===175||r.kind===174||r.kind===178||r.kind===179||r.kind===304||r.flags&33554432||(Ld(r)||Dl(r)||gp(r))&&$y(r))return!1;let f=zm(r);return!(Gi(f)&&xc(f.parent.body))}function cmt(r){vr(r,a=>pw(a)&4?(r.kind!==80?$e(Ss(r),_.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):$e(r,_.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function lmt(r){vr(r,a=>pw(a)&8?(r.kind!==80?$e(Ss(r),_.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):$e(r,_.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function umt(r,a){if(e.getEmitModuleFormatOfFile(Nr(r))>=5||!a||!uO(r,a,"require")&&!uO(r,a,"exports")||el(r)&&ly(r)!==1)return;let l=Dt(r);l.kind===308&&xf(l)&&vv("noEmit",a,_.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,To(a),To(a))}function pmt(r,a){if(!a||W>=4||!uO(r,a,"Promise")||el(r)&&ly(r)!==1)return;let l=Dt(r);l.kind===308&&xf(l)&&l.flags&4096&&vv("noEmit",a,_.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,To(a),To(a))}function fmt(r,a){W<=8&&(uO(r,a,"WeakMap")||uO(r,a,"WeakSet"))&&hy.push(r)}function _mt(r){let a=nm(r);pw(a)&1048576&&(w.assert(Vl(r)&&Be(r.name)&&typeof r.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),vv("noEmit",r,_.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,r.name.escapedText))}function dmt(r,a){a&&W>=2&&W<=8&&uO(r,a,"Reflect")&&yy.push(r)}function mmt(r){let a=!1;if(Zc(r)){for(let l of r.members)if(pw(l)&2097152){a=!0;break}}else if(Ao(r))pw(r)&2097152&&(a=!0);else{let l=nm(r);l&&pw(l)&2097152&&(a=!0)}a&&(w.assert(Vl(r)&&Be(r.name),"The target of a Reflect collision check should be an identifier"),vv("noEmit",r,_.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,To(r.name),"Reflect"))}function BN(r,a){a&&(umt(r,a),pmt(r,a),fmt(r,a),dmt(r,a),ni(r)?(zN(a,_.Class_name_cannot_be_0),r.flags&33554432||Vmt(a)):H0(r)&&zN(a,_.Enum_name_cannot_be_0))}function gmt(r){if((MT(r)&7)!==0||L0(r))return;let a=wn(r);if(a.flags&1){if(!Be(r.name))return w.fail();let l=ft(r,r.name.escapedText,3,void 0,!1);if(l&&l!==a&&l.flags&2&&_he(l)&7){let f=j0(l.valueDeclaration,262),m=f.parent.kind===244&&f.parent.parent?f.parent.parent:void 0;if(!(m&&(m.kind===242&&Fs(m.parent)||m.kind===269||m.kind===268||m.kind===308))){let k=Xi(l);$e(r,_.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,k,k)}}}}function pO(r){return r===kt?Le:r===Zl?fu:r}function U9(r){var a;if(z9(r),Da(r)||va(r.type),!r.name)return;if(r.name.kind===168&&(Xd(r.name),XT(r)&&r.initializer&&Ac(r.initializer)),Da(r)){if(r.propertyName&&Be(r.name)&&L0(r)&&xc(i_(r).body)){vy.push(r);return}o_(r.parent)&&r.dotDotDotToken&&W<Jl.ObjectSpreadRest&&Bl(r,4),r.propertyName&&r.propertyName.kind===168&&Xd(r.propertyName);let m=r.parent.parent,y=r.dotDotDotToken?32:0,k=mi(m,y),M=r.propertyName||r.name;if(k&&!Ls(M)){let G=Py(M);if(L_(G)){let J=W_(G),K=ca(k,J);K&&(w9(K,void 0,!1),mhe(r,!!m.initializer&&m.initializer.kind===108,!1,k,K))}}}if(Ls(r.name)&&(r.name.kind===208&&W<Jl.BindingPatterns&&O.downlevelIteration&&Bl(r,512),or(r.name.elements,va)),r.initializer&&L0(r)&&xc(i_(r).body)){$e(r,_.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(Ls(r.name)){if(Wge(r))return;let m=XT(r)&&r.initializer&&r.parent.parent.kind!==250,y=!_t(r.name.elements,jO(Fl));if(m||y){let k=HC(r);if(m){let M=Ac(r.initializer);re&&y?KOe(M,r):DT(M,HC(r),r,r.initializer)}y&&(ov(r.name)?Bv(65,k,fe,r):re&&KOe(k,r))}return}let l=wn(r);if(l.flags&2097152&&(SS(r)||ire(r))){RX(r);return}r.name.kind===10&&$e(r.name,_.A_bigint_literal_cannot_be_used_as_a_property_name);let f=pO(an(l));if(r===l.valueDeclaration){let m=XT(r)&&l6(r);if(m&&!(dn(r)&&Sa(m)&&(m.properties.length===0||Tb(r.name))&&!!((a=l.exports)!=null&&a.size))&&r.parent.parent.kind!==250){let k=Ac(m);DT(k,f,r,m,void 0);let M=MT(r)&7;if(M===6){let G=iot(!0),J=aRe(!0);if(G!==fa&&J!==fa){let K=ii([G,J,jt,fe]);Ju(v3(k,r),K,m,_.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}}else if(M===4){let G=aRe(!0);if(G!==fa){let J=ii([G,jt,fe]);Ju(v3(k,r),J,m,_.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}l.declarations&&l.declarations.length>1&&_t(l.declarations,y=>y!==r&&VP(y)&&!E8e(y,r))&&$e(r.name,_.All_declarations_of_0_must_have_identical_modifiers,To(r.name))}else{let m=pO(HC(r));!rn(f)&&!rn(m)&&!Bh(f,m)&&!(l.flags&67108864)&&A8e(l.valueDeclaration,f,r,m),XT(r)&&r.initializer&&DT(Ac(r.initializer),m,r,r.initializer,void 0),l.valueDeclaration&&!E8e(r,l.valueDeclaration)&&$e(r.name,_.All_declarations_of_0_must_have_identical_modifiers,To(r.name))}r.kind!==173&&r.kind!==172&&(aO(r),(r.kind===261||r.kind===209)&&gmt(r),BN(r,r.name))}function A8e(r,a,l,f){let m=Ss(l),y=l.kind===173||l.kind===172?_.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:_.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,k=To(m),M=$e(m,y,k,Yr(a),Yr(f));r&&Xs(M,_n(r,_._0_was_also_declared_here,k))}function E8e(r,a){if(r.kind===170&&a.kind===261||r.kind===261&&a.kind===170)return!0;if(m2(r)!==m2(a))return!1;let l=1358;return b2(r,l)===b2(a,l)}function hmt(r){var a,l;(a=mn)==null||a.push(mn.Phase.Check,"checkVariableDeclaration",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath}),Yht(r),U9(r),(l=mn)==null||l.pop()}function ymt(r){return Qht(r),U9(r)}function IX(r){let a=Kh(r)&7;(a===4||a===6)&&W<Jl.UsingAndAwaitUsing&&Bl(r,16777216),or(r.declarations,va)}function vmt(r){!Jh(r)&&!Eye(r.declarationList)&&Zht(r),IX(r.declarationList)}function bmt(r){Wy(r),ts(r.expression)}function Smt(r){Wy(r);let a=fO(r.expression);aye(r.expression,a,r.thenStatement),va(r.thenStatement),r.thenStatement.kind===243&&$e(r.thenStatement,_.The_body_of_an_if_statement_cannot_be_the_empty_statement),va(r.elseStatement)}function aye(r,a,l){if(!re)return;f(r,l);function f(y,k){for(y=Qa(y),m(y,k);vn(y)&&(y.operatorToken.kind===57||y.operatorToken.kind===61);)y=Qa(y.left),m(y,k)}function m(y,k){let M=A6(y)?Qa(y.right):y;if(fh(M))return;if(A6(M)){f(M,k);return}let G=M===y?a:ts(M);if(G.flags&1024&&Ln(M)&&(Nn(M.expression).resolvedSymbol??Z).flags&384){$e(M,_.This_condition_will_always_return_0,G.value?"true":"false");return}let J=Ln(M)&&e8e(M.expression);if(!wm(G,4194304)||J)return;let K=Gs(G,0),be=!!LN(G);if(K.length===0&&!be)return;let he=Be(M)?M:Ln(M)?M.name:void 0,He=he&&rd(he);if(!He&&!be)return;He&&vn(y.parent)&&kmt(y.parent,He)||He&&k&&Tmt(y,k,he,He)||(be?bv(M,!0,_.This_condition_will_always_return_true_since_this_0_is_always_defined,CD(G)):$e(M,_.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function Tmt(r,a,l,f){return!!Ms(a,function m(y){if(Be(y)){let k=rd(y);if(k&&k===f){if(Be(r)||Be(l)&&vn(l.parent))return!0;let M=l.parent,G=y.parent;for(;M&&G;){if(Be(M)&&Be(G)||M.kind===110&&G.kind===110)return rd(M)===rd(G);if(Ln(M)&&Ln(G)){if(rd(M.name)!==rd(G.name))return!1;G=G.expression,M=M.expression}else if(Ws(M)&&Ws(G))G=G.expression,M=M.expression;else return!1}}}return Ms(y,m)})}function kmt(r,a){for(;vn(r)&&r.operatorToken.kind===56;){if(Ms(r.right,function f(m){if(Be(m)){let y=rd(m);if(y&&y===a)return!0}return Ms(m,f)}))return!0;r=r.parent}return!1}function xmt(r){Wy(r),va(r.statement),fO(r.expression)}function Cmt(r){Wy(r),fO(r.expression),va(r.statement)}function oye(r,a){if(r.flags&16384)$e(a,_.An_expression_of_type_void_cannot_be_tested_for_truthiness);else{let l=cye(a);l!==3&&$e(a,l===1?_.This_kind_of_expression_is_always_truthy:_.This_kind_of_expression_is_always_falsy)}return r}function cye(r){switch(r=Nc(r),r.kind){case 9:return r.text==="0"||r.text==="1"?3:1;case 210:case 220:case 10:case 232:case 219:case 285:case 286:case 211:case 14:return 1;case 223:case 106:return 2;case 15:case 11:return r.text?1:2;case 228:return cye(r.whenTrue)|cye(r.whenFalse);case 80:return sp(r)===ae?2:3}return 3}function fO(r,a){return oye(ts(r,a),r)}function wmt(r){Wy(r)||r.initializer&&r.initializer.kind===262&&Eye(r.initializer),r.initializer&&(r.initializer.kind===262?IX(r.initializer):ts(r.initializer)),r.condition&&fO(r.condition),r.incrementor&&ts(r.incrementor),va(r.statement),r.locals&&m0(r)}function Imt(r){I7e(r);let a=WF(r);if(r.awaitModifier?a&&zc(a)?br(r.awaitModifier,_.for_await_loops_cannot_be_used_inside_a_class_static_block):(Yc(a)&6)===2&&W<Jl.ForAwaitOf&&Bl(r,16384):O.downlevelIteration&&W<Jl.ForOf&&Bl(r,256),r.initializer.kind===262)IX(r.initializer);else{let l=r.initializer,f=V9(r);if(l.kind===210||l.kind===211)jx(l,f||Ye);else{let m=ts(l);rO(l,_.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,_.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),f&&DT(f,m,l,r.expression)}}va(r.statement),r.locals&&m0(r)}function Dmt(r){I7e(r);let a=ghe(ts(r.expression));if(r.initializer.kind===262){let l=r.initializer.declarations[0];l&&Ls(l.name)&&$e(l.name,_.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),IX(r.initializer)}else{let l=r.initializer,f=ts(l);l.kind===210||l.kind===211?$e(l,_.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):$s(Vot(a),f)?rO(l,_.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,_.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):$e(l,_.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===ur||!Iu(a,126091264))&&$e(r.expression,_.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,Yr(a)),va(r.statement),r.locals&&m0(r)}function V9(r){let a=r.awaitModifier?15:13;return Bv(a,UD(r.expression),fe,r.expression)}function Bv(r,a,l,f){return xn(a)?a:lye(r,a,l,f,!0)||Le}function lye(r,a,l,f,m){let y=(r&2)!==0;if(a===ur){f&&fye(f,a,y);return}let k=W>=2,M=!k&&O.downlevelIteration,G=O.noUncheckedIndexedAccess&&!!(r&128);if(k||M||y){let He=PX(a,r,k?f:void 0);if(m&&He){let gt=r&8?_.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:r&32?_.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:r&64?_.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:r&16?_.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;gt&&Ju(l,He.nextType,f,gt)}if(He||k)return G?U3(He&&He.yieldType):He&&He.yieldType}let J=a,K=!1;if(r&4){if(J.flags&1048576){let He=a.types,gt=Mn(He,xt=>!(xt.flags&402653316));gt!==He&&(J=ii(gt,2))}else J.flags&402653316&&(J=ur);if(K=J!==a,K&&J.flags&131072)return G?U3(ut):ut}if(!Lv(J)){if(f){let He=!!(r&4)&&!K,[gt,xt]=he(He,M);bv(f,xt&&!!LN(J),gt,Yr(J))}return K?G?U3(ut):ut:void 0}let be=z1(J,Qt);if(K&&be)return be.flags&402653316&&!O.noUncheckedIndexedAccess?ut:ii(G?[be,ut,fe]:[be,ut],2);return r&128?U3(be):be;function he(He,gt){var xt;return gt?He?[_.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[_.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:uye(r,0,a,void 0)?[_.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:Pmt((xt=a.symbol)==null?void 0:xt.escapedName)?[_.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:He?[_.Type_0_is_not_an_array_type_or_a_string_type,!0]:[_.Type_0_is_not_an_array_type,!0]}}function Pmt(r){switch(r){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function uye(r,a,l,f){if(xn(l))return;let m=PX(l,r,f);return m&&m[rTe(a)]}function g0(r=ur,a=ur,l=wt){if(r.flags&67359327&&a.flags&180227&&l.flags&180227){let f=Ad([r,a,l]),m=so.get(f);return m||(m={yieldType:r,returnType:a,nextType:l},so.set(f,m)),m}return{yieldType:r,returnType:a,nextType:l}}function N8e(r){let a,l,f;for(let m of r)if(!(m===void 0||m===ua)){if(m===Xo)return Xo;a=Fr(a,m.yieldType),l=Fr(l,m.returnType),f=Fr(f,m.nextType)}return a||l||f?g0(a&&ii(a),l&&ii(l),f&&ma(f)):ua}function DX(r,a){return r[a]}function Gh(r,a,l){return r[a]=l}function PX(r,a,l){var f,m;if(r===Nt)return ul;if(xn(r))return Xo;if(!(r.flags&1048576)){let J=l?{errors:void 0,skipLogging:!0}:void 0,K=M8e(r,a,l,J);if(K===ua){if(l){let be=fye(l,r,!!(a&2));J?.errors&&Xs(be,...J.errors)}return}else if((f=J?.errors)!=null&&f.length)for(let be of J.errors)Ba.add(be);return K}let y=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",k=DX(r,y);if(k)return k===ua?void 0:k;let M;for(let J of r.types){let K=l?{errors:void 0}:void 0,be=M8e(J,a,l,K);if(be===ua){if(l){let he=fye(l,r,!!(a&2));K?.errors&&Xs(he,...K.errors)}Gh(r,y,ua);return}else if((m=K?.errors)!=null&&m.length)for(let he of K.errors)Ba.add(he);M=Fr(M,be)}let G=M?N8e(M):ua;return Gh(r,y,G),G===ua?void 0:G}function pye(r,a){if(r===ua)return ua;if(r===Xo)return Xo;let{yieldType:l,returnType:f,nextType:m}=r;return a&&Fme(!0),g0(cw(l,a)||Le,cw(f,a)||Le,m)}function M8e(r,a,l,f){if(xn(r))return Xo;let m=!1;if(a&2){let y=R8e(r,Kc)||O8e(r,Kc);if(y)if(y===ua&&l)m=!0;else return a&8?pye(y,l):y}if(a&1){let y=R8e(r,Eo)||O8e(r,Eo);if(y)if(y===ua&&l)m=!0;else if(a&2){if(y!==ua)return y=pye(y,l),m?y:Gh(r,"iterationTypesOfAsyncIterable",y)}else return y}if(a&2){let y=j8e(r,Kc,l,f,m);if(y!==ua)return y}if(a&1){let y=j8e(r,Eo,l,f,m);if(y!==ua)return a&2?(y=pye(y,l),m?y:Gh(r,"iterationTypesOfAsyncIterable",y)):y}return ua}function R8e(r,a){return DX(r,a.iterableCacheKey)}function O8e(r,a){if(Bf(r,a.getGlobalIterableType(!1))||Bf(r,a.getGlobalIteratorObjectType(!1))||Bf(r,a.getGlobalIterableIteratorType(!1))||Bf(r,a.getGlobalGeneratorType(!1))){let[l,f,m]=Jo(r);return Gh(r,a.iterableCacheKey,g0(a.resolveIterationType(l,void 0)||l,a.resolveIterationType(f,void 0)||f,m))}if($Q(r,a.getGlobalBuiltinIteratorTypes())){let[l]=Jo(r),f=Ome(),m=wt;return Gh(r,a.iterableCacheKey,g0(a.resolveIterationType(l,void 0)||l,a.resolveIterationType(f,void 0)||f,m))}}function F8e(r){let a=tRe(!1),l=a&&lr(an(a),gc(r));return l&&L_(l)?W_(l):`__@${r}`}function j8e(r,a,l,f,m){let y=ca(r,F8e(a.iteratorSymbolName)),k=y&&!(y.flags&16777216)?an(y):void 0;if(xn(k))return m?Xo:Gh(r,a.iterableCacheKey,Xo);let M=k?Gs(k,0):void 0,G=Mn(M,be=>Pm(be)===0);if(!_t(G))return l&&_t(M)&&Ju(r,a.getGlobalIterableType(!0),l,void 0,void 0,f),m?ua:Gh(r,a.iterableCacheKey,ua);let J=ma(kr(G,Xa)),K=L8e(J,a,l,f,m)??ua;return m?K:Gh(r,a.iterableCacheKey,K)}function fye(r,a,l){let f=l?_.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:_.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,m=!!LN(a)||!l&&p4(r.parent)&&r.parent.expression===r&&JL(!1)!==$t&&$s(a,xN(JL(!1),[Le,Le,Le]));return bv(r,m,f,Yr(a))}function Amt(r,a,l,f){return L8e(r,a,l,f,!1)}function L8e(r,a,l,f,m){if(xn(r))return Xo;let y=Emt(r,a)||Nmt(r,a);return y===ua&&l&&(y=void 0,m=!0),y??(y=Fmt(r,a,l,f,m)),y===ua?void 0:y}function Emt(r,a){return DX(r,a.iteratorCacheKey)}function Nmt(r,a){if(Bf(r,a.getGlobalIterableIteratorType(!1))||Bf(r,a.getGlobalIteratorType(!1))||Bf(r,a.getGlobalIteratorObjectType(!1))||Bf(r,a.getGlobalGeneratorType(!1))){let[l,f,m]=Jo(r);return Gh(r,a.iteratorCacheKey,g0(l,f,m))}if($Q(r,a.getGlobalBuiltinIteratorTypes())){let[l]=Jo(r),f=Ome(),m=wt;return Gh(r,a.iteratorCacheKey,g0(l,f,m))}}function W8e(r,a){let l=lr(r,"done")||jr;return $s(a===0?jr:ct,l)}function Mmt(r){return W8e(r,0)}function Rmt(r){return W8e(r,1)}function Omt(r){if(xn(r))return Xo;let a=DX(r,"iterationTypesOfIteratorResult");if(a)return a;if(Bf(r,rot(!1))){let k=Jo(r)[0];return Gh(r,"iterationTypesOfIteratorResult",g0(k,void 0,void 0))}if(Bf(r,not(!1))){let k=Jo(r)[0];return Gh(r,"iterationTypesOfIteratorResult",g0(void 0,k,void 0))}let l=pl(r,Mmt),f=l!==ur?lr(l,"value"):void 0,m=pl(r,Rmt),y=m!==ur?lr(m,"value"):void 0;return!f&&!y?Gh(r,"iterationTypesOfIteratorResult",ua):Gh(r,"iterationTypesOfIteratorResult",g0(f,y||hr,void 0))}function _ye(r,a,l,f,m){var y,k,M,G;let J=ca(r,l);if(!J&&l!=="next")return;let K=J&&!(l==="next"&&J.flags&16777216)?l==="next"?an(J):ed(an(J),2097152):void 0;if(xn(K))return Xo;let be=K?Gs(K,0):Ke;if(be.length===0){if(f){let dr=l==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;m?(m.errors??(m.errors=[]),m.errors.push(_n(f,dr,l))):$e(f,dr,l)}return l==="next"?ua:void 0}if(K?.symbol&&be.length===1){let dr=a.getGlobalGeneratorType(!1),pr=a.getGlobalIteratorType(!1),pn=((k=(y=dr.symbol)==null?void 0:y.members)==null?void 0:k.get(l))===K.symbol,si=!pn&&((G=(M=pr.symbol)==null?void 0:M.members)==null?void 0:G.get(l))===K.symbol;if(pn||si){let $i=pn?dr:pr,{mapper:Qn}=K;return g0(jv($i.typeParameters[0],Qn),jv($i.typeParameters[1],Qn),l==="next"?jv($i.typeParameters[2],Qn):void 0)}}let he,He;for(let dr of be)l!=="throw"&&_t(dr.parameters)&&(he=Fr(he,Dm(dr,0))),He=Fr(He,Xa(dr));let gt,xt;if(l!=="throw"){let dr=he?ii(he):wt;if(l==="next")xt=dr;else if(l==="return"){let pr=a.resolveIterationType(dr,f)||Le;gt=Fr(gt,pr)}}let Vt,_r=He?ma(He):ur,$r=a.resolveIterationType(_r,f)||Le,on=Omt($r);return on===ua?(f&&(m?(m.errors??(m.errors=[]),m.errors.push(_n(f,a.mustHaveAValueDiagnostic,l))):$e(f,a.mustHaveAValueDiagnostic,l)),Vt=Le,gt=Fr(gt,Le)):(Vt=on.yieldType,gt=Fr(gt,on.returnType)),g0(Vt,ii(gt),xt)}function Fmt(r,a,l,f,m){let y=N8e([_ye(r,a,"next",l,f),_ye(r,a,"return",l,f),_ye(r,a,"throw",l,f)]);return m?y:Gh(r,a.iteratorCacheKey,y)}function zv(r,a,l){if(xn(a))return;let f=dye(a,l);return f&&f[rTe(r)]}function dye(r,a){if(xn(r))return Xo;let l=a?2:1,f=a?Kc:Eo;return PX(r,l,void 0)||Amt(r,f,void 0,void 0)}function jmt(r){Wy(r)||Hht(r)}function q9(r,a){let l=!!(a&1),f=!!(a&2);if(l){let m=zv(1,r,f);return m?f?Ly(WN(m)):m:Ye}return f?Ly(r)||Ye:r}function B8e(r,a){let l=q9(a,Yc(r));return!!(l&&(Vc(l,16384)||l.flags&32769))}function Lmt(r){if(Wy(r))return;let a=WF(r);if(a&&zc(a)){iu(r,_.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){iu(r,_.A_return_statement_can_only_be_used_within_a_function_body);return}let l=T_(a),f=Xa(l);if(re||r.expression||f.flags&131072){let m=r.expression?Ac(r.expression):fe;if(a.kind===179)r.expression&&$e(r,_.Setters_cannot_return_a_value);else if(a.kind===177){let y=r.expression?Ac(r.expression):fe;r.expression&&!DT(y,f,r,r.expression)&&$e(r,_.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class)}else if(MD(a)){let y=q9(f,Yc(a))??f;AX(a,y,r,r.expression,m)}}else a.kind!==177&&O.noImplicitReturns&&!B8e(a,f)&&$e(r,_.Not_all_code_paths_return_a_value)}function AX(r,a,l,f,m,y=!1){let k=dn(l),M=Yc(r);if(f){let he=Qa(f,k);if(vk(he)){AX(r,a,l,he.whenTrue,ts(he.whenTrue),!0),AX(r,a,l,he.whenFalse,ts(he.whenFalse),!0);return}}let G=l.kind===254,J=M&2?B9(m,!1,l,_.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):m,K=f&&pX(f);DT(J,a,G&&!y?l:K,K)}function Wmt(r){Wy(r)||r.flags&65536&&iu(r,_.with_statements_are_not_allowed_in_an_async_function_block),ts(r.expression);let a=Nr(r);if(!h0(a)){let l=jm(a,r.pos).start,f=r.statement.pos;Y1(a,l,f-l,_.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function Bmt(r){Wy(r);let a,l=!1,f=ts(r.expression);or(r.caseBlock.clauses,m=>{m.kind===298&&!l&&(a===void 0?a=m:(br(m,_.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),l=!0)),m.kind===297&&n(y(m)),or(m.statements,va),O.noFallthroughCasesInSwitch&&m.fallthroughFlowNode&&d9(m.fallthroughFlowNode)&&$e(m,_.Fallthrough_case_in_switch);function y(k){return()=>{let M=ts(k.expression);Hhe(f,M)||n3e(M,f,k.expression,void 0)}}}),r.caseBlock.locals&&m0(r.caseBlock)}function zmt(r){Wy(r)||vr(r.parent,a=>Fs(a)?"quit":a.kind===257&&a.label.escapedText===r.label.escapedText?(br(r.label,_.Duplicate_label_0,pc(r.label)),!0):!1),va(r.statement)}function Gmt(r){Wy(r)||Be(r.expression)&&!r.expression.escapedText&&cyt(r,_.Line_break_not_permitted_here),r.expression&&ts(r.expression)}function Jmt(r){Wy(r),wX(r.tryBlock);let a=r.catchClause;if(a){if(a.variableDeclaration){let l=a.variableDeclaration;U9(l);let f=ml(l);if(f){let m=Oi(f);m&&!(m.flags&3)&&iu(f,_.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(l.initializer)iu(l.initializer,_.Catch_clause_variable_cannot_have_an_initializer);else{let m=a.block.locals;m&&ch(a.locals,y=>{let k=m.get(y);k?.valueDeclaration&&(k.flags&2)!==0&&br(k.valueDeclaration,_.Cannot_redeclare_identifier_0_in_catch_clause,Ai(y))})}}wX(a.block)}r.finallyBlock&&wX(r.finallyBlock)}function EX(r,a,l){let f=zu(r);if(f.length===0)return;for(let y of Rv(r))l&&y.flags&4194304||z8e(r,y,YC(y,8576,!0),Sm(y));let m=a.valueDeclaration;if(m&&ni(m)){for(let y of m.members)if((!l&&!Ks(y)||l&&Ks(y))&&!ED(y)){let k=wn(y);z8e(r,k,Du(y.name.expression),Sm(k))}}if(f.length>1)for(let y of f)Umt(r,y)}function z8e(r,a,l,f){let m=a.valueDeclaration,y=Ss(m);if(y&&zi(y))return;let k=Tme(r,l),M=jn(r)&2?$o(r.symbol,265):void 0,G=m&&m.kind===227||y&&y.kind===168?m:void 0,J=Wl(a)===r.symbol?m:void 0;for(let K of k){let be=K.declaration&&Wl(wn(K.declaration))===r.symbol?K.declaration:void 0,he=J||be||(M&&!_t(Qd(r),He=>!!bT(He,a.escapedName)&&!!z1(He,K.keyType))?M:void 0);if(he&&!$s(f,K.type)){let He=cT(he,_.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Xi(a),Yr(f),Yr(K.keyType),Yr(K.type));G&&he!==G&&Xs(He,_n(G,_._0_is_declared_here,Xi(a))),Ba.add(He)}}}function Umt(r,a){let l=a.declaration,f=Tme(r,a.keyType),m=jn(r)&2?$o(r.symbol,265):void 0,y=l&&Wl(wn(l))===r.symbol?l:void 0;for(let k of f){if(k===a)continue;let M=k.declaration&&Wl(wn(k.declaration))===r.symbol?k.declaration:void 0,G=y||M||(m&&!_t(Qd(r),J=>!!jh(J,a.keyType)&&!!z1(J,k.keyType))?m:void 0);G&&!$s(a.type,k.type)&&$e(G,_._0_index_type_1_is_not_assignable_to_2_index_type_3,Yr(a.keyType),Yr(a.type),Yr(k.keyType),Yr(k.type))}}function zN(r,a){switch(r.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":case"undefined":$e(r,a,r.escapedText)}}function Vmt(r){W>=1&&r.escapedText==="Object"&&e.getEmitModuleFormatOfFile(Nr(r))<5&&$e(r,_.Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0,kw[z])}function qmt(r){let a=Mn(P0(r),c_);if(!Dr(a))return;let l=dn(r),f=new Set,m=new Set;if(or(r.parameters,({name:k},M)=>{Be(k)&&f.add(k.escapedText),Ls(k)&&m.add(M)}),xme(r)){let k=a.length-1,M=a[k];l&&M&&Be(M.name)&&M.typeExpression&&M.typeExpression.type&&!f.has(M.name.escapedText)&&!m.has(k)&&!Z_(Oi(M.typeExpression.type))&&$e(M.name,_.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Fn(M.name))}else or(a,({name:k,isNameFirst:M},G)=>{m.has(G)||Be(k)&&f.has(k.escapedText)||(Ip(k)?l&&$e(k,_.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,kf(k),kf(k.left)):M||Jd(l,k,_.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Fn(k)))})}function $9(r){let a=!1;if(r)for(let f=0;f<r.length;f++){let m=r[f];c8e(m),n(l(m,f))}function l(f,m){return()=>{f.default?(a=!0,$mt(f.default,r,m)):a&&$e(f,_.Required_type_parameters_may_not_follow_optional_type_parameters);for(let y=0;y<m;y++)r[y].symbol===f.symbol&&$e(f.name,_.Duplicate_identifier_0,To(f.name))}}}function $mt(r,a,l){f(r);function f(m){if(m.kind===184){let y=cK(m);if(y.flags&262144)for(let k=l;k<a.length;k++)y.symbol===wn(a[k])&&$e(m,_.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}Ms(m,f)}}function G8e(r){if(r.declarations&&r.declarations.length===1)return;let a=Wn(r);if(!a.typeParametersChecked){a.typeParametersChecked=!0;let l=tgt(r);if(!l||l.length<=1)return;let f=No(r);if(!J8e(l,f.localTypeParameters,ob)){let m=Xi(r);for(let y of l)$e(y.name,_.All_declarations_of_0_must_have_identical_type_parameters,m)}}}function J8e(r,a,l){let f=Dr(a),m=qg(a);for(let y of r){let k=l(y),M=k.length;if(M<m||M>f)return!1;for(let G=0;G<M;G++){let J=k[G],K=a[G];if(J.name.escapedText!==K.symbol.escapedName)return!1;let be=Aw(J),he=be&&Oi(be),He=jp(K);if(he&&He&&!Bh(he,He))return!1;let gt=J.default&&Oi(J.default),xt=ST(K);if(gt&&xt&&!Bh(gt,xt))return!1}}return!0}function U8e(r){let a=!$&&W<Jl.ClassAndClassElementDecorators&&Ky(!1,r),l=W<Jl.PrivateNamesAndClassStaticBlocks||W<Jl.ClassAndClassElementDecorators,f=!U;if(a||l)for(let m of r.members){if(a&&kz(!1,m,r))return _l(ab(r))??r;if(l){if(zc(m))return m;if(Ks(m)&&(Hu(m)||f&&B4(m)))return m}}}function Hmt(r){if(r.name)return;let a=Wie(r);if(!Bz(a))return;let l=!$&&W<Jl.ClassAndClassElementDecorators,f;l&&Ky(!1,r)?f=_l(ab(r))??r:f=U8e(r),f&&(Bl(f,4194304),(yl(a)||hs(a)||Da(a))&&na(a.name)&&Bl(f,8388608))}function Qmt(r){return V8e(r),lw(r),Hmt(r),an(wn(r))}function Kmt(r){or(r.members,va),m0(r)}function Xmt(r){let a=Bn(r.modifiers,Il);$&&a&&_t(r.members,l=>Cl(l)&&Hu(l))&&br(a,_.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!r.name&&!ri(r,2048)&&iu(r,_.A_class_declaration_without_the_default_modifier_must_have_a_name),V8e(r),or(r.members,va),m0(r)}function V8e(r){Mht(r),z9(r),BN(r,r.name),$9(ob(r)),aO(r);let a=wn(r),l=No(a),f=zf(l),m=an(a);G8e(a),kX(a),ldt(r),r.flags&33554432||udt(r);let k=im(r);if(k){or(k.typeArguments,va),W<Jl.Classes&&Bl(k.parent,1);let J=CS(r);J&&J!==k&&ts(J.expression);let K=Qd(l);K.length&&n(()=>{let be=K[0],he=Iy(l),He=Sp(he);if(Zmt(He,k),va(k.expression),_t(k.typeArguments)){or(k.typeArguments,va);for(let xt of Hd(He,k.typeArguments,k))if(!m8e(k,xt.typeParameters))break}let gt=zf(be,l.thisType);if(Ju(f,gt,void 0)?Ju(m,XRe(He),r.name||r,_.Class_static_side_0_incorrectly_extends_base_class_static_side_1):H8e(r,f,gt,_.Class_0_incorrectly_extends_base_class_1),he.flags&8650752&&(mu(m)?Gs(he,1).some(Vt=>Vt.flags&4)&&!ri(r,64)&&$e(r.name||r,_.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):$e(r.name||r,_.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(He.symbol&&He.symbol.flags&32)&&!(he.flags&8650752)){let xt=Oh(He,k.typeArguments,k);or(xt,Vt=>!yg(Vt.declaration)&&!Bh(Xa(Vt),be))&&$e(k.expression,_.Base_constructors_must_all_have_the_same_return_type)}rgt(l,be)})}Ymt(r,l,f,m);let M=Qw(r);if(M)for(let J of M)(!mo(J.expression)||$u(J.expression))&&$e(J.expression,_.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),tye(J),n(G(J));n(()=>{EX(l,a),EX(m,a,!0),Zhe(r),sgt(r)});function G(J){return()=>{let K=Pd(Oi(J));if(!rn(K))if(NL(K)){let be=K.symbol&&K.symbol.flags&32?_.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:_.Class_0_incorrectly_implements_interface_1,he=zf(K,l.thisType);Ju(f,he,void 0)||H8e(r,f,he,be)}else $e(J,_.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function Ymt(r,a,l,f){let y=im(r)&&Qd(a),k=y?.length?zf(Ra(y),a.thisType):void 0,M=Iy(a);for(let G of r.members)nG(G)||(yc(G)&&or(G.parameters,J=>{Tf(J,G)&&q8e(r,f,M,k,a,l,J,!0)}),q8e(r,f,M,k,a,l,G,!1))}function q8e(r,a,l,f,m,y,k,M,G=!0){let J=k.name&&rd(k.name)||rd(k);return J?$8e(r,a,l,f,m,y,d8(k),AS(k),Ks(k),M,J,G?k:void 0):0}function $8e(r,a,l,f,m,y,k,M,G,J,K,be){let he=dn(r),He=!!(r.flags&33554432);if(k&&K?.valueDeclaration&&cl(K.valueDeclaration)&&K.valueDeclaration.name&&l4e(K.valueDeclaration.name))return $e(be,he?_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:_.This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic),2;if(f&&(k||O.noImplicitOverride)){let gt=G?a:y,xt=G?l:f,Vt=ca(gt,K.escapedName),_r=ca(xt,K.escapedName),$r=Yr(f);if(Vt&&!_r&&k){if(be){let on=rFe(kc(K),xt);on?$e(be,he?_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:_.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,$r,Xi(on)):$e(be,he?_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:_.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,$r)}return 2}else if(Vt&&_r?.declarations&&O.noImplicitOverride&&!He){let on=_t(_r.declarations,AS);if(k)return 0;if(on){if(M&&on)return be&&$e(be,_.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,$r),1}else{if(be){let dr=J?he?_.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:_.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:he?_.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:_.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;$e(be,dr,$r)}return 1}}}else if(k){if(be){let gt=Yr(m);$e(be,he?_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:_.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,gt)}return 2}return 0}function H8e(r,a,l,f){let m=!1;for(let y of r.members){if(Ks(y))continue;let k=y.name&&rd(y.name)||rd(y);if(k){let M=ca(a,k.escapedName),G=ca(l,k.escapedName);if(M&&G){let J=()=>Ns(void 0,_.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Xi(k),Yr(a),Yr(l));Ju(an(M),an(G),y.name||y,void 0,J)||(m=!0)}}}m||Ju(a,l,r.name||r,f)}function Zmt(r,a){let l=Gs(r,1);if(l.length){let f=l[0].declaration;if(f&&If(f,2)){let m=iy(r.symbol);bye(a,m)||$e(a,_.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Cv(r.symbol))}}}function egt(r,a,l){if(!a.name)return 0;let f=wn(r),m=No(f),y=zf(m),k=an(f),G=im(r)&&Qd(m),J=G?.length?zf(Ra(G),m.thisType):void 0,K=Iy(m),be=a.parent?d8(a):ri(a,16);return $8e(r,k,K,J,m,y,be,AS(a),Ks(a),!1,l)}function QD(r){return Cc(r)&1?r.links.target:r}function tgt(r){return Mn(r.declarations,a=>a.kind===264||a.kind===265)}function rgt(r,a){var l,f,m,y,k;let M=ao(a),G=new Map;e:for(let J of M){let K=QD(J);if(K.flags&4194304)continue;let be=bT(r,K.escapedName);if(!be)continue;let he=QD(be),He=j_(K);if(w.assert(!!he,"derived should point to something, even if it is the base class' declaration."),he===K){let gt=iy(r.symbol);if(He&64&&(!gt||!ri(gt,64))){for(let on of Qd(r)){if(on===a)continue;let dr=bT(on,K.escapedName),pr=dr&&QD(dr);if(pr&&pr!==K)continue e}let xt=Yr(a),Vt=Yr(r),_r=Xi(J),$r=Fr((l=G.get(gt))==null?void 0:l.missedProperties,_r);G.set(gt,{baseTypeName:xt,typeName:Vt,missedProperties:$r})}}else{let gt=j_(he);if(He&2||gt&2)continue;let xt,Vt=K.flags&98308,_r=he.flags&98308;if(Vt&&_r){if((Cc(K)&6?(f=K.declarations)!=null&&f.some(dr=>Q8e(dr,He)):(m=K.declarations)!=null&&m.every(dr=>Q8e(dr,He)))||Cc(K)&262144||he.valueDeclaration&&vn(he.valueDeclaration))continue;let $r=Vt!==4&&_r===4;if($r||Vt===4&&_r!==4){let dr=$r?_._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:_._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;$e(Ss(he.valueDeclaration)||he.valueDeclaration,dr,Xi(K),Yr(a),Yr(r))}else if(X){let dr=(y=he.declarations)==null?void 0:y.find(pr=>pr.kind===173&&!pr.initializer);if(dr&&!(he.flags&33554432)&&!(He&64)&&!(gt&64)&&!((k=he.declarations)!=null&&k.some(pr=>!!(pr.flags&33554432)))){let pr=Z6(iy(r.symbol)),pn=dr.name;if(dr.exclamationToken||!pr||!Be(pn)||!re||!X8e(pn,r,pr)){let si=_.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;$e(Ss(he.valueDeclaration)||he.valueDeclaration,si,Xi(K),Yr(a))}}}continue}else if(dhe(K)){if(dhe(he)||he.flags&4)continue;w.assert(!!(he.flags&98304)),xt=_.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else K.flags&98304?xt=_.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:xt=_.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;$e(Ss(he.valueDeclaration)||he.valueDeclaration,xt,Yr(a),Xi(K),Yr(r))}}for(let[J,K]of G)if(Dr(K.missedProperties)===1)Zc(J)?$e(J,_.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Ra(K.missedProperties),K.baseTypeName):$e(J,_.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,K.typeName,Ra(K.missedProperties),K.baseTypeName);else if(Dr(K.missedProperties)>5){let be=kr(K.missedProperties.slice(0,4),He=>`'${He}'`).join(", "),he=Dr(K.missedProperties)-4;Zc(J)?$e(J,_.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,K.baseTypeName,be,he):$e(J,_.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more,K.typeName,K.baseTypeName,be,he)}else{let be=kr(K.missedProperties,he=>`'${he}'`).join(", ");Zc(J)?$e(J,_.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,K.baseTypeName,be):$e(J,_.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2,K.typeName,K.baseTypeName,be)}}function Q8e(r,a){return a&64&&(!hs(r)||!r.initializer)||uu(r.parent)}function ngt(r,a,l){if(!Dr(a))return l;let f=new Map;or(l,m=>{f.set(m.escapedName,m)});for(let m of a){let y=ao(zf(m,r.thisType));for(let k of y){let M=f.get(k.escapedName);M&&k.parent===M.parent&&f.delete(k.escapedName)}}return ds(f.values())}function igt(r,a){let l=Qd(r);if(l.length<2)return!0;let f=new Map;or(ome(r).declaredProperties,y=>{f.set(y.escapedName,{prop:y,containingType:r})});let m=!0;for(let y of l){let k=ao(zf(y,r.thisType));for(let M of k){let G=f.get(M.escapedName);if(!G)f.set(M.escapedName,{prop:M,containingType:y});else if(G.containingType!==r&&!Xct(G.prop,M)){m=!1;let K=Yr(G.containingType),be=Yr(y),he=Ns(void 0,_.Named_property_0_of_types_1_and_2_are_not_identical,Xi(M),K,be);he=Ns(he,_.Interface_0_cannot_simultaneously_extend_types_1_and_2,Yr(r),K,be),Ba.add(uh(Nr(a),a,he))}}}return m}function sgt(r){if(!re||!oe||r.flags&33554432)return;let a=Z6(r);for(let l of r.members)if(!(Mu(l)&128)&&!Ks(l)&&K8e(l)){let f=l.name;if(Be(f)||zi(f)||na(f)){let m=an(wn(l));m.flags&3||WD(m)||(!a||!X8e(f,m,a))&&$e(l.name,_.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,To(f))}}}function K8e(r){return r.kind===173&&!AS(r)&&!r.exclamationToken&&!r.initializer}function agt(r,a,l,f,m){for(let y of l)if(y.pos>=f&&y.pos<=m){let k=A.createPropertyAccessExpression(A.createThis(),r);Ka(k.expression,k),Ka(k,y),k.flowNode=y.returnFlowNode;let M=jy(k,a,_0(a));if(!WD(M))return!0}return!1}function X8e(r,a,l){let f=na(r)?A.createElementAccessExpression(A.createThis(),r.expression):A.createPropertyAccessExpression(A.createThis(),r);Ka(f.expression,f),Ka(f,l),f.flowNode=l.returnFlowNode;let m=jy(f,a,_0(a));return!WD(m)}function ogt(r){Jh(r)||Bht(r),VX(r.parent)||br(r,_._0_declarations_can_only_be_declared_inside_a_block,"interface"),$9(r.typeParameters),n(()=>{zN(r.name,_.Interface_name_cannot_be_0),aO(r);let a=wn(r);G8e(a);let l=$o(a,265);if(r===l){let f=No(a),m=zf(f);if(igt(f,r.name)){for(let y of Qd(f))Ju(m,zf(y,f.thisType),r.name,_.Interface_0_incorrectly_extends_interface_1);EX(f,a)}}p8e(r)}),or(iA(r),a=>{(!mo(a.expression)||$u(a.expression))&&$e(a.expression,_.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),tye(a)}),or(r.members,va),n(()=>{Zhe(r),m0(r)})}function cgt(r){if(Jh(r),zN(r.name,_.Type_alias_name_cannot_be_0),VX(r.parent)||br(r,_._0_declarations_can_only_be_declared_inside_a_block,"type"),aO(r),$9(r.typeParameters),r.type.kind===141){let a=Dr(r.typeParameters);(a===0?r.name.escapedText==="BuiltinIteratorReturn":a===1&&EU.has(r.name.escapedText))||$e(r.type,_.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types)}else va(r.type),m0(r)}function Y8e(r){let a=Nn(r);if(!(a.flags&1024)){a.flags|=1024;let l=0,f;for(let m of r.members){let y=lgt(m,l,f);Nn(m).enumMemberValue=y,l=typeof y.value=="number"?y.value+1:void 0,f=m}}}function lgt(r,a,l){if(HM(r.name))$e(r.name,_.Computed_property_names_are_not_allowed_in_enums);else if(pI(r.name))$e(r.name,_.An_enum_member_cannot_have_a_numeric_name);else{let f=p2(r.name);yh(f)&&!AA(f)&&$e(r.name,_.An_enum_member_cannot_have_a_numeric_name)}if(r.initializer)return ugt(r);if(r.parent.flags&33554432&&!E0(r.parent))return Ol(void 0);if(a===void 0)return $e(r.name,_.Enum_member_must_have_initializer),Ol(void 0);if(md(O)&&l?.initializer){let f=Lx(l);typeof f.value=="number"&&!f.resolvedOtherFiles||$e(r.name,_.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled)}return Ol(a)}function ugt(r){let a=E0(r.parent),l=r.initializer,f=Oe(l,r);return f.value!==void 0?a&&typeof f.value=="number"&&!isFinite(f.value)?$e(l,isNaN(f.value)?_.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:_.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):md(O)&&typeof f.value=="string"&&!f.isSyntacticallyString&&$e(l,_._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,`${Fn(r.parent.name)}.${p2(r.name)}`):a?$e(l,_.const_enum_member_initializers_must_be_constant_expressions):r.parent.flags&33554432?$e(l,_.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):Ju(ts(l),Qt,l,_.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),f}function Z8e(r,a){let l=Pc(r,111551,!0);if(!l)return Ol(void 0);if(r.kind===80){let f=r;if(AA(f.escapedText)&&l===jD(f.escapedText,111551,void 0))return Ol(+f.escapedText,!1)}if(l.flags&8)return a?e7e(r,l,a):Lx(l.valueDeclaration);if(iw(l)){let f=l.valueDeclaration;if(f&&li(f)&&!f.type&&f.initializer&&(!a||f!==a&&ky(f,a))){let m=Oe(f.initializer,f);return a&&Nr(a)!==Nr(f)?Ol(m.value,!1,!0,!0):Ol(m.value,m.isSyntacticallyString,m.resolvedOtherFiles,!0)}}return Ol(void 0)}function pgt(r,a){let l=r.expression;if(mo(l)&&Ha(r.argumentExpression)){let f=Pc(l,111551,!0);if(f&&f.flags&384){let m=gc(r.argumentExpression.text),y=f.exports.get(m);if(y)return w.assert(Nr(y.valueDeclaration)===Nr(f.valueDeclaration)),a?e7e(r,y,a):Lx(y.valueDeclaration)}}return Ol(void 0)}function e7e(r,a,l){let f=a.valueDeclaration;if(!f||f===l)return $e(r,_.Property_0_is_used_before_being_assigned,Xi(a)),Ol(void 0);if(!ky(f,l))return $e(r,_.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),Ol(0);let m=Lx(f);return l.parent!==f.parent?Ol(m.value,m.isSyntacticallyString,m.resolvedOtherFiles,!0):m}function fgt(r){n(()=>_gt(r))}function _gt(r){Jh(r),BN(r,r.name),aO(r),r.members.forEach(va),O.erasableSyntaxOnly&&!(r.flags&33554432)&&$e(r,_.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),Y8e(r);let a=wn(r),l=$o(a,r.kind);if(r===l){if(a.declarations&&a.declarations.length>1){let m=E0(r);or(a.declarations,y=>{H0(y)&&E0(y)!==m&&$e(Ss(y),_.Enum_declarations_must_all_be_const_or_non_const)})}let f=!1;or(a.declarations,m=>{if(m.kind!==267)return!1;let y=m;if(!y.members.length)return!1;let k=y.members[0];k.initializer||(f?$e(k.name,_.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):f=!0)})}}function dgt(r){zi(r.name)&&$e(r,_.An_enum_member_cannot_be_named_with_a_private_identifier),r.initializer&&ts(r.initializer)}function mgt(r){let a=r.declarations;if(a){for(let l of a)if((l.kind===264||l.kind===263&&ud(l.body))&&!(l.flags&33554432))return l}}function ggt(r,a){let l=nm(r),f=nm(a);return Qy(l)?Qy(f):Qy(f)?!1:l===f}function hgt(r){r.body&&(va(r.body),Cg(r)||m0(r)),n(a);function a(){var l,f;let m=Cg(r),y=r.flags&33554432;m&&!y&&$e(r.name,_.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);let k=pp(r),M=k?_.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:_.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(H9(r,M))return;if(Jh(r)||!y&&r.name.kind===11&&br(r.name,_.Only_ambient_modules_can_use_quoted_names),Be(r.name)&&(BN(r,r.name),!(r.flags&2080))){let J=Nr(r),K=Dte(r),be=jm(J,K);Qk.add(wl(J,be.start,be.length,_.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead))}aO(r);let G=wn(r);if(G.flags&512&&!y&&NU(r,kb(O))){if(O.erasableSyntaxOnly&&$e(r.name,_.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),md(O)&&!Nr(r).externalModuleIndicator&&$e(r.name,_.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,Ie),((l=G.declarations)==null?void 0:l.length)>1){let J=mgt(G);J&&(Nr(r)!==Nr(J)?$e(r.name,_.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):r.pos<J.pos&&$e(r.name,_.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));let K=$o(G,264);K&&ggt(r,K)&&(Nn(r).flags|=2048)}if(O.verbatimModuleSyntax&&r.parent.kind===308&&e.getEmitModuleFormatOfFile(r.parent)===1){let J=(f=r.modifiers)==null?void 0:f.find(K=>K.kind===95);J&&$e(J,_.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(k)if(vS(r)){if((m||wn(r).flags&33554432)&&r.body)for(let K of r.body.statements)mye(K,m)}else Qy(r.parent)?m?$e(r.name,_.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Ul(R_(r.name))&&$e(r.name,_.Ambient_module_declaration_cannot_specify_relative_module_name):m?$e(r.name,_.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):$e(r.name,_.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function mye(r,a){switch(r.kind){case 244:for(let f of r.declarationList.declarations)mye(f,a);break;case 278:case 279:iu(r,_.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 272:if(tk(r))break;case 273:iu(r,_.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 209:case 261:let l=r.name;if(Ls(l)){for(let f of l.elements)mye(f,a);break}case 264:case 267:case 263:case 265:case 268:case 266:if(a)return;break}}function ygt(r){switch(r.kind){case 80:return r;case 167:do r=r.left;while(r.kind!==80);return r;case 212:do{if(fh(r.expression)&&!zi(r.name))return r.name;r=r.expression}while(r.kind!==80);return r}}function NX(r){let a=d2(r);if(!a||xc(a))return!1;if(!ya(a))return $e(a,_.String_literal_expected),!1;let l=r.parent.kind===269&&pp(r.parent.parent);if(r.parent.kind!==308&&!l)return $e(a,r.kind===279?_.Export_declarations_are_not_permitted_in_a_namespace:_.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(l&&Ul(a.text)&&!pN(r))return $e(r,_.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!Dl(r)&&r.attributes){let f=r.attributes.token===118?_.Import_attribute_values_must_be_string_literal_expressions:_.Import_assertion_values_must_be_string_literal_expressions,m=!1;for(let y of r.attributes.elements)ya(y.value)||(m=!0,$e(y.value,f));return!m}return!0}function MX(r,a=!0){r===void 0||r.kind!==11||(a?(z===5||z===6)&&br(r,_.String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020):br(r,_.Identifier_expected))}function RX(r){var a,l,f,m,y;let k=wn(r),M=ru(k);if(M!==Z){if(k=Ja(k.exportSymbol||k),dn(r)&&!(M.flags&111551)&&!$y(r)){let K=lb(r)?r.propertyName||r.name:Vl(r)?r.name:r;if(w.assert(r.kind!==281),r.kind===282){let be=$e(K,_.Types_cannot_appear_in_export_declarations_in_JavaScript_files),he=(l=(a=Nr(r).symbol)==null?void 0:a.exports)==null?void 0:l.get(yS(r.propertyName||r.name));if(he===M){let He=(f=he.declarations)==null?void 0:f.find(Rw);He&&Xs(be,_n(He,_._0_is_automatically_exported_here,Ai(he.escapedName)))}}else{w.assert(r.kind!==261);let be=vr(r,vf(ac,Dl)),he=(be&&((m=_2(be))==null?void 0:m.text))??"...",He=Ai(Be(K)?K.escapedText:k.escapedName);$e(K,_._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,He,`import("${he}").${He}`)}return}let G=rf(M),J=(k.flags&1160127?111551:0)|(k.flags&788968?788968:0)|(k.flags&1920?1920:0);if(G&J){let K=r.kind===282?_.Export_declaration_conflicts_with_exported_declaration_of_0:_.Import_declaration_conflicts_with_local_declaration_of_0;$e(r,K,Xi(k))}else r.kind!==282&&O.isolatedModules&&!vr(r,$y)&&k.flags&1160127&&$e(r,_.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Xi(k),Ie);if(md(O)&&!$y(r)&&!(r.flags&33554432)){let K=vm(k),be=!(G&111551);if(be||K)switch(r.kind){case 274:case 277:case 272:{if(O.verbatimModuleSyntax){w.assertIsDefined(r.name,"An ImportClause with a symbol should have a name");let he=O.verbatimModuleSyntax&&tk(r)?_.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:be?_._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:_._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled,He=gb(r.kind===277&&r.propertyName||r.name);Ts($e(r,he,He),be?void 0:K,He)}be&&r.kind===272&&If(r,32)&&$e(r,_.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Ie);break}case 282:if(O.verbatimModuleSyntax||Nr(K)!==Nr(r)){let he=gb(r.propertyName||r.name),He=be?$e(r,_.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Ie):$e(r,_._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,he,Ie);Ts(He,be?void 0:K,he);break}}if(O.verbatimModuleSyntax&&r.kind!==272&&!dn(r)&&e.getEmitModuleFormatOfFile(Nr(r))===1?$e(r,Kk(r)):z===200&&r.kind!==272&&r.kind!==261&&e.getEmitModuleFormatOfFile(Nr(r))===1&&$e(r,_.ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve),O.verbatimModuleSyntax&&!$y(r)&&!(r.flags&33554432)&&G&128){let he=M.valueDeclaration,He=(y=e.getRedirectFromOutput(Nr(he).resolvedPath))==null?void 0:y.resolvedRef;he.flags&33554432&&(!He||!kb(He.commandLine.options))&&$e(r,_.Cannot_access_ambient_const_enums_when_0_is_enabled,Ie)}}if(gp(r)){let K=gye(k,r);vp(K)&&K.declarations&&wd(r,K.declarations,K.escapedName)}}}function gye(r,a){if(!(r.flags&2097152)||vp(r)||!tf(r))return r;let l=ru(r);if(l===Z)return l;for(;r.flags&2097152;){let f=tX(r);if(f){if(f===l)break;if(f.declarations&&Dr(f.declarations))if(vp(f)){wd(a,f.declarations,f.escapedName);break}else{if(r===l)break;r=f}}else break}return l}function OX(r){BN(r,r.name),RX(r),r.kind===277&&(MX(r.propertyName),xg(r.propertyName||r.name)&&Vm(O)&&e.getEmitModuleFormatOfFile(Nr(r))<4&&Bl(r,131072))}function hye(r){var a;let l=r.attributes;if(l){let f=Mme(!0);f!==fa&&Ju(Yde(l),a9(f,32768),l);let m=mV(r),y=LI(l,m?br:void 0),k=r.attributes.token===118;if(m&&y)return;if(!one(z))return br(l,k?_.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:_.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve);if(102<=z&&z<=199&&!k)return iu(l,_.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);if(r.moduleSpecifier&&xy(r.moduleSpecifier)===1)return br(l,k?_.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:_.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls);if(Zm(r)||(ac(r)?(a=r.importClause)==null?void 0:a.isTypeOnly:r.isTypeOnly))return br(l,k?_.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:_.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(y)return br(l,_.resolution_mode_can_only_be_set_for_type_only_imports)}}function vgt(r){return Tp(Ac(r.value))}function bgt(r){if(!H9(r,dn(r)?_.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:_.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Jh(r)&&r.modifiers&&iu(r,_.An_import_declaration_cannot_have_modifiers),NX(r)){let a,l=r.importClause;l&&!uyt(l)?(l.name&&OX(l),l.namedBindings&&(l.namedBindings.kind===275?(OX(l.namedBindings),e.getEmitModuleFormatOfFile(Nr(r))<4&&Vm(O)&&Bl(r,65536)):(a=np(r,r.moduleSpecifier),a&&or(l.namedBindings.elements,OX))),!l.isTypeOnly&&101<=z&&z<=199&&Yb(r.moduleSpecifier,a)&&!Sgt(r)&&$e(r.moduleSpecifier,_.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0,kw[z])):Je&&!l&&np(r,r.moduleSpecifier)}hye(r)}}function Sgt(r){return!!r.attributes&&r.attributes.elements.some(a=>{var l;return R_(a.name)==="type"&&((l=Hn(a.value,Ha))==null?void 0:l.text)==="json"})}function Tgt(r){if(!H9(r,dn(r)?_.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:_.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(Jh(r),O.erasableSyntaxOnly&&!(r.flags&33554432)&&$e(r,_.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),tk(r)||NX(r)))if(OX(r),sw(r,6),r.moduleReference.kind!==284){let a=ru(wn(r));if(a!==Z){let l=rf(a);if(l&111551){let f=wp(r.moduleReference);Pc(f,112575).flags&1920||$e(f,_.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,To(f))}l&788968&&zN(r.name,_.Import_name_cannot_be_0)}r.isTypeOnly&&br(r,_.An_import_alias_cannot_use_import_type)}else 5<=z&&z<=99&&!r.isTypeOnly&&!(r.flags&33554432)&&br(r,_.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function kgt(r){if(!H9(r,dn(r)?_.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:_.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Jh(r)&&Ere(r)&&iu(r,_.An_export_declaration_cannot_have_modifiers),xgt(r),!r.moduleSpecifier||NX(r))if(r.exportClause&&!Ag(r.exportClause)){or(r.exportClause.elements,Cgt);let a=r.parent.kind===269&&pp(r.parent.parent),l=!a&&r.parent.kind===269&&!r.moduleSpecifier&&r.flags&33554432;r.parent.kind!==308&&!a&&!l&&$e(r,_.Export_declarations_are_not_permitted_in_a_namespace)}else{let a=np(r,r.moduleSpecifier);a&&qd(a)?$e(r.moduleSpecifier,_.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Xi(a)):r.exportClause&&(RX(r.exportClause),MX(r.exportClause.name)),e.getEmitModuleFormatOfFile(Nr(r))<4&&(r.exportClause?Vm(O)&&Bl(r,65536):Bl(r,32768))}hye(r)}}function xgt(r){var a;return r.isTypeOnly&&((a=r.exportClause)==null?void 0:a.kind)===280?O7e(r.exportClause):!1}function H9(r,a){let l=r.parent.kind===308||r.parent.kind===269||r.parent.kind===268;return l||iu(r,a),!l}function Cgt(r){RX(r);let a=r.parent.parent.moduleSpecifier!==void 0;if(MX(r.propertyName,a),MX(r.name),lf(O)&&DD(r.propertyName||r.name,!0),a)Vm(O)&&e.getEmitModuleFormatOfFile(Nr(r))<4&&xg(r.propertyName||r.name)&&Bl(r,131072);else{let l=r.propertyName||r.name;if(l.kind===11)return;let f=ft(l,l.escapedText,2998271,void 0,!0);f&&(f===ae||f===Ue||f.declarations&&Qy(Dt(f.declarations[0])))?$e(l,_.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Fn(l)):sw(r,7)}}function wgt(r){let a=r.isExportEquals?_.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:_.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(H9(r,a))return;O.erasableSyntaxOnly&&r.isExportEquals&&!(r.flags&33554432)&&$e(r,_.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);let l=r.parent.kind===308?r.parent:r.parent.parent;if(l.kind===268&&!pp(l)){r.isExportEquals?$e(r,_.An_export_assignment_cannot_be_used_in_a_namespace):$e(r,_.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!Jh(r)&&rG(r)&&iu(r,_.An_export_assignment_cannot_have_modifiers);let f=ml(r);f&&Ju(Ac(r.expression),Oi(f),r.expression);let m=!r.isExportEquals&&!(r.flags&33554432)&&O.verbatimModuleSyntax&&e.getEmitModuleFormatOfFile(Nr(r))===1;if(r.expression.kind===80){let y=r.expression,k=yt(Pc(y,-1,!0,!0,r));if(k){sw(r,3);let M=vm(k,111551);if(rf(k)&111551?(Ac(y),!m&&!(r.flags&33554432)&&O.verbatimModuleSyntax&&M&&$e(y,r.isExportEquals?_.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:_.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,Fn(y))):!m&&!(r.flags&33554432)&&O.verbatimModuleSyntax&&$e(y,r.isExportEquals?_.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:_.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,Fn(y)),!m&&!(r.flags&33554432)&&md(O)&&!(k.flags&111551)){let G=rf(k,!1,!0);k.flags&2097152&&G&788968&&!(G&111551)&&(!M||Nr(M)!==Nr(r))?$e(y,r.isExportEquals?_._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:_._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,Fn(y),Ie):M&&Nr(M)!==Nr(r)&&Ts($e(y,r.isExportEquals?_._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:_._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,Fn(y),Ie),M,Fn(y))}}else Ac(y);lf(O)&&DD(y,!0)}else Ac(r.expression);m&&$e(r,Kk(r)),t7e(l),r.flags&33554432&&!mo(r.expression)&&br(r.expression,_.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),r.isExportEquals&&(z>=5&&z!==200&&(r.flags&33554432&&e.getImpliedNodeFormatForEmit(Nr(r))===99||!(r.flags&33554432)&&e.getImpliedNodeFormatForEmit(Nr(r))!==1)?br(r,_.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):z===4&&!(r.flags&33554432)&&br(r,_.Export_assignment_is_not_supported_when_module_flag_is_system))}function Igt(r){return Rl(r.exports,(a,l)=>l!=="export=")}function t7e(r){let a=wn(r),l=Wn(a);if(!l.exportsChecked){let f=a.exports.get("export=");if(f&&Igt(a)){let y=tf(f)||f.valueDeclaration;y&&!pN(y)&&!dn(y)&&$e(y,_.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}let m=pg(a);m&&m.forEach(({declarations:y,flags:k},M)=>{if(M==="__export"||k&1920)return;let G=Jy(y,FO(KGe,jO(uu)));if(!(k&524288&&G<=2)&&G>1&&!FX(y))for(let J of y)eTe(J)&&Ba.add(_n(J,_.Cannot_redeclare_exported_variable_0,Ai(M)))}),l.exportsChecked=!0}}function FX(r){return r&&r.length>1&&r.every(a=>dn(a)&&Oo(a)&&(rk(a.expression)||fh(a.expression)))}function va(r){if(r){let a=x;x=r,h=0,Dgt(r),x=a}}function Dgt(r){if(pw(r)&8388608)return;h6(r)&&or(r.jsDoc,({comment:l,tags:f})=>{r7e(l),or(f,m=>{r7e(m.comment),dn(r)&&va(m)})});let a=r.kind;if(i)switch(a){case 268:case 264:case 265:case 263:i.throwIfCancellationRequested()}switch(a>=244&&a<=260&&$w(r)&&r.flowNode&&!d9(r.flowNode)&&Jd(O.allowUnreachableCode===!1,r,_.Unreachable_code_detected),a){case 169:return c8e(r);case 170:return l8e(r);case 173:return f8e(r);case 172:return pdt(r);case 186:case 185:case 180:case 181:case 182:return iO(r);case 175:case 174:return fdt(r);case 176:return _dt(r);case 177:return ddt(r);case 178:case 179:return d8e(r);case 184:return tye(r);case 183:return odt(r);case 187:return bdt(r);case 188:return Sdt(r);case 189:return Tdt(r);case 190:return kdt(r);case 193:case 194:return xdt(r);case 197:case 191:case 192:return va(r.type);case 198:return Ddt(r);case 199:return Pdt(r);case 195:return Adt(r);case 196:return Edt(r);case 204:return Ndt(r);case 206:return Mdt(r);case 203:return Rdt(r);case 329:return emt(r);case 330:return Zdt(r);case 347:case 339:case 341:return Jdt(r);case 346:return Udt(r);case 345:return Vdt(r);case 325:case 326:case 327:return $dt(r);case 342:return Hdt(r);case 349:return Qdt(r);case 318:Kdt(r);case 316:case 315:case 313:case 314:case 323:n7e(r),Ms(r,va);return;case 319:Pgt(r);return;case 310:return va(r.type);case 334:case 336:case 335:return tmt(r);case 351:return qdt(r);case 344:return Xdt(r);case 352:return Ydt(r);case 200:return Cdt(r);case 201:return wdt(r);case 263:return Gdt(r);case 242:case 269:return wX(r);case 244:return vmt(r);case 245:return bmt(r);case 246:return Smt(r);case 247:return xmt(r);case 248:return Cmt(r);case 249:return wmt(r);case 250:return Dmt(r);case 251:return Imt(r);case 252:case 253:return jmt(r);case 254:return Lmt(r);case 255:return Wmt(r);case 256:return Bmt(r);case 257:return zmt(r);case 258:return Gmt(r);case 259:return Jmt(r);case 261:return hmt(r);case 209:return ymt(r);case 264:return Xmt(r);case 265:return ogt(r);case 266:return cgt(r);case 267:return fgt(r);case 307:return dgt(r);case 268:return hgt(r);case 273:return bgt(r);case 272:return Tgt(r);case 279:return kgt(r);case 278:return wgt(r);case 243:case 260:Wy(r);return;case 283:return gdt(r)}}function r7e(r){gs(r)&&or(r,a=>{s2(a)&&va(a)})}function n7e(r){if(!dn(r))if(m7(r)||bI(r)){let a=ta(m7(r)?54:58),l=r.postfix?_._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:_._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,f=r.type,m=Oi(f);br(r,l,a,Yr(bI(r)&&!(m===ur||m===hr)?ii(Fr([m,fe],r.postfix?void 0:jt)):m))}else br(r,_.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Pgt(r){n7e(r),va(r.type);let{parent:a}=r;if(Gi(a)&&SI(a.parent)){ka(a.parent.parameters)!==a&&$e(r,_.A_rest_parameter_must_be_last_in_a_parameter_list);return}K0(a)||$e(r,_.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);let l=r.parent.parent;if(!c_(l)){$e(r,_.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}let f=y6(l);if(!f)return;let m=O0(l);(!m||ka(m.parameters).symbol!==f)&&$e(r,_.A_rest_parameter_must_be_last_in_a_parameter_list)}function Agt(r){let a=Oi(r.type),{parent:l}=r,f=r.parent.parent;if(K0(r.parent)&&c_(f)){let m=O0(f),y=SJ(f.parent.parent);if(m||y){let k=Wo(y?f.parent.parent.typeExpression.parameters:m.parameters),M=y6(f);if(!k||M&&k.symbol===M&&kg(k))return Gu(a)}}return Gi(l)&&SI(l.parent)?Gu(a):ip(a)}function lw(r){let a=Nr(r),l=Nn(a);l.flags&1?w.assert(!l.deferredNodes,"A type-checked file should have no deferred nodes."):(l.deferredNodes||(l.deferredNodes=new Set),l.deferredNodes.add(r))}function i7e(r){let a=Nn(r);a.deferredNodes&&a.deferredNodes.forEach(Egt),a.deferredNodes=void 0}function Egt(r){var a,l;(a=mn)==null||a.push(mn.Phase.Check,"checkDeferredNode",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath});let f=x;switch(x=r,h=0,r.kind){case 214:case 215:case 216:case 171:case 287:Ox(r);break;case 219:case 220:case 175:case 174:T_t(r);break;case 178:case 179:d8e(r);break;case 232:Kmt(r);break;case 169:adt(r);break;case 286:Ppt(r);break;case 285:Ept(r);break;case 217:case 235:case 218:qft(r);break;case 223:ts(r.expression);break;case 227:h8(r)&&Ox(r);break}x=f,(l=mn)==null||l.pop()}function Ngt(r,a){var l,f;(l=mn)==null||l.push(mn.Phase.Check,a?"checkSourceFileNodes":"checkSourceFile",{path:r.path},!0);let m=a?"beforeCheckNodes":"beforeCheck",y=a?"afterCheckNodes":"afterCheck";dc(m),a?Rgt(r,a):Mgt(r),dc(y),P_("Check",m,y),(f=mn)==null||f.pop()}function s7e(r,a){if(a)return!1;switch(r){case 0:return!!O.noUnusedLocals;case 1:return!!O.noUnusedParameters;default:return w.assertNever(r)}}function a7e(r){return Ur.get(r.path)||Ke}function Mgt(r){let a=Nn(r);if(!(a.flags&1)){if(oI(r,O,e))return;M7e(r),sd(Vb),sd(yv),sd(hy),sd(yy),sd(vy),a.flags&8388608&&(Vb=a.potentialThisCollisions,yv=a.potentialNewTargetCollisions,hy=a.potentialWeakMapSetCollisions,yy=a.potentialReflectCollisions,vy=a.potentialUnusedRenamedBindingElementsInTypes),or(r.statements,va),va(r.endOfFileToken),i7e(r),xf(r)&&m0(r),n(()=>{!r.isDeclarationFile&&(O.noUnusedLocals||O.noUnusedParameters)&&C8e(a7e(r),(l,f,m)=>{!l2(l)&&s7e(f,!!(l.flags&33554432))&&Ba.add(m)}),r.isDeclarationFile||smt()}),xf(r)&&t7e(r),Vb.length&&(or(Vb,cmt),sd(Vb)),yv.length&&(or(yv,lmt),sd(yv)),hy.length&&(or(hy,_mt),sd(hy)),yy.length&&(or(yy,mmt),sd(yy)),a.flags|=1}}function Rgt(r,a){let l=Nn(r);if(!(l.flags&1)){if(oI(r,O,e))return;M7e(r),sd(Vb),sd(yv),sd(hy),sd(yy),sd(vy),or(a,va),i7e(r),(l.potentialThisCollisions||(l.potentialThisCollisions=[])).push(...Vb),(l.potentialNewTargetCollisions||(l.potentialNewTargetCollisions=[])).push(...yv),(l.potentialWeakMapSetCollisions||(l.potentialWeakMapSetCollisions=[])).push(...hy),(l.potentialReflectCollisions||(l.potentialReflectCollisions=[])).push(...yy),(l.potentialUnusedRenamedBindingElementsInTypes||(l.potentialUnusedRenamedBindingElementsInTypes=[])).push(...vy),l.flags|=8388608;for(let f of a){let m=Nn(f);m.flags|=8388608}}}function o7e(r,a,l){try{return i=a,Ogt(r,l)}finally{i=void 0}}function yye(){for(let r of t)r();t=[]}function vye(r,a){yye();let l=n;n=f=>f(),Ngt(r,a),n=l}function Ogt(r,a){if(r){yye();let l=Ba.getGlobalDiagnostics(),f=l.length;vye(r,a);let m=Ba.getDiagnostics(r.fileName);if(a)return m;let y=Ba.getGlobalDiagnostics();if(y!==l){let k=OY(l,y,vA);return Qi(k,m)}else if(f===0&&y.length>0)return Qi(y,m);return m}return or(e.getSourceFiles(),l=>vye(l)),Ba.getDiagnostics()}function Fgt(){return yye(),Ba.getGlobalDiagnostics()}function jgt(r,a){if(r.flags&67108864)return[];let l=Qs(),f=!1;return m(),l.delete("this"),kme(l);function m(){for(;r;){switch(Tg(r)&&r.locals&&!Qy(r)&&k(r.locals,a),r.kind){case 308:if(!Pl(r))break;case 268:M(wn(r).exports,a&2623475);break;case 267:k(wn(r).exports,a&8);break;case 232:r.name&&y(r.symbol,a);case 264:case 265:f||k(Ug(wn(r)),a&788968);break;case 219:r.name&&y(r.symbol,a);break}Qte(r)&&y(te,a),f=Ks(r),r=r.parent}k(nt,a)}function y(G,J){if(rI(G)&J){let K=G.escapedName;l.has(K)||l.set(K,G)}}function k(G,J){J&&G.forEach(K=>{y(K,J)})}function M(G,J){J&&G.forEach(K=>{!$o(K,282)&&!$o(K,281)&&K.escapedName!=="default"&&y(K,J)})}}function Lgt(r){return r.kind===80&&A2(r.parent)&&Ss(r.parent)===r}function c7e(r){for(;r.parent.kind===167;)r=r.parent;return r.parent.kind===184}function Wgt(r){for(;r.parent.kind===212;)r=r.parent;return r.parent.kind===234}function l7e(r,a){let l,f=cu(r);for(;f&&!(l=a(f));)f=cu(f);return l}function Bgt(r){return!!vr(r,a=>yc(a)&&ud(a.body)||hs(a)?!0:ni(a)||yo(a)?"quit":!1)}function bye(r,a){return!!l7e(r,l=>l===a)}function zgt(r){for(;r.parent.kind===167;)r=r.parent;if(r.parent.kind===272)return r.parent.moduleReference===r?r.parent:void 0;if(r.parent.kind===278)return r.parent.expression===r?r.parent:void 0}function jX(r){return zgt(r)!==void 0}function Ggt(r){switch(Hc(r.parent.parent)){case 1:case 3:return v_(r.parent);case 5:if(Ln(r.parent)&&nI(r.parent)===r)return;case 4:case 2:return wn(r.parent.parent)}}function Jgt(r){let a=r.parent;for(;Ip(a);)r=a,a=a.parent;if(a&&a.kind===206&&a.qualifier===r)return a}function Ugt(r){if(r.expression.kind===110){let a=fp(r,!1,!1);if(Fs(a)){let l=vOe(a);if(l){let f=X1(l,void 0),m=SOe(l,f);return m&&!xn(m)}}}}function u7e(r){if(Ig(r))return v_(r.parent);if(dn(r)&&r.parent.kind===212&&r.parent===r.parent.parent.left&&!zi(r)&&!X0(r)&&!Ugt(r.parent)){let a=Ggt(r);if(a)return a}if(r.parent.kind===278&&mo(r)){let a=Pc(r,2998271,!0);if(a&&a!==Z)return a}else if(xp(r)&&jX(r)){let a=j0(r,272);return w.assert(a!==void 0),t0(r,!0)}if(xp(r)){let a=Jgt(r);if(a){Oi(a);let l=Nn(r).resolvedSymbol;return l===Z?void 0:l}}for(;jre(r);)r=r.parent;if(Wgt(r)){let a=0;r.parent.kind===234?(a=Wm(r)?788968:111551,g8(r.parent)&&(a|=111551)):a=1920,a|=2097152;let l=mo(r)?Pc(r,a,!0):void 0;if(l)return l}if(r.parent.kind===342)return y6(r.parent);if(r.parent.kind===169&&r.parent.parent.kind===346){w.assert(!dn(r));let a=pre(r.parent);return a&&a.symbol}if(wg(r)){if(xc(r))return;let a=vr(r,vf(s2,$A,X0)),l=a?901119:111551;if(r.kind===80){if(Uw(r)&&ow(r)){let m=nX(r.parent);return m===Z?void 0:m}let f=Pc(r,l,!0,!0,O0(r));if(!f&&a){let m=vr(r,vf(ni,uu));if(m)return Q9(r,!0,wn(m))}if(f&&a){let m=kS(r);if(m&&oy(m)&&m===f.valueDeclaration)return Pc(r,l,!0,!0,Nr(m))||f}return f}else{if(zi(r))return oX(r);if(r.kind===212||r.kind===167){let f=Nn(r);return f.resolvedSymbol?f.resolvedSymbol:(r.kind===212?(aX(r,0),f.resolvedSymbol||(f.resolvedSymbol=p7e(Ac(r.expression),Py(r.name)))):XOe(r,0),!f.resolvedSymbol&&a&&Ip(r)?Q9(r):f.resolvedSymbol)}else if(X0(r))return Q9(r)}}else if(xp(r)&&c7e(r)){let a=r.parent.kind===184?788968:1920,l=Pc(r,a,!0,!0);return l&&l!==Z?l:sK(r)}if(r.parent.kind===183)return Pc(r,1,!0)}function p7e(r,a){let l=Tme(r,a);if(l.length&&r.members){let f=tK(km(r).members);if(l===zu(r))return f;if(f){let m=Wn(f),y=Ji(l,M=>M.declaration),k=kr(y,qa).join(",");if(m.filteredIndexSymbolCache||(m.filteredIndexSymbolCache=new Map),m.filteredIndexSymbolCache.has(k))return m.filteredIndexSymbolCache.get(k);{let M=wa(131072,"__index");return M.declarations=Ji(l,G=>G.declaration),M.parent=r.aliasSymbol?r.aliasSymbol:r.symbol?r.symbol:rd(M.declarations[0].parent),m.filteredIndexSymbolCache.set(k,M),M}}}}function Q9(r,a,l){if(xp(r)){let k=Pc(r,901119,a,!0,O0(r));if(!k&&Be(r)&&l&&(k=Ja(du(Wf(l),r.escapedText,901119))),k)return k}let f=Be(r)?l:Q9(r.left,a,l),m=Be(r)?r.escapedText:r.right.escapedText;if(f){let y=f.flags&111551&&ca(an(f),"prototype"),k=y?an(y):No(f);return ca(k,m)}}function rd(r,a){if(Li(r))return Pl(r)?Ja(r.symbol):void 0;let{parent:l}=r,f=l.parent;if(!(r.flags&67108864)){if(tTe(r)){let m=wn(l);return lb(r.parent)&&r.parent.propertyName===r?tX(m):m}else if(b6(r))return wn(l.parent);if(r.kind===80){if(jX(r))return u7e(r);if(l.kind===209&&f.kind===207&&r===l.propertyName){let m=uw(f),y=ca(m,r.escapedText);if(y)return y}else if(bk(l)&&l.name===r)return l.keywordToken===105&&Fn(r)==="target"?Fhe(l).symbol:l.keywordToken===102&&Fn(r)==="meta"?Z4e().members.get("meta"):void 0}switch(r.kind){case 80:case 81:case 212:case 167:if(!DS(r))return u7e(r);case 110:let m=fp(r,!1,!1);if(Fs(m)){let M=T_(m);if(M.thisParameter)return M.thisParameter}if(UF(r))return ts(r).symbol;case 198:return rge(r).symbol;case 108:return ts(r).symbol;case 137:let y=r.parent;return y&&y.kind===177?y.parent.symbol:void 0;case 11:case 15:if(M0(r.parent.parent)&&QP(r.parent.parent)===r||(r.parent.kind===273||r.parent.kind===279)&&r.parent.moduleSpecifier===r||dn(r)&&Zm(r.parent)&&r.parent.moduleSpecifier===r||dn(r)&&Vp(r.parent,!1)||Up(r.parent)||av(r.parent)&&Yh(r.parent.parent)&&r.parent.parent.argument===r.parent)return np(r,r,a);if(Ws(l)&&nk(l)&&l.arguments[1]===r)return wn(l);case 9:let k=xo(l)?l.argumentExpression===r?Du(l.expression):void 0:av(l)&&LS(f)?Oi(f.objectType):void 0;return k&&ca(k,gc(r.text));case 90:case 100:case 39:case 86:return v_(r.parent);case 206:return Yh(r)?rd(r.argument.literal,a):void 0;case 95:return Qo(r.parent)?w.checkDefined(r.parent.symbol):void 0;case 102:if(bk(r.parent)&&r.parent.name.escapedText==="defer")return;case 105:return bk(r.parent)?OFe(r.parent).symbol:void 0;case 104:if(vn(r.parent)){let M=Du(r.parent.right),G=$he(M);return G?.symbol??M.symbol}return;case 237:return ts(r).symbol;case 296:if(Uw(r)&&ow(r)){let M=nX(r.parent);return M===Z?void 0:M}default:return}}}function Vgt(r){if(Be(r)&&Ln(r.parent)&&r.parent.name===r){let a=Py(r),l=Du(r.parent.expression),f=l.flags&1048576?l.types:[l];return Ma(f,m=>Mn(zu(m),y=>KC(a,y.keyType)))}}function qgt(r){if(r&&r.kind===305)return Pc(r.name,2208703,!0)}function $gt(r){if(Xu(r)){let a=r.propertyName||r.name;return r.parent.parent.moduleSpecifier?A1(r.parent.parent,r):a.kind===11?void 0:Pc(a,2998271,!0)}else return Pc(r,2998271,!0)}function uw(r){if(Li(r)&&!Pl(r)||r.flags&67108864)return Ye;let a=oG(r),l=a&&K_(wn(a.class));if(Wm(r)){let f=Oi(r);return l?zf(f,l.thisType):f}if(wg(r))return f7e(r);if(l&&!a.isImplements){let f=_l(Qd(l));return f?zf(f,l.thisType):Ye}if(A2(r)){let f=wn(r);return No(f)}if(Lgt(r)){let f=rd(r);return f?No(f):Ye}if(Da(r))return qC(r,!0,0)||Ye;if(ql(r)){let f=wn(r);return f?an(f):Ye}if(tTe(r)){let f=rd(r);return f?an(f):Ye}if(Ls(r))return qC(r.parent,!0,0)||Ye;if(jX(r)){let f=rd(r);if(f){let m=No(f);return rn(m)?an(f):m}}return bk(r.parent)&&r.parent.keywordToken===r.kind?OFe(r.parent):Tk(r)?Mme(!1):Ye}function LX(r){if(w.assert(r.kind===211||r.kind===210),r.parent.kind===251){let m=V9(r.parent);return jx(r,m||Ye)}if(r.parent.kind===227){let m=Du(r.parent.right);return jx(r,m||Ye)}if(r.parent.kind===304){let m=Zs(r.parent.parent,Sa),y=LX(m)||Ye,k=jw(m.properties,r.parent);return KFe(m,y,k)}let a=Zs(r.parent,Tu),l=LX(a)||Ye,f=Bv(65,l,fe,r.parent)||Ye;return XFe(a,l,a.elements.indexOf(r),f)}function Hgt(r){let a=LX(Zs(r.parent.parent,WP));return a&&ca(a,r.escapedText)}function f7e(r){return _A(r)&&(r=r.parent),Tp(Du(r))}function _7e(r){let a=v_(r.parent);return Ks(r)?an(a):No(a)}function d7e(r){let a=r.name;switch(a.kind){case 80:return mf(Fn(a));case 9:case 11:return mf(a.text);case 168:let l=Xd(a);return Iu(l,12288)?l:ut;default:return w.fail("Unsupported property name.")}}function Sye(r){r=Sp(r);let a=Qs(ao(r)),l=Gs(r,0).length?ns:Gs(r,1).length?ja:void 0;return l&&or(ao(l),f=>{a.has(f.escapedName)||a.set(f.escapedName,f)}),Fp(a)}function WX(r){return Gs(r,0).length!==0||Gs(r,1).length!==0}function m7e(r){let a=Qgt(r);return a?Ma(a,m7e):[r]}function Qgt(r){if(Cc(r)&6)return Ji(Wn(r).containingType.types,a=>ca(a,r.escapedName));if(r.flags&33554432){let{links:{leftSpread:a,rightSpread:l,syntheticOrigin:f}}=r;return a?[a,l]:f?[f]:Qx(Kgt(r))}}function Kgt(r){let a,l=r;for(;l=Wn(l).target;)a=l;return a}function Xgt(r){if(ec(r))return!1;let a=As(r,Be);if(!a)return!1;let l=a.parent;return l?!((Ln(l)||yl(l))&&l.name===a)&&dO(a)===te:!1}function Ygt(r){return WM(r.parent)&&r===r.parent.name}function Zgt(r,a){var l;let f=As(r,Be);if(f){let m=dO(f,Ygt(f));if(m){if(m.flags&1048576){let k=Ja(m.exportSymbol);if(!a&&k.flags&944&&!(k.flags&3))return;m=k}let y=Wl(m);if(y){if(y.flags&512&&((l=y.valueDeclaration)==null?void 0:l.kind)===308){let k=y.valueDeclaration,M=Nr(f);return k!==M?void 0:k}return vr(f.parent,k=>WM(k)&&wn(k)===y)}}}}function eht(r){let a=rie(r);if(a)return a;let l=As(r,Be);if(l){let f=mht(l);if(rx(f,111551)&&!vm(f,111551))return tf(f)}}function tht(r){return r.valueDeclaration&&Da(r.valueDeclaration)&&UT(r.valueDeclaration).parent.kind===300}function g7e(r){if(r.flags&418&&r.valueDeclaration&&!Li(r.valueDeclaration)){let a=Wn(r);if(a.isDeclarationWithCollidingName===void 0){let l=nm(r.valueDeclaration);if(Cte(l)||tht(r))if(ft(l.parent,r.escapedName,111551,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(Tye(r.valueDeclaration,16384)){let f=Tye(r.valueDeclaration,32768),m=fb(l,!1),y=l.kind===242&&fb(l.parent,!1);a.isDeclarationWithCollidingName=!Mte(l)&&(!f||!m&&!y)}else a.isDeclarationWithCollidingName=!1}return a.isDeclarationWithCollidingName}return!1}function rht(r){if(!ec(r)){let a=As(r,Be);if(a){let l=dO(a);if(l&&g7e(l))return l.valueDeclaration}}}function nht(r){let a=As(r,ql);if(a){let l=wn(a);if(l)return g7e(l)}return!1}function h7e(r){switch(w.assert(xe),r.kind){case 272:return BX(wn(r));case 274:case 275:case 277:case 282:let a=wn(r);return!!a&&BX(a,!0);case 279:let l=r.exportClause;return!!l&&(Ag(l)||_t(l.elements,h7e));case 278:return r.expression&&r.expression.kind===80?BX(wn(r),!0):!0}return!1}function iht(r){let a=As(r,Dl);return a===void 0||a.parent.kind!==308||!tk(a)?!1:BX(wn(a))&&a.moduleReference&&!xc(a.moduleReference)}function BX(r,a){if(!r)return!1;let l=Nr(r.valueDeclaration),f=l&&wn(l);df(f);let m=yt(ru(r));return m===Z?!a||!vm(r):!!(rf(r,a,!0)&111551)&&(kb(O)||!_O(m))}function _O(r){return qhe(r)||!!r.constEnumOnlyModule}function y7e(r,a){if(w.assert(xe),kv(r)){let l=wn(r),f=l&&Wn(l);if(f?.referenced)return!0;let m=Wn(l).aliasTarget;if(m&&Mu(r)&32&&rf(m)&111551&&(kb(O)||!_O(m)))return!0}return a?!!Ms(r,l=>y7e(l,a)):!1}function v7e(r){if(ud(r.body)){if(ah(r)||Fm(r))return!1;let a=wn(r),l=TT(a);return l.length>1||l.length===1&&l[0].declaration!==r}return!1}function sht(r){let a=T7e(r);if(!a)return!1;let l=Oi(a);return rn(l)||WD(l)}function K9(r,a){return(aht(r,a)||oht(r))&&!sht(r)}function aht(r,a){return!re||C3(r)||c_(r)||!r.initializer?!1:ri(r,31)?!!a&&yo(a):!0}function oht(r){return re&&C3(r)&&(c_(r)||!r.initializer)&&ri(r,31)}function b7e(r){let a=As(r,f=>Gc(f)||li(f));if(!a)return!1;let l;if(li(a)){if(a.type||!dn(a)&&!mO(a))return!1;let f=YP(a);if(!f||!rm(f))return!1;l=wn(f)}else l=wn(a);return!l||!(l.flags&16|3)?!1:!!Rl(Wf(l),f=>f.flags&111551&&M2(f.valueDeclaration))}function cht(r){let a=As(r,Gc);if(!a)return Ke;let l=wn(a);return l&&ao(an(l))||Ke}function pw(r){var a;let l=r.id||0;return l<0||l>=y1.length?0:((a=y1[l])==null?void 0:a.flags)||0}function Tye(r,a){return lht(r,a),!!(pw(r)&a)}function lht(r,a){if(!O.noCheck&&wA(Nr(r),O)||Nn(r).calculatedFlags&a)return;switch(a){case 16:case 32:return k(r);case 128:case 256:case 2097152:return y(r);case 512:case 8192:case 65536:case 262144:return G(r);case 536870912:return K(r);case 4096:case 32768:case 16384:return he(r);default:return w.assertNever(a,`Unhandled node check flag calculation: ${w.formatNodeCheckFlags(a)}`)}function f(gt,xt){let Vt=xt(gt,gt.parent);if(Vt!=="skip")return Vt||K2(gt,xt)}function m(gt){let xt=Nn(gt);if(xt.calculatedFlags&a)return"skip";xt.calculatedFlags|=2097536,k(gt)}function y(gt){f(gt,m)}function k(gt){let xt=Nn(gt);xt.calculatedFlags|=48,gt.kind===108&&HK(gt)}function M(gt){let xt=Nn(gt);if(xt.calculatedFlags&a)return"skip";xt.calculatedFlags|=336384,K(gt)}function G(gt){f(gt,M)}function J(gt){return wg(gt)||Fu(gt.parent)&&(gt.parent.objectAssignmentInitializer??gt.parent.name)===gt}function K(gt){let xt=Nn(gt);if(xt.calculatedFlags|=536870912,Be(gt)&&(xt.calculatedFlags|=49152,J(gt)&&!(Ln(gt.parent)&>.parent.name===gt))){let Vt=sp(gt);Vt&&Vt!==Z&&mOe(gt,Vt)}}function be(gt){let xt=Nn(gt);if(xt.calculatedFlags&a)return"skip";xt.calculatedFlags|=53248,He(gt)}function he(gt){let xt=nm(Ig(gt)?gt.parent:gt);f(xt,be)}function He(gt){K(gt),na(gt)&&Xd(gt),zi(gt)&&cl(gt.parent)&&SX(gt.parent)}}function Lx(r){return Y8e(r.parent),Nn(r).enumMemberValue??Ol(void 0)}function S7e(r){switch(r.kind){case 307:case 212:case 213:return!0}return!1}function zX(r){if(r.kind===307)return Lx(r).value;Nn(r).resolvedSymbol||Ac(r);let a=Nn(r).resolvedSymbol||(mo(r)?Pc(r,111551,!0):void 0);if(a&&a.flags&8){let l=a.valueDeclaration;if(E0(l.parent))return Lx(l).value}}function kye(r){return!!(r.flags&524288)&&Gs(r,0).length>0}function uht(r,a){var l;let f=As(r,xp);if(!f||a&&(a=As(a),!a))return 0;let m=!1;if(Ip(f)){let K=Pc(wp(f),111551,!0,!0,a);m=!!((l=K?.declarations)!=null&&l.every($y))}let y=Pc(f,111551,!0,!0,a),k=y&&y.flags&2097152?ru(y):y;m||(m=!!(y&&vm(y,111551)));let M=Pc(f,788968,!0,!0,a),G=M&&M.flags&2097152?ru(M):M;if(y||m||(m=!!(M&&vm(M,788968))),k&&k===G){let K=Rme(!1);if(K&&k===K)return 9;let be=an(k);if(be&&Tm(be))return m?10:1}if(!G)return m?11:0;let J=No(G);return rn(J)?m?11:0:J.flags&3?11:Iu(J,245760)?2:Iu(J,528)?6:Iu(J,296)?3:Iu(J,2112)?4:Iu(J,402653316)?5:Aa(J)?7:Iu(J,12288)?8:kye(J)?10:Z_(J)?7:11}function pht(r,a,l,f,m){let y=As(r,K8);if(!y)return A.createToken(133);let k=wn(y);return ge.serializeTypeForDeclaration(y,k,a,l|1024,f,m)}function xye(r){r=As(r,EM);let a=r.kind===179?178:179,l=$o(wn(r),a),f=l&&l.pos<r.pos?l:r,m=l&&l.pos<r.pos?r:l,y=r.kind===179?r:l,k=r.kind===178?r:l;return{firstAccessor:f,secondAccessor:m,setAccessor:y,getAccessor:k}}function fht(r,a,l,f,m){let y=As(r,Fs);return y?ge.serializeReturnTypeForSignature(y,a,l|1024,f,m):A.createToken(133)}function _ht(r,a,l,f,m){let y=As(r,ht);return y?ge.serializeTypeForExpression(y,a,l|1024,f,m):A.createToken(133)}function dht(r){return nt.has(gc(r))}function dO(r,a){let l=Nn(r).resolvedSymbol;if(l)return l;let f=r;if(a){let m=r.parent;ql(m)&&r===m.name&&(f=Dt(m))}return ft(f,r.escapedText,3257279,void 0,!0)}function mht(r){let a=Nn(r).resolvedSymbol;return a&&a!==Z?a:ft(r,r.escapedText,3257279,void 0,!0,void 0)}function ght(r){if(!ec(r)){let a=As(r,Be);if(a){let l=dO(a);if(l)return yt(l).valueDeclaration}}}function hht(r){if(!ec(r)){let a=As(r,Be);if(a){let l=dO(a);if(l)return Mn(yt(l).declarations,f=>{switch(f.kind){case 261:case 170:case 209:case 173:case 304:case 305:case 307:case 211:case 263:case 219:case 220:case 264:case 232:case 267:case 175:case 178:case 179:case 268:return!0}return!1})}}}function yht(r){return KM(r)||li(r)&&mO(r)?CT(an(wn(r))):!1}function vht(r,a,l){let f=r.flags&1056?ge.symbolToExpression(r.symbol,111551,a,void 0,void 0,l):r===ct?A.createTrue():r===jr&&A.createFalse();if(f)return f;let m=r.value;return typeof m=="object"?A.createBigIntLiteral(m):typeof m=="string"?A.createStringLiteral(m):m<0?A.createPrefixUnaryExpression(41,A.createNumericLiteral(-m)):A.createNumericLiteral(m)}function bht(r,a){let l=an(wn(r));return vht(l,r,a)}function Cye(r){return r?(Gd(r),Nr(r).localJsxFactory||Sy):Sy}function wye(r){if(r){let a=Nr(r);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;let l=a.pragmas.get("jsxfrag"),f=gs(l)?l[0]:l;if(f)return a.localJsxFragmentFactory=Y2(f.arguments.factory,W),a.localJsxFragmentFactory}}if(O.jsxFragmentFactory)return Y2(O.jsxFragmentFactory,W)}function T7e(r){let a=ml(r);if(a)return a;if(r.kind===170&&r.parent.kind===179){let l=xye(r.parent).getAccessor;if(l)return wf(l)}}function Sht(){return{getReferencedExportContainer:Zgt,getReferencedImportDeclaration:eht,getReferencedDeclarationWithCollidingName:rht,isDeclarationWithCollidingName:nht,isValueAliasDeclaration:a=>{let l=As(a);return l&&xe?h7e(l):!0},hasGlobalName:dht,isReferencedAliasDeclaration:(a,l)=>{let f=As(a);return f&&xe?y7e(f,l):!0},hasNodeCheckFlag:(a,l)=>{let f=As(a);return f?Tye(f,l):!1},isTopLevelValueImportEqualsWithEntityName:iht,isDeclarationVisible:Gg,isImplementationOfOverload:v7e,requiresAddingImplicitUndefined:K9,isExpandoFunctionDeclaration:b7e,getPropertiesOfContainerFunction:cht,createTypeOfDeclaration:pht,createReturnTypeOfSignatureDeclaration:fht,createTypeOfExpression:_ht,createLiteralConstValue:bht,isSymbolAccessible:n0,isEntityNameVisible:VC,getConstantValue:a=>{let l=As(a,S7e);return l?zX(l):void 0},getEnumMemberValue:a=>{let l=As(a,oy);return l?Lx(l):void 0},collectLinkedAliases:DD,markLinkedReferences:a=>{let l=As(a);return l&&sw(l,0)},getReferencedValueDeclaration:ght,getReferencedValueDeclarations:hht,getTypeReferenceSerializationKind:uht,isOptionalParameter:C3,isArgumentsLocalBinding:Xgt,getExternalModuleFileFromDeclaration:a=>{let l=As(a,Fte);return l&&Iye(l)},isLiteralConstDeclaration:yht,isLateBound:a=>{let l=As(a,ql),f=l&&wn(l);return!!(f&&Cc(f)&4096)},getJsxFactoryEntity:Cye,getJsxFragmentFactoryEntity:wye,isBindingCapturedByNode:(a,l)=>{let f=As(a),m=As(l);return!!f&&!!m&&(li(m)||Da(m))&&Aut(f,m)},getDeclarationStatementsForSourceFile:(a,l,f,m)=>{let y=As(a);w.assert(y&&y.kind===308,"Non-sourcefile node passed into getDeclarationsForSourceFile");let k=wn(a);return k?(df(k),k.exports?ge.symbolTableToDeclarationStatements(k.exports,a,l,f,m):[]):a.locals?ge.symbolTableToDeclarationStatements(a.locals,a,l,f,m):[]},isImportRequiredByAugmentation:r,isDefinitelyReferenceToGlobalSymbolObject:Wg,createLateBoundIndexSignatures:(a,l,f,m,y)=>{let k=a.symbol,M=zu(an(k)),G=eK(k),J=G&&rK(G,ds(Ug(k).values())),K;for(let he of[M,J])if(Dr(he)){K||(K=[]);for(let He of he){if(He.declaration||He===Ri)continue;if(He.components&&Fi(He.components,Vt=>{var _r;return!!(Vt.name&&na(Vt.name)&&mo(Vt.name.expression)&&l&&((_r=VC(Vt.name.expression,l,!1))==null?void 0:_r.accessibility)===0)})){let Vt=Mn(He.components,_r=>!AD(_r));K.push(...kr(Vt,_r=>{be(_r.name.expression);let $r=he===M?[A.createModifier(126)]:void 0;return A.createPropertyDeclaration(Fr($r,He.isReadonly?A.createModifier(148):void 0),_r.name,(mp(_r)||hs(_r)||jd(_r)||hc(_r)||ah(_r)||Fm(_r))&&_r.questionToken?A.createToken(58):void 0,ge.typeToTypeNode(an(_r.symbol),l,f,m,y),void 0)}));continue}let gt=ge.indexInfoToIndexSignatureDeclaration(He,l,f,m,y);gt&&he===M&&(gt.modifiers||(gt.modifiers=A.createNodeArray())).unshift(A.createModifier(126)),gt&&K.push(gt)}}return K;function be(he){if(!y.trackSymbol)return;let He=wp(he),gt=ft(He,He.escapedText,1160127,void 0,!0);gt&&y.trackSymbol(gt,l,111551)}},symbolToDeclarations:(a,l,f,m,y,k)=>ge.symbolToDeclarations(a,l,f,m,y,k)};function r(a){let l=Nr(a);if(!l.symbol)return!1;let f=Iye(a);if(!f||f===l)return!1;let m=pg(l.symbol);for(let y of ds(m.values()))if(y.mergeId){let k=Ja(y);if(k.declarations){for(let M of k.declarations)if(Nr(M)===f)return!0}}return!1}}function Iye(r){let a=r.kind===268?Hn(r.name,ya):d2(r),l=_f(a,a,void 0);if(l)return $o(l,308)}function Tht(){for(let a of e.getSourceFiles())Kse(a,O);Uc=new Map;let r;for(let a of e.getSourceFiles())if(!a.redirectInfo){if(!xf(a)){let l=a.locals.get("globalThis");if(l?.declarations)for(let f of l.declarations)Ba.add(_n(f,_.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));lg(nt,a.locals)}a.jsGlobalAugmentations&&lg(nt,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(Xp=Qi(Xp,a.patternAmbientModules)),a.moduleAugmentations.length&&(r||(r=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((f,m)=>{nt.has(m)||nt.set(m,f)})}if(r)for(let a of r)for(let l of a)Cg(l.parent)&&uT(l);if(w1(),Wn(ae).type=j,Wn(te).type=Fc("IArguments",0,!0),Wn(Z).type=Ye,Wn(Ue).type=il(16,Ue),La=Fc("Array",1,!0),zt=Fc("Object",0,!0),Vr=Fc("Function",0,!0),ns=ce&&Fc("CallableFunction",0,!0)||Vr,ja=ce&&Fc("NewableFunction",0,!0)||Vr,bl=Fc("String",0,!0),zo=Fc("Number",0,!0),bc=Fc("Boolean",0,!0),Oc=Fc("RegExp",0,!0),fu=Gu(Le),Zl=Gu(kt),Zl===fa&&(Zl=oc(void 0,E,Ke,Ke,Ke)),Ca=oRe("ReadonlyArray",1)||La,Ff=Ca?xN(Ca,[Le]):fu,Xf=oRe("ThisType",1),r)for(let a of r)for(let l of a)Cg(l.parent)||uT(l);Uc.forEach(({firstFile:a,secondFile:l,conflictingSymbols:f})=>{if(f.size<8)f.forEach(({isBlockScoped:m,firstFileLocations:y,secondFileLocations:k},M)=>{let G=m?_.Cannot_redeclare_block_scoped_variable_0:_.Duplicate_identifier_0;for(let J of y)C1(J,G,M,k);for(let J of k)C1(J,G,M,y)});else{let m=ds(f.keys()).join(", ");Ba.add(Xs(_n(a,_.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,m),_n(l,_.Conflicts_are_in_this_file))),Ba.add(Xs(_n(l,_.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,m),_n(a,_.Conflicts_are_in_this_file)))}}),Uc=void 0}function Bl(r,a){if(O.importHelpers){let l=Nr(r);if(Lw(l,O)&&!(r.flags&33554432)){let f=xht(l,r);if(f!==Z){let m=Wn(f);if(m.requestedExternalEmitHelpers??(m.requestedExternalEmitHelpers=0),(m.requestedExternalEmitHelpers&a)!==a){let y=a&~m.requestedExternalEmitHelpers;for(let k=1;k<=16777216;k<<=1)if(y&k)for(let M of kht(k)){let G=nl(du(pg(f),gc(M),111551));G?k&524288?_t(TT(G),J=>hf(J)>3)||$e(r,_.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,_b,M,4):k&1048576?_t(TT(G),J=>hf(J)>4)||$e(r,_.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,_b,M,5):k&1024&&(_t(TT(G),J=>hf(J)>2)||$e(r,_.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,_b,M,3)):$e(r,_.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,_b,M)}}m.requestedExternalEmitHelpers|=a}}}}function kht(r){switch(r){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return $?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__setFunctionName"];case 8388608:return["__propKey"];case 16777216:return["__addDisposableResource","__disposeResources"];case 33554432:return["__rewriteRelativeImportExtension"];default:return w.fail("Unrecognized helper")}}function xht(r,a){let l=Nn(r);return l.externalHelpersModule||(l.externalHelpersModule=ix(yyt(r),_b,_.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||Z),l.externalHelpersModule}function Jh(r){var a;let l=Iht(r)||Cht(r);if(l!==void 0)return l;if(Gi(r)&&bb(r))return iu(r,_.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let f=Qc(r)?r.declarationList.flags&7:0,m,y,k,M,G,J=0,K=!1,be=!1;for(let he of r.modifiers)if(Il(he)){if(i6($,r,r.parent,r.parent.parent)){if($&&(r.kind===178||r.kind===179)){let He=xye(r);if(a_(He.firstAccessor)&&r===He.secondAccessor)return iu(r,_.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return r.kind===175&&!ud(r.body)?iu(r,_.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):iu(r,_.Decorators_are_not_valid_here);if(J&-34849)return br(he,_.Decorators_are_not_valid_here);if(be&&J&98303){w.assertIsDefined(G);let He=Nr(he);return h0(He)?!1:(Xs($e(he,_.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),_n(G,_.Decorator_used_before_export_here)),!0)}J|=32768,J&98303?J&32&&(K=!0):be=!0,G??(G=he)}else{if(he.kind!==148){if(r.kind===172||r.kind===174)return br(he,_._0_modifier_cannot_appear_on_a_type_member,ta(he.kind));if(r.kind===182&&(he.kind!==126||!ni(r.parent)))return br(he,_._0_modifier_cannot_appear_on_an_index_signature,ta(he.kind))}if(he.kind!==103&&he.kind!==147&&he.kind!==87&&r.kind===169)return br(he,_._0_modifier_cannot_appear_on_a_type_parameter,ta(he.kind));switch(he.kind){case 87:{if(r.kind!==267&&r.kind!==169)return br(r,_.A_class_member_cannot_have_the_0_keyword,ta(87));let xt=hd(r.parent)&&F0(r.parent)||r.parent;if(r.kind===169&&!(yo(xt)||ni(xt)||Pg(xt)||fI(xt)||B2(xt)||zA(xt)||jd(xt)))return br(he,_._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,ta(he.kind));break}case 164:if(J&16)return br(he,_._0_modifier_already_seen,"override");if(J&128)return br(he,_._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(J&8)return br(he,_._0_modifier_must_precede_1_modifier,"override","readonly");if(J&512)return br(he,_._0_modifier_must_precede_1_modifier,"override","accessor");if(J&1024)return br(he,_._0_modifier_must_precede_1_modifier,"override","async");J|=16,M=he;break;case 125:case 124:case 123:let He=j1(S2(he.kind));if(J&7)return br(he,_.Accessibility_modifier_already_seen);if(J&16)return br(he,_._0_modifier_must_precede_1_modifier,He,"override");if(J&256)return br(he,_._0_modifier_must_precede_1_modifier,He,"static");if(J&512)return br(he,_._0_modifier_must_precede_1_modifier,He,"accessor");if(J&8)return br(he,_._0_modifier_must_precede_1_modifier,He,"readonly");if(J&1024)return br(he,_._0_modifier_must_precede_1_modifier,He,"async");if(r.parent.kind===269||r.parent.kind===308)return br(he,_._0_modifier_cannot_appear_on_a_module_or_namespace_element,He);if(J&64)return he.kind===123?br(he,_._0_modifier_cannot_be_used_with_1_modifier,He,"abstract"):br(he,_._0_modifier_must_precede_1_modifier,He,"abstract");if(Hu(r))return br(he,_.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);J|=S2(he.kind);break;case 126:if(J&256)return br(he,_._0_modifier_already_seen,"static");if(J&8)return br(he,_._0_modifier_must_precede_1_modifier,"static","readonly");if(J&1024)return br(he,_._0_modifier_must_precede_1_modifier,"static","async");if(J&512)return br(he,_._0_modifier_must_precede_1_modifier,"static","accessor");if(r.parent.kind===269||r.parent.kind===308)return br(he,_._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(r.kind===170)return br(he,_._0_modifier_cannot_appear_on_a_parameter,"static");if(J&64)return br(he,_._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(J&16)return br(he,_._0_modifier_must_precede_1_modifier,"static","override");J|=256,m=he;break;case 129:if(J&512)return br(he,_._0_modifier_already_seen,"accessor");if(J&8)return br(he,_._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(J&128)return br(he,_._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(r.kind!==173)return br(he,_.accessor_modifier_can_only_appear_on_a_property_declaration);J|=512;break;case 148:if(J&8)return br(he,_._0_modifier_already_seen,"readonly");if(r.kind!==173&&r.kind!==172&&r.kind!==182&&r.kind!==170)return br(he,_.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(J&512)return br(he,_._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");J|=8;break;case 95:if(O.verbatimModuleSyntax&&!(r.flags&33554432)&&r.kind!==266&&r.kind!==265&&r.kind!==268&&r.parent.kind===308&&e.getEmitModuleFormatOfFile(Nr(r))===1)return br(he,_.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(J&32)return br(he,_._0_modifier_already_seen,"export");if(J&128)return br(he,_._0_modifier_must_precede_1_modifier,"export","declare");if(J&64)return br(he,_._0_modifier_must_precede_1_modifier,"export","abstract");if(J&1024)return br(he,_._0_modifier_must_precede_1_modifier,"export","async");if(ni(r.parent))return br(he,_._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(r.kind===170)return br(he,_._0_modifier_cannot_appear_on_a_parameter,"export");if(f===4)return br(he,_._0_modifier_cannot_appear_on_a_using_declaration,"export");if(f===6)return br(he,_._0_modifier_cannot_appear_on_an_await_using_declaration,"export");J|=32;break;case 90:let gt=r.parent.kind===308?r.parent:r.parent.parent;if(gt.kind===268&&!pp(gt))return br(he,_.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(f===4)return br(he,_._0_modifier_cannot_appear_on_a_using_declaration,"default");if(f===6)return br(he,_._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(J&32){if(K)return br(G,_.Decorators_are_not_valid_here)}else return br(he,_._0_modifier_must_precede_1_modifier,"export","default");J|=2048;break;case 138:if(J&128)return br(he,_._0_modifier_already_seen,"declare");if(J&1024)return br(he,_._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(J&16)return br(he,_._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(ni(r.parent)&&!hs(r))return br(he,_._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(r.kind===170)return br(he,_._0_modifier_cannot_appear_on_a_parameter,"declare");if(f===4)return br(he,_._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(f===6)return br(he,_._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(r.parent.flags&33554432&&r.parent.kind===269)return br(he,_.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(Hu(r))return br(he,_._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(J&512)return br(he,_._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");J|=128,y=he;break;case 128:if(J&64)return br(he,_._0_modifier_already_seen,"abstract");if(r.kind!==264&&r.kind!==186){if(r.kind!==175&&r.kind!==173&&r.kind!==178&&r.kind!==179)return br(he,_.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(r.parent.kind===264&&ri(r.parent,64))){let xt=r.kind===173?_.Abstract_properties_can_only_appear_within_an_abstract_class:_.Abstract_methods_can_only_appear_within_an_abstract_class;return br(he,xt)}if(J&256)return br(he,_._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(J&2)return br(he,_._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(J&1024&&k)return br(k,_._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(J&16)return br(he,_._0_modifier_must_precede_1_modifier,"abstract","override");if(J&512)return br(he,_._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(Vl(r)&&r.name.kind===81)return br(he,_._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");J|=64;break;case 134:if(J&1024)return br(he,_._0_modifier_already_seen,"async");if(J&128||r.parent.flags&33554432)return br(he,_._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(r.kind===170)return br(he,_._0_modifier_cannot_appear_on_a_parameter,"async");if(J&64)return br(he,_._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");J|=1024,k=he;break;case 103:case 147:{let xt=he.kind===103?8192:16384,Vt=he.kind===103?"in":"out",_r=hd(r.parent)&&(F0(r.parent)||Bn((a=Hw(r.parent))==null?void 0:a.tags,Ck))||r.parent;if(r.kind!==169||_r&&!(uu(_r)||ni(_r)||gd(_r)||Ck(_r)))return br(he,_._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,Vt);if(J&xt)return br(he,_._0_modifier_already_seen,Vt);if(xt&8192&&J&16384)return br(he,_._0_modifier_must_precede_1_modifier,"in","out");J|=xt;break}}}return r.kind===177?J&256?br(m,_._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):J&16?br(M,_._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):J&1024?br(k,_._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(r.kind===273||r.kind===272)&&J&128?br(y,_.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):r.kind===170&&J&31&&Ls(r.name)?br(r,_.A_parameter_property_may_not_be_declared_using_a_binding_pattern):r.kind===170&&J&31&&r.dotDotDotToken?br(r,_.A_parameter_property_cannot_be_declared_using_a_rest_parameter):J&1024?Pht(r,k):!1}function Cht(r){if(!r.modifiers)return!1;let a=wht(r);return a&&iu(a,_.Modifiers_cannot_appear_here)}function GX(r,a){let l=Bn(r.modifiers,la);return l&&l.kind!==a?l:void 0}function wht(r){switch(r.kind){case 178:case 179:case 177:case 173:case 172:case 175:case 174:case 182:case 268:case 273:case 272:case 279:case 278:case 219:case 220:case 170:case 169:return;case 176:case 304:case 305:case 271:case 283:return Bn(r.modifiers,la);default:if(r.parent.kind===269||r.parent.kind===308)return;switch(r.kind){case 263:return GX(r,134);case 264:case 186:return GX(r,128);case 232:case 265:case 266:return Bn(r.modifiers,la);case 244:return r.declarationList.flags&4?GX(r,135):Bn(r.modifiers,la);case 267:return GX(r,87);default:w.assertNever(r)}}}function Iht(r){let a=Dht(r);return a&&iu(a,_.Decorators_are_not_valid_here)}function Dht(r){return LJ(r)?Bn(r.modifiers,Il):void 0}function Pht(r,a){switch(r.kind){case 175:case 263:case 219:case 220:return!1}return br(a,_._0_modifier_cannot_be_used_here,"async")}function fw(r,a=_.Trailing_comma_not_allowed){return r&&r.hasTrailingComma?Y1(r[0],r.end-1,1,a):!1}function k7e(r,a){if(r&&r.length===0){let l=r.pos-1,f=ha(a.text,r.end)+1;return Y1(a,l,f-l,_.Type_parameter_list_cannot_be_empty)}return!1}function Aht(r){let a=!1,l=r.length;for(let f=0;f<l;f++){let m=r[f];if(m.dotDotDotToken){if(f!==l-1)return br(m.dotDotDotToken,_.A_rest_parameter_must_be_last_in_a_parameter_list);if(m.flags&33554432||fw(r,_.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),m.questionToken)return br(m.questionToken,_.A_rest_parameter_cannot_be_optional);if(m.initializer)return br(m.name,_.A_rest_parameter_cannot_have_an_initializer)}else if(XQ(m)){if(a=!0,m.questionToken&&m.initializer)return br(m.name,_.Parameter_cannot_have_question_mark_and_initializer)}else if(a&&!m.initializer)return br(m.name,_.A_required_parameter_cannot_follow_an_optional_parameter)}}function Eht(r){return Mn(r,a=>!!a.initializer||Ls(a.name)||kg(a))}function Nht(r){if(W>=3){let a=r.body&&Bs(r.body)&&RJ(r.body.statements);if(a){let l=Eht(r.parameters);if(Dr(l)){or(l,m=>{Xs($e(m,_.This_parameter_is_not_allowed_with_use_strict_directive),_n(a,_.use_strict_directive_used_here))});let f=l.map((m,y)=>y===0?_n(m,_.Non_simple_parameter_declared_here):_n(m,_.and_here));return Xs($e(a,_.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...f),!0}}}return!1}function JX(r){let a=Nr(r);return Jh(r)||k7e(r.typeParameters,a)||Aht(r.parameters)||Rht(r,a)||yo(r)&&Nht(r)}function Mht(r){let a=Nr(r);return Wht(r)||k7e(r.typeParameters,a)}function Rht(r,a){if(!Fo(r))return!1;r.typeParameters&&!(Dr(r.typeParameters)>1||r.typeParameters.hasTrailingComma||r.typeParameters[0].constraint)&&a&&Bc(a.fileName,[".mts",".cts"])&&br(r.typeParameters[0],_.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);let{equalsGreaterThanToken:l}=r,f=Hs(a,l.pos).line,m=Hs(a,l.end).line;return f!==m&&br(l,_.Line_terminator_not_permitted_before_arrow)}function Oht(r){let a=r.parameters[0];if(r.parameters.length!==1)return br(a?a.name:r,_.An_index_signature_must_have_exactly_one_parameter);if(fw(r.parameters,_.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return br(a.dotDotDotToken,_.An_index_signature_cannot_have_a_rest_parameter);if(rG(a))return br(a.name,_.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return br(a.questionToken,_.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return br(a.name,_.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return br(a.name,_.An_index_signature_parameter_must_have_a_type_annotation);let l=Oi(a.type);return td(l,f=>!!(f.flags&8576))||U1(l)?br(a.name,_.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):gf(l,nK)?r.type?!1:br(r,_.An_index_signature_must_have_a_type_annotation):br(a.name,_.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function Fht(r){return Jh(r)||Oht(r)}function jht(r,a){if(a&&a.length===0){let l=Nr(r),f=a.pos-1,m=ha(l.text,a.end)+1;return Y1(l,f,m-f,_.Type_argument_list_cannot_be_empty)}return!1}function X9(r,a){return fw(a)||jht(r,a)}function Lht(r){return r.questionDotToken||r.flags&64?br(r.template,_.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function x7e(r){let a=r.types;if(fw(a))return!0;if(a&&a.length===0){let l=ta(r.token);return Y1(r,a.pos,0,_._0_list_cannot_be_empty,l)}return _t(a,C7e)}function C7e(r){return sy(r)&&BA(r.expression)&&r.typeArguments?br(r,_.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):X9(r,r.typeArguments)}function Wht(r){let a=!1,l=!1;if(!Jh(r)&&r.heritageClauses)for(let f of r.heritageClauses){if(f.token===96){if(a)return iu(f,_.extends_clause_already_seen);if(l)return iu(f,_.extends_clause_must_precede_implements_clause);if(f.types.length>1)return iu(f.types[1],_.Classes_can_only_extend_a_single_class);a=!0}else{if(w.assert(f.token===119),l)return iu(f,_.implements_clause_already_seen);l=!0}x7e(f)}}function Bht(r){let a=!1;if(r.heritageClauses)for(let l of r.heritageClauses){if(l.token===96){if(a)return iu(l,_.extends_clause_already_seen);a=!0}else return w.assert(l.token===119),iu(l,_.Interface_declaration_cannot_have_implements_clause);x7e(l)}return!1}function UX(r){if(r.kind!==168)return!1;let a=r;return a.expression.kind===227&&a.expression.operatorToken.kind===28?br(a.expression,_.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function Dye(r){if(r.asteriskToken){if(w.assert(r.kind===263||r.kind===219||r.kind===175),r.flags&33554432)return br(r.asteriskToken,_.Generators_are_not_allowed_in_an_ambient_context);if(!r.body)return br(r.asteriskToken,_.An_overload_signature_cannot_be_declared_as_a_generator)}}function Pye(r,a){return!!r&&br(r,a)}function w7e(r,a){return!!r&&br(r,a)}function zht(r,a){let l=new Map;for(let f of r.properties){if(f.kind===306){if(a){let k=Qa(f.expression);if(Tu(k)||Sa(k))return br(f.expression,_.A_rest_element_cannot_contain_a_binding_pattern)}continue}let m=f.name;if(m.kind===168&&UX(m),f.kind===305&&!a&&f.objectAssignmentInitializer&&br(f.equalsToken,_.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),m.kind===81&&br(m,_.Private_identifiers_are_not_allowed_outside_class_bodies),yd(f)&&f.modifiers)for(let k of f.modifiers)la(k)&&(k.kind!==134||f.kind!==175)&&br(k,_._0_modifier_cannot_be_used_here,pc(k));else if(Gie(f)&&f.modifiers)for(let k of f.modifiers)la(k)&&br(k,_._0_modifier_cannot_be_used_here,pc(k));let y;switch(f.kind){case 305:case 304:w7e(f.exclamationToken,_.A_definite_assignment_assertion_is_not_permitted_in_this_context),Pye(f.questionToken,_.An_object_member_cannot_be_declared_optional),m.kind===9&&R7e(m),m.kind===10&&Ih(!0,_n(m,_.A_bigint_literal_cannot_be_used_as_a_property_name)),y=4;break;case 175:y=8;break;case 178:y=1;break;case 179:y=2;break;default:w.assertNever(f,"Unexpected syntax kind:"+f.kind)}if(!a){let k=Nye(m);if(k===void 0)continue;let M=l.get(k);if(!M)l.set(k,y);else if(y&8&&M&8)br(m,_.Duplicate_identifier_0,pc(m));else if(y&4&&M&4)br(m,_.An_object_literal_cannot_have_multiple_properties_with_the_same_name,pc(m));else if(y&3&&M&3)if(M!==3&&y!==M)l.set(k,y|M);else return br(m,_.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return br(m,_.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function Ght(r){Jht(r.tagName),X9(r,r.typeArguments);let a=new Map;for(let l of r.attributes.properties){if(l.kind===294)continue;let{name:f,initializer:m}=l,y=NA(f);if(!a.get(y))a.set(y,!0);else return br(f,_.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(m&&m.kind===295&&!m.expression)return br(m,_.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function Jht(r){if(Ln(r)&&lm(r.expression))return br(r.expression,_.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(lm(r)&&E8(O)&&!Yw(r.namespace.escapedText))return br(r,_.React_components_cannot_include_JSX_namespace_names)}function Uht(r){if(r.expression&&KA(r.expression))return br(r.expression,_.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function I7e(r){if(Wy(r))return!0;if(r.kind===251&&r.awaitModifier&&!(r.flags&65536)){let a=Nr(r);if(zF(r)){if(!h0(a))switch(Lw(a,O)||Ba.add(_n(r.awaitModifier,_.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),z){case 100:case 101:case 102:case 199:if(a.impliedNodeFormat===1){Ba.add(_n(r.awaitModifier,_.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 200:case 4:if(W>=4)break;default:Ba.add(_n(r.awaitModifier,_.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!h0(a)){let l=_n(r.awaitModifier,_.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),f=i_(r);if(f&&f.kind!==177){w.assert((Yc(f)&2)===0,"Enclosing function should never be an async function.");let m=_n(f,_.Did_you_mean_to_mark_this_function_as_async);Xs(l,m)}return Ba.add(l),!0}}if(p4(r)&&!(r.flags&65536)&&Be(r.initializer)&&r.initializer.escapedText==="async")return br(r.initializer,_.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(r.initializer.kind===262){let a=r.initializer;if(!Eye(a)){let l=a.declarations;if(!l.length)return!1;if(l.length>1){let m=r.kind===250?_.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:_.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return iu(a.declarations[1],m)}let f=l[0];if(f.initializer){let m=r.kind===250?_.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:_.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return br(f.name,m)}if(f.type){let m=r.kind===250?_.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:_.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return br(f,m)}}}return!1}function Vht(r){if(!(r.flags&33554432)&&r.parent.kind!==188&&r.parent.kind!==265){if(W<2&&zi(r.name))return br(r.name,_.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.body===void 0&&!ri(r,64))return Y1(r,r.end-1,1,_._0_expected,"{")}if(r.body){if(ri(r,64))return br(r,_.An_abstract_accessor_cannot_have_an_implementation);if(r.parent.kind===188||r.parent.kind===265)return br(r.body,_.An_implementation_cannot_be_declared_in_ambient_contexts)}if(r.typeParameters)return br(r.name,_.An_accessor_cannot_have_type_parameters);if(!qht(r))return br(r.name,r.kind===178?_.A_get_accessor_cannot_have_parameters:_.A_set_accessor_must_have_exactly_one_parameter);if(r.kind===179){if(r.type)return br(r.name,_.A_set_accessor_cannot_have_a_return_type_annotation);let a=w.checkDefined(pA(r),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return br(a.dotDotDotToken,_.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return br(a.questionToken,_.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return br(r.name,_.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function qht(r){return Aye(r)||r.parameters.length===(r.kind===178?0:1)}function Aye(r){if(r.parameters.length===(r.kind===178?1:2))return IS(r)}function $ht(r){if(r.operator===158){if(r.type.kind!==155)return br(r.type,_._0_expected,ta(155));let a=v6(r.parent);if(dn(a)&&K0(a)){let l=kS(a);l&&(a=h2(l)||l)}switch(a.kind){case 261:let l=a;if(l.name.kind!==80)return br(r,_.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!qP(l))return br(r,_.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(l.parent.flags&2))return br(a.name,_.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 173:if(!Ks(a)||!lk(a))return br(a.name,_.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 172:if(!ri(a,8))return br(a.name,_.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return br(r,_.unique_symbol_types_are_not_allowed_here)}}else if(r.operator===148&&r.type.kind!==189&&r.type.kind!==190)return iu(r,_.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,ta(155))}function GN(r,a){if(l4e(r)&&!mo(xo(r)?Qa(r.argumentExpression):r.expression))return br(r,a)}function D7e(r){if(JX(r))return!0;if(r.kind===175){if(r.parent.kind===211){if(r.modifiers&&!(r.modifiers.length===1&&Ra(r.modifiers).kind===134))return iu(r,_.Modifiers_cannot_appear_here);if(Pye(r.questionToken,_.An_object_member_cannot_be_declared_optional))return!0;if(w7e(r.exclamationToken,_.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(r.body===void 0)return Y1(r,r.end-1,1,_._0_expected,"{")}if(Dye(r))return!0}if(ni(r.parent)){if(W<2&&zi(r.name))return br(r.name,_.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.flags&33554432)return GN(r.name,_.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(r.kind===175&&!r.body)return GN(r.name,_.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(r.parent.kind===265)return GN(r.name,_.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(r.parent.kind===188)return GN(r.name,_.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function Hht(r){let a=r;for(;a;){if(Mw(a))return br(r,_.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 257:if(r.label&&a.label.escapedText===r.label.escapedText)return r.kind===252&&!fb(a.statement,!0)?br(r,_.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 256:if(r.kind===253&&!r.label)return!1;break;default:if(fb(a,!1)&&!r.label)return!1;break}a=a.parent}if(r.label){let l=r.kind===253?_.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:_.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return br(r,l)}else{let l=r.kind===253?_.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:_.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return br(r,l)}}function Qht(r){if(r.dotDotDotToken){let a=r.parent.elements;if(r!==ka(a))return br(r,_.A_rest_element_must_be_last_in_a_destructuring_pattern);if(fw(a,_.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),r.propertyName)return br(r.name,_.A_rest_element_cannot_have_a_property_name)}if(r.dotDotDotToken&&r.initializer)return Y1(r,r.initializer.pos-1,1,_.A_rest_element_cannot_have_an_initializer)}function P7e(r){return s_(r)||r.kind===225&&r.operator===41&&r.operand.kind===9}function Kht(r){return r.kind===10||r.kind===225&&r.operator===41&&r.operand.kind===10}function Xht(r){if((Ln(r)||xo(r)&&P7e(r.argumentExpression))&&mo(r.expression))return!!(Ac(r).flags&1056)}function A7e(r){let a=r.initializer;if(a){let l=!(P7e(a)||Xht(a)||a.kind===112||a.kind===97||Kht(a));if((KM(r)||li(r)&&mO(r))&&!r.type){if(l)return br(a,_.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return br(a,_.Initializers_are_not_allowed_in_ambient_contexts)}}function Yht(r){let a=MT(r),l=a&7;if(Ls(r.name))switch(l){case 6:return br(r,_._0_declarations_may_not_have_binding_patterns,"await using");case 4:return br(r,_._0_declarations_may_not_have_binding_patterns,"using")}if(r.parent.parent.kind!==250&&r.parent.parent.kind!==251){if(a&33554432)A7e(r);else if(!r.initializer){if(Ls(r.name)&&!Ls(r.parent))return br(r,_.A_destructuring_declaration_must_have_an_initializer);switch(l){case 6:return br(r,_._0_declarations_must_be_initialized,"await using");case 4:return br(r,_._0_declarations_must_be_initialized,"using");case 2:return br(r,_._0_declarations_must_be_initialized,"const")}}}if(r.exclamationToken&&(r.parent.parent.kind!==244||!r.type||r.initializer||a&33554432)){let f=r.initializer?_.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?_.A_definite_assignment_assertion_is_not_permitted_in_this_context:_.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return br(r.exclamationToken,f)}return e.getEmitModuleFormatOfFile(Nr(r))<4&&!(r.parent.parent.flags&33554432)&&ri(r.parent.parent,32)&&E7e(r.name),!!l&&N7e(r.name)}function E7e(r){if(r.kind===80){if(Fn(r)==="__esModule")return tyt("noEmit",r,_.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{let a=r.elements;for(let l of a)if(!Fl(l))return E7e(l.name)}return!1}function N7e(r){if(r.kind===80){if(r.escapedText==="let")return br(r,_.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{let a=r.elements;for(let l of a)Fl(l)||N7e(l.name)}return!1}function Eye(r){let a=r.declarations;if(fw(r.declarations))return!0;if(!r.declarations.length)return Y1(r,a.pos,a.end-a.pos,_.Variable_declaration_list_cannot_be_empty);let l=r.flags&7;if(l===4||l===6){if(_7(r.parent))return br(r,l===4?_.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:_.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration);if(r.flags&33554432)return br(r,l===4?_.using_declarations_are_not_allowed_in_ambient_contexts:_.await_using_declarations_are_not_allowed_in_ambient_contexts);if(l===6)return QFe(r)}return!1}function VX(r){switch(r.kind){case 246:case 247:case 248:case 255:case 249:case 250:case 251:return!1;case 257:return VX(r.parent)}return!0}function Zht(r){if(!VX(r.parent)){let a=MT(r.declarationList)&7;if(a){let l=a===1?"let":a===2?"const":a===4?"using":a===6?"await using":w.fail("Unknown BlockScope flag");$e(r,_._0_declarations_can_only_be_declared_inside_a_block,l)}}}function eyt(r){let a=r.name.escapedText;switch(r.keywordToken){case 105:if(a!=="target")return br(r.name,_._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Ai(r.name.escapedText),ta(r.keywordToken),"target");break;case 102:if(a!=="meta"){let l=Ws(r.parent)&&r.parent.expression===r;if(a==="defer"){if(!l)return Y1(r,r.end,0,_._0_expected,"(")}else return l?br(r.name,_._0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer,Ai(r.name.escapedText)):br(r.name,_._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Ai(r.name.escapedText),ta(r.keywordToken),"meta")}break}}function h0(r){return r.parseDiagnostics.length>0}function iu(r,a,...l){let f=Nr(r);if(!h0(f)){let m=jm(f,r.pos);return Ba.add(wl(f,m.start,m.length,a,...l)),!0}return!1}function Y1(r,a,l,f,...m){let y=Nr(r);return h0(y)?!1:(Ba.add(wl(y,a,l,f,...m)),!0)}function tyt(r,a,l,...f){let m=Nr(a);return h0(m)?!1:(vv(r,a,l,...f),!0)}function br(r,a,...l){let f=Nr(r);return h0(f)?!1:($e(r,a,...l),!0)}function ryt(r){let a=dn(r)?_8(r):void 0,l=r.typeParameters||a&&_l(a);if(l){let f=l.pos===l.end?l.pos:ha(Nr(r).text,l.pos);return Y1(r,f,l.end-f,_.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function nyt(r){let a=r.type||wf(r);if(a)return br(a,_.Type_annotation_cannot_appear_on_a_constructor_declaration)}function iyt(r){if(na(r.name)&&vn(r.name.expression)&&r.name.expression.operatorToken.kind===103)return br(r.parent.members[0],_.A_mapped_type_may_not_declare_properties_or_methods);if(ni(r.parent)){if(ya(r.name)&&r.name.text==="constructor")return br(r.name,_.Classes_may_not_have_a_field_named_constructor);if(GN(r.name,_.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(W<2&&zi(r.name))return br(r.name,_.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(W<2&&Gp(r)&&!(r.flags&33554432))return br(r.name,_.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Gp(r)&&Pye(r.questionToken,_.An_accessor_property_cannot_be_declared_optional))return!0}else if(r.parent.kind===265){if(GN(r.name,_.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(w.assertNode(r,mp),r.initializer)return br(r.initializer,_.An_interface_property_cannot_have_an_initializer)}else if(Dp(r.parent)){if(GN(r.name,_.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(w.assertNode(r,mp),r.initializer)return br(r.initializer,_.A_type_literal_property_cannot_have_an_initializer)}if(r.flags&33554432&&A7e(r),hs(r)&&r.exclamationToken&&(!ni(r.parent)||!r.type||r.initializer||r.flags&33554432||Ks(r)||AS(r))){let a=r.initializer?_.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?_.A_definite_assignment_assertion_is_not_permitted_in_this_context:_.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return br(r.exclamationToken,a)}}function syt(r){return r.kind===265||r.kind===266||r.kind===273||r.kind===272||r.kind===279||r.kind===278||r.kind===271||ri(r,2208)?!1:iu(r,_.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function ayt(r){for(let a of r.statements)if((ql(a)||a.kind===244)&&syt(a))return!0;return!1}function M7e(r){return!!(r.flags&33554432)&&ayt(r)}function Wy(r){if(r.flags&33554432){if(!Nn(r).hasReportedStatementInAmbientContext&&(Fs(r.parent)||pb(r.parent)))return Nn(r).hasReportedStatementInAmbientContext=iu(r,_.An_implementation_cannot_be_declared_in_ambient_contexts);if(r.parent.kind===242||r.parent.kind===269||r.parent.kind===308){let l=Nn(r.parent);if(!l.hasReportedStatementInAmbientContext)return l.hasReportedStatementInAmbientContext=iu(r,_.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function R7e(r){let a=pc(r).includes("."),l=r.numericLiteralFlags&16;a||l||+r.text<=2**53-1||Ih(!1,_n(r,_.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function oyt(r){return!!(!(av(r.parent)||V0(r.parent)&&av(r.parent.parent))&&!(r.flags&33554432)&&W<7&&br(r,_.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function cyt(r,a,...l){let f=Nr(r);if(!h0(f)){let m=jm(f,r.pos);return Ba.add(wl(f,mc(m),0,a,...l)),!0}return!1}function lyt(){return Kf||(Kf=[],nt.forEach((r,a)=>{rae.test(a)&&Kf.push(r)})),Kf}function uyt(r){var a,l;if(r.phaseModifier===156){if(r.name&&r.namedBindings)return br(r,_.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);if(((a=r.namedBindings)==null?void 0:a.kind)===276)return O7e(r.namedBindings)}else if(r.phaseModifier===166){if(r.name)return br(r,_.Default_imports_are_not_allowed_in_a_deferred_import);if(((l=r.namedBindings)==null?void 0:l.kind)===276)return br(r,_.Named_imports_are_not_allowed_in_a_deferred_import);if(z!==99&&z!==200)return br(r,_.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve)}return!1}function O7e(r){return!!or(r.elements,a=>{if(a.isTypeOnly)return iu(a,a.kind===277?_.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:_.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function pyt(r){if(O.verbatimModuleSyntax&&z===1)return br(r,Kk(r));if(r.expression.kind===237){if(z!==99&&z!==200)return br(r,_.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve)}else if(z===5)return br(r,_.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext);if(r.typeArguments)return br(r,_.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);let a=r.arguments;if(!(100<=z&&z<=199)&&z!==99&&z!==200&&(fw(a),a.length>1)){let f=a[1];return br(f,_.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve)}if(a.length===0||a.length>2)return br(r,_.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);let l=Bn(a,z_);return l?br(l,_.Argument_of_dynamic_import_cannot_be_spread_element):!1}function fyt(r,a){let l=jn(r);if(l&20&&a.flags&1048576)return Bn(a.types,f=>{if(f.flags&524288){let m=l&jn(f);if(m&4)return r.target===f.target;if(m&16)return!!r.aliasSymbol&&r.aliasSymbol===f.aliasSymbol}return!1})}function _yt(r,a){if(jn(r)&128&&td(a,Lv))return Bn(a.types,l=>!Lv(l))}function dyt(r,a){let l=0;if(Gs(r,l).length>0||(l=1,Gs(r,l).length>0))return Bn(a.types,m=>Gs(m,l).length>0)}function myt(r,a){let l;if(!(r.flags&406978556)){let f=0;for(let m of a.types)if(!(m.flags&406978556)){let y=ma([mg(r),mg(m)]);if(y.flags&4194304)return m;if(Cm(y)||y.flags&1048576){let k=y.flags&1048576?Jy(y.types,Cm):1;k>=f&&(l=m,f=k)}}}return l}function gyt(r){if(Vc(r,67108864)){let a=pl(r,l=>!(l.flags&402784252));if(!(a.flags&131072))return a}return r}function F7e(r,a,l){if(a.flags&1048576&&r.flags&2621440){let f=j3e(a,r);if(f)return f;let m=ao(r);if(m){let y=F3e(m,a);if(y){let k=dge(a,kr(y,M=>[()=>an(M),M.escapedName]),l);if(k!==a)return k}}}}function Nye(r){let a=ok(r);return a||(na(r)?Bge(Du(r.expression)):void 0)}function qX(r){return fr===r||(fr=r,Mr=I0(r)),Mr}function MT(r){return St===r||(St=r,Bt=Kh(r)),Bt}function mO(r){let a=MT(r)&7;return a===2||a===4||a===6}function hyt(r,a){let l=O.importHelpers?1:0,f=r?.imports[l];return f&&w.assert(ko(f)&&f.text===a,`Expected sourceFile.imports[${l}] to be the synthesized JSX runtime import`),f}function yyt(r){w.assert(O.importHelpers,"Expected importHelpers to be enabled");let a=r.imports[0];return w.assert(a&&ko(a)&&a.text==="tslib","Expected sourceFile.imports[0] to be the synthesized tslib import"),a}}function YGe(e){return!pb(e)}function eTe(e){return e.kind!==263&&e.kind!==175||!!e.body}function tTe(e){switch(e.parent.kind){case 277:case 282:return Be(e)||e.kind===11;default:return Ig(e)}}var u_;(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(u_||(u_={}));var MU;(e=>{e.Fragment="Fragment"})(MU||(MU={}));function rTe(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Zu(e){return!!(e.flags&1)}function nTe(e){return!!(e.flags&2)}function ZGe(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:Js(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames(),redirectTargetsMap:e.redirectTargetsMap,getRedirectFromSourceFile:t=>e.getRedirectFromSourceFile(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0,getDefaultResolutionModeForFile:t=>e.getDefaultResolutionModeForFile(t),getModeForResolutionAtIndex:(t,n)=>e.getModeForResolutionAtIndex(t,n),getGlobalTypingsCacheLocation:Js(e,e.getGlobalTypingsCacheLocation)}}var sae=class h5e{constructor(t,n,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var s;n instanceof h5e;)n=n.inner;this.inner=n,this.moduleResolverHost=i,this.context=t,this.canTrackSymbol=!!((s=this.inner)!=null&&s.trackSymbol)}trackSymbol(t,n,i){var s,o;if((s=this.inner)!=null&&s.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(t,n,i))return this.onDiagnosticReported(),!0;t.flags&262144||((o=this.context).trackedSymbols??(o.trackedSymbols=[])).push([t,n,i])}return!1}reportInaccessibleThisError(){var t;(t=this.inner)!=null&&t.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(t){var n;(n=this.inner)!=null&&n.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(t))}reportInaccessibleUniqueSymbolError(){var t;(t=this.inner)!=null&&t.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var t;(t=this.inner)!=null&&t.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(t){var n;(n=this.inner)!=null&&n.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(t))}reportTruncationError(){var t;(t=this.inner)!=null&&t.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}reportNonlocalAugmentation(t,n,i){var s;(s=this.inner)!=null&&s.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(t,n,i))}reportNonSerializableProperty(t){var n;(n=this.inner)!=null&&n.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(t))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}reportInferenceFallback(t){var n;(n=this.inner)!=null&&n.reportInferenceFallback&&!this.context.suppressReportInferenceFallback&&(this.onDiagnosticReported(),this.inner.reportInferenceFallback(t))}pushErrorFallbackNode(t){var n,i;return(i=(n=this.inner)==null?void 0:n.pushErrorFallbackNode)==null?void 0:i.call(n,t)}popErrorFallbackNode(){var t,n;return(n=(t=this.inner)==null?void 0:t.popErrorFallbackNode)==null?void 0:n.call(t)}};function rt(e,t,n,i){if(e===void 0)return e;let s=t(e),o;if(s!==void 0)return gs(s)?o=(i||sJe)(s):o=s,w.assertNode(o,n),o}function Br(e,t,n,i,s){if(e===void 0)return e;let o=e.length;(i===void 0||i<0)&&(i=0),(s===void 0||s>o-i)&&(s=o-i);let c,p=-1,u=-1;i>0||s<o?c=e.hasTrailingComma&&i+s===o:(p=e.pos,u=e.end,c=e.hasTrailingComma);let g=iTe(e,t,n,i,s);if(g!==e){let d=A.createNodeArray(g,c);return om(d,p,u),d}return e}function oE(e,t,n,i,s){if(e===void 0)return e;let o=e.length;return(i===void 0||i<0)&&(i=0),(s===void 0||s>o-i)&&(s=o-i),iTe(e,t,n,i,s)}function iTe(e,t,n,i,s){let o,c=e.length;(i>0||s<c)&&(o=[]);for(let p=0;p<s;p++){let u=e[p+i],g=u!==void 0?t?t(u):u:void 0;if((o!==void 0||g===void 0||g!==u)&&(o===void 0&&(o=e.slice(0,p),w.assertEachNode(o,n)),g))if(gs(g))for(let d of g)w.assertNode(d,n),o.push(d);else w.assertNode(g,n),o.push(g)}return o||(w.assertEachNode(e,n),e)}function RU(e,t,n,i,s,o=Br){return n.startLexicalEnvironment(),e=o(e,t,Ei,i),s&&(e=n.factory.ensureUseStrict(e)),A.mergeLexicalEnvironment(e,n.endLexicalEnvironment())}function wc(e,t,n,i=Br){let s;return n.startLexicalEnvironment(),e&&(n.setLexicalEnvironmentFlags(1,!0),s=i(e,t,Gi),n.getLexicalEnvironmentFlags()&2&&xa(n.getCompilerOptions())>=2&&(s=eJe(s,n)),n.setLexicalEnvironmentFlags(1,!1)),n.suspendLexicalEnvironment(),s}function eJe(e,t){let n;for(let i=0;i<e.length;i++){let s=e[i],o=tJe(s,t);(n||o!==s)&&(n||(n=e.slice(0,i)),n[i]=o)}return n?mt(t.factory.createNodeArray(n,e.hasTrailingComma),e):e}function tJe(e,t){return e.dotDotDotToken?e:Ls(e.name)?rJe(e,t):e.initializer?nJe(e,e.name,e.initializer,t):e}function rJe(e,t){let{factory:n}=t;return t.addInitializationStatement(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(e.name,void 0,e.type,e.initializer?n.createConditionalExpression(n.createStrictEquality(n.getGeneratedNameForNode(e),n.createVoidZero()),void 0,e.initializer,void 0,n.getGeneratedNameForNode(e)):n.getGeneratedNameForNode(e))]))),n.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,n.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)}function nJe(e,t,n,i){let s=i.factory;return i.addInitializationStatement(s.createIfStatement(s.createTypeCheck(s.cloneNode(t),"undefined"),yn(mt(s.createBlock([s.createExpressionStatement(yn(mt(s.createAssignment(yn(s.cloneNode(t),96),yn(n,96|Oa(n)|3072)),e),3072))]),e),3905))),s.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,void 0)}function p_(e,t,n,i=rt){n.resumeLexicalEnvironment();let s=i(e,t,dF),o=n.endLexicalEnvironment();if(_t(o)){if(!s)return n.factory.createBlock(o);let c=n.factory.converters.convertToFunctionBlock(s),p=A.mergeLexicalEnvironment(c.statements,o);return n.factory.updateBlock(c,p)}return s}function Ap(e,t,n,i=rt){n.startBlockScope();let s=i(e,t,Ei,n.factory.liftToBlock);w.assert(s);let o=n.endBlockScope();return _t(o)?Bs(s)?(o.push(...s.statements),n.factory.updateBlock(s,o)):(o.push(s),n.factory.createBlock(o)):s}function W4(e,t,n=t){if(n===t||e.length<=1)return Br(e,t,ht);let i=0,s=e.length;return Br(e,o=>{let c=i<s-1;return i++,c?n(o):t(o)},ht)}function Pr(e,t,n=$4,i=Br,s,o=rt){if(e===void 0)return;let c=iJe[e.kind];return c===void 0?e:c(e,t,n,i,o,s)}var iJe={167:function(t,n,i,s,o,c){return i.factory.updateQualifiedName(t,w.checkDefined(o(t.left,n,xp)),w.checkDefined(o(t.right,n,Be)))},168:function(t,n,i,s,o,c){return i.factory.updateComputedPropertyName(t,w.checkDefined(o(t.expression,n,ht)))},169:function(t,n,i,s,o,c){return i.factory.updateTypeParameterDeclaration(t,s(t.modifiers,n,la),w.checkDefined(o(t.name,n,Be)),o(t.constraint,n,yi),o(t.default,n,yi))},170:function(t,n,i,s,o,c){return i.factory.updateParameterDeclaration(t,s(t.modifiers,n,tc),c?o(t.dotDotDotToken,c,a7):t.dotDotDotToken,w.checkDefined(o(t.name,n,QT)),c?o(t.questionToken,c,Db):t.questionToken,o(t.type,n,yi),o(t.initializer,n,ht))},171:function(t,n,i,s,o,c){return i.factory.updateDecorator(t,w.checkDefined(o(t.expression,n,ht)))},172:function(t,n,i,s,o,c){return i.factory.updatePropertySignature(t,s(t.modifiers,n,la),w.checkDefined(o(t.name,n,ol)),c?o(t.questionToken,c,Db):t.questionToken,o(t.type,n,yi))},173:function(t,n,i,s,o,c){return i.factory.updatePropertyDeclaration(t,s(t.modifiers,n,tc),w.checkDefined(o(t.name,n,ol)),c?o(t.questionToken??t.exclamationToken,c,Jie):t.questionToken??t.exclamationToken,o(t.type,n,yi),o(t.initializer,n,ht))},174:function(t,n,i,s,o,c){return i.factory.updateMethodSignature(t,s(t.modifiers,n,la),w.checkDefined(o(t.name,n,ol)),c?o(t.questionToken,c,Db):t.questionToken,s(t.typeParameters,n,Ho),s(t.parameters,n,Gi),o(t.type,n,yi))},175:function(t,n,i,s,o,c){return i.factory.updateMethodDeclaration(t,s(t.modifiers,n,tc),c?o(t.asteriskToken,c,o4):t.asteriskToken,w.checkDefined(o(t.name,n,ol)),c?o(t.questionToken,c,Db):t.questionToken,s(t.typeParameters,n,Ho),wc(t.parameters,n,i,s),o(t.type,n,yi),p_(t.body,n,i,o))},177:function(t,n,i,s,o,c){return i.factory.updateConstructorDeclaration(t,s(t.modifiers,n,tc),wc(t.parameters,n,i,s),p_(t.body,n,i,o))},178:function(t,n,i,s,o,c){return i.factory.updateGetAccessorDeclaration(t,s(t.modifiers,n,tc),w.checkDefined(o(t.name,n,ol)),wc(t.parameters,n,i,s),o(t.type,n,yi),p_(t.body,n,i,o))},179:function(t,n,i,s,o,c){return i.factory.updateSetAccessorDeclaration(t,s(t.modifiers,n,tc),w.checkDefined(o(t.name,n,ol)),wc(t.parameters,n,i,s),p_(t.body,n,i,o))},176:function(t,n,i,s,o,c){return i.startLexicalEnvironment(),i.suspendLexicalEnvironment(),i.factory.updateClassStaticBlockDeclaration(t,p_(t.body,n,i,o))},180:function(t,n,i,s,o,c){return i.factory.updateCallSignature(t,s(t.typeParameters,n,Ho),s(t.parameters,n,Gi),o(t.type,n,yi))},181:function(t,n,i,s,o,c){return i.factory.updateConstructSignature(t,s(t.typeParameters,n,Ho),s(t.parameters,n,Gi),o(t.type,n,yi))},182:function(t,n,i,s,o,c){return i.factory.updateIndexSignature(t,s(t.modifiers,n,tc),s(t.parameters,n,Gi),w.checkDefined(o(t.type,n,yi)))},183:function(t,n,i,s,o,c){return i.factory.updateTypePredicateNode(t,o(t.assertsModifier,n,uie),w.checkDefined(o(t.parameterName,n,Uie)),o(t.type,n,yi))},184:function(t,n,i,s,o,c){return i.factory.updateTypeReferenceNode(t,w.checkDefined(o(t.typeName,n,xp)),s(t.typeArguments,n,yi))},185:function(t,n,i,s,o,c){return i.factory.updateFunctionTypeNode(t,s(t.typeParameters,n,Ho),s(t.parameters,n,Gi),w.checkDefined(o(t.type,n,yi)))},186:function(t,n,i,s,o,c){return i.factory.updateConstructorTypeNode(t,s(t.modifiers,n,la),s(t.typeParameters,n,Ho),s(t.parameters,n,Gi),w.checkDefined(o(t.type,n,yi)))},187:function(t,n,i,s,o,c){return i.factory.updateTypeQueryNode(t,w.checkDefined(o(t.exprName,n,xp)),s(t.typeArguments,n,yi))},188:function(t,n,i,s,o,c){return i.factory.updateTypeLiteralNode(t,s(t.members,n,dS))},189:function(t,n,i,s,o,c){return i.factory.updateArrayTypeNode(t,w.checkDefined(o(t.elementType,n,yi)))},190:function(t,n,i,s,o,c){return i.factory.updateTupleTypeNode(t,s(t.elements,n,yi))},191:function(t,n,i,s,o,c){return i.factory.updateOptionalTypeNode(t,w.checkDefined(o(t.type,n,yi)))},192:function(t,n,i,s,o,c){return i.factory.updateRestTypeNode(t,w.checkDefined(o(t.type,n,yi)))},193:function(t,n,i,s,o,c){return i.factory.updateUnionTypeNode(t,s(t.types,n,yi))},194:function(t,n,i,s,o,c){return i.factory.updateIntersectionTypeNode(t,s(t.types,n,yi))},195:function(t,n,i,s,o,c){return i.factory.updateConditionalTypeNode(t,w.checkDefined(o(t.checkType,n,yi)),w.checkDefined(o(t.extendsType,n,yi)),w.checkDefined(o(t.trueType,n,yi)),w.checkDefined(o(t.falseType,n,yi)))},196:function(t,n,i,s,o,c){return i.factory.updateInferTypeNode(t,w.checkDefined(o(t.typeParameter,n,Ho)))},206:function(t,n,i,s,o,c){return i.factory.updateImportTypeNode(t,w.checkDefined(o(t.argument,n,yi)),o(t.attributes,n,Tk),o(t.qualifier,n,xp),s(t.typeArguments,n,yi),t.isTypeOf)},303:function(t,n,i,s,o,c){return i.factory.updateImportTypeAssertionContainer(t,w.checkDefined(o(t.assertClause,n,bie)),t.multiLine)},203:function(t,n,i,s,o,c){return i.factory.updateNamedTupleMember(t,c?o(t.dotDotDotToken,c,a7):t.dotDotDotToken,w.checkDefined(o(t.name,n,Be)),c?o(t.questionToken,c,Db):t.questionToken,w.checkDefined(o(t.type,n,yi)))},197:function(t,n,i,s,o,c){return i.factory.updateParenthesizedType(t,w.checkDefined(o(t.type,n,yi)))},199:function(t,n,i,s,o,c){return i.factory.updateTypeOperatorNode(t,w.checkDefined(o(t.type,n,yi)))},200:function(t,n,i,s,o,c){return i.factory.updateIndexedAccessTypeNode(t,w.checkDefined(o(t.objectType,n,yi)),w.checkDefined(o(t.indexType,n,yi)))},201:function(t,n,i,s,o,c){return i.factory.updateMappedTypeNode(t,c?o(t.readonlyToken,c,Vie):t.readonlyToken,w.checkDefined(o(t.typeParameter,n,Ho)),o(t.nameType,n,yi),c?o(t.questionToken,c,qie):t.questionToken,o(t.type,n,yi),s(t.members,n,dS))},202:function(t,n,i,s,o,c){return i.factory.updateLiteralTypeNode(t,w.checkDefined(o(t.literal,n,ote)))},204:function(t,n,i,s,o,c){return i.factory.updateTemplateLiteralType(t,w.checkDefined(o(t.head,n,j2)),s(t.templateSpans,n,mJ))},205:function(t,n,i,s,o,c){return i.factory.updateTemplateLiteralTypeSpan(t,w.checkDefined(o(t.type,n,yi)),w.checkDefined(o(t.literal,n,uF)))},207:function(t,n,i,s,o,c){return i.factory.updateObjectBindingPattern(t,s(t.elements,n,Da))},208:function(t,n,i,s,o,c){return i.factory.updateArrayBindingPattern(t,s(t.elements,n,fF))},209:function(t,n,i,s,o,c){return i.factory.updateBindingElement(t,c?o(t.dotDotDotToken,c,a7):t.dotDotDotToken,o(t.propertyName,n,ol),w.checkDefined(o(t.name,n,QT)),o(t.initializer,n,ht))},210:function(t,n,i,s,o,c){return i.factory.updateArrayLiteralExpression(t,s(t.elements,n,ht))},211:function(t,n,i,s,o,c){return i.factory.updateObjectLiteralExpression(t,s(t.properties,n,Xh))},212:function(t,n,i,s,o,c){return aF(t)?i.factory.updatePropertyAccessChain(t,w.checkDefined(o(t.expression,n,ht)),c?o(t.questionDotToken,c,o7):t.questionDotToken,w.checkDefined(o(t.name,n,sh))):i.factory.updatePropertyAccessExpression(t,w.checkDefined(o(t.expression,n,ht)),w.checkDefined(o(t.name,n,sh)))},213:function(t,n,i,s,o,c){return jB(t)?i.factory.updateElementAccessChain(t,w.checkDefined(o(t.expression,n,ht)),c?o(t.questionDotToken,c,o7):t.questionDotToken,w.checkDefined(o(t.argumentExpression,n,ht))):i.factory.updateElementAccessExpression(t,w.checkDefined(o(t.expression,n,ht)),w.checkDefined(o(t.argumentExpression,n,ht)))},214:function(t,n,i,s,o,c){return qT(t)?i.factory.updateCallChain(t,w.checkDefined(o(t.expression,n,ht)),c?o(t.questionDotToken,c,o7):t.questionDotToken,s(t.typeArguments,n,yi),s(t.arguments,n,ht)):i.factory.updateCallExpression(t,w.checkDefined(o(t.expression,n,ht)),s(t.typeArguments,n,yi),s(t.arguments,n,ht))},215:function(t,n,i,s,o,c){return i.factory.updateNewExpression(t,w.checkDefined(o(t.expression,n,ht)),s(t.typeArguments,n,yi),s(t.arguments,n,ht))},216:function(t,n,i,s,o,c){return i.factory.updateTaggedTemplateExpression(t,w.checkDefined(o(t.tag,n,ht)),s(t.typeArguments,n,yi),w.checkDefined(o(t.template,n,i2)))},217:function(t,n,i,s,o,c){return i.factory.updateTypeAssertion(t,w.checkDefined(o(t.type,n,yi)),w.checkDefined(o(t.expression,n,ht)))},218:function(t,n,i,s,o,c){return i.factory.updateParenthesizedExpression(t,w.checkDefined(o(t.expression,n,ht)))},219:function(t,n,i,s,o,c){return i.factory.updateFunctionExpression(t,s(t.modifiers,n,la),c?o(t.asteriskToken,c,o4):t.asteriskToken,o(t.name,n,Be),s(t.typeParameters,n,Ho),wc(t.parameters,n,i,s),o(t.type,n,yi),p_(t.body,n,i,o))},220:function(t,n,i,s,o,c){return i.factory.updateArrowFunction(t,s(t.modifiers,n,la),s(t.typeParameters,n,Ho),wc(t.parameters,n,i,s),o(t.type,n,yi),c?w.checkDefined(o(t.equalsGreaterThanToken,c,lie)):t.equalsGreaterThanToken,p_(t.body,n,i,o))},221:function(t,n,i,s,o,c){return i.factory.updateDeleteExpression(t,w.checkDefined(o(t.expression,n,ht)))},222:function(t,n,i,s,o,c){return i.factory.updateTypeOfExpression(t,w.checkDefined(o(t.expression,n,ht)))},223:function(t,n,i,s,o,c){return i.factory.updateVoidExpression(t,w.checkDefined(o(t.expression,n,ht)))},224:function(t,n,i,s,o,c){return i.factory.updateAwaitExpression(t,w.checkDefined(o(t.expression,n,ht)))},225:function(t,n,i,s,o,c){return i.factory.updatePrefixUnaryExpression(t,w.checkDefined(o(t.operand,n,ht)))},226:function(t,n,i,s,o,c){return i.factory.updatePostfixUnaryExpression(t,w.checkDefined(o(t.operand,n,ht)))},227:function(t,n,i,s,o,c){return i.factory.updateBinaryExpression(t,w.checkDefined(o(t.left,n,ht)),c?w.checkDefined(o(t.operatorToken,c,Hie)):t.operatorToken,w.checkDefined(o(t.right,n,ht)))},228:function(t,n,i,s,o,c){return i.factory.updateConditionalExpression(t,w.checkDefined(o(t.condition,n,ht)),c?w.checkDefined(o(t.questionToken,c,Db)):t.questionToken,w.checkDefined(o(t.whenTrue,n,ht)),c?w.checkDefined(o(t.colonToken,c,cie)):t.colonToken,w.checkDefined(o(t.whenFalse,n,ht)))},229:function(t,n,i,s,o,c){return i.factory.updateTemplateExpression(t,w.checkDefined(o(t.head,n,j2)),s(t.templateSpans,n,hI))},230:function(t,n,i,s,o,c){return i.factory.updateYieldExpression(t,c?o(t.asteriskToken,c,o4):t.asteriskToken,o(t.expression,n,ht))},231:function(t,n,i,s,o,c){return i.factory.updateSpreadElement(t,w.checkDefined(o(t.expression,n,ht)))},232:function(t,n,i,s,o,c){return i.factory.updateClassExpression(t,s(t.modifiers,n,tc),o(t.name,n,Be),s(t.typeParameters,n,Ho),s(t.heritageClauses,n,Af),s(t.members,n,cl))},234:function(t,n,i,s,o,c){return i.factory.updateExpressionWithTypeArguments(t,w.checkDefined(o(t.expression,n,ht)),s(t.typeArguments,n,yi))},235:function(t,n,i,s,o,c){return i.factory.updateAsExpression(t,w.checkDefined(o(t.expression,n,ht)),w.checkDefined(o(t.type,n,yi)))},239:function(t,n,i,s,o,c){return i.factory.updateSatisfiesExpression(t,w.checkDefined(o(t.expression,n,ht)),w.checkDefined(o(t.type,n,yi)))},236:function(t,n,i,s,o,c){return $u(t)?i.factory.updateNonNullChain(t,w.checkDefined(o(t.expression,n,ht))):i.factory.updateNonNullExpression(t,w.checkDefined(o(t.expression,n,ht)))},237:function(t,n,i,s,o,c){return i.factory.updateMetaProperty(t,w.checkDefined(o(t.name,n,Be)))},240:function(t,n,i,s,o,c){return i.factory.updateTemplateSpan(t,w.checkDefined(o(t.expression,n,ht)),w.checkDefined(o(t.literal,n,uF)))},242:function(t,n,i,s,o,c){return i.factory.updateBlock(t,s(t.statements,n,Ei))},244:function(t,n,i,s,o,c){return i.factory.updateVariableStatement(t,s(t.modifiers,n,tc),w.checkDefined(o(t.declarationList,n,lu)))},245:function(t,n,i,s,o,c){return i.factory.updateExpressionStatement(t,w.checkDefined(o(t.expression,n,ht)))},246:function(t,n,i,s,o,c){return i.factory.updateIfStatement(t,w.checkDefined(o(t.expression,n,ht)),w.checkDefined(o(t.thenStatement,n,Ei,i.factory.liftToBlock)),o(t.elseStatement,n,Ei,i.factory.liftToBlock))},247:function(t,n,i,s,o,c){return i.factory.updateDoStatement(t,Ap(t.statement,n,i,o),w.checkDefined(o(t.expression,n,ht)))},248:function(t,n,i,s,o,c){return i.factory.updateWhileStatement(t,w.checkDefined(o(t.expression,n,ht)),Ap(t.statement,n,i,o))},249:function(t,n,i,s,o,c){return i.factory.updateForStatement(t,o(t.initializer,n,E_),o(t.condition,n,ht),o(t.incrementor,n,ht),Ap(t.statement,n,i,o))},250:function(t,n,i,s,o,c){return i.factory.updateForInStatement(t,w.checkDefined(o(t.initializer,n,E_)),w.checkDefined(o(t.expression,n,ht)),Ap(t.statement,n,i,o))},251:function(t,n,i,s,o,c){return i.factory.updateForOfStatement(t,c?o(t.awaitModifier,c,_J):t.awaitModifier,w.checkDefined(o(t.initializer,n,E_)),w.checkDefined(o(t.expression,n,ht)),Ap(t.statement,n,i,o))},252:function(t,n,i,s,o,c){return i.factory.updateContinueStatement(t,o(t.label,n,Be))},253:function(t,n,i,s,o,c){return i.factory.updateBreakStatement(t,o(t.label,n,Be))},254:function(t,n,i,s,o,c){return i.factory.updateReturnStatement(t,o(t.expression,n,ht))},255:function(t,n,i,s,o,c){return i.factory.updateWithStatement(t,w.checkDefined(o(t.expression,n,ht)),w.checkDefined(o(t.statement,n,Ei,i.factory.liftToBlock)))},256:function(t,n,i,s,o,c){return i.factory.updateSwitchStatement(t,w.checkDefined(o(t.expression,n,ht)),w.checkDefined(o(t.caseBlock,n,VA)))},257:function(t,n,i,s,o,c){return i.factory.updateLabeledStatement(t,w.checkDefined(o(t.label,n,Be)),w.checkDefined(o(t.statement,n,Ei,i.factory.liftToBlock)))},258:function(t,n,i,s,o,c){return i.factory.updateThrowStatement(t,w.checkDefined(o(t.expression,n,ht)))},259:function(t,n,i,s,o,c){return i.factory.updateTryStatement(t,w.checkDefined(o(t.tryBlock,n,Bs)),o(t.catchClause,n,GS),o(t.finallyBlock,n,Bs))},261:function(t,n,i,s,o,c){return i.factory.updateVariableDeclaration(t,w.checkDefined(o(t.name,n,QT)),c?o(t.exclamationToken,c,c4):t.exclamationToken,o(t.type,n,yi),o(t.initializer,n,ht))},262:function(t,n,i,s,o,c){return i.factory.updateVariableDeclarationList(t,s(t.declarations,n,li))},263:function(t,n,i,s,o,c){return i.factory.updateFunctionDeclaration(t,s(t.modifiers,n,la),c?o(t.asteriskToken,c,o4):t.asteriskToken,o(t.name,n,Be),s(t.typeParameters,n,Ho),wc(t.parameters,n,i,s),o(t.type,n,yi),p_(t.body,n,i,o))},264:function(t,n,i,s,o,c){return i.factory.updateClassDeclaration(t,s(t.modifiers,n,tc),o(t.name,n,Be),s(t.typeParameters,n,Ho),s(t.heritageClauses,n,Af),s(t.members,n,cl))},265:function(t,n,i,s,o,c){return i.factory.updateInterfaceDeclaration(t,s(t.modifiers,n,tc),w.checkDefined(o(t.name,n,Be)),s(t.typeParameters,n,Ho),s(t.heritageClauses,n,Af),s(t.members,n,dS))},266:function(t,n,i,s,o,c){return i.factory.updateTypeAliasDeclaration(t,s(t.modifiers,n,tc),w.checkDefined(o(t.name,n,Be)),s(t.typeParameters,n,Ho),w.checkDefined(o(t.type,n,yi)))},267:function(t,n,i,s,o,c){return i.factory.updateEnumDeclaration(t,s(t.modifiers,n,tc),w.checkDefined(o(t.name,n,Be)),s(t.members,n,oy))},268:function(t,n,i,s,o,c){return i.factory.updateModuleDeclaration(t,s(t.modifiers,n,tc),w.checkDefined(o(t.name,n,$ie)),o(t.body,n,lte))},269:function(t,n,i,s,o,c){return i.factory.updateModuleBlock(t,s(t.statements,n,Ei))},270:function(t,n,i,s,o,c){return i.factory.updateCaseBlock(t,s(t.clauses,n,gF))},271:function(t,n,i,s,o,c){return i.factory.updateNamespaceExportDeclaration(t,w.checkDefined(o(t.name,n,Be)))},272:function(t,n,i,s,o,c){return i.factory.updateImportEqualsDeclaration(t,s(t.modifiers,n,tc),t.isTypeOnly,w.checkDefined(o(t.name,n,Be)),w.checkDefined(o(t.moduleReference,n,dte)))},273:function(t,n,i,s,o,c){return i.factory.updateImportDeclaration(t,s(t.modifiers,n,tc),o(t.importClause,n,Ld),w.checkDefined(o(t.moduleSpecifier,n,ht)),o(t.attributes,n,Tk))},301:function(t,n,i,s,o,c){return i.factory.updateImportAttributes(t,s(t.elements,n,Sie),t.multiLine)},302:function(t,n,i,s,o,c){return i.factory.updateImportAttribute(t,w.checkDefined(o(t.name,n,tte)),w.checkDefined(o(t.value,n,ht)))},274:function(t,n,i,s,o,c){return i.factory.updateImportClause(t,t.phaseModifier,o(t.name,n,Be),o(t.namedBindings,n,KB))},275:function(t,n,i,s,o,c){return i.factory.updateNamespaceImport(t,w.checkDefined(o(t.name,n,Be)))},281:function(t,n,i,s,o,c){return i.factory.updateNamespaceExport(t,w.checkDefined(o(t.name,n,Be)))},276:function(t,n,i,s,o,c){return i.factory.updateNamedImports(t,s(t.elements,n,gp))},277:function(t,n,i,s,o,c){return i.factory.updateImportSpecifier(t,t.isTypeOnly,o(t.propertyName,n,d7),w.checkDefined(o(t.name,n,Be)))},278:function(t,n,i,s,o,c){return i.factory.updateExportAssignment(t,s(t.modifiers,n,tc),w.checkDefined(o(t.expression,n,ht)))},279:function(t,n,i,s,o,c){return i.factory.updateExportDeclaration(t,s(t.modifiers,n,tc),t.isTypeOnly,o(t.exportClause,n,WB),o(t.moduleSpecifier,n,ht),o(t.attributes,n,Tk))},280:function(t,n,i,s,o,c){return i.factory.updateNamedExports(t,s(t.elements,n,Xu))},282:function(t,n,i,s,o,c){return i.factory.updateExportSpecifier(t,t.isTypeOnly,o(t.propertyName,n,d7),w.checkDefined(o(t.name,n,d7)))},284:function(t,n,i,s,o,c){return i.factory.updateExternalModuleReference(t,w.checkDefined(o(t.expression,n,ht)))},285:function(t,n,i,s,o,c){return i.factory.updateJsxElement(t,w.checkDefined(o(t.openingElement,n,cm)),s(t.children,n,zM),w.checkDefined(o(t.closingElement,n,BS)))},286:function(t,n,i,s,o,c){return i.factory.updateJsxSelfClosingElement(t,w.checkDefined(o(t.tagName,n,BP)),s(t.typeArguments,n,yi),w.checkDefined(o(t.attributes,n,zS)))},287:function(t,n,i,s,o,c){return i.factory.updateJsxOpeningElement(t,w.checkDefined(o(t.tagName,n,BP)),s(t.typeArguments,n,yi),w.checkDefined(o(t.attributes,n,zS)))},288:function(t,n,i,s,o,c){return i.factory.updateJsxClosingElement(t,w.checkDefined(o(t.tagName,n,BP)))},296:function(t,n,i,s,o,c){return i.factory.updateJsxNamespacedName(t,w.checkDefined(o(t.namespace,n,Be)),w.checkDefined(o(t.name,n,Be)))},289:function(t,n,i,s,o,c){return i.factory.updateJsxFragment(t,w.checkDefined(o(t.openingFragment,n,Wd)),s(t.children,n,zM),w.checkDefined(o(t.closingFragment,n,kie)))},292:function(t,n,i,s,o,c){return i.factory.updateJsxAttribute(t,w.checkDefined(o(t.name,n,Ene)),o(t.initializer,n,mte))},293:function(t,n,i,s,o,c){return i.factory.updateJsxAttributes(t,s(t.properties,n,mF))},294:function(t,n,i,s,o,c){return i.factory.updateJsxSpreadAttribute(t,w.checkDefined(o(t.expression,n,ht)))},295:function(t,n,i,s,o,c){return i.factory.updateJsxExpression(t,o(t.expression,n,ht))},297:function(t,n,i,s,o,c){return i.factory.updateCaseClause(t,w.checkDefined(o(t.expression,n,ht)),s(t.statements,n,Ei))},298:function(t,n,i,s,o,c){return i.factory.updateDefaultClause(t,s(t.statements,n,Ei))},299:function(t,n,i,s,o,c){return i.factory.updateHeritageClause(t,s(t.types,n,sy))},300:function(t,n,i,s,o,c){return i.factory.updateCatchClause(t,o(t.variableDeclaration,n,li),w.checkDefined(o(t.block,n,Bs)))},304:function(t,n,i,s,o,c){return i.factory.updatePropertyAssignment(t,w.checkDefined(o(t.name,n,ol)),w.checkDefined(o(t.initializer,n,ht)))},305:function(t,n,i,s,o,c){return i.factory.updateShorthandPropertyAssignment(t,w.checkDefined(o(t.name,n,Be)),o(t.objectAssignmentInitializer,n,ht))},306:function(t,n,i,s,o,c){return i.factory.updateSpreadAssignment(t,w.checkDefined(o(t.expression,n,ht)))},307:function(t,n,i,s,o,c){return i.factory.updateEnumMember(t,w.checkDefined(o(t.name,n,ol)),o(t.initializer,n,ht))},308:function(t,n,i,s,o,c){return i.factory.updateSourceFile(t,RU(t.statements,n,i))},356:function(t,n,i,s,o,c){return i.factory.updatePartiallyEmittedExpression(t,w.checkDefined(o(t.expression,n,ht)))},357:function(t,n,i,s,o,c){return i.factory.updateCommaListExpression(t,s(t.elements,n,ht))}};function sJe(e){return w.assert(e.length<=1,"Too many nodes written to output."),eh(e)}function aae(e,t,n,i,s){var{enter:o,exit:c}=s.extendedDiagnostics?HW("Source Map","beforeSourcemap","afterSourcemap"):nZ,p=[],u=[],g=new Map,d,h=[],S,T=[],x="",I=0,P=0,E=0,F=0,O=0,W=0,z=!1,$=0,X=0,U=0,_e=0,re=0,V=0,ce=!1,oe=!1,le=!1;return{getSources:()=>p,addSource:de,setSourceContent:ve,addName:H,addMapping:ye,appendSourceMap:ee,toJSON:ae,toString:()=>JSON.stringify(ae())};function de(te){o();let Ne=Zx(i,te,e.getCurrentDirectory(),e.getCanonicalFileName,!0),Ie=g.get(Ne);return Ie===void 0&&(Ie=u.length,u.push(Ne),p.push(te),g.set(Ne,Ie)),c(),Ie}function ve(te,Ne){if(o(),Ne!==null){for(d||(d=[]);d.length<te;)d.push(null);d[te]=Ne}c()}function H(te){o(),S||(S=new Map);let Ne=S.get(te);return Ne===void 0&&(Ne=h.length,h.push(te),S.set(te,Ne)),c(),Ne}function Se(te,Ne){return!ce||$!==te||X!==Ne}function Je(te,Ne,Ie){return te!==void 0&&Ne!==void 0&&Ie!==void 0&&U===te&&(_e>Ne||_e===Ne&&re>Ie)}function ye(te,Ne,Ie,xe,Qe,St){w.assert(te>=$,"generatedLine cannot backtrack"),w.assert(Ne>=0,"generatedCharacter cannot be negative"),w.assert(Ie===void 0||Ie>=0,"sourceIndex cannot be negative"),w.assert(xe===void 0||xe>=0,"sourceLine cannot be negative"),w.assert(Qe===void 0||Qe>=0,"sourceCharacter cannot be negative"),o(),(Se(te,Ne)||Je(Ie,xe,Qe))&&(Oe(),$=te,X=Ne,oe=!1,le=!1,ce=!0),Ie!==void 0&&xe!==void 0&&Qe!==void 0&&(U=Ie,_e=xe,re=Qe,oe=!0,St!==void 0&&(V=St,le=!0)),c()}function ee(te,Ne,Ie,xe,Qe,St){w.assert(te>=$,"generatedLine cannot backtrack"),w.assert(Ne>=0,"generatedCharacter cannot be negative"),o();let Bt=[],fr,Mr=LU(Ie.mappings);for(let ft of Mr){if(St&&(ft.generatedLine>St.line||ft.generatedLine===St.line&&ft.generatedCharacter>St.character))break;if(Qe&&(ft.generatedLine<Qe.line||Qe.line===ft.generatedLine&&ft.generatedCharacter<Qe.character))continue;let qt,Hr,bi,us;if(ft.sourceIndex!==void 0){if(qt=Bt[ft.sourceIndex],qt===void 0){let Sn=Ie.sources[ft.sourceIndex],_i=Ie.sourceRoot?Jn(Ie.sourceRoot,Sn):Sn,qe=Jn(ti(xe),_i);Bt[ft.sourceIndex]=qt=de(qe),Ie.sourcesContent&&typeof Ie.sourcesContent[ft.sourceIndex]=="string"&&ve(qt,Ie.sourcesContent[ft.sourceIndex])}Hr=ft.sourceLine,bi=ft.sourceCharacter,Ie.names&&ft.nameIndex!==void 0&&(fr||(fr=[]),us=fr[ft.nameIndex],us===void 0&&(fr[ft.nameIndex]=us=H(Ie.names[ft.nameIndex])))}let At=ft.generatedLine-(Qe?Qe.line:0),Un=At+te,rs=Qe&&Qe.line===ft.generatedLine?ft.generatedCharacter-Qe.character:ft.generatedCharacter,zn=At===0?rs+Ne:rs;ye(Un,zn,qt,Hr,bi,us)}c()}function ge(){return!z||I!==$||P!==X||E!==U||F!==_e||O!==re||W!==V}function ke(te){T.push(te),T.length>=1024&&nt()}function Oe(){if(!(!ce||!ge())){if(o(),I<$){do ke(59),I++;while(I<$);P=0}else w.assertEqual(I,$,"generatedLine cannot backtrack"),z&&ke(44);Ue(X-P),P=X,oe&&(Ue(U-E),E=U,Ue(_e-F),F=_e,Ue(re-O),O=re,le&&(Ue(V-W),W=V)),z=!0,c()}}function nt(){T.length>0&&(x+=String.fromCharCode.apply(void 0,T),T.length=0)}function ae(){return Oe(),nt(),{version:3,file:t,sourceRoot:n,sources:u,names:h,mappings:x,sourcesContent:d}}function Ue(te){te<0?te=(-te<<1)+1:te=te<<1;do{let Ne=te&31;te=te>>5,te>0&&(Ne=Ne|32),ke(cJe(Ne))}while(te>0)}}var oae=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,OU=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,FU=/^\s*(\/\/[@#] .*)?$/;function jU(e,t){return{getLineCount:()=>t.length,getLineText:n=>e.substring(t[n],t[n+1])}}function cae(e){for(let t=e.getLineCount()-1;t>=0;t--){let n=e.getLineText(t),i=OU.exec(n);if(i)return i[1].trimEnd();if(!n.match(FU))break}}function aJe(e){return typeof e=="string"||e===null}function oJe(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&gs(e.sources)&&Fi(e.sources,Is)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||gs(e.sourcesContent)&&Fi(e.sourcesContent,aJe))&&(e.names===void 0||e.names===null||gs(e.names)&&Fi(e.names,Is))}function lae(e){try{let t=JSON.parse(e);if(oJe(t))return t}catch{}}function LU(e){let t=!1,n=0,i=0,s=0,o=0,c=0,p=0,u=0,g;return{get pos(){return n},get error(){return g},get state(){return d(!0,!0)},next(){for(;!t&&n<e.length;){let E=e.charCodeAt(n);if(E===59){i++,s=0,n++;continue}if(E===44){n++;continue}let F=!1,O=!1;if(s+=P(),x())return h();if(s<0)return T("Invalid generatedCharacter found");if(!I()){if(F=!0,o+=P(),x())return h();if(o<0)return T("Invalid sourceIndex found");if(I())return T("Unsupported Format: No entries after sourceIndex");if(c+=P(),x())return h();if(c<0)return T("Invalid sourceLine found");if(I())return T("Unsupported Format: No entries after sourceLine");if(p+=P(),x())return h();if(p<0)return T("Invalid sourceCharacter found");if(!I()){if(O=!0,u+=P(),x())return h();if(u<0)return T("Invalid nameIndex found");if(!I())return T("Unsupported Error Format: Entries after nameIndex")}}return{value:d(F,O),done:t}}return h()},[Symbol.iterator](){return this}};function d(E,F){return{generatedLine:i,generatedCharacter:s,sourceIndex:E?o:void 0,sourceLine:E?c:void 0,sourceCharacter:E?p:void 0,nameIndex:F?u:void 0}}function h(){return t=!0,{value:void 0,done:!0}}function S(E){g===void 0&&(g=E)}function T(E){return S(E),h()}function x(){return g!==void 0}function I(){return n===e.length||e.charCodeAt(n)===44||e.charCodeAt(n)===59}function P(){let E=!0,F=0,O=0;for(;E;n++){if(n>=e.length)return S("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;let W=lJe(e.charCodeAt(n));if(W===-1)return S("Invalid character in VLQ"),-1;E=(W&32)!==0,O=O|(W&31)<<F,F+=5}return(O&1)===0?O=O>>1:(O=O>>1,O=-O),O}}function sTe(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function uae(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function cJe(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:e===62?43:e===63?47:w.fail(`${e}: not a base64 value`)}function lJe(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:e===43?62:e===47?63:-1}function aTe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function oTe(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function uJe(e,t){return w.assert(e.sourceIndex===t.sourceIndex),Po(e.sourcePosition,t.sourcePosition)}function pJe(e,t){return Po(e.generatedPosition,t.generatedPosition)}function fJe(e){return e.sourcePosition}function _Je(e){return e.generatedPosition}function pae(e,t,n){let i=ti(n),s=t.sourceRoot?as(t.sourceRoot,i):i,o=as(t.file,i),c=e.getSourceFileLike(o),p=t.sources.map(F=>as(F,s)),u=new Map(p.map((F,O)=>[e.getCanonicalFileName(F),O])),g,d,h;return{getSourcePosition:E,getGeneratedPosition:P};function S(F){let O=c!==void 0?yM(c,F.generatedLine,F.generatedCharacter,!0):-1,W,z;if(uae(F)){let $=e.getSourceFileLike(p[F.sourceIndex]);W=t.sources[F.sourceIndex],z=$!==void 0?yM($,F.sourceLine,F.sourceCharacter,!0):-1}return{generatedPosition:O,source:W,sourceIndex:F.sourceIndex,sourcePosition:z,nameIndex:F.nameIndex}}function T(){if(g===void 0){let F=LU(t.mappings),O=ds(F,S);F.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${F.error}`),g=Ke):g=O}return g}function x(F){if(h===void 0){let O=[];for(let W of T()){if(!aTe(W))continue;let z=O[W.sourceIndex];z||(O[W.sourceIndex]=z=[]),z.push(W)}h=O.map(W=>fP(W,uJe,oTe))}return h[F]}function I(){if(d===void 0){let F=[];for(let O of T())F.push(O);d=fP(F,pJe,oTe)}return d}function P(F){let O=u.get(e.getCanonicalFileName(F.fileName));if(O===void 0)return F;let W=x(O);if(!_t(W))return F;let z=Vx(W,F.pos,fJe,Po);z<0&&(z=~z);let $=W[z];return $===void 0||$.sourceIndex!==O?F:{fileName:o,pos:$.generatedPosition}}function E(F){let O=I();if(!_t(O))return F;let W=Vx(O,F.pos,_Je,Po);W<0&&(W=~W);let z=O[W];return z===void 0||!aTe(z)?F:{fileName:p[z.sourceIndex],pos:z.sourcePosition}}}var WU={getSourcePosition:Do,getGeneratedPosition:Do};function Ep(e){return e=sc(e),e?qa(e):0}function cTe(e){return!e||!Km(e)&&!G_(e)?!1:_t(e.elements,lTe)}function lTe(e){return xg(e.propertyName||e.name)}function pm(e,t){return n;function n(s){return s.kind===308?t(s):i(s)}function i(s){return e.factory.createBundle(kr(s.sourceFiles,t))}}function fae(e){return!!qw(e)}function sj(e){if(qw(e))return!0;let t=e.importClause&&e.importClause.namedBindings;if(!t||!Km(t))return!1;let n=0;for(let i of t.elements)lTe(i)&&n++;return n>0&&n!==t.elements.length||!!(t.elements.length-n)&&sk(e)}function BU(e){return!sj(e)&&(sk(e)||!!e.importClause&&Km(e.importClause.namedBindings)&&cTe(e.importClause.namedBindings))}function zU(e,t){let n=e.getEmitResolver(),i=e.getCompilerOptions(),s=[],o=new dJe,c=[],p=new Map,u=new Set,g,d=!1,h,S=!1,T=!1,x=!1;for(let F of t.statements)switch(F.kind){case 273:s.push(F),!T&&sj(F)&&(T=!0),!x&&BU(F)&&(x=!0);break;case 272:F.moduleReference.kind===284&&s.push(F);break;case 279:if(F.moduleSpecifier)if(!F.exportClause)s.push(F),S=!0;else if(s.push(F),G_(F.exportClause))P(F),x||(x=cTe(F.exportClause));else{let O=F.exportClause.name,W=gb(O);p.get(W)||(cE(c,Ep(F),O),p.set(W,!0),g=Fr(g,O)),T=!0}else P(F);break;case 278:F.isExportEquals&&!h&&(h=F);break;case 244:if(ri(F,32))for(let O of F.declarationList.declarations)g=uTe(O,p,g,c);break;case 263:ri(F,32)&&E(F,void 0,ri(F,2048));break;case 264:if(ri(F,32))if(ri(F,2048))d||(cE(c,Ep(F),e.factory.getDeclarationName(F)),d=!0);else{let O=F.name;O&&!p.get(Fn(O))&&(cE(c,Ep(F),O),p.set(Fn(O),!0),g=Fr(g,O))}break}let I=OJ(e.factory,e.getEmitHelperFactory(),t,i,S,T,x);return I&&s.unshift(I),{externalImports:s,exportSpecifiers:o,exportEquals:h,hasExportStarsToExportValues:S,exportedBindings:c,exportedNames:g,exportedFunctions:u,externalHelpersImportDeclaration:I};function P(F){for(let O of Zs(F.exportClause,G_).elements){let W=gb(O.name);if(!p.get(W)){let z=O.propertyName||O.name;if(z.kind!==11){F.moduleSpecifier||o.add(z,O);let $=n.getReferencedImportDeclaration(z)||n.getReferencedValueDeclaration(z);if($){if($.kind===263){E($,O.name,xg(O.name));continue}cE(c,Ep($),O.name)}}p.set(W,!0),g=Fr(g,O.name)}}}function E(F,O,W){if(u.add(sc(F,Gc)),W)d||(cE(c,Ep(F),O??e.factory.getDeclarationName(F)),d=!0);else{O??(O=F.name);let z=gb(O);p.get(z)||(cE(c,Ep(F),O),p.set(z,!0))}}}function uTe(e,t,n,i){if(Ls(e.name))for(let s of e.name.elements)Fl(s)||(n=uTe(s,t,n,i));else if(!ec(e.name)){let s=Fn(e.name);t.get(s)||(t.set(s,!0),n=Fr(n,e.name),cy(e.name)&&cE(i,Ep(e),e.name))}return n}function cE(e,t,n){let i=e[t];return i?i.push(n):e[t]=i=[n],i}var FI=class sP{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(sP.toKey(t))}get(t){return this._map.get(sP.toKey(t))}set(t,n){return this._map.set(sP.toKey(t),n),this}delete(t){var n;return((n=this._map)==null?void 0:n.delete(sP.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(HT(t)||ec(t)){let n=t.emitNode.autoGenerate;if((n.flags&7)===4){let i=S4(t),s=sh(i)&&i!==t?sP.toKey(i):`(generated@${qa(i)})`;return Y0(!1,n.prefix,s,n.suffix,sP.toKey)}else{let i=`(auto@${n.id})`;return Y0(!1,n.prefix,i,n.suffix,sP.toKey)}}return zi(t)?Fn(t).slice(1):Fn(t)}},dJe=class extends FI{add(e,t){let n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}remove(e,t){let n=this.get(e);n&&(Hx(n,t),n.length||this.delete(e))}};function qS(e){return Ha(e)||e.kind===9||qp(e.kind)||Be(e)}function eg(e){return!Be(e)&&qS(e)}function lE(e){return e>=65&&e<=79}function uE(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function aj(e){if(!Ql(e))return;let t=Qa(e.expression);return ek(t)?t:void 0}function pTe(e,t,n){for(let i=t;i<e.length;i+=1){let s=e[i];if(aj(s))return n.unshift(i),!0;if(Sk(s)&&pTe(s.tryBlock.statements,0,n))return n.unshift(i),!0}return!1}function oj(e,t){let n=[];return pTe(e,t,n),n}function GU(e,t,n){return Mn(e.members,i=>gJe(i,t,n))}function mJe(e){return hJe(e)||zc(e)}function cj(e){return Mn(e.members,mJe)}function gJe(e,t,n){return hs(e)&&(!!e.initializer||!t)&&Cl(e)===n}function hJe(e){return hs(e)&&Cl(e)}function B4(e){return e.kind===173&&e.initializer!==void 0}function _ae(e){return!Ks(e)&&(n2(e)||Gp(e))&&zi(e.name)}function dae(e){let t;if(e){let n=e.parameters,i=n.length>0&&bb(n[0]),s=i?1:0,o=i?n.length-1:n.length;for(let c=0;c<o;c++){let p=n[c+s];(t||a_(p))&&(t||(t=new Array(o)),t[c]=ab(p))}}return t}function JU(e,t){let n=ab(e),i=t?dae(_h(e)):void 0;if(!(!_t(n)&&!_t(i)))return{decorators:n,parameters:i}}function lj(e,t,n){switch(e.kind){case 178:case 179:return n?yJe(e,t,!0):fTe(e,!1);case 175:return fTe(e,n);case 173:return vJe(e);default:return}}function yJe(e,t,n){if(!e.body)return;let{firstAccessor:i,secondAccessor:s,getAccessor:o,setAccessor:c}=PS(t.members,e),p=a_(i)?i:s&&a_(s)?s:void 0;if(!p||e!==p)return;let u=ab(p),g=n?dae(c):void 0;if(!(!_t(u)&&!_t(g)))return{decorators:u,parameters:g,getDecorators:o&&ab(o),setDecorators:c&&ab(c)}}function fTe(e,t){if(!e.body)return;let n=ab(e),i=t?dae(e):void 0;if(!(!_t(n)&&!_t(i)))return{decorators:n,parameters:i}}function vJe(e){let t=ab(e);if(_t(t))return{decorators:t}}function bJe(e,t){for(;e;){let n=t(e);if(n!==void 0)return n;e=e.previous}}function mae(e){return{data:e}}function UU(e,t){var n,i;return HT(t)?(n=e?.generatedIdentifiers)==null?void 0:n.get(S4(t)):(i=e?.identifiers)==null?void 0:i.get(t.escapedText)}function Ek(e,t,n){HT(t)?(e.generatedIdentifiers??(e.generatedIdentifiers=new Map),e.generatedIdentifiers.set(S4(t),n)):(e.identifiers??(e.identifiers=new Map),e.identifiers.set(t.escapedText,n))}function gae(e,t){return bJe(e,n=>UU(n.privateEnv,t))}function SJe(e){return!e.initializer&&Be(e.name)}function z4(e){return Fi(e,SJe)}function rC(e,t){if(!e||!ya(e)||!m6(e.text,t))return e;let n=tv(e.text,H4(e.text,t));return n!==e.text?Rn(mt(A.createStringLiteral(n,e.singleQuote),e),e):e}var hae=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(hae||{});function Nk(e,t,n,i,s,o){let c=e,p;if(Yy(e))for(p=e.right;Wre(e.left)||lG(e.left);)if(Yy(p))c=e=p,p=e.right;else return w.checkDefined(rt(p,t,ht));let u,g={context:n,level:i,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:d,emitBindingOrAssignment:h,createArrayBindingOrAssignmentPattern:S=>PJe(n.factory,S),createObjectBindingOrAssignmentPattern:S=>EJe(n.factory,S),createArrayBindingOrAssignmentElement:MJe,visitor:t};if(p&&(p=rt(p,t,ht),w.assert(p),Be(p)&&yae(e,p.escapedText)||vae(e)?p=nC(g,p,!1,c):s?p=nC(g,p,!0,c):ko(e)&&(c=p)),pE(g,e,p,c,Yy(e)),p&&s){if(!_t(u))return p;u.push(p)}return n.factory.inlineExpressions(u)||n.factory.createOmittedExpression();function d(S){u=Fr(u,S)}function h(S,T,x,I){w.assertNode(S,o?Be:ht);let P=o?o(S,T,x):mt(n.factory.createAssignment(w.checkDefined(rt(S,t,ht)),T),x);P.original=I,d(P)}}function yae(e,t){let n=Nb(e);return RM(n)?TJe(n,t):Be(n)?n.escapedText===t:!1}function TJe(e,t){let n=wI(e);for(let i of n)if(yae(i,t))return!0;return!1}function vae(e){let t=C7(e);if(t&&na(t)&&!$T(t.expression))return!0;let n=Nb(e);return!!n&&RM(n)&&kJe(n)}function kJe(e){return!!or(wI(e),vae)}function $S(e,t,n,i,s,o=!1,c){let p,u=[],g=[],d={context:n,level:i,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:o,emitExpression:h,emitBindingOrAssignment:S,createArrayBindingOrAssignmentPattern:T=>DJe(n.factory,T),createObjectBindingOrAssignmentPattern:T=>AJe(n.factory,T),createArrayBindingOrAssignmentElement:T=>NJe(n.factory,T),visitor:t};if(li(e)){let T=v4(e);T&&(Be(T)&&yae(e,T.escapedText)||vae(e))&&(T=nC(d,w.checkDefined(rt(T,d.visitor,ht)),!1,T),e=n.factory.updateVariableDeclaration(e,e.name,void 0,void 0,T))}if(pE(d,e,s,e,c),p){let T=n.factory.createTempVariable(void 0);if(o){let x=n.factory.inlineExpressions(p);p=void 0,S(T,x,void 0,void 0)}else{n.hoistVariableDeclaration(T);let x=ka(u);x.pendingExpressions=Fr(x.pendingExpressions,n.factory.createAssignment(T,x.value)),Gn(x.pendingExpressions,p),x.value=T}}for(let{pendingExpressions:T,name:x,value:I,location:P,original:E}of u){let F=n.factory.createVariableDeclaration(x,void 0,void 0,T?n.factory.inlineExpressions(Fr(T,I)):I);F.original=E,mt(F,P),g.push(F)}return g;function h(T){p=Fr(p,T)}function S(T,x,I,P){w.assertNode(T,QT),p&&(x=n.factory.inlineExpressions(Fr(p,x)),p=void 0),u.push({pendingExpressions:p,name:T,value:x,location:I,original:P})}}function pE(e,t,n,i,s){let o=Nb(t);if(!s){let c=rt(v4(t),e.visitor,ht);c?n?(n=wJe(e,n,c,i),!eg(c)&&RM(o)&&(n=nC(e,n,!0,i))):n=c:n||(n=e.context.factory.createVoidZero())}VB(o)?xJe(e,t,o,n,i):qB(o)?CJe(e,t,o,n,i):e.emitBindingOrAssignment(o,n,i,t)}function xJe(e,t,n,i,s){let o=wI(n),c=o.length;if(c!==1){let g=!MM(t)||c!==0;i=nC(e,i,g,s)}let p,u;for(let g=0;g<c;g++){let d=o[g];if(x7(d)){if(g===c-1){p&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(p),i,s,n),p=void 0);let h=e.context.getEmitHelperFactory().createRestHelper(i,o,u,n);pE(e,d,h,d)}}else{let h=FJ(d);if(e.level>=1&&!(d.transformFlags&98304)&&!(Nb(d).transformFlags&98304)&&!na(h))p=Fr(p,rt(d,e.visitor,ite));else{p&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(p),i,s,n),p=void 0);let S=IJe(e,i,h);na(h)&&(u=Fr(u,S.argumentExpression)),pE(e,d,S,d)}}}p&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(p),i,s,n)}function CJe(e,t,n,i,s){let o=wI(n),c=o.length;if(e.level<1&&e.downlevelIteration)i=nC(e,mt(e.context.getEmitHelperFactory().createReadHelper(i,c>0&&x7(o[c-1])?void 0:c),s),!1,s);else if(c!==1&&(e.level<1||c===0)||Fi(o,Fl)){let g=!MM(t)||c!==0;i=nC(e,i,g,s)}let p,u;for(let g=0;g<c;g++){let d=o[g];if(e.level>=1)if(d.transformFlags&65536||e.hasTransformedPriorElement&&!_Te(d)){e.hasTransformedPriorElement=!0;let h=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(h),u=Fr(u,[h,d]),p=Fr(p,e.createArrayBindingOrAssignmentElement(h))}else p=Fr(p,d);else{if(Fl(d))continue;if(x7(d)){if(g===c-1){let h=e.context.factory.createArraySliceCall(i,g);pE(e,d,h,d)}}else{let h=e.context.factory.createElementAccessExpression(i,g);pE(e,d,h,d)}}}if(p&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(p),i,s,n),u)for(let[g,d]of u)pE(e,d,g,d)}function _Te(e){let t=Nb(e);if(!t||Fl(t))return!0;let n=C7(e);if(n&&!Bm(n))return!1;let i=v4(e);return i&&!eg(i)?!1:RM(t)?Fi(wI(t),_Te):Be(t)}function wJe(e,t,n,i){return t=nC(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,n,void 0,t)}function IJe(e,t,n){let{factory:i}=e.context;if(na(n)){let s=nC(e,w.checkDefined(rt(n.expression,e.visitor,ht)),!1,n);return e.context.factory.createElementAccessExpression(t,s)}else if(s_(n)||pI(n)){let s=i.cloneNode(n);return e.context.factory.createElementAccessExpression(t,s)}else{let s=e.context.factory.createIdentifier(Fn(n));return e.context.factory.createPropertyAccessExpression(t,s)}}function nC(e,t,n,i){if(Be(t)&&n)return t;{let s=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(s),e.emitExpression(mt(e.context.factory.createAssignment(s,t),i))):e.emitBindingOrAssignment(s,t,i,void 0),s}}function DJe(e,t){return w.assertEachNode(t,fF),e.createArrayBindingPattern(t)}function PJe(e,t){return w.assertEachNode(t,FM),e.createArrayLiteralExpression(kr(t,e.converters.convertToArrayAssignmentElement))}function AJe(e,t){return w.assertEachNode(t,Da),e.createObjectBindingPattern(t)}function EJe(e,t){return w.assertEachNode(t,OM),e.createObjectLiteralExpression(kr(t,e.converters.convertToObjectAssignmentElement))}function NJe(e,t){return e.createBindingElement(void 0,void 0,t)}function MJe(e){return e}function RJe(e,t,n=e.createThis()){let i=e.createAssignment(t,n),s=e.createExpressionStatement(i),o=e.createBlock([s],!1),c=e.createClassStaticBlockDeclaration(o);return Ou(c).classThis=t,c}function fE(e){var t;if(!zc(e)||e.body.statements.length!==1)return!1;let n=e.body.statements[0];return Ql(n)&&Hl(n.expression,!0)&&Be(n.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===n.expression.left&&n.expression.right.kind===110}function VU(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&_t(e.members,fE)}function bae(e,t,n,i){if(VU(t))return t;let s=RJe(e,n,i);t.name&&Ia(s.body.statements[0],t.name);let o=e.createNodeArray([s,...t.members]);mt(o,t.members);let c=hl(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o);return Ou(c).classThis=n,c}function uj(e,t,n){let i=sc(Nc(n));return(hl(i)||Gc(i))&&!i.name&&ri(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function dTe(e,t,n){let{factory:i}=e;if(n!==void 0)return{assignedName:i.createStringLiteral(n),name:t};if(Bm(t)||zi(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(Bm(t.expression)&&!Be(t.expression))return{assignedName:i.createStringLiteralFromNode(t.expression),name:t};let s=i.getGeneratedNameForNode(t);e.hoistVariableDeclaration(s);let o=e.getEmitHelperFactory().createPropKeyHelper(t.expression),c=i.createAssignment(s,o),p=i.updateComputedPropertyName(t,c);return{assignedName:s,name:p}}function OJe(e,t,n=e.factory.createThis()){let{factory:i}=e,s=e.getEmitHelperFactory().createSetFunctionNameHelper(n,t),o=i.createExpressionStatement(s),c=i.createBlock([o],!1),p=i.createClassStaticBlockDeclaration(c);return Ou(p).assignedName=t,p}function iC(e){var t;if(!zc(e)||e.body.statements.length!==1)return!1;let n=e.body.statements[0];return Ql(n)&&jA(n.expression,"___setFunctionName")&&n.expression.arguments.length>=2&&n.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function pj(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&_t(e.members,iC)}function qU(e){return!!e.name||pj(e)}function fj(e,t,n,i){if(pj(t))return t;let{factory:s}=e,o=OJe(e,n,i);t.name&&Ia(o.body.statements[0],t.name);let c=Tc(t.members,fE)+1,p=t.members.slice(0,c),u=t.members.slice(c),g=s.createNodeArray([...p,o,...u]);return mt(g,t.members),t=hl(t)?s.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g):s.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g),Ou(t).assignedName=n,t}function jI(e,t,n,i){if(i&&ya(n)&&xz(n))return t;let{factory:s}=e,o=Nc(t),c=Zc(o)?Zs(fj(e,o,n),Zc):e.getEmitHelperFactory().createSetFunctionNameHelper(o,n);return s.restoreOuterExpressions(t,c)}function FJe(e,t,n,i){let{factory:s}=e,{assignedName:o,name:c}=dTe(e,t.name,i),p=jI(e,t.initializer,o,n);return s.updatePropertyAssignment(t,c,p)}function jJe(e,t,n,i){let{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):uj(s,t.name,t.objectAssignmentInitializer),c=jI(e,t.objectAssignmentInitializer,o,n);return s.updateShorthandPropertyAssignment(t,t.name,c)}function LJe(e,t,n,i){let{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):uj(s,t.name,t.initializer),c=jI(e,t.initializer,o,n);return s.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,c)}function WJe(e,t,n,i){let{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):uj(s,t.name,t.initializer),c=jI(e,t.initializer,o,n);return s.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,c)}function BJe(e,t,n,i){let{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):uj(s,t.name,t.initializer),c=jI(e,t.initializer,o,n);return s.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,c)}function zJe(e,t,n,i){let{factory:s}=e,{assignedName:o,name:c}=dTe(e,t.name,i),p=jI(e,t.initializer,o,n);return s.updatePropertyDeclaration(t,t.modifiers,c,t.questionToken??t.exclamationToken,t.type,p)}function GJe(e,t,n,i){let{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):uj(s,t.left,t.right),c=jI(e,t.right,o,n);return s.updateBinaryExpression(t,t.left,t.operatorToken,c)}function JJe(e,t,n,i){let{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):s.createStringLiteral(t.isExportEquals?"":"default"),c=jI(e,t.expression,o,n);return s.updateExportAssignment(t,t.modifiers,c)}function Ef(e,t,n,i){switch(t.kind){case 304:return FJe(e,t,n,i);case 305:return jJe(e,t,n,i);case 261:return LJe(e,t,n,i);case 170:return WJe(e,t,n,i);case 209:return BJe(e,t,n,i);case 173:return zJe(e,t,n,i);case 227:return GJe(e,t,n,i);case 278:return JJe(e,t,n,i)}}var Sae=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(Sae||{});function $U(e,t,n,i,s,o){let c=rt(t.tag,n,ht);w.assert(c);let p=[void 0],u=[],g=[],d=t.template;if(o===0&&!qz(d))return Pr(t,n,e);let{factory:h}=e;if(mk(d))u.push(Tae(h,d)),g.push(kae(h,d,i));else{u.push(Tae(h,d.head)),g.push(kae(h,d.head,i));for(let T of d.templateSpans)u.push(Tae(h,T.literal)),g.push(kae(h,T.literal,i)),p.push(w.checkDefined(rt(T.expression,n,ht)))}let S=e.getEmitHelperFactory().createTemplateObjectHelper(h.createArrayLiteralExpression(u),h.createArrayLiteralExpression(g));if(Pl(i)){let T=h.createUniqueName("templateObject");s(T),p[0]=h.createLogicalOr(T,h.createAssignment(T,S))}else p[0]=S;return h.createCallExpression(c,void 0,p)}function Tae(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function kae(e,t,n){let i=t.rawText;if(i===void 0){w.assertIsDefined(n,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=hS(n,t);let s=t.kind===15||t.kind===18;i=i.substring(1,i.length-(s?1:2))}return i=i.replace(/\r\n?/g,`
|
|
`),mt(e.createStringLiteral(i),t)}var UJe=!1;function xae(e){let{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,resumeLexicalEnvironment:s,endLexicalEnvironment:o,hoistVariableDeclaration:c}=e,p=e.getEmitResolver(),u=e.getCompilerOptions(),g=xa(u),d=_p(u),h=!!u.experimentalDecorators,S=u.emitDecoratorMetadata?wae(e):void 0,T=e.onEmitNode,x=e.onSubstituteNode;e.onEmitNode=d_,e.onSubstituteNode=ys,e.enableSubstitution(212),e.enableSubstitution(213);let I,P,E,F,O,W=0,z;return $;function $(N){return N.kind===309?X(N):U(N)}function X(N){return t.createBundle(N.sourceFiles.map(U))}function U(N){if(N.isDeclarationFile)return N;I=N;let We=_e(N,Ue);return vh(We,e.readEmitHelpers()),I=void 0,We}function _e(N,We){let dt=F,Ut=O;re(N);let Wr=We(N);return F!==dt&&(O=Ut),F=dt,Wr}function re(N){switch(N.kind){case 308:case 270:case 269:case 242:F=N,O=void 0;break;case 264:case 263:if(ri(N,128))break;N.name?je(N):w.assert(N.kind===264||ri(N,2048));break}}function V(N){return _e(N,ce)}function ce(N){return N.transformFlags&1?ae(N):N}function oe(N){return _e(N,le)}function le(N){switch(N.kind){case 273:case 272:case 278:case 279:return ve(N);default:return ce(N)}}function de(N){let We=As(N);if(We===N||Qo(N))return!1;if(!We||We.kind!==N.kind)return!0;switch(N.kind){case 273:if(w.assertNode(We,ac),N.importClause!==We.importClause||N.attributes!==We.attributes)return!0;break;case 272:if(w.assertNode(We,Dl),N.name!==We.name||N.isTypeOnly!==We.isTypeOnly||N.moduleReference!==We.moduleReference&&(xp(N.moduleReference)||xp(We.moduleReference)))return!0;break;case 279:if(w.assertNode(We,tl),N.exportClause!==We.exportClause||N.attributes!==We.attributes)return!0;break}return!1}function ve(N){if(de(N))return N.transformFlags&1?Pr(N,V,e):N;switch(N.kind){case 273:return Zr(N);case 272:return Tr(N);case 278:return It(N);case 279:return Ot(N);default:w.fail("Unhandled ellided statement")}}function H(N){return _e(N,Se)}function Se(N){if(!(N.kind===279||N.kind===273||N.kind===274||N.kind===272&&N.moduleReference.kind===284))return N.transformFlags&1||ri(N,32)?ae(N):N}function Je(N){return We=>_e(We,dt=>ye(dt,N))}function ye(N,We){switch(N.kind){case 177:return bt(N);case 173:return qe(N,We);case 178:return js(N,We);case 179:return oa(N,We);case 175:return ei(N,We);case 176:return Pr(N,V,e);case 241:return N;case 182:return;default:return w.failBadSyntaxKind(N)}}function ee(N){return We=>_e(We,dt=>ge(dt,N))}function ge(N,We){switch(N.kind){case 304:case 305:case 306:return V(N);case 178:return js(N,We);case 179:return oa(N,We);case 175:return ei(N,We);default:return w.failBadSyntaxKind(N)}}function ke(N){return Il(N)?void 0:V(N)}function Oe(N){return la(N)?void 0:V(N)}function nt(N){if(!Il(N)&&!(S2(N.kind)&28895)&&!(P&&N.kind===95))return N}function ae(N){if(Ei(N)&&ri(N,128))return t.createNotEmittedStatement(N);switch(N.kind){case 95:case 90:return P?void 0:N;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 189:case 190:case 191:case 192:case 188:case 183:case 169:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 186:case 185:case 187:case 184:case 193:case 194:case 195:case 197:case 198:case 199:case 200:case 201:case 202:case 182:return;case 266:return t.createNotEmittedStatement(N);case 271:return;case 265:return t.createNotEmittedStatement(N);case 264:return Qe(N);case 232:return St(N);case 299:return zn(N);case 234:return Sn(N);case 211:return te(N);case 177:case 173:case 175:case 178:case 179:case 176:return w.fail("Class and object literal elements must be visited with their respective visitors");case 263:return wr(N);case 219:return Ds(N);case 220:return tt(N);case 170:return Mt(N);case 218:return Ee(N);case 217:case 235:return et(N);case 239:return Pt(N);case 214:return Le(N);case 215:return kt(N);case 216:return Tt(N);case 236:return at(N);case 267:return ln(N);case 244:return se(N);case 261:return Z(N);case 268:return Ce(N);case 272:return Tr(N);case 286:return Rt(N);case 287:return Ye(N);default:return Pr(N,V,e)}}function Ue(N){let We=Ru(u,"alwaysStrict")&&!(Pl(N)&&d>=5)&&!M_(N);return t.updateSourceFile(N,RU(N.statements,oe,e,0,We))}function te(N){return t.updateObjectLiteralExpression(N,Br(N.properties,ee(N),Xh))}function Ne(N){let We=0;_t(GU(N,!0,!0))&&(We|=1);let dt=im(N);return dt&&Nc(dt.expression).kind!==106&&(We|=64),Ky(h,N)&&(We|=2),HP(h,N)&&(We|=4),Cr(N)?We|=8:Vs(N)?We|=32:di(N)&&(We|=16),We}function Ie(N){return!!(N.transformFlags&8192)}function xe(N){return a_(N)||_t(N.typeParameters)||_t(N.heritageClauses,Ie)||_t(N.members,Ie)}function Qe(N){let We=Ne(N),dt=g<=1&&!!(We&7);if(!xe(N)&&!Ky(h,N)&&!Cr(N))return t.updateClassDeclaration(N,Br(N.modifiers,nt,la),N.name,void 0,Br(N.heritageClauses,V,Af),Br(N.members,Je(N),cl));dt&&e.startLexicalEnvironment();let Ut=dt||We&8,Wr=Ut?Br(N.modifiers,Oe,tc):Br(N.modifiers,V,tc);We&2&&(Wr=fr(Wr,N));let hn=Ut&&!N.name||We&4||We&1?N.name??t.getGeneratedNameForNode(N):N.name,Rr=t.updateClassDeclaration(N,Wr,hn,void 0,Br(N.heritageClauses,V,Af),Bt(N)),Di=Oa(N);We&1&&(Di|=64),yn(Rr,Di);let Ri;if(dt){let so=[Rr],ua=pG(ha(I.text,N.members.end),20),Xo=t.getInternalName(N),ul=t.createPartiallyEmittedExpression(Xo);cI(ul,ua.end),yn(ul,3072);let Kc=t.createReturnStatement(ul);DA(Kc,ua.pos),yn(Kc,3840),so.push(Kc),lh(so,e.endLexicalEnvironment());let Eo=t.createImmediatelyInvokedArrowFunction(so);i4(Eo,1);let Uc=t.createVariableDeclaration(t.getLocalName(N,!1,!1),void 0,void 0,Eo);Rn(Uc,N);let Of=t.createVariableStatement(void 0,t.createVariableDeclarationList([Uc],1));Rn(Of,N),gl(Of,N),Ia(Of,ny(N)),Yu(Of),Ri=Of}else Ri=Rr;if(Ut){if(We&8)return[Ri,qs(N)];if(We&32)return[Ri,t.createExportDefault(t.getLocalName(N,!1,!0))];if(We&16)return[Ri,t.createExternalModuleExport(t.getDeclarationName(N,!1,!0))]}return Ri}function St(N){let We=Br(N.modifiers,Oe,tc);return Ky(h,N)&&(We=fr(We,N)),t.updateClassExpression(N,We,N.name,void 0,Br(N.heritageClauses,V,Af),Bt(N))}function Bt(N){let We=Br(N.members,Je(N),cl),dt,Ut=_h(N),Wr=Ut&&Mn(Ut.parameters,Yn=>Tf(Yn,Ut));if(Wr)for(let Yn of Wr){let hn=t.createPropertyDeclaration(void 0,Yn.name,void 0,void 0,void 0);Rn(hn,Yn),dt=Fr(dt,hn)}return dt?(dt=Gn(dt,We),mt(t.createNodeArray(dt),N.members)):We}function fr(N,We){let dt=ft(We,We);if(_t(dt)){let Ut=[];Gn(Ut,qW(N,b4)),Gn(Ut,Mn(N,Il)),Gn(Ut,dt),Gn(Ut,Mn(KY(N,b4),la)),N=mt(t.createNodeArray(Ut),N)}return N}function Mr(N,We,dt){if(ni(dt)&&kz(h,We,dt)){let Ut=ft(We,dt);if(_t(Ut)){let Wr=[];Gn(Wr,Mn(N,Il)),Gn(Wr,Ut),Gn(Wr,Mn(N,la)),N=mt(t.createNodeArray(Wr),N)}}return N}function ft(N,We){if(h)return UJe?Hr(N,We):qt(N,We)}function qt(N,We){if(S){let dt;if(bi(N)){let Ut=n().createMetadataHelper("design:type",S.serializeTypeOfNode({currentLexicalScope:F,currentNameScope:We},N,We));dt=Fr(dt,t.createDecorator(Ut))}if(At(N)){let Ut=n().createMetadataHelper("design:paramtypes",S.serializeParameterTypesOfNode({currentLexicalScope:F,currentNameScope:We},N,We));dt=Fr(dt,t.createDecorator(Ut))}if(us(N)){let Ut=n().createMetadataHelper("design:returntype",S.serializeReturnTypeOfNode({currentLexicalScope:F,currentNameScope:We},N));dt=Fr(dt,t.createDecorator(Ut))}return dt}}function Hr(N,We){if(S){let dt;if(bi(N)){let Ut=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),S.serializeTypeOfNode({currentLexicalScope:F,currentNameScope:We},N,We)));dt=Fr(dt,Ut)}if(At(N)){let Ut=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),S.serializeParameterTypesOfNode({currentLexicalScope:F,currentNameScope:We},N,We)));dt=Fr(dt,Ut)}if(us(N)){let Ut=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),S.serializeReturnTypeOfNode({currentLexicalScope:F,currentNameScope:We},N)));dt=Fr(dt,Ut)}if(dt){let Ut=n().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(dt,!0));return[t.createDecorator(Ut)]}}}function bi(N){let We=N.kind;return We===175||We===178||We===179||We===173}function us(N){return N.kind===175}function At(N){switch(N.kind){case 264:case 232:return _h(N)!==void 0;case 175:case 178:case 179:return!0}return!1}function Un(N,We){let dt=N.name;return zi(dt)?t.createIdentifier(""):na(dt)?We&&!eg(dt.expression)?t.getGeneratedNameForNode(dt):dt.expression:Be(dt)?t.createStringLiteral(Fn(dt)):t.cloneNode(dt)}function rs(N){let We=N.name;if(h&&na(We)&&a_(N)){let dt=rt(We.expression,V,ht);w.assert(dt);let Ut=Md(dt);if(!eg(Ut)){let Wr=t.getGeneratedNameForNode(We);return c(Wr),t.updateComputedPropertyName(We,t.createAssignment(Wr,dt))}}return w.checkDefined(rt(We,V,ol))}function zn(N){if(N.token!==119)return Pr(N,V,e)}function Sn(N){return t.updateExpressionWithTypeArguments(N,w.checkDefined(rt(N.expression,V,Jp)),void 0)}function _i(N){return!xc(N.body)}function qe(N,We){let dt=N.flags&33554432||ri(N,64);if(dt&&!(h&&a_(N)))return;let Ut=ni(We)?dt?Br(N.modifiers,Oe,tc):Br(N.modifiers,V,tc):Br(N.modifiers,ke,tc);return Ut=Mr(Ut,N,We),dt?t.updatePropertyDeclaration(N,Qi(Ut,t.createModifiersFromModifierFlags(128)),w.checkDefined(rt(N.name,V,ol)),void 0,void 0,void 0):t.updatePropertyDeclaration(N,Ut,rs(N),void 0,void 0,rt(N.initializer,V,ht))}function bt(N){if(_i(N))return t.updateConstructorDeclaration(N,void 0,wc(N.parameters,V,e),tn(N.body,N))}function ar(N,We,dt,Ut,Wr,Yn){let hn=Ut[Wr],Rr=We[hn];if(Gn(N,Br(We,V,Ei,dt,hn-dt)),Sk(Rr)){let Di=[];ar(Di,Rr.tryBlock.statements,0,Ut,Wr+1,Yn);let Ri=t.createNodeArray(Di);mt(Ri,Rr.tryBlock.statements),N.push(t.updateTryStatement(Rr,t.updateBlock(Rr.tryBlock,Di),rt(Rr.catchClause,V,GS),rt(Rr.finallyBlock,V,Bs)))}else Gn(N,Br(We,V,Ei,hn,1)),Gn(N,Yn);Gn(N,Br(We,V,Ei,hn+1))}function tn(N,We){let dt=We&&Mn(We.parameters,Di=>Tf(Di,We));if(!_t(dt))return p_(N,V,e);let Ut=[];s();let Wr=t.copyPrologue(N.statements,Ut,!1,V),Yn=oj(N.statements,Wr),hn=Ji(dt,Xn);Yn.length?ar(Ut,N.statements,Wr,Yn,0,hn):(Gn(Ut,hn),Gn(Ut,Br(N.statements,V,Ei,Wr))),Ut=t.mergeLexicalEnvironment(Ut,o());let Rr=t.createBlock(mt(t.createNodeArray(Ut),N.statements),!0);return mt(Rr,N),Rn(Rr,N),Rr}function Xn(N){let We=N.name;if(!Be(We))return;let dt=Ka(mt(t.cloneNode(We),We),We.parent);yn(dt,3168);let Ut=Ka(mt(t.cloneNode(We),We),We.parent);return yn(Ut,3072),Yu(n4(mt(Rn(t.createExpressionStatement(t.createAssignment(mt(t.createPropertyAccessExpression(t.createThis(),dt),N.name),Ut)),N),W0(N,-1))))}function ei(N,We){if(!(N.transformFlags&1))return N;if(!_i(N))return;let dt=ni(We)?Br(N.modifiers,V,tc):Br(N.modifiers,ke,tc);return dt=Mr(dt,N,We),t.updateMethodDeclaration(N,dt,N.asteriskToken,rs(N),void 0,void 0,wc(N.parameters,V,e),void 0,p_(N.body,V,e))}function Mi(N){return!(xc(N.body)&&ri(N,64))}function js(N,We){if(!(N.transformFlags&1))return N;if(!Mi(N))return;let dt=ni(We)?Br(N.modifiers,V,tc):Br(N.modifiers,ke,tc);return dt=Mr(dt,N,We),t.updateGetAccessorDeclaration(N,dt,rs(N),wc(N.parameters,V,e),void 0,p_(N.body,V,e)||t.createBlock([]))}function oa(N,We){if(!(N.transformFlags&1))return N;if(!Mi(N))return;let dt=ni(We)?Br(N.modifiers,V,tc):Br(N.modifiers,ke,tc);return dt=Mr(dt,N,We),t.updateSetAccessorDeclaration(N,dt,rs(N),wc(N.parameters,V,e),p_(N.body,V,e)||t.createBlock([]))}function wr(N){if(!_i(N))return t.createNotEmittedStatement(N);let We=t.updateFunctionDeclaration(N,Br(N.modifiers,nt,la),N.asteriskToken,N.name,void 0,wc(N.parameters,V,e),void 0,p_(N.body,V,e)||t.createBlock([]));if(Cr(N)){let dt=[We];return xs(dt,N),dt}return We}function Ds(N){return _i(N)?t.updateFunctionExpression(N,Br(N.modifiers,nt,la),N.asteriskToken,N.name,void 0,wc(N.parameters,V,e),void 0,p_(N.body,V,e)||t.createBlock([])):t.createOmittedExpression()}function tt(N){return t.updateArrowFunction(N,Br(N.modifiers,nt,la),void 0,wc(N.parameters,V,e),void 0,N.equalsGreaterThanToken,p_(N.body,V,e))}function Mt(N){if(bb(N))return;let We=t.updateParameterDeclaration(N,Br(N.modifiers,dt=>Il(dt)?V(dt):void 0,tc),N.dotDotDotToken,w.checkDefined(rt(N.name,V,QT)),void 0,void 0,rt(N.initializer,V,ht));return We!==N&&(gl(We,N),mt(We,Um(N)),Ia(We,Um(N)),yn(We.name,64)),We}function se(N){if(Cr(N)){let We=gA(N.declarationList);return We.length===0?void 0:mt(t.createExpressionStatement(t.inlineExpressions(kr(We,pt))),N)}else return Pr(N,V,e)}function pt(N){let We=N.name;return Ls(We)?Nk(N,V,e,0,!1,vc):mt(t.createAssignment(vo(We),w.checkDefined(rt(N.initializer,V,ht))),N)}function Z(N){let We=t.updateVariableDeclaration(N,w.checkDefined(rt(N.name,V,QT)),void 0,void 0,rt(N.initializer,V,ht));return N.type&&Zne(We.name,N.type),We}function Ee(N){let We=Nc(N.expression,-55);if(gS(We)||gI(We)){let dt=rt(N.expression,V,ht);return w.assert(dt),t.createPartiallyEmittedExpression(dt,N)}return Pr(N,V,e)}function et(N){let We=rt(N.expression,V,ht);return w.assert(We),t.createPartiallyEmittedExpression(We,N)}function at(N){let We=rt(N.expression,V,Jp);return w.assert(We),t.createPartiallyEmittedExpression(We,N)}function Pt(N){let We=rt(N.expression,V,ht);return w.assert(We),t.createPartiallyEmittedExpression(We,N)}function Le(N){return t.updateCallExpression(N,w.checkDefined(rt(N.expression,V,ht)),void 0,Br(N.arguments,V,ht))}function kt(N){return t.updateNewExpression(N,w.checkDefined(rt(N.expression,V,ht)),void 0,Br(N.arguments,V,ht))}function Tt(N){return t.updateTaggedTemplateExpression(N,w.checkDefined(rt(N.tag,V,ht)),void 0,w.checkDefined(rt(N.template,V,i2)))}function Rt(N){return t.updateJsxSelfClosingElement(N,w.checkDefined(rt(N.tagName,V,BP)),void 0,w.checkDefined(rt(N.attributes,V,zS)))}function Ye(N){return t.updateJsxOpeningElement(N,w.checkDefined(rt(N.tagName,V,BP)),void 0,w.checkDefined(rt(N.attributes,V,zS)))}function Gt(N){return!E0(N)||kb(u)}function ln(N){if(!Gt(N))return t.createNotEmittedStatement(N);let We=[],dt=4,Ut=jt(We,N);Ut&&(d!==4||F!==I)&&(dt|=1024);let Wr=Ki(N),Yn=Cs(N),hn=Cr(N)?t.getExternalModuleOrNamespaceExportName(E,N,!1,!0):t.getDeclarationName(N,!1,!0),Rr=t.createLogicalOr(hn,t.createAssignment(hn,t.createObjectLiteralExpression()));if(Cr(N)){let Ri=t.getLocalName(N,!1,!0);Rr=t.createAssignment(Ri,Rr)}let Di=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Wr)],void 0,Ae(N,Yn)),void 0,[Rr]));return Rn(Di,N),Ut&&(G0(Di,void 0),R2(Di,void 0)),mt(Di,N),qm(Di,dt),We.push(Di),We}function Ae(N,We){let dt=E;E=We;let Ut=[];i();let Wr=kr(N.members,wt);return lh(Ut,o()),Gn(Ut,Wr),E=dt,t.createBlock(mt(t.createNodeArray(Ut),N.members),!0)}function wt(N){let We=Un(N,!1),dt=p.getEnumMemberValue(N),Ut=fe(N,dt?.value),Wr=t.createAssignment(t.createElementAccessExpression(E,We),Ut),Yn=typeof dt?.value=="string"||dt?.isSyntacticallyString?Wr:t.createAssignment(t.createElementAccessExpression(E,Wr),We);return mt(t.createExpressionStatement(mt(Yn,N)),N)}function fe(N,We){return We!==void 0?typeof We=="string"?t.createStringLiteral(We):We<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-We)):t.createNumericLiteral(We):(ll(),N.initializer?w.checkDefined(rt(N.initializer,V,ht)):t.createVoidZero())}function j(N){let We=As(N,el);return We?NU(We,kb(u)):!0}function je(N){O||(O=new Map);let We=vt(N);O.has(We)||O.set(We,N)}function q(N){if(O){let We=vt(N);return O.get(We)===N}return!0}function vt(N){return w.assertNode(N.name,Be),N.name.escapedText}function jt(N,We){let dt=t.createVariableDeclaration(t.getLocalName(We,!1,!0)),Ut=F.kind===308?0:1,Wr=t.createVariableStatement(Br(We.modifiers,nt,la),t.createVariableDeclarationList([dt],Ut));return Rn(dt,We),G0(dt,void 0),R2(dt,void 0),Rn(Wr,We),je(We),q(We)?(We.kind===267?Ia(Wr.declarationList,We):Ia(Wr,We),gl(Wr,We),qm(Wr,2048),N.push(Wr),!0):!1}function Ce(N){if(!j(N))return t.createNotEmittedStatement(N);w.assertNode(N.name,Be,"A TypeScript namespace should have an Identifier name."),Lo();let We=[],dt=4,Ut=jt(We,N);Ut&&(d!==4||F!==I)&&(dt|=1024);let Wr=Ki(N),Yn=Cs(N),hn=Cr(N)?t.getExternalModuleOrNamespaceExportName(E,N,!1,!0):t.getDeclarationName(N,!1,!0),Rr=t.createLogicalOr(hn,t.createAssignment(hn,t.createObjectLiteralExpression()));if(Cr(N)){let Ri=t.getLocalName(N,!1,!0);Rr=t.createAssignment(Ri,Rr)}let Di=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Wr)],void 0,ut(N,Yn)),void 0,[Rr]));return Rn(Di,N),Ut&&(G0(Di,void 0),R2(Di,void 0)),mt(Di,N),qm(Di,dt),We.push(Di),We}function ut(N,We){let dt=E,Ut=P,Wr=O;E=We,P=N,O=void 0;let Yn=[];i();let hn,Rr;if(N.body)if(N.body.kind===269)_e(N.body,Ri=>Gn(Yn,Br(Ri.statements,H,Ei))),hn=N.body.statements,Rr=N.body;else{let Ri=Ce(N.body);Ri&&(gs(Ri)?Gn(Yn,Ri):Yn.push(Ri));let so=Qt(N).body;hn=W0(so.statements,-1)}lh(Yn,o()),E=dt,P=Ut,O=Wr;let Di=t.createBlock(mt(t.createNodeArray(Yn),hn),!0);return mt(Di,Rr),(!N.body||N.body.kind!==269)&&yn(Di,Oa(Di)|3072),Di}function Qt(N){if(N.body.kind===268)return Qt(N.body)||N.body}function Zr(N){if(!N.importClause)return N;if(N.importClause.isTypeOnly)return;let We=rt(N.importClause,jr,Ld);return We?t.updateImportDeclaration(N,void 0,We,N.moduleSpecifier,N.attributes):void 0}function jr(N){w.assert(N.phaseModifier!==156);let We=Rc(N)?N.name:void 0,dt=rt(N.namedBindings,Jr,KB);return We||dt?t.updateImportClause(N,N.phaseModifier,We,dt):void 0}function Jr(N){if(N.kind===275)return Rc(N)?N:void 0;{let We=u.verbatimModuleSyntax,dt=Br(N.elements,ct,gp);return We||_t(dt)?t.updateNamedImports(N,dt):void 0}}function ct(N){return!N.isTypeOnly&&Rc(N)?N:void 0}function It(N){return u.verbatimModuleSyntax||p.isValueAliasDeclaration(N)?Pr(N,V,e):void 0}function Ot(N){if(N.isTypeOnly)return;if(!N.exportClause||Ag(N.exportClause))return t.updateExportDeclaration(N,N.modifiers,N.isTypeOnly,N.exportClause,N.moduleSpecifier,N.attributes);let We=!!u.verbatimModuleSyntax,dt=rt(N.exportClause,Ut=>ur(Ut,We),WB);return dt?t.updateExportDeclaration(N,void 0,N.isTypeOnly,dt,N.moduleSpecifier,N.attributes):void 0}function Ht(N,We){let dt=Br(N.elements,Nt,Xu);return We||_t(dt)?t.updateNamedExports(N,dt):void 0}function hr(N){return t.updateNamespaceExport(N,w.checkDefined(rt(N.name,V,Be)))}function ur(N,We){return Ag(N)?hr(N):Ht(N,We)}function Nt(N){return!N.isTypeOnly&&(u.verbatimModuleSyntax||p.isValueAliasDeclaration(N))?N:void 0}function mr(N){return Rc(N)||!Pl(I)&&p.isTopLevelValueImportEqualsWithEntityName(N)}function Tr(N){if(N.isTypeOnly)return;if(M0(N))return Rc(N)?Pr(N,V,e):void 0;if(!mr(N))return;let We=m4(t,N.moduleReference);return yn(We,7168),di(N)||!Cr(N)?Rn(mt(t.createVariableStatement(Br(N.modifiers,nt,la),t.createVariableDeclarationList([Rn(t.createVariableDeclaration(N.name,void 0,void 0,We),N)])),N),N):Rn(Dc(N.name,We,N),N)}function Cr(N){return P!==void 0&&ri(N,32)}function rr(N){return P===void 0&&ri(N,32)}function di(N){return rr(N)&&!ri(N,2048)}function Vs(N){return rr(N)&&ri(N,2048)}function qs(N){let We=t.createAssignment(t.getExternalModuleOrNamespaceExportName(E,N,!1,!0),t.getLocalName(N));Ia(We,O_(N.name?N.name.pos:N.pos,N.end));let dt=t.createExpressionStatement(We);return Ia(dt,O_(-1,N.end)),dt}function xs(N,We){N.push(qs(We))}function Dc(N,We,dt){return mt(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(E,N,!1,!0),We)),dt)}function vc(N,We,dt){return mt(t.createAssignment(vo(N),We),dt)}function vo(N){return t.getNamespaceMemberName(E,N,!1,!0)}function Ki(N){let We=t.getGeneratedNameForNode(N);return Ia(We,N.name),We}function Cs(N){return t.getGeneratedNameForNode(N)}function ll(){(W&8)===0&&(W|=8,e.enableSubstitution(80))}function Lo(){(W&2)===0&&(W|=2,e.enableSubstitution(80),e.enableSubstitution(305),e.enableEmitNotification(268))}function fa(N){return sc(N).kind===268}function Jc(N){return sc(N).kind===267}function d_(N,We,dt){let Ut=z,Wr=I;Li(We)&&(I=We),W&2&&fa(We)&&(z|=2),W&8&&Jc(We)&&(z|=8),T(N,We,dt),z=Ut,I=Wr}function ys(N,We){return We=x(N,We),N===1?Ga(We):Fu(We)?Ys(We):We}function Ys(N){if(W&2){let We=N.name,dt=$t(We);if(dt){if(N.objectAssignmentInitializer){let Ut=t.createAssignment(dt,N.objectAssignmentInitializer);return mt(t.createPropertyAssignment(We,Ut),N)}return mt(t.createPropertyAssignment(We,dt),N)}}return N}function Ga(N){switch(N.kind){case 80:return Fa(N);case 212:return uo(N);case 213:return Mc(N)}return N}function Fa(N){return $t(N)||N}function $t(N){if(W&z&&!ec(N)&&!cy(N)){let We=p.getReferencedExportContainer(N,!1);if(We&&We.kind!==308&&(z&2&&We.kind===268||z&8&&We.kind===267))return mt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(We),N),N)}}function uo(N){return Yl(N)}function Mc(N){return Yl(N)}function rl(N){return N.replace(/\*\//g,"*_/")}function Yl(N){let We=Ko(N);if(We!==void 0){Xne(N,We);let dt=typeof We=="string"?t.createStringLiteral(We):We<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-We)):t.createNumericLiteral(We);if(!u.removeComments){let Ut=sc(N,Oo);FA(dt,3,` ${rl(pc(Ut))} `)}return dt}return N}function Ko(N){if(!md(u))return Ln(N)||xo(N)?p.getConstantValue(N):void 0}function Rc(N){return u.verbatimModuleSyntax||dn(N)||p.isReferencedAliasDeclaration(N)}}function Cae(e){let{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:i,endLexicalEnvironment:s,startLexicalEnvironment:o,resumeLexicalEnvironment:c,addBlockScopedVariable:p}=e,u=e.getEmitResolver(),g=e.getCompilerOptions(),d=xa(g),h=z6(g),S=!!g.experimentalDecorators,T=!h,x=h&&d<9,I=T||x,P=d<9,E=d<99?-1:h?0:3,F=d<9,O=F&&d>=2,W=I||P||E===-1,z=e.onSubstituteNode;e.onSubstituteNode=Mc;let $=e.onEmitNode;e.onEmitNode=uo;let X=!1,U=0,_e,re,V,ce,oe=new Map,le=new Set,de,ve,H=!1,Se=!1;return pm(e,Je);function Je(N){if(N.isDeclarationFile||(ce=void 0,X=!!(Rd(N)&32),!W&&!X))return N;let We=Pr(N,ee,e);return vh(We,e.readEmitHelpers()),We}function ye(N){return N.kind===129?bt()?void 0:N:Hn(N,la)}function ee(N){if(!(N.transformFlags&16777216)&&!(N.transformFlags&134234112))return N;switch(N.kind){case 264:return Gt(N);case 232:return Ae(N);case 176:case 173:return w.fail("Use `classElementVisitor` instead.");case 304:return xe(N);case 244:return Qe(N);case 261:return St(N);case 170:return Bt(N);case 209:return fr(N);case 278:return Mr(N);case 81:return Ne(N);case 212:return js(N);case 213:return oa(N);case 225:case 226:return wr(N,!1);case 227:return et(N,!1);case 218:return Pt(N,!1);case 214:return se(N);case 245:return tt(N);case 216:return pt(N);case 249:return Ds(N);case 110:return j(N);case 263:case 219:return At(void 0,ge,N);case 177:case 175:case 178:case 179:return At(N,ge,N);default:return ge(N)}}function ge(N){return Pr(N,ee,e)}function ke(N){switch(N.kind){case 225:case 226:return wr(N,!0);case 227:return et(N,!0);case 357:return at(N,!0);case 218:return Pt(N,!0);default:return ee(N)}}function Oe(N){switch(N.kind){case 299:return Pr(N,Oe,e);case 234:return Rt(N);default:return ee(N)}}function nt(N){switch(N.kind){case 211:case 210:return $t(N);default:return ee(N)}}function ae(N){switch(N.kind){case 177:return At(N,Hr,N);case 178:case 179:case 175:return At(N,us,N);case 173:return At(N,ar,N);case 176:return At(N,fe,N);case 168:return qt(N);case 241:return N;default:return tc(N)?ye(N):ee(N)}}function Ue(N){return N.kind===168?qt(N):ee(N)}function te(N){switch(N.kind){case 173:return qe(N);case 178:case 179:return ae(N);default:w.assertMissingNode(N,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Ne(N){return!P||Ei(N.parent)?N:Rn(t.createIdentifier(""),N)}function Ie(N){let We=Cs(N.left);if(We){let dt=rt(N.right,ee,ht);return Rn(n().createClassPrivateFieldInHelper(We.brandCheckIdentifier,dt),N)}return Pr(N,ee,e)}function xe(N){return Cf(N,Ee)&&(N=Ef(e,N)),Pr(N,ee,e)}function Qe(N){let We=V;V=[];let dt=Pr(N,ee,e),Ut=_t(V)?[dt,...V]:dt;return V=We,Ut}function St(N){return Cf(N,Ee)&&(N=Ef(e,N)),Pr(N,ee,e)}function Bt(N){return Cf(N,Ee)&&(N=Ef(e,N)),Pr(N,ee,e)}function fr(N){return Cf(N,Ee)&&(N=Ef(e,N)),Pr(N,ee,e)}function Mr(N){return Cf(N,Ee)&&(N=Ef(e,N,!0,N.isExportEquals?"":"default")),Pr(N,ee,e)}function ft(N){return _t(re)&&(Pp(N)?(re.push(N.expression),N=t.updateParenthesizedExpression(N,t.inlineExpressions(re))):(re.push(N),N=t.inlineExpressions(re)),re=void 0),N}function qt(N){let We=rt(N.expression,ee,ht);return t.updateComputedPropertyName(N,ft(We))}function Hr(N){return de?vt(N,de):ge(N)}function bi(N){return!!(P||Cl(N)&&Rd(N)&32)}function us(N){if(w.assert(!a_(N)),!Hu(N)||!bi(N))return Pr(N,ae,e);let We=Cs(N.name);if(w.assert(We,"Undeclared private name for property declaration."),!We.isValid)return N;let dt=Un(N);dt&&Cr().push(t.createAssignment(dt,t.createFunctionExpression(Mn(N.modifiers,Ut=>la(Ut)&&!W2(Ut)&&!dJ(Ut)),N.asteriskToken,dt,void 0,wc(N.parameters,ee,e),void 0,p_(N.body,ee,e))))}function At(N,We,dt){if(N!==ve){let Ut=ve;ve=N;let Wr=We(dt);return ve=Ut,Wr}return We(dt)}function Un(N){w.assert(zi(N.name));let We=Cs(N.name);if(w.assert(We,"Undeclared private name for property declaration."),We.kind==="m")return We.methodName;if(We.kind==="a"){if(ah(N))return We.getterName;if(Fm(N))return We.setterName}}function rs(){let N=mr();return N.classThis??N.classConstructor??de?.name}function zn(N){let We=$m(N),dt=nv(N),Ut=N.name,Wr=Ut,Yn=Ut;if(na(Ut)&&!eg(Ut.expression)){let Xo=I7(Ut);if(Xo)Wr=t.updateComputedPropertyName(Ut,rt(Ut.expression,ee,ht)),Yn=t.updateComputedPropertyName(Ut,Xo.left);else{let ul=t.createTempVariable(i);Ia(ul,Ut.expression);let Kc=rt(Ut.expression,ee,ht),Eo=t.createAssignment(ul,Kc);Ia(Eo,Ut.expression),Wr=t.updateComputedPropertyName(Ut,Eo),Yn=t.updateComputedPropertyName(Ut,ul)}}let hn=Br(N.modifiers,ye,la),Rr=zJ(t,N,hn,N.initializer);Rn(Rr,N),yn(Rr,3072),Ia(Rr,dt);let Di=Ks(N)?rs()??t.createThis():t.createThis(),Ri=Kie(t,N,hn,Wr,Di);Rn(Ri,N),gl(Ri,We),Ia(Ri,dt);let so=t.createModifiersFromModifierFlags(Jm(hn)),ua=Xie(t,N,so,Yn,Di);return Rn(ua,N),yn(ua,3072),Ia(ua,dt),oE([Rr,Ri,ua],te,cl)}function Sn(N){if(bi(N)){let We=Cs(N.name);if(w.assert(We,"Undeclared private name for property declaration."),!We.isValid)return N;if(We.isStatic&&!P){let dt=Qt(N,t.createThis());if(dt)return t.createClassStaticBlockDeclaration(t.createBlock([dt],!0))}return}return T&&!Ks(N)&&ce?.data&&ce.data.facts&16?t.updatePropertyDeclaration(N,Br(N.modifiers,ee,tc),N.name,void 0,void 0,void 0):(Cf(N,Ee)&&(N=Ef(e,N)),t.updatePropertyDeclaration(N,Br(N.modifiers,ye,la),rt(N.name,Ue,ol),void 0,void 0,rt(N.initializer,ee,ht)))}function _i(N){if(I&&!Gp(N)){let We=hr(N.name,!!N.initializer||h);if(We&&Cr().push(...Yie(We)),Ks(N)&&!P){let dt=Qt(N,t.createThis());if(dt){let Ut=t.createClassStaticBlockDeclaration(t.createBlock([dt]));return Rn(Ut,N),gl(Ut,N),gl(dt,{pos:-1,end:-1}),G0(dt,void 0),R2(dt,void 0),Ut}}return}return t.updatePropertyDeclaration(N,Br(N.modifiers,ye,la),rt(N.name,Ue,ol),void 0,void 0,rt(N.initializer,ee,ht))}function qe(N){return w.assert(!a_(N),"Decorators should already have been transformed and elided."),Hu(N)?Sn(N):_i(N)}function bt(){return E===-1||E===3&&!!ce?.data&&!!(ce.data.facts&16)}function ar(N){return Gp(N)&&(bt()||Cl(N)&&Rd(N)&32)?zn(N):qe(N)}function tn(){return!!ve&&Cl(ve)&&pb(ve)&&Gp(sc(ve))}function Xn(N){if(tn()){let We=Nc(N);We.kind===110&&le.add(We)}}function ei(N,We){return We=rt(We,ee,ht),Xn(We),Mi(N,We)}function Mi(N,We){switch(gl(We,W0(We,-1)),N.kind){case"a":return n().createClassPrivateFieldGetHelper(We,N.brandCheckIdentifier,N.kind,N.getterName);case"m":return n().createClassPrivateFieldGetHelper(We,N.brandCheckIdentifier,N.kind,N.methodName);case"f":return n().createClassPrivateFieldGetHelper(We,N.brandCheckIdentifier,N.kind,N.isStatic?N.variableName:void 0);case"untransformed":return w.fail("Access helpers should not be created for untransformed private elements");default:w.assertNever(N,"Unknown private element type")}}function js(N){if(zi(N.name)){let We=Cs(N.name);if(We)return mt(Rn(ei(We,N.expression),N),N)}if(O&&ve&&of(N)&&Be(N.name)&&_E(ve)&&ce?.data){let{classConstructor:We,superClassReference:dt,facts:Ut}=ce.data;if(Ut&1)return Ht(N);if(We&&dt){let Wr=t.createReflectGetCall(dt,t.createStringLiteralFromNode(N.name),We);return Rn(Wr,N.expression),mt(Wr,N.expression),Wr}}return Pr(N,ee,e)}function oa(N){if(O&&ve&&of(N)&&_E(ve)&&ce?.data){let{classConstructor:We,superClassReference:dt,facts:Ut}=ce.data;if(Ut&1)return Ht(N);if(We&&dt){let Wr=t.createReflectGetCall(dt,rt(N.argumentExpression,ee,ht),We);return Rn(Wr,N.expression),mt(Wr,N.expression),Wr}}return Pr(N,ee,e)}function wr(N,We){if(N.operator===46||N.operator===47){let dt=Qa(N.operand);if(Nw(dt)){let Ut;if(Ut=Cs(dt.name)){let Wr=rt(dt.expression,ee,ht);Xn(Wr);let{readExpression:Yn,initializeExpression:hn}=Mt(Wr),Rr=ei(Ut,Yn),Di=V0(N)||We?void 0:t.createTempVariable(i);return Rr=S7(t,N,Rr,i,Di),Rr=Le(Ut,hn||Yn,Rr,64),Rn(Rr,N),mt(Rr,N),Di&&(Rr=t.createComma(Rr,Di),mt(Rr,N)),Rr}}else if(O&&ve&&of(dt)&&_E(ve)&&ce?.data){let{classConstructor:Ut,superClassReference:Wr,facts:Yn}=ce.data;if(Yn&1){let hn=Ht(dt);return V0(N)?t.updatePrefixUnaryExpression(N,hn):t.updatePostfixUnaryExpression(N,hn)}if(Ut&&Wr){let hn,Rr;if(Ln(dt)?Be(dt.name)&&(Rr=hn=t.createStringLiteralFromNode(dt.name)):eg(dt.argumentExpression)?Rr=hn=dt.argumentExpression:(Rr=t.createTempVariable(i),hn=t.createAssignment(Rr,rt(dt.argumentExpression,ee,ht))),hn&&Rr){let Di=t.createReflectGetCall(Wr,Rr,Ut);mt(Di,dt);let Ri=We?void 0:t.createTempVariable(i);return Di=S7(t,N,Di,i,Ri),Di=t.createReflectSetCall(Wr,hn,Di,Ut),Rn(Di,N),mt(Di,N),Ri&&(Di=t.createComma(Di,Ri),mt(Di,N)),Di}}}}return Pr(N,ee,e)}function Ds(N){return t.updateForStatement(N,rt(N.initializer,ke,E_),rt(N.condition,ee,ht),rt(N.incrementor,ke,ht),Ap(N.statement,ee,e))}function tt(N){return t.updateExpressionStatement(N,rt(N.expression,ke,ht))}function Mt(N){let We=ko(N)?N:t.cloneNode(N);if(N.kind===110&&le.has(N)&&le.add(We),eg(N))return{readExpression:We,initializeExpression:void 0};let dt=t.createTempVariable(i),Ut=t.createAssignment(dt,We);return{readExpression:dt,initializeExpression:Ut}}function se(N){var We;if(Nw(N.expression)&&Cs(N.expression.name)){let{thisArg:dt,target:Ut}=t.createCallBinding(N.expression,i,d);return qT(N)?t.updateCallChain(N,t.createPropertyAccessChain(rt(Ut,ee,ht),N.questionDotToken,"call"),void 0,void 0,[rt(dt,ee,ht),...Br(N.arguments,ee,ht)]):t.updateCallExpression(N,t.createPropertyAccessExpression(rt(Ut,ee,ht),"call"),void 0,[rt(dt,ee,ht),...Br(N.arguments,ee,ht)])}if(O&&ve&&of(N.expression)&&_E(ve)&&((We=ce?.data)!=null&&We.classConstructor)){let dt=t.createFunctionCallCall(rt(N.expression,ee,ht),ce.data.classConstructor,Br(N.arguments,ee,ht));return Rn(dt,N),mt(dt,N),dt}return Pr(N,ee,e)}function pt(N){var We;if(Nw(N.tag)&&Cs(N.tag.name)){let{thisArg:dt,target:Ut}=t.createCallBinding(N.tag,i,d);return t.updateTaggedTemplateExpression(N,t.createCallExpression(t.createPropertyAccessExpression(rt(Ut,ee,ht),"bind"),void 0,[rt(dt,ee,ht)]),void 0,rt(N.template,ee,i2))}if(O&&ve&&of(N.tag)&&_E(ve)&&((We=ce?.data)!=null&&We.classConstructor)){let dt=t.createFunctionBindCall(rt(N.tag,ee,ht),ce.data.classConstructor,[]);return Rn(dt,N),mt(dt,N),t.updateTaggedTemplateExpression(N,dt,void 0,rt(N.template,ee,i2))}return Pr(N,ee,e)}function Z(N){if(ce&&oe.set(sc(N),ce),P){if(fE(N)){let Ut=rt(N.body.statements[0].expression,ee,ht);return Hl(Ut,!0)&&Ut.left===Ut.right?void 0:Ut}if(iC(N))return rt(N.body.statements[0].expression,ee,ht);o();let We=At(N,Ut=>Br(Ut,ee,Ei),N.body.statements);We=t.mergeLexicalEnvironment(We,s());let dt=t.createImmediatelyInvokedArrowFunction(We);return Rn(Qa(dt.expression),N),qm(Qa(dt.expression),4),Rn(dt,N),mt(dt,N),dt}}function Ee(N){if(Zc(N)&&!N.name){let We=cj(N);return _t(We,iC)?!1:(P||!!Rd(N))&&_t(We,Ut=>zc(Ut)||Hu(Ut)||I&&B4(Ut))}return!1}function et(N,We){if(Yy(N)){let dt=re;re=void 0,N=t.updateBinaryExpression(N,rt(N.left,nt,ht),N.operatorToken,rt(N.right,ee,ht));let Ut=_t(re)?t.inlineExpressions(cM([...re,N])):N;return re=dt,Ut}if(Hl(N)){Cf(N,Ee)&&(N=Ef(e,N),w.assertNode(N,Hl));let dt=Nc(N.left,9);if(Nw(dt)){let Ut=Cs(dt.name);if(Ut)return mt(Rn(Le(Ut,dt.expression,N.right,N.operatorToken.kind),N),N)}else if(O&&ve&&of(N.left)&&_E(ve)&&ce?.data){let{classConstructor:Ut,superClassReference:Wr,facts:Yn}=ce.data;if(Yn&1)return t.updateBinaryExpression(N,Ht(N.left),N.operatorToken,rt(N.right,ee,ht));if(Ut&&Wr){let hn=xo(N.left)?rt(N.left.argumentExpression,ee,ht):Be(N.left.name)?t.createStringLiteralFromNode(N.left.name):void 0;if(hn){let Rr=rt(N.right,ee,ht);if(lE(N.operatorToken.kind)){let Ri=hn;eg(hn)||(Ri=t.createTempVariable(i),hn=t.createAssignment(Ri,hn));let so=t.createReflectGetCall(Wr,Ri,Ut);Rn(so,N.left),mt(so,N.left),Rr=t.createBinaryExpression(so,uE(N.operatorToken.kind),Rr),mt(Rr,N)}let Di=We?void 0:t.createTempVariable(i);return Di&&(Rr=t.createAssignment(Di,Rr),mt(Di,N)),Rr=t.createReflectSetCall(Wr,hn,Rr,Ut),Rn(Rr,N),mt(Rr,N),Di&&(Rr=t.createComma(Rr,Di),mt(Rr,N)),Rr}}}}return QJe(N)?Ie(N):Pr(N,ee,e)}function at(N,We){let dt=We?W4(N.elements,ke):W4(N.elements,ee,ke);return t.updateCommaListExpression(N,dt)}function Pt(N,We){let dt=We?ke:ee,Ut=rt(N.expression,dt,ht);return t.updateParenthesizedExpression(N,Ut)}function Le(N,We,dt,Ut){if(We=rt(We,ee,ht),dt=rt(dt,ee,ht),Xn(We),lE(Ut)){let{readExpression:Wr,initializeExpression:Yn}=Mt(We);We=Yn||Wr,dt=t.createBinaryExpression(Mi(N,Wr),uE(Ut),dt)}switch(gl(We,W0(We,-1)),N.kind){case"a":return n().createClassPrivateFieldSetHelper(We,N.brandCheckIdentifier,dt,N.kind,N.setterName);case"m":return n().createClassPrivateFieldSetHelper(We,N.brandCheckIdentifier,dt,N.kind,void 0);case"f":return n().createClassPrivateFieldSetHelper(We,N.brandCheckIdentifier,dt,N.kind,N.isStatic?N.variableName:void 0);case"untransformed":return w.fail("Access helpers should not be created for untransformed private elements");default:w.assertNever(N,"Unknown private element type")}}function kt(N){return Mn(N.members,_ae)}function Tt(N){var We;let dt=0,Ut=sc(N);ni(Ut)&&Ky(S,Ut)&&(dt|=1),P&&(VU(N)||pj(N))&&(dt|=2);let Wr=!1,Yn=!1,hn=!1,Rr=!1;for(let Ri of N.members)Ks(Ri)?((Ri.name&&(zi(Ri.name)||Gp(Ri))&&P||Gp(Ri)&&E===-1&&!N.name&&!((We=N.emitNode)!=null&&We.classThis))&&(dt|=2),(hs(Ri)||zc(Ri))&&(F&&Ri.transformFlags&16384&&(dt|=8,dt&1||(dt|=2)),O&&Ri.transformFlags&134217728&&(dt&1||(dt|=6)))):AS(sc(Ri))||(Gp(Ri)?(Rr=!0,hn||(hn=Hu(Ri))):Hu(Ri)?(hn=!0,u.hasNodeCheckFlag(Ri,262144)&&(dt|=2)):hs(Ri)&&(Wr=!0,Yn||(Yn=!!Ri.initializer)));return(x&&Wr||T&&Yn||P&&hn||P&&Rr&&E===-1)&&(dt|=16),dt}function Rt(N){var We;if((((We=ce?.data)==null?void 0:We.facts)||0)&4){let Ut=t.createTempVariable(i,!0);return mr().superClassReference=Ut,t.updateExpressionWithTypeArguments(N,t.createAssignment(Ut,rt(N.expression,ee,ht)),void 0)}return Pr(N,ee,e)}function Ye(N,We){var dt;let Ut=de,Wr=re,Yn=ce;de=N,re=void 0,ur();let hn=Rd(N)&32;if(P||hn){let Ri=Ss(N);if(Ri&&Be(Ri))Tr().data.className=Ri;else if((dt=N.emitNode)!=null&&dt.assignedName&&ya(N.emitNode.assignedName)){if(N.emitNode.assignedName.textSourceNode&&Be(N.emitNode.assignedName.textSourceNode))Tr().data.className=N.emitNode.assignedName.textSourceNode;else if(af(N.emitNode.assignedName.text,d)){let so=t.createIdentifier(N.emitNode.assignedName.text);Tr().data.className=so}}}if(P){let Ri=kt(N);_t(Ri)&&(Tr().data.weakSetName=vo("instances",Ri[0].name))}let Rr=Tt(N);Rr&&(mr().facts=Rr),Rr&8&&It();let Di=We(N,Rr);return Nt(),w.assert(ce===Yn),de=Ut,re=Wr,Di}function Gt(N){return Ye(N,ln)}function ln(N,We){var dt,Ut;let Wr;if(We&2)if(P&&((dt=N.emitNode)!=null&&dt.classThis))mr().classConstructor=N.emitNode.classThis,Wr=t.createAssignment(N.emitNode.classThis,t.getInternalName(N));else{let Eo=t.createTempVariable(i,!0);mr().classConstructor=t.cloneNode(Eo),Wr=t.createAssignment(Eo,t.getInternalName(N))}(Ut=N.emitNode)!=null&&Ut.classThis&&(mr().classThis=N.emitNode.classThis);let Yn=u.hasNodeCheckFlag(N,262144),hn=ri(N,32),Rr=ri(N,2048),Di=Br(N.modifiers,ye,la),Ri=Br(N.heritageClauses,Oe,Af),{members:so,prologue:ua}=je(N),Xo=[];if(Wr&&Cr().unshift(Wr),_t(re)&&Xo.push(t.createExpressionStatement(t.inlineExpressions(re))),T||P||Rd(N)&32){let Eo=cj(N);_t(Eo)&&ut(Xo,Eo,t.getInternalName(N))}Xo.length>0&&hn&&Rr&&(Di=Br(Di,Eo=>b4(Eo)?void 0:Eo,la),Xo.push(t.createExportAssignment(void 0,!1,t.getLocalName(N,!1,!0))));let ul=mr().classConstructor;Yn&&ul&&(ct(),_e[Ep(N)]=ul);let Kc=t.updateClassDeclaration(N,Di,N.name,void 0,Ri,so);return Xo.unshift(Kc),ua&&Xo.unshift(t.createExpressionStatement(ua)),Xo}function Ae(N){return Ye(N,wt)}function wt(N,We){var dt,Ut,Wr;let Yn=!!(We&1),hn=cj(N),Rr=u.hasNodeCheckFlag(N,262144),Di=u.hasNodeCheckFlag(N,32768),Ri;function so(){var Cu;if(P&&((Cu=N.emitNode)!=null&&Cu.classThis))return mr().classConstructor=N.emitNode.classThis;let Kf=t.createTempVariable(Di?p:i,!0);return mr().classConstructor=t.cloneNode(Kf),Kf}(dt=N.emitNode)!=null&&dt.classThis&&(mr().classThis=N.emitNode.classThis),We&2&&(Ri??(Ri=so()));let ua=Br(N.modifiers,ye,la),Xo=Br(N.heritageClauses,Oe,Af),{members:ul,prologue:Kc}=je(N),Eo=t.updateClassExpression(N,ua,N.name,void 0,Xo,ul),Uc=[];if(Kc&&Uc.push(Kc),(P||Rd(N)&32)&&_t(hn,Cu=>zc(Cu)||Hu(Cu)||I&&B4(Cu))||_t(re))if(Yn)w.assertIsDefined(V,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),_t(re)&&Gn(V,kr(re,t.createExpressionStatement)),_t(hn)&&ut(V,hn,((Ut=N.emitNode)==null?void 0:Ut.classThis)??t.getInternalName(N)),Ri?Uc.push(t.createAssignment(Ri,Eo)):P&&((Wr=N.emitNode)!=null&&Wr.classThis)?Uc.push(t.createAssignment(N.emitNode.classThis,Eo)):Uc.push(Eo);else{if(Ri??(Ri=so()),Rr){ct();let Cu=t.cloneNode(Ri);Cu.emitNode.autoGenerate.flags&=-9,_e[Ep(N)]=Cu}Uc.push(t.createAssignment(Ri,Eo)),Gn(Uc,re),Gn(Uc,Zr(hn,Ri)),Uc.push(t.cloneNode(Ri))}else Uc.push(Eo);return Uc.length>1&&(qm(Eo,131072),Uc.forEach(Yu)),t.inlineExpressions(Uc)}function fe(N){if(!P)return Pr(N,ee,e)}function j(N){if(F&&ve&&zc(ve)&&ce?.data){let{classThis:We,classConstructor:dt}=ce.data;return We??dt??N}return N}function je(N){let We=!!(Rd(N)&32);if(P||X){for(let hn of N.members)if(Hu(hn))if(bi(hn))vc(hn,hn.name,rr);else{let Rr=Tr();Ek(Rr,hn.name,{kind:"untransformed"})}if(P&&_t(kt(N))&&q(),bt()){for(let hn of N.members)if(Gp(hn)){let Rr=t.getGeneratedPrivateNameForNode(hn.name,void 0,"_accessor_storage");if(P||We&&Cl(hn))vc(hn,Rr,di);else{let Di=Tr();Ek(Di,Rr,{kind:"untransformed"})}}}}let dt=Br(N.members,ae,cl),Ut;_t(dt,yc)||(Ut=vt(void 0,N));let Wr,Yn;if(!P&&_t(re)){let hn=t.createExpressionStatement(t.inlineExpressions(re));if(hn.transformFlags&134234112){let Di=t.createTempVariable(i),Ri=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([hn]));Wr=t.createAssignment(Di,Ri),hn=t.createExpressionStatement(t.createCallExpression(Di,void 0,[]))}let Rr=t.createBlock([hn]);Yn=t.createClassStaticBlockDeclaration(Rr),re=void 0}if(Ut||Yn){let hn,Rr=Bn(dt,fE),Di=Bn(dt,iC);hn=Fr(hn,Rr),hn=Fr(hn,Di),hn=Fr(hn,Ut),hn=Fr(hn,Yn);let Ri=Rr||Di?Mn(dt,so=>so!==Rr&&so!==Di):dt;hn=Gn(hn,Ri),dt=mt(t.createNodeArray(hn),N.members)}return{members:dt,prologue:Wr}}function q(){let{weakSetName:N}=Tr().data;w.assert(N,"weakSetName should be set in private identifier environment"),Cr().push(t.createAssignment(N,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function vt(N,We){if(N=rt(N,ee,yc),!ce?.data||!(ce.data.facts&16))return N;let dt=im(We),Ut=!!(dt&&Nc(dt.expression).kind!==106),Wr=wc(N?N.parameters:void 0,ee,e),Yn=Ce(We,N,Ut);return Yn?N?(w.assert(Wr),t.updateConstructorDeclaration(N,void 0,Wr,Yn)):Yu(Rn(mt(t.createConstructorDeclaration(void 0,Wr??[],Yn),N||We),N)):N}function jt(N,We,dt,Ut,Wr,Yn,hn){let Rr=Ut[Wr],Di=We[Rr];if(Gn(N,Br(We,ee,Ei,dt,Rr-dt)),dt=Rr+1,Sk(Di)){let Ri=[];jt(Ri,Di.tryBlock.statements,0,Ut,Wr+1,Yn,hn);let so=t.createNodeArray(Ri);mt(so,Di.tryBlock.statements),N.push(t.updateTryStatement(Di,t.updateBlock(Di.tryBlock,Ri),rt(Di.catchClause,ee,GS),rt(Di.finallyBlock,ee,Bs)))}else{for(Gn(N,Br(We,ee,Ei,Rr,1));dt<We.length;){let Ri=We[dt];if(Tf(sc(Ri),hn))dt++;else break}Gn(N,Yn)}Gn(N,Br(We,ee,Ei,dt))}function Ce(N,We,dt){var Ut;let Wr=GU(N,!1,!1),Yn=Wr;h||(Yn=Mn(Yn,Kc=>!!Kc.initializer||zi(Kc.name)||Gm(Kc)));let hn=kt(N),Rr=_t(Yn)||_t(hn);if(!We&&!Rr)return p_(void 0,ee,e);c();let Di=!We&&dt,Ri=0,so=[],ua=[],Xo=t.createThis();if(Ot(ua,hn,Xo),We){let Kc=Mn(Wr,Uc=>Tf(sc(Uc),We)),Eo=Mn(Yn,Uc=>!Tf(sc(Uc),We));ut(ua,Kc,Xo),ut(ua,Eo,Xo)}else ut(ua,Yn,Xo);if(We?.body){Ri=t.copyPrologue(We.body.statements,so,!1,ee);let Kc=oj(We.body.statements,Ri);if(Kc.length)jt(so,We.body.statements,Ri,Kc,0,ua,We);else{for(;Ri<We.body.statements.length;){let Eo=We.body.statements[Ri];if(Tf(sc(Eo),We))Ri++;else break}Gn(so,ua),Gn(so,Br(We.body.statements,ee,Ei,Ri))}}else Di&&so.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))]))),Gn(so,ua);if(so=t.mergeLexicalEnvironment(so,s()),so.length===0&&!We)return;let ul=We?.body&&We.body.statements.length>=so.length?We.body.multiLine??so.length>0:so.length>0;return mt(t.createBlock(mt(t.createNodeArray(so),((Ut=We?.body)==null?void 0:Ut.statements)??N.members),ul),We?.body)}function ut(N,We,dt){for(let Ut of We){if(Ks(Ut)&&!P)continue;let Wr=Qt(Ut,dt);Wr&&N.push(Wr)}}function Qt(N,We){let dt=zc(N)?At(N,Z,N):jr(N,We);if(!dt)return;let Ut=t.createExpressionStatement(dt);Rn(Ut,N),qm(Ut,Oa(N)&3072),gl(Ut,N);let Wr=sc(N);return Gi(Wr)?(Ia(Ut,Wr),n4(Ut)):Ia(Ut,Um(N)),G0(dt,void 0),R2(dt,void 0),Gm(Wr)&&qm(Ut,3072),Ut}function Zr(N,We){let dt=[];for(let Ut of N){let Wr=zc(Ut)?At(Ut,Z,Ut):At(Ut,()=>jr(Ut,We),void 0);Wr&&(Yu(Wr),Rn(Wr,Ut),qm(Wr,Oa(Ut)&3072),Ia(Wr,Um(Ut)),gl(Wr,Ut),dt.push(Wr))}return dt}function jr(N,We){var dt;let Ut=ve,Wr=Jr(N,We);return Wr&&Cl(N)&&((dt=ce?.data)!=null&&dt.facts)&&(Rn(Wr,N),qm(Wr,4),Ia(Wr,nv(N.name)),oe.set(sc(N),ce)),ve=Ut,Wr}function Jr(N,We){let dt=!h;Cf(N,Ee)&&(N=Ef(e,N));let Ut=Gm(N)?t.getGeneratedPrivateNameForNode(N.name):na(N.name)&&!eg(N.name.expression)?t.updateComputedPropertyName(N.name,t.getGeneratedNameForNode(N.name)):N.name;if(Cl(N)&&(ve=N),zi(Ut)&&bi(N)){let hn=Cs(Ut);if(hn)return hn.kind==="f"?hn.isStatic?VJe(t,hn.variableName,rt(N.initializer,ee,ht)):qJe(t,We,rt(N.initializer,ee,ht),hn.brandCheckIdentifier):void 0;w.fail("Undeclared private name for property declaration.")}if((zi(Ut)||Cl(N))&&!N.initializer)return;let Wr=sc(N);if(ri(Wr,64))return;let Yn=rt(N.initializer,ee,ht);if(Tf(Wr,Wr.parent)&&Be(Ut)){let hn=t.cloneNode(Ut);Yn?(Pp(Yn)&&g4(Yn.expression)&&jA(Yn.expression.left,"___runInitializers")&&U2(Yn.expression.right)&&Hp(Yn.expression.right.expression)&&(Yn=Yn.expression.left),Yn=t.inlineExpressions([Yn,hn])):Yn=hn,yn(Ut,3168),Ia(hn,Wr.name),yn(hn,3072)}else Yn??(Yn=t.createVoidZero());if(dt||zi(Ut)){let hn=wk(t,We,Ut,Ut);return qm(hn,1024),t.createAssignment(hn,Yn)}else{let hn=na(Ut)?Ut.expression:Be(Ut)?t.createStringLiteral(Ai(Ut.escapedText)):Ut,Rr=t.createPropertyDescriptor({value:Yn,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(We,hn,Rr)}}function ct(){(U&1)===0&&(U|=1,e.enableSubstitution(80),_e=[])}function It(){(U&2)===0&&(U|=2,e.enableSubstitution(110),e.enableEmitNotification(263),e.enableEmitNotification(219),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(168))}function Ot(N,We,dt){if(!P||!_t(We))return;let{weakSetName:Ut}=Tr().data;w.assert(Ut,"weakSetName should be set in private identifier environment"),N.push(t.createExpressionStatement($Je(t,dt,Ut)))}function Ht(N){return Ln(N)?t.updatePropertyAccessExpression(N,t.createVoidZero(),N.name):t.updateElementAccessExpression(N,t.createVoidZero(),rt(N.argumentExpression,ee,ht))}function hr(N,We){if(na(N)){let dt=I7(N),Ut=rt(N.expression,ee,ht),Wr=Md(Ut),Yn=eg(Wr);if(!(!!dt||Hl(Wr)&&ec(Wr.left))&&!Yn&&We){let Rr=t.getGeneratedNameForNode(N);return u.hasNodeCheckFlag(N,32768)?p(Rr):i(Rr),t.createAssignment(Rr,Ut)}return Yn||Be(Wr)?void 0:Ut}}function ur(){ce={previous:ce,data:void 0}}function Nt(){ce=ce?.previous}function mr(){return w.assert(ce),ce.data??(ce.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function Tr(){return w.assert(ce),ce.privateEnv??(ce.privateEnv=mae({className:void 0,weakSetName:void 0}))}function Cr(){return re??(re=[])}function rr(N,We,dt,Ut,Wr,Yn,hn){Gp(N)?Dc(N,We,dt,Ut,Wr,Yn,hn):hs(N)?di(N,We,dt,Ut,Wr,Yn,hn):hc(N)?Vs(N,We,dt,Ut,Wr,Yn,hn):B_(N)?qs(N,We,dt,Ut,Wr,Yn,hn):uf(N)&&xs(N,We,dt,Ut,Wr,Yn,hn)}function di(N,We,dt,Ut,Wr,Yn,hn){if(Wr){let Rr=w.checkDefined(dt.classThis??dt.classConstructor,"classConstructor should be set in private identifier environment"),Di=Ki(We);Ek(Ut,We,{kind:"f",isStatic:!0,brandCheckIdentifier:Rr,variableName:Di,isValid:Yn})}else{let Rr=Ki(We);Ek(Ut,We,{kind:"f",isStatic:!1,brandCheckIdentifier:Rr,isValid:Yn}),Cr().push(t.createAssignment(Rr,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function Vs(N,We,dt,Ut,Wr,Yn,hn){let Rr=Ki(We),Di=Wr?w.checkDefined(dt.classThis??dt.classConstructor,"classConstructor should be set in private identifier environment"):w.checkDefined(Ut.data.weakSetName,"weakSetName should be set in private identifier environment");Ek(Ut,We,{kind:"m",methodName:Rr,brandCheckIdentifier:Di,isStatic:Wr,isValid:Yn})}function qs(N,We,dt,Ut,Wr,Yn,hn){let Rr=Ki(We,"_get"),Di=Wr?w.checkDefined(dt.classThis??dt.classConstructor,"classConstructor should be set in private identifier environment"):w.checkDefined(Ut.data.weakSetName,"weakSetName should be set in private identifier environment");hn?.kind==="a"&&hn.isStatic===Wr&&!hn.getterName?hn.getterName=Rr:Ek(Ut,We,{kind:"a",getterName:Rr,setterName:void 0,brandCheckIdentifier:Di,isStatic:Wr,isValid:Yn})}function xs(N,We,dt,Ut,Wr,Yn,hn){let Rr=Ki(We,"_set"),Di=Wr?w.checkDefined(dt.classThis??dt.classConstructor,"classConstructor should be set in private identifier environment"):w.checkDefined(Ut.data.weakSetName,"weakSetName should be set in private identifier environment");hn?.kind==="a"&&hn.isStatic===Wr&&!hn.setterName?hn.setterName=Rr:Ek(Ut,We,{kind:"a",getterName:void 0,setterName:Rr,brandCheckIdentifier:Di,isStatic:Wr,isValid:Yn})}function Dc(N,We,dt,Ut,Wr,Yn,hn){let Rr=Ki(We,"_get"),Di=Ki(We,"_set"),Ri=Wr?w.checkDefined(dt.classThis??dt.classConstructor,"classConstructor should be set in private identifier environment"):w.checkDefined(Ut.data.weakSetName,"weakSetName should be set in private identifier environment");Ek(Ut,We,{kind:"a",getterName:Rr,setterName:Di,brandCheckIdentifier:Ri,isStatic:Wr,isValid:Yn})}function vc(N,We,dt){let Ut=mr(),Wr=Tr(),Yn=UU(Wr,We),hn=Cl(N),Rr=!HJe(We)&&Yn===void 0;dt(N,We,Ut,Wr,hn,Rr,Yn)}function vo(N,We,dt){let{className:Ut}=Tr().data,Wr=Ut?{prefix:"_",node:Ut,suffix:"_"}:"_",Yn=typeof N=="object"?t.getGeneratedNameForNode(N,24,Wr,dt):typeof N=="string"?t.createUniqueName(N,16,Wr,dt):t.createTempVariable(void 0,!0,Wr,dt);return u.hasNodeCheckFlag(We,32768)?p(Yn):i(Yn),Yn}function Ki(N,We){let dt=UP(N);return vo(dt?.substring(1)??N,N,We)}function Cs(N){let We=gae(ce,N);return We?.kind==="untransformed"?void 0:We}function ll(N){let We=t.getGeneratedNameForNode(N),dt=Cs(N.name);if(!dt)return Pr(N,ee,e);let Ut=N.expression;return(r6(N)||of(N)||!qS(N.expression))&&(Ut=t.createTempVariable(i,!0),Cr().push(t.createBinaryExpression(Ut,64,rt(N.expression,ee,ht)))),t.createAssignmentTargetWrapper(We,Le(dt,Ut,We,64))}function Lo(N){if(Sa(N)||Tu(N))return $t(N);if(Nw(N))return ll(N);if(O&&ve&&of(N)&&_E(ve)&&ce?.data){let{classConstructor:We,superClassReference:dt,facts:Ut}=ce.data;if(Ut&1)return Ht(N);if(We&&dt){let Wr=xo(N)?rt(N.argumentExpression,ee,ht):Be(N.name)?t.createStringLiteralFromNode(N.name):void 0;if(Wr){let Yn=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(Yn,t.createReflectSetCall(dt,Wr,Yn,We))}}}return Pr(N,ee,e)}function fa(N){if(Cf(N,Ee)&&(N=Ef(e,N)),Hl(N,!0)){let We=Lo(N.left),dt=rt(N.right,ee,ht);return t.updateBinaryExpression(N,We,N.operatorToken,dt)}return Lo(N)}function Jc(N){if(Jp(N.expression)){let We=Lo(N.expression);return t.updateSpreadElement(N,We)}return Pr(N,ee,e)}function d_(N){if(FM(N)){if(z_(N))return Jc(N);if(!Fl(N))return fa(N)}return Pr(N,ee,e)}function ys(N){let We=rt(N.name,ee,ol);if(Hl(N.initializer,!0)){let dt=fa(N.initializer);return t.updatePropertyAssignment(N,We,dt)}if(Jp(N.initializer)){let dt=Lo(N.initializer);return t.updatePropertyAssignment(N,We,dt)}return Pr(N,ee,e)}function Ys(N){return Cf(N,Ee)&&(N=Ef(e,N)),Pr(N,ee,e)}function Ga(N){if(Jp(N.expression)){let We=Lo(N.expression);return t.updateSpreadAssignment(N,We)}return Pr(N,ee,e)}function Fa(N){return w.assertNode(N,OM),Sh(N)?Ga(N):Fu(N)?Ys(N):yl(N)?ys(N):Pr(N,ee,e)}function $t(N){return Tu(N)?t.updateArrayLiteralExpression(N,Br(N.elements,d_,ht)):t.updateObjectLiteralExpression(N,Br(N.properties,Fa,Xh))}function uo(N,We,dt){let Ut=sc(We),Wr=oe.get(Ut);if(Wr){let Yn=ce,hn=Se;ce=Wr,Se=H,H=!zc(Ut)||!(Rd(Ut)&32),$(N,We,dt),H=Se,Se=hn,ce=Yn;return}switch(We.kind){case 219:if(Fo(Ut)||Oa(We)&524288)break;case 263:case 177:case 178:case 179:case 175:case 173:{let Yn=ce,hn=Se;ce=void 0,Se=H,H=!1,$(N,We,dt),H=Se,Se=hn,ce=Yn;return}case 168:{let Yn=ce,hn=H;ce=ce?.previous,H=Se,$(N,We,dt),H=hn,ce=Yn;return}}$(N,We,dt)}function Mc(N,We){return We=z(N,We),N===1?rl(We):We}function rl(N){switch(N.kind){case 80:return Ko(N);case 110:return Yl(N)}return N}function Yl(N){if(U&2&&ce?.data&&!le.has(N)){let{facts:We,classConstructor:dt,classThis:Ut}=ce.data,Wr=H?Ut??dt:dt;if(Wr)return mt(Rn(t.cloneNode(Wr),N),N);if(We&1&&S)return t.createParenthesizedExpression(t.createVoidZero())}return N}function Ko(N){return Rc(N)||N}function Rc(N){if(U&1&&u.hasNodeCheckFlag(N,536870912)){let We=u.getReferencedValueDeclaration(N);if(We){let dt=_e[We.id];if(dt){let Ut=t.cloneNode(dt);return Ia(Ut,N),gl(Ut,N),Ut}}}}}function VJe(e,t,n){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",n||e.createVoidZero())]))}function qJe(e,t,n,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,n||e.createVoidZero()])}function $Je(e,t,n){return e.createCallExpression(e.createPropertyAccessExpression(n,"add"),void 0,[t])}function HJe(e){return!HT(e)&&e.escapedText==="#constructor"}function QJe(e){return zi(e.left)&&e.operatorToken.kind===103}function KJe(e){return hs(e)&&Cl(e)}function _E(e){return zc(e)||KJe(e)}function wae(e){let{factory:t,hoistVariableDeclaration:n}=e,i=e.getEmitResolver(),s=e.getCompilerOptions(),o=xa(s),c=Ru(s,"strictNullChecks"),p,u;return{serializeTypeNode:(re,V)=>g(re,I,V),serializeTypeOfNode:(re,V,ce)=>g(re,h,V,ce),serializeParameterTypesOfNode:(re,V,ce)=>g(re,S,V,ce),serializeReturnTypeOfNode:(re,V)=>g(re,x,V)};function g(re,V,ce,oe){let le=p,de=u;p=re.currentLexicalScope,u=re.currentNameScope;let ve=oe===void 0?V(ce):V(ce,oe);return p=le,u=de,ve}function d(re,V){let ce=PS(V.members,re);return ce.setAccessor&&Ire(ce.setAccessor)||ce.getAccessor&&wf(ce.getAccessor)}function h(re,V){switch(re.kind){case 173:case 170:return I(re.type);case 179:case 178:return I(d(re,V));case 264:case 232:case 175:return t.createIdentifier("Function");default:return t.createVoidZero()}}function S(re,V){let ce=ni(re)?_h(re):Fs(re)&&ud(re.body)?re:void 0,oe=[];if(ce){let le=T(ce,V),de=le.length;for(let ve=0;ve<de;ve++){let H=le[ve];ve===0&&Be(H.name)&&H.name.escapedText==="this"||(H.dotDotDotToken?oe.push(I(Sz(H.type))):oe.push(h(H,V)))}}return t.createArrayLiteralExpression(oe)}function T(re,V){if(V&&re.kind===178){let{setAccessor:ce}=PS(V.members,re);if(ce)return ce.parameters}return re.parameters}function x(re){return Fs(re)&&re.type?I(re.type):sA(re)?t.createIdentifier("Promise"):t.createVoidZero()}function I(re){if(re===void 0)return t.createIdentifier("Object");switch(re=tA(re),re.kind){case 116:case 157:case 146:return t.createVoidZero();case 185:case 186:return t.createIdentifier("Function");case 189:case 190:return t.createIdentifier("Array");case 183:return re.assertsModifier?t.createVoidZero():t.createIdentifier("Boolean");case 136:return t.createIdentifier("Boolean");case 204:case 154:return t.createIdentifier("String");case 151:return t.createIdentifier("Object");case 202:return P(re.literal);case 150:return t.createIdentifier("Number");case 163:return _e("BigInt",7);case 155:return _e("Symbol",2);case 184:return O(re);case 194:return E(re.types,!0);case 193:return E(re.types,!1);case 195:return E([re.trueType,re.falseType],!1);case 199:if(re.operator===148)return I(re.type);break;case 187:case 200:case 201:case 188:case 133:case 159:case 198:case 206:break;case 313:case 314:case 318:case 319:case 320:break;case 315:case 316:case 317:return I(re.type);default:return w.failBadSyntaxKind(re)}return t.createIdentifier("Object")}function P(re){switch(re.kind){case 11:case 15:return t.createIdentifier("String");case 225:{let V=re.operand;switch(V.kind){case 9:case 10:return P(V);default:return w.failBadSyntaxKind(V)}}case 9:return t.createIdentifier("Number");case 10:return _e("BigInt",7);case 112:case 97:return t.createIdentifier("Boolean");case 106:return t.createVoidZero();default:return w.failBadSyntaxKind(re)}}function E(re,V){let ce;for(let oe of re){if(oe=tA(oe),oe.kind===146){if(V)return t.createVoidZero();continue}if(oe.kind===159){if(!V)return t.createIdentifier("Object");continue}if(oe.kind===133)return t.createIdentifier("Object");if(!c&&(av(oe)&&oe.literal.kind===106||oe.kind===157))continue;let le=I(oe);if(Be(le)&&le.escapedText==="Object")return le;if(ce){if(!F(ce,le))return t.createIdentifier("Object")}else ce=le}return ce??t.createVoidZero()}function F(re,V){return ec(re)?ec(V):Be(re)?Be(V)&&re.escapedText===V.escapedText:Ln(re)?Ln(V)&&F(re.expression,V.expression)&&F(re.name,V.name):U2(re)?U2(V)&&Hp(re.expression)&&re.expression.text==="0"&&Hp(V.expression)&&V.expression.text==="0":ya(re)?ya(V)&&re.text===V.text:dI(re)?dI(V)&&F(re.expression,V.expression):Pp(re)?Pp(V)&&F(re.expression,V.expression):vk(re)?vk(V)&&F(re.condition,V.condition)&&F(re.whenTrue,V.whenTrue)&&F(re.whenFalse,V.whenFalse):vn(re)?vn(V)&&re.operatorToken.kind===V.operatorToken.kind&&F(re.left,V.left)&&F(re.right,V.right):!1}function O(re){let V=i.getTypeReferenceSerializationKind(re.typeName,u??p);switch(V){case 0:if(vr(re,le=>le.parent&&jS(le.parent)&&(le.parent.trueType===le||le.parent.falseType===le)))return t.createIdentifier("Object");let ce=z(re.typeName),oe=t.createTempVariable(n);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(oe,ce),"function"),void 0,oe,void 0,t.createIdentifier("Object"));case 1:return $(re.typeName);case 2:return t.createVoidZero();case 4:return _e("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return _e("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return w.assertNever(V)}}function W(re,V){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(re),t.createStringLiteral("undefined")),V)}function z(re){if(re.kind===80){let oe=$(re);return W(oe,oe)}if(re.left.kind===80)return W($(re.left),$(re));let V=z(re.left),ce=t.createTempVariable(n);return t.createLogicalAnd(t.createLogicalAnd(V.left,t.createStrictInequality(t.createAssignment(ce,V.right),t.createVoidZero())),t.createPropertyAccessExpression(ce,re.right))}function $(re){switch(re.kind){case 80:let V=Ka(mt(Z0.cloneNode(re),re),re.parent);return V.original=void 0,Ka(V,As(p)),V;case 167:return X(re)}}function X(re){return t.createPropertyAccessExpression($(re.left),re.right)}function U(re){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(re),"function"),void 0,t.createIdentifier(re),void 0,t.createIdentifier("Object"))}function _e(re,V){return o<V?U(re):t.createIdentifier(re)}}function Iae(e){let{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:i}=e,s=e.getEmitResolver(),o=e.getCompilerOptions(),c=xa(o),p=e.onSubstituteNode;e.onSubstituteNode=Ue;let u;return pm(e,g);function g(xe){let Qe=Pr(xe,h,e);return vh(Qe,e.readEmitHelpers()),Qe}function d(xe){return Il(xe)?void 0:xe}function h(xe){if(!(xe.transformFlags&33554432))return xe;switch(xe.kind){case 171:return;case 264:return S(xe);case 232:return O(xe);case 177:return W(xe);case 175:return $(xe);case 179:return U(xe);case 178:return X(xe);case 173:return _e(xe);case 170:return re(xe);default:return Pr(xe,h,e)}}function S(xe){if(!(Ky(!0,xe)||HP(!0,xe)))return Pr(xe,h,e);let Qe=Ky(!0,xe)?F(xe,xe.name):E(xe,xe.name);return vg(Qe)}function T(xe){return!!(xe.transformFlags&536870912)}function x(xe){return _t(xe,T)}function I(xe){for(let Qe of xe.members){if(!US(Qe))continue;let St=lj(Qe,xe,!0);if(_t(St?.decorators,T)||_t(St?.parameters,x))return!0}return!1}function P(xe,Qe){let St=[];return oe(St,xe,!1),oe(St,xe,!0),I(xe)&&(Qe=mt(t.createNodeArray([...Qe,t.createClassStaticBlockDeclaration(t.createBlock(St,!0))]),Qe),St=void 0),{decorationStatements:St,members:Qe}}function E(xe,Qe){let St=Br(xe.modifiers,d,la),Bt=Br(xe.heritageClauses,h,Af),fr=Br(xe.members,h,cl),Mr=[];({members:fr,decorationStatements:Mr}=P(xe,fr));let ft=t.updateClassDeclaration(xe,St,Qe,void 0,Bt,fr);return Gn([ft],Mr)}function F(xe,Qe){let St=ri(xe,32),Bt=ri(xe,2048),fr=Br(xe.modifiers,bt=>b4(bt)||Il(bt)?void 0:bt,tc),Mr=Um(xe),ft=Oe(xe),qt=c<2?t.getInternalName(xe,!1,!0):t.getLocalName(xe,!1,!0),Hr=Br(xe.heritageClauses,h,Af),bi=Br(xe.members,h,cl),us=[];({members:bi,decorationStatements:us}=P(xe,bi));let At=c>=9&&!!ft&&_t(bi,bt=>hs(bt)&&ri(bt,256)||zc(bt));At&&(bi=mt(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(ft,t.createThis()))])),...bi]),bi));let Un=t.createClassExpression(fr,Qe&&ec(Qe)?void 0:Qe,void 0,Hr,bi);Rn(Un,xe),mt(Un,Mr);let rs=ft&&!At?t.createAssignment(ft,Un):Un,zn=t.createVariableDeclaration(qt,void 0,void 0,rs);Rn(zn,xe);let Sn=t.createVariableDeclarationList([zn],1),_i=t.createVariableStatement(void 0,Sn);Rn(_i,xe),mt(_i,Mr),gl(_i,xe);let qe=[_i];if(Gn(qe,us),Se(qe,xe),St)if(Bt){let bt=t.createExportDefault(qt);qe.push(bt)}else{let bt=t.createExternalModuleExport(t.getDeclarationName(xe));qe.push(bt)}return qe}function O(xe){return t.updateClassExpression(xe,Br(xe.modifiers,d,la),xe.name,void 0,Br(xe.heritageClauses,h,Af),Br(xe.members,h,cl))}function W(xe){return t.updateConstructorDeclaration(xe,Br(xe.modifiers,d,la),Br(xe.parameters,h,Gi),rt(xe.body,h,Bs))}function z(xe,Qe){return xe!==Qe&&(gl(xe,Qe),Ia(xe,Um(Qe))),xe}function $(xe){return z(t.updateMethodDeclaration(xe,Br(xe.modifiers,d,la),xe.asteriskToken,w.checkDefined(rt(xe.name,h,ol)),void 0,void 0,Br(xe.parameters,h,Gi),void 0,rt(xe.body,h,Bs)),xe)}function X(xe){return z(t.updateGetAccessorDeclaration(xe,Br(xe.modifiers,d,la),w.checkDefined(rt(xe.name,h,ol)),Br(xe.parameters,h,Gi),void 0,rt(xe.body,h,Bs)),xe)}function U(xe){return z(t.updateSetAccessorDeclaration(xe,Br(xe.modifiers,d,la),w.checkDefined(rt(xe.name,h,ol)),Br(xe.parameters,h,Gi),rt(xe.body,h,Bs)),xe)}function _e(xe){if(!(xe.flags&33554432||ri(xe,128)))return z(t.updatePropertyDeclaration(xe,Br(xe.modifiers,d,la),w.checkDefined(rt(xe.name,h,ol)),void 0,void 0,rt(xe.initializer,h,ht)),xe)}function re(xe){let Qe=t.updateParameterDeclaration(xe,Qie(t,xe.modifiers),xe.dotDotDotToken,w.checkDefined(rt(xe.name,h,QT)),void 0,void 0,rt(xe.initializer,h,ht));return Qe!==xe&&(gl(Qe,xe),mt(Qe,Um(xe)),Ia(Qe,Um(xe)),yn(Qe.name,64)),Qe}function V(xe){return jA(xe.expression,"___metadata")}function ce(xe){if(!xe)return;let{false:Qe,true:St}=OW(xe.decorators,V),Bt=[];return Gn(Bt,kr(Qe,ye)),Gn(Bt,Ma(xe.parameters,ee)),Gn(Bt,kr(St,ye)),Bt}function oe(xe,Qe,St){Gn(xe,kr(ve(Qe,St),Bt=>t.createExpressionStatement(Bt)))}function le(xe,Qe,St){return s6(!0,xe,St)&&Qe===Ks(xe)}function de(xe,Qe){return Mn(xe.members,St=>le(St,Qe,xe))}function ve(xe,Qe){let St=de(xe,Qe),Bt;for(let fr of St)Bt=Fr(Bt,H(xe,fr));return Bt}function H(xe,Qe){let St=lj(Qe,xe,!0),Bt=ce(St);if(!Bt)return;let fr=ae(xe,Qe),Mr=ge(Qe,!ri(Qe,128)),ft=hs(Qe)&&!Gm(Qe)?t.createVoidZero():t.createNull(),qt=n().createDecorateHelper(Bt,fr,Mr,ft);return yn(qt,3072),Ia(qt,Um(Qe)),qt}function Se(xe,Qe){let St=Je(Qe);St&&xe.push(Rn(t.createExpressionStatement(St),Qe))}function Je(xe){let Qe=JU(xe,!0),St=ce(Qe);if(!St)return;let Bt=u&&u[Ep(xe)],fr=c<2?t.getInternalName(xe,!1,!0):t.getDeclarationName(xe,!1,!0),Mr=n().createDecorateHelper(St,fr),ft=t.createAssignment(fr,Bt?t.createAssignment(Bt,Mr):Mr);return yn(ft,3072),Ia(ft,Um(xe)),ft}function ye(xe){return w.checkDefined(rt(xe.expression,h,ht))}function ee(xe,Qe){let St;if(xe){St=[];for(let Bt of xe){let fr=n().createParamHelper(ye(Bt),Qe);mt(fr,Bt.expression),yn(fr,3072),St.push(fr)}}return St}function ge(xe,Qe){let St=xe.name;return zi(St)?t.createIdentifier(""):na(St)?Qe&&!eg(St.expression)?t.getGeneratedNameForNode(St):St.expression:Be(St)?t.createStringLiteral(Fn(St)):t.cloneNode(St)}function ke(){u||(e.enableSubstitution(80),u=[])}function Oe(xe){if(s.hasNodeCheckFlag(xe,262144)){ke();let Qe=t.createUniqueName(xe.name&&!ec(xe.name)?Fn(xe.name):"default");return u[Ep(xe)]=Qe,i(Qe),Qe}}function nt(xe){return t.createPropertyAccessExpression(t.getDeclarationName(xe),"prototype")}function ae(xe,Qe){return Ks(Qe)?t.getDeclarationName(xe):nt(xe)}function Ue(xe,Qe){return Qe=p(xe,Qe),xe===1?te(Qe):Qe}function te(xe){return xe.kind===80?Ne(xe):xe}function Ne(xe){return Ie(xe)??xe}function Ie(xe){if(u&&s.hasNodeCheckFlag(xe,536870912)){let Qe=s.getReferencedValueDeclaration(xe);if(Qe){let St=u[Qe.id];if(St){let Bt=t.cloneNode(St);return Ia(Bt,xe),gl(Bt,xe),Bt}}}}}function Dae(e){let{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e,c=xa(e.getCompilerOptions()),p,u,g,d,h,S;return pm(e,T);function T(j){p=void 0,S=!1;let je=Pr(j,U,e);return vh(je,e.readEmitHelpers()),S&&(_k(je,32),S=!1),je}function x(){switch(u=void 0,g=void 0,d=void 0,p?.kind){case"class":u=p.classInfo;break;case"class-element":u=p.next.classInfo,g=p.classThis,d=p.classSuper;break;case"name":let j=p.next.next.next;j?.kind==="class-element"&&(u=j.next.classInfo,g=j.classThis,d=j.classSuper);break}}function I(j){p={kind:"class",next:p,classInfo:j,savedPendingExpressions:h},h=void 0,x()}function P(){w.assert(p?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${p?.kind}' instead.`),h=p.savedPendingExpressions,p=p.next,x()}function E(j){var je,q;w.assert(p?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${p?.kind}' instead.`),p={kind:"class-element",next:p},(zc(j)||hs(j)&&Cl(j))&&(p.classThis=(je=p.next.classInfo)==null?void 0:je.classThis,p.classSuper=(q=p.next.classInfo)==null?void 0:q.classSuper),x()}function F(){var j;w.assert(p?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${p?.kind}' instead.`),w.assert(((j=p.next)==null?void 0:j.kind)==="class","Incorrect value for top.next.kind.",()=>{var je;return`Expected top.next.kind to be 'class' but got '${(je=p.next)==null?void 0:je.kind}' instead.`}),p=p.next,x()}function O(){w.assert(p?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${p?.kind}' instead.`),p={kind:"name",next:p},x()}function W(){w.assert(p?.kind==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${p?.kind}' instead.`),p=p.next,x()}function z(){p?.kind==="other"?(w.assert(!h),p.depth++):(p={kind:"other",next:p,depth:0,savedPendingExpressions:h},h=void 0,x())}function $(){w.assert(p?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${p?.kind}' instead.`),p.depth>0?(w.assert(!h),p.depth--):(h=p.savedPendingExpressions,p=p.next,x())}function X(j){return!!(j.transformFlags&33554432)||!!g&&!!(j.transformFlags&16384)||!!g&&!!d&&!!(j.transformFlags&134217728)}function U(j){if(!X(j))return j;switch(j.kind){case 171:return w.fail("Use `modifierVisitor` instead.");case 264:return Je(j);case 232:return ye(j);case 177:case 173:case 176:return w.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 170:return Mr(j);case 227:return us(j,!1);case 304:return _i(j);case 261:return qe(j);case 209:return bt(j);case 278:return tt(j);case 110:return xe(j);case 249:return Hr(j);case 245:return bi(j);case 357:return Un(j,!1);case 218:return Mt(j,!1);case 356:return se(j,!1);case 214:return Qe(j);case 216:return St(j);case 225:case 226:return At(j,!1);case 212:return Bt(j);case 213:return fr(j);case 168:return Sn(j);case 175:case 179:case 178:case 219:case 263:{z();let je=Pr(j,_e,e);return $(),je}default:return Pr(j,_e,e)}}function _e(j){if(j.kind!==171)return U(j)}function re(j){if(j.kind!==171)return j}function V(j){switch(j.kind){case 177:return ke(j);case 175:return ae(j);case 178:return Ue(j);case 179:return te(j);case 173:return Ie(j);case 176:return Ne(j);default:return U(j)}}function ce(j){switch(j.kind){case 225:case 226:return At(j,!0);case 227:return us(j,!0);case 357:return Un(j,!0);case 218:return Mt(j,!0);default:return U(j)}}function oe(j){let je=j.name&&Be(j.name)&&!ec(j.name)?Fn(j.name):j.name&&zi(j.name)&&!ec(j.name)?Fn(j.name).slice(1):j.name&&ya(j.name)&&af(j.name.text,99)?j.name.text:ni(j)?"class":"member";return ah(j)&&(je=`get_${je}`),Fm(j)&&(je=`set_${je}`),j.name&&zi(j.name)&&(je=`private_${je}`),Ks(j)&&(je=`static_${je}`),"_"+je}function le(j,je){return t.createUniqueName(`${oe(j)}_${je}`,24)}function de(j,je){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(j,void 0,void 0,je)],1))}function ve(j){let je=t.createUniqueName("_metadata",48),q,vt,jt=!1,Ce=!1,ut=!1,Qt,Zr,jr;if(Jw(!1,j)){let Jr=_t(j.members,ct=>(Hu(ct)||Gp(ct))&&Cl(ct));Qt=t.createUniqueName("_classThis",Jr?24:48)}for(let Jr of j.members){if(n2(Jr)&&s6(!1,Jr,j))if(Cl(Jr)){if(!vt){vt=t.createUniqueName("_staticExtraInitializers",48);let ct=n().createRunInitializersHelper(Qt??t.createThis(),vt);Ia(ct,j.name??ny(j)),Zr??(Zr=[]),Zr.push(ct)}}else{if(!q){q=t.createUniqueName("_instanceExtraInitializers",48);let ct=n().createRunInitializersHelper(t.createThis(),q);Ia(ct,j.name??ny(j)),jr??(jr=[]),jr.push(ct)}q??(q=t.createUniqueName("_instanceExtraInitializers",48))}if(zc(Jr)?iC(Jr)||(jt=!0):hs(Jr)&&(Cl(Jr)?jt||(jt=!!Jr.initializer||a_(Jr)):Ce||(Ce=!dz(Jr))),(Hu(Jr)||Gp(Jr))&&Cl(Jr)&&(ut=!0),vt&&q&&jt&&Ce&&ut)break}return{class:j,classThis:Qt,metadataReference:je,instanceMethodExtraInitializersName:q,staticMethodExtraInitializersName:vt,hasStaticInitializers:jt,hasNonAmbientInstanceFields:Ce,hasStaticPrivateClassElements:ut,pendingStaticInitializers:Zr,pendingInstanceInitializers:jr}}function H(j){i(),!qU(j)&&Ky(!1,j)&&(j=fj(e,j,t.createStringLiteral("")));let je=t.getLocalName(j,!1,!1,!0),q=ve(j),vt=[],jt,Ce,ut,Qt,Zr=!1,jr=et(JU(j,!1));jr&&(q.classDecoratorsName=t.createUniqueName("_classDecorators",48),q.classDescriptorName=t.createUniqueName("_classDescriptor",48),q.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),w.assertIsDefined(q.classThis),vt.push(de(q.classDecoratorsName,t.createArrayLiteralExpression(jr)),de(q.classDescriptorName),de(q.classExtraInitializersName,t.createArrayLiteralExpression()),de(q.classThis)),q.hasStaticPrivateClassElements&&(Zr=!0,S=!0));let Jr=T6(j.heritageClauses,96),ct=Jr&&_l(Jr.types),It=ct&&rt(ct.expression,U,ht);if(It){q.classSuper=t.createUniqueName("_classSuper",48);let Tr=Nc(It),Cr=Zc(Tr)&&!Tr.name||Ao(Tr)&&!Tr.name||Fo(Tr)?t.createComma(t.createNumericLiteral(0),It):It;vt.push(de(q.classSuper,Cr));let rr=t.updateExpressionWithTypeArguments(ct,q.classSuper,void 0),di=t.updateHeritageClause(Jr,[rr]);Qt=t.createNodeArray([di])}let Ot=q.classThis??t.createThis();I(q),jt=Fr(jt,Ae(q.metadataReference,q.classSuper));let Ht=j.members;if(Ht=Br(Ht,Tr=>yc(Tr)?Tr:V(Tr),cl),Ht=Br(Ht,Tr=>yc(Tr)?V(Tr):Tr,cl),h){let Tr;for(let Cr of h){Cr=rt(Cr,function di(Vs){return Vs.transformFlags&16384?Vs.kind===110?(Tr||(Tr=t.createUniqueName("_outerThis",16),vt.unshift(de(Tr,t.createThis()))),Tr):Pr(Vs,di,e):Vs},ht);let rr=t.createExpressionStatement(Cr);jt=Fr(jt,rr)}h=void 0}if(P(),_t(q.pendingInstanceInitializers)&&!_h(j)){let Tr=ee(j,q);if(Tr){let Cr=im(j),rr=!!(Cr&&Nc(Cr.expression).kind!==106),di=[];if(rr){let qs=t.createSpreadElement(t.createIdentifier("arguments")),xs=t.createCallExpression(t.createSuper(),void 0,[qs]);di.push(t.createExpressionStatement(xs))}Gn(di,Tr);let Vs=t.createBlock(di,!0);ut=t.createConstructorDeclaration(void 0,[],Vs)}}if(q.staticMethodExtraInitializersName&&vt.push(de(q.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),q.instanceMethodExtraInitializersName&&vt.push(de(q.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),q.memberInfos&&Rl(q.memberInfos,(Tr,Cr)=>{Ks(Cr)&&(vt.push(de(Tr.memberDecoratorsName)),Tr.memberInitializersName&&vt.push(de(Tr.memberInitializersName,t.createArrayLiteralExpression())),Tr.memberExtraInitializersName&&vt.push(de(Tr.memberExtraInitializersName,t.createArrayLiteralExpression())),Tr.memberDescriptorName&&vt.push(de(Tr.memberDescriptorName)))}),q.memberInfos&&Rl(q.memberInfos,(Tr,Cr)=>{Ks(Cr)||(vt.push(de(Tr.memberDecoratorsName)),Tr.memberInitializersName&&vt.push(de(Tr.memberInitializersName,t.createArrayLiteralExpression())),Tr.memberExtraInitializersName&&vt.push(de(Tr.memberExtraInitializersName,t.createArrayLiteralExpression())),Tr.memberDescriptorName&&vt.push(de(Tr.memberDescriptorName)))}),jt=Gn(jt,q.staticNonFieldDecorationStatements),jt=Gn(jt,q.nonStaticNonFieldDecorationStatements),jt=Gn(jt,q.staticFieldDecorationStatements),jt=Gn(jt,q.nonStaticFieldDecorationStatements),q.classDescriptorName&&q.classDecoratorsName&&q.classExtraInitializersName&&q.classThis){jt??(jt=[]);let Tr=t.createPropertyAssignment("value",Ot),Cr=t.createObjectLiteralExpression([Tr]),rr=t.createAssignment(q.classDescriptorName,Cr),di=t.createPropertyAccessExpression(Ot,"name"),Vs=n().createESDecorateHelper(t.createNull(),rr,q.classDecoratorsName,{kind:"class",name:di,metadata:q.metadataReference},t.createNull(),q.classExtraInitializersName),qs=t.createExpressionStatement(Vs);Ia(qs,ny(j)),jt.push(qs);let xs=t.createPropertyAccessExpression(q.classDescriptorName,"value"),Dc=t.createAssignment(q.classThis,xs),vc=t.createAssignment(je,Dc);jt.push(t.createExpressionStatement(vc))}if(jt.push(wt(Ot,q.metadataReference)),_t(q.pendingStaticInitializers)){for(let Tr of q.pendingStaticInitializers){let Cr=t.createExpressionStatement(Tr);Ia(Cr,nv(Tr)),Ce=Fr(Ce,Cr)}q.pendingStaticInitializers=void 0}if(q.classExtraInitializersName){let Tr=n().createRunInitializersHelper(Ot,q.classExtraInitializersName),Cr=t.createExpressionStatement(Tr);Ia(Cr,j.name??ny(j)),Ce=Fr(Ce,Cr)}jt&&Ce&&!q.hasStaticInitializers&&(Gn(jt,Ce),Ce=void 0);let hr=jt&&t.createClassStaticBlockDeclaration(t.createBlock(jt,!0));hr&&Zr&&i4(hr,32);let ur=Ce&&t.createClassStaticBlockDeclaration(t.createBlock(Ce,!0));if(hr||ut||ur){let Tr=[],Cr=Ht.findIndex(iC);hr?(Gn(Tr,Ht,0,Cr+1),Tr.push(hr),Gn(Tr,Ht,Cr+1)):Gn(Tr,Ht),ut&&Tr.push(ut),ur&&Tr.push(ur),Ht=mt(t.createNodeArray(Tr),Ht)}let Nt=s(),mr;if(jr){mr=t.createClassExpression(void 0,void 0,void 0,Qt,Ht),q.classThis&&(mr=bae(t,mr,q.classThis));let Tr=t.createVariableDeclaration(je,void 0,void 0,mr),Cr=t.createVariableDeclarationList([Tr]),rr=q.classThis?t.createAssignment(je,q.classThis):je;vt.push(t.createVariableStatement(void 0,Cr),t.createReturnStatement(rr))}else mr=t.createClassExpression(void 0,j.name,void 0,Qt,Ht),vt.push(t.createReturnStatement(mr));if(Zr){_k(mr,32);for(let Tr of mr.members)(Hu(Tr)||Gp(Tr))&&Cl(Tr)&&_k(Tr,32)}return Rn(mr,j),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(vt,Nt))}function Se(j){return Ky(!1,j)||HP(!1,j)}function Je(j){if(Se(j)){let je=[],q=sc(j,ni)??j,vt=q.name?t.createStringLiteralFromNode(q.name):t.createStringLiteral("default"),jt=ri(j,32),Ce=ri(j,2048);if(j.name||(j=fj(e,j,vt)),jt&&Ce){let ut=H(j);if(j.name){let Qt=t.createVariableDeclaration(t.getLocalName(j),void 0,void 0,ut);Rn(Qt,j);let Zr=t.createVariableDeclarationList([Qt],1),jr=t.createVariableStatement(void 0,Zr);je.push(jr);let Jr=t.createExportDefault(t.getDeclarationName(j));Rn(Jr,j),gl(Jr,$m(j)),Ia(Jr,ny(j)),je.push(Jr)}else{let Qt=t.createExportDefault(ut);Rn(Qt,j),gl(Qt,$m(j)),Ia(Qt,ny(j)),je.push(Qt)}}else{w.assertIsDefined(j.name,"A class declaration that is not a default export must have a name.");let ut=H(j),Qt=jt?Ot=>L2(Ot)?void 0:re(Ot):re,Zr=Br(j.modifiers,Qt,la),jr=t.getLocalName(j,!1,!0),Jr=t.createVariableDeclaration(jr,void 0,void 0,ut);Rn(Jr,j);let ct=t.createVariableDeclarationList([Jr],1),It=t.createVariableStatement(Zr,ct);if(Rn(It,j),gl(It,$m(j)),je.push(It),jt){let Ot=t.createExternalModuleExport(jr);Rn(Ot,j),je.push(Ot)}}return vg(je)}else{let je=Br(j.modifiers,re,la),q=Br(j.heritageClauses,U,Af);I(void 0);let vt=Br(j.members,V,cl);return P(),t.updateClassDeclaration(j,je,j.name,void 0,q,vt)}}function ye(j){if(Se(j)){let je=H(j);return Rn(je,j),je}else{let je=Br(j.modifiers,re,la),q=Br(j.heritageClauses,U,Af);I(void 0);let vt=Br(j.members,V,cl);return P(),t.updateClassExpression(j,je,j.name,void 0,q,vt)}}function ee(j,je){if(_t(je.pendingInstanceInitializers)){let q=[];return q.push(t.createExpressionStatement(t.inlineExpressions(je.pendingInstanceInitializers))),je.pendingInstanceInitializers=void 0,q}}function ge(j,je,q,vt,jt,Ce){let ut=vt[jt],Qt=je[ut];if(Gn(j,Br(je,U,Ei,q,ut-q)),Sk(Qt)){let Zr=[];ge(Zr,Qt.tryBlock.statements,0,vt,jt+1,Ce);let jr=t.createNodeArray(Zr);mt(jr,Qt.tryBlock.statements),j.push(t.updateTryStatement(Qt,t.updateBlock(Qt.tryBlock,Zr),rt(Qt.catchClause,U,GS),rt(Qt.finallyBlock,U,Bs)))}else Gn(j,Br(je,U,Ei,ut,1)),Gn(j,Ce);Gn(j,Br(je,U,Ei,ut+1))}function ke(j){E(j);let je=Br(j.modifiers,re,la),q=Br(j.parameters,U,Gi),vt;if(j.body&&u){let jt=ee(u.class,u);if(jt){let Ce=[],ut=t.copyPrologue(j.body.statements,Ce,!1,U),Qt=oj(j.body.statements,ut);Qt.length>0?ge(Ce,j.body.statements,ut,Qt,0,jt):(Gn(Ce,jt),Gn(Ce,Br(j.body.statements,U,Ei))),vt=t.createBlock(Ce,!0),Rn(vt,j.body),mt(vt,j.body)}}return vt??(vt=rt(j.body,U,Bs)),F(),t.updateConstructorDeclaration(j,je,q,vt)}function Oe(j,je){return j!==je&&(gl(j,je),Ia(j,ny(je))),j}function nt(j,je,q){let vt,jt,Ce,ut,Qt,Zr;if(!je){let ct=Br(j.modifiers,re,la);return O(),jt=zn(j.name),W(),{modifiers:ct,referencedName:vt,name:jt,initializersName:Ce,descriptorName:Zr,thisArg:Qt}}let jr=et(lj(j,je.class,!1)),Jr=Br(j.modifiers,re,la);if(jr){let ct=le(j,"decorators"),It=t.createArrayLiteralExpression(jr),Ot=t.createAssignment(ct,It),Ht={memberDecoratorsName:ct};je.memberInfos??(je.memberInfos=new Map),je.memberInfos.set(j,Ht),h??(h=[]),h.push(Ot);let hr=n2(j)||Gp(j)?Ks(j)?je.staticNonFieldDecorationStatements??(je.staticNonFieldDecorationStatements=[]):je.nonStaticNonFieldDecorationStatements??(je.nonStaticNonFieldDecorationStatements=[]):hs(j)&&!Gp(j)?Ks(j)?je.staticFieldDecorationStatements??(je.staticFieldDecorationStatements=[]):je.nonStaticFieldDecorationStatements??(je.nonStaticFieldDecorationStatements=[]):w.fail(),ur=B_(j)?"getter":uf(j)?"setter":hc(j)?"method":Gp(j)?"accessor":hs(j)?"field":w.fail(),Nt;if(Be(j.name)||zi(j.name))Nt={computed:!1,name:j.name};else if(Bm(j.name))Nt={computed:!0,name:t.createStringLiteralFromNode(j.name)};else{let Tr=j.name.expression;Bm(Tr)&&!Be(Tr)?Nt={computed:!0,name:t.createStringLiteralFromNode(Tr)}:(O(),{referencedName:vt,name:jt}=rs(j.name),Nt={computed:!0,name:vt},W())}let mr={kind:ur,name:Nt,static:Ks(j),private:zi(j.name),access:{get:hs(j)||B_(j)||hc(j),set:hs(j)||uf(j)},metadata:je.metadataReference};if(n2(j)){let Tr=Ks(j)?je.staticMethodExtraInitializersName:je.instanceMethodExtraInitializersName;w.assertIsDefined(Tr);let Cr;Hu(j)&&q&&(Cr=q(j,Br(Jr,Vs=>Hn(Vs,LA),la)),Ht.memberDescriptorName=Zr=le(j,"descriptor"),Cr=t.createAssignment(Zr,Cr));let rr=n().createESDecorateHelper(t.createThis(),Cr??t.createNull(),ct,mr,t.createNull(),Tr),di=t.createExpressionStatement(rr);Ia(di,ny(j)),hr.push(di)}else if(hs(j)){Ce=Ht.memberInitializersName??(Ht.memberInitializersName=le(j,"initializers")),ut=Ht.memberExtraInitializersName??(Ht.memberExtraInitializersName=le(j,"extraInitializers")),Ks(j)&&(Qt=je.classThis);let Tr;Hu(j)&&Gm(j)&&q&&(Tr=q(j,void 0),Ht.memberDescriptorName=Zr=le(j,"descriptor"),Tr=t.createAssignment(Zr,Tr));let Cr=n().createESDecorateHelper(Gp(j)?t.createThis():t.createNull(),Tr??t.createNull(),ct,mr,Ce,ut),rr=t.createExpressionStatement(Cr);Ia(rr,ny(j)),hr.push(rr)}}return jt===void 0&&(O(),jt=zn(j.name),W()),!_t(Jr)&&(hc(j)||hs(j))&&yn(jt,1024),{modifiers:Jr,referencedName:vt,name:jt,initializersName:Ce,extraInitializersName:ut,descriptorName:Zr,thisArg:Qt}}function ae(j){E(j);let{modifiers:je,name:q,descriptorName:vt}=nt(j,u,Le);if(vt)return F(),Oe(Ye(je,q,vt),j);{let jt=Br(j.parameters,U,Gi),Ce=rt(j.body,U,Bs);return F(),Oe(t.updateMethodDeclaration(j,je,j.asteriskToken,q,void 0,void 0,jt,void 0,Ce),j)}}function Ue(j){E(j);let{modifiers:je,name:q,descriptorName:vt}=nt(j,u,kt);if(vt)return F(),Oe(Gt(je,q,vt),j);{let jt=Br(j.parameters,U,Gi),Ce=rt(j.body,U,Bs);return F(),Oe(t.updateGetAccessorDeclaration(j,je,q,jt,void 0,Ce),j)}}function te(j){E(j);let{modifiers:je,name:q,descriptorName:vt}=nt(j,u,Tt);if(vt)return F(),Oe(ln(je,q,vt),j);{let jt=Br(j.parameters,U,Gi),Ce=rt(j.body,U,Bs);return F(),Oe(t.updateSetAccessorDeclaration(j,je,q,jt,Ce),j)}}function Ne(j){E(j);let je;if(iC(j))je=Pr(j,U,e);else if(fE(j)){let q=g;g=void 0,je=Pr(j,U,e),g=q}else if(j=Pr(j,U,e),je=j,u&&(u.hasStaticInitializers=!0,_t(u.pendingStaticInitializers))){let q=[];for(let Ce of u.pendingStaticInitializers){let ut=t.createExpressionStatement(Ce);Ia(ut,nv(Ce)),q.push(ut)}let vt=t.createBlock(q,!0);je=[t.createClassStaticBlockDeclaration(vt),je],u.pendingStaticInitializers=void 0}return F(),je}function Ie(j){Cf(j,ft)&&(j=Ef(e,j,qt(j.initializer))),E(j),w.assert(!dz(j),"Not yet implemented.");let{modifiers:je,name:q,initializersName:vt,extraInitializersName:jt,descriptorName:Ce,thisArg:ut}=nt(j,u,Gm(j)?Rt:void 0);i();let Qt=rt(j.initializer,U,ht);vt&&(Qt=n().createRunInitializersHelper(ut??t.createThis(),vt,Qt??t.createVoidZero())),Ks(j)&&u&&Qt&&(u.hasStaticInitializers=!0);let Zr=s();if(_t(Zr)&&(Qt=t.createImmediatelyInvokedArrowFunction([...Zr,t.createReturnStatement(Qt)])),u&&(Ks(j)?(Qt=Ee(u,!0,Qt),jt&&(u.pendingStaticInitializers??(u.pendingStaticInitializers=[]),u.pendingStaticInitializers.push(n().createRunInitializersHelper(u.classThis??t.createThis(),jt)))):(Qt=Ee(u,!1,Qt),jt&&(u.pendingInstanceInitializers??(u.pendingInstanceInitializers=[]),u.pendingInstanceInitializers.push(n().createRunInitializersHelper(t.createThis(),jt))))),F(),Gm(j)&&Ce){let jr=$m(j),Jr=nv(j),ct=j.name,It=ct,Ot=ct;if(na(ct)&&!eg(ct.expression)){let mr=I7(ct);if(mr)It=t.updateComputedPropertyName(ct,rt(ct.expression,U,ht)),Ot=t.updateComputedPropertyName(ct,mr.left);else{let Tr=t.createTempVariable(o);Ia(Tr,ct.expression);let Cr=rt(ct.expression,U,ht),rr=t.createAssignment(Tr,Cr);Ia(rr,ct.expression),It=t.updateComputedPropertyName(ct,rr),Ot=t.updateComputedPropertyName(ct,Tr)}}let Ht=Br(je,mr=>mr.kind!==129?mr:void 0,la),hr=zJ(t,j,Ht,Qt);Rn(hr,j),yn(hr,3072),Ia(hr,Jr),Ia(hr.name,j.name);let ur=Gt(Ht,It,Ce);Rn(ur,j),gl(ur,jr),Ia(ur,Jr);let Nt=ln(Ht,Ot,Ce);return Rn(Nt,j),yn(Nt,3072),Ia(Nt,Jr),[hr,ur,Nt]}return Oe(t.updatePropertyDeclaration(j,je,q,void 0,void 0,Qt),j)}function xe(j){return g??j}function Qe(j){if(of(j.expression)&&g){let je=rt(j.expression,U,ht),q=Br(j.arguments,U,ht),vt=t.createFunctionCallCall(je,g,q);return Rn(vt,j),mt(vt,j),vt}return Pr(j,U,e)}function St(j){if(of(j.tag)&&g){let je=rt(j.tag,U,ht),q=t.createFunctionBindCall(je,g,[]);Rn(q,j),mt(q,j);let vt=rt(j.template,U,i2);return t.updateTaggedTemplateExpression(j,q,void 0,vt)}return Pr(j,U,e)}function Bt(j){if(of(j)&&Be(j.name)&&g&&d){let je=t.createStringLiteralFromNode(j.name),q=t.createReflectGetCall(d,je,g);return Rn(q,j.expression),mt(q,j.expression),q}return Pr(j,U,e)}function fr(j){if(of(j)&&g&&d){let je=rt(j.argumentExpression,U,ht),q=t.createReflectGetCall(d,je,g);return Rn(q,j.expression),mt(q,j.expression),q}return Pr(j,U,e)}function Mr(j){Cf(j,ft)&&(j=Ef(e,j,qt(j.initializer)));let je=t.updateParameterDeclaration(j,void 0,j.dotDotDotToken,rt(j.name,U,QT),void 0,void 0,rt(j.initializer,U,ht));return je!==j&&(gl(je,j),mt(je,Um(j)),Ia(je,Um(j)),yn(je.name,64)),je}function ft(j){return Zc(j)&&!j.name&&Se(j)}function qt(j){let je=Nc(j);return Zc(je)&&!je.name&&!Ky(!1,je)}function Hr(j){return t.updateForStatement(j,rt(j.initializer,ce,E_),rt(j.condition,U,ht),rt(j.incrementor,ce,ht),Ap(j.statement,U,e))}function bi(j){return Pr(j,ce,e)}function us(j,je){if(Yy(j)){let q=Ds(j.left),vt=rt(j.right,U,ht);return t.updateBinaryExpression(j,q,j.operatorToken,vt)}if(Hl(j)){if(Cf(j,ft))return j=Ef(e,j,qt(j.right)),Pr(j,U,e);if(of(j.left)&&g&&d){let q=xo(j.left)?rt(j.left.argumentExpression,U,ht):Be(j.left.name)?t.createStringLiteralFromNode(j.left.name):void 0;if(q){let vt=rt(j.right,U,ht);if(lE(j.operatorToken.kind)){let Ce=q;eg(q)||(Ce=t.createTempVariable(o),q=t.createAssignment(Ce,q));let ut=t.createReflectGetCall(d,Ce,g);Rn(ut,j.left),mt(ut,j.left),vt=t.createBinaryExpression(ut,uE(j.operatorToken.kind),vt),mt(vt,j)}let jt=je?void 0:t.createTempVariable(o);return jt&&(vt=t.createAssignment(jt,vt),mt(jt,j)),vt=t.createReflectSetCall(d,q,vt,g),Rn(vt,j),mt(vt,j),jt&&(vt=t.createComma(vt,jt),mt(vt,j)),vt}}}if(j.operatorToken.kind===28){let q=rt(j.left,ce,ht),vt=rt(j.right,je?ce:U,ht);return t.updateBinaryExpression(j,q,j.operatorToken,vt)}return Pr(j,U,e)}function At(j,je){if(j.operator===46||j.operator===47){let q=Qa(j.operand);if(of(q)&&g&&d){let vt=xo(q)?rt(q.argumentExpression,U,ht):Be(q.name)?t.createStringLiteralFromNode(q.name):void 0;if(vt){let jt=vt;eg(vt)||(jt=t.createTempVariable(o),vt=t.createAssignment(jt,vt));let Ce=t.createReflectGetCall(d,jt,g);Rn(Ce,j),mt(Ce,j);let ut=je?void 0:t.createTempVariable(o);return Ce=S7(t,j,Ce,o,ut),Ce=t.createReflectSetCall(d,vt,Ce,g),Rn(Ce,j),mt(Ce,j),ut&&(Ce=t.createComma(Ce,ut),mt(Ce,j)),Ce}}}return Pr(j,U,e)}function Un(j,je){let q=je?W4(j.elements,ce):W4(j.elements,U,ce);return t.updateCommaListExpression(j,q)}function rs(j){if(Bm(j)||zi(j)){let Ce=t.createStringLiteralFromNode(j),ut=rt(j,U,ol);return{referencedName:Ce,name:ut}}if(Bm(j.expression)&&!Be(j.expression)){let Ce=t.createStringLiteralFromNode(j.expression),ut=rt(j,U,ol);return{referencedName:Ce,name:ut}}let je=t.getGeneratedNameForNode(j);o(je);let q=n().createPropKeyHelper(rt(j.expression,U,ht)),vt=t.createAssignment(je,q),jt=t.updateComputedPropertyName(j,Z(vt));return{referencedName:je,name:jt}}function zn(j){return na(j)?Sn(j):rt(j,U,ol)}function Sn(j){let je=rt(j.expression,U,ht);return eg(je)||(je=Z(je)),t.updateComputedPropertyName(j,je)}function _i(j){return Cf(j,ft)&&(j=Ef(e,j,qt(j.initializer))),Pr(j,U,e)}function qe(j){return Cf(j,ft)&&(j=Ef(e,j,qt(j.initializer))),Pr(j,U,e)}function bt(j){return Cf(j,ft)&&(j=Ef(e,j,qt(j.initializer))),Pr(j,U,e)}function ar(j){if(Sa(j)||Tu(j))return Ds(j);if(of(j)&&g&&d){let je=xo(j)?rt(j.argumentExpression,U,ht):Be(j.name)?t.createStringLiteralFromNode(j.name):void 0;if(je){let q=t.createTempVariable(void 0),vt=t.createAssignmentTargetWrapper(q,t.createReflectSetCall(d,je,q,g));return Rn(vt,j),mt(vt,j),vt}}return Pr(j,U,e)}function tn(j){if(Hl(j,!0)){Cf(j,ft)&&(j=Ef(e,j,qt(j.right)));let je=ar(j.left),q=rt(j.right,U,ht);return t.updateBinaryExpression(j,je,j.operatorToken,q)}else return ar(j)}function Xn(j){if(Jp(j.expression)){let je=ar(j.expression);return t.updateSpreadElement(j,je)}return Pr(j,U,e)}function ei(j){return w.assertNode(j,FM),z_(j)?Xn(j):Fl(j)?Pr(j,U,e):tn(j)}function Mi(j){let je=rt(j.name,U,ol);if(Hl(j.initializer,!0)){let q=tn(j.initializer);return t.updatePropertyAssignment(j,je,q)}if(Jp(j.initializer)){let q=ar(j.initializer);return t.updatePropertyAssignment(j,je,q)}return Pr(j,U,e)}function js(j){return Cf(j,ft)&&(j=Ef(e,j,qt(j.objectAssignmentInitializer))),Pr(j,U,e)}function oa(j){if(Jp(j.expression)){let je=ar(j.expression);return t.updateSpreadAssignment(j,je)}return Pr(j,U,e)}function wr(j){return w.assertNode(j,OM),Sh(j)?oa(j):Fu(j)?js(j):yl(j)?Mi(j):Pr(j,U,e)}function Ds(j){if(Tu(j)){let je=Br(j.elements,ei,ht);return t.updateArrayLiteralExpression(j,je)}else{let je=Br(j.properties,wr,Xh);return t.updateObjectLiteralExpression(j,je)}}function tt(j){return Cf(j,ft)&&(j=Ef(e,j,qt(j.expression))),Pr(j,U,e)}function Mt(j,je){let q=je?ce:U,vt=rt(j.expression,q,ht);return t.updateParenthesizedExpression(j,vt)}function se(j,je){let q=je?ce:U,vt=rt(j.expression,q,ht);return t.updatePartiallyEmittedExpression(j,vt)}function pt(j,je){return _t(j)&&(je?Pp(je)?(j.push(je.expression),je=t.updateParenthesizedExpression(je,t.inlineExpressions(j))):(j.push(je),je=t.inlineExpressions(j)):je=t.inlineExpressions(j)),je}function Z(j){let je=pt(h,j);return w.assertIsDefined(je),je!==j&&(h=void 0),je}function Ee(j,je,q){let vt=pt(je?j.pendingStaticInitializers:j.pendingInstanceInitializers,q);return vt!==q&&(je?j.pendingStaticInitializers=void 0:j.pendingInstanceInitializers=void 0),vt}function et(j){if(!j)return;let je=[];return Gn(je,kr(j.decorators,at)),je}function at(j){let je=rt(j.expression,U,ht);yn(je,3072);let q=Nc(je);if(Oo(q)){let{target:vt,thisArg:jt}=t.createCallBinding(je,o,c,!0);return t.restoreOuterExpressions(je,t.createFunctionBindCall(vt,jt,[]))}return je}function Pt(j,je,q,vt,jt,Ce,ut){let Qt=t.createFunctionExpression(q,vt,void 0,void 0,Ce,void 0,ut??t.createBlock([]));Rn(Qt,j),Ia(Qt,ny(j)),yn(Qt,3072);let Zr=jt==="get"||jt==="set"?jt:void 0,jr=t.createStringLiteralFromNode(je,void 0),Jr=n().createSetFunctionNameHelper(Qt,jr,Zr),ct=t.createPropertyAssignment(t.createIdentifier(jt),Jr);return Rn(ct,j),Ia(ct,ny(j)),yn(ct,3072),ct}function Le(j,je){return t.createObjectLiteralExpression([Pt(j,j.name,je,j.asteriskToken,"value",Br(j.parameters,U,Gi),rt(j.body,U,Bs))])}function kt(j,je){return t.createObjectLiteralExpression([Pt(j,j.name,je,void 0,"get",[],rt(j.body,U,Bs))])}function Tt(j,je){return t.createObjectLiteralExpression([Pt(j,j.name,je,void 0,"set",Br(j.parameters,U,Gi),rt(j.body,U,Bs))])}function Rt(j,je){return t.createObjectLiteralExpression([Pt(j,j.name,je,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(j.name)))])),Pt(j,j.name,je,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(j.name)),t.createIdentifier("value")))]))])}function Ye(j,je,q){return j=Br(j,vt=>W2(vt)?vt:void 0,la),t.createGetAccessorDeclaration(j,je,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(q,t.createIdentifier("value")))]))}function Gt(j,je,q){return j=Br(j,vt=>W2(vt)?vt:void 0,la),t.createGetAccessorDeclaration(j,je,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(q,t.createIdentifier("get")),t.createThis(),[]))]))}function ln(j,je,q){return j=Br(j,vt=>W2(vt)?vt:void 0,la),t.createSetAccessorDeclaration(j,je,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(q,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function Ae(j,je){let q=t.createVariableDeclaration(j,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[je?fe(je):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([q],2))}function wt(j,je){let q=t.createObjectDefinePropertyCall(j,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:je},!0));return yn(t.createIfStatement(je,t.createExpressionStatement(q)),1)}function fe(j){return t.createBinaryExpression(t.createElementAccessExpression(j,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}function Pae(e){let{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e,c=e.getEmitResolver(),p=e.getCompilerOptions(),u=xa(p),g=0,d=0,h,S,T,x,I=[],P=0,E=e.onEmitNode,F=e.onSubstituteNode;return e.onEmitNode=bi,e.onSubstituteNode=us,pm(e,O);function O(qe){if(qe.isDeclarationFile)return qe;W(1,!1),W(2,!_z(qe,p));let bt=Pr(qe,V,e);return vh(bt,e.readEmitHelpers()),bt}function W(qe,bt){P=bt?P|qe:P&~qe}function z(qe){return(P&qe)!==0}function $(){return!z(1)}function X(){return z(2)}function U(qe,bt,ar){let tn=qe&~P;if(tn){W(tn,!0);let Xn=bt(ar);return W(tn,!1),Xn}return bt(ar)}function _e(qe){return Pr(qe,V,e)}function re(qe){switch(qe.kind){case 219:case 263:case 175:case 178:case 179:case 177:return qe;case 170:case 209:case 261:break;case 80:if(x&&c.isArgumentsLocalBinding(qe))return x;break}return Pr(qe,re,e)}function V(qe){if((qe.transformFlags&256)===0)return x?re(qe):qe;switch(qe.kind){case 134:return;case 224:return Se(qe);case 175:return U(3,ye,qe);case 263:return U(3,ke,qe);case 219:return U(3,Oe,qe);case 220:return U(1,nt,qe);case 212:return S&&Ln(qe)&&qe.expression.kind===108&&S.add(qe.name.escapedText),Pr(qe,V,e);case 213:return S&&qe.expression.kind===108&&(T=!0),Pr(qe,V,e);case 178:return U(3,ee,qe);case 179:return U(3,ge,qe);case 177:return U(3,Je,qe);case 264:case 232:return U(3,_e,qe);default:return Pr(qe,V,e)}}function ce(qe){if(dre(qe))switch(qe.kind){case 244:return le(qe);case 249:return H(qe);case 250:return de(qe);case 251:return ve(qe);case 300:return oe(qe);case 242:case 256:case 270:case 297:case 298:case 259:case 247:case 248:case 246:case 255:case 257:return Pr(qe,ce,e);default:return w.assertNever(qe,"Unhandled node.")}return V(qe)}function oe(qe){let bt=new Set;ae(qe.variableDeclaration,bt);let ar;if(bt.forEach((tn,Xn)=>{h.has(Xn)&&(ar||(ar=new Set(h)),ar.delete(Xn))}),ar){let tn=h;h=ar;let Xn=Pr(qe,ce,e);return h=tn,Xn}else return Pr(qe,ce,e)}function le(qe){if(Ue(qe.declarationList)){let bt=te(qe.declarationList,!1);return bt?t.createExpressionStatement(bt):void 0}return Pr(qe,V,e)}function de(qe){return t.updateForInStatement(qe,Ue(qe.initializer)?te(qe.initializer,!0):w.checkDefined(rt(qe.initializer,V,E_)),w.checkDefined(rt(qe.expression,V,ht)),Ap(qe.statement,ce,e))}function ve(qe){return t.updateForOfStatement(qe,rt(qe.awaitModifier,V,_J),Ue(qe.initializer)?te(qe.initializer,!0):w.checkDefined(rt(qe.initializer,V,E_)),w.checkDefined(rt(qe.expression,V,ht)),Ap(qe.statement,ce,e))}function H(qe){let bt=qe.initializer;return t.updateForStatement(qe,Ue(bt)?te(bt,!1):rt(qe.initializer,V,E_),rt(qe.condition,V,ht),rt(qe.incrementor,V,ht),Ap(qe.statement,ce,e))}function Se(qe){return $()?Pr(qe,V,e):Rn(mt(t.createYieldExpression(void 0,rt(qe.expression,V,ht)),qe),qe)}function Je(qe){let bt=x;x=void 0;let ar=t.updateConstructorDeclaration(qe,Br(qe.modifiers,V,la),wc(qe.parameters,V,e),St(qe));return x=bt,ar}function ye(qe){let bt,ar=Yc(qe),tn=x;x=void 0;let Xn=t.updateMethodDeclaration(qe,Br(qe.modifiers,V,tc),qe.asteriskToken,qe.name,void 0,void 0,bt=ar&2?fr(qe):wc(qe.parameters,V,e),void 0,ar&2?Mr(qe,bt):St(qe));return x=tn,Xn}function ee(qe){let bt=x;x=void 0;let ar=t.updateGetAccessorDeclaration(qe,Br(qe.modifiers,V,tc),qe.name,wc(qe.parameters,V,e),void 0,St(qe));return x=bt,ar}function ge(qe){let bt=x;x=void 0;let ar=t.updateSetAccessorDeclaration(qe,Br(qe.modifiers,V,tc),qe.name,wc(qe.parameters,V,e),St(qe));return x=bt,ar}function ke(qe){let bt,ar=x;x=void 0;let tn=Yc(qe),Xn=t.updateFunctionDeclaration(qe,Br(qe.modifiers,V,tc),qe.asteriskToken,qe.name,void 0,bt=tn&2?fr(qe):wc(qe.parameters,V,e),void 0,tn&2?Mr(qe,bt):p_(qe.body,V,e));return x=ar,Xn}function Oe(qe){let bt,ar=x;x=void 0;let tn=Yc(qe),Xn=t.updateFunctionExpression(qe,Br(qe.modifiers,V,la),qe.asteriskToken,qe.name,void 0,bt=tn&2?fr(qe):wc(qe.parameters,V,e),void 0,tn&2?Mr(qe,bt):p_(qe.body,V,e));return x=ar,Xn}function nt(qe){let bt,ar=Yc(qe);return t.updateArrowFunction(qe,Br(qe.modifiers,V,la),void 0,bt=ar&2?fr(qe):wc(qe.parameters,V,e),void 0,qe.equalsGreaterThanToken,ar&2?Mr(qe,bt):p_(qe.body,V,e))}function ae({name:qe},bt){if(Be(qe))bt.add(qe.escapedText);else for(let ar of qe.elements)Fl(ar)||ae(ar,bt)}function Ue(qe){return!!qe&&lu(qe)&&!(qe.flags&7)&&qe.declarations.some(Qe)}function te(qe,bt){Ne(qe);let ar=gA(qe);return ar.length===0?bt?rt(t.converters.convertToAssignmentElementTarget(qe.declarations[0].name),V,ht):void 0:t.inlineExpressions(kr(ar,xe))}function Ne(qe){or(qe.declarations,Ie)}function Ie({name:qe}){if(Be(qe))o(qe);else for(let bt of qe.elements)Fl(bt)||Ie(bt)}function xe(qe){let bt=Ia(t.createAssignment(t.converters.convertToAssignmentElementTarget(qe.name),qe.initializer),qe);return w.checkDefined(rt(bt,V,ht))}function Qe({name:qe}){if(Be(qe))return h.has(qe.escapedText);for(let bt of qe.elements)if(!Fl(bt)&&Qe(bt))return!0;return!1}function St(qe){w.assertIsDefined(qe.body);let bt=S,ar=T;S=new Set,T=!1;let tn=p_(qe.body,V,e),Xn=sc(qe,yo);if(u>=2&&(c.hasNodeCheckFlag(qe,256)||c.hasNodeCheckFlag(qe,128))&&(Yc(Xn)&3)!==3){if(Hr(),S.size){let Mi=_j(t,c,qe,S);I[qa(Mi)]=!0;let js=tn.statements.slice();lh(js,[Mi]),tn=t.updateBlock(tn,js)}T&&(c.hasNodeCheckFlag(qe,256)?O2(tn,i7):c.hasNodeCheckFlag(qe,128)&&O2(tn,n7))}return S=bt,T=ar,tn}function Bt(){w.assert(x);let qe=t.createVariableDeclaration(x,void 0,void 0,t.createIdentifier("arguments")),bt=t.createVariableStatement(void 0,[qe]);return Yu(bt),qm(bt,2097152),bt}function fr(qe){if(z4(qe.parameters))return wc(qe.parameters,V,e);let bt=[];for(let tn of qe.parameters){if(tn.initializer||tn.dotDotDotToken){if(qe.kind===220){let ei=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));bt.push(ei)}break}let Xn=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(tn.name,8));bt.push(Xn)}let ar=t.createNodeArray(bt);return mt(ar,qe.parameters),ar}function Mr(qe,bt){let ar=z4(qe.parameters)?void 0:wc(qe.parameters,V,e);i();let Xn=sc(qe,Fs).type,ei=u<2?qt(Xn):void 0,Mi=qe.kind===220,js=x,wr=c.hasNodeCheckFlag(qe,512)&&!x;wr&&(x=t.createUniqueName("arguments"));let Ds;if(ar)if(Mi){let et=[];w.assert(bt.length<=qe.parameters.length);for(let at=0;at<qe.parameters.length;at++){w.assert(at<bt.length);let Pt=qe.parameters[at],Le=bt[at];if(w.assertNode(Le.name,Be),Pt.initializer||Pt.dotDotDotToken){w.assert(at===bt.length-1),et.push(t.createSpreadElement(Le.name));break}et.push(Le.name)}Ds=t.createArrayLiteralExpression(et)}else Ds=t.createIdentifier("arguments");let tt=h;h=new Set;for(let et of qe.parameters)ae(et,h);let Mt=S,se=T;Mi||(S=new Set,T=!1);let pt=X(),Z=ft(qe.body);Z=t.updateBlock(Z,t.mergeLexicalEnvironment(Z.statements,s()));let Ee;if(Mi){if(Ee=n().createAwaiterHelper(pt,Ds,ei,ar,Z),wr){let et=t.converters.convertToFunctionBlock(Ee);Ee=t.updateBlock(et,t.mergeLexicalEnvironment(et.statements,[Bt()]))}}else{let et=[];et.push(t.createReturnStatement(n().createAwaiterHelper(pt,Ds,ei,ar,Z)));let at=u>=2&&(c.hasNodeCheckFlag(qe,256)||c.hasNodeCheckFlag(qe,128));if(at&&(Hr(),S.size)){let Le=_j(t,c,qe,S);I[qa(Le)]=!0,lh(et,[Le])}wr&&lh(et,[Bt()]);let Pt=t.createBlock(et,!0);mt(Pt,qe.body),at&&T&&(c.hasNodeCheckFlag(qe,256)?O2(Pt,i7):c.hasNodeCheckFlag(qe,128)&&O2(Pt,n7)),Ee=Pt}return h=tt,Mi||(S=Mt,T=se,x=js),Ee}function ft(qe,bt){return Bs(qe)?t.updateBlock(qe,Br(qe.statements,ce,Ei,bt)):t.converters.convertToFunctionBlock(w.checkDefined(rt(qe,ce,dF)))}function qt(qe){let bt=qe&&n6(qe);if(bt&&xp(bt)){let ar=c.getTypeReferenceSerializationKind(bt);if(ar===1||ar===0)return bt}}function Hr(){(g&1)===0&&(g|=1,e.enableSubstitution(214),e.enableSubstitution(212),e.enableSubstitution(213),e.enableEmitNotification(264),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(177),e.enableEmitNotification(244))}function bi(qe,bt,ar){if(g&1&&Sn(bt)){let tn=(c.hasNodeCheckFlag(bt,128)?128:0)|(c.hasNodeCheckFlag(bt,256)?256:0);if(tn!==d){let Xn=d;d=tn,E(qe,bt,ar),d=Xn;return}}else if(g&&I[qa(bt)]){let tn=d;d=0,E(qe,bt,ar),d=tn;return}E(qe,bt,ar)}function us(qe,bt){return bt=F(qe,bt),qe===1&&d?At(bt):bt}function At(qe){switch(qe.kind){case 212:return Un(qe);case 213:return rs(qe);case 214:return zn(qe)}return qe}function Un(qe){return qe.expression.kind===108?mt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),qe.name),qe):qe}function rs(qe){return qe.expression.kind===108?_i(qe.argumentExpression,qe):qe}function zn(qe){let bt=qe.expression;if(of(bt)){let ar=Ln(bt)?Un(bt):rs(bt);return t.createCallExpression(t.createPropertyAccessExpression(ar,"call"),void 0,[t.createThis(),...qe.arguments])}return qe}function Sn(qe){let bt=qe.kind;return bt===264||bt===177||bt===175||bt===178||bt===179}function _i(qe,bt){return d&256?mt(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[qe]),"value"),bt):mt(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[qe]),bt)}}function _j(e,t,n,i){let s=t.hasNodeCheckFlag(n,256),o=[];return i.forEach((c,p)=>{let u=Ai(p),g=[];g.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,yn(e.createPropertyAccessExpression(yn(e.createSuper(),8),u),8)))),s&&g.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(yn(e.createPropertyAccessExpression(yn(e.createSuper(),8),u),8),e.createIdentifier("v"))))),o.push(e.createPropertyAssignment(u,e.createObjectLiteralExpression(g)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(o,!0)]))],2))}function Aae(e){let{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e,c=e.getEmitResolver(),p=e.getCompilerOptions(),u=xa(p),g=e.onEmitNode;e.onEmitNode=js;let d=e.onSubstituteNode;e.onSubstituteNode=oa;let h=!1,S=0,T,x,I=0,P=0,E,F,O,W,z=[];return pm(e,re);function $(Z,Ee){return P!==(P&~Z|Ee)}function X(Z,Ee){let et=P;return P=(P&~Z|Ee)&3,et}function U(Z){P=Z}function _e(Z){F=Fr(F,t.createVariableDeclaration(Z))}function re(Z){if(Z.isDeclarationFile)return Z;E=Z;let Ee=nt(Z);return vh(Ee,e.readEmitHelpers()),E=void 0,F=void 0,Ee}function V(Z){return ve(Z,!1)}function ce(Z){return ve(Z,!0)}function oe(Z){if(Z.kind!==134)return Z}function le(Z,Ee,et,at){if($(et,at)){let Pt=X(et,at),Le=Z(Ee);return U(Pt),Le}return Z(Ee)}function de(Z){return Pr(Z,V,e)}function ve(Z,Ee){if((Z.transformFlags&128)===0)return Z;switch(Z.kind){case 224:return H(Z);case 230:return Se(Z);case 254:return Je(Z);case 257:return ye(Z);case 211:return ge(Z);case 227:return Ue(Z,Ee);case 357:return te(Z,Ee);case 300:return Ne(Z);case 244:return Ie(Z);case 261:return xe(Z);case 247:case 248:case 250:return le(de,Z,0,2);case 251:return fr(Z,void 0);case 249:return le(St,Z,0,2);case 223:return Bt(Z);case 177:return le(Un,Z,2,1);case 175:return le(Sn,Z,2,1);case 178:return le(rs,Z,2,1);case 179:return le(zn,Z,2,1);case 263:return le(_i,Z,2,1);case 219:return le(bt,Z,2,1);case 220:return le(qe,Z,2,0);case 170:return us(Z);case 245:return ke(Z);case 218:return Oe(Z,Ee);case 216:return ae(Z);case 212:return O&&Ln(Z)&&Z.expression.kind===108&&O.add(Z.name.escapedText),Pr(Z,V,e);case 213:return O&&Z.expression.kind===108&&(W=!0),Pr(Z,V,e);case 264:case 232:return le(de,Z,2,1);default:return Pr(Z,V,e)}}function H(Z){return T&2&&T&1?Rn(mt(t.createYieldExpression(void 0,n().createAwaitHelper(rt(Z.expression,V,ht))),Z),Z):Pr(Z,V,e)}function Se(Z){if(T&2&&T&1){if(Z.asteriskToken){let Ee=rt(w.checkDefined(Z.expression),V,ht);return Rn(mt(t.createYieldExpression(void 0,n().createAwaitHelper(t.updateYieldExpression(Z,Z.asteriskToken,mt(n().createAsyncDelegatorHelper(mt(n().createAsyncValuesHelper(Ee),Ee)),Ee)))),Z),Z)}return Rn(mt(t.createYieldExpression(void 0,qt(Z.expression?rt(Z.expression,V,ht):t.createVoidZero())),Z),Z)}return Pr(Z,V,e)}function Je(Z){return T&2&&T&1?t.updateReturnStatement(Z,qt(Z.expression?rt(Z.expression,V,ht):t.createVoidZero())):Pr(Z,V,e)}function ye(Z){if(T&2){let Ee=Tz(Z);return Ee.kind===251&&Ee.awaitModifier?fr(Ee,Z):t.restoreEnclosingLabel(rt(Ee,V,Ei,t.liftToBlock),Z)}return Pr(Z,V,e)}function ee(Z){let Ee,et=[];for(let at of Z)if(at.kind===306){Ee&&(et.push(t.createObjectLiteralExpression(Ee)),Ee=void 0);let Pt=at.expression;et.push(rt(Pt,V,ht))}else Ee=Fr(Ee,at.kind===304?t.createPropertyAssignment(at.name,rt(at.initializer,V,ht)):rt(at,V,Xh));return Ee&&et.push(t.createObjectLiteralExpression(Ee)),et}function ge(Z){if(Z.transformFlags&65536){let Ee=ee(Z.properties);Ee.length&&Ee[0].kind!==211&&Ee.unshift(t.createObjectLiteralExpression());let et=Ee[0];if(Ee.length>1){for(let at=1;at<Ee.length;at++)et=n().createAssignHelper([et,Ee[at]]);return et}else return n().createAssignHelper(Ee)}return Pr(Z,V,e)}function ke(Z){return Pr(Z,ce,e)}function Oe(Z,Ee){return Pr(Z,Ee?ce:V,e)}function nt(Z){let Ee=X(2,_z(Z,p)?0:1);h=!1;let et=Pr(Z,V,e),at=Qi(et.statements,F&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(F))]),Pt=t.updateSourceFile(et,mt(t.createNodeArray(at),Z.statements));return U(Ee),Pt}function ae(Z){return $U(e,Z,V,E,_e,0)}function Ue(Z,Ee){return Yy(Z)&&T4(Z.left)?Nk(Z,V,e,1,!Ee):Z.operatorToken.kind===28?t.updateBinaryExpression(Z,rt(Z.left,ce,ht),Z.operatorToken,rt(Z.right,Ee?ce:V,ht)):Pr(Z,V,e)}function te(Z,Ee){if(Ee)return Pr(Z,ce,e);let et;for(let Pt=0;Pt<Z.elements.length;Pt++){let Le=Z.elements[Pt],kt=rt(Le,Pt<Z.elements.length-1?ce:V,ht);(et||kt!==Le)&&(et||(et=Z.elements.slice(0,Pt)),et.push(kt))}let at=et?mt(t.createNodeArray(et),Z.elements):Z.elements;return t.updateCommaListExpression(Z,at)}function Ne(Z){if(Z.variableDeclaration&&Ls(Z.variableDeclaration.name)&&Z.variableDeclaration.name.transformFlags&65536){let Ee=t.getGeneratedNameForNode(Z.variableDeclaration.name),et=t.updateVariableDeclaration(Z.variableDeclaration,Z.variableDeclaration.name,void 0,void 0,Ee),at=$S(et,V,e,1),Pt=rt(Z.block,V,Bs);return _t(at)&&(Pt=t.updateBlock(Pt,[t.createVariableStatement(void 0,at),...Pt.statements])),t.updateCatchClause(Z,t.updateVariableDeclaration(Z.variableDeclaration,Ee,void 0,void 0,void 0),Pt)}return Pr(Z,V,e)}function Ie(Z){if(ri(Z,32)){let Ee=h;h=!0;let et=Pr(Z,V,e);return h=Ee,et}return Pr(Z,V,e)}function xe(Z){if(h){let Ee=h;h=!1;let et=Qe(Z,!0);return h=Ee,et}return Qe(Z,!1)}function Qe(Z,Ee){return Ls(Z.name)&&Z.name.transformFlags&65536?$S(Z,V,e,1,void 0,Ee):Pr(Z,V,e)}function St(Z){return t.updateForStatement(Z,rt(Z.initializer,ce,E_),rt(Z.condition,V,ht),rt(Z.incrementor,ce,ht),Ap(Z.statement,V,e))}function Bt(Z){return Pr(Z,ce,e)}function fr(Z,Ee){let et=X(0,2);(Z.initializer.transformFlags&65536||WP(Z.initializer)&&T4(Z.initializer))&&(Z=Mr(Z));let at=Z.awaitModifier?Hr(Z,Ee,et):t.restoreEnclosingLabel(Pr(Z,V,e),Ee);return U(et),at}function Mr(Z){let Ee=Qa(Z.initializer);if(lu(Ee)||WP(Ee)){let et,at,Pt=t.createTempVariable(void 0),Le=[EJ(t,Ee,Pt)];return Bs(Z.statement)?(Gn(Le,Z.statement.statements),et=Z.statement,at=Z.statement.statements):Z.statement&&(Fr(Le,Z.statement),et=Z.statement,at=Z.statement),t.updateForOfStatement(Z,Z.awaitModifier,mt(t.createVariableDeclarationList([mt(t.createVariableDeclaration(Pt),Z.initializer)],1),Z.initializer),Z.expression,mt(t.createBlock(mt(t.createNodeArray(Le),at),!0),et))}return Z}function ft(Z,Ee,et){let at=t.createTempVariable(o),Pt=t.createAssignment(at,Ee),Le=t.createExpressionStatement(Pt);Ia(Le,Z.expression);let kt=t.createAssignment(et,t.createFalse()),Tt=t.createExpressionStatement(kt);Ia(Tt,Z.expression);let Rt=[Le,Tt],Ye=EJ(t,Z.initializer,at);Rt.push(rt(Ye,V,Ei));let Gt,ln,Ae=Ap(Z.statement,V,e);return Bs(Ae)?(Gn(Rt,Ae.statements),Gt=Ae,ln=Ae.statements):Rt.push(Ae),mt(t.createBlock(mt(t.createNodeArray(Rt),ln),!0),Gt)}function qt(Z){return T&1?t.createYieldExpression(void 0,n().createAwaitHelper(Z)):t.createAwaitExpression(Z)}function Hr(Z,Ee,et){let at=rt(Z.expression,V,ht),Pt=Be(at)?t.getGeneratedNameForNode(at):t.createTempVariable(void 0),Le=Be(at)?t.getGeneratedNameForNode(Pt):t.createTempVariable(void 0),kt=t.createTempVariable(void 0),Tt=t.createTempVariable(o),Rt=t.createUniqueName("e"),Ye=t.getGeneratedNameForNode(Rt),Gt=t.createTempVariable(void 0),ln=mt(n().createAsyncValuesHelper(at),Z.expression),Ae=t.createCallExpression(t.createPropertyAccessExpression(Pt,"next"),void 0,[]),wt=t.createPropertyAccessExpression(Le,"done"),fe=t.createPropertyAccessExpression(Le,"value"),j=t.createFunctionCallCall(Gt,Pt,[]);o(Rt),o(Gt);let je=et&2?t.inlineExpressions([t.createAssignment(Rt,t.createVoidZero()),ln]):ln,q=yn(mt(t.createForStatement(yn(mt(t.createVariableDeclarationList([t.createVariableDeclaration(kt,void 0,void 0,t.createTrue()),mt(t.createVariableDeclaration(Pt,void 0,void 0,je),Z.expression),t.createVariableDeclaration(Le)]),Z.expression),4194304),t.inlineExpressions([t.createAssignment(Le,qt(Ae)),t.createAssignment(Tt,wt),t.createLogicalNot(Tt)]),t.createAssignment(kt,t.createTrue()),ft(Z,fe,kt)),Z),512);return Rn(q,Z),t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(q,Ee)]),t.createCatchClause(t.createVariableDeclaration(Ye),yn(t.createBlock([t.createExpressionStatement(t.createAssignment(Rt,t.createObjectLiteralExpression([t.createPropertyAssignment("error",Ye)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([yn(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(t.createLogicalNot(kt),t.createLogicalNot(Tt)),t.createAssignment(Gt,t.createPropertyAccessExpression(Pt,"return"))),t.createExpressionStatement(qt(j))),1)]),void 0,yn(t.createBlock([yn(t.createIfStatement(Rt,t.createThrowStatement(t.createPropertyAccessExpression(Rt,"error"))),1)]),1))]))}function bi(Z){return w.assertNode(Z,Gi),us(Z)}function us(Z){return x?.has(Z)?t.updateParameterDeclaration(Z,void 0,Z.dotDotDotToken,Ls(Z.name)?t.getGeneratedNameForNode(Z):Z.name,void 0,void 0,void 0):Z.transformFlags&65536?t.updateParameterDeclaration(Z,void 0,Z.dotDotDotToken,t.getGeneratedNameForNode(Z),void 0,void 0,rt(Z.initializer,V,ht)):Pr(Z,V,e)}function At(Z){let Ee;for(let et of Z.parameters)Ee?Ee.add(et):et.transformFlags&65536&&(Ee=new Set);return Ee}function Un(Z){let Ee=T,et=x;T=Yc(Z),x=At(Z);let at=t.updateConstructorDeclaration(Z,Z.modifiers,wc(Z.parameters,bi,e),Xn(Z));return T=Ee,x=et,at}function rs(Z){let Ee=T,et=x;T=Yc(Z),x=At(Z);let at=t.updateGetAccessorDeclaration(Z,Z.modifiers,rt(Z.name,V,ol),wc(Z.parameters,bi,e),void 0,Xn(Z));return T=Ee,x=et,at}function zn(Z){let Ee=T,et=x;T=Yc(Z),x=At(Z);let at=t.updateSetAccessorDeclaration(Z,Z.modifiers,rt(Z.name,V,ol),wc(Z.parameters,bi,e),Xn(Z));return T=Ee,x=et,at}function Sn(Z){let Ee=T,et=x;T=Yc(Z),x=At(Z);let at=t.updateMethodDeclaration(Z,T&1?Br(Z.modifiers,oe,tc):Z.modifiers,T&2?void 0:Z.asteriskToken,rt(Z.name,V,ol),rt(void 0,V,Db),void 0,T&2&&T&1?ar(Z):wc(Z.parameters,bi,e),void 0,T&2&&T&1?tn(Z):Xn(Z));return T=Ee,x=et,at}function _i(Z){let Ee=T,et=x;T=Yc(Z),x=At(Z);let at=t.updateFunctionDeclaration(Z,T&1?Br(Z.modifiers,oe,la):Z.modifiers,T&2?void 0:Z.asteriskToken,Z.name,void 0,T&2&&T&1?ar(Z):wc(Z.parameters,bi,e),void 0,T&2&&T&1?tn(Z):Xn(Z));return T=Ee,x=et,at}function qe(Z){let Ee=T,et=x;T=Yc(Z),x=At(Z);let at=t.updateArrowFunction(Z,Z.modifiers,void 0,wc(Z.parameters,bi,e),void 0,Z.equalsGreaterThanToken,Xn(Z));return T=Ee,x=et,at}function bt(Z){let Ee=T,et=x;T=Yc(Z),x=At(Z);let at=t.updateFunctionExpression(Z,T&1?Br(Z.modifiers,oe,la):Z.modifiers,T&2?void 0:Z.asteriskToken,Z.name,void 0,T&2&&T&1?ar(Z):wc(Z.parameters,bi,e),void 0,T&2&&T&1?tn(Z):Xn(Z));return T=Ee,x=et,at}function ar(Z){if(z4(Z.parameters))return wc(Z.parameters,V,e);let Ee=[];for(let at of Z.parameters){if(at.initializer||at.dotDotDotToken)break;let Pt=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(at.name,8));Ee.push(Pt)}let et=t.createNodeArray(Ee);return mt(et,Z.parameters),et}function tn(Z){let Ee=z4(Z.parameters)?void 0:wc(Z.parameters,V,e);i();let et=O,at=W;O=new Set,W=!1;let Pt=[],Le=t.updateBlock(Z.body,Br(Z.body.statements,V,Ei));Le=t.updateBlock(Le,t.mergeLexicalEnvironment(Le.statements,ei(s(),Z)));let kt=t.createReturnStatement(n().createAsyncGeneratorHelper(t.createFunctionExpression(void 0,t.createToken(42),Z.name&&t.getGeneratedNameForNode(Z.name),void 0,Ee??[],void 0,Le),!!(P&1))),Tt=u>=2&&(c.hasNodeCheckFlag(Z,256)||c.hasNodeCheckFlag(Z,128));if(Tt){Mi();let Ye=_j(t,c,Z,O);z[qa(Ye)]=!0,lh(Pt,[Ye])}Pt.push(kt);let Rt=t.updateBlock(Z.body,Pt);return Tt&&W&&(c.hasNodeCheckFlag(Z,256)?O2(Rt,i7):c.hasNodeCheckFlag(Z,128)&&O2(Rt,n7)),O=et,W=at,Rt}function Xn(Z){i();let Ee=0,et=[],at=rt(Z.body,V,dF)??t.createBlock([]);Bs(at)&&(Ee=t.copyPrologue(at.statements,et,!1,V)),Gn(et,ei(void 0,Z));let Pt=s();if(Ee>0||_t(et)||_t(Pt)){let Le=t.converters.convertToFunctionBlock(at,!0);return lh(et,Pt),Gn(et,Le.statements.slice(Ee)),t.updateBlock(Le,mt(t.createNodeArray(et),Le.statements))}return at}function ei(Z,Ee){let et=!1;for(let at of Ee.parameters)if(et){if(Ls(at.name)){if(at.name.elements.length>0){let Pt=$S(at,V,e,0,t.getGeneratedNameForNode(at));if(_t(Pt)){let Le=t.createVariableDeclarationList(Pt),kt=t.createVariableStatement(void 0,Le);yn(kt,2097152),Z=Fr(Z,kt)}}else if(at.initializer){let Pt=t.getGeneratedNameForNode(at),Le=rt(at.initializer,V,ht),kt=t.createAssignment(Pt,Le),Tt=t.createExpressionStatement(kt);yn(Tt,2097152),Z=Fr(Z,Tt)}}else if(at.initializer){let Pt=t.cloneNode(at.name);mt(Pt,at.name),yn(Pt,96);let Le=rt(at.initializer,V,ht);qm(Le,3168);let kt=t.createAssignment(Pt,Le);mt(kt,at),yn(kt,3072);let Tt=t.createBlock([t.createExpressionStatement(kt)]);mt(Tt,at),yn(Tt,3905);let Rt=t.createTypeCheck(t.cloneNode(at.name),"undefined"),Ye=t.createIfStatement(Rt,Tt);Yu(Ye),mt(Ye,at),yn(Ye,2101056),Z=Fr(Z,Ye)}}else if(at.transformFlags&65536){et=!0;let Pt=$S(at,V,e,1,t.getGeneratedNameForNode(at),!1,!0);if(_t(Pt)){let Le=t.createVariableDeclarationList(Pt),kt=t.createVariableStatement(void 0,Le);yn(kt,2097152),Z=Fr(Z,kt)}}return Z}function Mi(){(S&1)===0&&(S|=1,e.enableSubstitution(214),e.enableSubstitution(212),e.enableSubstitution(213),e.enableEmitNotification(264),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(177),e.enableEmitNotification(244))}function js(Z,Ee,et){if(S&1&&se(Ee)){let at=(c.hasNodeCheckFlag(Ee,128)?128:0)|(c.hasNodeCheckFlag(Ee,256)?256:0);if(at!==I){let Pt=I;I=at,g(Z,Ee,et),I=Pt;return}}else if(S&&z[qa(Ee)]){let at=I;I=0,g(Z,Ee,et),I=at;return}g(Z,Ee,et)}function oa(Z,Ee){return Ee=d(Z,Ee),Z===1&&I?wr(Ee):Ee}function wr(Z){switch(Z.kind){case 212:return Ds(Z);case 213:return tt(Z);case 214:return Mt(Z)}return Z}function Ds(Z){return Z.expression.kind===108?mt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),Z.name),Z):Z}function tt(Z){return Z.expression.kind===108?pt(Z.argumentExpression,Z):Z}function Mt(Z){let Ee=Z.expression;if(of(Ee)){let et=Ln(Ee)?Ds(Ee):tt(Ee);return t.createCallExpression(t.createPropertyAccessExpression(et,"call"),void 0,[t.createThis(),...Z.arguments])}return Z}function se(Z){let Ee=Z.kind;return Ee===264||Ee===177||Ee===175||Ee===178||Ee===179}function pt(Z,Ee){return I&256?mt(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[Z]),"value"),Ee):mt(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[Z]),Ee)}}function Eae(e){let t=e.factory;return pm(e,n);function n(o){return o.isDeclarationFile?o:Pr(o,i,e)}function i(o){return(o.transformFlags&64)===0?o:o.kind===300?s(o):Pr(o,i,e)}function s(o){return o.variableDeclaration?Pr(o,i,e):t.updateCatchClause(o,t.createVariableDeclaration(t.createTempVariable(void 0)),rt(o.block,i,Bs))}}function Nae(e){let{factory:t,hoistVariableDeclaration:n}=e;return pm(e,i);function i(x){return x.isDeclarationFile?x:Pr(x,s,e)}function s(x){if((x.transformFlags&32)===0)return x;switch(x.kind){case 214:{let I=u(x,!1);return w.assertNotNode(I,q2),I}case 212:case 213:if($u(x)){let I=d(x,!1,!1);return w.assertNotNode(I,q2),I}return Pr(x,s,e);case 227:return x.operatorToken.kind===61?S(x):Pr(x,s,e);case 221:return T(x);default:return Pr(x,s,e)}}function o(x){w.assertNotNode(x,cF);let I=[x];for(;!x.questionDotToken&&!U0(x);)x=Zs(Md(x.expression),$u),w.assertNotNode(x,cF),I.unshift(x);return{expression:x.expression,chain:I}}function c(x,I,P){let E=g(x.expression,I,P);return q2(E)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(x,E.expression),E.thisArg):t.updateParenthesizedExpression(x,E)}function p(x,I,P){if($u(x))return d(x,I,P);let E=rt(x.expression,s,ht);w.assertNotNode(E,q2);let F;return I&&(qS(E)?F=E:(F=t.createTempVariable(n),E=t.createAssignment(F,E))),E=x.kind===212?t.updatePropertyAccessExpression(x,E,rt(x.name,s,Be)):t.updateElementAccessExpression(x,E,rt(x.argumentExpression,s,ht)),F?t.createSyntheticReferenceExpression(E,F):E}function u(x,I){if($u(x))return d(x,I,!1);if(Pp(x.expression)&&$u(Qa(x.expression))){let P=c(x.expression,!0,!1),E=Br(x.arguments,s,ht);return q2(P)?mt(t.createFunctionCallCall(P.expression,P.thisArg,E),x):t.updateCallExpression(x,P,void 0,E)}return Pr(x,s,e)}function g(x,I,P){switch(x.kind){case 218:return c(x,I,P);case 212:case 213:return p(x,I,P);case 214:return u(x,I);default:return rt(x,s,ht)}}function d(x,I,P){let{expression:E,chain:F}=o(x),O=g(Md(E),qT(F[0]),!1),W=q2(O)?O.thisArg:void 0,z=q2(O)?O.expression:O,$=t.restoreOuterExpressions(E,z,8);qS(z)||(z=t.createTempVariable(n),$=t.createAssignment(z,$));let X=z,U;for(let re=0;re<F.length;re++){let V=F[re];switch(V.kind){case 212:case 213:re===F.length-1&&I&&(qS(X)?U=X:(U=t.createTempVariable(n),X=t.createAssignment(U,X))),X=V.kind===212?t.createPropertyAccessExpression(X,rt(V.name,s,Be)):t.createElementAccessExpression(X,rt(V.argumentExpression,s,ht));break;case 214:re===0&&W?(ec(W)||(W=t.cloneNode(W),qm(W,3072)),X=t.createFunctionCallCall(X,W.kind===108?t.createThis():W,Br(V.arguments,s,ht))):X=t.createCallExpression(X,void 0,Br(V.arguments,s,ht));break}Rn(X,V)}let _e=P?t.createConditionalExpression(h($,z,!0),void 0,t.createTrue(),void 0,t.createDeleteExpression(X)):t.createConditionalExpression(h($,z,!0),void 0,t.createVoidZero(),void 0,X);return mt(_e,x),U?t.createSyntheticReferenceExpression(_e,U):_e}function h(x,I,P){return t.createBinaryExpression(t.createBinaryExpression(x,t.createToken(P?37:38),t.createNull()),t.createToken(P?57:56),t.createBinaryExpression(I,t.createToken(P?37:38),t.createVoidZero()))}function S(x){let I=rt(x.left,s,ht),P=I;return qS(I)||(P=t.createTempVariable(n),I=t.createAssignment(P,I)),mt(t.createConditionalExpression(h(I,P),void 0,P,void 0,rt(x.right,s,ht)),x)}function T(x){return $u(Qa(x.expression))?Rn(g(x.expression,!1,!0),x):t.updateDeleteExpression(x,rt(x.expression,s,ht))}}function Mae(e){let{hoistVariableDeclaration:t,factory:n}=e;return pm(e,i);function i(c){return c.isDeclarationFile?c:Pr(c,s,e)}function s(c){return(c.transformFlags&16)===0?c:sG(c)?o(c):Pr(c,s,e)}function o(c){let p=c.operatorToken,u=uE(p.kind),g=Qa(rt(c.left,s,Jp)),d=g,h=Qa(rt(c.right,s,ht));if(Oo(g)){let S=qS(g.expression),T=S?g.expression:n.createTempVariable(t),x=S?g.expression:n.createAssignment(T,g.expression);if(Ln(g))d=n.createPropertyAccessExpression(T,g.name),g=n.createPropertyAccessExpression(x,g.name);else{let I=qS(g.argumentExpression),P=I?g.argumentExpression:n.createTempVariable(t);d=n.createElementAccessExpression(T,P),g=n.createElementAccessExpression(x,I?g.argumentExpression:n.createAssignment(P,g.argumentExpression))}}return n.createBinaryExpression(g,u,n.createParenthesizedExpression(n.createAssignment(d,h)))}}function Rae(e){let{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:i,startLexicalEnvironment:s,endLexicalEnvironment:o}=e,c,p,u,g;return pm(e,d);function d(le){if(le.isDeclarationFile)return le;let de=rt(le,h,Li);return vh(de,e.readEmitHelpers()),p=void 0,c=void 0,u=void 0,de}function h(le){if((le.transformFlags&4)===0)return le;switch(le.kind){case 308:return S(le);case 242:return T(le);case 249:return x(le);case 251:return I(le);case 256:return E(le);default:return Pr(le,h,e)}}function S(le){let de=HU(le.statements);if(de){s(),c=new FI,p=[];let ve=mTe(le.statements),H=[];Gn(H,oE(le.statements,h,Ei,0,ve));let Se=ve;for(;Se<le.statements.length;){let ee=le.statements[Se];if(Fae(ee)!==0){Se>ve&&Gn(H,Br(le.statements,h,Ei,ve,Se-ve));break}Se++}w.assert(Se<le.statements.length,"Should have encountered at least one 'using' statement.");let Je=ce(),ye=F(le.statements,Se,le.statements.length,Je,H);return c.size&&Fr(H,t.createExportDeclaration(void 0,!1,t.createNamedExports(ds(c.values())))),Gn(H,o()),p.length&&H.push(t.createVariableStatement(t.createModifiersFromModifierFlags(32),t.createVariableDeclarationList(p,1))),Gn(H,oe(ye,Je,de===2)),g&&H.push(t.createExportAssignment(void 0,!0,g)),t.updateSourceFile(le,H)}return Pr(le,h,e)}function T(le){let de=HU(le.statements);if(de){let ve=mTe(le.statements),H=ce();return t.updateBlock(le,[...oE(le.statements,h,Ei,0,ve),...oe(F(le.statements,ve,le.statements.length,H,void 0),H,de===2)])}return Pr(le,h,e)}function x(le){return le.initializer&&gTe(le.initializer)?rt(t.createBlock([t.createVariableStatement(void 0,le.initializer),t.updateForStatement(le,void 0,le.condition,le.incrementor,le.statement)]),h,Ei):Pr(le,h,e)}function I(le){if(gTe(le.initializer)){let de=le.initializer,ve=_l(de.declarations)||t.createVariableDeclaration(t.createTempVariable(void 0)),H=Oae(de)===2,Se=t.getGeneratedNameForNode(ve.name),Je=t.updateVariableDeclaration(ve,ve.name,void 0,void 0,Se),ye=t.createVariableDeclarationList([Je],H?6:4),ee=t.createVariableStatement(void 0,ye);return rt(t.updateForOfStatement(le,le.awaitModifier,t.createVariableDeclarationList([t.createVariableDeclaration(Se)],2),le.expression,Bs(le.statement)?t.updateBlock(le.statement,[ee,...le.statement.statements]):t.createBlock([ee,le.statement],!0)),h,Ei)}return Pr(le,h,e)}function P(le,de){return HU(le.statements)!==0?vI(le)?t.updateCaseClause(le,rt(le.expression,h,ht),F(le.statements,0,le.statements.length,de,void 0)):t.updateDefaultClause(le,F(le.statements,0,le.statements.length,de,void 0)):Pr(le,h,e)}function E(le){let de=YJe(le.caseBlock.clauses);if(de){let ve=ce();return oe([t.updateSwitchStatement(le,rt(le.expression,h,ht),t.updateCaseBlock(le.caseBlock,le.caseBlock.clauses.map(H=>P(H,ve))))],ve,de===2)}return Pr(le,h,e)}function F(le,de,ve,H,Se){let Je=[];for(let ge=de;ge<ve;ge++){let ke=le[ge],Oe=Fae(ke);if(Oe){w.assertNode(ke,Qc);let ae=[];for(let Ue of ke.declarationList.declarations){if(!Be(Ue.name)){ae.length=0;break}Cf(Ue)&&(Ue=Ef(e,Ue));let te=rt(Ue.initializer,h,ht)??t.createVoidZero();ae.push(t.updateVariableDeclaration(Ue,Ue.name,void 0,void 0,n().createAddDisposableResourceHelper(H,te,Oe===2)))}if(ae.length){let Ue=t.createVariableDeclarationList(ae,2);Rn(Ue,ke.declarationList),mt(Ue,ke.declarationList),ye(t.updateVariableStatement(ke,void 0,Ue));continue}}let nt=h(ke);gs(nt)?nt.forEach(ye):nt&&ye(nt)}return Je;function ye(ge){w.assertNode(ge,Ei),Fr(Je,ee(ge))}function ee(ge){if(!Se)return ge;switch(ge.kind){case 273:case 272:case 279:case 263:return O(ge,Se);case 278:return W(ge);case 264:return X(ge);case 244:return U(ge)}return ge}}function O(le,de){de.push(le)}function W(le){return le.isExportEquals?$(le):z(le)}function z(le){if(u)return le;u=t.createUniqueName("_default",56),V(u,!0,"default",le);let de=le.expression,ve=Nc(de);Cf(ve)&&(ve=Ef(e,ve,!1,"default"),de=t.restoreOuterExpressions(de,ve));let H=t.createAssignment(u,de);return t.createExpressionStatement(H)}function $(le){if(g)return le;g=t.createUniqueName("_default",56),i(g);let de=t.createAssignment(g,le.expression);return t.createExpressionStatement(de)}function X(le){if(!le.name&&u)return le;let de=ri(le,32),ve=ri(le,2048),H=t.converters.convertToClassExpression(le);return le.name&&(V(t.getLocalName(le),de&&!ve,void 0,le),H=t.createAssignment(t.getDeclarationName(le),H),Cf(H)&&(H=Ef(e,H,!1)),Rn(H,le),Ia(H,le),gl(H,le)),ve&&!u&&(u=t.createUniqueName("_default",56),V(u,!0,"default",le),H=t.createAssignment(u,H),Cf(H)&&(H=Ef(e,H,!1,"default")),Rn(H,le)),t.createExpressionStatement(H)}function U(le){let de,ve=ri(le,32);for(let H of le.declarationList.declarations)re(H,ve,H),H.initializer&&(de=Fr(de,_e(H)));if(de){let H=t.createExpressionStatement(t.inlineExpressions(de));return Rn(H,le),gl(H,le),Ia(H,le),H}}function _e(le){w.assertIsDefined(le.initializer);let de;Be(le.name)?(de=t.cloneNode(le.name),yn(de,Oa(de)&-114689)):de=t.converters.convertToAssignmentPattern(le.name);let ve=t.createAssignment(de,le.initializer);return Rn(ve,le),gl(ve,le),Ia(ve,le),ve}function re(le,de,ve){if(Ls(le.name))for(let H of le.name.elements)Fl(H)||re(H,de,ve);else V(le.name,de,void 0,ve)}function V(le,de,ve,H){let Se=ec(le)?le:t.cloneNode(le);if(de){if(ve===void 0&&!cy(Se)){let ge=t.createVariableDeclaration(Se);H&&Rn(ge,H),p.push(ge);return}let Je=ve!==void 0?Se:void 0,ye=ve!==void 0?ve:Se,ee=t.createExportSpecifier(!1,Je,ye);H&&Rn(ee,H),c.set(Se,ee)}i(Se)}function ce(){return t.createUniqueName("env")}function oe(le,de,ve){let H=[],Se=t.createObjectLiteralExpression([t.createPropertyAssignment("stack",t.createArrayLiteralExpression()),t.createPropertyAssignment("error",t.createVoidZero()),t.createPropertyAssignment("hasError",t.createFalse())]),Je=t.createVariableDeclaration(de,void 0,void 0,Se),ye=t.createVariableDeclarationList([Je],2),ee=t.createVariableStatement(void 0,ye);H.push(ee);let ge=t.createBlock(le,!0),ke=t.createUniqueName("e"),Oe=t.createCatchClause(ke,t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(de,"error"),ke)),t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(de,"hasError"),t.createTrue()))],!0)),nt;if(ve){let Ue=t.createUniqueName("result");nt=t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Ue,void 0,void 0,n().createDisposeResourcesHelper(de))],2)),t.createIfStatement(Ue,t.createExpressionStatement(t.createAwaitExpression(Ue)))],!0)}else nt=t.createBlock([t.createExpressionStatement(n().createDisposeResourcesHelper(de))],!0);let ae=t.createTryStatement(ge,Oe,nt);return H.push(ae),H}}function mTe(e){for(let t=0;t<e.length;t++)if(!Lm(e[t])&&!ZM(e[t]))return t;return 0}function gTe(e){return lu(e)&&Oae(e)!==0}function Oae(e){return(e.flags&7)===6?2:(e.flags&7)===4?1:0}function XJe(e){return Oae(e.declarationList)}function Fae(e){return Qc(e)?XJe(e):0}function HU(e){let t=0;for(let n of e){let i=Fae(n);if(i===2)return 2;i>t&&(t=i)}return t}function YJe(e){let t=0;for(let n of e){let i=HU(n.statements);if(i===2)return 2;i>t&&(t=i)}return t}function jae(e){let{factory:t,getEmitHelperFactory:n}=e,i=e.getCompilerOptions(),s,o;return pm(e,h);function c(){if(o.filenameDeclaration)return o.filenameDeclaration.name;let ae=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(s.fileName));return o.filenameDeclaration=ae,o.filenameDeclaration.name}function p(ae){return i.jsx===5?"jsxDEV":ae?"jsxs":"jsx"}function u(ae){let Ue=p(ae);return d(Ue)}function g(){return d("Fragment")}function d(ae){var Ue,te;let Ne=ae==="createElement"?o.importSpecifier:N8(o.importSpecifier,i),Ie=(te=(Ue=o.utilizedImplicitRuntimeImports)==null?void 0:Ue.get(Ne))==null?void 0:te.get(ae);if(Ie)return Ie.name;o.utilizedImplicitRuntimeImports||(o.utilizedImplicitRuntimeImports=new Map);let xe=o.utilizedImplicitRuntimeImports.get(Ne);xe||(xe=new Map,o.utilizedImplicitRuntimeImports.set(Ne,xe));let Qe=t.createUniqueName(`_${ae}`,112),St=t.createImportSpecifier(!1,t.createIdentifier(ae),Qe);return tie(Qe,St),xe.set(ae,St),Qe}function h(ae){if(ae.isDeclarationFile)return ae;s=ae,o={},o.importSpecifier=J6(i,ae);let Ue=Pr(ae,S,e);vh(Ue,e.readEmitHelpers());let te=Ue.statements;if(o.filenameDeclaration&&(te=YT(te.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([o.filenameDeclaration],2)))),o.utilizedImplicitRuntimeImports){for(let[Ne,Ie]of ds(o.utilizedImplicitRuntimeImports.entries()))if(Pl(ae)){let xe=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamedImports(ds(Ie.values()))),t.createStringLiteral(Ne),void 0);z0(xe,!1),te=YT(te.slice(),xe)}else if(xf(ae)){let xe=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(ds(Ie.values(),Qe=>t.createBindingElement(void 0,Qe.propertyName,Qe.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(Ne)]))],2));z0(xe,!1),te=YT(te.slice(),xe)}}return te!==Ue.statements&&(Ue=t.updateSourceFile(Ue,te)),o=void 0,Ue}function S(ae){return ae.transformFlags&2?T(ae):ae}function T(ae){switch(ae.kind){case 285:return F(ae,!1);case 286:return O(ae,!1);case 289:return W(ae,!1);case 295:return nt(ae);default:return Pr(ae,S,e)}}function x(ae){switch(ae.kind){case 12:return Se(ae);case 295:return nt(ae);case 285:return F(ae,!0);case 286:return O(ae,!0);case 289:return W(ae,!0);default:return w.failBadSyntaxKind(ae)}}function I(ae){return ae.properties.some(Ue=>yl(Ue)&&(Be(Ue.name)&&Fn(Ue.name)==="__proto__"||ya(Ue.name)&&Ue.name.text==="__proto__"))}function P(ae){let Ue=!1;for(let te of ae.attributes.properties)if($2(te)&&(!Sa(te.expression)||te.expression.properties.some(Sh)))Ue=!0;else if(Ue&&Ym(te)&&Be(te.name)&&te.name.escapedText==="key")return!0;return!1}function E(ae){return o.importSpecifier===void 0||P(ae)}function F(ae,Ue){return(E(ae.openingElement)?_e:X)(ae.openingElement,ae.children,Ue,ae)}function O(ae,Ue){return(E(ae)?_e:X)(ae,void 0,Ue,ae)}function W(ae,Ue){return(o.importSpecifier===void 0?V:re)(ae.openingFragment,ae.children,Ue,ae)}function z(ae){let Ue=$(ae);return Ue&&t.createObjectLiteralExpression([Ue])}function $(ae){let Ue=Xw(ae);if(Dr(Ue)===1&&!Ue[0].dotDotDotToken){let Ne=x(Ue[0]);return Ne&&t.createPropertyAssignment("children",Ne)}let te=Ji(ae,x);return Dr(te)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(te)):void 0}function X(ae,Ue,te,Ne){let Ie=ke(ae),xe=Ue&&Ue.length?$(Ue):void 0,Qe=Bn(ae.attributes.properties,fr=>!!fr.name&&Be(fr.name)&&fr.name.escapedText==="key"),St=Qe?Mn(ae.attributes.properties,fr=>fr!==Qe):ae.attributes.properties,Bt=Dr(St)?oe(St,xe):t.createObjectLiteralExpression(xe?[xe]:Ke);return U(Ie,Bt,Qe,Ue||Ke,te,Ne)}function U(ae,Ue,te,Ne,Ie,xe){var Qe;let St=Xw(Ne),Bt=Dr(St)>1||!!((Qe=St[0])!=null&&Qe.dotDotDotToken),fr=[ae,Ue];if(te&&fr.push(H(te.initializer)),i.jsx===5){let ft=sc(s);if(ft&&Li(ft)){te===void 0&&fr.push(t.createVoidZero()),fr.push(Bt?t.createTrue():t.createFalse());let qt=Hs(ft,xe.pos);fr.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",c()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(qt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(qt.character+1))])),fr.push(t.createThis())}}let Mr=mt(t.createCallExpression(u(Bt),void 0,fr),xe);return Ie&&Yu(Mr),Mr}function _e(ae,Ue,te,Ne){let Ie=ke(ae),xe=ae.attributes.properties,Qe=Dr(xe)?oe(xe):t.createNull(),St=o.importSpecifier===void 0?AJ(t,e.getEmitResolver().getJsxFactoryEntity(s),i.reactNamespace,ae):d("createElement"),Bt=Oie(t,St,Ie,Qe,Ji(Ue,x),Ne);return te&&Yu(Bt),Bt}function re(ae,Ue,te,Ne){let Ie;if(Ue&&Ue.length){let xe=z(Ue);xe&&(Ie=xe)}return U(g(),Ie||t.createObjectLiteralExpression([]),void 0,Ue,te,Ne)}function V(ae,Ue,te,Ne){let Ie=Fie(t,e.getEmitResolver().getJsxFactoryEntity(s),e.getEmitResolver().getJsxFragmentFactoryEntity(s),i.reactNamespace,Ji(Ue,x),ae,Ne);return te&&Yu(Ie),Ie}function ce(ae){return Sa(ae.expression)&&!I(ae.expression)?fl(ae.expression.properties,Ue=>w.checkDefined(rt(Ue,S,Xh))):t.createSpreadAssignment(w.checkDefined(rt(ae.expression,S,ht)))}function oe(ae,Ue){let te=xa(i);return te&&te>=5?t.createObjectLiteralExpression(le(ae,Ue)):de(ae,Ue)}function le(ae,Ue){let te=ad(IW(ae,$2,(Ne,Ie)=>ad(kr(Ne,xe=>Ie?ce(xe):ve(xe)))));return Ue&&te.push(Ue),te}function de(ae,Ue){let te=[],Ne=[];for(let xe of ae){if($2(xe)){if(Sa(xe.expression)&&!I(xe.expression)){for(let Qe of xe.expression.properties){if(Sh(Qe)){Ie(),te.push(w.checkDefined(rt(Qe.expression,S,ht)));continue}Ne.push(w.checkDefined(rt(Qe,S)))}continue}Ie(),te.push(w.checkDefined(rt(xe.expression,S,ht)));continue}Ne.push(ve(xe))}return Ue&&Ne.push(Ue),Ie(),te.length&&!Sa(te[0])&&te.unshift(t.createObjectLiteralExpression()),eh(te)||n().createAssignHelper(te);function Ie(){Ne.length&&(te.push(t.createObjectLiteralExpression(Ne)),Ne=[])}}function ve(ae){let Ue=Oe(ae),te=H(ae.initializer);return t.createPropertyAssignment(Ue,te)}function H(ae){if(ae===void 0)return t.createTrue();if(ae.kind===11){let Ue=ae.singleQuote!==void 0?ae.singleQuote:!QF(ae,s),te=t.createStringLiteral(ge(ae.text)||ae.text,Ue);return mt(te,ae)}return ae.kind===295?ae.expression===void 0?t.createTrue():w.checkDefined(rt(ae.expression,S,ht)):Xm(ae)?F(ae,!1):kk(ae)?O(ae,!1):Q0(ae)?W(ae,!1):w.failBadSyntaxKind(ae)}function Se(ae){let Ue=Je(ae.text);return Ue===void 0?void 0:t.createStringLiteral(Ue)}function Je(ae){let Ue,te=0,Ne=-1;for(let Ie=0;Ie<ae.length;Ie++){let xe=ae.charCodeAt(Ie);qu(xe)?(te!==-1&&Ne!==-1&&(Ue=ye(Ue,ae.substr(te,Ne-te+1))),te=-1):Rm(xe)||(Ne=Ie,te===-1&&(te=Ie))}return te!==-1?ye(Ue,ae.substr(te)):Ue}function ye(ae,Ue){let te=ee(Ue);return ae===void 0?te:ae+" "+te}function ee(ae){return ae.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(Ue,te,Ne,Ie,xe,Qe,St)=>{if(xe)return PP(parseInt(xe,10));if(Qe)return PP(parseInt(Qe,16));{let Bt=ZJe.get(St);return Bt?PP(Bt):Ue}})}function ge(ae){let Ue=ee(ae);return Ue===ae?void 0:Ue}function ke(ae){if(ae.kind===285)return ke(ae.openingElement);{let Ue=ae.tagName;return Be(Ue)&&Yw(Ue.escapedText)?t.createStringLiteral(Fn(Ue)):lm(Ue)?t.createStringLiteral(Fn(Ue.namespace)+":"+Fn(Ue.name)):m4(t,Ue)}}function Oe(ae){let Ue=ae.name;if(Be(Ue)){let te=Fn(Ue);return/^[A-Z_]\w*$/i.test(te)?Ue:t.createStringLiteral(te)}return t.createStringLiteral(Fn(Ue.namespace)+":"+Fn(Ue.name))}function nt(ae){let Ue=rt(ae.expression,S,ht);return ae.dotDotDotToken?t.createSpreadElement(Ue):Ue}}var ZJe=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}));function Lae(e){let{factory:t,hoistVariableDeclaration:n}=e;return pm(e,i);function i(u){return u.isDeclarationFile?u:Pr(u,s,e)}function s(u){return(u.transformFlags&512)===0?u:u.kind===227?o(u):Pr(u,s,e)}function o(u){switch(u.operatorToken.kind){case 68:return c(u);case 43:return p(u);default:return Pr(u,s,e)}}function c(u){let g,d,h=rt(u.left,s,ht),S=rt(u.right,s,ht);if(xo(h)){let T=t.createTempVariable(n),x=t.createTempVariable(n);g=mt(t.createElementAccessExpression(mt(t.createAssignment(T,h.expression),h.expression),mt(t.createAssignment(x,h.argumentExpression),h.argumentExpression)),h),d=mt(t.createElementAccessExpression(T,x),h)}else if(Ln(h)){let T=t.createTempVariable(n);g=mt(t.createPropertyAccessExpression(mt(t.createAssignment(T,h.expression),h.expression),h.name),h),d=mt(t.createPropertyAccessExpression(T,h.name),h)}else g=h,d=h;return mt(t.createAssignment(g,mt(t.createGlobalMethodCall("Math","pow",[d,S]),u)),u)}function p(u){let g=rt(u.left,s,ht),d=rt(u.right,s,ht);return mt(t.createGlobalMethodCall("Math","pow",[g,d]),u)}}function hTe(e,t){return{kind:e,expression:t}}function Wae(e){let{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,resumeLexicalEnvironment:s,endLexicalEnvironment:o,hoistVariableDeclaration:c}=e,p=e.getCompilerOptions(),u=e.getEmitResolver(),g=e.onSubstituteNode,d=e.onEmitNode;e.onEmitNode=Zl,e.onSubstituteNode=U_;let h,S,T,x;function I(ne){x=Fr(x,t.createVariableDeclaration(ne))}let P,E=0;return pm(e,F);function F(ne){if(ne.isDeclarationFile)return ne;h=ne,S=ne.text;let ot=oe(ne);return vh(ot,e.readEmitHelpers()),h=void 0,S=void 0,x=void 0,T=0,ot}function O(ne,ot){let Kt=T;return T=(T&~ne|ot)&32767,Kt}function W(ne,ot,Kt){T=(T&~ot|Kt)&-32768|ne}function z(ne){return(T&8192)!==0&&ne.kind===254&&!ne.expression}function $(ne){return ne.transformFlags&4194304&&(Qf(ne)||q0(ne)||vie(ne)||UA(ne)||VA(ne)||vI(ne)||qA(ne)||Sk(ne)||GS(ne)||Eb(ne)||fb(ne,!1)||Bs(ne))}function X(ne){return(ne.transformFlags&1024)!==0||P!==void 0||T&8192&&$(ne)||fb(ne,!1)&&Ki(ne)||(Rd(ne)&1)!==0}function U(ne){return X(ne)?ce(ne,!1):ne}function _e(ne){return X(ne)?ce(ne,!0):ne}function re(ne){if(X(ne)){let ot=sc(ne);if(hs(ot)&&Cl(ot)){let Kt=O(32670,16449),er=ce(ne,!1);return W(Kt,229376,0),er}return ce(ne,!1)}return ne}function V(ne){return ne.kind===108?Xf(ne,!0):U(ne)}function ce(ne,ot){switch(ne.kind){case 126:return;case 264:return ke(ne);case 232:return Oe(ne);case 170:return oa(ne);case 263:return Gt(ne);case 220:return Rt(ne);case 219:return Ye(ne);case 261:return jr(ne);case 80:return ee(ne);case 262:return Ce(ne);case 256:return le(ne);case 270:return de(ne);case 242:return wt(ne,!1);case 253:case 252:return ge(ne);case 257:return It(ne);case 247:case 248:return hr(ne,void 0);case 249:return ur(ne,void 0);case 250:return mr(ne,void 0);case 251:return Tr(ne,void 0);case 245:return fe(ne);case 211:return qs(ne);case 300:return Di(ne);case 305:return Xo(ne);case 168:return ul(ne);case 210:return Eo(ne);case 214:return Uc(ne);case 215:return Kf(ne);case 218:return j(ne,ot);case 227:return je(ne,ot);case 357:return q(ne,ot);case 15:case 16:case 17:case 18:return La(ne);case 11:return Ca(ne);case 9:return bl(ne);case 216:return zo(ne);case 229:return bc(ne);case 230:return Kc(ne);case 231:return ja(ne);case 108:return Xf(ne,!1);case 110:return Je(ne);case 237:return fu(ne);case 175:return so(ne);case 178:case 179:return ua(ne);case 244:return jt(ne);case 254:return Se(ne);case 223:return ye(ne);default:return Pr(ne,U,e)}}function oe(ne){let ot=O(8064,64),Kt=[],er=[];i();let Ar=t.copyPrologue(ne.statements,Kt,!1,U);return Gn(er,Br(ne.statements,U,Ei,Ar)),x&&er.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(x))),t.mergeLexicalEnvironment(Kt,o()),Z(Kt,ne),W(ot,0,0),t.updateSourceFile(ne,mt(t.createNodeArray(Qi(Kt,er)),ne.statements))}function le(ne){if(P!==void 0){let ot=P.allowedNonLabeledJumps;P.allowedNonLabeledJumps|=2;let Kt=Pr(ne,U,e);return P.allowedNonLabeledJumps=ot,Kt}return Pr(ne,U,e)}function de(ne){let ot=O(7104,0),Kt=Pr(ne,U,e);return W(ot,0,0),Kt}function ve(ne){return Rn(t.createReturnStatement(H()),ne)}function H(){return t.createUniqueName("_this",48)}function Se(ne){return P?(P.nonLocalJumps|=8,z(ne)&&(ne=ve(ne)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),ne.expression?w.checkDefined(rt(ne.expression,U,ht)):t.createVoidZero())]))):z(ne)?ve(ne):Pr(ne,U,e)}function Je(ne){return T|=65536,T&2&&!(T&16384)&&(T|=131072),P?T&2?(P.containsLexicalThis=!0,ne):P.thisName||(P.thisName=t.createUniqueName("this")):ne}function ye(ne){return Pr(ne,_e,e)}function ee(ne){return P&&u.isArgumentsLocalBinding(ne)?P.argumentsName||(P.argumentsName=t.createUniqueName("arguments")):ne.flags&256?Rn(mt(t.createIdentifier(Ai(ne.escapedText)),ne),ne):ne}function ge(ne){if(P){let ot=ne.kind===253?2:4;if(!(ne.label&&P.labels&&P.labels.get(Fn(ne.label))||!ne.label&&P.allowedNonLabeledJumps&ot)){let er,Ar=ne.label;Ar?ne.kind===253?(er=`break-${Ar.escapedText}`,We(P,!0,Fn(Ar),er)):(er=`continue-${Ar.escapedText}`,We(P,!1,Fn(Ar),er)):ne.kind===253?(P.nonLocalJumps|=2,er="break"):(P.nonLocalJumps|=4,er="continue");let Qr=t.createStringLiteral(er);if(P.loopOutParameters.length){let $n=P.loopOutParameters,fi;for(let Wi=0;Wi<$n.length;Wi++){let L=Yl($n[Wi],1);Wi===0?fi=L:fi=t.createBinaryExpression(fi,28,L)}Qr=t.createBinaryExpression(fi,28,Qr)}return t.createReturnStatement(Qr)}}return Pr(ne,U,e)}function ke(ne){let ot=t.createVariableDeclaration(t.getLocalName(ne,!0),void 0,void 0,nt(ne));Rn(ot,ne);let Kt=[],er=t.createVariableStatement(void 0,t.createVariableDeclarationList([ot]));if(Rn(er,ne),mt(er,ne),Yu(er),Kt.push(er),ri(ne,32)){let Ar=ri(ne,2048)?t.createExportDefault(t.getLocalName(ne)):t.createExternalModuleExport(t.getLocalName(ne));Rn(Ar,er),Kt.push(Ar)}return vg(Kt)}function Oe(ne){return nt(ne)}function nt(ne){ne.name&&Ff();let ot=CS(ne),Kt=t.createFunctionExpression(void 0,void 0,void 0,void 0,ot?[t.createParameterDeclaration(void 0,void 0,Oc())]:[],void 0,ae(ne,ot));yn(Kt,Oa(ne)&131072|1048576);let er=t.createPartiallyEmittedExpression(Kt);cI(er,ne.end),yn(er,3072);let Ar=t.createPartiallyEmittedExpression(er);cI(Ar,ha(S,ne.pos)),yn(Ar,3072);let Qr=t.createParenthesizedExpression(t.createCallExpression(Ar,void 0,ot?[w.checkDefined(rt(ot.expression,U,ht))]:[]));return Ib(Qr,3,"* @class "),Qr}function ae(ne,ot){let Kt=[],er=t.getInternalName(ne),Ar=Wz(er)?t.getGeneratedNameForNode(er):er;i(),Ue(Kt,ne,ot),te(Kt,ne,Ar,ot),at(Kt,ne);let Qr=pG(ha(S,ne.members.end),20),$n=t.createPartiallyEmittedExpression(Ar);cI($n,Qr.end),yn($n,3072);let fi=t.createReturnStatement($n);DA(fi,Qr.pos),yn(fi,3840),Kt.push(fi),lh(Kt,o());let Wi=t.createBlock(mt(t.createNodeArray(Kt),ne.members),!0);return yn(Wi,3072),Wi}function Ue(ne,ot,Kt){Kt&&ne.push(mt(t.createExpressionStatement(n().createExtendsHelper(t.getInternalName(ot))),Kt))}function te(ne,ot,Kt,er){let Ar=P;P=void 0;let Qr=O(32662,73),$n=_h(ot),fi=og($n,er!==void 0),Wi=t.createFunctionDeclaration(void 0,void 0,Kt,void 0,Ne($n,fi),void 0,St($n,ot,er,fi));mt(Wi,$n||ot),er&&yn(Wi,16),ne.push(Wi),W(Qr,229376,0),P=Ar}function Ne(ne,ot){return wc(ne&&!ot?ne.parameters:void 0,U,e)||[]}function Ie(ne,ot){let Kt=[];s(),t.mergeLexicalEnvironment(Kt,o()),ot&&Kt.push(t.createReturnStatement(js()));let er=t.createNodeArray(Kt);mt(er,ne.members);let Ar=t.createBlock(er,!0);return mt(Ar,ne),yn(Ar,3072),Ar}function xe(ne){return Qc(ne)&&Fi(ne.declarationList.declarations,ot=>Be(ot.name)&&!ot.initializer)}function Qe(ne){if(ek(ne))return!0;if(!(ne.transformFlags&134217728))return!1;switch(ne.kind){case 220:case 219:case 263:case 177:case 176:return!1;case 178:case 179:case 175:case 173:{let ot=ne;return na(ot.name)?!!Ms(ot.name,Qe):!1}}return!!Ms(ne,Qe)}function St(ne,ot,Kt,er){let Ar=!!Kt&&Nc(Kt.expression).kind!==106;if(!ne)return Ie(ot,Ar);let Qr=[],$n=[];s();let fi=t.copyStandardPrologue(ne.body.statements,Qr,0);(er||Qe(ne.body))&&(T|=8192),Gn($n,Br(ne.body.statements,U,Ei,fi));let Wi=Ar||T&8192;Ds(Qr,ne),pt(Qr,ne,er),et(Qr,ne),Wi?Ee(Qr,ne,Mi()):Z(Qr,ne),t.mergeLexicalEnvironment(Qr,o()),Wi&&!ei(ne.body)&&$n.push(t.createReturnStatement(H()));let L=t.createBlock(mt(t.createNodeArray([...Qr,...$n]),ne.body.statements),!0);return mt(L,ne.body),Xn(L,ne.body,er)}function Bt(ne){return ec(ne)&&Fn(ne)==="_this"}function fr(ne){return ec(ne)&&Fn(ne)==="_super"}function Mr(ne){return Qc(ne)&&ne.declarationList.declarations.length===1&&ft(ne.declarationList.declarations[0])}function ft(ne){return li(ne)&&Bt(ne.name)&&!!ne.initializer}function qt(ne){return Hl(ne,!0)&&Bt(ne.left)}function Hr(ne){return Ws(ne)&&Ln(ne.expression)&&fr(ne.expression.expression)&&Be(ne.expression.name)&&(Fn(ne.expression.name)==="call"||Fn(ne.expression.name)==="apply")&&ne.arguments.length>=1&&ne.arguments[0].kind===110}function bi(ne){return vn(ne)&&ne.operatorToken.kind===57&&ne.right.kind===110&&Hr(ne.left)}function us(ne){return vn(ne)&&ne.operatorToken.kind===56&&vn(ne.left)&&ne.left.operatorToken.kind===38&&fr(ne.left.left)&&ne.left.right.kind===106&&Hr(ne.right)&&Fn(ne.right.expression.name)==="apply"}function At(ne){return vn(ne)&&ne.operatorToken.kind===57&&ne.right.kind===110&&us(ne.left)}function Un(ne){return qt(ne)&&bi(ne.right)}function rs(ne){return qt(ne)&&At(ne.right)}function zn(ne){return Hr(ne)||bi(ne)||Un(ne)||us(ne)||At(ne)||rs(ne)}function Sn(ne){for(let ot=0;ot<ne.statements.length-1;ot++){let Kt=ne.statements[ot];if(!Mr(Kt))continue;let er=Kt.declarationList.declarations[0];if(er.initializer.kind!==110)continue;let Ar=ot,Qr=ot+1;for(;Qr<ne.statements.length;){let Er=ne.statements[Qr];if(Ql(Er)&&zn(Nc(Er.expression)))break;if(xe(Er)){Qr++;continue}return ne}let $n=ne.statements[Qr],fi=$n.expression;qt(fi)&&(fi=fi.right);let Wi=t.updateVariableDeclaration(er,er.name,void 0,void 0,fi),L=t.updateVariableDeclarationList(Kt.declarationList,[Wi]),Fe=t.createVariableStatement(Kt.modifiers,L);Rn(Fe,$n),mt(Fe,$n);let Et=t.createNodeArray([...ne.statements.slice(0,Ar),...ne.statements.slice(Ar+1,Qr),Fe,...ne.statements.slice(Qr+1)]);return mt(Et,ne.statements),t.updateBlock(ne,Et)}return ne}function _i(ne,ot){for(let er of ot.statements)if(er.transformFlags&134217728&&!aj(er))return ne;let Kt=!(ot.transformFlags&16384)&&!(T&65536)&&!(T&131072);for(let er=ne.statements.length-1;er>0;er--){let Ar=ne.statements[er];if(Qf(Ar)&&Ar.expression&&Bt(Ar.expression)){let Qr=ne.statements[er-1],$n;if(Ql(Qr)&&Un(Nc(Qr.expression)))$n=Qr.expression;else if(Kt&&Mr(Qr)){let L=Qr.declarationList.declarations[0];zn(Nc(L.initializer))&&($n=t.createAssignment(H(),L.initializer))}if(!$n)break;let fi=t.createReturnStatement($n);Rn(fi,Qr),mt(fi,Qr);let Wi=t.createNodeArray([...ne.statements.slice(0,er-1),fi,...ne.statements.slice(er+1)]);return mt(Wi,ne.statements),t.updateBlock(ne,Wi)}}return ne}function qe(ne){if(Mr(ne)){if(ne.declarationList.declarations[0].initializer.kind===110)return}else if(qt(ne))return t.createPartiallyEmittedExpression(ne.right,ne);switch(ne.kind){case 220:case 219:case 263:case 177:case 176:return ne;case 178:case 179:case 175:case 173:{let ot=ne;return na(ot.name)?t.replacePropertyName(ot,Pr(ot.name,qe,void 0)):ne}}return Pr(ne,qe,void 0)}function bt(ne,ot){if(ot.transformFlags&16384||T&65536||T&131072)return ne;for(let Kt of ot.statements)if(Kt.transformFlags&134217728&&!aj(Kt))return ne;return t.updateBlock(ne,Br(ne.statements,qe,Ei))}function ar(ne){if(Hr(ne)&&ne.arguments.length===2&&Be(ne.arguments[1])&&Fn(ne.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(Oc(),t.createNull()),ne);switch(ne.kind){case 220:case 219:case 263:case 177:case 176:return ne;case 178:case 179:case 175:case 173:{let ot=ne;return na(ot.name)?t.replacePropertyName(ot,Pr(ot.name,ar,void 0)):ne}}return Pr(ne,ar,void 0)}function tn(ne){return t.updateBlock(ne,Br(ne.statements,ar,Ei))}function Xn(ne,ot,Kt){let er=ne;return ne=Sn(ne),ne=_i(ne,ot),ne!==er&&(ne=bt(ne,ot)),Kt&&(ne=tn(ne)),ne}function ei(ne){if(ne.kind===254)return!0;if(ne.kind===246){let ot=ne;if(ot.elseStatement)return ei(ot.thenStatement)&&ei(ot.elseStatement)}else if(ne.kind===242){let ot=Wo(ne.statements);if(ot&&ei(ot))return!0}return!1}function Mi(){return yn(t.createThis(),8)}function js(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(Oc(),t.createNull()),t.createFunctionApplyCall(Oc(),Mi(),t.createIdentifier("arguments"))),Mi())}function oa(ne){if(!ne.dotDotDotToken)return Ls(ne.name)?Rn(mt(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(ne),void 0,void 0,void 0),ne),ne):ne.initializer?Rn(mt(t.createParameterDeclaration(void 0,void 0,ne.name,void 0,void 0,void 0),ne),ne):ne}function wr(ne){return ne.initializer!==void 0||Ls(ne.name)}function Ds(ne,ot){if(!_t(ot.parameters,wr))return!1;let Kt=!1;for(let er of ot.parameters){let{name:Ar,initializer:Qr,dotDotDotToken:$n}=er;$n||(Ls(Ar)?Kt=tt(ne,er,Ar,Qr)||Kt:Qr&&(Mt(ne,er,Ar,Qr),Kt=!0))}return Kt}function tt(ne,ot,Kt,er){return Kt.elements.length>0?(YT(ne,yn(t.createVariableStatement(void 0,t.createVariableDeclarationList($S(ot,U,e,0,t.getGeneratedNameForNode(ot)))),2097152)),!0):er?(YT(ne,yn(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(ot),w.checkDefined(rt(er,U,ht)))),2097152)),!0):!1}function Mt(ne,ot,Kt,er){er=w.checkDefined(rt(er,U,ht));let Ar=t.createIfStatement(t.createTypeCheck(t.cloneNode(Kt),"undefined"),yn(mt(t.createBlock([t.createExpressionStatement(yn(mt(t.createAssignment(yn(Ka(mt(t.cloneNode(Kt),Kt),Kt.parent),96),yn(er,96|Oa(er)|3072)),ot),3072))]),ot),3905));Yu(Ar),mt(Ar,ot),yn(Ar,2101056),YT(ne,Ar)}function se(ne,ot){return!!(ne&&ne.dotDotDotToken&&!ot)}function pt(ne,ot,Kt){let er=[],Ar=Wo(ot.parameters);if(!se(Ar,Kt))return!1;let Qr=Ar.name.kind===80?Ka(mt(t.cloneNode(Ar.name),Ar.name),Ar.name.parent):t.createTempVariable(void 0);yn(Qr,96);let $n=Ar.name.kind===80?t.cloneNode(Ar.name):Qr,fi=ot.parameters.length-1,Wi=t.createLoopVariable();er.push(yn(mt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Qr,void 0,void 0,t.createArrayLiteralExpression([]))])),Ar),2097152));let L=t.createForStatement(mt(t.createVariableDeclarationList([t.createVariableDeclaration(Wi,void 0,void 0,t.createNumericLiteral(fi))]),Ar),mt(t.createLessThan(Wi,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),Ar),mt(t.createPostfixIncrement(Wi),Ar),t.createBlock([Yu(mt(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression($n,fi===0?Wi:t.createSubtract(Wi,t.createNumericLiteral(fi))),t.createElementAccessExpression(t.createIdentifier("arguments"),Wi))),Ar))]));return yn(L,2097152),Yu(L),er.push(L),Ar.name.kind!==80&&er.push(yn(mt(t.createVariableStatement(void 0,t.createVariableDeclarationList($S(Ar,U,e,0,$n))),Ar),2097152)),iz(ne,er),!0}function Z(ne,ot){return T&131072&&ot.kind!==220?(Ee(ne,ot,t.createThis()),!0):!1}function Ee(ne,ot,Kt){hp();let er=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(H(),void 0,void 0,Kt)]));yn(er,2100224),Ia(er,ot),YT(ne,er)}function et(ne,ot){if(T&32768){let Kt;switch(ot.kind){case 220:return ne;case 175:case 178:case 179:Kt=t.createVoidZero();break;case 177:Kt=t.createPropertyAccessExpression(yn(t.createThis(),8),"constructor");break;case 263:case 219:Kt=t.createConditionalExpression(t.createLogicalAnd(yn(t.createThis(),8),t.createBinaryExpression(yn(t.createThis(),8),104,t.getLocalName(ot))),void 0,t.createPropertyAccessExpression(yn(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return w.failBadSyntaxKind(ot)}let er=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,Kt)]));yn(er,2100224),YT(ne,er)}return ne}function at(ne,ot){for(let Kt of ot.members)switch(Kt.kind){case 241:ne.push(Pt(Kt));break;case 175:ne.push(Le(m_(ot,Kt),Kt,ot));break;case 178:case 179:let er=PS(ot.members,Kt);Kt===er.firstAccessor&&ne.push(kt(m_(ot,Kt),er,ot));break;case 177:case 176:break;default:w.failBadSyntaxKind(Kt,h&&h.fileName);break}}function Pt(ne){return mt(t.createEmptyStatement(),ne)}function Le(ne,ot,Kt){let er=$m(ot),Ar=nv(ot),Qr=ln(ot,ot,void 0,Kt),$n=rt(ot.name,U,ol);w.assert($n);let fi;if(!zi($n)&&z6(e.getCompilerOptions())){let L=na($n)?$n.expression:Be($n)?t.createStringLiteral(Ai($n.escapedText)):$n;fi=t.createObjectDefinePropertyCall(ne,L,t.createPropertyDescriptor({value:Qr,enumerable:!1,writable:!0,configurable:!0}))}else{let L=wk(t,ne,$n,ot.name);fi=t.createAssignment(L,Qr)}yn(Qr,3072),Ia(Qr,Ar);let Wi=mt(t.createExpressionStatement(fi),ot);return Rn(Wi,ot),gl(Wi,er),yn(Wi,96),Wi}function kt(ne,ot,Kt){let er=t.createExpressionStatement(Tt(ne,ot,Kt,!1));return yn(er,3072),Ia(er,nv(ot.firstAccessor)),er}function Tt(ne,{firstAccessor:ot,getAccessor:Kt,setAccessor:er},Ar,Qr){let $n=Ka(mt(t.cloneNode(ne),ne),ne.parent);yn($n,3136),Ia($n,ot.name);let fi=rt(ot.name,U,ol);if(w.assert(fi),zi(fi))return w.failBadSyntaxKind(fi,"Encountered unhandled private identifier while transforming ES2015.");let Wi=NJ(t,fi);yn(Wi,3104),Ia(Wi,ot.name);let L=[];if(Kt){let Et=ln(Kt,void 0,void 0,Ar);Ia(Et,nv(Kt)),yn(Et,1024);let Er=t.createPropertyAssignment("get",Et);gl(Er,$m(Kt)),L.push(Er)}if(er){let Et=ln(er,void 0,void 0,Ar);Ia(Et,nv(er)),yn(Et,1024);let Er=t.createPropertyAssignment("set",Et);gl(Er,$m(er)),L.push(Er)}L.push(t.createPropertyAssignment("enumerable",Kt||er?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));let Fe=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[$n,Wi,t.createObjectLiteralExpression(L,!0)]);return Qr&&Yu(Fe),Fe}function Rt(ne){ne.transformFlags&16384&&!(T&16384)&&(T|=131072);let ot=P;P=void 0;let Kt=O(15232,66),er=t.createFunctionExpression(void 0,void 0,void 0,void 0,wc(ne.parameters,U,e),void 0,Ae(ne));return mt(er,ne),Rn(er,ne),yn(er,16),W(Kt,0,0),P=ot,er}function Ye(ne){let ot=Oa(ne)&524288?O(32662,69):O(32670,65),Kt=P;P=void 0;let er=wc(ne.parameters,U,e),Ar=Ae(ne),Qr=T&32768?t.getLocalName(ne):ne.name;return W(ot,229376,0),P=Kt,t.updateFunctionExpression(ne,void 0,ne.asteriskToken,Qr,void 0,er,void 0,Ar)}function Gt(ne){let ot=P;P=void 0;let Kt=O(32670,65),er=wc(ne.parameters,U,e),Ar=Ae(ne),Qr=T&32768?t.getLocalName(ne):ne.name;return W(Kt,229376,0),P=ot,t.updateFunctionDeclaration(ne,Br(ne.modifiers,U,la),ne.asteriskToken,Qr,void 0,er,void 0,Ar)}function ln(ne,ot,Kt,er){let Ar=P;P=void 0;let Qr=er&&ni(er)&&!Ks(ne)?O(32670,73):O(32670,65),$n=wc(ne.parameters,U,e),fi=Ae(ne);return T&32768&&!Kt&&(ne.kind===263||ne.kind===219)&&(Kt=t.getGeneratedNameForNode(ne)),W(Qr,229376,0),P=Ar,Rn(mt(t.createFunctionExpression(void 0,ne.asteriskToken,Kt,void 0,$n,void 0,fi),ot),ne)}function Ae(ne){let ot=!1,Kt=!1,er,Ar,Qr=[],$n=[],fi=ne.body,Wi;if(s(),Bs(fi)&&(Wi=t.copyStandardPrologue(fi.statements,Qr,0,!1),Wi=t.copyCustomPrologue(fi.statements,$n,Wi,U,RF),Wi=t.copyCustomPrologue(fi.statements,$n,Wi,U,OF)),ot=Ds($n,ne)||ot,ot=pt($n,ne,!1)||ot,Bs(fi))Wi=t.copyCustomPrologue(fi.statements,$n,Wi,U),er=fi.statements,Gn($n,Br(fi.statements,U,Ei,Wi)),!ot&&fi.multiLine&&(ot=!0);else{w.assert(ne.kind===220),er=v8(fi,-1);let Fe=ne.equalsGreaterThanToken;!ko(Fe)&&!ko(fi)&&(O6(Fe,fi,h)?Kt=!0:ot=!0);let Et=rt(fi,U,ht),Er=t.createReturnStatement(Et);mt(Er,fi),Qne(Er,fi),yn(Er,2880),$n.push(Er),Ar=fi}if(t.mergeLexicalEnvironment(Qr,o()),et(Qr,ne),Z(Qr,ne),_t(Qr)&&(ot=!0),$n.unshift(...Qr),Bs(fi)&&qf($n,fi.statements))return fi;let L=t.createBlock(mt(t.createNodeArray($n),er),ot);return mt(L,ne.body),!ot&&Kt&&yn(L,1),Ar&&Hne(L,20,Ar),Rn(L,ne.body),L}function wt(ne,ot){if(ot)return Pr(ne,U,e);let Kt=T&256?O(7104,512):O(6976,128),er=Pr(ne,U,e);return W(Kt,0,0),er}function fe(ne){return Pr(ne,_e,e)}function j(ne,ot){return Pr(ne,ot?_e:U,e)}function je(ne,ot){return Yy(ne)?Nk(ne,U,e,0,!ot):ne.operatorToken.kind===28?t.updateBinaryExpression(ne,w.checkDefined(rt(ne.left,_e,ht)),ne.operatorToken,w.checkDefined(rt(ne.right,ot?_e:U,ht))):Pr(ne,U,e)}function q(ne,ot){if(ot)return Pr(ne,_e,e);let Kt;for(let Ar=0;Ar<ne.elements.length;Ar++){let Qr=ne.elements[Ar],$n=rt(Qr,Ar<ne.elements.length-1?_e:U,ht);(Kt||$n!==Qr)&&(Kt||(Kt=ne.elements.slice(0,Ar)),w.assert($n),Kt.push($n))}let er=Kt?mt(t.createNodeArray(Kt),ne.elements):ne.elements;return t.updateCommaListExpression(ne,er)}function vt(ne){return ne.declarationList.declarations.length===1&&!!ne.declarationList.declarations[0].initializer&&!!(Rd(ne.declarationList.declarations[0].initializer)&1)}function jt(ne){let ot=O(0,ri(ne,32)?32:0),Kt;if(P&&(ne.declarationList.flags&7)===0&&!vt(ne)){let er;for(let Ar of ne.declarationList.declarations)if(ll(P,Ar),Ar.initializer){let Qr;Ls(Ar.name)?Qr=Nk(Ar,U,e,0):(Qr=t.createBinaryExpression(Ar.name,64,w.checkDefined(rt(Ar.initializer,U,ht))),mt(Qr,Ar)),er=Fr(er,Qr)}er?Kt=mt(t.createExpressionStatement(t.inlineExpressions(er)),ne):Kt=void 0}else Kt=Pr(ne,U,e);return W(ot,0,0),Kt}function Ce(ne){if(ne.flags&7||ne.transformFlags&524288){ne.flags&7&&Ff();let ot=Br(ne.declarations,ne.flags&1?Zr:jr,li),Kt=t.createVariableDeclarationList(ot);return Rn(Kt,ne),mt(Kt,ne),gl(Kt,ne),ne.transformFlags&524288&&(Ls(ne.declarations[0].name)||Ls(ka(ne.declarations).name))&&Ia(Kt,ut(ot)),Kt}return Pr(ne,U,e)}function ut(ne){let ot=-1,Kt=-1;for(let er of ne)ot=ot===-1?er.pos:er.pos===-1?ot:Math.min(ot,er.pos),Kt=Math.max(Kt,er.end);return O_(ot,Kt)}function Qt(ne){let ot=u.hasNodeCheckFlag(ne,16384),Kt=u.hasNodeCheckFlag(ne,32768);return!((T&64)!==0||ot&&Kt&&(T&512)!==0)&&(T&4096)===0&&(!u.isDeclarationWithCollidingName(ne)||Kt&&!ot&&(T&6144)===0)}function Zr(ne){let ot=ne.name;return Ls(ot)?jr(ne):!ne.initializer&&Qt(ne)?t.updateVariableDeclaration(ne,ne.name,void 0,void 0,t.createVoidZero()):Pr(ne,U,e)}function jr(ne){let ot=O(32,0),Kt;return Ls(ne.name)?Kt=$S(ne,U,e,0,void 0,(ot&32)!==0):Kt=Pr(ne,U,e),W(ot,0,0),Kt}function Jr(ne){P.labels.set(Fn(ne.label),!0)}function ct(ne){P.labels.set(Fn(ne.label),!1)}function It(ne){P&&!P.labels&&(P.labels=new Map);let ot=Tz(ne,P&&Jr);return fb(ot,!1)?Ot(ot,ne):t.restoreEnclosingLabel(rt(ot,U,Ei,t.liftToBlock)??mt(t.createEmptyStatement(),ot),ne,P&&ct)}function Ot(ne,ot){switch(ne.kind){case 247:case 248:return hr(ne,ot);case 249:return ur(ne,ot);case 250:return mr(ne,ot);case 251:return Tr(ne,ot)}}function Ht(ne,ot,Kt,er,Ar){let Qr=O(ne,ot),$n=Lo(Kt,er,Qr,Ar);return W(Qr,0,0),$n}function hr(ne,ot){return Ht(0,1280,ne,ot)}function ur(ne,ot){return Ht(5056,3328,ne,ot)}function Nt(ne){return t.updateForStatement(ne,rt(ne.initializer,_e,E_),rt(ne.condition,U,ht),rt(ne.incrementor,_e,ht),w.checkDefined(rt(ne.statement,U,Ei,t.liftToBlock)))}function mr(ne,ot){return Ht(3008,5376,ne,ot)}function Tr(ne,ot){return Ht(3008,5376,ne,ot,p.downlevelIteration?Vs:di)}function Cr(ne,ot,Kt){let er=[],Ar=ne.initializer;if(lu(Ar)){ne.initializer.flags&7&&Ff();let Qr=_l(Ar.declarations);if(Qr&&Ls(Qr.name)){let $n=$S(Qr,U,e,0,ot),fi=mt(t.createVariableDeclarationList($n),ne.initializer);Rn(fi,ne.initializer),Ia(fi,O_($n[0].pos,ka($n).end)),er.push(t.createVariableStatement(void 0,fi))}else er.push(mt(t.createVariableStatement(void 0,Rn(mt(t.createVariableDeclarationList([t.createVariableDeclaration(Qr?Qr.name:t.createTempVariable(void 0),void 0,void 0,ot)]),W0(Ar,-1)),Ar)),v8(Ar,-1)))}else{let Qr=t.createAssignment(Ar,ot);Yy(Qr)?er.push(t.createExpressionStatement(je(Qr,!0))):(cI(Qr,Ar.end),er.push(mt(t.createExpressionStatement(w.checkDefined(rt(Qr,U,ht))),v8(Ar,-1))))}if(Kt)return rr(Gn(er,Kt));{let Qr=rt(ne.statement,U,Ei,t.liftToBlock);return w.assert(Qr),Bs(Qr)?t.updateBlock(Qr,mt(t.createNodeArray(Qi(er,Qr.statements)),Qr.statements)):(er.push(Qr),rr(er))}}function rr(ne){return yn(t.createBlock(t.createNodeArray(ne),!0),864)}function di(ne,ot,Kt){let er=rt(ne.expression,U,ht);w.assert(er);let Ar=t.createLoopVariable(),Qr=Be(er)?t.getGeneratedNameForNode(er):t.createTempVariable(void 0);yn(er,96|Oa(er));let $n=mt(t.createForStatement(yn(mt(t.createVariableDeclarationList([mt(t.createVariableDeclaration(Ar,void 0,void 0,t.createNumericLiteral(0)),W0(ne.expression,-1)),mt(t.createVariableDeclaration(Qr,void 0,void 0,er),ne.expression)]),ne.expression),4194304),mt(t.createLessThan(Ar,t.createPropertyAccessExpression(Qr,"length")),ne.expression),mt(t.createPostfixIncrement(Ar),ne.expression),Cr(ne,t.createElementAccessExpression(Qr,Ar),Kt)),ne);return yn($n,512),mt($n,ne),t.restoreEnclosingLabel($n,ot,P&&ct)}function Vs(ne,ot,Kt,er){let Ar=rt(ne.expression,U,ht);w.assert(Ar);let Qr=Be(Ar)?t.getGeneratedNameForNode(Ar):t.createTempVariable(void 0),$n=Be(Ar)?t.getGeneratedNameForNode(Qr):t.createTempVariable(void 0),fi=t.createUniqueName("e"),Wi=t.getGeneratedNameForNode(fi),L=t.createTempVariable(void 0),Fe=mt(n().createValuesHelper(Ar),ne.expression),Et=t.createCallExpression(t.createPropertyAccessExpression(Qr,"next"),void 0,[]);c(fi),c(L);let Er=er&1024?t.inlineExpressions([t.createAssignment(fi,t.createVoidZero()),Fe]):Fe,is=yn(mt(t.createForStatement(yn(mt(t.createVariableDeclarationList([mt(t.createVariableDeclaration(Qr,void 0,void 0,Er),ne.expression),t.createVariableDeclaration($n,void 0,void 0,Et)]),ne.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression($n,"done")),t.createAssignment($n,Et),Cr(ne,t.createPropertyAccessExpression($n,"value"),Kt)),ne),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(is,ot,P&&ct)]),t.createCatchClause(t.createVariableDeclaration(Wi),yn(t.createBlock([t.createExpressionStatement(t.createAssignment(fi,t.createObjectLiteralExpression([t.createPropertyAssignment("error",Wi)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([yn(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd($n,t.createLogicalNot(t.createPropertyAccessExpression($n,"done"))),t.createAssignment(L,t.createPropertyAccessExpression(Qr,"return"))),t.createExpressionStatement(t.createFunctionCallCall(L,Qr,[]))),1)]),void 0,yn(t.createBlock([yn(t.createIfStatement(fi,t.createThrowStatement(t.createPropertyAccessExpression(fi,"error"))),1)]),1))]))}function qs(ne){let ot=ne.properties,Kt=-1,er=!1;for(let fi=0;fi<ot.length;fi++){let Wi=ot[fi];if(Wi.transformFlags&1048576&&T&4||(er=w.checkDefined(Wi.name).kind===168)){Kt=fi;break}}if(Kt<0)return Pr(ne,U,e);let Ar=t.createTempVariable(c),Qr=[],$n=t.createAssignment(Ar,yn(t.createObjectLiteralExpression(Br(ot,U,Xh,0,Kt),ne.multiLine),er?131072:0));return ne.multiLine&&Yu($n),Qr.push($n),Wr(Qr,ne,Ar,Kt),Qr.push(ne.multiLine?Yu(Ka(mt(t.cloneNode(Ar),Ar),Ar.parent)):Ar),t.inlineExpressions(Qr)}function xs(ne){return u.hasNodeCheckFlag(ne,8192)}function Dc(ne){return $0(ne)&&!!ne.initializer&&xs(ne.initializer)}function vc(ne){return $0(ne)&&!!ne.condition&&xs(ne.condition)}function vo(ne){return $0(ne)&&!!ne.incrementor&&xs(ne.incrementor)}function Ki(ne){return Cs(ne)||Dc(ne)}function Cs(ne){return u.hasNodeCheckFlag(ne,4096)}function ll(ne,ot){ne.hoistedLocalVariables||(ne.hoistedLocalVariables=[]),Kt(ot.name);function Kt(er){if(er.kind===80)ne.hoistedLocalVariables.push(er);else for(let Ar of er.elements)Fl(Ar)||Kt(Ar.name)}}function Lo(ne,ot,Kt,er){if(!Ki(ne)){let Fe;P&&(Fe=P.allowedNonLabeledJumps,P.allowedNonLabeledJumps=6);let Et=er?er(ne,ot,void 0,Kt):t.restoreEnclosingLabel($0(ne)?Nt(ne):Pr(ne,U,e),ot,P&&ct);return P&&(P.allowedNonLabeledJumps=Fe),Et}let Ar=Fa(ne),Qr=[],$n=P;P=Ar;let fi=Dc(ne)?Mc(ne,Ar):void 0,Wi=Cs(ne)?rl(ne,Ar,$n):void 0;P=$n,fi&&Qr.push(fi.functionDeclaration),Wi&&Qr.push(Wi.functionDeclaration),$t(Qr,Ar,$n),fi&&Qr.push(Rc(fi.functionName,fi.containsYield));let L;if(Wi)if(er)L=er(ne,ot,Wi.part,Kt);else{let Fe=fa(ne,fi,t.createBlock(Wi.part,!0));L=t.restoreEnclosingLabel(Fe,ot,P&&ct)}else{let Fe=fa(ne,fi,w.checkDefined(rt(ne.statement,U,Ei,t.liftToBlock)));L=t.restoreEnclosingLabel(Fe,ot,P&&ct)}return Qr.push(L),Qr}function fa(ne,ot,Kt){switch(ne.kind){case 249:return Jc(ne,ot,Kt);case 250:return ys(ne,Kt);case 251:return d_(ne,Kt);case 247:return Ys(ne,Kt);case 248:return Ga(ne,Kt);default:return w.failBadSyntaxKind(ne,"IterationStatement expected")}}function Jc(ne,ot,Kt){let er=ne.condition&&xs(ne.condition),Ar=er||ne.incrementor&&xs(ne.incrementor);return t.updateForStatement(ne,rt(ot?ot.part:ne.initializer,_e,E_),rt(er?void 0:ne.condition,U,ht),rt(Ar?void 0:ne.incrementor,_e,ht),Kt)}function d_(ne,ot){return t.updateForOfStatement(ne,void 0,w.checkDefined(rt(ne.initializer,U,E_)),w.checkDefined(rt(ne.expression,U,ht)),ot)}function ys(ne,ot){return t.updateForInStatement(ne,w.checkDefined(rt(ne.initializer,U,E_)),w.checkDefined(rt(ne.expression,U,ht)),ot)}function Ys(ne,ot){return t.updateDoStatement(ne,ot,w.checkDefined(rt(ne.expression,U,ht)))}function Ga(ne,ot){return t.updateWhileStatement(ne,w.checkDefined(rt(ne.expression,U,ht)),ot)}function Fa(ne){let ot;switch(ne.kind){case 249:case 250:case 251:let Qr=ne.initializer;Qr&&Qr.kind===262&&(ot=Qr);break}let Kt=[],er=[];if(ot&&Kh(ot)&7){let Qr=Dc(ne)||vc(ne)||vo(ne);for(let $n of ot.declarations)Ut(ne,$n,Kt,er,Qr)}let Ar={loopParameters:Kt,loopOutParameters:er};return P&&(P.argumentsName&&(Ar.argumentsName=P.argumentsName),P.thisName&&(Ar.thisName=P.thisName),P.hoistedLocalVariables&&(Ar.hoistedLocalVariables=P.hoistedLocalVariables)),Ar}function $t(ne,ot,Kt){let er;if(ot.argumentsName&&(Kt?Kt.argumentsName=ot.argumentsName:(er||(er=[])).push(t.createVariableDeclaration(ot.argumentsName,void 0,void 0,t.createIdentifier("arguments")))),ot.thisName&&(Kt?Kt.thisName=ot.thisName:(er||(er=[])).push(t.createVariableDeclaration(ot.thisName,void 0,void 0,t.createIdentifier("this")))),ot.hoistedLocalVariables)if(Kt)Kt.hoistedLocalVariables=ot.hoistedLocalVariables;else{er||(er=[]);for(let Ar of ot.hoistedLocalVariables)er.push(t.createVariableDeclaration(Ar))}if(ot.loopOutParameters.length){er||(er=[]);for(let Ar of ot.loopOutParameters)er.push(t.createVariableDeclaration(Ar.outParamName))}ot.conditionVariable&&(er||(er=[]),er.push(t.createVariableDeclaration(ot.conditionVariable,void 0,void 0,t.createFalse()))),er&&ne.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(er)))}function uo(ne){return t.createVariableDeclaration(ne.originalName,void 0,void 0,ne.outParamName)}function Mc(ne,ot){let Kt=t.createUniqueName("_loop_init"),er=(ne.initializer.transformFlags&1048576)!==0,Ar=0;ot.containsLexicalThis&&(Ar|=16),er&&T&4&&(Ar|=524288);let Qr=[];Qr.push(t.createVariableStatement(void 0,ne.initializer)),Ko(ot.loopOutParameters,2,1,Qr);let $n=t.createVariableStatement(void 0,yn(t.createVariableDeclarationList([t.createVariableDeclaration(Kt,void 0,void 0,yn(t.createFunctionExpression(void 0,er?t.createToken(42):void 0,void 0,void 0,void 0,void 0,w.checkDefined(rt(t.createBlock(Qr,!0),U,Bs))),Ar))]),4194304)),fi=t.createVariableDeclarationList(kr(ot.loopOutParameters,uo));return{functionName:Kt,containsYield:er,functionDeclaration:$n,part:fi}}function rl(ne,ot,Kt){let er=t.createUniqueName("_loop");i();let Ar=rt(ne.statement,U,Ei,t.liftToBlock),Qr=o(),$n=[];(vc(ne)||vo(ne))&&(ot.conditionVariable=t.createUniqueName("inc"),ne.incrementor?$n.push(t.createIfStatement(ot.conditionVariable,t.createExpressionStatement(w.checkDefined(rt(ne.incrementor,U,ht))),t.createExpressionStatement(t.createAssignment(ot.conditionVariable,t.createTrue())))):$n.push(t.createIfStatement(t.createLogicalNot(ot.conditionVariable),t.createExpressionStatement(t.createAssignment(ot.conditionVariable,t.createTrue())))),vc(ne)&&$n.push(t.createIfStatement(t.createPrefixUnaryExpression(54,w.checkDefined(rt(ne.condition,U,ht))),w.checkDefined(rt(t.createBreakStatement(),U,Ei))))),w.assert(Ar),Bs(Ar)?Gn($n,Ar.statements):$n.push(Ar),Ko(ot.loopOutParameters,1,1,$n),lh($n,Qr);let fi=t.createBlock($n,!0);Bs(Ar)&&Rn(fi,Ar);let Wi=(ne.statement.transformFlags&1048576)!==0,L=1048576;ot.containsLexicalThis&&(L|=16),Wi&&(T&4)!==0&&(L|=524288);let Fe=t.createVariableStatement(void 0,yn(t.createVariableDeclarationList([t.createVariableDeclaration(er,void 0,void 0,yn(t.createFunctionExpression(void 0,Wi?t.createToken(42):void 0,void 0,void 0,ot.loopParameters,void 0,fi),L))]),4194304)),Et=N(er,ot,Kt,Wi);return{functionName:er,containsYield:Wi,functionDeclaration:Fe,part:Et}}function Yl(ne,ot){let Kt=ot===0?ne.outParamName:ne.originalName,er=ot===0?ne.originalName:ne.outParamName;return t.createBinaryExpression(er,64,Kt)}function Ko(ne,ot,Kt,er){for(let Ar of ne)Ar.flags&ot&&er.push(t.createExpressionStatement(Yl(Ar,Kt)))}function Rc(ne,ot){let Kt=t.createCallExpression(ne,void 0,[]),er=ot?t.createYieldExpression(t.createToken(42),yn(Kt,8388608)):Kt;return t.createExpressionStatement(er)}function N(ne,ot,Kt,er){let Ar=[],Qr=!(ot.nonLocalJumps&-5)&&!ot.labeledNonLocalBreaks&&!ot.labeledNonLocalContinues,$n=t.createCallExpression(ne,void 0,kr(ot.loopParameters,Wi=>Wi.name)),fi=er?t.createYieldExpression(t.createToken(42),yn($n,8388608)):$n;if(Qr)Ar.push(t.createExpressionStatement(fi)),Ko(ot.loopOutParameters,1,0,Ar);else{let Wi=t.createUniqueName("state"),L=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Wi,void 0,void 0,fi)]));if(Ar.push(L),Ko(ot.loopOutParameters,1,0,Ar),ot.nonLocalJumps&8){let Fe;Kt?(Kt.nonLocalJumps|=8,Fe=t.createReturnStatement(Wi)):Fe=t.createReturnStatement(t.createPropertyAccessExpression(Wi,"value")),Ar.push(t.createIfStatement(t.createTypeCheck(Wi,"object"),Fe))}if(ot.nonLocalJumps&2&&Ar.push(t.createIfStatement(t.createStrictEquality(Wi,t.createStringLiteral("break")),t.createBreakStatement())),ot.labeledNonLocalBreaks||ot.labeledNonLocalContinues){let Fe=[];dt(ot.labeledNonLocalBreaks,!0,Wi,Kt,Fe),dt(ot.labeledNonLocalContinues,!1,Wi,Kt,Fe),Ar.push(t.createSwitchStatement(Wi,t.createCaseBlock(Fe)))}}return Ar}function We(ne,ot,Kt,er){ot?(ne.labeledNonLocalBreaks||(ne.labeledNonLocalBreaks=new Map),ne.labeledNonLocalBreaks.set(Kt,er)):(ne.labeledNonLocalContinues||(ne.labeledNonLocalContinues=new Map),ne.labeledNonLocalContinues.set(Kt,er))}function dt(ne,ot,Kt,er,Ar){ne&&ne.forEach((Qr,$n)=>{let fi=[];if(!er||er.labels&&er.labels.get($n)){let Wi=t.createIdentifier($n);fi.push(ot?t.createBreakStatement(Wi):t.createContinueStatement(Wi))}else We(er,ot,$n,Qr),fi.push(t.createReturnStatement(Kt));Ar.push(t.createCaseClause(t.createStringLiteral(Qr),fi))})}function Ut(ne,ot,Kt,er,Ar){let Qr=ot.name;if(Ls(Qr))for(let $n of Qr.elements)Fl($n)||Ut(ne,$n,Kt,er,Ar);else{Kt.push(t.createParameterDeclaration(void 0,void 0,Qr));let $n=u.hasNodeCheckFlag(ot,65536);if($n||Ar){let fi=t.createUniqueName("out_"+Fn(Qr)),Wi=0;$n&&(Wi|=1),$0(ne)&&(ne.initializer&&u.isBindingCapturedByNode(ne.initializer,ot)&&(Wi|=2),(ne.condition&&u.isBindingCapturedByNode(ne.condition,ot)||ne.incrementor&&u.isBindingCapturedByNode(ne.incrementor,ot))&&(Wi|=1)),er.push({flags:Wi,originalName:Qr,outParamName:fi})}}}function Wr(ne,ot,Kt,er){let Ar=ot.properties,Qr=Ar.length;for(let $n=er;$n<Qr;$n++){let fi=Ar[$n];switch(fi.kind){case 178:case 179:let Wi=PS(ot.properties,fi);fi===Wi.firstAccessor&&ne.push(Tt(Kt,Wi,ot,!!ot.multiLine));break;case 175:ne.push(Rr(fi,Kt,ot,ot.multiLine));break;case 304:ne.push(Yn(fi,Kt,ot.multiLine));break;case 305:ne.push(hn(fi,Kt,ot.multiLine));break;default:w.failBadSyntaxKind(ot);break}}}function Yn(ne,ot,Kt){let er=t.createAssignment(wk(t,ot,w.checkDefined(rt(ne.name,U,ol))),w.checkDefined(rt(ne.initializer,U,ht)));return mt(er,ne),Kt&&Yu(er),er}function hn(ne,ot,Kt){let er=t.createAssignment(wk(t,ot,w.checkDefined(rt(ne.name,U,ol))),t.cloneNode(ne.name));return mt(er,ne),Kt&&Yu(er),er}function Rr(ne,ot,Kt,er){let Ar=t.createAssignment(wk(t,ot,w.checkDefined(rt(ne.name,U,ol))),ln(ne,ne,void 0,Kt));return mt(Ar,ne),er&&Yu(Ar),Ar}function Di(ne){let ot=O(7104,0),Kt;if(w.assert(!!ne.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),Ls(ne.variableDeclaration.name)){let er=t.createTempVariable(void 0),Ar=t.createVariableDeclaration(er);mt(Ar,ne.variableDeclaration);let Qr=$S(ne.variableDeclaration,U,e,0,er),$n=t.createVariableDeclarationList(Qr);mt($n,ne.variableDeclaration);let fi=t.createVariableStatement(void 0,$n);Kt=t.updateCatchClause(ne,Ar,Ri(ne.block,fi))}else Kt=Pr(ne,U,e);return W(ot,0,0),Kt}function Ri(ne,ot){let Kt=Br(ne.statements,U,Ei);return t.updateBlock(ne,[ot,...Kt])}function so(ne){w.assert(!na(ne.name));let ot=ln(ne,W0(ne,-1),void 0,void 0);return yn(ot,1024|Oa(ot)),mt(t.createPropertyAssignment(ne.name,ot),ne)}function ua(ne){w.assert(!na(ne.name));let ot=P;P=void 0;let Kt=O(32670,65),er,Ar=wc(ne.parameters,U,e),Qr=Ae(ne);return ne.kind===178?er=t.updateGetAccessorDeclaration(ne,ne.modifiers,ne.name,Ar,ne.type,Qr):er=t.updateSetAccessorDeclaration(ne,ne.modifiers,ne.name,Ar,Qr),W(Kt,229376,0),P=ot,er}function Xo(ne){return mt(t.createPropertyAssignment(ne.name,ee(t.cloneNode(ne.name))),ne)}function ul(ne){return Pr(ne,U,e)}function Kc(ne){return Pr(ne,U,e)}function Eo(ne){return _t(ne.elements,z_)?Xp(ne.elements,!1,!!ne.multiLine,!!ne.elements.hasTrailingComma):Pr(ne,U,e)}function Uc(ne){if(Rd(ne)&1)return Of(ne);let ot=Nc(ne.expression);return ot.kind===108||of(ot)||_t(ne.arguments,z_)?Cu(ne,!0):t.updateCallExpression(ne,w.checkDefined(rt(ne.expression,V,ht)),void 0,Br(ne.arguments,U,ht))}function Of(ne){let ot=Zs(Zs(Nc(ne.expression),Fo).body,Bs),Kt=_a=>Qc(_a)&&!!Ra(_a.declarationList.declarations).initializer,er=P;P=void 0;let Ar=Br(ot.statements,re,Ei);P=er;let Qr=Mn(Ar,Kt),$n=Mn(Ar,_a=>!Kt(_a)),Wi=Zs(Ra(Qr),Qc).declarationList.declarations[0],L=Nc(Wi.initializer),Fe=Hn(L,Hl);!Fe&&vn(L)&&L.operatorToken.kind===28&&(Fe=Hn(L.left,Hl));let Et=Zs(Fe?Nc(Fe.right):L,Ws),Er=Zs(Nc(Et.expression),Ao),is=Er.body.statements,zs=0,os=-1,Ps=[];if(Fe){let _a=Hn(is[zs],Ql);_a&&(Ps.push(_a),zs++),Ps.push(is[zs]),zs++,Ps.push(t.createExpressionStatement(t.createAssignment(Fe.left,Zs(Wi.name,Be))))}for(;!Qf(Kv(is,os));)os--;Gn(Ps,is,zs,os),os<-1&&Gn(Ps,is,os+1);let rc=Hn(Kv(is,os),Qf);for(let _a of $n)Qf(_a)&&rc?.expression&&!Be(rc.expression)?Ps.push(rc):Ps.push(_a);return Gn(Ps,Qr,1),t.restoreOuterExpressions(ne.expression,t.restoreOuterExpressions(Wi.initializer,t.restoreOuterExpressions(Fe&&Fe.right,t.updateCallExpression(Et,t.restoreOuterExpressions(Et.expression,t.updateFunctionExpression(Er,void 0,void 0,void 0,void 0,Er.parameters,void 0,t.updateBlock(Er.body,Ps))),void 0,Et.arguments))))}function Cu(ne,ot){if(ne.transformFlags&32768||ne.expression.kind===108||of(Nc(ne.expression))){let{target:Kt,thisArg:er}=t.createCallBinding(ne.expression,c);ne.expression.kind===108&&yn(er,8);let Ar;if(ne.transformFlags&32768?Ar=t.createFunctionApplyCall(w.checkDefined(rt(Kt,V,ht)),ne.expression.kind===108?er:w.checkDefined(rt(er,U,ht)),Xp(ne.arguments,!0,!1,!1)):Ar=mt(t.createFunctionCallCall(w.checkDefined(rt(Kt,V,ht)),ne.expression.kind===108?er:w.checkDefined(rt(er,U,ht)),Br(ne.arguments,U,ht)),ne),ne.expression.kind===108){let Qr=t.createLogicalOr(Ar,Mi());Ar=ot?t.createAssignment(H(),Qr):Qr}return Rn(Ar,ne)}return ek(ne)&&(T|=131072),Pr(ne,U,e)}function Kf(ne){if(_t(ne.arguments,z_)){let{target:ot,thisArg:Kt}=t.createCallBinding(t.createPropertyAccessExpression(ne.expression,"bind"),c);return t.createNewExpression(t.createFunctionApplyCall(w.checkDefined(rt(ot,U,ht)),Kt,Xp(t.createNodeArray([t.createVoidZero(),...ne.arguments]),!0,!1,!1)),void 0,[])}return Pr(ne,U,e)}function Xp(ne,ot,Kt,er){let Ar=ne.length,Qr=ad(IW(ne,Re,(L,Fe,Et,Er)=>Fe(L,Kt,er&&Er===Ar)));if(Qr.length===1){let L=Qr[0];if(ot&&!p.downlevelIteration||zG(L.expression)||jA(L.expression,"___spreadArray"))return L.expression}let $n=n(),fi=Qr[0].kind!==0,Wi=fi?t.createArrayLiteralExpression():Qr[0].expression;for(let L=fi?0:1;L<Qr.length;L++){let Fe=Qr[L];Wi=$n.createSpreadArrayHelper(Wi,Fe.expression,Fe.kind===1&&!ot)}return Wi}function Re(ne){return z_(ne)?zt:ns}function zt(ne){return kr(ne,Vr)}function Vr(ne){w.assertNode(ne,z_);let ot=rt(ne.expression,U,ht);w.assert(ot);let Kt=jA(ot,"___read"),er=Kt||zG(ot)?2:1;return p.downlevelIteration&&er===1&&!Tu(ot)&&!Kt&&(ot=n().createReadHelper(ot,void 0),er=2),hTe(er,ot)}function ns(ne,ot,Kt){let er=t.createArrayLiteralExpression(Br(t.createNodeArray(ne,Kt),U,ht),ot);return hTe(0,er)}function ja(ne){return rt(ne.expression,U,ht)}function La(ne){return mt(t.createStringLiteral(ne.text),ne)}function Ca(ne){return ne.hasExtendedUnicodeEscape?mt(t.createStringLiteral(ne.text),ne):ne}function bl(ne){return ne.numericLiteralFlags&384?mt(t.createNumericLiteral(ne.text),ne):ne}function zo(ne){return $U(e,ne,U,h,I,1)}function bc(ne){let ot=t.createStringLiteral(ne.head.text);for(let Kt of ne.templateSpans){let er=[w.checkDefined(rt(Kt.expression,U,ht))];Kt.literal.text.length>0&&er.push(t.createStringLiteral(Kt.literal.text)),ot=t.createCallExpression(t.createPropertyAccessExpression(ot,"concat"),void 0,er)}return mt(ot,ne)}function Oc(){return t.createUniqueName("_super",48)}function Xf(ne,ot){let Kt=T&8&&!ot?t.createPropertyAccessExpression(Rn(Oc(),ne),"prototype"):Oc();return Rn(Kt,ne),gl(Kt,ne),Ia(Kt,ne),Kt}function fu(ne){return ne.keywordToken===105&&ne.name.escapedText==="target"?(T|=32768,t.createUniqueName("_newTarget",48)):ne}function Zl(ne,ot,Kt){if(E&1&&Fs(ot)){let er=O(32670,Oa(ot)&16?81:65);d(ne,ot,Kt),W(er,0,0);return}d(ne,ot,Kt)}function Ff(){(E&2)===0&&(E|=2,e.enableSubstitution(80))}function hp(){(E&1)===0&&(E|=1,e.enableSubstitution(110),e.enableEmitNotification(177),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(220),e.enableEmitNotification(219),e.enableEmitNotification(263))}function U_(ne,ot){return ot=g(ne,ot),ne===1?Ch(ot):Be(ot)?Rg(ot):ot}function Rg(ne){if(E&2&&!MJ(ne)){let ot=As(ne,Be);if(ot&&xh(ot))return mt(t.getGeneratedNameForNode(ot),ne)}return ne}function xh(ne){switch(ne.parent.kind){case 209:case 264:case 267:case 261:return ne.parent.name===ne&&u.isDeclarationWithCollidingName(ne.parent)}return!1}function Ch(ne){switch(ne.kind){case 80:return Yp(ne);case 110:return mm(ne)}return ne}function Yp(ne){if(E&2&&!MJ(ne)){let ot=u.getReferencedDeclarationWithCollidingName(ne);if(ot&&!(ni(ot)&&Ll(ot,ne)))return mt(t.getGeneratedNameForNode(Ss(ot)),ne)}return ne}function Ll(ne,ot){let Kt=As(ot);if(!Kt||Kt===ne||Kt.end<=ne.pos||Kt.pos>=ne.end)return!1;let er=nm(ne);for(;Kt;){if(Kt===er||Kt===ne)return!1;if(cl(Kt)&&Kt.parent===ne)return!0;Kt=Kt.parent}return!1}function mm(ne){return E&1&&T&16?mt(H(),ne):ne}function m_(ne,ot){return Ks(ot)?t.getInternalName(ne):t.createPropertyAccessExpression(t.getInternalName(ne),"prototype")}function og(ne,ot){if(!ne||!ot||_t(ne.parameters))return!1;let Kt=_l(ne.body.statements);if(!Kt||!ko(Kt)||Kt.kind!==245)return!1;let er=Kt.expression;if(!ko(er)||er.kind!==214)return!1;let Ar=er.expression;if(!ko(Ar)||Ar.kind!==108)return!1;let Qr=eh(er.arguments);if(!Qr||!ko(Qr)||Qr.kind!==231)return!1;let $n=Qr.expression;return Be($n)&&$n.escapedText==="arguments"}}function eUe(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function Bae(e){let{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistFunctionDeclaration:o,hoistVariableDeclaration:c}=e,p=e.getCompilerOptions(),u=xa(p),g=e.getEmitResolver(),d=e.onSubstituteNode;e.onSubstituteNode=fe;let h,S,T,x,I,P,E,F,O,W,z=1,$,X,U,_e,re=0,V=0,ce,oe,le,de,ve,H,Se,Je;return pm(e,ye);function ye(Re){if(Re.isDeclarationFile||(Re.transformFlags&2048)===0)return Re;let zt=Pr(Re,ee,e);return vh(zt,e.readEmitHelpers()),zt}function ee(Re){let zt=Re.transformFlags;return x?ge(Re):T?ke(Re):yo(Re)&&Re.asteriskToken?nt(Re):zt&2048?Pr(Re,ee,e):Re}function ge(Re){switch(Re.kind){case 247:return js(Re);case 248:return wr(Re);case 256:return Tt(Re);case 257:return Ye(Re);default:return ke(Re)}}function ke(Re){switch(Re.kind){case 263:return ae(Re);case 219:return Ue(Re);case 178:case 179:return te(Re);case 244:return Ie(Re);case 249:return tt(Re);case 250:return se(Re);case 253:return et(Re);case 252:return Z(Re);case 254:return Pt(Re);default:return Re.transformFlags&1048576?Oe(Re):Re.transformFlags&4196352?Pr(Re,ee,e):Re}}function Oe(Re){switch(Re.kind){case 227:return xe(Re);case 357:return fr(Re);case 228:return ft(Re);case 230:return qt(Re);case 210:return Hr(Re);case 211:return us(Re);case 213:return At(Re);case 214:return Un(Re);case 215:return rs(Re);default:return Pr(Re,ee,e)}}function nt(Re){switch(Re.kind){case 263:return ae(Re);case 219:return Ue(Re);default:return w.failBadSyntaxKind(Re)}}function ae(Re){if(Re.asteriskToken)Re=Rn(mt(t.createFunctionDeclaration(Re.modifiers,void 0,Re.name,void 0,wc(Re.parameters,ee,e),void 0,Ne(Re.body)),Re),Re);else{let zt=T,Vr=x;T=!1,x=!1,Re=Pr(Re,ee,e),T=zt,x=Vr}if(T){o(Re);return}else return Re}function Ue(Re){if(Re.asteriskToken)Re=Rn(mt(t.createFunctionExpression(void 0,void 0,Re.name,void 0,wc(Re.parameters,ee,e),void 0,Ne(Re.body)),Re),Re);else{let zt=T,Vr=x;T=!1,x=!1,Re=Pr(Re,ee,e),T=zt,x=Vr}return Re}function te(Re){let zt=T,Vr=x;return T=!1,x=!1,Re=Pr(Re,ee,e),T=zt,x=Vr,Re}function Ne(Re){let zt=[],Vr=T,ns=x,ja=I,La=P,Ca=E,bl=F,zo=O,bc=W,Oc=z,Xf=$,fu=X,Zl=U,Ff=_e;T=!0,x=!1,I=void 0,P=void 0,E=void 0,F=void 0,O=void 0,W=void 0,z=1,$=void 0,X=void 0,U=void 0,_e=t.createTempVariable(void 0),i();let hp=t.copyPrologue(Re.statements,zt,!1,ee);zn(Re.statements,hp);let U_=We();return lh(zt,s()),zt.push(t.createReturnStatement(U_)),T=Vr,x=ns,I=ja,P=La,E=Ca,F=bl,O=zo,W=bc,z=Oc,$=Xf,X=fu,U=Zl,_e=Ff,mt(t.createBlock(zt,Re.multiLine),Re)}function Ie(Re){if(Re.transformFlags&1048576){tn(Re.declarationList);return}else{if(Oa(Re)&2097152)return Re;for(let Vr of Re.declarationList.declarations)c(Vr.name);let zt=gA(Re.declarationList);return zt.length===0?void 0:Ia(t.createExpressionStatement(t.inlineExpressions(kr(zt,Xn))),Re)}}function xe(Re){let zt=Jz(Re);switch(zt){case 0:return St(Re);case 1:return Qe(Re);default:return w.assertNever(zt)}}function Qe(Re){let{left:zt,right:Vr}=Re;if(Ae(Vr)){let ns;switch(zt.kind){case 212:ns=t.updatePropertyAccessExpression(zt,q(w.checkDefined(rt(zt.expression,ee,Jp))),zt.name);break;case 213:ns=t.updateElementAccessExpression(zt,q(w.checkDefined(rt(zt.expression,ee,Jp))),q(w.checkDefined(rt(zt.argumentExpression,ee,ht))));break;default:ns=w.checkDefined(rt(zt,ee,ht));break}let ja=Re.operatorToken.kind;return lE(ja)?mt(t.createAssignment(ns,mt(t.createBinaryExpression(q(ns),uE(ja),w.checkDefined(rt(Vr,ee,ht))),Re)),Re):t.updateBinaryExpression(Re,ns,Re.operatorToken,w.checkDefined(rt(Vr,ee,ht)))}return Pr(Re,ee,e)}function St(Re){return Ae(Re.right)?Fre(Re.operatorToken.kind)?Mr(Re):Re.operatorToken.kind===28?Bt(Re):t.updateBinaryExpression(Re,q(w.checkDefined(rt(Re.left,ee,ht))),Re.operatorToken,w.checkDefined(rt(Re.right,ee,ht))):Pr(Re,ee,e)}function Bt(Re){let zt=[];return Vr(Re.left),Vr(Re.right),t.inlineExpressions(zt);function Vr(ns){vn(ns)&&ns.operatorToken.kind===28?(Vr(ns.left),Vr(ns.right)):(Ae(ns)&&zt.length>0&&(N(1,[t.createExpressionStatement(t.inlineExpressions(zt))]),zt=[]),zt.push(w.checkDefined(rt(ns,ee,ht))))}}function fr(Re){let zt=[];for(let Vr of Re.elements)vn(Vr)&&Vr.operatorToken.kind===28?zt.push(Bt(Vr)):(Ae(Vr)&&zt.length>0&&(N(1,[t.createExpressionStatement(t.inlineExpressions(zt))]),zt=[]),zt.push(w.checkDefined(rt(Vr,ee,ht))));return t.inlineExpressions(zt)}function Mr(Re){let zt=jt(),Vr=vt();return Ga(Vr,w.checkDefined(rt(Re.left,ee,ht)),Re.left),Re.operatorToken.kind===56?uo(zt,Vr,Re.left):$t(zt,Vr,Re.left),Ga(Vr,w.checkDefined(rt(Re.right,ee,ht)),Re.right),Ce(zt),Vr}function ft(Re){if(Ae(Re.whenTrue)||Ae(Re.whenFalse)){let zt=jt(),Vr=jt(),ns=vt();return uo(zt,w.checkDefined(rt(Re.condition,ee,ht)),Re.condition),Ga(ns,w.checkDefined(rt(Re.whenTrue,ee,ht)),Re.whenTrue),Fa(Vr),Ce(zt),Ga(ns,w.checkDefined(rt(Re.whenFalse,ee,ht)),Re.whenFalse),Ce(Vr),ns}return Pr(Re,ee,e)}function qt(Re){let zt=jt(),Vr=rt(Re.expression,ee,ht);if(Re.asteriskToken){let ns=(Oa(Re.expression)&8388608)===0?mt(n().createValuesHelper(Vr),Re):Vr;Mc(ns,Re)}else rl(Vr,Re);return Ce(zt),d_(Re)}function Hr(Re){return bi(Re.elements,void 0,void 0,Re.multiLine)}function bi(Re,zt,Vr,ns){let ja=wt(Re),La;if(ja>0){La=vt();let zo=Br(Re,ee,ht,0,ja);Ga(La,t.createArrayLiteralExpression(zt?[zt,...zo]:zo)),zt=void 0}let Ca=lp(Re,bl,[],ja);return La?t.createArrayConcatCall(La,[t.createArrayLiteralExpression(Ca,ns)]):mt(t.createArrayLiteralExpression(zt?[zt,...Ca]:Ca,ns),Vr);function bl(zo,bc){if(Ae(bc)&&zo.length>0){let Oc=La!==void 0;La||(La=vt()),Ga(La,Oc?t.createArrayConcatCall(La,[t.createArrayLiteralExpression(zo,ns)]):t.createArrayLiteralExpression(zt?[zt,...zo]:zo,ns)),zt=void 0,zo=[]}return zo.push(w.checkDefined(rt(bc,ee,ht))),zo}}function us(Re){let zt=Re.properties,Vr=Re.multiLine,ns=wt(zt),ja=vt();Ga(ja,t.createObjectLiteralExpression(Br(zt,ee,Xh,0,ns),Vr));let La=lp(zt,Ca,[],ns);return La.push(Vr?Yu(Ka(mt(t.cloneNode(ja),ja),ja.parent)):ja),t.inlineExpressions(La);function Ca(bl,zo){Ae(zo)&&bl.length>0&&(Ys(t.createExpressionStatement(t.inlineExpressions(bl))),bl=[]);let bc=jie(t,Re,zo,ja),Oc=rt(bc,ee,ht);return Oc&&(Vr&&Yu(Oc),bl.push(Oc)),bl}}function At(Re){return Ae(Re.argumentExpression)?t.updateElementAccessExpression(Re,q(w.checkDefined(rt(Re.expression,ee,Jp))),w.checkDefined(rt(Re.argumentExpression,ee,ht))):Pr(Re,ee,e)}function Un(Re){if(!Up(Re)&&or(Re.arguments,Ae)){let{target:zt,thisArg:Vr}=t.createCallBinding(Re.expression,c,u,!0);return Rn(mt(t.createFunctionApplyCall(q(w.checkDefined(rt(zt,ee,Jp))),Vr,bi(Re.arguments)),Re),Re)}return Pr(Re,ee,e)}function rs(Re){if(or(Re.arguments,Ae)){let{target:zt,thisArg:Vr}=t.createCallBinding(t.createPropertyAccessExpression(Re.expression,"bind"),c);return Rn(mt(t.createNewExpression(t.createFunctionApplyCall(q(w.checkDefined(rt(zt,ee,ht))),Vr,bi(Re.arguments,t.createVoidZero())),void 0,[]),Re),Re)}return Pr(Re,ee,e)}function zn(Re,zt=0){let Vr=Re.length;for(let ns=zt;ns<Vr;ns++)_i(Re[ns])}function Sn(Re){Bs(Re)?zn(Re.statements):_i(Re)}function _i(Re){let zt=x;x||(x=Ae(Re)),qe(Re),x=zt}function qe(Re){switch(Re.kind){case 242:return bt(Re);case 245:return ar(Re);case 246:return ei(Re);case 247:return Mi(Re);case 248:return oa(Re);case 249:return Ds(Re);case 250:return Mt(Re);case 252:return pt(Re);case 253:return Ee(Re);case 254:return at(Re);case 255:return Le(Re);case 256:return kt(Re);case 257:return Rt(Re);case 258:return Gt(Re);case 259:return ln(Re);default:return Ys(rt(Re,ee,Ei))}}function bt(Re){Ae(Re)?zn(Re.statements):Ys(rt(Re,ee,Ei))}function ar(Re){Ys(rt(Re,ee,Ei))}function tn(Re){for(let La of Re.declarations){let Ca=t.cloneNode(La.name);gl(Ca,La.name),c(Ca)}let zt=gA(Re),Vr=zt.length,ns=0,ja=[];for(;ns<Vr;){for(let La=ns;La<Vr;La++){let Ca=zt[La];if(Ae(Ca.initializer)&&ja.length>0)break;ja.push(Xn(Ca))}ja.length&&(Ys(t.createExpressionStatement(t.inlineExpressions(ja))),ns+=ja.length,ja=[])}}function Xn(Re){return Ia(t.createAssignment(Ia(t.cloneNode(Re.name),Re.name),w.checkDefined(rt(Re.initializer,ee,ht))),Re)}function ei(Re){if(Ae(Re))if(Ae(Re.thenStatement)||Ae(Re.elseStatement)){let zt=jt(),Vr=Re.elseStatement?jt():void 0;uo(Re.elseStatement?Vr:zt,w.checkDefined(rt(Re.expression,ee,ht)),Re.expression),Sn(Re.thenStatement),Re.elseStatement&&(Fa(zt),Ce(Vr),Sn(Re.elseStatement)),Ce(zt)}else Ys(rt(Re,ee,Ei));else Ys(rt(Re,ee,Ei))}function Mi(Re){if(Ae(Re)){let zt=jt(),Vr=jt();Nt(zt),Ce(Vr),Sn(Re.statement),Ce(zt),$t(Vr,w.checkDefined(rt(Re.expression,ee,ht))),mr()}else Ys(rt(Re,ee,Ei))}function js(Re){return x?(ur(),Re=Pr(Re,ee,e),mr(),Re):Pr(Re,ee,e)}function oa(Re){if(Ae(Re)){let zt=jt(),Vr=Nt(zt);Ce(zt),uo(Vr,w.checkDefined(rt(Re.expression,ee,ht))),Sn(Re.statement),Fa(zt),mr()}else Ys(rt(Re,ee,Ei))}function wr(Re){return x?(ur(),Re=Pr(Re,ee,e),mr(),Re):Pr(Re,ee,e)}function Ds(Re){if(Ae(Re)){let zt=jt(),Vr=jt(),ns=Nt(Vr);if(Re.initializer){let ja=Re.initializer;lu(ja)?tn(ja):Ys(mt(t.createExpressionStatement(w.checkDefined(rt(ja,ee,ht))),ja))}Ce(zt),Re.condition&&uo(ns,w.checkDefined(rt(Re.condition,ee,ht))),Sn(Re.statement),Ce(Vr),Re.incrementor&&Ys(mt(t.createExpressionStatement(w.checkDefined(rt(Re.incrementor,ee,ht))),Re.incrementor)),Fa(zt),mr()}else Ys(rt(Re,ee,Ei))}function tt(Re){x&&ur();let zt=Re.initializer;if(zt&&lu(zt)){for(let ns of zt.declarations)c(ns.name);let Vr=gA(zt);Re=t.updateForStatement(Re,Vr.length>0?t.inlineExpressions(kr(Vr,Xn)):void 0,rt(Re.condition,ee,ht),rt(Re.incrementor,ee,ht),Ap(Re.statement,ee,e))}else Re=Pr(Re,ee,e);return x&&mr(),Re}function Mt(Re){if(Ae(Re)){let zt=vt(),Vr=vt(),ns=vt(),ja=t.createLoopVariable(),La=Re.initializer;c(ja),Ga(zt,w.checkDefined(rt(Re.expression,ee,ht))),Ga(Vr,t.createArrayLiteralExpression()),Ys(t.createForInStatement(ns,zt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(Vr,"push"),void 0,[ns])))),Ga(ja,t.createNumericLiteral(0));let Ca=jt(),bl=jt(),zo=Nt(bl);Ce(Ca),uo(zo,t.createLessThan(ja,t.createPropertyAccessExpression(Vr,"length"))),Ga(ns,t.createElementAccessExpression(Vr,ja)),uo(bl,t.createBinaryExpression(ns,103,zt));let bc;if(lu(La)){for(let Oc of La.declarations)c(Oc.name);bc=t.cloneNode(La.declarations[0].name)}else bc=w.checkDefined(rt(La,ee,ht)),w.assert(Jp(bc));Ga(bc,ns),Sn(Re.statement),Ce(bl),Ys(t.createExpressionStatement(t.createPostfixIncrement(ja))),Fa(Ca),mr()}else Ys(rt(Re,ee,Ei))}function se(Re){x&&ur();let zt=Re.initializer;if(lu(zt)){for(let Vr of zt.declarations)c(Vr.name);Re=t.updateForInStatement(Re,zt.declarations[0].name,w.checkDefined(rt(Re.expression,ee,ht)),w.checkDefined(rt(Re.statement,ee,Ei,t.liftToBlock)))}else Re=Pr(Re,ee,e);return x&&mr(),Re}function pt(Re){let zt=Cs(Re.label?Fn(Re.label):void 0);zt>0?Fa(zt,Re):Ys(Re)}function Z(Re){if(x){let zt=Cs(Re.label&&Fn(Re.label));if(zt>0)return fa(zt,Re)}return Pr(Re,ee,e)}function Ee(Re){let zt=Ki(Re.label?Fn(Re.label):void 0);zt>0?Fa(zt,Re):Ys(Re)}function et(Re){if(x){let zt=Ki(Re.label&&Fn(Re.label));if(zt>0)return fa(zt,Re)}return Pr(Re,ee,e)}function at(Re){Yl(rt(Re.expression,ee,ht),Re)}function Pt(Re){return Jc(rt(Re.expression,ee,ht),Re)}function Le(Re){Ae(Re)?(Jr(q(w.checkDefined(rt(Re.expression,ee,ht)))),Sn(Re.statement),ct()):Ys(rt(Re,ee,Ei))}function kt(Re){if(Ae(Re.caseBlock)){let zt=Re.caseBlock,Vr=zt.clauses.length,ns=Cr(),ja=q(w.checkDefined(rt(Re.expression,ee,ht))),La=[],Ca=-1;for(let bc=0;bc<Vr;bc++){let Oc=zt.clauses[bc];La.push(jt()),Oc.kind===298&&Ca===-1&&(Ca=bc)}let bl=0,zo=[];for(;bl<Vr;){let bc=0;for(let Oc=bl;Oc<Vr;Oc++){let Xf=zt.clauses[Oc];if(Xf.kind===297){if(Ae(Xf.expression)&&zo.length>0)break;zo.push(t.createCaseClause(w.checkDefined(rt(Xf.expression,ee,ht)),[fa(La[Oc],Xf.expression)]))}else bc++}zo.length&&(Ys(t.createSwitchStatement(ja,t.createCaseBlock(zo))),bl+=zo.length,zo=[]),bc>0&&(bl+=bc,bc=0)}Ca>=0?Fa(La[Ca]):Fa(ns);for(let bc=0;bc<Vr;bc++)Ce(La[bc]),zn(zt.clauses[bc].statements);rr()}else Ys(rt(Re,ee,Ei))}function Tt(Re){return x&&Tr(),Re=Pr(Re,ee,e),x&&rr(),Re}function Rt(Re){Ae(Re)?(Vs(Fn(Re.label)),Sn(Re.statement),qs()):Ys(rt(Re,ee,Ei))}function Ye(Re){return x&&di(Fn(Re.label)),Re=Pr(Re,ee,e),x&&qs(),Re}function Gt(Re){Ko(w.checkDefined(rt(Re.expression??t.createVoidZero(),ee,ht)),Re)}function ln(Re){Ae(Re)?(It(),Sn(Re.tryBlock),Re.catchClause&&(Ot(Re.catchClause.variableDeclaration),Sn(Re.catchClause.block)),Re.finallyBlock&&(Ht(),Sn(Re.finallyBlock)),hr()):Ys(Pr(Re,ee,e))}function Ae(Re){return!!Re&&(Re.transformFlags&1048576)!==0}function wt(Re){let zt=Re.length;for(let Vr=0;Vr<zt;Vr++)if(Ae(Re[Vr]))return Vr;return-1}function fe(Re,zt){return zt=d(Re,zt),Re===1?j(zt):zt}function j(Re){return Be(Re)?je(Re):Re}function je(Re){if(!ec(Re)&&h&&h.has(Fn(Re))){let zt=sc(Re);if(Be(zt)&&zt.parent){let Vr=g.getReferencedValueDeclaration(zt);if(Vr){let ns=S[Ep(Vr)];if(ns){let ja=Ka(mt(t.cloneNode(ns),ns),ns.parent);return Ia(ja,Re),gl(ja,Re),ja}}}}return Re}function q(Re){if(ec(Re)||Oa(Re)&8192)return Re;let zt=t.createTempVariable(c);return Ga(zt,Re,Re),zt}function vt(Re){let zt=Re?t.createUniqueName(Re):t.createTempVariable(void 0);return c(zt),zt}function jt(){O||(O=[]);let Re=z;return z++,O[Re]=-1,Re}function Ce(Re){w.assert(O!==void 0,"No labels were defined."),O[Re]=$?$.length:0}function ut(Re){I||(I=[],E=[],P=[],F=[]);let zt=E.length;return E[zt]=0,P[zt]=$?$.length:0,I[zt]=Re,F.push(Re),zt}function Qt(){let Re=Zr();if(Re===void 0)return w.fail("beginBlock was never called.");let zt=E.length;return E[zt]=1,P[zt]=$?$.length:0,I[zt]=Re,F.pop(),Re}function Zr(){return Wo(F)}function jr(){let Re=Zr();return Re&&Re.kind}function Jr(Re){let zt=jt(),Vr=jt();Ce(zt),ut({kind:1,expression:Re,startLabel:zt,endLabel:Vr})}function ct(){w.assert(jr()===1);let Re=Qt();Ce(Re.endLabel)}function It(){let Re=jt(),zt=jt();return Ce(Re),ut({kind:0,state:0,startLabel:Re,endLabel:zt}),ys(),zt}function Ot(Re){w.assert(jr()===0);let zt;if(ec(Re.name))zt=Re.name,c(Re.name);else{let La=Fn(Re.name);zt=vt(La),h||(h=new Map,S=[],e.enableSubstitution(80)),h.set(La,!0),S[Ep(Re)]=zt}let Vr=Zr();w.assert(Vr.state<1);let ns=Vr.endLabel;Fa(ns);let ja=jt();Ce(ja),Vr.state=1,Vr.catchVariable=zt,Vr.catchLabel=ja,Ga(zt,t.createCallExpression(t.createPropertyAccessExpression(_e,"sent"),void 0,[])),ys()}function Ht(){w.assert(jr()===0);let Re=Zr();w.assert(Re.state<2);let zt=Re.endLabel;Fa(zt);let Vr=jt();Ce(Vr),Re.state=2,Re.finallyLabel=Vr}function hr(){w.assert(jr()===0);let Re=Qt();Re.state<2?Fa(Re.endLabel):Rc(),Ce(Re.endLabel),ys(),Re.state=3}function ur(){ut({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function Nt(Re){let zt=jt();return ut({kind:3,isScript:!1,breakLabel:zt,continueLabel:Re}),zt}function mr(){w.assert(jr()===3);let Re=Qt(),zt=Re.breakLabel;Re.isScript||Ce(zt)}function Tr(){ut({kind:2,isScript:!0,breakLabel:-1})}function Cr(){let Re=jt();return ut({kind:2,isScript:!1,breakLabel:Re}),Re}function rr(){w.assert(jr()===2);let Re=Qt(),zt=Re.breakLabel;Re.isScript||Ce(zt)}function di(Re){ut({kind:4,isScript:!0,labelText:Re,breakLabel:-1})}function Vs(Re){let zt=jt();ut({kind:4,isScript:!1,labelText:Re,breakLabel:zt})}function qs(){w.assert(jr()===4);let Re=Qt();Re.isScript||Ce(Re.breakLabel)}function xs(Re){return Re.kind===2||Re.kind===3}function Dc(Re){return Re.kind===4}function vc(Re){return Re.kind===3}function vo(Re,zt){for(let Vr=zt;Vr>=0;Vr--){let ns=F[Vr];if(Dc(ns)){if(ns.labelText===Re)return!0}else break}return!1}function Ki(Re){if(F)if(Re)for(let zt=F.length-1;zt>=0;zt--){let Vr=F[zt];if(Dc(Vr)&&Vr.labelText===Re)return Vr.breakLabel;if(xs(Vr)&&vo(Re,zt-1))return Vr.breakLabel}else for(let zt=F.length-1;zt>=0;zt--){let Vr=F[zt];if(xs(Vr))return Vr.breakLabel}return 0}function Cs(Re){if(F)if(Re)for(let zt=F.length-1;zt>=0;zt--){let Vr=F[zt];if(vc(Vr)&&vo(Re,zt-1))return Vr.continueLabel}else for(let zt=F.length-1;zt>=0;zt--){let Vr=F[zt];if(vc(Vr))return Vr.continueLabel}return 0}function ll(Re){if(Re!==void 0&&Re>0){W===void 0&&(W=[]);let zt=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return W[Re]===void 0?W[Re]=[zt]:W[Re].push(zt),zt}return t.createOmittedExpression()}function Lo(Re){let zt=t.createNumericLiteral(Re);return FA(zt,3,eUe(Re)),zt}function fa(Re,zt){return w.assertLessThan(0,Re,"Invalid label"),mt(t.createReturnStatement(t.createArrayLiteralExpression([Lo(3),ll(Re)])),zt)}function Jc(Re,zt){return mt(t.createReturnStatement(t.createArrayLiteralExpression(Re?[Lo(2),Re]:[Lo(2)])),zt)}function d_(Re){return mt(t.createCallExpression(t.createPropertyAccessExpression(_e,"sent"),void 0,[]),Re)}function ys(){N(0)}function Ys(Re){Re?N(1,[Re]):ys()}function Ga(Re,zt,Vr){N(2,[Re,zt],Vr)}function Fa(Re,zt){N(3,[Re],zt)}function $t(Re,zt,Vr){N(4,[Re,zt],Vr)}function uo(Re,zt,Vr){N(5,[Re,zt],Vr)}function Mc(Re,zt){N(7,[Re],zt)}function rl(Re,zt){N(6,[Re],zt)}function Yl(Re,zt){N(8,[Re],zt)}function Ko(Re,zt){N(9,[Re],zt)}function Rc(){N(10)}function N(Re,zt,Vr){$===void 0&&($=[],X=[],U=[]),O===void 0&&Ce(jt());let ns=$.length;$[ns]=Re,X[ns]=zt,U[ns]=Vr}function We(){re=0,V=0,ce=void 0,oe=!1,le=!1,de=void 0,ve=void 0,H=void 0,Se=void 0,Je=void 0;let Re=dt();return n().createGeneratorHelper(yn(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,_e)],void 0,t.createBlock(Re,Re.length>0)),1048576))}function dt(){if($){for(let Re=0;Re<$.length;Re++)so(Re);Wr($.length)}else Wr(0);if(de){let Re=t.createPropertyAccessExpression(_e,"label"),zt=t.createSwitchStatement(Re,t.createCaseBlock(de));return[Yu(zt)]}return ve||[]}function Ut(){ve&&(hn(!oe),oe=!1,le=!1,V++)}function Wr(Re){Yn(Re)&&(Rr(Re),Je=void 0,Kc(void 0,void 0)),ve&&de&&hn(!1),Di()}function Yn(Re){if(!le)return!0;if(!O||!W)return!1;for(let zt=0;zt<O.length;zt++)if(O[zt]===Re&&W[zt])return!0;return!1}function hn(Re){if(de||(de=[]),ve){if(Je)for(let zt=Je.length-1;zt>=0;zt--){let Vr=Je[zt];ve=[t.createWithStatement(Vr.expression,t.createBlock(ve))]}if(Se){let{startLabel:zt,catchLabel:Vr,finallyLabel:ns,endLabel:ja}=Se;ve.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(_e,"trys"),"push"),void 0,[t.createArrayLiteralExpression([ll(zt),ll(Vr),ll(ns),ll(ja)])]))),Se=void 0}Re&&ve.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(_e,"label"),t.createNumericLiteral(V+1))))}de.push(t.createCaseClause(t.createNumericLiteral(V),ve||[])),ve=void 0}function Rr(Re){if(O)for(let zt=0;zt<O.length;zt++)O[zt]===Re&&(Ut(),ce===void 0&&(ce=[]),ce[V]===void 0?ce[V]=[zt]:ce[V].push(zt))}function Di(){if(W!==void 0&&ce!==void 0)for(let Re=0;Re<ce.length;Re++){let zt=ce[Re];if(zt!==void 0)for(let Vr of zt){let ns=W[Vr];if(ns!==void 0)for(let ja of ns)ja.text=String(Re)}}}function Ri(Re){if(I)for(;re<E.length&&P[re]<=Re;re++){let zt=I[re],Vr=E[re];switch(zt.kind){case 0:Vr===0?(H||(H=[]),ve||(ve=[]),H.push(Se),Se=zt):Vr===1&&(Se=H.pop());break;case 1:Vr===0?(Je||(Je=[]),Je.push(zt)):Vr===1&&Je.pop();break}}}function so(Re){if(Rr(Re),Ri(Re),oe)return;oe=!1,le=!1;let zt=$[Re];if(zt===0)return;if(zt===10)return Xp();let Vr=X[Re];if(zt===1)return ua(Vr[0]);let ns=U[Re];switch(zt){case 2:return Xo(Vr[0],Vr[1],ns);case 3:return Eo(Vr[0],ns);case 4:return Uc(Vr[0],Vr[1],ns);case 5:return Of(Vr[0],Vr[1],ns);case 6:return Cu(Vr[0],ns);case 7:return Kf(Vr[0],ns);case 8:return Kc(Vr[0],ns);case 9:return ul(Vr[0],ns)}}function ua(Re){Re&&(ve?ve.push(Re):ve=[Re])}function Xo(Re,zt,Vr){ua(mt(t.createExpressionStatement(t.createAssignment(Re,zt)),Vr))}function ul(Re,zt){oe=!0,le=!0,ua(mt(t.createThrowStatement(Re),zt))}function Kc(Re,zt){oe=!0,le=!0,ua(yn(mt(t.createReturnStatement(t.createArrayLiteralExpression(Re?[Lo(2),Re]:[Lo(2)])),zt),768))}function Eo(Re,zt){oe=!0,ua(yn(mt(t.createReturnStatement(t.createArrayLiteralExpression([Lo(3),ll(Re)])),zt),768))}function Uc(Re,zt,Vr){ua(yn(t.createIfStatement(zt,yn(mt(t.createReturnStatement(t.createArrayLiteralExpression([Lo(3),ll(Re)])),Vr),768)),1))}function Of(Re,zt,Vr){ua(yn(t.createIfStatement(t.createLogicalNot(zt),yn(mt(t.createReturnStatement(t.createArrayLiteralExpression([Lo(3),ll(Re)])),Vr),768)),1))}function Cu(Re,zt){oe=!0,ua(yn(mt(t.createReturnStatement(t.createArrayLiteralExpression(Re?[Lo(4),Re]:[Lo(4)])),zt),768))}function Kf(Re,zt){oe=!0,ua(yn(mt(t.createReturnStatement(t.createArrayLiteralExpression([Lo(5),Re])),zt),768))}function Xp(){oe=!0,ua(t.createReturnStatement(t.createArrayLiteralExpression([Lo(7)])))}}function QU(e){function t(fe){switch(fe){case 2:return X;case 3:return U;default:return $}}let{factory:n,getEmitHelperFactory:i,startLexicalEnvironment:s,endLexicalEnvironment:o,hoistVariableDeclaration:c}=e,p=e.getCompilerOptions(),u=e.getEmitResolver(),g=e.getEmitHost(),d=xa(p),h=_p(p),S=e.onSubstituteNode,T=e.onEmitNode;e.onSubstituteNode=kt,e.onEmitNode=Le,e.enableSubstitution(214),e.enableSubstitution(216),e.enableSubstitution(80),e.enableSubstitution(227),e.enableSubstitution(305),e.enableEmitNotification(308);let x=[],I,P,E,F=[],O;return pm(e,W);function W(fe){if(fe.isDeclarationFile||!(Lw(fe,p)||fe.transformFlags&8388608||M_(fe)&&D8(p)&&p.outFile))return fe;I=fe,P=zU(e,fe),x[Ep(fe)]=P,p.rewriteRelativeImportExtensions&&Y8(fe,!1,!1,q=>{(!Ha(q.arguments[0])||m6(q.arguments[0].text,p))&&(E=Fr(E,q))});let je=t(h)(fe);return I=void 0,P=void 0,O=!1,je}function z(){return gh(I.fileName)&&I.commonJsModuleIndicator&&(!I.externalModuleIndicator||I.externalModuleIndicator===!0)?!1:!!(!P.exportEquals&&Pl(I))}function $(fe){s();let j=[],je=Ru(p,"alwaysStrict")||Pl(I),q=n.copyPrologue(fe.statements,j,je&&!M_(fe),oe);if(z()&&Fr(j,Ee()),_t(P.exportedNames))for(let Ce=0;Ce<P.exportedNames.length;Ce+=50)Fr(j,n.createExpressionStatement(lp(P.exportedNames.slice(Ce,Ce+50),(ut,Qt)=>Qt.kind===11?n.createAssignment(n.createElementAccessExpression(n.createIdentifier("exports"),n.createStringLiteral(Qt.text)),ut):n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(Fn(Qt))),ut),n.createVoidZero())));for(let jt of P.exportedFunctions)se(j,jt);Fr(j,rt(P.externalHelpersImportDeclaration,oe,Ei)),Gn(j,Br(fe.statements,oe,Ei,q)),ce(j,!1),lh(j,o());let vt=n.updateSourceFile(fe,mt(n.createNodeArray(j),fe.statements));return vh(vt,e.readEmitHelpers()),vt}function X(fe){let j=n.createIdentifier("define"),je=y4(n,fe,g,p),q=M_(fe)&&fe,{aliasedModuleNames:vt,unaliasedModuleNames:jt,importAliasNames:Ce}=_e(fe,!0),ut=n.updateSourceFile(fe,mt(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(j,void 0,[...je?[je]:[],n.createArrayLiteralExpression(q?Ke:[n.createStringLiteral("require"),n.createStringLiteral("exports"),...vt,...jt]),q?q.statements.length?q.statements[0].expression:n.createObjectLiteralExpression():n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,"exports"),...Ce],void 0,V(fe))]))]),fe.statements));return vh(ut,e.readEmitHelpers()),ut}function U(fe){let{aliasedModuleNames:j,unaliasedModuleNames:je,importAliasNames:q}=_e(fe,!1),vt=y4(n,fe,g,p),jt=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"factory")],void 0,mt(n.createBlock([n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("module"),"object"),n.createTypeCheck(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),"object")),n.createBlock([n.createVariableStatement(void 0,[n.createVariableDeclaration("v",void 0,void 0,n.createCallExpression(n.createIdentifier("factory"),void 0,[n.createIdentifier("require"),n.createIdentifier("exports")]))]),yn(n.createIfStatement(n.createStrictInequality(n.createIdentifier("v"),n.createIdentifier("undefined")),n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),n.createIdentifier("v")))),1)]),n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("define"),"function"),n.createPropertyAccessExpression(n.createIdentifier("define"),"amd")),n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("define"),void 0,[...vt?[vt]:[],n.createArrayLiteralExpression([n.createStringLiteral("require"),n.createStringLiteral("exports"),...j,...je]),n.createIdentifier("factory")]))])))],!0),void 0)),Ce=n.updateSourceFile(fe,mt(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(jt,void 0,[n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,"exports"),...q],void 0,V(fe))]))]),fe.statements));return vh(Ce,e.readEmitHelpers()),Ce}function _e(fe,j){let je=[],q=[],vt=[];for(let jt of fe.amdDependencies)jt.name?(je.push(n.createStringLiteral(jt.path)),vt.push(n.createParameterDeclaration(void 0,void 0,jt.name))):q.push(n.createStringLiteral(jt.path));for(let jt of P.externalImports){let Ce=Q2(n,jt,I,g,u,p),ut=CI(n,jt,I);Ce&&(j&&ut?(yn(ut,8),je.push(Ce),vt.push(n.createParameterDeclaration(void 0,void 0,ut))):q.push(Ce))}return{aliasedModuleNames:je,unaliasedModuleNames:q,importAliasNames:vt}}function re(fe){if(Dl(fe)||tl(fe)||!Q2(n,fe,I,g,u,p))return;let j=CI(n,fe,I),je=zn(fe,j);if(je!==j)return n.createExpressionStatement(n.createAssignment(j,je))}function V(fe){s();let j=[],je=n.copyPrologue(fe.statements,j,!0,oe);z()&&Fr(j,Ee()),_t(P.exportedNames)&&Fr(j,n.createExpressionStatement(lp(P.exportedNames,(vt,jt)=>jt.kind===11?n.createAssignment(n.createElementAccessExpression(n.createIdentifier("exports"),n.createStringLiteral(jt.text)),vt):n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(Fn(jt))),vt),n.createVoidZero())));for(let vt of P.exportedFunctions)se(j,vt);Fr(j,rt(P.externalHelpersImportDeclaration,oe,Ei)),h===2&&Gn(j,Ji(P.externalImports,re)),Gn(j,Br(fe.statements,oe,Ei,je)),ce(j,!0),lh(j,o());let q=n.createBlock(j,!0);return O&&O2(q,tUe),q}function ce(fe,j){if(P.exportEquals){let je=rt(P.exportEquals.expression,ve,ht);if(je)if(j){let q=n.createReturnStatement(je);mt(q,P.exportEquals),yn(q,3840),fe.push(q)}else{let q=n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),je));mt(q,P.exportEquals),yn(q,3072),fe.push(q)}}}function oe(fe){switch(fe.kind){case 273:return Sn(fe);case 272:return qe(fe);case 279:return bt(fe);case 278:return ar(fe);default:return le(fe)}}function le(fe){switch(fe.kind){case 244:return ei(fe);case 263:return tn(fe);case 264:return Xn(fe);case 249:return ye(fe,!0);case 250:return ee(fe);case 251:return ge(fe);case 247:return ke(fe);case 248:return Oe(fe);case 257:return nt(fe);case 255:return ae(fe);case 246:return Ue(fe);case 256:return te(fe);case 270:return Ne(fe);case 297:return Ie(fe);case 298:return xe(fe);case 259:return Qe(fe);case 300:return St(fe);case 242:return Bt(fe);default:return ve(fe)}}function de(fe,j){if(!(fe.transformFlags&276828160)&&!E?.length)return fe;switch(fe.kind){case 249:return ye(fe,!1);case 245:return fr(fe);case 218:return Mr(fe,j);case 356:return ft(fe,j);case 214:let je=fe===_l(E);if(je&&E.shift(),Up(fe)&&g.shouldTransformImportCall(I))return bi(fe,je);if(je)return Hr(fe);break;case 227:if(Yy(fe))return Je(fe,j);break;case 225:case 226:return qt(fe,j)}return Pr(fe,ve,e)}function ve(fe){return de(fe,!1)}function H(fe){return de(fe,!0)}function Se(fe){if(Sa(fe))for(let j of fe.properties)switch(j.kind){case 304:if(Se(j.initializer))return!0;break;case 305:if(Se(j.name))return!0;break;case 306:if(Se(j.expression))return!0;break;case 175:case 178:case 179:return!1;default:w.assertNever(j,"Unhandled object member kind")}else if(Tu(fe)){for(let j of fe.elements)if(z_(j)){if(Se(j.expression))return!0}else if(Se(j))return!0}else if(Be(fe))return Dr(wt(fe))>(T7(fe)?1:0);return!1}function Je(fe,j){return Se(fe.left)?Nk(fe,ve,e,0,!j,Mi):Pr(fe,ve,e)}function ye(fe,j){if(j&&fe.initializer&&lu(fe.initializer)&&!(fe.initializer.flags&7)){let je=tt(void 0,fe.initializer,!1);if(je){let q=[],vt=rt(fe.initializer,H,lu),jt=n.createVariableStatement(void 0,vt);q.push(jt),Gn(q,je);let Ce=rt(fe.condition,ve,ht),ut=rt(fe.incrementor,H,ht),Qt=Ap(fe.statement,j?le:ve,e);return q.push(n.updateForStatement(fe,void 0,Ce,ut,Qt)),q}}return n.updateForStatement(fe,rt(fe.initializer,H,E_),rt(fe.condition,ve,ht),rt(fe.incrementor,H,ht),Ap(fe.statement,j?le:ve,e))}function ee(fe){if(lu(fe.initializer)&&!(fe.initializer.flags&7)){let j=tt(void 0,fe.initializer,!0);if(_t(j)){let je=rt(fe.initializer,H,E_),q=rt(fe.expression,ve,ht),vt=Ap(fe.statement,le,e),jt=Bs(vt)?n.updateBlock(vt,[...j,...vt.statements]):n.createBlock([...j,vt],!0);return n.updateForInStatement(fe,je,q,jt)}}return n.updateForInStatement(fe,rt(fe.initializer,H,E_),rt(fe.expression,ve,ht),Ap(fe.statement,le,e))}function ge(fe){if(lu(fe.initializer)&&!(fe.initializer.flags&7)){let j=tt(void 0,fe.initializer,!0),je=rt(fe.initializer,H,E_),q=rt(fe.expression,ve,ht),vt=Ap(fe.statement,le,e);return _t(j)&&(vt=Bs(vt)?n.updateBlock(vt,[...j,...vt.statements]):n.createBlock([...j,vt],!0)),n.updateForOfStatement(fe,fe.awaitModifier,je,q,vt)}return n.updateForOfStatement(fe,fe.awaitModifier,rt(fe.initializer,H,E_),rt(fe.expression,ve,ht),Ap(fe.statement,le,e))}function ke(fe){return n.updateDoStatement(fe,Ap(fe.statement,le,e),rt(fe.expression,ve,ht))}function Oe(fe){return n.updateWhileStatement(fe,rt(fe.expression,ve,ht),Ap(fe.statement,le,e))}function nt(fe){return n.updateLabeledStatement(fe,fe.label,rt(fe.statement,le,Ei,n.liftToBlock)??mt(n.createEmptyStatement(),fe.statement))}function ae(fe){return n.updateWithStatement(fe,rt(fe.expression,ve,ht),w.checkDefined(rt(fe.statement,le,Ei,n.liftToBlock)))}function Ue(fe){return n.updateIfStatement(fe,rt(fe.expression,ve,ht),rt(fe.thenStatement,le,Ei,n.liftToBlock)??n.createBlock([]),rt(fe.elseStatement,le,Ei,n.liftToBlock))}function te(fe){return n.updateSwitchStatement(fe,rt(fe.expression,ve,ht),w.checkDefined(rt(fe.caseBlock,le,VA)))}function Ne(fe){return n.updateCaseBlock(fe,Br(fe.clauses,le,gF))}function Ie(fe){return n.updateCaseClause(fe,rt(fe.expression,ve,ht),Br(fe.statements,le,Ei))}function xe(fe){return Pr(fe,le,e)}function Qe(fe){return Pr(fe,le,e)}function St(fe){return n.updateCatchClause(fe,fe.variableDeclaration,w.checkDefined(rt(fe.block,le,Bs)))}function Bt(fe){return fe=Pr(fe,le,e),fe}function fr(fe){return n.updateExpressionStatement(fe,rt(fe.expression,H,ht))}function Mr(fe,j){return n.updateParenthesizedExpression(fe,rt(fe.expression,j?H:ve,ht))}function ft(fe,j){return n.updatePartiallyEmittedExpression(fe,rt(fe.expression,j?H:ve,ht))}function qt(fe,j){if((fe.operator===46||fe.operator===47)&&Be(fe.operand)&&!ec(fe.operand)&&!cy(fe.operand)&&!dG(fe.operand)){let je=wt(fe.operand);if(je){let q,vt=rt(fe.operand,ve,ht);V0(fe)?vt=n.updatePrefixUnaryExpression(fe,vt):(vt=n.updatePostfixUnaryExpression(fe,vt),j||(q=n.createTempVariable(c),vt=n.createAssignment(q,vt),mt(vt,fe)),vt=n.createComma(vt,n.cloneNode(fe.operand)),mt(vt,fe));for(let jt of je)F[qa(vt)]=!0,vt=at(jt,vt),mt(vt,fe);return q&&(F[qa(vt)]=!0,vt=n.createComma(vt,q),mt(vt,fe)),vt}}return Pr(fe,ve,e)}function Hr(fe){return n.updateCallExpression(fe,fe.expression,void 0,Br(fe.arguments,j=>j===fe.arguments[0]?Ha(j)?rC(j,p):i().createRewriteRelativeImportExtensionsHelper(j):ve(j),ht))}function bi(fe,j){if(h===0&&d>=7)return Pr(fe,ve,e);let je=Q2(n,fe,I,g,u,p),q=rt(_l(fe.arguments),ve,ht),vt=je&&(!q||!ya(q)||q.text!==je.text)?je:q&&j?ya(q)?rC(q,p):i().createRewriteRelativeImportExtensionsHelper(q):q,jt=!!(fe.transformFlags&16384);switch(p.module){case 2:return At(vt,jt);case 3:return us(vt??n.createVoidZero(),jt);default:return Un(vt)}}function us(fe,j){if(O=!0,qS(fe)){let je=ec(fe)?fe:ya(fe)?n.createStringLiteralFromNode(fe):yn(mt(n.cloneNode(fe),fe),3072);return n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,Un(fe),void 0,At(je,j))}else{let je=n.createTempVariable(c);return n.createComma(n.createAssignment(je,fe),n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,Un(je,!0),void 0,At(je,j)))}}function At(fe,j){let je=n.createUniqueName("resolve"),q=n.createUniqueName("reject"),vt=[n.createParameterDeclaration(void 0,void 0,je),n.createParameterDeclaration(void 0,void 0,q)],jt=n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("require"),void 0,[n.createArrayLiteralExpression([fe||n.createOmittedExpression()]),je,q]))]),Ce;d>=2?Ce=n.createArrowFunction(void 0,void 0,vt,void 0,void 0,jt):(Ce=n.createFunctionExpression(void 0,void 0,void 0,void 0,vt,void 0,jt),j&&yn(Ce,16));let ut=n.createNewExpression(n.createIdentifier("Promise"),void 0,[Ce]);return Vm(p)?n.createCallExpression(n.createPropertyAccessExpression(ut,n.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):ut}function Un(fe,j){let je=fe&&!eg(fe)&&!j,q=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Promise"),"resolve"),void 0,je?d>=2?[n.createTemplateExpression(n.createTemplateHead(""),[n.createTemplateSpan(fe,n.createTemplateTail(""))])]:[n.createCallExpression(n.createPropertyAccessExpression(n.createStringLiteral(""),"concat"),void 0,[fe])]:[]),vt=n.createCallExpression(n.createIdentifier("require"),void 0,je?[n.createIdentifier("s")]:fe?[fe]:[]);Vm(p)&&(vt=i().createImportStarHelper(vt));let jt=je?[n.createParameterDeclaration(void 0,void 0,"s")]:[],Ce;return d>=2?Ce=n.createArrowFunction(void 0,void 0,jt,void 0,void 0,vt):Ce=n.createFunctionExpression(void 0,void 0,void 0,void 0,jt,void 0,n.createBlock([n.createReturnStatement(vt)])),n.createCallExpression(n.createPropertyAccessExpression(q,"then"),void 0,[Ce])}function rs(fe,j){return!Vm(p)||Rd(fe)&2?j:fae(fe)?i().createImportStarHelper(j):j}function zn(fe,j){return!Vm(p)||Rd(fe)&2?j:sj(fe)?i().createImportStarHelper(j):BU(fe)?i().createImportDefaultHelper(j):j}function Sn(fe){let j,je=qw(fe);if(h!==2)if(fe.importClause){let q=[];je&&!sk(fe)?q.push(n.createVariableDeclaration(n.cloneNode(je.name),void 0,void 0,zn(fe,_i(fe)))):(q.push(n.createVariableDeclaration(n.getGeneratedNameForNode(fe),void 0,void 0,zn(fe,_i(fe)))),je&&sk(fe)&&q.push(n.createVariableDeclaration(n.cloneNode(je.name),void 0,void 0,n.getGeneratedNameForNode(fe)))),j=Fr(j,Rn(mt(n.createVariableStatement(void 0,n.createVariableDeclarationList(q,d>=2?2:0)),fe),fe))}else return Rn(mt(n.createExpressionStatement(_i(fe)),fe),fe);else je&&sk(fe)&&(j=Fr(j,n.createVariableStatement(void 0,n.createVariableDeclarationList([Rn(mt(n.createVariableDeclaration(n.cloneNode(je.name),void 0,void 0,n.getGeneratedNameForNode(fe)),fe),fe)],d>=2?2:0))));return j=oa(j,fe),vg(j)}function _i(fe){let j=Q2(n,fe,I,g,u,p),je=[];return j&&je.push(rC(j,p)),n.createCallExpression(n.createIdentifier("require"),void 0,je)}function qe(fe){w.assert(M0(fe),"import= for internal module references should be handled in an earlier transformer.");let j;return h!==2?ri(fe,32)?j=Fr(j,Rn(mt(n.createExpressionStatement(at(fe.name,_i(fe))),fe),fe)):j=Fr(j,Rn(mt(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(fe.name),void 0,void 0,_i(fe))],d>=2?2:0)),fe),fe)):ri(fe,32)&&(j=Fr(j,Rn(mt(n.createExpressionStatement(at(n.getExportName(fe),n.getLocalName(fe))),fe),fe))),j=wr(j,fe),vg(j)}function bt(fe){if(!fe.moduleSpecifier)return;let j=n.getGeneratedNameForNode(fe);if(fe.exportClause&&G_(fe.exportClause)){let je=[];h!==2&&je.push(Rn(mt(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(j,void 0,void 0,_i(fe))])),fe),fe));for(let q of fe.exportClause.elements){let vt=q.propertyName||q.name,Ce=!!Vm(p)&&!(Rd(fe)&2)&&xg(vt)?i().createImportDefaultHelper(j):j,ut=vt.kind===11?n.createElementAccessExpression(Ce,vt):n.createPropertyAccessExpression(Ce,vt);je.push(Rn(mt(n.createExpressionStatement(at(q.name.kind===11?n.cloneNode(q.name):n.getExportName(q),ut,void 0,!0)),q),q))}return vg(je)}else if(fe.exportClause){let je=[];return je.push(Rn(mt(n.createExpressionStatement(at(n.cloneNode(fe.exportClause.name),rs(fe,h!==2?_i(fe):DF(fe)||fe.exportClause.name.kind===11?j:n.createIdentifier(Fn(fe.exportClause.name))))),fe),fe)),vg(je)}else return Rn(mt(n.createExpressionStatement(i().createExportStarHelper(h!==2?_i(fe):j)),fe),fe)}function ar(fe){if(!fe.isExportEquals)return et(n.createIdentifier("default"),rt(fe.expression,ve,ht),fe,!0)}function tn(fe){let j;return ri(fe,32)?j=Fr(j,Rn(mt(n.createFunctionDeclaration(Br(fe.modifiers,Pt,la),fe.asteriskToken,n.getDeclarationName(fe,!0,!0),void 0,Br(fe.parameters,ve,Gi),void 0,Pr(fe.body,ve,e)),fe),fe)):j=Fr(j,Pr(fe,ve,e)),vg(j)}function Xn(fe){let j;return ri(fe,32)?j=Fr(j,Rn(mt(n.createClassDeclaration(Br(fe.modifiers,Pt,tc),n.getDeclarationName(fe,!0,!0),void 0,Br(fe.heritageClauses,ve,Af),Br(fe.members,ve,cl)),fe),fe)):j=Fr(j,Pr(fe,ve,e)),j=se(j,fe),vg(j)}function ei(fe){let j,je,q;if(ri(fe,32)){let vt,jt=!1;for(let Ce of fe.declarationList.declarations)if(Be(Ce.name)&&cy(Ce.name))if(vt||(vt=Br(fe.modifiers,Pt,la)),Ce.initializer){let ut=n.updateVariableDeclaration(Ce,Ce.name,void 0,void 0,at(Ce.name,rt(Ce.initializer,ve,ht)));je=Fr(je,ut)}else je=Fr(je,Ce);else if(Ce.initializer)if(!Ls(Ce.name)&&(Fo(Ce.initializer)||Ao(Ce.initializer)||Zc(Ce.initializer))){let ut=n.createAssignment(mt(n.createPropertyAccessExpression(n.createIdentifier("exports"),Ce.name),Ce.name),n.createIdentifier(R_(Ce.name))),Qt=n.createVariableDeclaration(Ce.name,Ce.exclamationToken,Ce.type,rt(Ce.initializer,ve,ht));je=Fr(je,Qt),q=Fr(q,ut),jt=!0}else q=Fr(q,js(Ce));if(je&&(j=Fr(j,n.updateVariableStatement(fe,vt,n.updateVariableDeclarationList(fe.declarationList,je)))),q){let Ce=Rn(mt(n.createExpressionStatement(n.inlineExpressions(q)),fe),fe);jt&&n4(Ce),j=Fr(j,Ce)}}else j=Fr(j,Pr(fe,ve,e));return j=Ds(j,fe),vg(j)}function Mi(fe,j,je){let q=wt(fe);if(q){let vt=T7(fe)?j:n.createAssignment(fe,j);for(let jt of q)yn(vt,8),vt=at(jt,vt,je);return vt}return n.createAssignment(fe,j)}function js(fe){return Ls(fe.name)?Nk(rt(fe,ve,F6),ve,e,0,!1,Mi):n.createAssignment(mt(n.createPropertyAccessExpression(n.createIdentifier("exports"),fe.name),fe.name),fe.initializer?rt(fe.initializer,ve,ht):n.createVoidZero())}function oa(fe,j){if(P.exportEquals)return fe;let je=j.importClause;if(!je)return fe;let q=new FI;je.name&&(fe=pt(fe,q,je));let vt=je.namedBindings;if(vt)switch(vt.kind){case 275:fe=pt(fe,q,vt);break;case 276:for(let jt of vt.elements)fe=pt(fe,q,jt,!0);break}return fe}function wr(fe,j){return P.exportEquals?fe:pt(fe,new FI,j)}function Ds(fe,j){return tt(fe,j.declarationList,!1)}function tt(fe,j,je){if(P.exportEquals)return fe;for(let q of j.declarations)fe=Mt(fe,q,je);return fe}function Mt(fe,j,je){if(P.exportEquals)return fe;if(Ls(j.name))for(let q of j.name.elements)Fl(q)||(fe=Mt(fe,q,je));else!ec(j.name)&&(!li(j)||j.initializer||je)&&(fe=pt(fe,new FI,j));return fe}function se(fe,j){if(P.exportEquals)return fe;let je=new FI;if(ri(j,32)){let q=ri(j,2048)?n.createIdentifier("default"):n.getDeclarationName(j);fe=Z(fe,je,q,n.getLocalName(j),j)}return j.name&&(fe=pt(fe,je,j)),fe}function pt(fe,j,je,q){let vt=n.getDeclarationName(je),jt=P.exportSpecifiers.get(vt);if(jt)for(let Ce of jt)fe=Z(fe,j,Ce.name,vt,Ce.name,void 0,q);return fe}function Z(fe,j,je,q,vt,jt,Ce){if(je.kind!==11){if(j.has(je))return fe;j.set(je,!0)}return fe=Fr(fe,et(je,q,vt,jt,Ce)),fe}function Ee(){let fe=n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteral("__esModule"),n.createObjectLiteralExpression([n.createPropertyAssignment("value",n.createTrue())])]));return yn(fe,2097152),fe}function et(fe,j,je,q,vt){let jt=mt(n.createExpressionStatement(at(fe,j,void 0,vt)),je);return Yu(jt),q||yn(jt,3072),jt}function at(fe,j,je,q){return mt(q?n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteralFromNode(fe),n.createObjectLiteralExpression([n.createPropertyAssignment("enumerable",n.createTrue()),n.createPropertyAssignment("get",n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(j)])))])]):n.createAssignment(fe.kind===11?n.createElementAccessExpression(n.createIdentifier("exports"),n.cloneNode(fe)):n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(fe)),j),je)}function Pt(fe){switch(fe.kind){case 95:case 90:return}return fe}function Le(fe,j,je){j.kind===308?(I=j,P=x[Ep(I)],T(fe,j,je),I=void 0,P=void 0):T(fe,j,je)}function kt(fe,j){return j=S(fe,j),j.id&&F[j.id]?j:fe===1?Rt(j):Fu(j)?Tt(j):j}function Tt(fe){let j=fe.name,je=ln(j);if(je!==j){if(fe.objectAssignmentInitializer){let q=n.createAssignment(je,fe.objectAssignmentInitializer);return mt(n.createPropertyAssignment(j,q),fe)}return mt(n.createPropertyAssignment(j,je),fe)}return fe}function Rt(fe){switch(fe.kind){case 80:return ln(fe);case 214:return Ye(fe);case 216:return Gt(fe);case 227:return Ae(fe)}return fe}function Ye(fe){if(Be(fe.expression)){let j=ln(fe.expression);if(F[qa(j)]=!0,!Be(j)&&!(Oa(fe.expression)&8192))return _k(n.updateCallExpression(fe,j,void 0,fe.arguments),16)}return fe}function Gt(fe){if(Be(fe.tag)){let j=ln(fe.tag);if(F[qa(j)]=!0,!Be(j)&&!(Oa(fe.tag)&8192))return _k(n.updateTaggedTemplateExpression(fe,j,void 0,fe.template),16)}return fe}function ln(fe){var j,je;if(Oa(fe)&8192){let q=h4(I);return q?n.createPropertyAccessExpression(q,fe):fe}else if(!(ec(fe)&&!(fe.emitNode.autoGenerate.flags&64))&&!cy(fe)){let q=u.getReferencedExportContainer(fe,T7(fe));if(q&&q.kind===308)return mt(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(fe)),fe);let vt=u.getReferencedImportDeclaration(fe);if(vt){if(Ld(vt))return mt(n.createPropertyAccessExpression(n.getGeneratedNameForNode(vt.parent),n.createIdentifier("default")),fe);if(gp(vt)){let jt=vt.propertyName||vt.name,Ce=n.getGeneratedNameForNode(((je=(j=vt.parent)==null?void 0:j.parent)==null?void 0:je.parent)||vt);return mt(jt.kind===11?n.createElementAccessExpression(Ce,n.cloneNode(jt)):n.createPropertyAccessExpression(Ce,n.cloneNode(jt)),fe)}}}return fe}function Ae(fe){if(ry(fe.operatorToken.kind)&&Be(fe.left)&&(!ec(fe.left)||NM(fe.left))&&!cy(fe.left)){let j=wt(fe.left);if(j){let je=fe;for(let q of j)F[qa(je)]=!0,je=at(q,je,fe);return je}}return fe}function wt(fe){if(ec(fe)){if(NM(fe)){let j=P?.exportSpecifiers.get(fe);if(j){let je=[];for(let q of j)je.push(q.name);return je}}}else{let j=u.getReferencedImportDeclaration(fe);if(j)return P?.exportedBindings[Ep(j)];let je=new Set,q=u.getReferencedValueDeclarations(fe);if(q){for(let vt of q){let jt=P?.exportedBindings[Ep(vt)];if(jt)for(let Ce of jt)je.add(Ce)}if(je.size)return ds(je)}}}}var tUe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:`
|
|
var __syncRequire = typeof module === "object" && typeof module.exports === "object";`};function zae(e){let{factory:t,startLexicalEnvironment:n,endLexicalEnvironment:i,hoistVariableDeclaration:s}=e,o=e.getCompilerOptions(),c=e.getEmitResolver(),p=e.getEmitHost(),u=e.onSubstituteNode,g=e.onEmitNode;e.onSubstituteNode=Ee,e.onEmitNode=Z,e.enableSubstitution(80),e.enableSubstitution(305),e.enableSubstitution(227),e.enableSubstitution(237),e.enableEmitNotification(308);let d=[],h=[],S=[],T=[],x,I,P,E,F,O,W;return pm(e,z);function z(Ae){if(Ae.isDeclarationFile||!(Lw(Ae,o)||Ae.transformFlags&8388608))return Ae;let wt=Ep(Ae);x=Ae,O=Ae,I=d[wt]=zU(e,Ae),P=t.createUniqueName("exports"),h[wt]=P,E=T[wt]=t.createUniqueName("context");let fe=$(I.externalImports),j=X(Ae,fe),je=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,P),t.createParameterDeclaration(void 0,void 0,E)],void 0,j),q=y4(t,Ae,p,o),vt=t.createArrayLiteralExpression(kr(fe,Ce=>Ce.name)),jt=yn(t.updateSourceFile(Ae,mt(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,q?[q,vt,je]:[vt,je]))]),Ae.statements)),2048);return o.outFile||Yne(jt,j,Ce=>!Ce.scoped),W&&(S[wt]=W,W=void 0),x=void 0,I=void 0,P=void 0,E=void 0,F=void 0,O=void 0,jt}function $(Ae){let wt=new Map,fe=[];for(let j of Ae){let je=Q2(t,j,x,p,c,o);if(je){let q=je.text,vt=wt.get(q);vt!==void 0?fe[vt].externalImports.push(j):(wt.set(q,fe.length),fe.push({name:je,externalImports:[j]}))}}return fe}function X(Ae,wt){let fe=[];n();let j=Ru(o,"alwaysStrict")||Pl(x),je=t.copyPrologue(Ae.statements,fe,j,V);fe.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(E,t.createPropertyAccessExpression(E,"id")))]))),rt(I.externalHelpersImportDeclaration,V,Ei);let q=Br(Ae.statements,V,Ei,je);Gn(fe,F),lh(fe,i());let vt=U(fe),jt=Ae.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,Ce=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",re(vt,wt)),t.createPropertyAssignment("execute",t.createFunctionExpression(jt,void 0,void 0,void 0,[],void 0,t.createBlock(q,!0)))],!0);return fe.push(t.createReturnStatement(Ce)),t.createBlock(fe,!0)}function U(Ae){if(!I.hasExportStarsToExportValues)return;if(!_t(I.exportedNames)&&I.exportedFunctions.size===0&&I.exportSpecifiers.size===0){let je=!1;for(let q of I.externalImports)if(q.kind===279&&q.exportClause){je=!0;break}if(!je){let q=_e(void 0);return Ae.push(q),q.name}}let wt=[];if(I.exportedNames)for(let je of I.exportedNames)xg(je)||wt.push(t.createPropertyAssignment(t.createStringLiteralFromNode(je),t.createTrue()));for(let je of I.exportedFunctions)ri(je,2048)||(w.assert(!!je.name),wt.push(t.createPropertyAssignment(t.createStringLiteralFromNode(je.name),t.createTrue())));let fe=t.createUniqueName("exportedNames");Ae.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(fe,void 0,void 0,t.createObjectLiteralExpression(wt,!0))])));let j=_e(fe);return Ae.push(j),j.name}function _e(Ae){let wt=t.createUniqueName("exportStar"),fe=t.createIdentifier("m"),j=t.createIdentifier("n"),je=t.createIdentifier("exports"),q=t.createStrictInequality(j,t.createStringLiteral("default"));return Ae&&(q=t.createLogicalAnd(q,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(Ae,"hasOwnProperty"),void 0,[j])))),t.createFunctionDeclaration(void 0,void 0,wt,void 0,[t.createParameterDeclaration(void 0,void 0,fe)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(je,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(j)]),fe,t.createBlock([yn(t.createIfStatement(q,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(je,j),t.createElementAccessExpression(fe,j)))),1)])),t.createExpressionStatement(t.createCallExpression(P,void 0,[je]))],!0))}function re(Ae,wt){let fe=[];for(let j of wt){let je=or(j.externalImports,jt=>CI(t,jt,x)),q=je?t.getGeneratedNameForNode(je):t.createUniqueName(""),vt=[];for(let jt of j.externalImports){let Ce=CI(t,jt,x);switch(jt.kind){case 273:if(!jt.importClause)break;case 272:w.assert(Ce!==void 0),vt.push(t.createExpressionStatement(t.createAssignment(Ce,q))),ri(jt,32)&&vt.push(t.createExpressionStatement(t.createCallExpression(P,void 0,[t.createStringLiteral(Fn(Ce)),q])));break;case 279:if(w.assert(Ce!==void 0),jt.exportClause)if(G_(jt.exportClause)){let ut=[];for(let Qt of jt.exportClause.elements)ut.push(t.createPropertyAssignment(t.createStringLiteral(gb(Qt.name)),t.createElementAccessExpression(q,t.createStringLiteral(gb(Qt.propertyName||Qt.name)))));vt.push(t.createExpressionStatement(t.createCallExpression(P,void 0,[t.createObjectLiteralExpression(ut,!0)])))}else vt.push(t.createExpressionStatement(t.createCallExpression(P,void 0,[t.createStringLiteral(gb(jt.exportClause.name)),q])));else vt.push(t.createExpressionStatement(t.createCallExpression(Ae,void 0,[q])));break}}fe.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,q)],void 0,t.createBlock(vt,!0)))}return t.createArrayLiteralExpression(fe,!0)}function V(Ae){switch(Ae.kind){case 273:return ce(Ae);case 272:return le(Ae);case 279:return oe(Ae);case 278:return de(Ae);default:return Bt(Ae)}}function ce(Ae){let wt;return Ae.importClause&&s(CI(t,Ae,x)),vg(nt(wt,Ae))}function oe(Ae){w.assertIsDefined(Ae)}function le(Ae){w.assert(M0(Ae),"import= for internal module references should be handled in an earlier transformer.");let wt;return s(CI(t,Ae,x)),vg(ae(wt,Ae))}function de(Ae){if(Ae.isExportEquals)return;let wt=rt(Ae.expression,ei,ht);return Qe(t.createIdentifier("default"),wt,!0)}function ve(Ae){ri(Ae,32)?F=Fr(F,t.updateFunctionDeclaration(Ae,Br(Ae.modifiers,pt,tc),Ae.asteriskToken,t.getDeclarationName(Ae,!0,!0),void 0,Br(Ae.parameters,ei,Gi),void 0,rt(Ae.body,ei,Bs))):F=Fr(F,Pr(Ae,ei,e)),F=Ne(F,Ae)}function H(Ae){let wt,fe=t.getLocalName(Ae);return s(fe),wt=Fr(wt,mt(t.createExpressionStatement(t.createAssignment(fe,mt(t.createClassExpression(Br(Ae.modifiers,pt,tc),Ae.name,void 0,Br(Ae.heritageClauses,ei,Af),Br(Ae.members,ei,cl)),Ae))),Ae)),wt=Ne(wt,Ae),vg(wt)}function Se(Ae){if(!ye(Ae.declarationList))return rt(Ae,ei,Ei);let wt;if(YM(Ae.declarationList)||XM(Ae.declarationList)){let fe=Br(Ae.modifiers,pt,tc),j=[];for(let q of Ae.declarationList.declarations)j.push(t.updateVariableDeclaration(q,t.getGeneratedNameForNode(q.name),void 0,void 0,ee(q,!1)));let je=t.updateVariableDeclarationList(Ae.declarationList,j);wt=Fr(wt,t.updateVariableStatement(Ae,fe,je))}else{let fe,j=ri(Ae,32);for(let je of Ae.declarationList.declarations)je.initializer?fe=Fr(fe,ee(je,j)):Je(je);fe&&(wt=Fr(wt,mt(t.createExpressionStatement(t.inlineExpressions(fe)),Ae)))}return wt=Ue(wt,Ae,!1),vg(wt)}function Je(Ae){if(Ls(Ae.name))for(let wt of Ae.name.elements)Fl(wt)||Je(wt);else s(t.cloneNode(Ae.name))}function ye(Ae){return(Oa(Ae)&4194304)===0&&(O.kind===308||(sc(Ae).flags&7)===0)}function ee(Ae,wt){let fe=wt?ge:ke;return Ls(Ae.name)?Nk(Ae,ei,e,0,!1,fe):Ae.initializer?fe(Ae.name,rt(Ae.initializer,ei,ht)):Ae.name}function ge(Ae,wt,fe){return Oe(Ae,wt,fe,!0)}function ke(Ae,wt,fe){return Oe(Ae,wt,fe,!1)}function Oe(Ae,wt,fe,j){return s(t.cloneNode(Ae)),j?St(Ae,Gt(mt(t.createAssignment(Ae,wt),fe))):Gt(mt(t.createAssignment(Ae,wt),fe))}function nt(Ae,wt){if(I.exportEquals)return Ae;let fe=wt.importClause;if(!fe)return Ae;fe.name&&(Ae=Ie(Ae,fe));let j=fe.namedBindings;if(j)switch(j.kind){case 275:Ae=Ie(Ae,j);break;case 276:for(let je of j.elements)Ae=Ie(Ae,je);break}return Ae}function ae(Ae,wt){return I.exportEquals?Ae:Ie(Ae,wt)}function Ue(Ae,wt,fe){if(I.exportEquals)return Ae;for(let j of wt.declarationList.declarations)(j.initializer||fe)&&(Ae=te(Ae,j,fe));return Ae}function te(Ae,wt,fe){if(I.exportEquals)return Ae;if(Ls(wt.name))for(let j of wt.name.elements)Fl(j)||(Ae=te(Ae,j,fe));else if(!ec(wt.name)){let j;fe&&(Ae=xe(Ae,wt.name,t.getLocalName(wt)),j=Fn(wt.name)),Ae=Ie(Ae,wt,j)}return Ae}function Ne(Ae,wt){if(I.exportEquals)return Ae;let fe;if(ri(wt,32)){let j=ri(wt,2048)?t.createStringLiteral("default"):wt.name;Ae=xe(Ae,j,t.getLocalName(wt)),fe=R_(j)}return wt.name&&(Ae=Ie(Ae,wt,fe)),Ae}function Ie(Ae,wt,fe){if(I.exportEquals)return Ae;let j=t.getDeclarationName(wt),je=I.exportSpecifiers.get(j);if(je)for(let q of je)gb(q.name)!==fe&&(Ae=xe(Ae,q.name,j));return Ae}function xe(Ae,wt,fe,j){return Ae=Fr(Ae,Qe(wt,fe,j)),Ae}function Qe(Ae,wt,fe){let j=t.createExpressionStatement(St(Ae,wt));return Yu(j),fe||yn(j,3072),j}function St(Ae,wt){let fe=Be(Ae)?t.createStringLiteralFromNode(Ae):Ae;return yn(wt,Oa(wt)|3072),gl(t.createCallExpression(P,void 0,[fe,wt]),wt)}function Bt(Ae){switch(Ae.kind){case 244:return Se(Ae);case 263:return ve(Ae);case 264:return H(Ae);case 249:return fr(Ae,!0);case 250:return Mr(Ae);case 251:return ft(Ae);case 247:return bi(Ae);case 248:return us(Ae);case 257:return At(Ae);case 255:return Un(Ae);case 246:return rs(Ae);case 256:return zn(Ae);case 270:return Sn(Ae);case 297:return _i(Ae);case 298:return qe(Ae);case 259:return bt(Ae);case 300:return ar(Ae);case 242:return tn(Ae);default:return ei(Ae)}}function fr(Ae,wt){let fe=O;return O=Ae,Ae=t.updateForStatement(Ae,rt(Ae.initializer,wt?Hr:Mi,E_),rt(Ae.condition,ei,ht),rt(Ae.incrementor,Mi,ht),Ap(Ae.statement,wt?Bt:ei,e)),O=fe,Ae}function Mr(Ae){let wt=O;return O=Ae,Ae=t.updateForInStatement(Ae,Hr(Ae.initializer),rt(Ae.expression,ei,ht),Ap(Ae.statement,Bt,e)),O=wt,Ae}function ft(Ae){let wt=O;return O=Ae,Ae=t.updateForOfStatement(Ae,Ae.awaitModifier,Hr(Ae.initializer),rt(Ae.expression,ei,ht),Ap(Ae.statement,Bt,e)),O=wt,Ae}function qt(Ae){return lu(Ae)&&ye(Ae)}function Hr(Ae){if(qt(Ae)){let wt;for(let fe of Ae.declarations)wt=Fr(wt,ee(fe,!1)),fe.initializer||Je(fe);return wt?t.inlineExpressions(wt):t.createOmittedExpression()}else return rt(Ae,Mi,E_)}function bi(Ae){return t.updateDoStatement(Ae,Ap(Ae.statement,Bt,e),rt(Ae.expression,ei,ht))}function us(Ae){return t.updateWhileStatement(Ae,rt(Ae.expression,ei,ht),Ap(Ae.statement,Bt,e))}function At(Ae){return t.updateLabeledStatement(Ae,Ae.label,rt(Ae.statement,Bt,Ei,t.liftToBlock)??t.createExpressionStatement(t.createIdentifier("")))}function Un(Ae){return t.updateWithStatement(Ae,rt(Ae.expression,ei,ht),w.checkDefined(rt(Ae.statement,Bt,Ei,t.liftToBlock)))}function rs(Ae){return t.updateIfStatement(Ae,rt(Ae.expression,ei,ht),rt(Ae.thenStatement,Bt,Ei,t.liftToBlock)??t.createBlock([]),rt(Ae.elseStatement,Bt,Ei,t.liftToBlock))}function zn(Ae){return t.updateSwitchStatement(Ae,rt(Ae.expression,ei,ht),w.checkDefined(rt(Ae.caseBlock,Bt,VA)))}function Sn(Ae){let wt=O;return O=Ae,Ae=t.updateCaseBlock(Ae,Br(Ae.clauses,Bt,gF)),O=wt,Ae}function _i(Ae){return t.updateCaseClause(Ae,rt(Ae.expression,ei,ht),Br(Ae.statements,Bt,Ei))}function qe(Ae){return Pr(Ae,Bt,e)}function bt(Ae){return Pr(Ae,Bt,e)}function ar(Ae){let wt=O;return O=Ae,Ae=t.updateCatchClause(Ae,Ae.variableDeclaration,w.checkDefined(rt(Ae.block,Bt,Bs))),O=wt,Ae}function tn(Ae){let wt=O;return O=Ae,Ae=Pr(Ae,Bt,e),O=wt,Ae}function Xn(Ae,wt){if(!(Ae.transformFlags&276828160))return Ae;switch(Ae.kind){case 249:return fr(Ae,!1);case 245:return js(Ae);case 218:return oa(Ae,wt);case 356:return wr(Ae,wt);case 227:if(Yy(Ae))return tt(Ae,wt);break;case 214:if(Up(Ae))return Ds(Ae);break;case 225:case 226:return se(Ae,wt)}return Pr(Ae,ei,e)}function ei(Ae){return Xn(Ae,!1)}function Mi(Ae){return Xn(Ae,!0)}function js(Ae){return t.updateExpressionStatement(Ae,rt(Ae.expression,Mi,ht))}function oa(Ae,wt){return t.updateParenthesizedExpression(Ae,rt(Ae.expression,wt?Mi:ei,ht))}function wr(Ae,wt){return t.updatePartiallyEmittedExpression(Ae,rt(Ae.expression,wt?Mi:ei,ht))}function Ds(Ae){let wt=Q2(t,Ae,x,p,c,o),fe=rt(_l(Ae.arguments),ei,ht),j=wt&&(!fe||!ya(fe)||fe.text!==wt.text)?wt:fe;return t.createCallExpression(t.createPropertyAccessExpression(E,t.createIdentifier("import")),void 0,j?[j]:[])}function tt(Ae,wt){return Mt(Ae.left)?Nk(Ae,ei,e,0,!wt):Pr(Ae,ei,e)}function Mt(Ae){if(Hl(Ae,!0))return Mt(Ae.left);if(z_(Ae))return Mt(Ae.expression);if(Sa(Ae))return _t(Ae.properties,Mt);if(Tu(Ae))return _t(Ae.elements,Mt);if(Fu(Ae))return Mt(Ae.name);if(yl(Ae))return Mt(Ae.initializer);if(Be(Ae)){let wt=c.getReferencedExportContainer(Ae);return wt!==void 0&&wt.kind===308}else return!1}function se(Ae,wt){if((Ae.operator===46||Ae.operator===47)&&Be(Ae.operand)&&!ec(Ae.operand)&&!cy(Ae.operand)&&!dG(Ae.operand)){let fe=Rt(Ae.operand);if(fe){let j,je=rt(Ae.operand,ei,ht);V0(Ae)?je=t.updatePrefixUnaryExpression(Ae,je):(je=t.updatePostfixUnaryExpression(Ae,je),wt||(j=t.createTempVariable(s),je=t.createAssignment(j,je),mt(je,Ae)),je=t.createComma(je,t.cloneNode(Ae.operand)),mt(je,Ae));for(let q of fe)je=St(q,Gt(je));return j&&(je=t.createComma(je,j),mt(je,Ae)),je}}return Pr(Ae,ei,e)}function pt(Ae){switch(Ae.kind){case 95:case 90:return}return Ae}function Z(Ae,wt,fe){if(wt.kind===308){let j=Ep(wt);x=wt,I=d[j],P=h[j],W=S[j],E=T[j],W&&delete S[j],g(Ae,wt,fe),x=void 0,I=void 0,P=void 0,E=void 0,W=void 0}else g(Ae,wt,fe)}function Ee(Ae,wt){return wt=u(Ae,wt),ln(wt)?wt:Ae===1?Pt(wt):Ae===4?et(wt):wt}function et(Ae){return Ae.kind===305?at(Ae):Ae}function at(Ae){var wt,fe;let j=Ae.name;if(!ec(j)&&!cy(j)){let je=c.getReferencedImportDeclaration(j);if(je){if(Ld(je))return mt(t.createPropertyAssignment(t.cloneNode(j),t.createPropertyAccessExpression(t.getGeneratedNameForNode(je.parent),t.createIdentifier("default"))),Ae);if(gp(je)){let q=je.propertyName||je.name,vt=t.getGeneratedNameForNode(((fe=(wt=je.parent)==null?void 0:wt.parent)==null?void 0:fe.parent)||je);return mt(t.createPropertyAssignment(t.cloneNode(j),q.kind===11?t.createElementAccessExpression(vt,t.cloneNode(q)):t.createPropertyAccessExpression(vt,t.cloneNode(q))),Ae)}}}return Ae}function Pt(Ae){switch(Ae.kind){case 80:return Le(Ae);case 227:return kt(Ae);case 237:return Tt(Ae)}return Ae}function Le(Ae){var wt,fe;if(Oa(Ae)&8192){let j=h4(x);return j?t.createPropertyAccessExpression(j,Ae):Ae}if(!ec(Ae)&&!cy(Ae)){let j=c.getReferencedImportDeclaration(Ae);if(j){if(Ld(j))return mt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(j.parent),t.createIdentifier("default")),Ae);if(gp(j)){let je=j.propertyName||j.name,q=t.getGeneratedNameForNode(((fe=(wt=j.parent)==null?void 0:wt.parent)==null?void 0:fe.parent)||j);return mt(je.kind===11?t.createElementAccessExpression(q,t.cloneNode(je)):t.createPropertyAccessExpression(q,t.cloneNode(je)),Ae)}}}return Ae}function kt(Ae){if(ry(Ae.operatorToken.kind)&&Be(Ae.left)&&(!ec(Ae.left)||NM(Ae.left))&&!cy(Ae.left)){let wt=Rt(Ae.left);if(wt){let fe=Ae;for(let j of wt)fe=St(j,Gt(fe));return fe}}return Ae}function Tt(Ae){return zw(Ae)?t.createPropertyAccessExpression(E,t.createIdentifier("meta")):Ae}function Rt(Ae){let wt,fe=Ye(Ae);if(fe){let j=c.getReferencedExportContainer(Ae,!1);j&&j.kind===308&&(wt=Fr(wt,t.getDeclarationName(fe))),wt=Gn(wt,I?.exportedBindings[Ep(fe)])}else if(ec(Ae)&&NM(Ae)){let j=I?.exportSpecifiers.get(Ae);if(j){let je=[];for(let q of j)je.push(q.name);return je}}return wt}function Ye(Ae){if(!ec(Ae)){let wt=c.getReferencedImportDeclaration(Ae);if(wt)return wt;let fe=c.getReferencedValueDeclaration(Ae);if(fe&&I?.exportedBindings[Ep(fe)])return fe;let j=c.getReferencedValueDeclarations(Ae);if(j){for(let je of j)if(je!==fe&&I?.exportedBindings[Ep(je)])return je}return fe}}function Gt(Ae){return W===void 0&&(W=[]),W[qa(Ae)]=!0,Ae}function ln(Ae){return W&&Ae.id&&W[Ae.id]}}function KU(e){let{factory:t,getEmitHelperFactory:n}=e,i=e.getEmitHost(),s=e.getEmitResolver(),o=e.getCompilerOptions(),c=xa(o),p=e.onEmitNode,u=e.onSubstituteNode;e.onEmitNode=U,e.onSubstituteNode=_e,e.enableEmitNotification(308),e.enableSubstitution(80);let g=new Set,d,h,S,T;return pm(e,x);function x(V){if(V.isDeclarationFile)return V;if(Pl(V)||md(o)){S=V,T=void 0,o.rewriteRelativeImportExtensions&&(S.flags&4194304||dn(V))&&Y8(V,!1,!1,oe=>{(!Ha(oe.arguments[0])||m6(oe.arguments[0].text,o))&&(d=Fr(d,oe))});let ce=I(V);return vh(ce,e.readEmitHelpers()),S=void 0,T&&(ce=t.updateSourceFile(ce,mt(t.createNodeArray(iz(ce.statements.slice(),T)),ce.statements))),!Pl(V)||_p(o)===200||_t(ce.statements,LM)?ce:t.updateSourceFile(ce,mt(t.createNodeArray([...ce.statements,d4(t)]),ce.statements))}return V}function I(V){let ce=OJ(t,n(),V,o);if(ce){let oe=[],le=t.copyPrologue(V.statements,oe);return Gn(oe,oE([ce],P,Ei)),Gn(oe,Br(V.statements,P,Ei,le)),t.updateSourceFile(V,mt(t.createNodeArray(oe),V.statements))}else return Pr(V,P,e)}function P(V){switch(V.kind){case 272:return _p(o)>=100?W(V):void 0;case 278:return $(V);case 279:return X(V);case 273:return E(V);case 214:if(V===d?.[0])return F(d.shift());default:if(d?.length&&$p(V,d[0]))return Pr(V,P,e)}return V}function E(V){if(!o.rewriteRelativeImportExtensions)return V;let ce=rC(V.moduleSpecifier,o);return ce===V.moduleSpecifier?V:t.updateImportDeclaration(V,V.modifiers,V.importClause,ce,V.attributes)}function F(V){return t.updateCallExpression(V,V.expression,V.typeArguments,[Ha(V.arguments[0])?rC(V.arguments[0],o):n().createRewriteRelativeImportExtensionsHelper(V.arguments[0]),...V.arguments.slice(1)])}function O(V){let ce=Q2(t,V,w.checkDefined(S),i,s,o),oe=[];if(ce&&oe.push(rC(ce,o)),_p(o)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,oe);if(!T){let de=t.createUniqueName("_createRequire",48),ve=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),de)])),t.createStringLiteral("module"),void 0),H=t.createUniqueName("__require",48),Se=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(H,void 0,void 0,t.createCallExpression(t.cloneNode(de),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],c>=2?2:0));T=[ve,Se]}let le=T[1].declarationList.declarations[0].name;return w.assertNode(le,Be),t.createCallExpression(t.cloneNode(le),void 0,oe)}function W(V){w.assert(M0(V),"import= for internal module references should be handled in an earlier transformer.");let ce;return ce=Fr(ce,Rn(mt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(V.name),void 0,void 0,O(V))],c>=2?2:0)),V),V)),ce=z(ce,V),vg(ce)}function z(V,ce){return ri(ce,32)&&(V=Fr(V,t.createExportDeclaration(void 0,ce.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,Fn(ce.name))])))),V}function $(V){return V.isExportEquals?_p(o)===200?Rn(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),V.expression)),V):void 0:V}function X(V){let ce=rC(V.moduleSpecifier,o);if(o.module!==void 0&&o.module>5||!V.exportClause||!Ag(V.exportClause)||!V.moduleSpecifier)return!V.moduleSpecifier||ce===V.moduleSpecifier?V:t.updateExportDeclaration(V,V.modifiers,V.isTypeOnly,V.exportClause,ce,V.attributes);let oe=V.exportClause.name,le=t.getGeneratedNameForNode(oe),de=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamespaceImport(le)),ce,V.attributes);Rn(de,V.exportClause);let ve=DF(V)?t.createExportDefault(le):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,le,oe)]));return Rn(ve,V),[de,ve]}function U(V,ce,oe){Li(ce)?((Pl(ce)||md(o))&&o.importHelpers&&(h=new Map),S=ce,p(V,ce,oe),S=void 0,h=void 0):p(V,ce,oe)}function _e(V,ce){return ce=u(V,ce),ce.id&&g.has(ce.id)?ce:Be(ce)&&Oa(ce)&8192?re(ce):ce}function re(V){let ce=S&&h4(S);if(ce)return g.add(qa(V)),t.createPropertyAccessExpression(ce,V);if(h){let oe=Fn(V),le=h.get(oe);return le||h.set(oe,le=t.createUniqueName(oe,48)),le}return V}}function Gae(e){let t=e.onSubstituteNode,n=e.onEmitNode,i=KU(e),s=e.onSubstituteNode,o=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=n;let c=QU(e),p=e.onSubstituteNode,u=e.onEmitNode,g=E=>e.getEmitHost().getEmitModuleFormatOfFile(E);e.onSubstituteNode=h,e.onEmitNode=S,e.enableSubstitution(308),e.enableEmitNotification(308);let d;return I;function h(E,F){return Li(F)?(d=F,t(E,F)):d?g(d)>=5?s(E,F):p(E,F):t(E,F)}function S(E,F,O){return Li(F)&&(d=F),d?g(d)>=5?o(E,F,O):u(E,F,O):n(E,F,O)}function T(E){return g(E)>=5?i:c}function x(E){if(E.isDeclarationFile)return E;d=E;let F=T(E)(E);return d=void 0,w.assert(Li(F)),F}function I(E){return E.kind===308?x(E):P(E)}function P(E){return e.factory.createBundle(kr(E.sourceFiles,x))}}function G4(e){return li(e)||hs(e)||mp(e)||Da(e)||Fm(e)||ah(e)||zA(e)||B2(e)||hc(e)||jd(e)||Gc(e)||Gi(e)||Ho(e)||sy(e)||Dl(e)||gd(e)||yc(e)||Pb(e)||Ln(e)||xo(e)||vn(e)||fd(e)}function Jae(e){if(Fm(e)||ah(e))return t;return jd(e)||hc(e)?i:n1(e);function t(o){let c=n(o);return c!==void 0?{diagnosticMessage:c,errorNode:e,typeName:e.name}:void 0}function n(o){return Ks(e)?o.errorModuleName?o.accessibility===2?_.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===264?o.errorModuleName?o.accessibility===2?_.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_.Public_property_0_of_exported_class_has_or_is_using_private_name_1:o.errorModuleName?_.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:_.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(o){let c=s(o);return c!==void 0?{diagnosticMessage:c,errorNode:e,typeName:e.name}:void 0}function s(o){return Ks(e)?o.errorModuleName?o.accessibility===2?_.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===264?o.errorModuleName?o.accessibility===2?_.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_.Public_method_0_of_exported_class_has_or_is_using_private_name_1:o.errorModuleName?_.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:_.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function n1(e){if(li(e)||hs(e)||mp(e)||Ln(e)||xo(e)||vn(e)||Da(e)||yc(e))return n;return Fm(e)||ah(e)?i:zA(e)||B2(e)||hc(e)||jd(e)||Gc(e)||Pb(e)?s:Gi(e)?Tf(e,e.parent)&&ri(e.parent,2)?n:o:Ho(e)?p:sy(e)?u:Dl(e)?g:gd(e)||fd(e)?d:w.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${w.formatSyntaxKind(e.kind)}`);function t(h){if(e.kind===261||e.kind===209)return h.errorModuleName?h.accessibility===2?_.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:_.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===173||e.kind===212||e.kind===213||e.kind===227||e.kind===172||e.kind===170&&ri(e.parent,2))return Ks(e)?h.errorModuleName?h.accessibility===2?_.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===264||e.kind===170?h.errorModuleName?h.accessibility===2?_.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_.Public_property_0_of_exported_class_has_or_is_using_private_name_1:h.errorModuleName?_.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:_.Property_0_of_exported_interface_has_or_is_using_private_name_1}function n(h){let S=t(h);return S!==void 0?{diagnosticMessage:S,errorNode:e,typeName:e.name}:void 0}function i(h){let S;return e.kind===179?Ks(e)?S=h.errorModuleName?_.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:S=h.errorModuleName?_.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Ks(e)?S=h.errorModuleName?h.accessibility===2?_.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:S=h.errorModuleName?h.accessibility===2?_.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:S,errorNode:e.name,typeName:e.name}}function s(h){let S;switch(e.kind){case 181:S=h.errorModuleName?_.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 180:S=h.errorModuleName?_.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 182:S=h.errorModuleName?_.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 175:case 174:Ks(e)?S=h.errorModuleName?h.accessibility===2?_.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:_.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:_.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===264?S=h.errorModuleName?h.accessibility===2?_.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:_.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:_.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:S=h.errorModuleName?_.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 263:S=h.errorModuleName?h.accessibility===2?_.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:_.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:_.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return w.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:S,errorNode:e.name||e}}function o(h){let S=c(h);return S!==void 0?{diagnosticMessage:S,errorNode:e,typeName:e.name}:void 0}function c(h){switch(e.parent.kind){case 177:return h.errorModuleName?h.accessibility===2?_.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 181:case 186:return h.errorModuleName?_.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 180:return h.errorModuleName?_.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 182:return h.errorModuleName?_.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 175:case 174:return Ks(e.parent)?h.errorModuleName?h.accessibility===2?_.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===264?h.errorModuleName?h.accessibility===2?_.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:h.errorModuleName?_.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 263:case 185:return h.errorModuleName?h.accessibility===2?_.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 179:case 178:return h.errorModuleName?h.accessibility===2?_.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return w.fail(`Unknown parent for parameter: ${w.formatSyntaxKind(e.parent.kind)}`)}}function p(){let h;switch(e.parent.kind){case 264:h=_.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 265:h=_.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 201:h=_.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 186:case 181:h=_.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 180:h=_.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 175:case 174:Ks(e.parent)?h=_.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===264?h=_.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:h=_.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 185:case 263:h=_.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 196:h=_.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 266:h=_.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return w.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:h,errorNode:e,typeName:e.name}}function u(){let h;return hl(e.parent.parent)?h=Af(e.parent)&&e.parent.token===119?_.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?_.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:_.extends_clause_of_exported_class_has_or_is_using_private_name_0:h=_.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:h,errorNode:e,typeName:Ss(e.parent.parent)}}function g(){return{diagnosticMessage:_.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function d(h){return{diagnosticMessage:h.errorModuleName?_.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:_.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:fd(e)?w.checkDefined(e.typeExpression):e.type,typeName:fd(e)?Ss(e):e.name}}}function Uae(e){let t={220:_.Add_a_return_type_to_the_function_expression,219:_.Add_a_return_type_to_the_function_expression,175:_.Add_a_return_type_to_the_method,178:_.Add_a_return_type_to_the_get_accessor_declaration,179:_.Add_a_type_to_parameter_of_the_set_accessor_declaration,263:_.Add_a_return_type_to_the_function_declaration,181:_.Add_a_return_type_to_the_function_declaration,170:_.Add_a_type_annotation_to_the_parameter_0,261:_.Add_a_type_annotation_to_the_variable_0,173:_.Add_a_type_annotation_to_the_property_0,172:_.Add_a_type_annotation_to_the_property_0,278:_.Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it},n={219:_.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,263:_.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,220:_.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,175:_.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,181:_.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,178:_.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,179:_.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,170:_.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations,261:_.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations,173:_.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,172:_.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,168:_.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations,306:_.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations,305:_.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations,210:_.Only_const_arrays_can_be_inferred_with_isolatedDeclarations,278:_.Default_exports_can_t_be_inferred_with_isolatedDeclarations,231:_.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations};return i;function i(P){if(vr(P,Af))return _n(P,_.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations);if((Wm(P)||FS(P.parent))&&(xp(P)||mo(P)))return x(P);switch(w.type(P),P.kind){case 178:case 179:return o(P);case 168:case 305:case 306:return p(P);case 210:case 231:return u(P);case 175:case 181:case 219:case 220:case 263:return g(P);case 209:return d(P);case 173:case 261:return h(P);case 170:return S(P);case 304:return I(P.initializer);case 232:return T(P);default:return I(P)}}function s(P){let E=vr(P,F=>Qo(F)||Ei(F)||li(F)||hs(F)||Gi(F));if(E)return Qo(E)?E:Qf(E)?vr(E,F=>yo(F)&&!yc(F)):Ei(E)?void 0:E}function o(P){let{getAccessor:E,setAccessor:F}=PS(P.symbol.declarations,P),O=(Fm(P)?P.parameters[0]:P)??P,W=_n(O,n[P.kind]);return F&&Xs(W,_n(F,t[F.kind])),E&&Xs(W,_n(E,t[E.kind])),W}function c(P,E){let F=s(P);if(F){let O=Qo(F)||!F.name?"":pc(F.name,!1);Xs(E,_n(F,t[F.kind],O))}return E}function p(P){let E=_n(P,n[P.kind]);return c(P,E),E}function u(P){let E=_n(P,n[P.kind]);return c(P,E),E}function g(P){let E=_n(P,n[P.kind]);return c(P,E),Xs(E,_n(P,t[P.kind])),E}function d(P){return _n(P,_.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations)}function h(P){let E=_n(P,n[P.kind]),F=pc(P.name,!1);return Xs(E,_n(P,t[P.kind],F)),E}function S(P){if(Fm(P.parent))return o(P.parent);let E=e.requiresAddingImplicitUndefined(P,P.parent);if(!E&&P.initializer)return I(P.initializer);let F=E?_.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:n[P.kind],O=_n(P,F),W=pc(P.name,!1);return Xs(O,_n(P,t[P.kind],W)),O}function T(P){return I(P,_.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations)}function x(P){let E=_n(P,_.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations,pc(P,!1));return c(P,E),E}function I(P,E){let F=s(P),O;if(F){let W=Qo(F)||!F.name?"":pc(F.name,!1),z=vr(P.parent,$=>Qo($)||(Ei($)?"quit":!Pp($)&&!p7($)&&!mI($)));F===z?(O=_n(P,E??n[F.kind]),Xs(O,_n(F,t[F.kind],W))):(O=_n(P,E??_.Expression_type_can_t_be_inferred_with_isolatedDeclarations),Xs(O,_n(F,t[F.kind],W)),Xs(O,_n(P,_.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)))}else O=_n(P,E??_.Expression_type_can_t_be_inferred_with_isolatedDeclarations);return O}}function Vae(e,t,n){let i=e.getCompilerOptions(),s=Mn(u8(e,n),$F);return ws(s,n)?q4(t,e,A,i,[n],[XU],!1).diagnostics:void 0}var J4=531469,U4=8;function XU(e){let t=()=>w.fail("Diagnostic emitted without context"),n=t,i=!0,s=!1,o=!1,c=!1,p=!1,u,g,d,h,{factory:S}=e,T=e.getEmitHost(),x=()=>{},I={trackSymbol:le,reportInaccessibleThisError:Je,reportInaccessibleUniqueSymbolError:H,reportCyclicStructureError:Se,reportPrivateInBaseOfClassExpression:de,reportLikelyUnsafeImportRequiredError:ye,reportTruncationError:ee,moduleResolverHost:T,reportNonlocalAugmentation:ge,reportNonSerializableProperty:ke,reportInferenceFallback:ce,pushErrorFallbackNode(se){let pt=E,Z=x;x=()=>{x=Z,E=pt},E=se},popErrorFallbackNode(){x()}},P,E,F,O,W,z,$=e.getEmitResolver(),X=e.getCompilerOptions(),U=Uae($),{stripInternal:_e,isolatedDeclarations:re}=X;return nt;function V(se){$.getPropertiesOfContainerFunction(se).forEach(pt=>{if(M2(pt.valueDeclaration)){let Z=vn(pt.valueDeclaration)?pt.valueDeclaration.left:pt.valueDeclaration;e.addDiagnostic(_n(Z,_.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function))}})}function ce(se){!re||Cp(F)||Nr(se)===F&&(li(se)&&$.isExpandoFunctionDeclaration(se)?V(se):e.addDiagnostic(U(se)))}function oe(se){if(se.accessibility===0){if(se.aliasesToMakeVisible)if(!g)g=se.aliasesToMakeVisible;else for(let pt of se.aliasesToMakeVisible)D_(g,pt)}else if(se.accessibility!==3){let pt=n(se);if(pt)return pt.typeName?e.addDiagnostic(_n(se.errorNode||pt.errorNode,pt.diagnosticMessage,pc(pt.typeName),se.errorSymbolName,se.errorModuleName)):e.addDiagnostic(_n(se.errorNode||pt.errorNode,pt.diagnosticMessage,se.errorSymbolName,se.errorModuleName)),!0}return!1}function le(se,pt,Z){return se.flags&262144?!1:oe($.isSymbolAccessible(se,pt,Z,!0))}function de(se){(P||E)&&e.addDiagnostic(Xs(_n(P||E,_.Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected,se),...li((P||E).parent)?[_n(P||E,_.Add_a_type_annotation_to_the_variable_0,ve())]:[]))}function ve(){return P?To(P):E&&Ss(E)?To(Ss(E)):E&&Qo(E)?E.isExportEquals?"export=":"default":"(Missing)"}function H(){(P||E)&&e.addDiagnostic(_n(P||E,_.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ve(),"unique symbol"))}function Se(){(P||E)&&e.addDiagnostic(_n(P||E,_.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,ve()))}function Je(){(P||E)&&e.addDiagnostic(_n(P||E,_.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ve(),"this"))}function ye(se){(P||E)&&e.addDiagnostic(_n(P||E,_.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,ve(),se))}function ee(){(P||E)&&e.addDiagnostic(_n(P||E,_.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function ge(se,pt,Z){var Ee;let et=(Ee=pt.declarations)==null?void 0:Ee.find(Pt=>Nr(Pt)===se),at=Mn(Z.declarations,Pt=>Nr(Pt)!==se);if(et&&at)for(let Pt of at)e.addDiagnostic(Xs(_n(Pt,_.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),_n(et,_.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function ke(se){(P||E)&&e.addDiagnostic(_n(P||E,_.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,se))}function Oe(se){let pt=n;n=Ee=>Ee.errorNode&&G4(Ee.errorNode)?n1(Ee.errorNode)(Ee):{diagnosticMessage:Ee.errorModuleName?_.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:_.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:Ee.errorNode||se};let Z=$.getDeclarationStatementsForSourceFile(se,J4,U4,I);return n=pt,Z}function nt(se){if(se.kind===308&&se.isDeclarationFile)return se;if(se.kind===309){s=!0,O=[],W=[],z=[];let kt=!1,Tt=S.createBundle(kr(se.sourceFiles,Ye=>{if(Ye.isDeclarationFile)return;if(kt=kt||Ye.hasNoDefaultLib,F=Ye,u=Ye,g=void 0,h=!1,d=new Map,n=t,c=!1,p=!1,Ee(Ye),xf(Ye)||M_(Ye)){o=!1,i=!1;let ln=Cp(Ye)?S.createNodeArray(Oe(Ye)):Br(Ye.statements,_i,Ei);return S.updateSourceFile(Ye,[S.createModuleDeclaration([S.createModifier(138)],S.createStringLiteral(Qz(e.getEmitHost(),Ye)),S.createModuleBlock(mt(S.createNodeArray(rs(ln)),Ye.statements)))],!0,[],[],!1,[])}i=!0;let Gt=Cp(Ye)?S.createNodeArray(Oe(Ye)):Br(Ye.statements,_i,Ei);return S.updateSourceFile(Ye,rs(Gt),!0,[],[],!1,[])})),Rt=ti(ou(mE(se,T,!0).declarationFilePath));return Tt.syntheticFileReferences=Le(Rt),Tt.syntheticTypeReferences=at(),Tt.syntheticLibReferences=Pt(),Tt.hasNoDefaultLib=kt,Tt}i=!0,c=!1,p=!1,u=se,F=se,n=t,s=!1,o=!1,h=!1,g=void 0,d=new Map,O=[],W=[],z=[],Ee(F);let pt;if(Cp(F))pt=S.createNodeArray(Oe(se));else{let kt=Br(se.statements,_i,Ei);pt=mt(S.createNodeArray(rs(kt)),se.statements),Pl(se)&&(!o||c&&!p)&&(pt=mt(S.createNodeArray([...pt,d4(S)]),pt))}let Z=ti(ou(mE(se,T,!0).declarationFilePath));return S.updateSourceFile(se,pt,!0,Le(Z),at(),se.hasNoDefaultLib,Pt());function Ee(kt){O=Qi(O,kr(kt.referencedFiles,Tt=>[kt,Tt])),W=Qi(W,kt.typeReferenceDirectives),z=Qi(z,kt.libReferenceDirectives)}function et(kt){let Tt={...kt};return Tt.pos=-1,Tt.end=-1,Tt}function at(){return Ji(W,kt=>{if(kt.preserve)return et(kt)})}function Pt(){return Ji(z,kt=>{if(kt.preserve)return et(kt)})}function Le(kt){return Ji(O,([Tt,Rt])=>{if(!Rt.preserve)return;let Ye=T.getSourceFileFromReference(Tt,Rt);if(!Ye)return;let Gt;if(Ye.isDeclarationFile)Gt=Ye.fileName;else{if(s&&ws(se.sourceFiles,Ye))return;let wt=mE(Ye,T,!0);Gt=wt.declarationFilePath||wt.jsFilePath||Ye.fileName}if(!Gt)return;let ln=Zx(kt,Gt,T.getCurrentDirectory(),T.getCanonicalFileName,!1),Ae=et(Rt);return Ae.fileName=ln,Ae})}}function ae(se){if(se.kind===80)return se;return se.kind===208?S.updateArrayBindingPattern(se,Br(se.elements,pt,fF)):S.updateObjectBindingPattern(se,Br(se.elements,pt,Da));function pt(Z){return Z.kind===233?Z:(Z.propertyName&&na(Z.propertyName)&&mo(Z.propertyName.expression)&&qt(Z.propertyName.expression,u),S.updateBindingElement(Z,Z.dotDotDotToken,Z.propertyName,ae(Z.name),void 0))}}function Ue(se,pt){let Z;h||(Z=n,n=n1(se));let Ee=S.updateParameterDeclaration(se,nUe(S,se,pt),se.dotDotDotToken,ae(se.name),$.isOptionalParameter(se)?se.questionToken||S.createToken(58):void 0,Ie(se,!0),Ne(se));return h||(n=Z),Ee}function te(se){return vTe(se)&&!!se.initializer&&$.isLiteralConstDeclaration(As(se))}function Ne(se){if(te(se)){let pt=One(se.initializer);return Q8(pt)||ce(se),$.createLiteralConstValue(As(se,vTe),I)}}function Ie(se,pt){if(!pt&&If(se,2)||te(se))return;if(!Qo(se)&&!Da(se)&&se.type&&(!Gi(se)||!$.requiresAddingImplicitUndefined(se,u)))return rt(se.type,zn,yi);let Z=P;P=se.name;let Ee;h||(Ee=n,G4(se)&&(n=n1(se)));let et;return K8(se)?et=$.createTypeOfDeclaration(se,u,J4,U4,I):Fs(se)?et=$.createReturnTypeOfSignatureDeclaration(se,u,J4,U4,I):w.assertNever(se),P=Z,h||(n=Ee),et??S.createKeywordTypeNode(133)}function xe(se){switch(se=As(se),se.kind){case 263:case 268:case 265:case 264:case 266:case 267:return!$.isDeclarationVisible(se);case 261:return!St(se);case 272:case 273:case 279:case 278:return!1;case 176:return!0}return!1}function Qe(se){var pt;if(se.body)return!0;let Z=(pt=se.symbol.declarations)==null?void 0:pt.filter(Ee=>Gc(Ee)&&!Ee.body);return!Z||Z.indexOf(se)===Z.length-1}function St(se){return Fl(se)?!1:Ls(se.name)?_t(se.name.elements,St):$.isDeclarationVisible(se)}function Bt(se,pt,Z){if(If(se,2))return S.createNodeArray();let Ee=kr(pt,et=>Ue(et,Z));return Ee?S.createNodeArray(Ee,pt.hasTrailingComma):S.createNodeArray()}function fr(se,pt){let Z;if(!pt){let Ee=IS(se);Ee&&(Z=[Ue(Ee)])}if(uf(se)){let Ee;if(!pt){let et=pA(se);et&&(Ee=Ue(et))}Ee||(Ee=S.createParameterDeclaration(void 0,void 0,"value")),Z=Fr(Z,Ee)}return S.createNodeArray(Z||Ke)}function Mr(se,pt){return If(se,2)?void 0:Br(pt,zn,Ho)}function ft(se){return Li(se)||gd(se)||el(se)||hl(se)||uu(se)||Fs(se)||Pb(se)||yk(se)}function qt(se,pt){let Z=$.isEntityNameVisible(se,pt);oe(Z)}function Hr(se,pt){return Hf(se)&&Hf(pt)&&(se.jsDoc=pt.jsDoc),gl(se,$m(pt))}function bi(se,pt){if(pt){if(o=o||se.kind!==268&&se.kind!==206,Ha(pt)&&s){let Z=kre(e.getEmitHost(),$,se);if(Z)return S.createStringLiteral(Z)}return pt}}function us(se){if($.isDeclarationVisible(se))if(se.moduleReference.kind===284){let pt=QP(se);return S.updateImportEqualsDeclaration(se,se.modifiers,se.isTypeOnly,se.name,S.updateExternalModuleReference(se.moduleReference,bi(se,pt)))}else{let pt=n;return n=n1(se),qt(se.moduleReference,u),n=pt,se}}function At(se){if(!se.importClause)return S.updateImportDeclaration(se,se.modifiers,se.importClause,bi(se,se.moduleSpecifier),Un(se.attributes));let pt=se.importClause.phaseModifier===166?void 0:se.importClause.phaseModifier,Z=se.importClause&&se.importClause.name&&$.isDeclarationVisible(se.importClause)?se.importClause.name:void 0;if(!se.importClause.namedBindings)return Z&&S.updateImportDeclaration(se,se.modifiers,S.updateImportClause(se.importClause,pt,Z,void 0),bi(se,se.moduleSpecifier),Un(se.attributes));if(se.importClause.namedBindings.kind===275){let et=$.isDeclarationVisible(se.importClause.namedBindings)?se.importClause.namedBindings:void 0;return Z||et?S.updateImportDeclaration(se,se.modifiers,S.updateImportClause(se.importClause,pt,Z,et),bi(se,se.moduleSpecifier),Un(se.attributes)):void 0}let Ee=Ji(se.importClause.namedBindings.elements,et=>$.isDeclarationVisible(et)?et:void 0);if(Ee&&Ee.length||Z)return S.updateImportDeclaration(se,se.modifiers,S.updateImportClause(se.importClause,pt,Z,Ee&&Ee.length?S.updateNamedImports(se.importClause.namedBindings,Ee):void 0),bi(se,se.moduleSpecifier),Un(se.attributes));if($.isImportRequiredByAugmentation(se))return re&&e.addDiagnostic(_n(se,_.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations)),S.updateImportDeclaration(se,se.modifiers,void 0,bi(se,se.moduleSpecifier),Un(se.attributes))}function Un(se){let pt=LI(se);return se&&pt!==void 0?se:void 0}function rs(se){for(;Dr(g);){let Z=g.shift();if(!AF(Z))return w.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${w.formatSyntaxKind(Z.kind)}`);let Ee=i;i=Z.parent&&Li(Z.parent)&&!(Pl(Z.parent)&&s);let et=ar(Z);i=Ee,d.set(Ep(Z),et)}return Br(se,pt,Ei);function pt(Z){if(AF(Z)){let Ee=Ep(Z);if(d.has(Ee)){let et=d.get(Ee);return d.delete(Ee),et&&((gs(et)?_t(et,_F):_F(et))&&(c=!0),Li(Z.parent)&&(gs(et)?_t(et,LM):LM(et))&&(o=!0)),et}}return Z}}function zn(se){if(js(se))return;if(ql(se)){if(xe(se))return;if(ey(se)){if(re){if(!$.isDefinitelyReferenceToGlobalSymbolObject(se.name.expression)){if(hl(se.parent)||Sa(se.parent)){e.addDiagnostic(_n(se,_.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));return}else if((uu(se.parent)||Dp(se.parent))&&!mo(se.name.expression)){e.addDiagnostic(_n(se,_.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations));return}}}else if(!$.isLateBound(As(se))||!mo(se.name.expression))return}}if(Fs(se)&&$.isImplementationOfOverload(se)||yie(se))return;let pt;ft(se)&&(pt=u,u=se);let Z=n,Ee=G4(se),et=h,at=(se.kind===188||se.kind===201)&&se.parent.kind!==266;if((hc(se)||jd(se))&&If(se,2))return se.symbol&&se.symbol.declarations&&se.symbol.declarations[0]!==se?void 0:Pt(S.createPropertyDeclaration(Ds(se),se.name,void 0,void 0,void 0));if(Ee&&!h&&(n=n1(se)),FS(se)&&qt(se.exprName,u),at&&(h=!0),sUe(se))switch(se.kind){case 234:{(xp(se.expression)||mo(se.expression))&&qt(se.expression,u);let Le=Pr(se,zn,e);return Pt(S.updateExpressionWithTypeArguments(Le,Le.expression,Le.typeArguments))}case 184:{qt(se.typeName,u);let Le=Pr(se,zn,e);return Pt(S.updateTypeReferenceNode(Le,Le.typeName,Le.typeArguments))}case 181:return Pt(S.updateConstructSignature(se,Mr(se,se.typeParameters),Bt(se,se.parameters),Ie(se)));case 177:{let Le=S.createConstructorDeclaration(Ds(se),Bt(se,se.parameters,0),void 0);return Pt(Le)}case 175:{if(zi(se.name))return Pt(void 0);let Le=S.createMethodDeclaration(Ds(se),void 0,se.name,se.questionToken,Mr(se,se.typeParameters),Bt(se,se.parameters),Ie(se),void 0);return Pt(Le)}case 178:return zi(se.name)?Pt(void 0):Pt(S.updateGetAccessorDeclaration(se,Ds(se),se.name,fr(se,If(se,2)),Ie(se),void 0));case 179:return zi(se.name)?Pt(void 0):Pt(S.updateSetAccessorDeclaration(se,Ds(se),se.name,fr(se,If(se,2)),void 0));case 173:return zi(se.name)?Pt(void 0):Pt(S.updatePropertyDeclaration(se,Ds(se),se.name,se.questionToken,Ie(se),Ne(se)));case 172:return zi(se.name)?Pt(void 0):Pt(S.updatePropertySignature(se,Ds(se),se.name,se.questionToken,Ie(se)));case 174:return zi(se.name)?Pt(void 0):Pt(S.updateMethodSignature(se,Ds(se),se.name,se.questionToken,Mr(se,se.typeParameters),Bt(se,se.parameters),Ie(se)));case 180:return Pt(S.updateCallSignature(se,Mr(se,se.typeParameters),Bt(se,se.parameters),Ie(se)));case 182:return Pt(S.updateIndexSignature(se,Ds(se),Bt(se,se.parameters),rt(se.type,zn,yi)||S.createKeywordTypeNode(133)));case 261:return Ls(se.name)?Xn(se.name):(at=!0,h=!0,Pt(S.updateVariableDeclaration(se,se.name,void 0,Ie(se),Ne(se))));case 169:return Sn(se)&&(se.default||se.constraint)?Pt(S.updateTypeParameterDeclaration(se,se.modifiers,se.name,void 0,void 0)):Pt(Pr(se,zn,e));case 195:{let Le=rt(se.checkType,zn,yi),kt=rt(se.extendsType,zn,yi),Tt=u;u=se.trueType;let Rt=rt(se.trueType,zn,yi);u=Tt;let Ye=rt(se.falseType,zn,yi);return w.assert(Le),w.assert(kt),w.assert(Rt),w.assert(Ye),Pt(S.updateConditionalTypeNode(se,Le,kt,Rt,Ye))}case 185:return Pt(S.updateFunctionTypeNode(se,Br(se.typeParameters,zn,Ho),Bt(se,se.parameters),w.checkDefined(rt(se.type,zn,yi))));case 186:return Pt(S.updateConstructorTypeNode(se,Ds(se),Br(se.typeParameters,zn,Ho),Bt(se,se.parameters),w.checkDefined(rt(se.type,zn,yi))));case 206:return Yh(se)?Pt(S.updateImportTypeNode(se,S.updateLiteralTypeNode(se.argument,bi(se,se.argument.literal)),se.attributes,se.qualifier,Br(se.typeArguments,zn,yi),se.isTypeOf)):Pt(se);default:w.assertNever(se,`Attempted to process unhandled node kind: ${w.formatSyntaxKind(se.kind)}`)}return G2(se)&&Hs(F,se.pos).line===Hs(F,se.end).line&&yn(se,1),Pt(Pr(se,zn,e));function Pt(Le){return Le&&Ee&&ey(se)&&Mi(se),ft(se)&&(u=pt),Ee&&!h&&(n=Z),at&&(h=et),Le===se?Le:Le&&Rn(Hr(Le,se),se)}}function Sn(se){return se.parent.kind===175&&If(se.parent,2)}function _i(se){if(!iUe(se)||js(se))return;switch(se.kind){case 279:return Li(se.parent)&&(o=!0),p=!0,S.updateExportDeclaration(se,se.modifiers,se.isTypeOnly,se.exportClause,bi(se,se.moduleSpecifier),Un(se.attributes));case 278:{if(Li(se.parent)&&(o=!0),p=!0,se.expression.kind===80)return se;{let Z=S.createUniqueName("_default",16);n=()=>({diagnosticMessage:_.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:se}),E=se;let Ee=Ie(se),et=S.createVariableDeclaration(Z,void 0,Ee,void 0);E=void 0;let at=S.createVariableStatement(i?[S.createModifier(138)]:[],S.createVariableDeclarationList([et],2));return Hr(at,se),n4(se),[at,S.updateExportAssignment(se,se.modifiers,Z)]}}}let pt=ar(se);return d.set(Ep(se),pt),se}function qe(se){if(Dl(se)||If(se,2048)||!yd(se))return se;let pt=S.createModifiersFromModifierFlags(Mu(se)&131039);return S.replaceModifiers(se,pt)}function bt(se,pt,Z,Ee){let et=S.updateModuleDeclaration(se,pt,Z,Ee);if(pp(et)||et.flags&32)return et;let at=S.createModuleDeclaration(et.modifiers,et.name,et.body,et.flags|32);return Rn(at,et),mt(at,et),at}function ar(se){if(g)for(;_P(g,se););if(js(se))return;switch(se.kind){case 272:return us(se);case 273:return At(se)}if(ql(se)&&xe(se)||Zm(se)||Fs(se)&&$.isImplementationOfOverload(se))return;let pt;ft(se)&&(pt=u,u=se);let Z=G4(se),Ee=n;Z&&(n=n1(se));let et=i;switch(se.kind){case 266:{i=!1;let Pt=at(S.updateTypeAliasDeclaration(se,Ds(se),se.name,Br(se.typeParameters,zn,Ho),w.checkDefined(rt(se.type,zn,yi))));return i=et,Pt}case 265:return at(S.updateInterfaceDeclaration(se,Ds(se),se.name,Mr(se,se.typeParameters),Mt(se.heritageClauses),Br(se.members,zn,dS)));case 263:{let Pt=at(S.updateFunctionDeclaration(se,Ds(se),void 0,se.name,Mr(se,se.typeParameters),Bt(se,se.parameters),Ie(se),void 0));if(Pt&&$.isExpandoFunctionDeclaration(se)&&Qe(se)){let Le=$.getPropertiesOfContainerFunction(se);re&&V(se);let kt=Z0.createModuleDeclaration(void 0,Pt.name||S.createIdentifier("_default"),S.createModuleBlock([]),32);Ka(kt,u),kt.locals=Qs(Le),kt.symbol=Le[0].parent;let Tt=[],Rt=Ji(Le,fe=>{if(!M2(fe.valueDeclaration))return;let j=Ai(fe.escapedName);if(!af(j,99))return;n=n1(fe.valueDeclaration);let je=$.createTypeOfDeclaration(fe.valueDeclaration,kt,J4,U4|2,I);n=Ee;let q=y2(j),vt=q?S.getGeneratedNameForNode(fe.valueDeclaration):S.createIdentifier(j);q&&Tt.push([vt,j]);let jt=S.createVariableDeclaration(vt,void 0,je,void 0);return S.createVariableStatement(q?void 0:[S.createToken(95)],S.createVariableDeclarationList([jt]))});Tt.length?Rt.push(S.createExportDeclaration(void 0,!1,S.createNamedExports(kr(Tt,([fe,j])=>S.createExportSpecifier(!1,fe,j))))):Rt=Ji(Rt,fe=>S.replaceModifiers(fe,0));let Ye=S.createModuleDeclaration(Ds(se),se.name,S.createModuleBlock(Rt),32);if(!If(Pt,2048))return[Pt,Ye];let Gt=S.createModifiersFromModifierFlags(Mu(Pt)&-2081|128),ln=S.updateFunctionDeclaration(Pt,Gt,void 0,Pt.name,Pt.typeParameters,Pt.parameters,Pt.type,void 0),Ae=S.updateModuleDeclaration(Ye,Gt,Ye.name,Ye.body),wt=S.createExportAssignment(void 0,!1,Ye.name);return Li(se.parent)&&(o=!0),p=!0,[ln,Ae,wt]}else return Pt}case 268:{i=!1;let Pt=se.body;if(Pt&&Pt.kind===269){let Le=c,kt=p;p=!1,c=!1;let Tt=Br(Pt.statements,_i,Ei),Rt=rs(Tt);se.flags&33554432&&(c=!1),!Cg(se)&&!wr(Rt)&&!p&&(c?Rt=S.createNodeArray([...Rt,d4(S)]):Rt=Br(Rt,qe,Ei));let Ye=S.updateModuleBlock(Pt,Rt);i=et,c=Le,p=kt;let Gt=Ds(se);return at(bt(se,Gt,vS(se)?bi(se,se.name):se.name,Ye))}else{i=et;let Le=Ds(se);i=!1,rt(Pt,_i);let kt=Ep(Pt),Tt=d.get(kt);return d.delete(kt),at(bt(se,Le,se.name,Tt))}}case 264:{P=se.name,E=se;let Pt=S.createNodeArray(Ds(se)),Le=Mr(se,se.typeParameters),kt=_h(se),Tt;if(kt){let fe=n;Tt=cM(Ma(kt.parameters,j=>{if(!ri(j,31)||js(j))return;if(n=n1(j),j.name.kind===80)return Hr(S.createPropertyDeclaration(Ds(j),j.name,j.questionToken,Ie(j),Ne(j)),j);return je(j.name);function je(q){let vt;for(let jt of q.elements)Fl(jt)||(Ls(jt.name)&&(vt=Qi(vt,je(jt.name))),vt=vt||[],vt.push(S.createPropertyDeclaration(Ds(j),jt.name,void 0,Ie(jt),void 0)));return vt}})),n=fe}let Ye=_t(se.members,fe=>!!fe.name&&zi(fe.name))?[S.createPropertyDeclaration(void 0,S.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,Gt=$.createLateBoundIndexSignatures(se,u,J4,U4,I),ln=Qi(Qi(Qi(Ye,Gt),Tt),Br(se.members,zn,cl)),Ae=S.createNodeArray(ln),wt=im(se);if(wt&&!mo(wt.expression)&&wt.expression.kind!==106){let fe=se.name?Ai(se.name.escapedText):"default",j=S.createUniqueName(`${fe}_base`,16);n=()=>({diagnosticMessage:_.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:wt,typeName:se.name});let je=S.createVariableDeclaration(j,void 0,$.createTypeOfExpression(wt.expression,se,J4,U4,I),void 0),q=S.createVariableStatement(i?[S.createModifier(138)]:[],S.createVariableDeclarationList([je],2)),vt=S.createNodeArray(kr(se.heritageClauses,jt=>{if(jt.token===96){let Ce=n;n=n1(jt.types[0]);let ut=S.updateHeritageClause(jt,kr(jt.types,Qt=>S.updateExpressionWithTypeArguments(Qt,j,Br(Qt.typeArguments,zn,yi))));return n=Ce,ut}return S.updateHeritageClause(jt,Br(S.createNodeArray(Mn(jt.types,Ce=>mo(Ce.expression)||Ce.expression.kind===106)),zn,sy))}));return[q,at(S.updateClassDeclaration(se,Pt,se.name,Le,vt,Ae))]}else{let fe=Mt(se.heritageClauses);return at(S.updateClassDeclaration(se,Pt,se.name,Le,fe,Ae))}}case 244:return at(tn(se));case 267:return at(S.updateEnumDeclaration(se,S.createNodeArray(Ds(se)),se.name,S.createNodeArray(Ji(se.members,Pt=>{if(js(Pt))return;let Le=$.getEnumMemberValue(Pt),kt=Le?.value;re&&Pt.initializer&&Le?.hasExternalReferences&&!na(Pt.name)&&e.addDiagnostic(_n(Pt,_.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations));let Tt=kt===void 0?void 0:typeof kt=="string"?S.createStringLiteral(kt):kt<0?S.createPrefixUnaryExpression(41,S.createNumericLiteral(-kt)):S.createNumericLiteral(kt);return Hr(S.updateEnumMember(Pt,Pt.name,Tt),Pt)}))))}return w.assertNever(se,`Unhandled top-level node in declaration emit: ${w.formatSyntaxKind(se.kind)}`);function at(Pt){return ft(se)&&(u=pt),Z&&(n=Ee),se.kind===268&&(i=et),Pt===se?Pt:(E=void 0,P=void 0,Pt&&Rn(Hr(Pt,se),se))}}function tn(se){if(!or(se.declarationList.declarations,St))return;let pt=Br(se.declarationList.declarations,zn,li);if(!Dr(pt))return;let Z=S.createNodeArray(Ds(se)),Ee;return YM(se.declarationList)||XM(se.declarationList)?(Ee=S.createVariableDeclarationList(pt,2),Rn(Ee,se.declarationList),mt(Ee,se.declarationList),gl(Ee,se.declarationList)):Ee=S.updateVariableDeclarationList(se.declarationList,pt),S.updateVariableStatement(se,Z,Ee)}function Xn(se){return ad(Ji(se.elements,pt=>ei(pt)))}function ei(se){if(se.kind!==233&&se.name)return St(se)?Ls(se.name)?Xn(se.name):S.createVariableDeclaration(se.name,void 0,Ie(se),void 0):void 0}function Mi(se){let pt;h||(pt=n,n=Jae(se)),P=se.name,w.assert(ey(se));let Ee=se.name.expression;qt(Ee,u),h||(n=pt),P=void 0}function js(se){return!!_e&&!!se&&yte(se,F)}function oa(se){return Qo(se)||tl(se)}function wr(se){return _t(se,oa)}function Ds(se){let pt=Mu(se),Z=tt(se);return pt===Z?oE(se.modifiers,Ee=>Hn(Ee,la),la):S.createModifiersFromModifierFlags(Z)}function tt(se){let pt=130030,Z=i&&!rUe(se)?128:0,Ee=se.parent.kind===308;return(!Ee||s&&Ee&&Pl(se.parent))&&(pt^=128,Z=0),yTe(se,pt,Z)}function Mt(se){return S.createNodeArray(Mn(kr(se,pt=>S.updateHeritageClause(pt,Br(S.createNodeArray(Mn(pt.types,Z=>mo(Z.expression)||pt.token===96&&Z.expression.kind===106)),zn,sy))),pt=>pt.types&&!!pt.types.length))}}function rUe(e){return e.kind===265}function nUe(e,t,n,i){return e.createModifiersFromModifierFlags(yTe(t,n,i))}function yTe(e,t=131070,n=0){let i=Mu(e)&t|n;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function vTe(e){switch(e.kind){case 173:case 172:return!If(e,2);case 170:case 261:return!0}return!1}function iUe(e){switch(e.kind){case 263:case 268:case 272:case 265:case 264:case 266:case 267:case 244:case 273:case 279:case 278:return!0}return!1}function sUe(e){switch(e.kind){case 181:case 177:case 175:case 178:case 179:case 173:case 172:case 174:case 180:case 182:case 261:case 169:case 234:case 184:case 195:case 185:case 186:case 206:return!0}return!1}function aUe(e){switch(e){case 200:return KU;case 99:case 7:case 6:case 5:case 100:case 101:case 102:case 199:case 1:return Gae;case 4:return zae;default:return QU}}var qae={scriptTransformers:Ke,declarationTransformers:Ke};function $ae(e,t,n){return{scriptTransformers:oUe(e,t,n),declarationTransformers:cUe(t)}}function oUe(e,t,n){if(n)return Ke;let i=xa(e),s=_p(e),o=z6(e),c=[];return Gn(c,t&&kr(t.before,STe)),c.push(xae),e.experimentalDecorators&&c.push(Iae),E8(e)&&c.push(jae),i<99&&c.push(Rae),!e.experimentalDecorators&&(i<99||!o)&&c.push(Dae),c.push(Cae),i<8&&c.push(Mae),i<7&&c.push(Nae),i<6&&c.push(Eae),i<5&&c.push(Aae),i<4&&c.push(Pae),i<3&&c.push(Lae),i<2&&(c.push(Wae),c.push(Bae)),c.push(aUe(s)),Gn(c,t&&kr(t.after,STe)),c}function cUe(e){let t=[];return t.push(XU),Gn(t,e&&kr(e.afterDeclarations,uUe)),t}function lUe(e){return t=>xie(t)?e.transformBundle(t):e.transformSourceFile(t)}function bTe(e,t){return n=>{let i=e(n);return typeof i=="function"?t(n,i):lUe(i)}}function STe(e){return bTe(e,pm)}function uUe(e){return bTe(e,(t,n)=>n)}function dE(e,t){return t}function V4(e,t,n){n(e,t)}function q4(e,t,n,i,s,o,c){var p,u;let g=new Array(359),d,h,S,T=0,x=[],I=[],P=[],E=[],F=0,O=!1,W=[],z=0,$,X,U=dE,_e=V4,re=0,V=[],ce={factory:n,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:up(()=>iie(ce)),startLexicalEnvironment:ae,suspendLexicalEnvironment:Ue,resumeLexicalEnvironment:te,endLexicalEnvironment:Ne,setLexicalEnvironmentFlags:Ie,getLexicalEnvironmentFlags:xe,hoistVariableDeclaration:ke,hoistFunctionDeclaration:Oe,addInitializationStatement:nt,startBlockScope:Qe,endBlockScope:St,addBlockScopedVariable:Bt,requestEmitHelper:fr,readEmitHelpers:Mr,enableSubstitution:H,enableEmitNotification:ye,isSubstitutionEnabled:Se,isEmitNotificationEnabled:ee,get onSubstituteNode(){return U},set onSubstituteNode(qt){w.assert(re<1,"Cannot modify transformation hooks after initialization has completed."),w.assert(qt!==void 0,"Value must not be 'undefined'"),U=qt},get onEmitNode(){return _e},set onEmitNode(qt){w.assert(re<1,"Cannot modify transformation hooks after initialization has completed."),w.assert(qt!==void 0,"Value must not be 'undefined'"),_e=qt},addDiagnostic(qt){V.push(qt)}};for(let qt of s)iJ(Nr(As(qt)));dc("beforeTransform");let oe=o.map(qt=>qt(ce)),le=qt=>{for(let Hr of oe)qt=Hr(qt);return qt};re=1;let de=[];for(let qt of s)(p=mn)==null||p.push(mn.Phase.Emit,"transformNodes",qt.kind===308?{path:qt.path}:{kind:qt.kind,pos:qt.pos,end:qt.end}),de.push((c?le:ve)(qt)),(u=mn)==null||u.pop();return re=2,dc("afterTransform"),P_("transformTime","beforeTransform","afterTransform"),{transformed:de,substituteNode:Je,emitNodeWithNotification:ge,isEmitNotificationEnabled:ee,dispose:ft,diagnostics:V};function ve(qt){return qt&&(!Li(qt)||!qt.isDeclarationFile)?le(qt):qt}function H(qt){w.assert(re<2,"Cannot modify the transformation context after transformation has completed."),g[qt]|=1}function Se(qt){return(g[qt.kind]&1)!==0&&(Oa(qt)&8)===0}function Je(qt,Hr){return w.assert(re<3,"Cannot substitute a node after the result is disposed."),Hr&&Se(Hr)&&U(qt,Hr)||Hr}function ye(qt){w.assert(re<2,"Cannot modify the transformation context after transformation has completed."),g[qt]|=2}function ee(qt){return(g[qt.kind]&2)!==0||(Oa(qt)&4)!==0}function ge(qt,Hr,bi){w.assert(re<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Hr&&(ee(Hr)?_e(qt,Hr,bi):bi(qt,Hr))}function ke(qt){w.assert(re>0,"Cannot modify the lexical environment during initialization."),w.assert(re<2,"Cannot modify the lexical environment after transformation has completed.");let Hr=yn(n.createVariableDeclaration(qt),128);d?d.push(Hr):d=[Hr],T&1&&(T|=2)}function Oe(qt){w.assert(re>0,"Cannot modify the lexical environment during initialization."),w.assert(re<2,"Cannot modify the lexical environment after transformation has completed."),yn(qt,2097152),h?h.push(qt):h=[qt]}function nt(qt){w.assert(re>0,"Cannot modify the lexical environment during initialization."),w.assert(re<2,"Cannot modify the lexical environment after transformation has completed."),yn(qt,2097152),S?S.push(qt):S=[qt]}function ae(){w.assert(re>0,"Cannot modify the lexical environment during initialization."),w.assert(re<2,"Cannot modify the lexical environment after transformation has completed."),w.assert(!O,"Lexical environment is suspended."),x[F]=d,I[F]=h,P[F]=S,E[F]=T,F++,d=void 0,h=void 0,S=void 0,T=0}function Ue(){w.assert(re>0,"Cannot modify the lexical environment during initialization."),w.assert(re<2,"Cannot modify the lexical environment after transformation has completed."),w.assert(!O,"Lexical environment is already suspended."),O=!0}function te(){w.assert(re>0,"Cannot modify the lexical environment during initialization."),w.assert(re<2,"Cannot modify the lexical environment after transformation has completed."),w.assert(O,"Lexical environment is not suspended."),O=!1}function Ne(){w.assert(re>0,"Cannot modify the lexical environment during initialization."),w.assert(re<2,"Cannot modify the lexical environment after transformation has completed."),w.assert(!O,"Lexical environment is suspended.");let qt;if(d||h||S){if(h&&(qt=[...h]),d){let Hr=n.createVariableStatement(void 0,n.createVariableDeclarationList(d));yn(Hr,2097152),qt?qt.push(Hr):qt=[Hr]}S&&(qt?qt=[...qt,...S]:qt=[...S])}return F--,d=x[F],h=I[F],S=P[F],T=E[F],F===0&&(x=[],I=[],P=[],E=[]),qt}function Ie(qt,Hr){T=Hr?T|qt:T&~qt}function xe(){return T}function Qe(){w.assert(re>0,"Cannot start a block scope during initialization."),w.assert(re<2,"Cannot start a block scope after transformation has completed."),W[z]=$,z++,$=void 0}function St(){w.assert(re>0,"Cannot end a block scope during initialization."),w.assert(re<2,"Cannot end a block scope after transformation has completed.");let qt=_t($)?[n.createVariableStatement(void 0,n.createVariableDeclarationList($.map(Hr=>n.createVariableDeclaration(Hr)),1))]:void 0;return z--,$=W[z],z===0&&(W=[]),qt}function Bt(qt){w.assert(z>0,"Cannot add a block scoped variable outside of an iteration body."),($||($=[])).push(qt)}function fr(qt){if(w.assert(re>0,"Cannot modify the transformation context during initialization."),w.assert(re<2,"Cannot modify the transformation context after transformation has completed."),w.assert(!qt.scoped,"Cannot request a scoped emit helper."),qt.dependencies)for(let Hr of qt.dependencies)fr(Hr);X=Fr(X,qt)}function Mr(){w.assert(re>0,"Cannot modify the transformation context during initialization."),w.assert(re<2,"Cannot modify the transformation context after transformation has completed.");let qt=X;return X=void 0,qt}function ft(){if(re<3){for(let qt of s)iJ(Nr(As(qt)));d=void 0,x=void 0,h=void 0,I=void 0,U=void 0,_e=void 0,X=void 0,re=3}}}var $4={factory:A,getCompilerOptions:()=>({}),getEmitResolver:ea,getEmitHost:ea,getEmitHelperFactory:ea,startLexicalEnvironment:no,resumeLexicalEnvironment:no,suspendLexicalEnvironment:no,endLexicalEnvironment:lS,setLexicalEnvironmentFlags:no,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:no,hoistFunctionDeclaration:no,addInitializationStatement:no,startBlockScope:no,endBlockScope:lS,addBlockScopedVariable:no,requestEmitHelper:no,readEmitHelpers:ea,enableSubstitution:no,enableEmitNotification:no,isSubstitutionEnabled:ea,isEmitNotificationEnabled:ea,onSubstituteNode:dE,onEmitNode:V4,addDiagnostic:no},TTe=fUe();function Hae(e){return uc(e,".tsbuildinfo")}function YU(e,t,n,i=!1,s,o){let c=gs(n)?n:u8(e,n,i),p=e.getCompilerOptions();if(!s)if(p.outFile){if(c.length){let u=A.createBundle(c),g=t(mE(u,e,i),u);if(g)return g}}else for(let u of c){let g=t(mE(u,e,i),u);if(g)return g}if(o){let u=i1(p);if(u)return t({buildInfoPath:u},void 0)}}function i1(e){let t=e.configFilePath;if(!pUe(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;let n=e.outFile,i;if(n)i=dp(n);else{if(!t)return;let s=dp(t);i=e.outDir?e.rootDir?ib(e.outDir,n_(e.rootDir,s,!0)):Jn(e.outDir,dl(s)):s}return i+".tsbuildinfo"}function pUe(e){return NS(e)||!!e.tscBuild}function Qae(e,t){let n=e.outFile,i=e.emitDeclarationOnly?void 0:n,s=i&&kTe(i,e),o=t||lf(e)?dp(n)+".d.ts":void 0,c=o&&I8(e)?o+".map":void 0;return{jsFilePath:i,sourceMapFilePath:s,declarationFilePath:o,declarationMapPath:c}}function mE(e,t,n){let i=t.getCompilerOptions();if(e.kind===309)return Qae(i,n);{let s=xre(e.fileName,t,H4(e.fileName,i)),o=M_(e),c=o&&Hh(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,p=i.emitDeclarationOnly||c?void 0:s,u=!p||M_(e)?void 0:kTe(p,i),g=n||lf(i)&&!o?Cre(e.fileName,t):void 0,d=g&&I8(i)?g+".map":void 0;return{jsFilePath:p,sourceMapFilePath:u,declarationFilePath:g,declarationMapPath:d}}}function kTe(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function H4(e,t){return uc(e,".json")?".json":t.jsx===1&&Bc(e,[".jsx",".tsx"])?".jsx":Bc(e,[".mts",".mjs"])?".mjs":Bc(e,[".cts",".cjs"])?".cjs":".js"}function xTe(e,t,n,i){return n?ib(n,n_(i(),e,t)):e}function gE(e,t,n,i=()=>Mk(t,n)){return ZU(e,t.options,n,i)}function ZU(e,t,n,i){return tv(xTe(e,n,t.declarationDir||t.outDir,i),c8(e))}function CTe(e,t,n,i=()=>Mk(t,n)){if(t.options.emitDeclarationOnly)return;let s=uc(e,".json"),o=eV(e,t.options,n,i);return!s||Hh(e,o,w.checkDefined(t.options.configFilePath),n)!==0?o:void 0}function eV(e,t,n,i){return tv(xTe(e,n,t.outDir,i),H4(e,t))}function wTe(){let e;return{addOutput:t,getOutputs:n};function t(i){i&&(e||(e=[])).push(i)}function n(){return e||Ke}}function ITe(e,t){let{jsFilePath:n,sourceMapFilePath:i,declarationFilePath:s,declarationMapPath:o}=Qae(e.options,!1);t(n),t(i),t(s),t(o)}function DTe(e,t,n,i,s){if(Kl(t))return;let o=CTe(t,e,n,s);if(i(o),!uc(t,".json")&&(o&&e.options.sourceMap&&i(`${o}.map`),lf(e.options))){let c=gE(t,e,n,s);i(c),e.options.declarationMap&&i(`${c}.map`)}}function hE(e,t,n,i,s){let o;return e.rootDir?(o=as(e.rootDir,n),s?.(e.rootDir)):e.composite&&e.configFilePath?(o=ti(ou(e.configFilePath)),s?.(o)):o=noe(t(),n,i),o&&o[o.length-1]!==Ro&&(o+=Ro),o}function Mk({options:e,fileNames:t},n){return hE(e,()=>Mn(t,i=>!(e.noEmitForJsFiles&&Bc(i,aI))&&!Kl(i)),ti(ou(w.checkDefined(e.configFilePath))),hu(!n))}function dj(e,t){let{addOutput:n,getOutputs:i}=wTe();if(e.options.outFile)ITe(e,n);else{let s=up(()=>Mk(e,t));for(let o of e.fileNames)DTe(e,o,t,n,s)}return n(i1(e.options)),i()}function PTe(e,t,n){t=ra(t),w.assert(ws(e.fileNames,t),"Expected fileName to be present in command line");let{addOutput:i,getOutputs:s}=wTe();return e.options.outFile?ITe(e,i):DTe(e,t,n,i),s()}function tV(e,t){if(e.options.outFile){let{jsFilePath:s,declarationFilePath:o}=Qae(e.options,!1);return w.checkDefined(s||o,`project ${e.options.configFilePath} expected to have at least one output`)}let n=up(()=>Mk(e,t));for(let s of e.fileNames){if(Kl(s))continue;let o=CTe(s,e,t,n);if(o)return o;if(!uc(s,".json")&&lf(e.options))return gE(s,e,t,n)}let i=i1(e.options);return i||w.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function rV(e,t){return!!t&&!!e}function nV(e,t,n,{scriptTransformers:i,declarationTransformers:s},o,c,p,u){var g=t.getCompilerOptions(),d=g.sourceMap||g.inlineSourceMap||I8(g)?[]:void 0,h=g.listEmittedFiles?[]:void 0,S=lA(),T=Zy(g),x=D6(T),{enter:I,exit:P}=HW("printTime","beforePrint","afterPrint"),E=!1;return I(),YU(t,F,u8(t,n,p),p,c,!n&&!u),P(),{emitSkipped:E,diagnostics:S.getDiagnostics(),emittedFiles:h,sourceMaps:d};function F({jsFilePath:oe,sourceMapFilePath:le,declarationFilePath:de,declarationMapPath:ve,buildInfoPath:H},Se){var Je,ye,ee,ge,ke,Oe;(Je=mn)==null||Je.push(mn.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:oe}),W(Se,oe,le),(ye=mn)==null||ye.pop(),(ee=mn)==null||ee.push(mn.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:de}),z(Se,de,ve),(ge=mn)==null||ge.pop(),(ke=mn)==null||ke.push(mn.Phase.Emit,"emitBuildInfo",{buildInfoPath:H}),O(H),(Oe=mn)==null||Oe.pop()}function O(oe){if(!oe||n)return;if(t.isEmitBlocked(oe)){E=!0;return}let le=t.getBuildInfo()||{version:Vi};f8(t,S,oe,Kae(le),!1,void 0,{buildInfo:le}),h?.push(oe)}function W(oe,le,de){if(!oe||o||!le)return;if(t.isEmitBlocked(le)||g.noEmit){E=!0;return}(Li(oe)?[oe]:Mn(oe.sourceFiles,$F)).forEach(Je=>{(g.noCheck||!wA(Je,g))&&X(Je)});let ve=q4(e,t,A,g,[oe],i,!1),H={removeComments:g.removeComments,newLine:g.newLine,noEmitHelpers:g.noEmitHelpers,module:_p(g),moduleResolution:Ku(g),target:xa(g),sourceMap:g.sourceMap,inlineSourceMap:g.inlineSourceMap,inlineSources:g.inlineSources,extendedDiagnostics:g.extendedDiagnostics},Se=jb(H,{hasGlobalName:e.hasGlobalName,onEmitNode:ve.emitNodeWithNotification,isEmitNotificationEnabled:ve.isEmitNotificationEnabled,substituteNode:ve.substituteNode});w.assert(ve.transformed.length===1,"Should only see one output from the transform"),U(le,de,ve,Se,g),ve.dispose(),h&&(h.push(le),de&&h.push(de))}function z(oe,le,de){if(!oe||o===0)return;if(!le){(o||g.emitDeclarationOnly)&&(E=!0);return}let ve=Li(oe)?[oe]:oe.sourceFiles,H=p?ve:Mn(ve,$F),Se=g.outFile?[A.createBundle(H)]:H;H.forEach(ee=>{(o&&!lf(g)||g.noCheck||rV(o,p)||!wA(ee,g))&&$(ee)});let Je=q4(e,t,A,g,Se,s,!1);if(Dr(Je.diagnostics))for(let ee of Je.diagnostics)S.add(ee);let ye=!!Je.diagnostics&&!!Je.diagnostics.length||!!t.isEmitBlocked(le)||!!g.noEmit;if(E=E||ye,!ye||p){w.assert(Je.transformed.length===1,"Should only see one output from the decl transform");let ee={removeComments:g.removeComments,newLine:g.newLine,noEmitHelpers:!0,module:g.module,moduleResolution:g.moduleResolution,target:g.target,sourceMap:o!==2&&g.declarationMap,inlineSourceMap:g.inlineSourceMap,extendedDiagnostics:g.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0},ge=jb(ee,{hasGlobalName:e.hasGlobalName,onEmitNode:Je.emitNodeWithNotification,isEmitNotificationEnabled:Je.isEmitNotificationEnabled,substituteNode:Je.substituteNode}),ke=U(le,de,Je,ge,{sourceMap:ee.sourceMap,sourceRoot:g.sourceRoot,mapRoot:g.mapRoot,extendedDiagnostics:g.extendedDiagnostics});h&&(ke&&h.push(le),de&&h.push(de))}Je.dispose()}function $(oe){if(Qo(oe)){oe.expression.kind===80&&e.collectLinkedAliases(oe.expression,!0);return}else if(Xu(oe)){e.collectLinkedAliases(oe.propertyName||oe.name,!0);return}Ms(oe,$)}function X(oe){Cp(oe)||K2(oe,le=>{if(Dl(le)&&!(Xy(le)&32)||ac(le))return"skip";e.markLinkedReferences(le)})}function U(oe,le,de,ve,H){let Se=de.transformed[0],Je=Se.kind===309?Se:void 0,ye=Se.kind===308?Se:void 0,ee=Je?Je.sourceFiles:[ye],ge;_e(H,Se)&&(ge=aae(t,dl(ou(oe)),re(H),V(H,oe,ye),H)),Je?ve.writeBundle(Je,x,ge):ve.writeFile(ye,x,ge);let ke;if(ge){d&&d.push({inputSourceFileNames:ge.getSources(),sourceMap:ge.toJSON()});let ae=ce(H,ge,oe,le,ye);if(ae&&(x.isAtStartOfLine()||x.rawWrite(T),ke=x.getTextPos(),x.writeComment(`//# sourceMappingURL=${ae}`)),le){let Ue=ge.toString();f8(t,S,le,Ue,!1,ee)}}else x.writeLine();let Oe=x.getText(),nt={sourceMapUrlPos:ke,diagnostics:de.diagnostics};return f8(t,S,oe,Oe,!!g.emitBOM,ee,nt),x.clear(),!nt.skippedDtsWrite}function _e(oe,le){return(oe.sourceMap||oe.inlineSourceMap)&&(le.kind!==308||!uc(le.fileName,".json"))}function re(oe){let le=ou(oe.sourceRoot||"");return le&&Ml(le)}function V(oe,le,de){if(oe.sourceRoot)return t.getCommonSourceDirectory();if(oe.mapRoot){let ve=ou(oe.mapRoot);return de&&(ve=ti(p8(de.fileName,t,ve))),em(ve)===0&&(ve=Jn(t.getCommonSourceDirectory(),ve)),ve}return ti(ra(le))}function ce(oe,le,de,ve,H){if(oe.inlineSourceMap){let Je=le.toString();return`data:application/json;base64,${zre(Nl,Je)}`}let Se=dl(ou(w.checkDefined(ve)));if(oe.mapRoot){let Je=ou(oe.mapRoot);return H&&(Je=ti(p8(H.fileName,t,Je))),em(Je)===0?(Je=Jn(t.getCommonSourceDirectory(),Je),encodeURI(Zx(ti(ra(de)),Jn(Je,Se),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Jn(Je,Se))}return encodeURI(Se)}}function Kae(e){return JSON.stringify(e)}function iV(e,t){return uG(e,t)}var Xae={hasGlobalName:ea,getReferencedExportContainer:ea,getReferencedImportDeclaration:ea,getReferencedDeclarationWithCollidingName:ea,isDeclarationWithCollidingName:ea,isValueAliasDeclaration:ea,isReferencedAliasDeclaration:ea,isTopLevelValueImportEqualsWithEntityName:ea,hasNodeCheckFlag:ea,isDeclarationVisible:ea,isLateBound:e=>!1,collectLinkedAliases:ea,markLinkedReferences:ea,isImplementationOfOverload:ea,requiresAddingImplicitUndefined:ea,isExpandoFunctionDeclaration:ea,getPropertiesOfContainerFunction:ea,createTypeOfDeclaration:ea,createReturnTypeOfSignatureDeclaration:ea,createTypeOfExpression:ea,createLiteralConstValue:ea,isSymbolAccessible:ea,isEntityNameVisible:ea,getConstantValue:ea,getEnumMemberValue:ea,getReferencedValueDeclaration:ea,getReferencedValueDeclarations:ea,getTypeReferenceSerializationKind:ea,isOptionalParameter:ea,isArgumentsLocalBinding:ea,getExternalModuleFileFromDeclaration:ea,isLiteralConstDeclaration:ea,getJsxFactoryEntity:ea,getJsxFragmentFactoryEntity:ea,isBindingCapturedByNode:ea,getDeclarationStatementsForSourceFile:ea,isImportRequiredByAugmentation:ea,isDefinitelyReferenceToGlobalSymbolObject:ea,createLateBoundIndexSignatures:ea,symbolToDeclarations:ea},Yae=up(()=>jb({})),HS=up(()=>jb({removeComments:!0})),Zae=up(()=>jb({removeComments:!0,neverAsciiEscape:!0})),sV=up(()=>jb({removeComments:!0,omitTrailingSemicolon:!0}));function jb(e={},t={}){var{hasGlobalName:n,onEmitNode:i=V4,isEmitNotificationEnabled:s,substituteNode:o=dE,onBeforeEmitNode:c,onAfterEmitNode:p,onBeforeEmitNodeArray:u,onAfterEmitNodeArray:g,onBeforeEmitToken:d,onAfterEmitToken:h}=t,S=!!e.extendedDiagnostics,T=!!e.omitBraceSourceMapPositions,x=Zy(e),I=_p(e),P=new Map,E,F,O,W,z,$,X,U,_e,re,V,ce,oe,le,de,ve=e.preserveSourceNewlines,H,Se,Je,ye=vD,ee,ge=!0,ke,Oe,nt=-1,ae,Ue=-1,te=-1,Ne=-1,Ie=-1,xe,Qe,St=!1,Bt=!!e.removeComments,fr,Mr,{enter:ft,exit:qt}=Fve(S,"commentTime","beforeComment","afterComment"),Hr=A.parenthesizer,bi={select:C=>C===0?Hr.parenthesizeLeadingTypeArgument:void 0},us=bl();return js(),{printNode:At,printList:Un,printFile:zn,printBundle:rs,writeNode:Sn,writeList:_i,writeFile:bt,writeBundle:qe};function At(C,pe,yt){switch(C){case 0:w.assert(Li(pe),"Expected a SourceFile node.");break;case 2:w.assert(Be(pe),"Expected an Identifier node.");break;case 1:w.assert(ht(pe),"Expected an Expression node.");break}switch(pe.kind){case 308:return zn(pe);case 309:return rs(pe)}return Sn(C,pe,yt,ar()),tn()}function Un(C,pe,yt){return _i(C,pe,yt,ar()),tn()}function rs(C){return qe(C,ar(),void 0),tn()}function zn(C){return bt(C,ar(),void 0),tn()}function Sn(C,pe,yt,gr){let ui=Se;Mi(gr,void 0),Xn(C,pe,yt),js(),Se=ui}function _i(C,pe,yt,gr){let ui=Se;Mi(gr,void 0),yt&&ei(yt),Wn(void 0,pe,C),js(),Se=ui}function qe(C,pe,yt){ee=!1;let gr=Se;Mi(pe,yt),bv(C),Jd(C),Gt(C),nN(C);for(let ui of C.sourceFiles)Xn(0,ui,ui);js(),Se=gr}function bt(C,pe,yt){ee=!0;let gr=Se;Mi(pe,yt),bv(C),Jd(C),Xn(0,C,C),js(),Se=gr}function ar(){return Je||(Je=D6(x))}function tn(){let C=Je.getText();return Je.clear(),C}function Xn(C,pe,yt){yt&&ei(yt),Z(C,pe,void 0)}function ei(C){E=C,xe=void 0,Qe=void 0,C&&mT(C)}function Mi(C,pe){C&&e.omitTrailingSemicolon&&(C=Hz(C)),Se=C,ke=pe,ge=!Se||!ke}function js(){F=[],O=[],W=[],z=new Set,$=[],X=new Map,U=[],_e=0,re=[],V=0,ce=[],oe=void 0,le=[],de=void 0,E=void 0,xe=void 0,Qe=void 0,Mi(void 0,void 0)}function oa(){return xe||(xe=th(w.checkDefined(E)))}function wr(C,pe){C!==void 0&&Z(4,C,pe)}function Ds(C){C!==void 0&&Z(2,C,void 0)}function tt(C,pe){C!==void 0&&Z(1,C,pe)}function Mt(C){Z(ya(C)?6:4,C)}function se(C){ve&&Rd(C)&4&&(ve=!1)}function pt(C){ve=C}function Z(C,pe,yt){Mr=yt,at(0,C,pe)(C,pe),Mr=void 0}function Ee(C){return!Bt&&!Li(C)}function et(C){return!ge&&!Li(C)&&!qF(C)}function at(C,pe,yt){switch(C){case 0:if(i!==V4&&(!s||s(yt)))return Le;case 1:if(o!==dE&&(fr=o(pe,yt)||yt)!==yt)return Mr&&(fr=Mr(fr)),Ye;case 2:if(Ee(yt))return _T;case 3:if(et(yt))return lx;case 4:return kt;default:return w.assertNever(C)}}function Pt(C,pe,yt){return at(C+1,pe,yt)}function Le(C,pe){let yt=Pt(0,C,pe);i(C,pe,yt)}function kt(C,pe){if(c?.(pe),ve){let yt=ve;se(pe),Tt(C,pe),pt(yt)}else Tt(C,pe);p?.(pe),Mr=void 0}function Tt(C,pe,yt=!0){if(yt){let gr=aJ(pe);if(gr)return fe(C,pe,gr)}if(C===0)return k1(Zs(pe,Li));if(C===2)return q(Zs(pe,Be));if(C===6)return wt(Zs(pe,ya),!0);if(C===3)return Rt(Zs(pe,Ho));if(C===7)return cg(Zs(pe,Tk));if(C===5)return w.assertNode(pe,hJ),mm(!0);if(C===4){switch(pe.kind){case 16:case 17:case 18:return wt(pe,!1);case 80:return q(pe);case 81:return vt(pe);case 167:return jt(pe);case 168:return ut(pe);case 169:return Qt(pe);case 170:return Zr(pe);case 171:return jr(pe);case 172:return Jr(pe);case 173:return ct(pe);case 174:return It(pe);case 175:return Ot(pe);case 176:return Ht(pe);case 177:return hr(pe);case 178:case 179:return ur(pe);case 180:return Nt(pe);case 181:return mr(pe);case 182:return Tr(pe);case 183:return di(pe);case 184:return Vs(pe);case 185:return qs(pe);case 186:return ll(pe);case 187:return Lo(pe);case 188:return fa(pe);case 189:return Jc(pe);case 190:return ys(pe);case 191:return Ga(pe);case 193:return Fa(pe);case 194:return $t(pe);case 195:return uo(pe);case 196:return Mc(pe);case 197:return rl(pe);case 234:return Zl(pe);case 198:return Yl();case 199:return Ko(pe);case 200:return Rc(pe);case 201:return N(pe);case 202:return We(pe);case 203:return Ys(pe);case 204:return dt(pe);case 205:return Cr(pe);case 206:return Ut(pe);case 207:return Wr(pe);case 208:return Yn(pe);case 209:return hn(pe);case 240:return xh(pe);case 241:return rr();case 242:return Ch(pe);case 244:return Ll(pe);case 243:return mm(!1);case 245:return m_(pe);case 246:return og(pe);case 247:return ot(pe);case 248:return Kt(pe);case 249:return er(pe);case 250:return Ar(pe);case 251:return Qr(pe);case 252:return fi(pe);case 253:return Wi(pe);case 254:return zs(pe);case 255:return os(pe);case 256:return Ps(pe);case 257:return rc(pe);case 258:return _a(pe);case 259:return eu(pe);case 260:return jf(pe);case 261:return g_(pe);case 262:return V_(pe);case 263:return gy(pe);case 264:return yr(pe);case 265:return Tn(pe);case 266:return zr(pe);case 267:return en(pe);case 268:return Ci(pe);case 269:return ps(pe);case 270:return oi(pe);case 271:return jg(pe);case 272:return fs(pe);case 273:return nc(pe);case 274:return Zp(pe);case 275:return kd(pe);case 281:return dD(pe);case 276:return _u(pe);case 277:return xd(pe);case 278:return Lf(pe);case 279:return m1(pe);case 280:return tN(pe);case 282:return mD(pe);case 301:return Fg(pe);case 302:return g1(pe);case 283:return;case 284:return Uk(pe);case 12:return qk(pe);case 287:case 290:return rN(pe);case 288:case 291:return CC(pe);case 292:return gD(pe);case 293:return y1(pe);case 294:return $k(pe);case 295:return IC(pe);case 296:return DC(pe);case 297:return Vb(pe);case 298:return yv(pe);case 299:return yy(pe);case 300:return vy(pe);case 304:return qb(pe);case 305:return v1(pe);case 306:return Hk(pe);case 307:return b1(pe);case 308:return k1(pe);case 309:return w.fail("Bundles should be printed using printBundle");case 310:return T1(pe);case 311:return Sy(pe);case 313:return Pn("*");case 314:return Pn("?");case 315:return vo(pe);case 316:return Ki(pe);case 317:return Cs(pe);case 318:return vc(pe);case 192:case 319:return d_(pe);case 320:return;case 321:return Ba(pe);case 323:return yp(pe);case 324:return Wg(pe);case 328:case 333:case 338:return S1(pe);case 329:case 330:return Lg(pe);case 331:case 332:return;case 334:case 335:case 336:case 337:return;case 339:return ef(pe);case 340:return Wu(pe);case 342:case 349:return Rp(pe);case 341:case 343:case 344:case 345:case 350:case 351:return Qk(pe);case 346:return Yo(pe);case 347:return Lu(pe);case 348:return hD(pe);case 352:return by(pe);case 354:case 355:return}if(ht(pe)&&(C=1,o!==dE)){let gr=o(C,pe)||pe;gr!==pe&&(pe=gr,Mr&&(pe=Mr(pe)))}}if(C===1)switch(pe.kind){case 9:case 10:return Ae(pe);case 11:case 14:case 15:return wt(pe,!1);case 80:return q(pe);case 81:return vt(pe);case 210:return Rr(pe);case 211:return Di(pe);case 212:return Ri(pe);case 213:return ua(pe);case 214:return Xo(pe);case 215:return ul(pe);case 216:return Kc(pe);case 217:return Eo(pe);case 218:return Uc(pe);case 219:return Of(pe);case 220:return Cu(pe);case 221:return Re(pe);case 222:return zt(pe);case 223:return Vr(pe);case 224:return ns(pe);case 225:return ja(pe);case 226:return Ca(pe);case 227:return us(pe);case 228:return zo(pe);case 229:return bc(pe);case 230:return Oc(pe);case 231:return Xf(pe);case 232:return fu(pe);case 233:return;case 235:return Ff(pe);case 236:return hp(pe);case 234:return Zl(pe);case 239:return U_(pe);case 237:return Rg(pe);case 238:return w.fail("SyntheticExpression should never be printed.");case 283:return;case 285:return hv(pe);case 286:return Vk(pe);case 289:return xC(pe);case 353:return w.fail("SyntaxList should not be printed");case 354:return;case 356:return $e(pe);case 357:return Kk(pe);case 358:return w.fail("SyntheticReferenceExpression should not be printed")}if(qp(pe.kind))return ex(pe,Ts);if(BB(pe.kind))return ex(pe,Pn);w.fail(`Unhandled SyntaxKind: ${w.formatSyntaxKind(pe.kind)}.`)}function Rt(C){wr(C.name),bn(),Ts("in"),bn(),wr(C.constraint)}function Ye(C,pe){let yt=Pt(1,C,pe);w.assertIsDefined(fr),pe=fr,fr=void 0,yt(C,pe)}function Gt(C){let pe=!1,yt=C.kind===309?C:void 0;if(yt&&I===0)return;let gr=yt?yt.sourceFiles.length:1;for(let ui=0;ui<gr;ui++){let xi=yt?yt.sourceFiles[ui]:C,cs=Li(xi)?xi:E,ki=e.noEmitHelpers||!!cs&&Bie(cs),Pa=Li(xi)&&!ee,il=ln(xi);if(il)for(let Bu of il){if(Bu.scoped){if(yt)continue}else{if(ki)continue;if(Pa){if(P.get(Bu.name))continue;P.set(Bu.name,!0)}}typeof Bu.text=="string"?Ud(Bu.text):Ud(Bu.text(TD)),pe=!0}}return pe}function ln(C){let pe=sJ(C);return pe&&yf(pe,sie)}function Ae(C){wt(C,!1)}function wt(C,pe){let yt=Zb(C,void 0,e.neverAsciiEscape,pe);(e.sourceMap||e.inlineSourceMap)&&(C.kind===11||cb(C.kind))?ky(yt):pT(yt)}function fe(C,pe,yt){switch(yt.kind){case 1:j(C,pe,yt);break;case 0:je(C,pe,yt);break}}function j(C,pe,yt){PC(`\${${yt.order}:`),Tt(C,pe,!1),PC("}")}function je(C,pe,yt){w.assert(pe.kind===243,`A tab stop cannot be attached to a node of kind ${w.formatSyntaxKind(pe.kind)}.`),w.assert(C!==5,"A tab stop cannot be attached to an embedded statement."),PC(`$${yt.order}`)}function q(C){(C.symbol?iN:ye)(xv(C,!1),C.symbol),Wn(C,dk(C),53776)}function vt(C){ye(xv(C,!1))}function jt(C){Ce(C.left),Pn("."),wr(C.right)}function Ce(C){C.kind===80?tt(C):wr(C)}function ut(C){Pn("["),tt(C.expression,Hr.parenthesizeExpressionOfComputedPropertyName),Pn("]")}function Qt(C){hm(C,C.modifiers),wr(C.name),C.constraint&&(bn(),Ts("extends"),bn(),wr(C.constraint)),C.default&&(bn(),ff("="),bn(),wr(C.default))}function Zr(C){vp(C,C.modifiers,!0),wr(C.dotDotDotToken),$b(C.name,Zk),wr(C.questionToken),C.parent&&C.parent.kind===318&&!C.name?wr(C.type):wd(C.type),x1(C.initializer,C.type?C.type.end:C.questionToken?C.questionToken.end:C.name?C.name.end:C.modifiers?C.modifiers.end:C.pos,C,Hr.parenthesizeExpressionForDisallowedComma)}function jr(C){Pn("@"),tt(C.expression,Hr.parenthesizeLeftSideOfAccess)}function Jr(C){hm(C,C.modifiers),$b(C.name,bD),wr(C.questionToken),wd(C.type),bp()}function ct(C){vp(C,C.modifiers,!0),wr(C.name),wr(C.questionToken),wr(C.exclamationToken),wd(C.type),x1(C.initializer,C.type?C.type.end:C.questionToken?C.questionToken.end:C.name.end,C),bp()}function It(C){hm(C,C.modifiers),wr(C.name),wr(C.questionToken),Mp(C,Td,gm)}function Ot(C){vp(C,C.modifiers,!0),wr(C.asteriskToken),wr(C.name),wr(C.questionToken),Mp(C,Td,Og)}function Ht(C){Ts("static"),Vd(C),Ve(C.body),Cy(C)}function hr(C){vp(C,C.modifiers,!1),Ts("constructor"),Mp(C,Td,Og)}function ur(C){let pe=vp(C,C.modifiers,!0),yt=C.kind===178?139:153;L(yt,pe,Ts,C),bn(),wr(C.name),Mp(C,Td,Og)}function Nt(C){Mp(C,Td,gm)}function mr(C){Ts("new"),bn(),Mp(C,Td,gm)}function Tr(C){vp(C,C.modifiers,!1),uT(C,C.parameters),wd(C.type),bp()}function Cr(C){wr(C.type),wr(C.literal)}function rr(){bp()}function di(C){C.assertsModifier&&(wr(C.assertsModifier),bn()),wr(C.parameterName),C.type&&(bn(),Ts("is"),bn(),wr(C.type))}function Vs(C){wr(C.typeName),q_(C,C.typeArguments)}function qs(C){Mp(C,xs,Dc)}function xs(C){Dh(C,C.typeParameters),lg(C,C.parameters),bn(),Pn("=>")}function Dc(C){bn(),wr(C.type)}function vc(C){Ts("function"),C1(C,C.parameters),Pn(":"),wr(C.type)}function vo(C){Pn("?"),wr(C.type)}function Ki(C){Pn("!"),wr(C.type)}function Cs(C){wr(C.type),Pn("=")}function ll(C){hm(C,C.modifiers),Ts("new"),bn(),Mp(C,xs,Dc)}function Lo(C){Ts("typeof"),bn(),wr(C.exprName),q_(C,C.typeArguments)}function fa(C){Vd(C),or(C.members,fT),Pn("{");let pe=Oa(C)&1?768:32897;Wn(C,C.members,pe|524288),Pn("}"),Cy(C)}function Jc(C){wr(C.elementType,Hr.parenthesizeNonArrayTypeOfPostfixType),Pn("["),Pn("]")}function d_(C){Pn("..."),wr(C.type)}function ys(C){L(23,C.pos,Pn,C);let pe=Oa(C)&1?528:657;Wn(C,C.elements,pe|524288,Hr.parenthesizeElementTypeOfTupleType),L(24,C.elements.end,Pn,C)}function Ys(C){wr(C.dotDotDotToken),wr(C.name),wr(C.questionToken),L(59,C.name.end,Pn,C),bn(),wr(C.type)}function Ga(C){wr(C.type,Hr.parenthesizeTypeOfOptionalType),Pn("?")}function Fa(C){Wn(C,C.types,516,Hr.parenthesizeConstituentTypeOfUnionType)}function $t(C){Wn(C,C.types,520,Hr.parenthesizeConstituentTypeOfIntersectionType)}function uo(C){wr(C.checkType,Hr.parenthesizeCheckTypeOfConditionalType),bn(),Ts("extends"),bn(),wr(C.extendsType,Hr.parenthesizeExtendsTypeOfConditionalType),bn(),Pn("?"),bn(),wr(C.trueType),bn(),Pn(":"),bn(),wr(C.falseType)}function Mc(C){Ts("infer"),bn(),wr(C.typeParameter)}function rl(C){Pn("("),wr(C.type),Pn(")")}function Yl(){Ts("this")}function Ko(C){Kb(C.operator,Ts),bn();let pe=C.operator===148?Hr.parenthesizeOperandOfReadonlyTypeOperator:Hr.parenthesizeOperandOfTypeOperator;wr(C.type,pe)}function Rc(C){wr(C.objectType,Hr.parenthesizeNonArrayTypeOfPostfixType),Pn("["),wr(C.indexType),Pn("]")}function N(C){let pe=Oa(C);Pn("{"),pe&1?bn():(rp(),Bg()),C.readonlyToken&&(wr(C.readonlyToken),C.readonlyToken.kind!==148&&Ts("readonly"),bn()),Pn("["),Z(3,C.typeParameter),C.nameType&&(bn(),Ts("as"),bn(),wr(C.nameType)),Pn("]"),C.questionToken&&(wr(C.questionToken),C.questionToken.kind!==58&&Pn("?")),Pn(":"),bn(),wr(C.type),bp(),pe&1?bn():(rp(),ym()),Wn(C,C.members,2),Pn("}")}function We(C){tt(C.literal)}function dt(C){wr(C.head),Wn(C,C.templateSpans,262144)}function Ut(C){C.isTypeOf&&(Ts("typeof"),bn()),Ts("import"),Pn("("),wr(C.argument),C.attributes&&(Pn(","),bn(),Z(7,C.attributes)),Pn(")"),C.qualifier&&(Pn("."),wr(C.qualifier)),q_(C,C.typeArguments)}function Wr(C){Pn("{"),Wn(C,C.elements,525136),Pn("}")}function Yn(C){Pn("["),Wn(C,C.elements,524880),Pn("]")}function hn(C){wr(C.dotDotDotToken),C.propertyName&&(wr(C.propertyName),Pn(":"),bn()),wr(C.name),x1(C.initializer,C.name.end,C,Hr.parenthesizeExpressionForDisallowedComma)}function Rr(C){let pe=C.elements,yt=C.multiLine?65536:0;Nn(C,pe,8914|yt,Hr.parenthesizeExpressionForDisallowedComma)}function Di(C){Vd(C),or(C.properties,fT);let pe=Oa(C)&131072;pe&&Bg();let yt=C.multiLine?65536:0,gr=E&&E.languageVersion>=1&&!M_(E)?64:0;Wn(C,C.properties,526226|gr|yt),pe&&ym(),Cy(C)}function Ri(C){tt(C.expression,Hr.parenthesizeLeftSideOfAccess);let pe=C.questionDotToken||om(A.createToken(25),C.expression.end,C.name.pos),yt=ug(C,C.expression,pe),gr=ug(C,pe,C.name);$_(yt,!1),pe.kind!==29&&so(C.expression)&&!Se.hasTrailingComment()&&!Se.hasTrailingWhitespace()&&Pn("."),C.questionDotToken?wr(pe):L(pe.kind,C.expression.end,Pn,C),$_(gr,!1),wr(C.name),tf(yt,gr)}function so(C){if(C=Md(C),Hp(C)){let pe=Zb(C,void 0,!0,!1);return!(C.numericLiteralFlags&448)&&!pe.includes(ta(25))&&!pe.includes("E")&&!pe.includes("e")}else if(Oo(C)){let pe=Kne(C);return typeof pe=="number"&&isFinite(pe)&&pe>=0&&Math.floor(pe)===pe}}function ua(C){tt(C.expression,Hr.parenthesizeLeftSideOfAccess),wr(C.questionDotToken),L(23,C.expression.end,Pn,C),tt(C.argumentExpression),L(24,C.argumentExpression.end,Pn,C)}function Xo(C){let pe=Rd(C)&16;pe&&(Pn("("),ky("0"),Pn(","),bn()),tt(C.expression,Hr.parenthesizeLeftSideOfAccess),pe&&Pn(")"),wr(C.questionDotToken),q_(C,C.typeArguments),Nn(C,C.arguments,2576,Hr.parenthesizeExpressionForDisallowedComma)}function ul(C){L(105,C.pos,Ts,C),bn(),tt(C.expression,Hr.parenthesizeExpressionOfNew),q_(C,C.typeArguments),Nn(C,C.arguments,18960,Hr.parenthesizeExpressionForDisallowedComma)}function Kc(C){let pe=Rd(C)&16;pe&&(Pn("("),ky("0"),Pn(","),bn()),tt(C.tag,Hr.parenthesizeLeftSideOfAccess),pe&&Pn(")"),q_(C,C.typeArguments),bn(),tt(C.template)}function Eo(C){Pn("<"),wr(C.type),Pn(">"),tt(C.expression,Hr.parenthesizeOperandOfPrefixUnary)}function Uc(C){let pe=L(21,C.pos,Pn,C),yt=Xb(C.expression,C);tt(C.expression,void 0),EC(C.expression,C),tf(yt),L(22,C.expression?C.expression.end:pe,Pn,C)}function Of(C){Ah(C.name),gv(C)}function Cu(C){hm(C,C.modifiers),Mp(C,Kf,Xp)}function Kf(C){Dh(C,C.typeParameters),lg(C,C.parameters),wd(C.type),bn(),wr(C.equalsGreaterThanToken)}function Xp(C){Bs(C.body)?Ve(C.body):(bn(),tt(C.body,Hr.parenthesizeConciseBodyOfArrowFunction))}function Re(C){L(91,C.pos,Ts,C),bn(),tt(C.expression,Hr.parenthesizeOperandOfPrefixUnary)}function zt(C){L(114,C.pos,Ts,C),bn(),tt(C.expression,Hr.parenthesizeOperandOfPrefixUnary)}function Vr(C){L(116,C.pos,Ts,C),bn(),tt(C.expression,Hr.parenthesizeOperandOfPrefixUnary)}function ns(C){L(135,C.pos,Ts,C),bn(),tt(C.expression,Hr.parenthesizeOperandOfPrefixUnary)}function ja(C){Kb(C.operator,ff),La(C)&&bn(),tt(C.operand,Hr.parenthesizeOperandOfPrefixUnary)}function La(C){let pe=C.operand;return pe.kind===225&&(C.operator===40&&(pe.operator===40||pe.operator===46)||C.operator===41&&(pe.operator===41||pe.operator===47))}function Ca(C){tt(C.operand,Hr.parenthesizeOperandOfPostfixUnary),Kb(C.operator,ff)}function bl(){return w7(C,pe,yt,gr,ui,void 0);function C(cs,ki){if(ki){ki.stackIndex++,ki.preserveSourceNewlinesStack[ki.stackIndex]=ve,ki.containerPosStack[ki.stackIndex]=te,ki.containerEndStack[ki.stackIndex]=Ne,ki.declarationListContainerEndStack[ki.stackIndex]=Ie;let Pa=ki.shouldEmitCommentsStack[ki.stackIndex]=Ee(cs),il=ki.shouldEmitSourceMapsStack[ki.stackIndex]=et(cs);c?.(cs),Pa&&vm(cs),il&&Ja(cs),se(cs)}else ki={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return ki}function pe(cs,ki,Pa){return xi(cs,Pa,"left")}function yt(cs,ki,Pa){let il=cs.kind!==28,Bu=ug(Pa,Pa.left,cs),Op=ug(Pa,cs,Pa.right);$_(Bu,il),Nh(cs.pos),ex(cs,cs.kind===103?Ts:ff),qd(cs.end,!0),$_(Op,!0)}function gr(cs,ki,Pa){return xi(cs,Pa,"right")}function ui(cs,ki){let Pa=ug(cs,cs.left,cs.operatorToken),il=ug(cs,cs.operatorToken,cs.right);if(tf(Pa,il),ki.stackIndex>0){let Bu=ki.preserveSourceNewlinesStack[ki.stackIndex],Op=ki.containerPosStack[ki.stackIndex],F1=ki.containerEndStack[ki.stackIndex],Fp=ki.declarationListContainerEndStack[ki.stackIndex],r0=ki.shouldEmitCommentsStack[ki.stackIndex],GC=ki.shouldEmitSourceMapsStack[ki.stackIndex];pt(Bu),GC&&wn(cs),r0&&t0(cs,Op,F1,Fp),p?.(cs),ki.stackIndex--}}function xi(cs,ki,Pa){let il=Pa==="left"?Hr.getParenthesizeLeftSideOfBinaryForOperator(ki.operatorToken.kind):Hr.getParenthesizeRightSideOfBinaryForOperator(ki.operatorToken.kind),Bu=at(0,1,cs);if(Bu===Ye&&(w.assertIsDefined(fr),cs=il(Zs(fr,ht)),Bu=Pt(1,1,cs),fr=void 0),(Bu===_T||Bu===lx||Bu===kt)&&vn(cs))return cs;Mr=il,Bu(1,cs)}}function zo(C){let pe=ug(C,C.condition,C.questionToken),yt=ug(C,C.questionToken,C.whenTrue),gr=ug(C,C.whenTrue,C.colonToken),ui=ug(C,C.colonToken,C.whenFalse);tt(C.condition,Hr.parenthesizeConditionOfConditionalExpression),$_(pe,!0),wr(C.questionToken),$_(yt,!0),tt(C.whenTrue,Hr.parenthesizeBranchOfConditionalExpression),tf(pe,yt),$_(gr,!0),wr(C.colonToken),$_(ui,!0),tt(C.whenFalse,Hr.parenthesizeBranchOfConditionalExpression),tf(gr,ui)}function bc(C){wr(C.head),Wn(C,C.templateSpans,262144)}function Oc(C){L(127,C.pos,Ts,C),wr(C.asteriskToken),Sv(C.expression&&Er(C.expression),is)}function Xf(C){L(26,C.pos,Pn,C),tt(C.expression,Hr.parenthesizeExpressionForDisallowedComma)}function fu(C){Ah(C.name),Ur(C)}function Zl(C){tt(C.expression,Hr.parenthesizeLeftSideOfAccess),q_(C,C.typeArguments)}function Ff(C){tt(C.expression,void 0),C.type&&(bn(),Ts("as"),bn(),wr(C.type))}function hp(C){tt(C.expression,Hr.parenthesizeLeftSideOfAccess),ff("!")}function U_(C){tt(C.expression,void 0),C.type&&(bn(),Ts("satisfies"),bn(),wr(C.type))}function Rg(C){Qb(C.keywordToken,C.pos,Pn),Pn("."),wr(C.name)}function xh(C){tt(C.expression),wr(C.literal)}function Ch(C){Yp(C,!C.multiLine&&Yb(C))}function Yp(C,pe){L(19,C.pos,Pn,C);let yt=pe||Oa(C)&1?768:129;Wn(C,C.statements,yt),L(20,C.statements.end,Pn,C,!!(yt&1))}function Ll(C){vp(C,C.modifiers,!1),wr(C.declarationList),bp()}function mm(C){C?Pn(";"):bp()}function m_(C){tt(C.expression,Hr.parenthesizeExpressionOfExpressionStatement),(!E||!M_(E)||ko(C.expression))&&bp()}function og(C){let pe=L(101,C.pos,Ts,C);bn(),L(21,pe,Pn,C),tt(C.expression),L(22,C.expression.end,Pn,C),Ty(C,C.thenStatement),C.elseStatement&&(y_(C,C.thenStatement,C.elseStatement),L(93,C.thenStatement.end,Ts,C),C.elseStatement.kind===246?(bn(),wr(C.elseStatement)):Ty(C,C.elseStatement))}function ne(C,pe){let yt=L(117,pe,Ts,C);bn(),L(21,yt,Pn,C),tt(C.expression),L(22,C.expression.end,Pn,C)}function ot(C){L(92,C.pos,Ts,C),Ty(C,C.statement),Bs(C.statement)&&!ve?bn():y_(C,C.statement,C.expression),ne(C,C.statement.end),bp()}function Kt(C){ne(C,C.pos),Ty(C,C.statement)}function er(C){let pe=L(99,C.pos,Ts,C);bn();let yt=L(21,pe,Pn,C);$n(C.initializer),yt=L(27,C.initializer?C.initializer.end:yt,Pn,C),Sv(C.condition),yt=L(27,C.condition?C.condition.end:yt,Pn,C),Sv(C.incrementor),L(22,C.incrementor?C.incrementor.end:yt,Pn,C),Ty(C,C.statement)}function Ar(C){let pe=L(99,C.pos,Ts,C);bn(),L(21,pe,Pn,C),$n(C.initializer),bn(),L(103,C.initializer.end,Ts,C),bn(),tt(C.expression),L(22,C.expression.end,Pn,C),Ty(C,C.statement)}function Qr(C){let pe=L(99,C.pos,Ts,C);bn(),Xk(C.awaitModifier),L(21,pe,Pn,C),$n(C.initializer),bn(),L(165,C.initializer.end,Ts,C),bn(),tt(C.expression),L(22,C.expression.end,Pn,C),Ty(C,C.statement)}function $n(C){C!==void 0&&(C.kind===262?wr(C):tt(C))}function fi(C){L(88,C.pos,Ts,C),h_(C.label),bp()}function Wi(C){L(83,C.pos,Ts,C),h_(C.label),bp()}function L(C,pe,yt,gr,ui){let xi=As(gr),cs=xi&&xi.kind===gr.kind,ki=pe;if(cs&&E&&(pe=ha(E.text,pe)),cs&&gr.pos!==ki){let Pa=ui&&E&&!F_(ki,pe,E);Pa&&Bg(),Nh(ki),Pa&&ym()}if(!T&&(C===19||C===20)?pe=Qb(C,pe,yt,gr):pe=Kb(C,yt,pe),cs&&gr.end!==pe){let Pa=gr.kind===295;qd(pe,!Pa,Pa)}return pe}function Fe(C){return C.kind===2||!!C.hasTrailingNewLine}function Et(C){if(!E)return!1;let pe=nh(E.text,C.pos);if(pe){let yt=As(C);if(yt&&Pp(yt.parent))return!0}return _t(pe,Fe)||_t(uI(C),Fe)?!0:hie(C)?C.pos!==C.expression.pos&&_t(sb(E.text,C.expression.pos),Fe)?!0:Et(C.expression):!1}function Er(C){if(!Bt)switch(C.kind){case 356:if(Et(C)){let pe=As(C);if(pe&&Pp(pe)){let yt=A.createParenthesizedExpression(C.expression);return Rn(yt,C),mt(yt,pe),yt}return A.createParenthesizedExpression(C)}return A.updatePartiallyEmittedExpression(C,Er(C.expression));case 212:return A.updatePropertyAccessExpression(C,Er(C.expression),C.name);case 213:return A.updateElementAccessExpression(C,Er(C.expression),C.argumentExpression);case 214:return A.updateCallExpression(C,Er(C.expression),C.typeArguments,C.arguments);case 216:return A.updateTaggedTemplateExpression(C,Er(C.tag),C.typeArguments,C.template);case 226:return A.updatePostfixUnaryExpression(C,Er(C.operand));case 227:return A.updateBinaryExpression(C,Er(C.left),C.operatorToken,C.right);case 228:return A.updateConditionalExpression(C,Er(C.condition),C.questionToken,C.whenTrue,C.colonToken,C.whenFalse);case 235:return A.updateAsExpression(C,Er(C.expression),C.type);case 239:return A.updateSatisfiesExpression(C,Er(C.expression),C.type);case 236:return A.updateNonNullExpression(C,Er(C.expression))}return C}function is(C){return Er(Hr.parenthesizeExpressionForDisallowedComma(C))}function zs(C){L(107,C.pos,Ts,C),Sv(C.expression&&Er(C.expression),Er),bp()}function os(C){let pe=L(118,C.pos,Ts,C);bn(),L(21,pe,Pn,C),tt(C.expression),L(22,C.expression.end,Pn,C),Ty(C,C.statement)}function Ps(C){let pe=L(109,C.pos,Ts,C);bn(),L(21,pe,Pn,C),tt(C.expression),L(22,C.expression.end,Pn,C),bn(),wr(C.caseBlock)}function rc(C){wr(C.label),L(59,C.label.end,Pn,C),bn(),wr(C.statement)}function _a(C){L(111,C.pos,Ts,C),Sv(Er(C.expression),Er),bp()}function eu(C){L(113,C.pos,Ts,C),bn(),wr(C.tryBlock),C.catchClause&&(y_(C,C.tryBlock,C.catchClause),wr(C.catchClause)),C.finallyBlock&&(y_(C,C.catchClause||C.tryBlock,C.finallyBlock),L(98,(C.catchClause||C.tryBlock).end,Ts,C),bn(),wr(C.finallyBlock))}function jf(C){Qb(89,C.pos,Ts),bp()}function g_(C){var pe,yt,gr;wr(C.name),wr(C.exclamationToken),wd(C.type),x1(C.initializer,((pe=C.type)==null?void 0:pe.end)??((gr=(yt=C.name.emitNode)==null?void 0:yt.typeNode)==null?void 0:gr.end)??C.name.end,C,Hr.parenthesizeExpressionForDisallowedComma)}function V_(C){if(XM(C))Ts("await"),bn(),Ts("using");else{let pe=MF(C)?"let":Bw(C)?"const":YM(C)?"using":"var";Ts(pe)}bn(),Wn(C,C.declarations,528)}function gy(C){gv(C)}function gv(C){vp(C,C.modifiers,!1),Ts("function"),wr(C.asteriskToken),bn(),Ds(C.name),Mp(C,Td,Og)}function Mp(C,pe,yt){let gr=Oa(C)&131072;gr&&Bg(),Vd(C),or(C.parameters,tu),pe(C),yt(C),Cy(C),gr&&ym()}function Og(C){let pe=C.body;pe?Ve(pe):bp()}function gm(C){bp()}function Td(C){Dh(C,C.typeParameters),C1(C,C.parameters),wd(C.type)}function Jb(C){if(Oa(C)&1)return!0;if(C.multiLine||!ko(C)&&E&&!uk(C,E)||kv(C,_l(C.statements),2)||AC(C,Wo(C.statements),2,C.statements))return!1;let pe;for(let yt of C.statements){if(I1(pe,yt,2)>0)return!1;pe=yt}return!0}function Ve(C){tu(C),c?.(C),bn(),Pn("{"),Bg();let pe=Jb(C)?lt:Jt;dT(C,C.statements,pe),ym(),Qb(20,C.statements.end,Pn,C),p?.(C)}function lt(C){Jt(C,!0)}function Jt(C,pe){let yt=Ih(C.statements),gr=Se.getTextPos();Gt(C),yt===0&&gr===Se.getTextPos()&&pe?(ym(),Wn(C,C.statements,768),Bg()):Wn(C,C.statements,1,void 0,yt)}function yr(C){Ur(C)}function Ur(C){vp(C,C.modifiers,!0),L(86,Um(C).pos,Ts,C),C.name&&(bn(),Ds(C.name));let pe=Oa(C)&131072;pe&&Bg(),Dh(C,C.typeParameters),Wn(C,C.heritageClauses,0),bn(),Pn("{"),Vd(C),or(C.members,fT),Wn(C,C.members,129),Cy(C),Pn("}"),pe&&ym()}function Tn(C){vp(C,C.modifiers,!1),Ts("interface"),bn(),wr(C.name),Dh(C,C.typeParameters),Wn(C,C.heritageClauses,512),bn(),Pn("{"),Vd(C),or(C.members,fT),Wn(C,C.members,129),Cy(C),Pn("}")}function zr(C){vp(C,C.modifiers,!1),Ts("type"),bn(),wr(C.name),Dh(C,C.typeParameters),bn(),Pn("="),bn(),wr(C.type),bp()}function en(C){vp(C,C.modifiers,!1),Ts("enum"),bn(),wr(C.name),bn(),Pn("{"),Wn(C,C.members,145),Pn("}")}function Ci(C){vp(C,C.modifiers,!1),~C.flags&2048&&(Ts(C.flags&32?"namespace":"module"),bn()),wr(C.name);let pe=C.body;if(!pe)return bp();for(;pe&&el(pe);)Pn("."),wr(pe.name),pe=pe.body;bn(),wr(pe)}function ps(C){Vd(C),or(C.statements,tu),Yp(C,Yb(C)),Cy(C)}function oi(C){L(19,C.pos,Pn,C),Wn(C,C.clauses,129),L(20,C.clauses.end,Pn,C,!0)}function fs(C){vp(C,C.modifiers,!1),L(102,C.modifiers?C.modifiers.end:C.pos,Ts,C),bn(),C.isTypeOnly&&(L(156,C.pos,Ts,C),bn()),wr(C.name),bn(),L(64,C.name.end,Pn,C),bn(),Bi(C.moduleReference),bp()}function Bi(C){C.kind===80?tt(C):wr(C)}function nc(C){vp(C,C.modifiers,!1),L(102,C.modifiers?C.modifiers.end:C.pos,Ts,C),bn(),C.importClause&&(wr(C.importClause),bn(),L(161,C.importClause.end,Ts,C),bn()),tt(C.moduleSpecifier),C.attributes&&h_(C.attributes),bp()}function Zp(C){C.phaseModifier!==void 0&&(L(C.phaseModifier,C.pos,Ts,C),bn()),wr(C.name),C.name&&C.namedBindings&&(L(28,C.name.end,Pn,C),bn()),wr(C.namedBindings)}function kd(C){let pe=L(42,C.pos,Pn,C);bn(),L(130,pe,Ts,C),bn(),wr(C.name)}function _u(C){wh(C)}function xd(C){h1(C)}function Lf(C){let pe=L(95,C.pos,Ts,C);bn(),C.isExportEquals?L(64,pe,ff,C):L(90,pe,Ts,C),bn(),tt(C.expression,C.isExportEquals?Hr.getParenthesizeRightSideOfBinaryForOperator(64):Hr.parenthesizeExpressionOfExportDefault),bp()}function m1(C){vp(C,C.modifiers,!1);let pe=L(95,C.pos,Ts,C);if(bn(),C.isTypeOnly&&(pe=L(156,pe,Ts,C),bn()),C.exportClause?wr(C.exportClause):pe=L(42,pe,Pn,C),C.moduleSpecifier){bn();let yt=C.exportClause?C.exportClause.end:pe;L(161,yt,Ts,C),bn(),tt(C.moduleSpecifier)}C.attributes&&h_(C.attributes),bp()}function cg(C){Pn("{"),bn(),Ts(C.token===132?"assert":"with"),Pn(":"),bn();let pe=C.elements;Wn(C,pe,526226),bn(),Pn("}")}function Fg(C){L(C.token,C.pos,Ts,C),bn();let pe=C.elements;Wn(C,pe,526226)}function g1(C){wr(C.name),Pn(":"),bn();let pe=C.value;if((Oa(pe)&1024)===0){let yt=$m(pe);qd(yt.pos)}wr(pe)}function jg(C){let pe=L(95,C.pos,Ts,C);bn(),pe=L(130,pe,Ts,C),bn(),pe=L(145,pe,Ts,C),bn(),wr(C.name),bp()}function dD(C){let pe=L(42,C.pos,Pn,C);bn(),L(130,pe,Ts,C),bn(),wr(C.name)}function tN(C){wh(C)}function mD(C){h1(C)}function wh(C){Pn("{"),Wn(C,C.elements,525136),Pn("}")}function h1(C){C.isTypeOnly&&(Ts("type"),bn()),C.propertyName&&(wr(C.propertyName),bn(),L(130,C.propertyName.end,Ts,C),bn()),wr(C.name)}function Uk(C){Ts("require"),Pn("("),tt(C.expression),Pn(")")}function hv(C){wr(C.openingElement),Wn(C,C.children,262144),wr(C.closingElement)}function Vk(C){Pn("<"),oT(C.tagName),q_(C,C.typeArguments),bn(),wr(C.attributes),Pn("/>")}function xC(C){wr(C.openingFragment),Wn(C,C.children,262144),wr(C.closingFragment)}function rN(C){if(Pn("<"),cm(C)){let pe=Xb(C.tagName,C);oT(C.tagName),q_(C,C.typeArguments),C.attributes.properties&&C.attributes.properties.length>0&&bn(),wr(C.attributes),EC(C.attributes,C),tf(pe)}Pn(">")}function qk(C){Se.writeLiteral(C.text)}function CC(C){Pn("</"),BS(C)&&oT(C.tagName),Pn(">")}function y1(C){Wn(C,C.properties,262656)}function gD(C){wr(C.name),wa("=",Pn,C.initializer,Mt)}function $k(C){Pn("{..."),tt(C.expression),Pn("}")}function wC(C){let pe=!1;return SM(E?.text||"",C+1,()=>pe=!0),pe}function aT(C){let pe=!1;return bM(E?.text||"",C+1,()=>pe=!0),pe}function Ub(C){return wC(C)||aT(C)}function IC(C){var pe;if(C.expression||!Bt&&!ko(C)&&Ub(C.pos)){let yt=E&&!ko(C)&&Hs(E,C.pos).line!==Hs(E,C.end).line;yt&&Se.increaseIndent();let gr=L(19,C.pos,Pn,C);wr(C.dotDotDotToken),tt(C.expression),L(20,((pe=C.expression)==null?void 0:pe.end)||gr,Pn,C),yt&&Se.decreaseIndent()}}function DC(C){Ds(C.namespace),Pn(":"),Ds(C.name)}function oT(C){C.kind===80?tt(C):wr(C)}function Vb(C){L(84,C.pos,Ts,C),bn(),tt(C.expression,Hr.parenthesizeExpressionForDisallowedComma),hy(C,C.statements,C.expression.end)}function yv(C){let pe=L(90,C.pos,Ts,C);hy(C,C.statements,pe)}function hy(C,pe,yt){let gr=pe.length===1&&(!E||ko(C)||ko(pe[0])||b8(C,pe[0],E)),ui=163969;gr?(Qb(59,yt,Pn,C),bn(),ui&=-130):L(59,yt,Pn,C),Wn(C,pe,ui)}function yy(C){bn(),Kb(C.token,Ts),bn(),Wn(C,C.types,528)}function vy(C){let pe=L(85,C.pos,Ts,C);bn(),C.variableDeclaration&&(L(21,pe,Pn,C),wr(C.variableDeclaration),L(22,C.variableDeclaration.end,Pn,C),bn()),wr(C.block)}function qb(C){wr(C.name),Pn(":"),bn();let pe=C.initializer;if((Oa(pe)&1024)===0){let yt=$m(pe);qd(yt.pos)}tt(pe,Hr.parenthesizeExpressionForDisallowedComma)}function v1(C){wr(C.name),C.objectAssignmentInitializer&&(bn(),Pn("="),bn(),tt(C.objectAssignmentInitializer,Hr.parenthesizeExpressionForDisallowedComma))}function Hk(C){C.expression&&(L(26,C.pos,Pn,C),tt(C.expression,Hr.parenthesizeExpressionForDisallowedComma))}function b1(C){wr(C.name),x1(C.initializer,C.name.end,C,Hr.parenthesizeExpressionForDisallowedComma)}function Ba(C){if(ye("/**"),C.comment){let pe=AM(C.comment);if(pe){let yt=pe.split(/\r\n?|\n/);for(let gr of yt)rp(),bn(),Pn("*"),bn(),ye(gr)}}C.tags&&(C.tags.length===1&&C.tags[0].kind===345&&!C.comment?(bn(),wr(C.tags[0])):Wn(C,C.tags,33)),bn(),ye("*/")}function Qk(C){Cd(C.tagName),T1(C.typeExpression),Gd(C.comment)}function hD(C){Cd(C.tagName),wr(C.name),Gd(C.comment)}function by(C){Cd(C.tagName),bn(),C.importClause&&(wr(C.importClause),bn(),L(161,C.importClause.end,Ts,C),bn()),tt(C.moduleSpecifier),C.attributes&&h_(C.attributes),Gd(C.comment)}function Sy(C){bn(),Pn("{"),wr(C.name),Pn("}")}function Lg(C){Cd(C.tagName),bn(),Pn("{"),wr(C.class),Pn("}"),Gd(C.comment)}function Yo(C){Cd(C.tagName),T1(C.constraint),bn(),Wn(C,C.typeParameters,528),Gd(C.comment)}function Lu(C){Cd(C.tagName),C.typeExpression&&(C.typeExpression.kind===310?T1(C.typeExpression):(bn(),Pn("{"),ye("Object"),C.typeExpression.isArrayType&&(Pn("["),Pn("]")),Pn("}"))),C.fullName&&(bn(),wr(C.fullName)),Gd(C.comment),C.typeExpression&&C.typeExpression.kind===323&&yp(C.typeExpression)}function ef(C){Cd(C.tagName),C.name&&(bn(),wr(C.name)),Gd(C.comment),Wg(C.typeExpression)}function Wu(C){Gd(C.comment),Wg(C.typeExpression)}function S1(C){Cd(C.tagName),Gd(C.comment)}function yp(C){Wn(C,A.createNodeArray(C.jsDocPropertyTags),33)}function Wg(C){C.typeParameters&&Wn(C,A.createNodeArray(C.typeParameters),33),C.parameters&&Wn(C,A.createNodeArray(C.parameters),33),C.type&&(rp(),bn(),Pn("*"),bn(),wr(C.type))}function Rp(C){Cd(C.tagName),T1(C.typeExpression),bn(),C.isBracketed&&Pn("["),wr(C.name),C.isBracketed&&Pn("]"),Gd(C.comment)}function Cd(C){Pn("@"),wr(C)}function Gd(C){let pe=AM(C);pe&&(bn(),ye(pe))}function T1(C){C&&(bn(),Pn("{"),wr(C.type),Pn("}"))}function k1(C){rp();let pe=C.statements;if(pe.length===0||!Lm(pe[0])||ko(pe[0])){dT(C,pe,cT);return}cT(C)}function nN(C){vv(!!C.hasNoDefaultLib,C.syntheticFileReferences||[],C.syntheticTypeReferences||[],C.syntheticLibReferences||[])}function yD(C){C.isDeclarationFile&&vv(C.hasNoDefaultLib,C.referencedFiles,C.typeReferenceDirectives,C.libReferenceDirectives)}function vv(C,pe,yt,gr){if(C&&(Hb('/// <reference no-default-lib="true"/>'),rp()),E&&E.moduleName&&(Hb(`/// <amd-module name="${E.moduleName}" />`),rp()),E&&E.amdDependencies)for(let xi of E.amdDependencies)xi.name?Hb(`/// <amd-dependency name="${xi.name}" path="${xi.path}" />`):Hb(`/// <amd-dependency path="${xi.path}" />`),rp();function ui(xi,cs){for(let ki of cs){let Pa=ki.resolutionMode?`resolution-mode="${ki.resolutionMode===99?"import":"require"}" `:"",il=ki.preserve?'preserve="true" ':"";Hb(`/// <reference ${xi}="${ki.fileName}" ${Pa}${il}/>`),rp()}}ui("path",pe),ui("types",yt),ui("lib",gr)}function cT(C){let pe=C.statements;Vd(C),or(C.statements,tu),Gt(C);let yt=Tc(pe,gr=>!Lm(gr));yD(C),Wn(C,pe,1,void 0,yt===-1?pe.length:yt),Cy(C)}function $e(C){let pe=Oa(C);!(pe&1024)&&C.pos!==C.expression.pos&&qd(C.expression.pos),tt(C.expression),!(pe&2048)&&C.end!==C.expression.end&&Nh(C.expression.end)}function Kk(C){Nn(C,C.elements,528,void 0)}function Ih(C,pe,yt){let gr=!!pe;for(let ui=0;ui<C.length;ui++){let xi=C[ui];if(Lm(xi))(!yt||!yt.has(xi.expression.text))&&(gr&&(gr=!1,ei(pe)),rp(),wr(xi),yt&&yt.add(xi.expression.text));else return ui}return C.length}function Jd(C){if(Li(C))Ih(C.statements,C);else{let pe=new Set;for(let yt of C.sourceFiles)Ih(yt.statements,yt,pe);ei(void 0)}}function bv(C){if(Li(C)){let pe=ZO(C.text);if(pe)return Hb(pe),rp(),!0}else for(let pe of C.sourceFiles)if(bv(pe))return!0}function $b(C,pe){if(!C)return;let yt=ye;ye=pe,wr(C),ye=yt}function vp(C,pe,yt){if(pe?.length){if(Fi(pe,la))return hm(C,pe);if(Fi(pe,Il))return yt?lT(C,pe):C.pos;u?.(pe);let gr,ui,xi=0,cs=0,ki;for(;xi<pe.length;){for(;cs<pe.length;){if(ki=pe[cs],ui=Il(ki)?"decorators":"modifiers",gr===void 0)gr=ui;else if(ui!==gr)break;cs++}let Pa={pos:-1,end:-1};xi===0&&(Pa.pos=pe.pos),cs===pe.length-1&&(Pa.end=pe.end),(gr==="modifiers"||yt)&&Yk(wr,C,pe,gr==="modifiers"?2359808:2146305,void 0,xi,cs-xi,!1,Pa),xi=cs,gr=ui,cs++}if(g?.(pe),ki&&!am(ki.end))return ki.end}return C.pos}function hm(C,pe){Wn(C,pe,2359808);let yt=Wo(pe);return yt&&!am(yt.end)?yt.end:C.pos}function wd(C){C&&(Pn(":"),bn(),wr(C))}function x1(C,pe,yt,gr){C&&(bn(),L(64,pe,ff,yt),bn(),tt(C,gr))}function wa(C,pe,yt,gr){yt&&(pe(C),gr(yt))}function h_(C){C&&(bn(),wr(C))}function Sv(C,pe){C&&(bn(),tt(C,pe))}function Xk(C){C&&(wr(C),bn())}function Ty(C,pe){Bs(pe)||Oa(C)&1||ve&&!kv(C,pe,0)?(bn(),wr(pe)):(rp(),Bg(),hJ(pe)?Z(5,pe):wr(pe),ym())}function lT(C,pe){Wn(C,pe,2146305);let yt=Wo(pe);return yt&&!am(yt.end)?yt.end:C.pos}function q_(C,pe){Wn(C,pe,53776,bi)}function Dh(C,pe){if(Fs(C)&&C.typeArguments)return q_(C,C.typeArguments);Wn(C,pe,53776|(Fo(C)?64:0))}function C1(C,pe){Wn(C,pe,2576)}function Tv(C,pe){let yt=eh(pe);return yt&&yt.pos===C.pos&&Fo(C)&&!C.type&&!_t(C.modifiers)&&!_t(C.typeParameters)&&!_t(yt.modifiers)&&!yt.dotDotDotToken&&!yt.questionToken&&!yt.type&&!yt.initializer&&Be(yt.name)}function lg(C,pe){Tv(C,pe)?Wn(C,pe,528):C1(C,pe)}function uT(C,pe){Wn(C,pe,8848)}function w1(C){switch(C&60){case 0:break;case 16:Pn(",");break;case 4:bn(),Pn("|");break;case 32:bn(),Pn("*"),bn();break;case 8:bn(),Pn("&");break}}function Wn(C,pe,yt,gr,ui,xi){du(wr,C,pe,yt|(C&&Oa(C)&2?65536:0),gr,ui,xi)}function Nn(C,pe,yt,gr,ui,xi){du(tt,C,pe,yt,gr,ui,xi)}function du(C,pe,yt,gr,ui,xi=0,cs=yt?yt.length-xi:0){if(yt===void 0&&gr&16384)return;let Pa=yt===void 0||xi>=yt.length||cs===0;if(Pa&&gr&32768){u?.(yt),g?.(yt);return}gr&15360&&(Pn(_Ue(gr)),Pa&&yt&&qd(yt.pos,!0)),u?.(yt),Pa?gr&1&&!(ve&&(!pe||E&&uk(pe,E)))?rp():gr&256&&!(gr&524288)&&bn():Yk(C,pe,yt,gr,ui,xi,cs,yt.hasTrailingComma,yt),g?.(yt),gr&15360&&(Pa&&yt&&Nh(yt.end),Pn(dUe(gr)))}function Yk(C,pe,yt,gr,ui,xi,cs,ki,Pa){let il=(gr&262144)===0,Bu=il,Op=kv(pe,yt[xi],gr);Op?(rp(Op),Bu=!1):gr&256&&bn(),gr&128&&Bg();let F1=yUe(C,ui),Fp,r0=!1;for(let Iv=0;Iv<cs;Iv++){let $d=yt[xi+Iv];if(gr&32)rp(),w1(gr);else if(Fp){gr&60&&Fp.end!==(pe?pe.end:-1)&&(Oa(Fp)&2048||Nh(Fp.end)),w1(gr);let Dv=I1(Fp,$d,gr);if(Dv>0){if((gr&131)===0&&(Bg(),r0=!0),Bu&&gr&60&&!am($d.pos)){let gT=$m($d);qd(gT.pos,!!(gr&512),!0)}rp(Dv),Bu=!1}else Fp&&gr&512&&bn()}if(Bu){let Dv=$m($d);qd(Dv.pos)}else Bu=il;H=$d.pos,F1($d,C,ui,Iv),r0&&(ym(),r0=!1),Fp=$d}let GC=Fp?Oa(Fp):0,Id=Bt||!!(GC&2048),oc=ki&&gr&64&&gr&16;oc&&(Fp&&!Id?L(28,Fp.end,Pn,Fp):Pn(",")),Fp&&(pe?pe.end:-1)!==Fp.end&&gr&60&&!Id&&Nh(oc&&Pa?.end?Pa.end:Fp.end),gr&128&&ym();let fx=AC(pe,yt[xi+cs-1],gr,Pa);fx?rp(fx):gr&2097408&&bn()}function ky(C){Se.writeLiteral(C)}function pT(C){Se.writeStringLiteral(C)}function vD(C){Se.write(C)}function iN(C,pe){Se.writeSymbol(C,pe)}function Pn(C){Se.writePunctuation(C)}function bp(){Se.writeTrailingSemicolon(";")}function Ts(C){Se.writeKeyword(C)}function ff(C){Se.writeOperator(C)}function Zk(C){Se.writeParameter(C)}function Hb(C){Se.writeComment(C)}function bn(){Se.writeSpace(" ")}function bD(C){Se.writeProperty(C)}function PC(C){Se.nonEscapingWrite?Se.nonEscapingWrite(C):Se.write(C)}function rp(C=1){for(let pe=0;pe<C;pe++)Se.writeLine(pe>0)}function Bg(){Se.increaseIndent()}function ym(){Se.decreaseIndent()}function Qb(C,pe,yt,gr){return ge?Kb(C,yt,pe):ux(gr,C,yt,pe,Kb)}function ex(C,pe){d&&d(C),pe(ta(C.kind)),h&&h(C)}function Kb(C,pe,yt){let gr=ta(C);return pe(gr),yt<0?yt:yt+gr.length}function y_(C,pe,yt){if(Oa(C)&1)bn();else if(ve){let gr=ug(C,pe,yt);gr?rp(gr):bn()}else rp()}function Ud(C){let pe=C.split(/\r\n?|\n/),yt=hte(pe);for(let gr of pe){let ui=yt?gr.slice(yt):gr;ui.length&&(rp(),ye(ui))}}function $_(C,pe){C?(Bg(),rp(C)):pe&&bn()}function tf(C,pe){C&&ym(),pe&&ym()}function kv(C,pe,yt){if(yt&2||ve){if(yt&65536)return 1;if(pe===void 0)return!C||E&&uk(C,E)?0:1;if(pe.pos===H||pe.kind===12)return 0;if(E&&C&&!am(C.pos)&&!ko(pe)&&(!pe.parent||sc(pe.parent)===sc(C)))return ve?D1(gr=>qre(pe.pos,C.pos,E,gr)):b8(C,pe,E)?0:1;if(xy(pe,yt))return 1}return yt&1?1:0}function I1(C,pe,yt){if(yt&2||ve){if(C===void 0||pe===void 0||pe.kind===12)return 0;if(E&&!ko(C)&&!ko(pe))return ve&&np(C,pe)?D1(gr=>fG(C,pe,E,gr)):!ve&&jC(C,pe)?O6(C,pe,E)?0:1:yt&65536?1:0;if(xy(C,yt)||xy(pe,yt))return 1}else if(OA(pe))return 1;return yt&1?1:0}function AC(C,pe,yt,gr){if(yt&2||ve){if(yt&65536)return 1;if(pe===void 0)return!C||E&&uk(C,E)?0:1;if(E&&C&&!am(C.pos)&&!ko(pe)&&(!pe.parent||pe.parent===C)){if(ve){let ui=gr&&!am(gr.end)?gr.end:pe.end;return D1(xi=>$re(ui,C.end,E,xi))}return Jre(C,pe,E)?0:1}if(xy(pe,yt))return 1}return yt&1&&!(yt&131072)?1:0}function D1(C){w.assert(!!ve);let pe=C(!0);return pe===0?C(!1):pe}function Xb(C,pe){let yt=ve&&kv(pe,C,0);return yt&&$_(yt,!1),!!yt}function EC(C,pe){let yt=ve&&AC(pe,C,0,void 0);yt&&rp(yt)}function xy(C,pe){if(ko(C)){let yt=OA(C);return yt===void 0?(pe&65536)!==0:yt}return(pe&65536)!==0}function ug(C,pe,yt){return Oa(C)&262144?0:(C=P1(C),pe=P1(pe),yt=P1(yt),OA(yt)?1:E&&!ko(C)&&!ko(pe)&&!ko(yt)?ve?D1(gr=>fG(pe,yt,E,gr)):O6(pe,yt,E)?0:1:0)}function Yb(C){return C.statements.length===0&&(!E||O6(C,C,E))}function P1(C){for(;C.kind===218&&ko(C);)C=C.expression;return C}function xv(C,pe){if(ec(C)||HT(C))return A1(C);if(ya(C)&&C.textSourceNode)return xv(C.textSourceNode,pe);let yt=E,gr=!!yt&&!!C.parent&&!ko(C);if(sh(C)){if(!gr||Nr(C)!==sc(yt))return Fn(C)}else if(lm(C)){if(!gr||Nr(C)!==sc(yt))return MA(C)}else if(w.assertNode(C,$T),!gr)return C.text;return hS(yt,C,pe)}function Zb(C,pe=E,yt,gr){if(C.kind===11&&C.textSourceNode){let xi=C.textSourceNode;if(Be(xi)||zi(xi)||Hp(xi)||lm(xi)){let cs=Hp(xi)?xi.text:xv(xi);return gr?`"${$z(cs)}"`:yt||Oa(C)&16777216?`"${Dg(cs)}"`:`"${s8(cs)}"`}else return Zb(xi,Nr(xi),yt,gr)}let ui=(yt?1:0)|(gr?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return Ate(C,pe,ui)}function Vd(C){U.push(_e),_e=0,le.push(de),!(C&&Oa(C)&1048576)&&(re.push(V),V=0,$.push(X),X=void 0,ce.push(oe))}function Cy(C){_e=U.pop(),de=le.pop(),!(C&&Oa(C)&1048576)&&(V=re.pop(),X=$.pop(),oe=ce.pop())}function Ph(C){(!oe||oe===Wo(ce))&&(oe=new Set),oe.add(C)}function e0(C){(!de||de===Wo(le))&&(de=new Set),de.add(C)}function tu(C){if(C)switch(C.kind){case 242:or(C.statements,tu);break;case 257:case 255:case 247:case 248:tu(C.statement);break;case 246:tu(C.thenStatement),tu(C.elseStatement);break;case 249:case 251:case 250:tu(C.initializer),tu(C.statement);break;case 256:tu(C.caseBlock);break;case 270:or(C.clauses,tu);break;case 297:case 298:or(C.statements,tu);break;case 259:tu(C.tryBlock),tu(C.catchClause),tu(C.finallyBlock);break;case 300:tu(C.variableDeclaration),tu(C.block);break;case 244:tu(C.declarationList);break;case 262:or(C.declarations,tu);break;case 261:case 170:case 209:case 264:Ah(C.name);break;case 263:Ah(C.name),Oa(C)&1048576&&(or(C.parameters,tu),tu(C.body));break;case 207:case 208:or(C.elements,tu);break;case 273:tu(C.importClause);break;case 274:Ah(C.name),tu(C.namedBindings);break;case 275:Ah(C.name);break;case 281:Ah(C.name);break;case 276:or(C.elements,tu);break;case 277:Ah(C.propertyName||C.name);break}}function fT(C){if(C)switch(C.kind){case 304:case 305:case 173:case 172:case 175:case 174:case 178:case 179:Ah(C.name);break}}function Ah(C){C&&(ec(C)||HT(C)?A1(C):Ls(C)&&tu(C))}function A1(C){let pe=C.emitNode.autoGenerate;if((pe.flags&7)===4)return tx(S4(C),zi(C),pe.flags,pe.prefix,pe.suffix);{let yt=pe.id;return W[yt]||(W[yt]=H_(C))}}function tx(C,pe,yt,gr,ui){let xi=qa(C),cs=pe?O:F;return cs[xi]||(cs[xi]=rf(C,pe,yt??0,II(gr,A1),II(ui)))}function Eh(C,pe){return NC(C,pe)&&!SD(C,pe)&&!z.has(C)}function SD(C,pe){let yt,gr;if(pe?(yt=de,gr=le):(yt=oe,gr=ce),yt?.has(C))return!0;for(let ui=gr.length-1;ui>=0;ui--)if(yt!==gr[ui]&&(yt=gr[ui],yt?.has(C)))return!0;return!1}function NC(C,pe){return E?wF(E,C,n):!0}function MC(C,pe){for(let yt=pe;yt&&xS(yt,pe);yt=yt.nextContainer)if(Tg(yt)&&yt.locals){let gr=yt.locals.get(gc(C));if(gr&&gr.flags&3257279)return!1}return!0}function sN(C){switch(C){case"":return V;case"#":return _e;default:return X?.get(C)??0}}function RC(C,pe){switch(C){case"":V=pe;break;case"#":_e=pe;break;default:X??(X=new Map),X.set(C,pe);break}}function E1(C,pe,yt,gr,ui){gr.length>0&&gr.charCodeAt(0)===35&&(gr=gr.slice(1));let xi=Y0(yt,gr,"",ui),cs=sN(xi);if(C&&!(cs&C)){let Pa=Y0(yt,gr,C===268435456?"_i":"_n",ui);if(Eh(Pa,yt))return cs|=C,yt?e0(Pa):pe&&Ph(Pa),RC(xi,cs),Pa}for(;;){let ki=cs&268435455;if(cs++,ki!==8&&ki!==13){let Pa=ki<26?"_"+String.fromCharCode(97+ki):"_"+(ki-26),il=Y0(yt,gr,Pa,ui);if(Eh(il,yt))return yt?e0(il):pe&&Ph(il),RC(xi,cs),il}}}function wy(C,pe=Eh,yt,gr,ui,xi,cs){if(C.length>0&&C.charCodeAt(0)===35&&(C=C.slice(1)),xi.length>0&&xi.charCodeAt(0)===35&&(xi=xi.slice(1)),yt){let Pa=Y0(ui,xi,C,cs);if(pe(Pa,ui))return ui?e0(Pa):gr?Ph(Pa):z.add(Pa),Pa}C.charCodeAt(C.length-1)!==95&&(C+="_");let ki=1;for(;;){let Pa=Y0(ui,xi,C+ki,cs);if(pe(Pa,ui))return ui?e0(Pa):gr?Ph(Pa):z.add(Pa),Pa;ki++}}function TD(C){return wy(C,NC,!0,!1,!1,"","")}function N1(C){let pe=xv(C.name);return MC(pe,Hn(C,Tg))?pe:wy(pe,Eh,!1,!1,!1,"","")}function rx(C){let pe=d2(C),yt=ya(pe)?Nte(pe.text):"module";return wy(yt,Eh,!1,!1,!1,"","")}function nl(){return wy("default",Eh,!1,!1,!1,"","")}function ru(){return wy("class",Eh,!1,!1,!1,"","")}function OC(C,pe,yt,gr){return Be(C.name)?tx(C.name,pe):E1(0,!1,pe,yt,gr)}function rf(C,pe,yt,gr,ui){switch(C.kind){case 80:case 81:return wy(xv(C),Eh,!!(yt&16),!!(yt&8),pe,gr,ui);case 268:case 267:return w.assert(!gr&&!ui&&!pe),N1(C);case 273:case 279:return w.assert(!gr&&!ui&&!pe),rx(C);case 263:case 264:{w.assert(!gr&&!ui&&!pe);let xi=C.name;return xi&&!ec(xi)?rf(xi,!1,yt,gr,ui):nl()}case 278:return w.assert(!gr&&!ui&&!pe),nl();case 232:return w.assert(!gr&&!ui&&!pe),ru();case 175:case 178:case 179:return OC(C,pe,gr,ui);case 168:return E1(0,!0,pe,gr,ui);default:return E1(0,!1,pe,gr,ui)}}function H_(C){let pe=C.emitNode.autoGenerate,yt=II(pe.prefix,A1),gr=II(pe.suffix);switch(pe.flags&7){case 1:return E1(0,!!(pe.flags&8),zi(C),yt,gr);case 2:return w.assertNode(C,Be),E1(268435456,!!(pe.flags&8),!1,yt,gr);case 3:return wy(Fn(C),pe.flags&32?NC:Eh,!!(pe.flags&16),!!(pe.flags&8),zi(C),yt,gr)}return w.fail(`Unsupported GeneratedIdentifierKind: ${w.formatEnum(pe.flags&7,tB,!0)}.`)}function _T(C,pe){let yt=Pt(2,C,pe),gr=te,ui=Ne,xi=Ie;vm(pe),yt(C,pe),t0(pe,gr,ui,xi)}function vm(C){let pe=Oa(C),yt=$m(C);Cv(C,pe,yt.pos,yt.end),pe&4096&&(Bt=!0)}function t0(C,pe,yt,gr){let ui=Oa(C),xi=$m(C);ui&4096&&(Bt=!1),FC(C,ui,xi.pos,xi.end,pe,yt,gr);let cs=eie(C);cs&&FC(C,ui,cs.pos,cs.end,pe,yt,gr)}function Cv(C,pe,yt,gr){ft(),St=!1;let ui=yt<0||(pe&1024)!==0||C.kind===12,xi=gr<0||(pe&2048)!==0||C.kind===12;(yt>0||gr>0)&&yt!==gr&&(ui||_f(yt,C.kind!==354),(!ui||yt>=0&&(pe&1024)!==0)&&(te=yt),(!xi||gr>=0&&(pe&2048)!==0)&&(Ne=gr,C.kind===262&&(Ie=gr))),or(uI(C),aN),qt()}function FC(C,pe,yt,gr,ui,xi,cs){ft();let ki=gr<0||(pe&2048)!==0||C.kind===12;or(s4(C),Pc),(yt>0||gr>0)&&yt!==gr&&(te=ui,Ne=xi,Ie=cs,!ki&&C.kind!==354&&LC(gr)),qt()}function aN(C){(C.hasLeadingNewline||C.kind===2)&&Se.writeLine(),kD(C),C.hasTrailingNewLine||C.kind===2?Se.writeLine():Se.writeSpace(" ")}function Pc(C){Se.isAtStartOfLine()||Se.writeSpace(" "),kD(C),C.hasTrailingNewLine&&Se.writeLine()}function kD(C){let pe=nx(C),yt=C.kind===3?e2(pe):void 0;eI(pe,yt,Se,0,pe.length,x)}function nx(C){return C.kind===3?`/*${C.text}*/`:`//${C.text}`}function dT(C,pe,yt){ft();let{pos:gr,end:ui}=pe,xi=Oa(C),cs=gr<0||(xi&1024)!==0,ki=Bt||ui<0||(xi&2048)!==0;cs||Wf(pe),qt(),xi&4096&&!Bt?(Bt=!0,yt(C),Bt=!1):yt(C),ft(),ki||(_f(pe.end,!0),St&&!Se.isAtStartOfLine()&&Se.writeLine()),qt()}function jC(C,pe){return C=sc(C),C.parent&&C.parent===sc(pe).parent}function np(C,pe){if(pe.pos<C.end)return!1;C=sc(C),pe=sc(pe);let yt=C.parent;if(!yt||yt!==pe.parent)return!1;let gr=Ine(C),ui=gr?.indexOf(C);return ui!==void 0&&ui>-1&&gr.indexOf(pe)===ui+1}function _f(C,pe){St=!1,pe?C===0&&E?.isDeclarationFile?BC(C,M1):BC(C,sx):C===0&&BC(C,ix)}function ix(C,pe,yt,gr,ui){cx(C,pe)&&sx(C,pe,yt,gr,ui)}function M1(C,pe,yt,gr,ui){cx(C,pe)||sx(C,pe,yt,gr,ui)}function df(C,pe){return e.onlyPrintJsDocStyle?GJ(C,pe)||IF(C,pe):!0}function sx(C,pe,yt,gr,ui){!E||!df(E.text,C)||(St||(Pre(oa(),Se,ui,C),St=!0),Wl(C),eI(E.text,oa(),Se,C,pe,x),Wl(pe),gr?Se.writeLine():yt===3&&Se.writeSpace(" "))}function Nh(C){Bt||C===-1||_f(C,!0)}function LC(C){ox(C,ax)}function ax(C,pe,yt,gr){!E||!df(E.text,C)||(Se.isAtStartOfLine()||Se.writeSpace(" "),Wl(C),eI(E.text,oa(),Se,C,pe,x),Wl(pe),gr&&Se.writeLine())}function qd(C,pe,yt){Bt||(ft(),ox(C,pe?ax:yt?WC:xD),qt())}function WC(C,pe,yt){E&&(Wl(C),eI(E.text,oa(),Se,C,pe,x),Wl(pe),yt===2&&Se.writeLine())}function xD(C,pe,yt,gr){E&&(Wl(C),eI(E.text,oa(),Se,C,pe,x),Wl(pe),gr?Se.writeLine():Se.writeSpace(" "))}function BC(C,pe){E&&(te===-1||C!==te)&&(zC(C)?wv(pe):bM(E.text,C,pe,C))}function ox(C,pe){E&&(Ne===-1||C!==Ne&&C!==Ie)&&SM(E.text,C,pe)}function zC(C){return Qe!==void 0&&ka(Qe).nodePos===C}function wv(C){if(!E)return;let pe=ka(Qe).detachedCommentEndPos;Qe.length-1?Qe.pop():Qe=void 0,bM(E.text,pe,C,pe)}function Wf(C){let pe=E&&Are(E.text,oa(),Se,pg,C,x,Bt);pe&&(Qe?Qe.push(pe):Qe=[pe])}function pg(C,pe,yt,gr,ui,xi){!E||!df(E.text,gr)||(Wl(gr),eI(C,pe,yt,gr,ui,xi),Wl(ui))}function cx(C,pe){return!!E&&sz(E.text,C,pe)}function lx(C,pe){let yt=Pt(3,C,pe);Ja(pe),yt(C,pe),wn(pe)}function Ja(C){let pe=Oa(C),yt=nv(C),gr=yt.source||Oe;C.kind!==354&&(pe&32)===0&&yt.pos>=0&&R1(yt.source||Oe,v_(gr,yt.pos)),pe&128&&(ge=!0)}function wn(C){let pe=Oa(C),yt=nv(C);pe&128&&(ge=!1),C.kind!==354&&(pe&64)===0&&yt.end>=0&&R1(yt.source||Oe,yt.end)}function v_(C,pe){return C.skipTrivia?C.skipTrivia(pe):ha(C.text,pe)}function Wl(C){if(ge||am(C)||px(Oe))return;let{line:pe,character:yt}=Hs(Oe,C);ke.addMapping(Se.getLine(),Se.getColumn(),nt,pe,yt,void 0)}function R1(C,pe){if(C!==Oe){let yt=Oe,gr=nt;mT(C),Wl(pe),O1(yt,gr)}else Wl(pe)}function ux(C,pe,yt,gr,ui){if(ge||C&&qF(C))return ui(pe,yt,gr);let xi=C&&C.emitNode,cs=xi&&xi.flags||0,ki=xi&&xi.tokenSourceMapRanges&&xi.tokenSourceMapRanges[pe],Pa=ki&&ki.source||Oe;return gr=v_(Pa,ki?ki.pos:gr),(cs&256)===0&&gr>=0&&R1(Pa,gr),gr=ui(pe,yt,gr),ki&&(gr=ki.end),(cs&512)===0&&gr>=0&&R1(Pa,gr),gr}function mT(C){if(!ge){if(Oe=C,C===ae){nt=Ue;return}px(C)||(nt=ke.addSource(C.fileName),e.inlineSources&&ke.setSourceContent(nt,C.text),ae=C,Ue=nt)}}function O1(C,pe){Oe=C,nt=pe}function px(C){return uc(C.fileName,".json")}}function fUe(){let e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function _Ue(e){return TTe[e&15360][0]}function dUe(e){return TTe[e&15360][1]}function mUe(e,t,n,i){t(e)}function gUe(e,t,n,i){t(e,n.select(i))}function hUe(e,t,n,i){t(e,n)}function yUe(e,t){return e.length===1?mUe:typeof t=="object"?gUe:hUe}function mj(e,t,n){if(!e.getDirectories||!e.readDirectory)return;let i=new Map,s=hu(n);return{useCaseSensitiveFileNames:n,fileExists:T,readFile:(U,_e)=>e.readFile(U,_e),directoryExists:e.directoryExists&&x,getDirectories:P,readDirectory:E,createDirectory:e.createDirectory&&I,writeFile:e.writeFile&&S,addOrDeleteFileOrDirectory:W,addOrDeleteFile:z,clearCache:X,realpath:e.realpath&&F};function o(U){return So(U,t,s)}function c(U){return i.get(Ml(U))}function p(U){let _e=c(ti(U));return _e&&(_e.sortedAndCanonicalizedFiles||(_e.sortedAndCanonicalizedFiles=_e.files.map(s).sort(),_e.sortedAndCanonicalizedDirectories=_e.directories.map(s).sort()),_e)}function u(U){return dl(ra(U))}function g(U,_e){var re;if(!e.realpath||Ml(o(e.realpath(U)))===_e){let V={files:kr(e.readDirectory(U,void 0,void 0,["*.*"]),u)||[],directories:e.getDirectories(U)||[]};return i.set(Ml(_e),V),V}if((re=e.directoryExists)!=null&&re.call(e,U))return i.set(_e,!1),!1}function d(U,_e){_e=Ml(_e);let re=c(_e);if(re)return re;try{return g(U,_e)}catch{w.assert(!i.has(Ml(_e)));return}}function h(U,_e){return Xv(U,_e,Do,Eu)>=0}function S(U,_e,re){let V=o(U),ce=p(V);return ce&&$(ce,u(U),!0),e.writeFile(U,_e,re)}function T(U){let _e=o(U),re=p(_e);return re&&h(re.sortedAndCanonicalizedFiles,s(u(U)))||e.fileExists(U)}function x(U){let _e=o(U);return i.has(Ml(_e))||e.directoryExists(U)}function I(U){let _e=o(U),re=p(_e);if(re){let V=u(U),ce=s(V),oe=re.sortedAndCanonicalizedDirectories;Qv(oe,ce,Eu)&&re.directories.push(V)}e.createDirectory(U)}function P(U){let _e=o(U),re=d(U,_e);return re?re.directories.slice():e.getDirectories(U)}function E(U,_e,re,V,ce){let oe=o(U),le=d(U,oe),de;if(le!==void 0)return AG(U,_e,re,V,n,t,ce,ve,F);return e.readDirectory(U,_e,re,V,ce);function ve(Se){let Je=o(Se);if(Je===oe)return le||H(Se,Je);let ye=d(Se,Je);return ye!==void 0?ye||H(Se,Je):RG}function H(Se,Je){if(de&&Je===oe)return de;let ye={files:kr(e.readDirectory(Se,void 0,void 0,["*.*"]),u)||Ke,directories:e.getDirectories(Se)||Ke};return Je===oe&&(de=ye),ye}}function F(U){return e.realpath?e.realpath(U):U}function O(U){xP(ti(U),_e=>i.delete(Ml(_e))?!0:void 0)}function W(U,_e){if(c(_e)!==void 0){X();return}let V=p(_e);if(!V){O(_e);return}if(!e.directoryExists){X();return}let ce=u(U),oe={fileExists:e.fileExists(U),directoryExists:e.directoryExists(U)};return oe.directoryExists||h(V.sortedAndCanonicalizedDirectories,s(ce))?X():$(V,ce,oe.fileExists),oe}function z(U,_e,re){if(re===1)return;let V=p(_e);V?$(V,u(U),re===0):O(_e)}function $(U,_e,re){let V=U.sortedAndCanonicalizedFiles,ce=s(_e);if(re)Qv(V,ce,Eu)&&U.files.push(_e);else{let oe=Xv(V,ce,Do,Eu);if(oe>=0){V.splice(oe,1);let le=U.files.findIndex(de=>s(de)===ce);U.files.splice(le,1)}}}function X(){i.clear()}}var eoe=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(eoe||{});function gj(e,t,n,i,s){var o;let c=yw(((o=t?.configFile)==null?void 0:o.extendedSourceFiles)||Ke,s);n.forEach((p,u)=>{c.has(u)||(p.projects.delete(e),p.close())}),c.forEach((p,u)=>{let g=n.get(u);g?g.projects.add(e):n.set(u,{projects:new Set([e]),watcher:i(p,u),close:()=>{let d=n.get(u);!d||d.projects.size!==0||(d.watcher.close(),n.delete(u))}})})}function aV(e,t){t.forEach(n=>{n.projects.delete(e)&&n.close()})}function hj(e,t,n){e.delete(t)&&e.forEach(({extendedResult:i},s)=>{var o;(o=i.extendedSourceFiles)!=null&&o.some(c=>n(c)===t)&&hj(e,s,n)})}function oV(e,t,n){yA(t,e.getMissingFilePaths(),{createNewValue:n,onDeleteValue:Fd})}function Q4(e,t,n){t?yA(e,new Map(Object.entries(t)),{createNewValue:i,onDeleteValue:J_,onExistingValue:s}):cf(e,J_);function i(o,c){return{watcher:n(o,c),flags:c}}function s(o,c,p){o.flags!==c&&(o.watcher.close(),e.set(p,i(p,c)))}}function K4({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:n,configFileName:i,options:s,program:o,extraFileExtensions:c,currentDirectory:p,useCaseSensitiveFileNames:u,writeLog:g,toPath:d,getScriptKind:h}){let S=Aj(n);if(!S)return g(`Project: ${i} Detected ignored path: ${t}`),!0;if(n=S,n===e)return!1;if(xw(n)&&!(MG(t,s,c)||E()))return g(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(kse(t,s.configFile.configFileSpecs,as(ti(i),p),u,p))return g(`Project: ${i} Detected excluded file: ${t}`),!0;if(!o||s.outFile||s.outDir)return!1;if(Kl(n)){if(s.declarationDir)return!1}else if(!Bc(n,aI))return!1;let T=dp(n),x=gs(o)?void 0:jV(o)?o.getProgramOrUndefined():o,I=!x&&!gs(o)?o:void 0;if(P(T+".ts")||P(T+".tsx"))return g(`Project: ${i} Detected output file: ${t}`),!0;return!1;function P(F){return x?!!x.getSourceFileByPath(F):I?I.state.fileInfos.has(F):!!Bn(o,O=>d(O)===F)}function E(){if(!h)return!1;switch(h(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return xb(s);case 6:return ES(s);case 0:return!1}}}function toe(e,t){return e?e.isEmittedFile(t):!1}var roe=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(roe||{});function cV(e,t,n,i){lee(t===2?n:no);let s={watchFile:(I,P,E,F)=>e.watchFile(I,P,E,F),watchDirectory:(I,P,E,F)=>e.watchDirectory(I,P,(E&1)!==0,F)},o=t!==0?{watchFile:T("watchFile"),watchDirectory:T("watchDirectory")}:void 0,c=t===2?{watchFile:h,watchDirectory:S}:o||s,p=t===2?d:TE;return{watchFile:u("watchFile"),watchDirectory:u("watchDirectory")};function u(I){return(P,E,F,O,W,z)=>{var $;return J7(P,I==="watchFile"?O?.excludeFiles:O?.excludeDirectories,g(),(($=e.getCurrentDirectory)==null?void 0:$.call(e))||"")?p(P,F,O,W,z):c[I].call(void 0,P,E,F,O,W,z)}}function g(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function d(I,P,E,F,O){return n(`ExcludeWatcher:: Added:: ${x(I,P,E,F,O,i)}`),{close:()=>n(`ExcludeWatcher:: Close:: ${x(I,P,E,F,O,i)}`)}}function h(I,P,E,F,O,W){n(`FileWatcher:: Added:: ${x(I,E,F,O,W,i)}`);let z=o.watchFile(I,P,E,F,O,W);return{close:()=>{n(`FileWatcher:: Close:: ${x(I,E,F,O,W,i)}`),z.close()}}}function S(I,P,E,F,O,W){let z=`DirectoryWatcher:: Added:: ${x(I,E,F,O,W,i)}`;n(z);let $=bo(),X=o.watchDirectory(I,P,E,F,O,W),U=bo()-$;return n(`Elapsed:: ${U}ms ${z}`),{close:()=>{let _e=`DirectoryWatcher:: Close:: ${x(I,E,F,O,W,i)}`;n(_e);let re=bo();X.close();let V=bo()-re;n(`Elapsed:: ${V}ms ${_e}`)}}}function T(I){return(P,E,F,O,W,z)=>s[I].call(void 0,P,(...$)=>{let X=`${I==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${$[0]} ${$[1]!==void 0?$[1]:""}:: ${x(P,F,O,W,z,i)}`;n(X);let U=bo();E.call(void 0,...$);let _e=bo()-U;n(`Elapsed:: ${_e}ms ${X}`)},F,O,W,z)}function x(I,P,E,F,O,W){return`WatchInfo: ${I} ${P} ${JSON.stringify(E)} ${W?W(F,O):O===void 0?F:`${F} ${O}`}`}}function X4(e){let t=e?.fallbackPolling;return{watchFile:t!==void 0?t:1}}function J_(e){e.watcher.close()}function lV(e,t,n="tsconfig.json"){return xP(e,i=>{let s=Jn(i,n);return t(s)?s:void 0})}function uV(e,t){let n=ti(t),i=Sf(e)?e:Jn(n,e);return ra(i)}function noe(e,t,n){let i;return or(e,o=>{let c=$O(o,t);if(c.pop(),!i){i=c;return}let p=Math.min(i.length,c.length);for(let u=0;u<p;u++)if(n(i[u])!==n(c[u])){if(u===0)return!0;i.length=u;break}c.length<i.length&&(i.length=c.length)})?"":i?w0(i):t}function ioe(e,t){return yj(e,t)}function pV(e,t){return(n,i,s)=>{let o;try{dc("beforeIORead"),o=e(n),dc("afterIORead"),P_("I/O Read","beforeIORead","afterIORead")}catch(c){s&&s(c.message),o=""}return o!==void 0?X2(n,o,i,t):void 0}}function fV(e,t,n){return(i,s,o,c)=>{try{dc("beforeIOWrite"),Zz(i,s,o,e,t,n),dc("afterIOWrite"),P_("I/O Write","beforeIOWrite","afterIOWrite")}catch(p){c&&c(p.message)}}}function yj(e,t,n=Nl){let i=new Map,s=hu(n.useCaseSensitiveFileNames);function o(d){return i.has(d)?!0:(g.directoryExists||n.directoryExists)(d)?(i.set(d,!0),!0):!1}function c(){return ti(ra(n.getExecutingFilePath()))}let p=Zy(e),u=n.realpath&&(d=>n.realpath(d)),g={getSourceFile:pV(d=>g.readFile(d),t),getDefaultLibLocation:c,getDefaultLibFileName:d=>Jn(c(),kM(d)),writeFile:fV((d,h,S)=>n.writeFile(d,h,S),d=>(g.createDirectory||n.createDirectory)(d),d=>o(d)),getCurrentDirectory:up(()=>n.getCurrentDirectory()),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames,getCanonicalFileName:s,getNewLine:()=>p,fileExists:d=>n.fileExists(d),readFile:d=>n.readFile(d),trace:d=>n.write(d+p),directoryExists:d=>n.directoryExists(d),getEnvironmentVariable:d=>n.getEnvironmentVariable?n.getEnvironmentVariable(d):"",getDirectories:d=>n.getDirectories(d),realpath:u,readDirectory:(d,h,S,T,x)=>n.readDirectory(d,h,S,T,x),createDirectory:d=>n.createDirectory(d),createHash:Js(n,n.createHash)};return g}function yE(e,t,n){let i=e.readFile,s=e.fileExists,o=e.directoryExists,c=e.createDirectory,p=e.writeFile,u=new Map,g=new Map,d=new Map,h=new Map,S=I=>{let P=t(I),E=u.get(P);return E!==void 0?E!==!1?E:void 0:T(P,I)},T=(I,P)=>{let E=i.call(e,P);return u.set(I,E!==void 0?E:!1),E};e.readFile=I=>{let P=t(I),E=u.get(P);return E!==void 0?E!==!1?E:void 0:!uc(I,".json")&&!Hae(I)?i.call(e,I):T(P,I)};let x=n?(I,P,E,F)=>{let O=t(I),W=typeof P=="object"?P.impliedNodeFormat:void 0,z=h.get(W),$=z?.get(O);if($)return $;let X=n(I,P,E,F);return X&&(Kl(I)||uc(I,".json"))&&h.set(W,(z||new Map).set(O,X)),X}:void 0;return e.fileExists=I=>{let P=t(I),E=g.get(P);if(E!==void 0)return E;let F=s.call(e,I);return g.set(P,!!F),F},p&&(e.writeFile=(I,P,...E)=>{let F=t(I);g.delete(F);let O=u.get(F);O!==void 0&&O!==P?(u.delete(F),h.forEach(W=>W.delete(F))):x&&h.forEach(W=>{let z=W.get(F);z&&z.text!==P&&W.delete(F)}),p.call(e,I,P,...E)}),o&&(e.directoryExists=I=>{let P=t(I),E=d.get(P);if(E!==void 0)return E;let F=o.call(e,I);return d.set(P,!!F),F},c&&(e.createDirectory=I=>{let P=t(I);d.delete(P),c.call(e,I)})),{originalReadFile:i,originalFileExists:s,originalDirectoryExists:o,originalCreateDirectory:c,originalWriteFile:p,getSourceFileWithCache:x,readFileWithCache:S}}function ATe(e,t,n){let i;return i=Gn(i,e.getConfigFileParsingDiagnostics()),i=Gn(i,e.getOptionsDiagnostics(n)),i=Gn(i,e.getSyntacticDiagnostics(t,n)),i=Gn(i,e.getGlobalDiagnostics(n)),i=Gn(i,e.getSemanticDiagnostics(t,n)),lf(e.getCompilerOptions())&&(i=Gn(i,e.getDeclarationDiagnostics(t,n))),Dw(i||Ke)}function ETe(e,t){let n="";for(let i of e)n+=_V(i,t);return n}function _V(e,t){let n=`${zT(e)} TS${e.code}: ${tg(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){let{line:i,character:s}=Hs(e.file,e.start),o=e.file.fileName;return`${kP(o,t.getCurrentDirectory(),p=>t.getCanonicalFileName(p))}(${i+1},${s+1}): `+n}return n}var soe=(e=>(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(soe||{}),aoe="\x1B[7m",ooe=" ",NTe="\x1B[0m",MTe="...",vUe=" ",RTe=" ";function OTe(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return w.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function QS(e,t){return t+e+NTe}function FTe(e,t,n,i,s,o){let{line:c,character:p}=Hs(e,t),{line:u,character:g}=Hs(e,t+n),d=Hs(e,e.text.length).line,h=u-c>=4,S=(u+1+"").length;h&&(S=Math.max(MTe.length,S));let T="";for(let x=c;x<=u;x++){T+=o.getNewLine(),h&&c+1<x&&x<u-1&&(T+=i+QS(MTe.padStart(S),aoe)+ooe+o.getNewLine(),x=u-1);let I=yM(e,x,0),P=x<d?yM(e,x+1,0):e.text.length,E=e.text.slice(I,P);if(E=E.trimEnd(),E=E.replace(/\t/g," "),T+=i+QS((x+1+"").padStart(S),aoe)+ooe,T+=E+o.getNewLine(),T+=i+QS("".padStart(S),aoe)+ooe,T+=s,x===c){let F=x===u?g:void 0;T+=E.slice(0,p).replace(/\S/g," "),T+=E.slice(p,F).replace(/./g,"~")}else x===u?T+=E.slice(0,g).replace(/./g,"~"):T+=E.replace(/./g,"~");T+=NTe}return T}function dV(e,t,n,i=QS){let{line:s,character:o}=Hs(e,t),c=n?kP(e.fileName,n.getCurrentDirectory(),u=>n.getCanonicalFileName(u)):e.fileName,p="";return p+=i(c,"\x1B[96m"),p+=":",p+=i(`${s+1}`,"\x1B[93m"),p+=":",p+=i(`${o+1}`,"\x1B[93m"),p}function coe(e,t){let n="";for(let i of e){if(i.file){let{file:s,start:o}=i;n+=dV(s,o,t),n+=" - "}if(n+=QS(zT(i),OTe(i.category)),n+=QS(` TS${i.code}: `,"\x1B[90m"),n+=tg(i.messageText,t.getNewLine()),i.file&&i.code!==_.File_appears_to_be_binary.code&&(n+=t.getNewLine(),n+=FTe(i.file,i.start,i.length,"",OTe(i.category),t)),i.relatedInformation){n+=t.getNewLine();for(let{file:s,start:o,length:c,messageText:p}of i.relatedInformation)s&&(n+=t.getNewLine(),n+=vUe+dV(s,o,t),n+=FTe(s,o,c,RTe,"\x1B[96m",t)),n+=t.getNewLine(),n+=RTe+tg(p,t.getNewLine())}n+=t.getNewLine()}return n}function tg(e,t,n=0){if(Is(e))return e;if(e===void 0)return"";let i="";if(n){i+=t;for(let s=0;s<n;s++)i+=" "}if(i+=e.messageText,n++,e.next)for(let s of e.next)i+=tg(s,t,n);return i}function loe(e,t){return(Is(e)?t:e.resolutionMode)||t}function jTe(e,t,n){return vj(e,tR(e,t),n)}function mV(e){var t;return tl(e)?e.isTypeOnly:!!((t=e.importClause)!=null&&t.isTypeOnly)}function gV(e,t,n){return vj(e,t,n)}function vj(e,t,n){if((ac(t.parent)||tl(t.parent)||Zm(t.parent))&&mV(t.parent)){let s=LI(t.parent.attributes);if(s)return s}if(t.parent.parent&&Hm(t.parent.parent)){let i=LI(t.parent.parent.attributes);if(i)return i}if(n&&kG(n))return LTe(e,t,n)}function LTe(e,t,n){var i;if(!n)return;let s=(i=Od(t.parent))==null?void 0:i.parent;if(s&&Dl(s)||Vp(t.parent,!1))return 1;if(Up(Od(t.parent)))return GTe(e,n)?1:99;let o=SE(e,n);return o===1?1:G6(o)||o===200?99:void 0}function LI(e,t){if(!e)return;if(Dr(e.elements)!==1){t?.(e,e.token===118?_.Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:_.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require);return}let n=e.elements[0];if(Ha(n.name)){if(n.name.text!=="resolution-mode"){t?.(n.name,e.token===118?_.resolution_mode_is_the_only_valid_key_for_type_import_attributes:_.resolution_mode_is_the_only_valid_key_for_type_import_assertions);return}if(Ha(n.value)){if(n.value.text!=="import"&&n.value.text!=="require"){t?.(n.value,_.resolution_mode_should_be_either_require_or_import);return}return n.value.text==="import"?99:1}}}var WTe={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0};function uoe(e){return e.text}var bj={getName:uoe,getMode:(e,t,n)=>gV(t,e,n)};function hV(e,t,n,i,s){return{nameAndMode:bj,resolve:(o,c)=>Pk(o,e,n,i,s,t,c)}}function poe(e){return Is(e)?e:e.fileName}var BTe={getName:poe,getMode:(e,t,n)=>loe(e,t&&xj(t,n))};function Sj(e,t,n,i,s){return{nameAndMode:BTe,resolve:(o,c)=>Nse(o,e,n,i,t,s,c)}}function Y4(e,t,n,i,s,o,c,p){if(e.length===0)return Ke;let u=[],g=new Map,d=p(t,n,i,o,c);for(let h of e){let S=d.nameAndMode.getName(h),T=d.nameAndMode.getMode(h,s,n?.commandLine.options||i),x=nE(S,T),I=g.get(x);I||g.set(x,I=d.resolve(S,T)),u.push(I)}return u}var vE="__inferred type names__.ts";function Tj(e,t,n){let i=e.configFilePath?ti(e.configFilePath):t;return Jn(i,`__lib_node_modules_lookup_${n}__.ts`)}function yV(e){let t=e.split("."),n=t[1],i=2;for(;t[i]&&t[i]!=="d";)n+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+n}function s1(e){switch(e?.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function WI(e){return e.pos!==void 0}function bE(e,t){var n,i,s,o;let c=w.checkDefined(e.getSourceFileByPath(t.file)),{kind:p,index:u}=t,g,d,h;switch(p){case 3:let S=tR(c,u);if(h=(i=(n=e.getResolvedModuleFromModuleSpecifier(S,c))==null?void 0:n.resolvedModule)==null?void 0:i.packageId,S.pos===-1)return{file:c,packageId:h,text:S.text};g=ha(c.text,S.pos),d=S.end;break;case 4:({pos:g,end:d}=c.referencedFiles[u]);break;case 5:({pos:g,end:d}=c.typeReferenceDirectives[u]),h=(o=(s=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(c.typeReferenceDirectives[u],c))==null?void 0:s.resolvedTypeReferenceDirective)==null?void 0:o.packageId;break;case 7:({pos:g,end:d}=c.libReferenceDirectives[u]);break;default:return w.assertNever(p)}return{file:c,pos:g,end:d,packageId:h}}function vV(e,t,n,i,s,o,c,p,u,g){if(!e||p?.()||!qf(e.getRootFileNames(),t))return!1;let d;if(!qf(e.getProjectReferences(),g,I)||e.getSourceFiles().some(T))return!1;let h=e.getMissingFilePaths();if(h&&Rl(h,s))return!1;let S=e.getCompilerOptions();if(!gG(S,n)||e.resolvedLibReferences&&Rl(e.resolvedLibReferences,(E,F)=>c(F)))return!1;if(S.configFile&&n.configFile)return S.configFile.text===n.configFile.text;return!0;function T(E){return!x(E)||o(E.path)}function x(E){return E.version===i(E.resolvedPath,E.fileName)}function I(E,F,O){return tz(E,F)&&P(e.getResolvedProjectReferences()[O],E)}function P(E,F){if(E){if(ws(d,E))return!0;let W=sC(F),z=u(W);return!z||E.commandLine.options.configFile!==z.options.configFile||!qf(E.commandLine.fileNames,z.fileNames)?!1:((d||(d=[])).push(E),!or(E.references,($,X)=>!P($,E.commandLine.projectReferences[X])))}let O=sC(F);return!u(O)}}function KS(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function Z4(e,t,n,i){let s=kj(e,t,n,i);return typeof s=="object"?s.impliedNodeFormat:s}function kj(e,t,n,i){let s=Ku(i),o=3<=s&&s<=99||Ob(e);return Bc(e,[".d.mts",".mts",".mjs"])?99:Bc(e,[".d.cts",".cts",".cjs"])?1:o&&Bc(e,[".d.ts",".ts",".tsx",".js",".jsx"])?c():void 0;function c(){let p=iE(t,n,i),u=[];p.failedLookupLocations=u,p.affectingLocations=u;let g=sE(ti(e),p);return{impliedNodeFormat:g?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:u,packageJsonScope:g}}}var zTe=new Set([_.Cannot_redeclare_block_scoped_variable_0.code,_.A_module_cannot_have_multiple_default_exports.code,_.Another_export_default_is_here.code,_.The_first_export_default_is_here.code,_.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,_.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,_.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,_.constructor_is_a_reserved_word.code,_.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,_.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,_.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,_.Invalid_use_of_0_in_strict_mode.code,_.A_label_is_not_allowed_here.code,_.with_statements_are_not_allowed_in_strict_mode.code,_.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,_.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,_.A_class_declaration_without_the_default_modifier_must_have_a_name.code,_.A_class_member_cannot_have_the_0_keyword.code,_.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,_.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,_.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,_.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,_.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,_.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,_.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,_.A_destructuring_declaration_must_have_an_initializer.code,_.A_get_accessor_cannot_have_parameters.code,_.A_rest_element_cannot_contain_a_binding_pattern.code,_.A_rest_element_cannot_have_a_property_name.code,_.A_rest_element_cannot_have_an_initializer.code,_.A_rest_element_must_be_last_in_a_destructuring_pattern.code,_.A_rest_parameter_cannot_have_an_initializer.code,_.A_rest_parameter_must_be_last_in_a_parameter_list.code,_.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,_.A_return_statement_cannot_be_used_inside_a_class_static_block.code,_.A_set_accessor_cannot_have_rest_parameter.code,_.A_set_accessor_must_have_exactly_one_parameter.code,_.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,_.An_export_declaration_cannot_have_modifiers.code,_.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,_.An_import_declaration_cannot_have_modifiers.code,_.An_object_member_cannot_be_declared_optional.code,_.Argument_of_dynamic_import_cannot_be_spread_element.code,_.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,_.Cannot_redeclare_identifier_0_in_catch_clause.code,_.Catch_clause_variable_cannot_have_an_initializer.code,_.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,_.Classes_can_only_extend_a_single_class.code,_.Classes_may_not_have_a_field_named_constructor.code,_.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,_.Duplicate_label_0.code,_.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,_.for_await_loops_cannot_be_used_inside_a_class_static_block.code,_.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,_.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,_.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,_.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,_.Jump_target_cannot_cross_function_boundary.code,_.Line_terminator_not_permitted_before_arrow.code,_.Modifiers_cannot_appear_here.code,_.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,_.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,_.Private_identifiers_are_not_allowed_outside_class_bodies.code,_.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,_.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,_.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,_.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,_.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,_.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,_.Trailing_comma_not_allowed.code,_.Variable_declaration_list_cannot_be_empty.code,_._0_and_1_operations_cannot_be_mixed_without_parentheses.code,_._0_expected.code,_._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,_._0_list_cannot_be_empty.code,_._0_modifier_already_seen.code,_._0_modifier_cannot_appear_on_a_constructor_declaration.code,_._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,_._0_modifier_cannot_appear_on_a_parameter.code,_._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,_._0_modifier_cannot_be_used_here.code,_._0_modifier_must_precede_1_modifier.code,_._0_declarations_can_only_be_declared_inside_a_block.code,_._0_declarations_must_be_initialized.code,_.extends_clause_already_seen.code,_.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,_.Class_constructor_may_not_be_a_generator.code,_.Class_constructor_may_not_be_an_accessor.code,_.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_.Private_field_0_must_be_declared_in_an_enclosing_class.code,_.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]);function bUe(e,t){return e?o2(e.getCompilerOptions(),t,KJ):!1}function SUe(e,t,n,i,s,o){return{rootNames:e,options:t,host:n,oldProgram:i,configFileParsingDiagnostics:s,typeScriptVersion:o}}function eR(e,t,n,i,s){var o,c,p,u,g,d,h,S,T,x,I,P,E,F,O,W;let z=gs(e)?SUe(e,t,n,i,s):e,{rootNames:$,options:X,configFileParsingDiagnostics:U,projectReferences:_e,typeScriptVersion:re,host:V}=z,{oldProgram:ce}=z;z=void 0,e=void 0;for(let Ve of pse)if(_o(X,Ve.name)&&typeof X[Ve.name]=="string")throw new Error(`${Ve.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`);let oe=up(()=>Et("ignoreDeprecations",_.Invalid_value_for_ignoreDeprecations)),le,de,ve,H,Se,Je,ye,ee,ge,ke=foe(os),Oe,nt,ae,Ue,te,Ne,Ie,xe,Qe,St=typeof X.maxNodeModuleJsDepth=="number"?X.maxNodeModuleJsDepth:0,Bt=0,fr=new Map,Mr=new Map;(o=mn)==null||o.push(mn.Phase.Program,"createProgram",{configFilePath:X.configFilePath,rootDir:X.rootDir},!0),dc("beforeProgram");let ft=V||ioe(X),qt=wj(ft),Hr=X.noLib,bi=up(()=>ft.getDefaultLibFileName(X)),us=ft.getDefaultLibLocation?ft.getDefaultLibLocation():ti(bi()),At=!1,Un=ft.getCurrentDirectory(),rs=TA(X),zn=V6(X,rs),Sn=new Map,_i,qe,bt,ar,tn=ft.hasInvalidatedResolutions||$h;ft.resolveModuleNameLiterals?(ar=ft.resolveModuleNameLiterals.bind(ft),bt=(c=ft.getModuleResolutionCache)==null?void 0:c.call(ft)):ft.resolveModuleNames?(ar=(Ve,lt,Jt,yr,Ur,Tn)=>ft.resolveModuleNames(Ve.map(uoe),lt,Tn?.map(uoe),Jt,yr,Ur).map(zr=>zr?zr.extension!==void 0?{resolvedModule:zr}:{resolvedModule:{...zr,extension:xA(zr.resolvedFileName)}}:WTe),bt=(p=ft.getModuleResolutionCache)==null?void 0:p.call(ft)):(bt=NI(Un,Ll,X),ar=(Ve,lt,Jt,yr,Ur)=>Y4(Ve,lt,Jt,yr,Ur,ft,bt,hV));let Xn;if(ft.resolveTypeReferenceDirectiveReferences)Xn=ft.resolveTypeReferenceDirectiveReferences.bind(ft);else if(ft.resolveTypeReferenceDirectives)Xn=(Ve,lt,Jt,yr,Ur)=>ft.resolveTypeReferenceDirectives(Ve.map(poe),lt,Jt,yr,Ur?.impliedNodeFormat).map(Tn=>({resolvedTypeReferenceDirective:Tn}));else{let Ve=Q7(Un,Ll,void 0,bt?.getPackageJsonInfoCache(),bt?.optionsToRedirectsKey);Xn=(lt,Jt,yr,Ur,Tn)=>Y4(lt,Jt,yr,Ur,Tn,ft,Ve,Sj)}let ei=ft.hasInvalidatedLibResolutions||$h,Mi;if(ft.resolveLibrary)Mi=ft.resolveLibrary.bind(ft);else{let Ve=NI(Un,Ll,X,bt?.getPackageJsonInfoCache());Mi=(lt,Jt,yr)=>K7(lt,Jt,yr,ft,Ve)}let js=new Map,oa=new Map,wr=od(),Ds,tt=new Map,Mt=new Map,se=ft.useCaseSensitiveFileNames()?new Map:void 0,pt,Z,Ee,et,at=!!((u=ft.useSourceOfProjectReferenceRedirect)!=null&&u.call(ft))&&!X.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Pt,fileExists:Le,directoryExists:kt}=TUe({compilerHost:ft,getSymlinkCache:g_,useSourceOfProjectReferenceRedirect:at,toPath:Ot,getResolvedProjectReferences:qs,getRedirectFromOutput:Oc,forEachResolvedProjectReference:bc}),Tt=ft.readFile.bind(ft);(g=mn)==null||g.push(mn.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!ce});let Rt=bUe(ce,X);(d=mn)==null||d.pop();let Ye;if((h=mn)==null||h.push(mn.Phase.Program,"tryReuseStructureFromOldProgram",{}),Ye=Cr(),(S=mn)==null||S.pop(),Ye!==2){if(le=[],de=[],_e&&(pt||(pt=_e.map(og)),$.length&&pt?.forEach((Ve,lt)=>{if(!Ve)return;let Jt=Ve.commandLine.options.outFile;if(at){if(Jt||_p(Ve.commandLine.options)===0)for(let yr of Ve.commandLine.fileNames)Xp(yr,{kind:1,index:lt})}else if(Jt)Xp(tv(Jt,".d.ts"),{kind:2,index:lt});else if(_p(Ve.commandLine.options)===0){let yr=up(()=>Mk(Ve.commandLine,!ft.useCaseSensitiveFileNames()));for(let Ur of Ve.commandLine.fileNames)!Kl(Ur)&&!uc(Ur,".json")&&Xp(gE(Ur,Ve.commandLine,!ft.useCaseSensitiveFileNames(),yr),{kind:2,index:lt})}})),(T=mn)==null||T.push(mn.Phase.Program,"processRootFiles",{count:$.length}),or($,(Ve,lt)=>ua(Ve,!1,!1,{kind:0,index:lt})),(x=mn)==null||x.pop(),Oe??(Oe=$.length?$7(X,ft):Ke),nt=EI(),Oe.length){(I=mn)==null||I.push(mn.Phase.Program,"processTypeReferences",{count:Oe.length});let Ve=X.configFilePath?ti(X.configFilePath):Un,lt=Jn(Ve,vE),Jt=Nt(Oe,lt);for(let yr=0;yr<Oe.length;yr++)nt.set(Oe[yr],void 0,Jt[yr]),U_(Oe[yr],void 0,Jt[yr],{kind:8,typeReference:Oe[yr],packageId:(E=(P=Jt[yr])==null?void 0:P.resolvedTypeReferenceDirective)==null?void 0:E.packageId});(F=mn)==null||F.pop()}if($.length&&!Hr){let Ve=bi();!X.lib&&Ve?ua(Ve,!0,!1,{kind:6}):or(X.lib,(lt,Jt)=>{ua(xh(lt),!0,!1,{kind:6,index:Jt})})}ve=yf(le,ct).concat(de),le=void 0,de=void 0,ye=void 0}if(ce&&ft.onReleaseOldSourceFile){let Ve=ce.getSourceFiles();for(let lt of Ve){let Jt=fa(lt.resolvedPath);(Rt||!Jt||Jt.impliedNodeFormat!==lt.impliedNodeFormat||lt.resolvedPath===lt.path&&Jt.resolvedPath!==lt.path)&&ft.onReleaseOldSourceFile(lt,ce.getCompilerOptions(),!!fa(lt.path),Jt)}ft.getParsedCommandLine||ce.forEachResolvedProjectReference(lt=>{fu(lt.sourceFile.path)||ft.onReleaseOldSourceFile(lt.sourceFile,ce.getCompilerOptions(),!1,void 0)})}ce&&ft.onReleaseParsedCommandLine&&RA(ce.getProjectReferences(),ce.getResolvedProjectReferences(),(Ve,lt,Jt)=>{let yr=lt?.commandLine.projectReferences[Jt]||ce.getProjectReferences()[Jt],Ur=sC(yr);Z?.has(Ot(Ur))||ft.onReleaseParsedCommandLine(Ur,Ve,ce.getCompilerOptions())}),ce=void 0,Ue=void 0,Ne=void 0,xe=void 0;let Gt={getRootFileNames:()=>$,getSourceFile:Lo,getSourceFileByPath:fa,getSourceFiles:()=>ve,getMissingFilePaths:()=>Mt,getModuleResolutionCache:()=>bt,getFilesByNameMap:()=>tt,getCompilerOptions:()=>X,getSyntacticDiagnostics:d_,getOptionsDiagnostics:Rr,getGlobalDiagnostics:Ri,getSemanticDiagnostics:ys,getCachedSemanticDiagnostics:Ys,getSuggestionDiagnostics:We,getDeclarationDiagnostics:$t,getBindAndCheckDiagnostics:Ga,getProgramDiagnostics:Fa,getTypeChecker:vo,getClassifiableNames:hr,getCommonSourceDirectory:Ht,emit:Ki,getCurrentDirectory:()=>Un,getNodeCount:()=>vo().getNodeCount(),getIdentifierCount:()=>vo().getIdentifierCount(),getSymbolCount:()=>vo().getSymbolCount(),getTypeCount:()=>vo().getTypeCount(),getInstantiationCount:()=>vo().getInstantiationCount(),getRelationCacheSizes:()=>vo().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>ke.getFileProcessingDiagnostics(),getAutomaticTypeDirectiveNames:()=>Oe,getAutomaticTypeDirectiveResolutions:()=>nt,isSourceFileFromExternalLibrary:Dc,isSourceFileDefaultLibrary:vc,getModeForUsageLocation:V_,getEmitSyntaxForUsageLocation:gy,getModeForResolutionAtIndex:gv,getSourceFileFromReference:Of,getLibFileFromReference:Uc,sourceFileToPackageName:oa,redirectTargetsMap:wr,usesUriStyleNodeCoreModules:Ds,resolvedModules:te,resolvedTypeReferenceDirectiveNames:Ie,resolvedLibReferences:ae,getProgramDiagnosticsContainer:()=>ke,getResolvedModule:ln,getResolvedModuleFromModuleSpecifier:Ae,getResolvedTypeReferenceDirective:wt,getResolvedTypeReferenceDirectiveFromTypeReferenceDirective:fe,forEachResolvedModule:j,forEachResolvedTypeReferenceDirective:je,getCurrentPackagesMap:()=>Qe,typesPackageExists:jt,packageBundlesTypes:Ce,isEmittedFile:eu,getConfigFileParsingDiagnostics:so,getProjectReferences:xs,getResolvedProjectReferences:qs,getRedirectFromSourceFile:zo,getResolvedProjectReferenceByPath:fu,forEachResolvedProjectReference:bc,isSourceOfProjectReferenceRedirect:Xf,getRedirectFromOutput:Oc,getCompilerOptionsForFile:hp,getDefaultResolutionModeForFile:Mp,getEmitModuleFormatOfFile:gm,getImpliedNodeFormatForEmit:Og,shouldTransformImportCall:Td,emitBuildInfo:Vs,fileExists:Le,readFile:Tt,directoryExists:kt,getSymlinkCache:g_,realpath:(O=ft.realpath)==null?void 0:O.bind(ft),useCaseSensitiveFileNames:()=>ft.useCaseSensitiveFileNames(),getCanonicalFileName:Ll,getFileIncludeReasons:()=>ke.getFileReasons(),structureIsReused:Ye,writeFile:di,getGlobalTypingsCacheLocation:Js(ft,ft.getGlobalTypingsCacheLocation)};return Pt(),At||ne(),dc("afterProgram"),P_("Program","beforeProgram","afterProgram"),(W=mn)==null||W.pop(),Gt;function ln(Ve,lt,Jt){var yr;return(yr=te?.get(Ve.path))==null?void 0:yr.get(lt,Jt)}function Ae(Ve,lt){return lt??(lt=Nr(Ve)),w.assertIsDefined(lt,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),ln(lt,Ve.text,V_(lt,Ve))}function wt(Ve,lt,Jt){var yr;return(yr=Ie?.get(Ve.path))==null?void 0:yr.get(lt,Jt)}function fe(Ve,lt){return wt(lt,Ve.fileName,Jb(Ve,lt))}function j(Ve,lt){q(te,Ve,lt)}function je(Ve,lt){q(Ie,Ve,lt)}function q(Ve,lt,Jt){var yr;Jt?(yr=Ve?.get(Jt.path))==null||yr.forEach((Ur,Tn,zr)=>lt(Ur,Tn,zr,Jt.path)):Ve?.forEach((Ur,Tn)=>Ur.forEach((zr,en,Ci)=>lt(zr,en,Ci,Tn)))}function vt(){return Qe||(Qe=new Map,j(({resolvedModule:Ve})=>{Ve?.packageId&&Qe.set(Ve.packageId.name,Ve.extension===".d.ts"||!!Qe.get(Ve.packageId.name))}),Qe)}function jt(Ve){return vt().has(Z7(Ve))}function Ce(Ve){return!!vt().get(Ve)}function ut(Ve){var lt;(lt=Ve.resolutionDiagnostics)!=null&<.length&&ke.addFileProcessingDiagnostic({kind:2,diagnostics:Ve.resolutionDiagnostics})}function Qt(Ve,lt,Jt,yr){if(ft.resolveModuleNameLiterals||!ft.resolveModuleNames)return ut(Jt);if(!bt||Ul(lt))return;let Ur=as(Ve.originalFileName,Un),Tn=ti(Ur),zr=Jr(Ve),en=bt.getFromNonRelativeNameCache(lt,yr,Tn,zr);en&&ut(en)}function Zr(Ve,lt,Jt){var yr,Ur;let Tn=as(lt.originalFileName,Un),zr=Jr(lt);(yr=mn)==null||yr.push(mn.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Tn}),dc("beforeResolveModule");let en=ar(Ve,Tn,zr,X,lt,Jt);return dc("afterResolveModule"),P_("ResolveModule","beforeResolveModule","afterResolveModule"),(Ur=mn)==null||Ur.pop(),en}function jr(Ve,lt,Jt){var yr,Ur;let Tn=Is(lt)?void 0:lt,zr=Is(lt)?lt:as(lt.originalFileName,Un),en=Tn&&Jr(Tn);(yr=mn)==null||yr.push(mn.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:zr}),dc("beforeResolveTypeReference");let Ci=Xn(Ve,zr,en,X,Tn,Jt);return dc("afterResolveTypeReference"),P_("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(Ur=mn)==null||Ur.pop(),Ci}function Jr(Ve){var lt,Jt;let yr=zo(Ve.originalFileName);if(yr||!Kl(Ve.originalFileName))return yr?.resolvedRef;let Ur=(lt=Oc(Ve.path))==null?void 0:lt.resolvedRef;if(Ur)return Ur;if(!ft.realpath||!X.preserveSymlinks||!Ve.originalFileName.includes(Th))return;let Tn=Ot(ft.realpath(Ve.originalFileName));return Tn===Ve.path||(Jt=Oc(Tn))==null?void 0:Jt.resolvedRef}function ct(Ve,lt){return Po(It(Ve),It(lt))}function It(Ve){if(A_(us,Ve.fileName,!1)){let lt=dl(Ve.fileName);if(lt==="lib.d.ts"||lt==="lib.es6.d.ts")return 0;let Jt=Sw(dP(lt,"lib."),".d.ts"),yr=A7.indexOf(Jt);if(yr!==-1)return yr+1}return A7.length+2}function Ot(Ve){return So(Ve,Un,Ll)}function Ht(){let Ve=ke.getCommonSourceDirectory();if(Ve!==void 0)return Ve;let lt=Mn(ve,Jt=>wS(Jt,Gt));return Ve=hE(X,()=>Ji(lt,Jt=>Jt.isDeclarationFile?void 0:Jt.fileName),Un,Ll,Jt=>m_(lt,Jt)),ke.setCommonSourceDirectory(Ve),Ve}function hr(){var Ve;if(!Je){vo(),Je=new Set;for(let lt of ve)(Ve=lt.classifiableNames)==null||Ve.forEach(Jt=>Je.add(Jt))}return Je}function ur(Ve,lt){return mr({entries:Ve,containingFile:lt,containingSourceFile:lt,redirectedReference:Jr(lt),nameAndModeGetter:bj,resolutionWorker:Zr,getResolutionFromOldProgram:(Jt,yr)=>ce?.getResolvedModule(lt,Jt,yr),getResolved:c2,canReuseResolutionsInFile:()=>lt===ce?.getSourceFile(lt.fileName)&&!tn(lt.path),resolveToOwnAmbientModule:!0})}function Nt(Ve,lt){let Jt=Is(lt)?void 0:lt;return mr({entries:Ve,containingFile:lt,containingSourceFile:Jt,redirectedReference:Jt&&Jr(Jt),nameAndModeGetter:BTe,resolutionWorker:jr,getResolutionFromOldProgram:(yr,Ur)=>{var Tn;return Jt?ce?.getResolvedTypeReferenceDirective(Jt,yr,Ur):(Tn=ce?.getAutomaticTypeDirectiveResolutions())==null?void 0:Tn.get(yr,Ur)},getResolved:kF,canReuseResolutionsInFile:()=>Jt?Jt===ce?.getSourceFile(Jt.fileName)&&!tn(Jt.path):!tn(Ot(lt))})}function mr({entries:Ve,containingFile:lt,containingSourceFile:Jt,redirectedReference:yr,nameAndModeGetter:Ur,resolutionWorker:Tn,getResolutionFromOldProgram:zr,getResolved:en,canReuseResolutionsInFile:Ci,resolveToOwnAmbientModule:ps}){if(!Ve.length)return Ke;if(Ye===0&&(!ps||!Jt.ambientModuleNames.length))return Tn(Ve,lt,void 0);let oi,fs,Bi,nc,Zp=Ci();for(let _u=0;_u<Ve.length;_u++){let xd=Ve[_u];if(Zp){let Lf=Ur.getName(xd),m1=Ur.getMode(xd,Jt,yr?.commandLine.options??X),cg=zr(Lf,m1),Fg=cg&&en(cg);if(Fg){Mb(X,ft)&&ls(ft,Tn===Zr?Fg.packageId?_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Fg.packageId?_.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2,Lf,Jt?as(Jt.originalFileName,Un):lt,Fg.resolvedFileName,Fg.packageId&&A0(Fg.packageId)),(Bi??(Bi=new Array(Ve.length)))[_u]=cg,(nc??(nc=[])).push(xd);continue}}if(ps){let Lf=Ur.getName(xd);if(ws(Jt.ambientModuleNames,Lf)){Mb(X,ft)&&ls(ft,_.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,Lf,as(Jt.originalFileName,Un)),(Bi??(Bi=new Array(Ve.length)))[_u]=WTe;continue}}(oi??(oi=[])).push(xd),(fs??(fs=[])).push(_u)}if(!oi)return Bi;let kd=Tn(oi,lt,nc);return Bi?(kd.forEach((_u,xd)=>Bi[fs[xd]]=_u),Bi):kd}function Tr(){return!RA(ce.getProjectReferences(),ce.getResolvedProjectReferences(),(Ve,lt,Jt)=>{let yr=(lt?lt.commandLine.projectReferences:_e)[Jt],Ur=og(yr);return Ve?!Ur||Ur.sourceFile!==Ve.sourceFile||!qf(Ve.commandLine.fileNames,Ur.commandLine.fileNames):Ur!==void 0},(Ve,lt)=>{let Jt=lt?fu(lt.sourceFile.path).commandLine.projectReferences:_e;return!qf(Ve,Jt,tz)})}function Cr(){var Ve;if(!ce)return 0;let lt=ce.getCompilerOptions();if(SF(lt,X))return 0;let Jt=ce.getRootFileNames();if(!qf(Jt,$)||!Tr())return 0;_e&&(pt=_e.map(og));let yr=[],Ur=[];if(Ye=2,Rl(ce.getMissingFilePaths(),oi=>ft.fileExists(oi)))return 0;let Tn=ce.getSourceFiles(),zr;(oi=>{oi[oi.Exists=0]="Exists",oi[oi.Modified=1]="Modified"})(zr||(zr={}));let en=new Map;for(let oi of Tn){let fs=ns(oi.fileName,bt,ft,X),Bi=ft.getSourceFileByPath?ft.getSourceFileByPath(oi.fileName,oi.resolvedPath,fs,void 0,Rt):ft.getSourceFile(oi.fileName,fs,void 0,Rt);if(!Bi)return 0;Bi.packageJsonLocations=(Ve=fs.packageJsonLocations)!=null&&Ve.length?fs.packageJsonLocations:void 0,Bi.packageJsonScope=fs.packageJsonScope,w.assert(!Bi.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let nc;if(oi.redirectInfo){if(Bi!==oi.redirectInfo.unredirected)return 0;nc=!1,Bi=oi}else if(ce.redirectTargetsMap.has(oi.path)){if(Bi!==oi)return 0;nc=!1}else nc=Bi!==oi;Bi.path=oi.path,Bi.originalFileName=oi.originalFileName,Bi.resolvedPath=oi.resolvedPath,Bi.fileName=oi.fileName;let Zp=ce.sourceFileToPackageName.get(oi.path);if(Zp!==void 0){let kd=en.get(Zp),_u=nc?1:0;if(kd!==void 0&&_u===1||kd===1)return 0;en.set(Zp,_u)}nc?(oi.impliedNodeFormat!==Bi.impliedNodeFormat?Ye=1:qf(oi.libReferenceDirectives,Bi.libReferenceDirectives,Xo)?oi.hasNoDefaultLib!==Bi.hasNoDefaultLib?Ye=1:qf(oi.referencedFiles,Bi.referencedFiles,Xo)?(Eo(Bi),qf(oi.imports,Bi.imports,ul)&&qf(oi.moduleAugmentations,Bi.moduleAugmentations,ul)?(oi.flags&12582912)!==(Bi.flags&12582912)?Ye=1:qf(oi.typeReferenceDirectives,Bi.typeReferenceDirectives,Xo)||(Ye=1):Ye=1):Ye=1:Ye=1,Ur.push(Bi)):tn(oi.path)&&(Ye=1,Ur.push(Bi)),yr.push(Bi)}if(Ye!==2)return Ye;for(let oi of Ur){let fs=JTe(oi),Bi=ur(fs,oi);(Ne??(Ne=new Map)).set(oi.path,Bi);let nc=hp(oi);nz(fs,Bi,Lf=>ce.getResolvedModule(oi,Lf.text,vj(oi,Lf,nc)),kte)&&(Ye=1);let kd=oi.typeReferenceDirectives,_u=Nt(kd,oi);(xe??(xe=new Map)).set(oi.path,_u),nz(kd,_u,Lf=>ce.getResolvedTypeReferenceDirective(oi,poe(Lf),Jb(Lf,oi)),xte)&&(Ye=1)}if(Ye!==2)return Ye;if(Ste(lt,X)||ce.resolvedLibReferences&&Rl(ce.resolvedLibReferences,(oi,fs)=>Ch(fs).actual!==oi.actual))return 1;if(ft.hasChangedAutomaticTypeDirectiveNames){if(ft.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Oe=$7(X,ft),!qf(ce.getAutomaticTypeDirectiveNames(),Oe))return 1;Mt=ce.getMissingFilePaths(),w.assert(yr.length===ce.getSourceFiles().length);for(let oi of yr)tt.set(oi.path,oi);ce.getFilesByNameMap().forEach((oi,fs)=>{if(!oi){tt.set(fs,oi);return}if(oi.path===fs){ce.isSourceFileFromExternalLibrary(oi)&&Mr.set(oi.path,!0);return}tt.set(fs,tt.get(oi.path))});let ps=lt.configFile&<.configFile===X.configFile||!lt.configFile&&!X.configFile&&!o2(lt,X,Bd);return ke.reuseStateFromOldProgram(ce.getProgramDiagnosticsContainer(),ps),At=ps,ve=yr,Oe=ce.getAutomaticTypeDirectiveNames(),nt=ce.getAutomaticTypeDirectiveResolutions(),oa=ce.sourceFileToPackageName,wr=ce.redirectTargetsMap,Ds=ce.usesUriStyleNodeCoreModules,te=ce.resolvedModules,Ie=ce.resolvedTypeReferenceDirectiveNames,ae=ce.resolvedLibReferences,Qe=ce.getCurrentPackagesMap(),2}function rr(Ve){return{getCanonicalFileName:Ll,getCommonSourceDirectory:Gt.getCommonSourceDirectory,getCompilerOptions:Gt.getCompilerOptions,getCurrentDirectory:()=>Un,getSourceFile:Gt.getSourceFile,getSourceFileByPath:Gt.getSourceFileByPath,getSourceFiles:Gt.getSourceFiles,isSourceFileFromExternalLibrary:Dc,getRedirectFromSourceFile:zo,isSourceOfProjectReferenceRedirect:Xf,getSymlinkCache:g_,writeFile:Ve||di,isEmitBlocked:Cs,shouldTransformImportCall:Td,getEmitModuleFormatOfFile:gm,getDefaultResolutionModeForFile:Mp,getModeForResolutionAtIndex:gv,readFile:lt=>ft.readFile(lt),fileExists:lt=>{let Jt=Ot(lt);return fa(Jt)?!0:Mt.has(Jt)?!1:ft.fileExists(lt)},realpath:Js(ft,ft.realpath),useCaseSensitiveFileNames:()=>ft.useCaseSensitiveFileNames(),getBuildInfo:()=>{var lt;return(lt=Gt.getBuildInfo)==null?void 0:lt.call(Gt)},getSourceFileFromReference:(lt,Jt)=>Gt.getSourceFileFromReference(lt,Jt),redirectTargetsMap:wr,getFileIncludeReasons:Gt.getFileIncludeReasons,createHash:Js(ft,ft.createHash),getModuleResolutionCache:()=>Gt.getModuleResolutionCache(),trace:Js(ft,ft.trace),getGlobalTypingsCacheLocation:Gt.getGlobalTypingsCacheLocation}}function di(Ve,lt,Jt,yr,Ur,Tn){ft.writeFile(Ve,lt,Jt,yr,Ur,Tn)}function Vs(Ve){var lt,Jt;(lt=mn)==null||lt.push(mn.Phase.Emit,"emitBuildInfo",{},!0),dc("beforeEmit");let yr=nV(Xae,rr(Ve),void 0,qae,!1,!0);return dc("afterEmit"),P_("Emit","beforeEmit","afterEmit"),(Jt=mn)==null||Jt.pop(),yr}function qs(){return pt}function xs(){return _e}function Dc(Ve){return!!Mr.get(Ve.path)}function vc(Ve){if(!Ve.isDeclarationFile)return!1;if(Ve.hasNoDefaultLib)return!0;if(X.noLib)return!1;let lt=ft.useCaseSensitiveFileNames()?uS:tb;return X.lib?_t(X.lib,Jt=>{let yr=ae.get(Jt);return!!yr&<(Ve.fileName,yr.actual)}):lt(Ve.fileName,bi())}function vo(){return Se||(Se=iae(Gt))}function Ki(Ve,lt,Jt,yr,Ur,Tn,zr){var en,Ci;(en=mn)==null||en.push(mn.Phase.Emit,"emit",{path:Ve?.path},!0);let ps=Mc(()=>ll(Gt,Ve,lt,Jt,yr,Ur,Tn,zr));return(Ci=mn)==null||Ci.pop(),ps}function Cs(Ve){return Sn.has(Ot(Ve))}function ll(Ve,lt,Jt,yr,Ur,Tn,zr,en){if(!zr){let fs=SV(Ve,lt,Jt,yr);if(fs)return fs}let Ci=vo(),ps=Ci.getEmitResolver(X.outFile?void 0:lt,yr,rV(Ur,zr));dc("beforeEmit");let oi=Ci.runWithCancellationToken(yr,()=>nV(ps,rr(Jt),lt,$ae(X,Tn,Ur),Ur,!1,zr,en));return dc("afterEmit"),P_("Emit","beforeEmit","afterEmit"),oi}function Lo(Ve){return fa(Ot(Ve))}function fa(Ve){return tt.get(Ve)||void 0}function Jc(Ve,lt,Jt){return Dw(Ve?lt(Ve,Jt):Ma(Gt.getSourceFiles(),yr=>(Jt&&Jt.throwIfCancellationRequested(),lt(yr,Jt))))}function d_(Ve,lt){return Jc(Ve,uo,lt)}function ys(Ve,lt,Jt){return Jc(Ve,(yr,Ur)=>rl(yr,Ur,Jt),lt)}function Ys(Ve){return ee?.get(Ve.path)}function Ga(Ve,lt){return Yl(Ve,lt,void 0)}function Fa(Ve){var lt;if(oI(Ve,X,Gt))return Ke;let Jt=ke.getCombinedDiagnostics(Gt).getDiagnostics(Ve.fileName);return(lt=Ve.commentDirectives)!=null&<.length?N(Ve,Ve.commentDirectives,Jt).diagnostics:Jt}function $t(Ve,lt){return Jc(Ve,hn,lt)}function uo(Ve){return Cp(Ve)?(Ve.additionalSyntacticDiagnostics||(Ve.additionalSyntacticDiagnostics=Ut(Ve)),Qi(Ve.additionalSyntacticDiagnostics,Ve.parseDiagnostics)):Ve.parseDiagnostics}function Mc(Ve){try{return Ve()}catch(lt){throw lt instanceof bP&&(Se=void 0),lt}}function rl(Ve,lt,Jt){return Qi(Cj(Yl(Ve,lt,Jt),X),Fa(Ve))}function Yl(Ve,lt,Jt){if(Jt)return Ko(Ve,lt,Jt);let yr=ee?.get(Ve.path);return yr||(ee??(ee=new Map)).set(Ve.path,yr=Ko(Ve,lt)),yr}function Ko(Ve,lt,Jt){return Mc(()=>{if(oI(Ve,X,Gt))return Ke;let yr=vo();w.assert(!!Ve.bindDiagnostics);let Ur=Ve.scriptKind===1||Ve.scriptKind===2,Tn=GP(Ve,X.checkJs),zr=Ur&&CA(Ve,X),en=Ve.bindDiagnostics,Ci=yr.getDiagnostics(Ve,lt,Jt);return Tn&&(en=Mn(en,ps=>zTe.has(ps.code)),Ci=Mn(Ci,ps=>zTe.has(ps.code))),Rc(Ve,!Tn,!!Jt,en,Ci,zr?Ve.jsDocDiagnostics:void 0)})}function Rc(Ve,lt,Jt,...yr){var Ur;let Tn=ad(yr);if(!lt||!((Ur=Ve.commentDirectives)!=null&&Ur.length))return Tn;let{diagnostics:zr,directives:en}=N(Ve,Ve.commentDirectives,Tn);if(Jt)return zr;for(let Ci of en.getUnusedExpectations())zr.push(zte(Ve,Ci.range,_.Unused_ts_expect_error_directive));return zr}function N(Ve,lt,Jt){let yr=Ite(Ve,lt);return{diagnostics:Jt.filter(Tn=>dt(Tn,yr)===-1),directives:yr}}function We(Ve,lt){return Mc(()=>vo().getSuggestionDiagnostics(Ve,lt))}function dt(Ve,lt){let{file:Jt,start:yr}=Ve;if(!Jt)return-1;let Ur=th(Jt),Tn=ww(Ur,yr).line-1;for(;Tn>=0;){if(lt.markUsed(Tn))return Tn;let zr=Jt.text.slice(Ur[Tn],Ur[Tn+1]).trim();if(zr!==""&&!/^\s*\/\/.*$/.test(zr))return-1;Tn--}return-1}function Ut(Ve){return Mc(()=>{let lt=[];return Jt(Ve,Ve),K2(Ve,Jt,yr),lt;function Jt(en,Ci){switch(Ci.kind){case 170:case 173:case 175:if(Ci.questionToken===en)return lt.push(zr(en,_.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 174:case 177:case 178:case 179:case 219:case 263:case 220:case 261:if(Ci.type===en)return lt.push(zr(en,_.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(en.kind){case 274:if(en.isTypeOnly)return lt.push(zr(Ci,_._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 279:if(en.isTypeOnly)return lt.push(zr(en,_._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 277:case 282:if(en.isTypeOnly)return lt.push(zr(en,_._0_declarations_can_only_be_used_in_TypeScript_files,gp(en)?"import...type":"export...type")),"skip";break;case 272:return lt.push(zr(en,_.import_can_only_be_used_in_TypeScript_files)),"skip";case 278:if(en.isExportEquals)return lt.push(zr(en,_.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 299:if(en.token===119)return lt.push(zr(en,_.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 265:let oi=ta(120);return w.assertIsDefined(oi),lt.push(zr(en,_._0_declarations_can_only_be_used_in_TypeScript_files,oi)),"skip";case 268:let fs=en.flags&32?ta(145):ta(144);return w.assertIsDefined(fs),lt.push(zr(en,_._0_declarations_can_only_be_used_in_TypeScript_files,fs)),"skip";case 266:return lt.push(zr(en,_.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 177:case 175:case 263:return en.body?void 0:(lt.push(zr(en,_.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 267:let Bi=w.checkDefined(ta(94));return lt.push(zr(en,_._0_declarations_can_only_be_used_in_TypeScript_files,Bi)),"skip";case 236:return lt.push(zr(en,_.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 235:return lt.push(zr(en.type,_.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 239:return lt.push(zr(en.type,_.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 217:w.fail()}}function yr(en,Ci){if(LJ(Ci)){let ps=Bn(Ci.modifiers,Il);ps&<.push(zr(ps,_.Decorators_are_not_valid_here))}else if(US(Ci)&&Ci.modifiers){let ps=Tc(Ci.modifiers,Il);if(ps>=0){if(Gi(Ci)&&!X.experimentalDecorators)lt.push(zr(Ci.modifiers[ps],_.Decorators_are_not_valid_here));else if(hl(Ci)){let oi=Tc(Ci.modifiers,L2);if(oi>=0){let fs=Tc(Ci.modifiers,c7);if(ps>oi&&fs>=0&&ps<fs)lt.push(zr(Ci.modifiers[ps],_.Decorators_are_not_valid_here));else if(oi>=0&&ps<oi){let Bi=Tc(Ci.modifiers,Il,oi);Bi>=0&<.push(Xs(zr(Ci.modifiers[Bi],_.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),zr(Ci.modifiers[ps],_.Decorator_used_before_export_here)))}}}}}switch(Ci.kind){case 264:case 232:case 175:case 177:case 178:case 179:case 219:case 263:case 220:if(en===Ci.typeParameters)return lt.push(Tn(en,_.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 244:if(en===Ci.modifiers)return Ur(Ci.modifiers,Ci.kind===244),"skip";break;case 173:if(en===Ci.modifiers){for(let ps of en)la(ps)&&ps.kind!==126&&ps.kind!==129&<.push(zr(ps,_.The_0_modifier_can_only_be_used_in_TypeScript_files,ta(ps.kind)));return"skip"}break;case 170:if(en===Ci.modifiers&&_t(en,la))return lt.push(Tn(en,_.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 214:case 215:case 234:case 286:case 287:case 216:if(en===Ci.typeArguments)return lt.push(Tn(en,_.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function Ur(en,Ci){for(let ps of en)switch(ps.kind){case 87:if(Ci)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:lt.push(zr(ps,_.The_0_modifier_can_only_be_used_in_TypeScript_files,ta(ps.kind)));break;case 126:case 95:case 90:case 129:}}function Tn(en,Ci,...ps){let oi=en.pos;return wl(Ve,oi,en.end-oi,Ci,...ps)}function zr(en,Ci,...ps){return N_(Ve,en,Ci,...ps)}})}function Wr(Ve,lt){let Jt=ge?.get(Ve.path);return Jt||(ge??(ge=new Map)).set(Ve.path,Jt=Yn(Ve,lt)),Jt}function Yn(Ve,lt){return Mc(()=>{let Jt=vo().getEmitResolver(Ve,lt);return Vae(rr(no),Jt,Ve)||Ke})}function hn(Ve,lt){return Ve.isDeclarationFile?Ke:Wr(Ve,lt)}function Rr(){return Dw(Qi(ke.getCombinedDiagnostics(Gt).getGlobalDiagnostics(),Di()))}function Di(){if(!X.configFile)return Ke;let Ve=ke.getCombinedDiagnostics(Gt).getDiagnostics(X.configFile.fileName);return bc(lt=>{Ve=Qi(Ve,ke.getCombinedDiagnostics(Gt).getDiagnostics(lt.sourceFile.fileName))}),Ve}function Ri(){return $.length?Dw(vo().getGlobalDiagnostics().slice()):Ke}function so(){return U||Ke}function ua(Ve,lt,Jt,yr){Kf(ra(Ve),lt,Jt,void 0,yr)}function Xo(Ve,lt){return Ve.fileName===lt.fileName}function ul(Ve,lt){return Ve.kind===80?lt.kind===80&&Ve.escapedText===lt.escapedText:lt.kind===11&&Ve.text===lt.text}function Kc(Ve,lt){let Jt=A.createStringLiteral(Ve),yr=A.createImportDeclaration(void 0,void 0,Jt);return _k(yr,2),Ka(Jt,yr),Ka(yr,lt),Jt.flags&=-17,yr.flags&=-17,Jt}function Eo(Ve){if(Ve.imports)return;let lt=Cp(Ve),Jt=Pl(Ve),yr,Ur,Tn;if(lt||!Ve.isDeclarationFile&&(md(X)||Pl(Ve))){X.importHelpers&&(yr=[Kc(_b,Ve)]);let en=N8(J6(X,Ve),X);en&&(yr||(yr=[])).push(Kc(en,Ve))}for(let en of Ve.statements)zr(en,!1);(Ve.flags&4194304||lt)&&Y8(Ve,!0,!0,(en,Ci)=>{z0(en,!1),yr=Fr(yr,Ci)}),Ve.imports=yr||Ke,Ve.moduleAugmentations=Ur||Ke,Ve.ambientModuleNames=Tn||Ke;return;function zr(en,Ci){if($M(en)){let ps=d2(en);ps&&ya(ps)&&ps.text&&(!Ci||!Ul(ps.text))&&(z0(en,!1),yr=Fr(yr,ps),!Ds&&Bt===0&&!Ve.isDeclarationFile&&(Zi(ps.text,"node:")&&!X8.has(ps.text)?Ds=!0:Ds===void 0&&jne.has(ps.text)&&(Ds=!1)))}else if(el(en)&&pp(en)&&(Ci||ri(en,128)||Ve.isDeclarationFile)){en.name.parent=en;let ps=R_(en.name);if(Jt||Ci&&!Ul(ps))(Ur||(Ur=[])).push(en.name);else if(!Ci){Ve.isDeclarationFile&&(Tn||(Tn=[])).push(ps);let oi=en.body;if(oi)for(let fs of oi.statements)zr(fs,!0)}}}}function Uc(Ve){var lt;let Jt=KG(Ve),yr=Jt&&((lt=ae?.get(Jt))==null?void 0:lt.actual);return yr!==void 0?Lo(yr):void 0}function Of(Ve,lt){return Cu(uV(lt.fileName,Ve.fileName),Lo)}function Cu(Ve,lt,Jt,yr){if(xw(Ve)){let Ur=ft.getCanonicalFileName(Ve);if(!X.allowNonTsExtensions&&!or(ad(zn),zr=>uc(Ur,zr))){Jt&&(gh(Ur)?Jt(_.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Ve):Jt(_.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Ve,"'"+ad(rs).join("', '")+"'"));return}let Tn=lt(Ve);if(Jt)if(Tn)s1(yr)&&Ur===ft.getCanonicalFileName(fa(yr.file).fileName)&&Jt(_.A_file_cannot_have_a_reference_to_itself);else{let zr=zo(Ve);zr?.outputDts?Jt(_.Output_file_0_has_not_been_built_from_source_file_1,zr.outputDts,Ve):Jt(_.File_0_not_found,Ve)}return Tn}else{let Ur=X.allowNonTsExtensions&<(Ve);if(Ur)return Ur;if(Jt&&X.allowNonTsExtensions){Jt(_.File_0_not_found,Ve);return}let Tn=or(rs[0],zr=>lt(Ve+zr));return Jt&&!Tn&&Jt(_.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Ve,"'"+ad(rs).join("', '")+"'"),Tn}}function Kf(Ve,lt,Jt,yr,Ur){Cu(Ve,Tn=>Vr(Tn,lt,Jt,Ur,yr),(Tn,...zr)=>Qr(void 0,Ur,Tn,zr),Ur)}function Xp(Ve,lt){return Kf(Ve,!1,!1,void 0,lt)}function Re(Ve,lt,Jt){!s1(Jt)&&_t(ke.getFileReasons().get(lt.path),s1)?Qr(lt,Jt,_.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[lt.fileName,Ve]):Qr(lt,Jt,_.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Ve,lt.fileName])}function zt(Ve,lt,Jt,yr,Ur,Tn,zr){var en;let Ci=Z0.createRedirectedSourceFile({redirectTarget:Ve,unredirected:lt});return Ci.fileName=Jt,Ci.path=yr,Ci.resolvedPath=Ur,Ci.originalFileName=Tn,Ci.packageJsonLocations=(en=zr.packageJsonLocations)!=null&&en.length?zr.packageJsonLocations:void 0,Ci.packageJsonScope=zr.packageJsonScope,Mr.set(yr,Bt>0),Ci}function Vr(Ve,lt,Jt,yr,Ur){var Tn,zr;(Tn=mn)==null||Tn.push(mn.Phase.Program,"findSourceFile",{fileName:Ve,isDefaultLib:lt||void 0,fileIncludeKind:rB[yr.kind]});let en=ja(Ve,lt,Jt,yr,Ur);return(zr=mn)==null||zr.pop(),en}function ns(Ve,lt,Jt,yr){let Ur=kj(as(Ve,Un),lt?.getPackageJsonInfoCache(),Jt,yr),Tn=xa(yr),zr=L6(yr);return typeof Ur=="object"?{...Ur,languageVersion:Tn,setExternalModuleIndicator:zr,jsDocParsingMode:Jt.jsDocParsingMode}:{languageVersion:Tn,impliedNodeFormat:Ur,setExternalModuleIndicator:zr,jsDocParsingMode:Jt.jsDocParsingMode}}function ja(Ve,lt,Jt,yr,Ur){var Tn,zr;let en=Ot(Ve);if(at){let Bi=Oc(en);if(!Bi&&ft.realpath&&X.preserveSymlinks&&Kl(Ve)&&Ve.includes(Th)){let nc=Ot(ft.realpath(Ve));nc!==en&&(Bi=Oc(nc))}if(Bi?.source){let nc=Vr(Bi.source,lt,Jt,yr,Ur);return nc&&Ca(nc,en,Ve,void 0),nc}}let Ci=Ve;if(tt.has(en)){let Bi=tt.get(en),nc=La(Bi||void 0,yr,!0);if(Bi&&nc&&X.forceConsistentCasingInFileNames!==!1){let Zp=Bi.fileName;Ot(Zp)!==Ot(Ve)&&(Ve=((Tn=zo(Ve))==null?void 0:Tn.outputDts)||Ve);let _u=bB(Zp,Un),xd=bB(Ve,Un);_u!==xd&&Re(Ve,Bi,yr)}return Bi&&Mr.get(Bi.path)&&Bt===0?(Mr.set(Bi.path,!1),X.noResolve||(Zl(Bi,lt),Ff(Bi)),X.noLib||Yp(Bi),fr.set(Bi.path,!1),mm(Bi)):Bi&&fr.get(Bi.path)&&Bt<St&&(fr.set(Bi.path,!1),mm(Bi)),Bi||void 0}let ps;if(!at){let Bi=zo(Ve);if(Bi?.outputDts){if(Bi.resolvedRef.commandLine.options.outFile)return;Ve=Bi.outputDts,ps=Ot(Bi.outputDts)}}let oi=ns(Ve,bt,ft,X),fs=ft.getSourceFile(Ve,oi,Bi=>Qr(void 0,yr,_.Cannot_read_file_0_Colon_1,[Ve,Bi]),Rt);if(Ur){let Bi=A0(Ur),nc=js.get(Bi);if(nc){let Zp=zt(nc,fs,Ve,en,Ot(Ve),Ci,oi);return wr.add(nc.path,Ve),Ca(Zp,en,Ve,ps),La(Zp,yr,!1),oa.set(en,CF(Ur)),de.push(Zp),Zp}else fs&&(js.set(Bi,fs),oa.set(en,CF(Ur)))}if(Ca(fs,en,Ve,ps),fs){if(Mr.set(en,Bt>0),fs.fileName=Ve,fs.path=en,fs.resolvedPath=Ot(Ve),fs.originalFileName=Ci,fs.packageJsonLocations=(zr=oi.packageJsonLocations)!=null&&zr.length?oi.packageJsonLocations:void 0,fs.packageJsonScope=oi.packageJsonScope,La(fs,yr,!1),ft.useCaseSensitiveFileNames()){let Bi=Zv(en),nc=se.get(Bi);nc?Re(Ve,nc,yr):se.set(Bi,fs)}Hr=Hr||fs.hasNoDefaultLib&&!Jt,X.noResolve||(Zl(fs,lt),Ff(fs)),X.noLib||Yp(fs),mm(fs),lt?le.push(fs):de.push(fs),(ye??(ye=new Set)).add(fs.path)}return fs}function La(Ve,lt,Jt){return Ve&&(!Jt||!s1(lt)||!ye?.has(lt.file))?(ke.getFileReasons().add(Ve.path,lt),!0):!1}function Ca(Ve,lt,Jt,yr){yr?(bl(Jt,yr,Ve),bl(Jt,lt,Ve||!1)):bl(Jt,lt,Ve)}function bl(Ve,lt,Jt){tt.set(lt,Jt),Jt!==void 0?Mt.delete(lt):Mt.set(lt,Ve)}function zo(Ve){return Ee?.get(Ot(Ve))}function bc(Ve){return XG(pt,Ve)}function Oc(Ve){return et?.get(Ve)}function Xf(Ve){return at&&!!zo(Ve)}function fu(Ve){if(Z)return Z.get(Ve)||void 0}function Zl(Ve,lt){or(Ve.referencedFiles,(Jt,yr)=>{Kf(uV(Jt.fileName,Ve.fileName),lt,!1,void 0,{kind:4,file:Ve.path,index:yr})})}function Ff(Ve){let lt=Ve.typeReferenceDirectives;if(!lt.length)return;let Jt=xe?.get(Ve.path)||Nt(lt,Ve),yr=EI();(Ie??(Ie=new Map)).set(Ve.path,yr);for(let Ur=0;Ur<lt.length;Ur++){let Tn=Ve.typeReferenceDirectives[Ur],zr=Jt[Ur],en=Tn.fileName,Ci=Jb(Tn,Ve);yr.set(en,Ci,zr),U_(en,Ci,zr,{kind:5,file:Ve.path,index:Ur})}}function hp(Ve){var lt;return((lt=Jr(Ve))==null?void 0:lt.commandLine.options)||X}function U_(Ve,lt,Jt,yr){var Ur,Tn;(Ur=mn)==null||Ur.push(mn.Phase.Program,"processTypeReferenceDirective",{directive:Ve,hasResolved:!!Jt.resolvedTypeReferenceDirective,refKind:yr.kind,refPath:s1(yr)?yr.file:void 0}),Rg(Ve,lt,Jt,yr),(Tn=mn)==null||Tn.pop()}function Rg(Ve,lt,Jt,yr){ut(Jt);let{resolvedTypeReferenceDirective:Ur}=Jt;Ur?(Ur.isExternalLibraryImport&&Bt++,Kf(Ur.resolvedFileName,!1,!1,Ur.packageId,yr),Ur.isExternalLibraryImport&&Bt--):Qr(void 0,yr,_.Cannot_find_type_definition_file_for_0,[Ve])}function xh(Ve){let lt=ae?.get(Ve);if(lt)return lt.actual;let Jt=Ch(Ve);return(ae??(ae=new Map)).set(Ve,Jt),Jt.actual}function Ch(Ve){var lt,Jt,yr,Ur,Tn;let zr=Ue?.get(Ve);if(zr)return zr;if(X.libReplacement===!1){let fs={resolution:{resolvedModule:void 0},actual:Jn(us,Ve)};return(Ue??(Ue=new Map)).set(Ve,fs),fs}if(Ye!==0&&ce&&!ei(Ve)){let fs=(lt=ce.resolvedLibReferences)==null?void 0:lt.get(Ve);if(fs){if(fs.resolution&&Mb(X,ft)){let Bi=yV(Ve),nc=Tj(X,Un,Ve);ls(ft,fs.resolution.resolvedModule?fs.resolution.resolvedModule.packageId?_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,Bi,as(nc,Un),(Jt=fs.resolution.resolvedModule)==null?void 0:Jt.resolvedFileName,((yr=fs.resolution.resolvedModule)==null?void 0:yr.packageId)&&A0(fs.resolution.resolvedModule.packageId))}return(Ue??(Ue=new Map)).set(Ve,fs),fs}}let en=yV(Ve),Ci=Tj(X,Un,Ve);(Ur=mn)==null||Ur.push(mn.Phase.Program,"resolveLibrary",{resolveFrom:Ci}),dc("beforeResolveLibrary");let ps=Mi(en,Ci,X,Ve);dc("afterResolveLibrary"),P_("ResolveLibrary","beforeResolveLibrary","afterResolveLibrary"),(Tn=mn)==null||Tn.pop();let oi={resolution:ps,actual:ps.resolvedModule?ps.resolvedModule.resolvedFileName:Jn(us,Ve)};return(Ue??(Ue=new Map)).set(Ve,oi),oi}function Yp(Ve){or(Ve.libReferenceDirectives,(lt,Jt)=>{let yr=KG(lt);yr?ua(xh(yr),!0,!0,{kind:7,file:Ve.path,index:Jt}):ke.addFileProcessingDiagnostic({kind:0,reason:{kind:7,file:Ve.path,index:Jt}})})}function Ll(Ve){return ft.getCanonicalFileName(Ve)}function mm(Ve){if(Eo(Ve),Ve.imports.length||Ve.moduleAugmentations.length){let lt=JTe(Ve),Jt=Ne?.get(Ve.path)||ur(lt,Ve);w.assert(Jt.length===lt.length);let yr=hp(Ve),Ur=EI();(te??(te=new Map)).set(Ve.path,Ur);for(let Tn=0;Tn<lt.length;Tn++){let zr=Jt[Tn].resolvedModule,en=lt[Tn].text,Ci=vj(Ve,lt[Tn],yr);if(Ur.set(en,Ci,Jt[Tn]),Qt(Ve,en,Jt[Tn],Ci),!zr)continue;let ps=zr.isExternalLibraryImport,oi=!kA(zr.extension)&&!zo(zr.resolvedFileName),fs=ps&&oi&&(!zr.originalPath||Ob(zr.resolvedFileName)),Bi=zr.resolvedFileName;ps&&Bt++;let nc=fs&&Bt>St,Zp=Bi&&!TV(yr,zr,Ve)&&!yr.noResolve&&Tn<Ve.imports.length&&!nc&&!(oi&&!xb(yr))&&(dn(Ve.imports[Tn])||!(Ve.imports[Tn].flags&16777216));nc?fr.set(Ve.path,!0):Zp&&Vr(Bi,!1,!1,{kind:3,file:Ve.path,index:Tn},zr.packageId),ps&&Bt--}}}function m_(Ve,lt){let Jt=!0,yr=ft.getCanonicalFileName(as(lt,Un));for(let Ur of Ve)Ur.isDeclarationFile||ft.getCanonicalFileName(as(Ur.fileName,Un)).indexOf(yr)!==0&&(ke.addLazyConfigDiagnostic(Ur,_.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,Ur.fileName,lt),Jt=!1);return Jt}function og(Ve){Z||(Z=new Map);let lt=sC(Ve),Jt=Ot(lt),yr=Z.get(Jt);if(yr!==void 0)return yr||void 0;let Ur,Tn;if(ft.getParsedCommandLine){if(Ur=ft.getParsedCommandLine(lt),!Ur){Ca(void 0,Jt,lt,void 0),Z.set(Jt,!1);return}Tn=w.checkDefined(Ur.options.configFile),w.assert(!Tn.path||Tn.path===Jt),Ca(Tn,Jt,lt,void 0)}else{let en=as(ti(lt),Un);if(Tn=ft.getSourceFile(lt,100),Ca(Tn,Jt,lt,void 0),Tn===void 0){Z.set(Jt,!1);return}Ur=A4(Tn,qt,en,void 0,lt)}Tn.fileName=lt,Tn.path=Jt,Tn.resolvedPath=Jt,Tn.originalFileName=lt;let zr={commandLine:Ur,sourceFile:Tn};if(Z.set(Jt,zr),X.configFile!==Tn){Ee??(Ee=new Map),et??(et=new Map);let en;Ur.options.outFile&&(en=tv(Ur.options.outFile,".d.ts"),et?.set(Ot(en),{resolvedRef:zr}));let Ci=up(()=>Mk(zr.commandLine,!ft.useCaseSensitiveFileNames()));Ur.fileNames.forEach(ps=>{let oi=Ot(ps),fs;!Kl(ps)&&!uc(ps,".json")&&(Ur.options.outFile?fs=en:(fs=gE(ps,zr.commandLine,!ft.useCaseSensitiveFileNames(),Ci),et.set(Ot(fs),{resolvedRef:zr,source:ps}))),Ee.set(oi,{resolvedRef:zr,outputDts:fs})})}return Ur.projectReferences&&(zr.references=Ur.projectReferences.map(og)),zr}function ne(){X.strictPropertyInitialization&&!Ru(X,"strictNullChecks")&&Fe(_.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),X.exactOptionalPropertyTypes&&!Ru(X,"strictNullChecks")&&Fe(_.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(X.isolatedModules||X.verbatimModuleSyntax)&&X.outFile&&Fe(_.Option_0_cannot_be_specified_with_option_1,"outFile",X.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),X.isolatedDeclarations&&(xb(X)&&Fe(_.Option_0_cannot_be_specified_with_option_1,"allowJs","isolatedDeclarations"),lf(X)||Fe(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"isolatedDeclarations","declaration","composite")),X.inlineSourceMap&&(X.sourceMap&&Fe(_.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),X.mapRoot&&Fe(_.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),X.composite&&(X.declaration===!1&&Fe(_.Composite_projects_may_not_disable_declaration_emit,"declaration"),X.incremental===!1&&Fe(_.Composite_projects_may_not_disable_incremental_compilation,"declaration"));let Ve=X.outFile;if(!X.tsBuildInfoFile&&X.incremental&&!Ve&&!X.configFilePath&&ke.addConfigDiagnostic(fc(_.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),er(),$n(),X.composite){let zr=new Set($.map(Ot));for(let en of ve)wS(en,Gt)&&!zr.has(en.path)&&ke.addLazyConfigDiagnostic(en,_.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,en.fileName,X.configFilePath||"")}if(X.paths){for(let zr in X.paths)if(_o(X.paths,zr))if(CG(zr)||Wi(!0,zr,_.Pattern_0_can_have_at_most_one_Asterisk_character,zr),gs(X.paths[zr])){let en=X.paths[zr].length;en===0&&Wi(!1,zr,_.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,zr);for(let Ci=0;Ci<en;Ci++){let ps=X.paths[zr][Ci],oi=typeof ps;oi==="string"?(CG(ps)||fi(zr,Ci,_.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,ps,zr),!X.baseUrl&&!$f(ps)&&!TP(ps)&&fi(zr,Ci,_.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):fi(zr,Ci,_.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,ps,zr,oi)}}else Wi(!1,zr,_.Substitutions_for_pattern_0_should_be_an_array,zr)}!X.sourceMap&&!X.inlineSourceMap&&(X.inlineSources&&Fe(_.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),X.sourceRoot&&Fe(_.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),X.mapRoot&&!(X.sourceMap||X.declarationMap)&&Fe(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),X.declarationDir&&(lf(X)||Fe(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),Ve&&Fe(_.Option_0_cannot_be_specified_with_option_1,"declarationDir","outFile")),X.declarationMap&&!lf(X)&&Fe(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),X.lib&&X.noLib&&Fe(_.Option_0_cannot_be_specified_with_option_1,"lib","noLib");let lt=xa(X),Jt=Bn(ve,zr=>Pl(zr)&&!zr.isDeclarationFile);if(X.isolatedModules||X.verbatimModuleSyntax)X.module===0&<<2&&X.isolatedModules&&Fe(_.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),X.preserveConstEnums===!1&&Fe(_.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,X.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Jt&<<2&&X.module===0){let zr=ZT(Jt,typeof Jt.externalModuleIndicator=="boolean"?Jt:Jt.externalModuleIndicator);ke.addConfigDiagnostic(wl(Jt,zr.start,zr.length,_.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Ve&&!X.emitDeclarationOnly){if(X.module&&!(X.module===2||X.module===4))Fe(_.Only_amd_and_system_modules_are_supported_alongside_0,"outFile","module");else if(X.module===void 0&&Jt){let zr=ZT(Jt,typeof Jt.externalModuleIndicator=="boolean"?Jt:Jt.externalModuleIndicator);ke.addConfigDiagnostic(wl(Jt,zr.start,zr.length,_.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,"outFile"))}}if(ES(X)&&(Ku(X)===1?Fe(_.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):D8(X)||Fe(_.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),X.outDir||X.rootDir||X.sourceRoot||X.mapRoot||lf(X)&&X.declarationDir){let zr=Ht();X.outDir&&zr===""&&ve.some(en=>em(en.fileName)>1)&&Fe(_.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}X.checkJs&&!xb(X)&&Fe(_.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"),X.emitDeclarationOnly&&(lf(X)||Fe(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite")),X.emitDecoratorMetadata&&!X.experimentalDecorators&&Fe(_.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),X.jsxFactory?(X.reactNamespace&&Fe(_.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(X.jsx===4||X.jsx===5)&&Fe(_.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",C4.get(""+X.jsx)),Y2(X.jsxFactory,lt)||Et("jsxFactory",_.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,X.jsxFactory)):X.reactNamespace&&!af(X.reactNamespace,lt)&&Et("reactNamespace",_.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,X.reactNamespace),X.jsxFragmentFactory&&(X.jsxFactory||Fe(_.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(X.jsx===4||X.jsx===5)&&Fe(_.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",C4.get(""+X.jsx)),Y2(X.jsxFragmentFactory,lt)||Et("jsxFragmentFactory",_.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,X.jsxFragmentFactory)),X.reactNamespace&&(X.jsx===4||X.jsx===5)&&Fe(_.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",C4.get(""+X.jsx)),X.jsxImportSource&&X.jsx===2&&Fe(_.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",C4.get(""+X.jsx));let yr=_p(X);X.verbatimModuleSyntax&&(yr===2||yr===3||yr===4)&&Fe(_.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),X.allowImportingTsExtensions&&!(X.noEmit||X.emitDeclarationOnly||X.rewriteRelativeImportExtensions)&&Et("allowImportingTsExtensions",_.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);let Ur=Ku(X);if(X.resolvePackageJsonExports&&!sI(Ur)&&Fe(_.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),X.resolvePackageJsonImports&&!sI(Ur)&&Fe(_.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),X.customConditions&&!sI(Ur)&&Fe(_.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),Ur===100&&!G6(yr)&&yr!==200&&Et("moduleResolution",_.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),kw[yr]&&100<=yr&&yr<=199&&!(3<=Ur&&Ur<=99)){let zr=kw[yr],en=Tw[zr]?zr:"Node16";Et("moduleResolution",_.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,en,zr)}else if(Tw[Ur]&&3<=Ur&&Ur<=99&&!(100<=yr&&yr<=199)){let zr=Tw[Ur];Et("module",_.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,zr,zr)}if(!X.noEmit&&!X.suppressOutputPathCheck){let zr=rr(),en=new Set;YU(zr,Ci=>{X.emitDeclarationOnly||Tn(Ci.jsFilePath,en),Tn(Ci.declarationFilePath,en)})}function Tn(zr,en){if(zr){let Ci=Ot(zr);if(tt.has(Ci)){let oi;X.configFilePath||(oi=Ns(void 0,_.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),oi=Ns(oi,_.Cannot_write_file_0_because_it_would_overwrite_input_file,zr),_a(zr,C8(oi))}let ps=ft.useCaseSensitiveFileNames()?Ci:Zv(Ci);en.has(ps)?_a(zr,fc(_.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,zr)):en.add(ps)}}}function ot(){let Ve=X.ignoreDeprecations;if(Ve){if(Ve==="5.0")return new Zd(Ve);oe()}return Zd.zero}function Kt(Ve,lt,Jt,yr){let Ur=new Zd(Ve),Tn=new Zd(lt),zr=new Zd(re||Yi),en=ot(),Ci=Tn.compareTo(zr)!==1,ps=!Ci&&en.compareTo(Ur)===-1;(Ci||ps)&&yr((oi,fs,Bi)=>{Ci?fs===void 0?Jt(oi,fs,Bi,_.Option_0_has_been_removed_Please_remove_it_from_your_configuration,oi):Jt(oi,fs,Bi,_.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,oi,fs):fs===void 0?Jt(oi,fs,Bi,_.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,oi,lt,Ve):Jt(oi,fs,Bi,_.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,oi,fs,lt,Ve)})}function er(){function Ve(lt,Jt,yr,Ur,...Tn){if(yr){let zr=Ns(void 0,_.Use_0_instead,yr),en=Ns(zr,Ur,...Tn);is(!Jt,lt,void 0,en)}else is(!Jt,lt,void 0,Ur,...Tn)}Kt("5.0","5.5",Ve,lt=>{X.target===0&<("target","ES3"),X.noImplicitUseStrict&<("noImplicitUseStrict"),X.keyofStringsOnly&<("keyofStringsOnly"),X.suppressExcessPropertyErrors&<("suppressExcessPropertyErrors"),X.suppressImplicitAnyIndexErrors&<("suppressImplicitAnyIndexErrors"),X.noStrictGenericChecks&<("noStrictGenericChecks"),X.charset&<("charset"),X.out&<("out",void 0,"outFile"),X.importsNotUsedAsValues&<("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),X.preserveValueImports&<("preserveValueImports",void 0,"verbatimModuleSyntax")})}function Ar(Ve,lt,Jt){function yr(Ur,Tn,zr,en,...Ci){Er(lt,Jt,en,...Ci)}Kt("5.0","5.5",yr,Ur=>{Ve.prepend&&Ur("prepend")})}function Qr(Ve,lt,Jt,yr){ke.addFileProcessingDiagnostic({kind:1,file:Ve&&Ve.path,fileProcessingReason:lt,diagnostic:Jt,args:yr})}function $n(){let Ve=X.suppressOutputPathCheck?void 0:i1(X);RA(_e,pt,(lt,Jt,yr)=>{let Ur=(Jt?Jt.commandLine.projectReferences:_e)[yr],Tn=Jt&&Jt.sourceFile;if(Ar(Ur,Tn,yr),!lt){Er(Tn,yr,_.File_0_not_found,Ur.path);return}let zr=lt.commandLine.options;(!zr.composite||zr.noEmit)&&(Jt?Jt.commandLine.fileNames:$).length&&(zr.composite||Er(Tn,yr,_.Referenced_project_0_must_have_setting_composite_Colon_true,Ur.path),zr.noEmit&&Er(Tn,yr,_.Referenced_project_0_may_not_disable_emit,Ur.path)),!Jt&&Ve&&Ve===i1(zr)&&(Er(Tn,yr,_.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Ve,Ur.path),Sn.set(Ot(Ve),!0))})}function fi(Ve,lt,Jt,...yr){let Ur=!0;L(Tn=>{Sa(Tn.initializer)&&Gw(Tn.initializer,Ve,zr=>{let en=zr.initializer;Tu(en)&&en.elements.length>lt&&(ke.addConfigDiagnostic(N_(X.configFile,en.elements[lt],Jt,...yr)),Ur=!1)})}),Ur&&zs(Jt,...yr)}function Wi(Ve,lt,Jt,...yr){let Ur=!0;L(Tn=>{Sa(Tn.initializer)&&rc(Tn.initializer,Ve,lt,void 0,Jt,...yr)&&(Ur=!1)}),Ur&&zs(Jt,...yr)}function L(Ve){return ZG(os(),"paths",Ve)}function Fe(Ve,lt,Jt,yr){is(!0,lt,Jt,Ve,lt,Jt,yr)}function Et(Ve,lt,...Jt){is(!1,Ve,void 0,lt,...Jt)}function Er(Ve,lt,Jt,...yr){let Ur=e6(Ve||X.configFile,"references",Tn=>Tu(Tn.initializer)?Tn.initializer:void 0);Ur&&Ur.elements.length>lt?ke.addConfigDiagnostic(N_(Ve||X.configFile,Ur.elements[lt],Jt,...yr)):ke.addConfigDiagnostic(fc(Jt,...yr))}function is(Ve,lt,Jt,yr,...Ur){let Tn=os();(!Tn||!rc(Tn,Ve,lt,Jt,yr,...Ur))&&zs(yr,...Ur)}function zs(Ve,...lt){let Jt=Ps();Jt?"messageText"in Ve?ke.addConfigDiagnostic(uh(X.configFile,Jt.name,Ve)):ke.addConfigDiagnostic(N_(X.configFile,Jt.name,Ve,...lt)):"messageText"in Ve?ke.addConfigDiagnostic(C8(Ve)):ke.addConfigDiagnostic(fc(Ve,...lt))}function os(){if(_i===void 0){let Ve=Ps();_i=Ve&&Hn(Ve.initializer,Sa)||!1}return _i||void 0}function Ps(){return qe===void 0&&(qe=Gw($P(X.configFile),"compilerOptions",Do)||!1),qe||void 0}function rc(Ve,lt,Jt,yr,Ur,...Tn){let zr=!1;return Gw(Ve,Jt,en=>{"messageText"in Ur?ke.addConfigDiagnostic(uh(X.configFile,lt?en.name:en.initializer,Ur)):ke.addConfigDiagnostic(N_(X.configFile,lt?en.name:en.initializer,Ur,...Tn)),zr=!0},yr),zr}function _a(Ve,lt){Sn.set(Ot(Ve),!0),ke.addConfigDiagnostic(lt)}function eu(Ve){if(X.noEmit)return!1;let lt=Ot(Ve);if(fa(lt))return!1;let Jt=X.outFile;if(Jt)return jf(lt,Jt)||jf(lt,dp(Jt)+".d.ts");if(X.declarationDir&&A_(X.declarationDir,lt,Un,!ft.useCaseSensitiveFileNames()))return!0;if(X.outDir)return A_(X.outDir,lt,Un,!ft.useCaseSensitiveFileNames());if(Bc(lt,aI)||Kl(lt)){let yr=dp(lt);return!!fa(yr+".ts")||!!fa(yr+".tsx")}return!1}function jf(Ve,lt){return Hh(Ve,lt,Un,!ft.useCaseSensitiveFileNames())===0}function g_(){return ft.getSymlinkCache?ft.getSymlinkCache():(H||(H=wG(Un,Ll)),ve&&!H.hasProcessedResolutions()&&H.setSymlinksFromResolutions(j,je,nt),H)}function V_(Ve,lt){return vj(Ve,lt,hp(Ve))}function gy(Ve,lt){return LTe(Ve,lt,hp(Ve))}function gv(Ve,lt){return V_(Ve,tR(Ve,lt))}function Mp(Ve){return xj(Ve,hp(Ve))}function Og(Ve){return Rk(Ve,hp(Ve))}function gm(Ve){return SE(Ve,hp(Ve))}function Td(Ve){return GTe(Ve,hp(Ve))}function Jb(Ve,lt){return Ve.resolutionMode||Mp(lt)}}function GTe(e,t){let n=_p(t);return 100<=n&&n<=199||n===200?!1:SE(e,t)<5}function SE(e,t){return Rk(e,t)??_p(t)}function Rk(e,t){var n,i;let s=_p(t);if(100<=s&&s<=199)return e.impliedNodeFormat;if(e.impliedNodeFormat===1&&(((n=e.packageJsonScope)==null?void 0:n.contents.packageJsonContent.type)==="commonjs"||Bc(e.fileName,[".cjs",".cts"])))return 1;if(e.impliedNodeFormat===99&&(((i=e.packageJsonScope)==null?void 0:i.contents.packageJsonContent.type)==="module"||Bc(e.fileName,[".mjs",".mts"])))return 99}function xj(e,t){return kG(t)?Rk(e,t):void 0}function TUe(e){let t,n=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,s=e.compilerHost.getDirectories,o=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:no,fileExists:u};e.compilerHost.fileExists=u;let c;return i&&(c=e.compilerHost.directoryExists=T=>i.call(e.compilerHost,T)?(h(T),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(x=>{let I=x.commandLine.options.outFile;if(I)t.add(ti(e.toPath(I)));else{let P=x.commandLine.options.declarationDir||x.commandLine.options.outDir;P&&t.add(e.toPath(P))}})),S(T,!1)):!1),s&&(e.compilerHost.getDirectories=T=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,T)?s.call(e.compilerHost,T):[]),o&&(e.compilerHost.realpath=T=>{var x;return((x=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:x.get(e.toPath(T)))||o.call(e.compilerHost,T)}),{onProgramCreateComplete:p,fileExists:u,directoryExists:c};function p(){e.compilerHost.fileExists=n,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=s}function u(T){return n.call(e.compilerHost,T)?!0:!e.getResolvedProjectReferences()||!Kl(T)?!1:S(T,!0)}function g(T){let x=e.getRedirectFromOutput(e.toPath(T));return x!==void 0?Is(x.source)?n.call(e.compilerHost,x.source):!0:void 0}function d(T){let x=e.toPath(T),I=`${x}${Ro}`;return ch(t,P=>x===P||Zi(P,I)||Zi(x,`${P}/`))}function h(T){var x;if(!e.getResolvedProjectReferences()||PA(T)||!o||!T.includes(Th))return;let I=e.getSymlinkCache(),P=Ml(e.toPath(T));if((x=I.getSymlinkedDirectories())!=null&&x.has(P))return;let E=ra(o.call(e.compilerHost,T)),F;if(E===T||(F=Ml(e.toPath(E)))===P){I.setSymlinkedDirectory(P,!1);return}I.setSymlinkedDirectory(T,{real:Ml(E),realPath:F})}function S(T,x){var I;let P=x?g:d,E=P(T);if(E!==void 0)return E;let F=e.getSymlinkCache(),O=F.getSymlinkedDirectories();if(!O)return!1;let W=e.toPath(T);return W.includes(Th)?x&&((I=F.getSymlinkedFiles())!=null&&I.has(W))?!0:Em(O.entries(),([z,$])=>{if(!$||!Zi(W,z))return;let X=P(W.replace(z,$.realPath));if(x&&X){let U=as(T,e.compilerHost.getCurrentDirectory());F.setSymlinkedFile(W,`${$.real}${U.replace(new RegExp(z,"i"),"")}`)}return X})||!1:!1}}var bV={diagnostics:Ke,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function SV(e,t,n,i){let s=e.getCompilerOptions();if(s.noEmit)return t?bV:e.emitBuildInfo(n,i);if(!s.noEmitOnError)return;let o=[...e.getOptionsDiagnostics(i),...e.getSyntacticDiagnostics(t,i),...e.getGlobalDiagnostics(i),...e.getSemanticDiagnostics(t,i)];if(o.length===0&&lf(e.getCompilerOptions())&&(o=e.getDeclarationDiagnostics(void 0,i)),!o.length)return;let c;if(!t){let p=e.emitBuildInfo(n,i);p.diagnostics&&(o=[...o,...p.diagnostics]),c=p.emittedFiles}return{diagnostics:o,sourceMaps:void 0,emittedFiles:c,emitSkipped:!0}}function Cj(e,t){return Mn(e,n=>!n.skippedOn||!t[n.skippedOn])}function wj(e,t=e){return{fileExists:n=>t.fileExists(n),readDirectory(n,i,s,o,c){return w.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(n,i,s,o,c)},readFile:n=>t.readFile(n),directoryExists:Js(t,t.directoryExists),getDirectories:Js(t,t.getDirectories),realpath:Js(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||lS,trace:e.trace?n=>e.trace(n):void 0}}function sC(e){return XV(e.path)}function TV(e,{extension:t},{isDeclarationFile:n}){switch(t){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return i();case".jsx":return i()||s();case".js":case".mjs":case".cjs":return s();case".json":return o();default:return c()}function i(){return e.jsx?void 0:_.Module_0_was_resolved_to_1_but_jsx_is_not_set}function s(){return xb(e)||!Ru(e,"noImplicitAny")?void 0:_.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function o(){return ES(e)?void 0:_.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function c(){return n||e.allowArbitraryExtensions?void 0:_.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}}function JTe({imports:e,moduleAugmentations:t}){let n=e.map(i=>i);for(let i of t)i.kind===11&&n.push(i);return n}function tR({imports:e,moduleAugmentations:t},n){if(n<e.length)return e[n];let i=e.length;for(let s of t)if(s.kind===11){if(n===i)return s;i++}w.fail("should never ask for module name at index higher than possible module name")}function foe(e){let t,n=od(),i,s,o,c,p,u;return{addConfigDiagnostic(T){w.assert(t===void 0,"Cannot modify program diagnostic state after requesting combined diagnostics"),(o??(o=lA())).add(T)},addLazyConfigDiagnostic(T,x,...I){w.assert(t===void 0,"Cannot modify program diagnostic state after requesting combined diagnostics"),(c??(c=[])).push({file:T,diagnostic:x,args:I})},addFileProcessingDiagnostic(T){w.assert(t===void 0,"Cannot modify program diagnostic state after requesting combined diagnostics"),(i??(i=[])).push(T)},setCommonSourceDirectory(T){s=T},reuseStateFromOldProgram(T,x){n=T.getFileReasons(),i=T.getFileProcessingDiagnostics(),x&&(s=T.getCommonSourceDirectory(),o=T.getConfigDiagnostics(),c=T.getLazyConfigDiagnostics())},getFileProcessingDiagnostics(){return i},getFileReasons(){return n},getCommonSourceDirectory(){return s},getConfigDiagnostics(){return o},getLazyConfigDiagnostics(){return c},getCombinedDiagnostics(T){return t||(t=lA(),o?.getDiagnostics().forEach(x=>t.add(x)),i?.forEach(x=>{switch(x.kind){case 1:return t.add(d(T,x.file&&T.getSourceFileByPath(x.file),x.fileProcessingReason,x.diagnostic,x.args||Ke));case 0:return t.add(g(T,x));case 2:return x.diagnostics.forEach(I=>t.add(I));default:w.assertNever(x)}}),c?.forEach(({file:x,diagnostic:I,args:P})=>t.add(d(T,x,void 0,I,P))),p=void 0,u=void 0,t)}};function g(T,{reason:x}){let{file:I,pos:P,end:E}=bE(T,x),F=I.libReferenceDirectives[x.index],O=QG(F),W=Sw(dP(O,"lib."),".d.ts"),z=pS(W,A7,Do);return wl(I,w.checkDefined(P),w.checkDefined(E)-P,z?_.Cannot_find_lib_definition_for_0_Did_you_mean_1:_.Cannot_find_lib_definition_for_0,O,z)}function d(T,x,I,P,E){let F,O,W,z,$,X,U=x&&n.get(x.path),_e=s1(I)?I:void 0,re=x&&p?.get(x.path);re?(re.fileIncludeReasonDetails?(F=new Set(U),U?.forEach(le)):U?.forEach(oe),$=re.redirectInfo):(U?.forEach(oe),$=x&&WV(x,T.getCompilerOptionsForFile(x))),I&&oe(I);let V=F?.size!==U?.length;_e&&F?.size===1&&(F=void 0),F&&re&&(re.details&&!V?X=Ns(re.details,P,...E??Ke):re.fileIncludeReasonDetails&&(V?de()?O=Fr(re.fileIncludeReasonDetails.next.slice(0,U.length),O[0]):O=[...re.fileIncludeReasonDetails.next,O[0]]:de()?O=re.fileIncludeReasonDetails.next.slice(0,U.length):z=re.fileIncludeReasonDetails)),X||(z||(z=F&&Ns(O,_.The_file_is_in_the_program_because_Colon)),X=Ns($?z?[z,...$]:$:z,P,...E||Ke)),x&&(re?(!re.fileIncludeReasonDetails||!V&&z)&&(re.fileIncludeReasonDetails=z):(p??(p=new Map)).set(x.path,re={fileIncludeReasonDetails:z,redirectInfo:$}),!re.details&&!V&&(re.details=X.next));let ce=_e&&bE(T,_e);return ce&&WI(ce)?NF(ce.file,ce.pos,ce.end-ce.pos,X,W):C8(X,W);function oe(ve){F?.has(ve)||((F??(F=new Set)).add(ve),(O??(O=[])).push(GV(T,ve)),le(ve))}function le(ve){!_e&&s1(ve)?_e=ve:_e!==ve&&(W=Fr(W,h(T,ve)))}function de(){var ve;return((ve=re.fileIncludeReasonDetails.next)==null?void 0:ve.length)!==U?.length}}function h(T,x){let I=u?.get(x);return I===void 0&&(u??(u=new Map)).set(x,I=S(T,x)??!1),I||void 0}function S(T,x){if(s1(x)){let W=bE(T,x),z;switch(x.kind){case 3:z=_.File_is_included_via_import_here;break;case 4:z=_.File_is_included_via_reference_here;break;case 5:z=_.File_is_included_via_type_library_reference_here;break;case 7:z=_.File_is_included_via_library_reference_here;break;default:w.assertNever(x)}return WI(W)?wl(W.file,W.pos,W.end-W.pos,z):void 0}let I=T.getCurrentDirectory(),P=T.getRootFileNames(),E=T.getCompilerOptions();if(!E.configFile)return;let F,O;switch(x.kind){case 0:if(!E.configFile.configFileSpecs)return;let W=as(P[x.index],I),z=BV(T,W);if(z){F=LF(E.configFile,"files",z),O=_.File_is_matched_by_files_list_specified_here;break}let $=zV(T,W);if(!$||!Is($))return;F=LF(E.configFile,"include",$),O=_.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:let X=T.getResolvedProjectReferences(),U=T.getProjectReferences(),_e=w.checkDefined(X?.[x.index]),re=RA(U,X,(de,ve,H)=>de===_e?{sourceFile:ve?.sourceFile||E.configFile,index:H}:void 0);if(!re)return;let{sourceFile:V,index:ce}=re,oe=e6(V,"references",de=>Tu(de.initializer)?de.initializer:void 0);return oe&&oe.elements.length>ce?N_(V,oe.elements[ce],x.kind===2?_.File_is_output_from_referenced_project_specified_here:_.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!E.types)return;F=YG(e(),"types",x.typeReference),O=_.File_is_entry_point_of_type_library_specified_here;break;case 6:if(x.index!==void 0){F=YG(e(),"lib",E.lib[x.index]),O=_.File_is_library_specified_here;break}let le=P8(xa(E));F=le?Wne(e(),"target",le):void 0,O=_.File_is_default_library_for_target_specified_here;break;default:w.assertNever(x)}return F&&N_(E.configFile,F,O)}}function _oe(e,t,n,i,s,o){let c=[],{emitSkipped:p,diagnostics:u}=e.emit(t,g,i,n,s,o);return{outputFiles:c,emitSkipped:p,diagnostics:u};function g(d,h,S){c.push({name:d,writeByteOrderMark:S,text:h})}}var doe=(e=>(e[e.ComputedDts=0]="ComputedDts",e[e.StoredSignatureAtEmit=1]="StoredSignatureAtEmit",e[e.UsedVersion=2]="UsedVersion",e))(doe||{}),fm;(e=>{function t(){function re(V,ce,oe){let le={getKeys:de=>ce.get(de),getValues:de=>V.get(de),keys:()=>V.keys(),size:()=>V.size,deleteKey:de=>{(oe||(oe=new Set)).add(de);let ve=V.get(de);return ve?(ve.forEach(H=>i(ce,H,de)),V.delete(de),!0):!1},set:(de,ve)=>{oe?.delete(de);let H=V.get(de);return V.set(de,ve),H?.forEach(Se=>{ve.has(Se)||i(ce,Se,de)}),ve.forEach(Se=>{H?.has(Se)||n(ce,Se,de)}),le}};return le}return re(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function n(re,V,ce){let oe=re.get(V);oe||(oe=new Set,re.set(V,oe)),oe.add(ce)}function i(re,V,ce){let oe=re.get(V);return oe?.delete(ce)?(oe.size||re.delete(V),!0):!1}function s(re){return Ji(re.declarations,V=>{var ce;return(ce=Nr(V))==null?void 0:ce.resolvedPath})}function o(re,V){let ce=re.getSymbolAtLocation(V);return ce&&s(ce)}function c(re,V,ce,oe){var le;return So(((le=re.getRedirectFromSourceFile(V))==null?void 0:le.outputDts)||V,ce,oe)}function p(re,V,ce){let oe;if(V.imports&&V.imports.length>0){let H=re.getTypeChecker();for(let Se of V.imports){let Je=o(H,Se);Je?.forEach(ve)}}let le=ti(V.resolvedPath);if(V.referencedFiles&&V.referencedFiles.length>0)for(let H of V.referencedFiles){let Se=c(re,H.fileName,le,ce);ve(Se)}if(re.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:H})=>{if(!H)return;let Se=H.resolvedFileName,Je=c(re,Se,le,ce);ve(Je)},V),V.moduleAugmentations.length){let H=re.getTypeChecker();for(let Se of V.moduleAugmentations){if(!ya(Se))continue;let Je=H.getSymbolAtLocation(Se);Je&&de(Je)}}for(let H of re.getTypeChecker().getAmbientModules())H.declarations&&H.declarations.length>1&&de(H);return oe;function de(H){if(H.declarations)for(let Se of H.declarations){let Je=Nr(Se);Je&&Je!==V&&ve(Je.resolvedPath)}}function ve(H){(oe||(oe=new Set)).add(H)}}function u(re,V){return V&&!V.referencedMap==!re}e.canReuseOldState=u;function g(re){return re.module!==0&&!re.outFile?t():void 0}e.createReferencedMap=g;function d(re,V,ce){var oe,le;let de=new Map,ve=re.getCompilerOptions(),H=g(ve),Se=u(H,V);re.getTypeChecker();for(let Je of re.getSourceFiles()){let ye=w.checkDefined(Je.version,"Program intended to be used with Builder should have source files with versions set"),ee=Se?(oe=V.oldSignatures)==null?void 0:oe.get(Je.resolvedPath):void 0,ge=ee===void 0?Se?(le=V.fileInfos.get(Je.resolvedPath))==null?void 0:le.signature:void 0:ee||void 0;if(H){let ke=p(re,Je,re.getCanonicalFileName);ke&&H.set(Je.resolvedPath,ke)}de.set(Je.resolvedPath,{version:ye,signature:ge,affectsGlobalScope:ve.outFile?void 0:$(Je)||void 0,impliedFormat:Je.impliedNodeFormat})}return{fileInfos:de,referencedMap:H,useFileVersionAsSignature:!ce&&!Se}}e.create=d;function h(re){re.allFilesExcludingDefaultLibraryFile=void 0,re.allFileNames=void 0}e.releaseCache=h;function S(re,V,ce,oe,le){var de;let ve=T(re,V,ce,oe,le);return(de=re.oldSignatures)==null||de.clear(),ve}e.getFilesAffectedBy=S;function T(re,V,ce,oe,le){let de=V.getSourceFileByPath(ce);return de?P(re,V,de,oe,le)?(re.referencedMap?_e:U)(re,V,de,oe,le):[de]:Ke}e.getFilesAffectedByWithOldState=T;function x(re,V,ce){re.fileInfos.get(ce).signature=V,(re.hasCalledUpdateShapeSignature||(re.hasCalledUpdateShapeSignature=new Set)).add(ce)}e.updateSignatureOfFile=x;function I(re,V,ce,oe,le){re.emit(V,(de,ve,H,Se,Je,ye)=>{w.assert(Kl(de),`File extension for signature expected to be dts: Got:: ${de}`),le(CV(re,V,ve,oe,ye),Je)},ce,2,void 0,!0)}e.computeDtsSignature=I;function P(re,V,ce,oe,le,de=re.useFileVersionAsSignature){var ve;if((ve=re.hasCalledUpdateShapeSignature)!=null&&ve.has(ce.resolvedPath))return!1;let H=re.fileInfos.get(ce.resolvedPath),Se=H.signature,Je;return!ce.isDeclarationFile&&!de&&I(V,ce,oe,le,ye=>{Je=ye,le.storeSignatureInfo&&(re.signatureInfo??(re.signatureInfo=new Map)).set(ce.resolvedPath,0)}),Je===void 0&&(Je=ce.version,le.storeSignatureInfo&&(re.signatureInfo??(re.signatureInfo=new Map)).set(ce.resolvedPath,2)),(re.oldSignatures||(re.oldSignatures=new Map)).set(ce.resolvedPath,Se||!1),(re.hasCalledUpdateShapeSignature||(re.hasCalledUpdateShapeSignature=new Set)).add(ce.resolvedPath),H.signature=Je,Je!==Se}e.updateShapeSignature=P;function E(re,V,ce){if(V.getCompilerOptions().outFile||!re.referencedMap||$(ce))return F(re,V);let le=new Set,de=[ce.resolvedPath];for(;de.length;){let ve=de.pop();if(!le.has(ve)){le.add(ve);let H=re.referencedMap.getValues(ve);if(H)for(let Se of H.keys())de.push(Se)}}return ds(Hv(le.keys(),ve=>{var H;return((H=V.getSourceFileByPath(ve))==null?void 0:H.fileName)??ve}))}e.getAllDependencies=E;function F(re,V){if(!re.allFileNames){let ce=V.getSourceFiles();re.allFileNames=ce===Ke?Ke:ce.map(oe=>oe.fileName)}return re.allFileNames}function O(re,V){let ce=re.referencedMap.getKeys(V);return ce?ds(ce.keys()):[]}e.getReferencedByPaths=O;function W(re){for(let V of re.statements)if(!PF(V))return!1;return!0}function z(re){return _t(re.moduleAugmentations,V=>Cg(V.parent))}function $(re){return z(re)||!xf(re)&&!M_(re)&&!W(re)}function X(re,V,ce){if(re.allFilesExcludingDefaultLibraryFile)return re.allFilesExcludingDefaultLibraryFile;let oe;ce&&le(ce);for(let de of V.getSourceFiles())de!==ce&&le(de);return re.allFilesExcludingDefaultLibraryFile=oe||Ke,re.allFilesExcludingDefaultLibraryFile;function le(de){V.isSourceFileDefaultLibrary(de)||(oe||(oe=[])).push(de)}}e.getAllFilesExcludingDefaultLibraryFile=X;function U(re,V,ce){let oe=V.getCompilerOptions();return oe&&oe.outFile?[ce]:X(re,V,ce)}function _e(re,V,ce,oe,le){if($(ce))return X(re,V,ce);let de=V.getCompilerOptions();if(de&&(md(de)||de.outFile))return[ce];let ve=new Map;ve.set(ce.resolvedPath,ce);let H=O(re,ce.resolvedPath);for(;H.length>0;){let Se=H.pop();if(!ve.has(Se)){let Je=V.getSourceFileByPath(Se);ve.set(Se,Je),Je&&P(re,V,Je,oe,le)&&H.push(...O(re,Je.resolvedPath))}}return ds(Hv(ve.values(),Se=>Se))}})(fm||(fm={}));var moe=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.DtsErrors=8]="DtsErrors",e[e.DtsEmit=16]="DtsEmit",e[e.DtsMap=32]="DtsMap",e[e.Dts=24]="Dts",e[e.AllJs=7]="AllJs",e[e.AllDtsEmit=48]="AllDtsEmit",e[e.AllDts=56]="AllDts",e[e.All=63]="All",e))(moe||{});function BI(e){return e.program!==void 0}function kUe(e){return w.assert(BI(e)),e}function Lb(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),lf(e)&&(t=t|24),e.declarationMap&&(t=t|32),e.emitDeclarationOnly&&(t=t&56),t}function Ij(e,t){let n=t&&(Yv(t)?t:Lb(t)),i=Yv(e)?e:Lb(e);if(n===i)return 0;if(!n||!i)return i;let s=n^i,o=0;return s&7&&(o=i&7),s&8&&(o=o|i&8),s&48&&(o=o|i&48),o}function xUe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!ch(e,n=>!t.has(n))}function CUe(e,t){var n,i;let s=fm.create(e,t,!1);s.program=e;let o=e.getCompilerOptions();s.compilerOptions=o;let c=o.outFile;s.semanticDiagnosticsPerFile=new Map,c&&o.composite&&t?.outSignature&&c===t.compilerOptions.outFile&&(s.outSignature=t.outSignature&&UTe(o,t.compilerOptions,t.outSignature)),s.changedFilesSet=new Set,s.latestChangedDtsFile=o.composite?t?.latestChangedDtsFile:void 0,s.checkPending=s.compilerOptions.noCheck?!0:void 0;let p=fm.canReuseOldState(s.referencedMap,t),u=p?t.compilerOptions:void 0,g=p&&!cne(o,u),d=o.composite&&t?.emitSignatures&&!c&&!une(o,t.compilerOptions),h=!0;p?((n=t.changedFilesSet)==null||n.forEach(E=>s.changedFilesSet.add(E)),!c&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(s.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),s.seenAffectedFiles=new Set),s.programEmitPending=t.programEmitPending,c&&s.changedFilesSet.size&&(g=!1,h=!1),s.hasErrorsFromOldState=t.hasErrors):s.buildInfoEmitPending=NS(o);let S=s.referencedMap,T=p?t.referencedMap:void 0,x=g&&!o.skipLibCheck==!u.skipLibCheck,I=x&&!o.skipDefaultLibCheck==!u.skipDefaultLibCheck;if(s.fileInfos.forEach((E,F)=>{var O;let W,z;if(!p||!(W=t.fileInfos.get(F))||W.version!==E.version||W.impliedFormat!==E.impliedFormat||!xUe(z=S&&S.getValues(F),T&&T.getValues(F))||z&&ch(z,$=>!s.fileInfos.has($)&&t.fileInfos.has($)))P(F);else{let $=e.getSourceFileByPath(F),X=h?(O=t.emitDiagnosticsPerFile)==null?void 0:O.get(F):void 0;if(X&&(s.emitDiagnosticsPerFile??(s.emitDiagnosticsPerFile=new Map)).set(F,t.hasReusableDiagnostic?qTe(X,F,e):VTe(X,e)),g){if($.isDeclarationFile&&!x||$.hasNoDefaultLib&&!I)return;let U=t.semanticDiagnosticsPerFile.get(F);U&&(s.semanticDiagnosticsPerFile.set(F,t.hasReusableDiagnostic?qTe(U,F,e):VTe(U,e)),(s.semanticDiagnosticsFromOldState??(s.semanticDiagnosticsFromOldState=new Set)).add(F))}}if(d){let $=t.emitSignatures.get(F);$&&(s.emitSignatures??(s.emitSignatures=new Map)).set(F,UTe(o,t.compilerOptions,$))}}),p&&Rl(t.fileInfos,(E,F)=>s.fileInfos.has(F)?!1:E.affectsGlobalScope?!0:(s.buildInfoEmitPending=!0,!!c)))fm.getAllFilesExcludingDefaultLibraryFile(s,e,void 0).forEach(E=>P(E.resolvedPath));else if(u){let E=lne(o,u)?Lb(o):Ij(o,u);E!==0&&(c?s.changedFilesSet.size||(s.programEmitPending=s.programEmitPending?s.programEmitPending|E:E):(e.getSourceFiles().forEach(F=>{s.changedFilesSet.has(F.resolvedPath)||IV(s,F.resolvedPath,E)}),w.assert(!s.seenAffectedFiles||!s.seenAffectedFiles.size),s.seenAffectedFiles=s.seenAffectedFiles||new Set),s.buildInfoEmitPending=!0)}return p&&s.semanticDiagnosticsPerFile.size!==s.fileInfos.size&&t.checkPending!==s.checkPending&&(s.buildInfoEmitPending=!0),s;function P(E){s.changedFilesSet.add(E),c&&(g=!1,h=!1,s.semanticDiagnosticsFromOldState=void 0,s.semanticDiagnosticsPerFile.clear(),s.emitDiagnosticsPerFile=void 0),s.buildInfoEmitPending=!0,s.programEmitPending=void 0}}function UTe(e,t,n){return!!e.declarationMap==!!t.declarationMap?n:Is(n)?[n]:n[0]}function VTe(e,t){return e.length?fl(e,n=>{if(Is(n.messageText))return n;let i=goe(n.messageText,n.file,t,s=>{var o;return(o=s.repopulateInfo)==null?void 0:o.call(s)});return i===n.messageText?n:{...n,messageText:i}}):e}function goe(e,t,n,i){let s=i(e);if(s===!0)return{...rz(t),next:hoe(e.next,t,n,i)};if(s)return{...xF(t,n,s.moduleReference,s.mode,s.packageName||s.moduleReference),next:hoe(e.next,t,n,i)};let o=hoe(e.next,t,n,i);return o===e.next?e:{...e,next:o}}function hoe(e,t,n,i){return fl(e,s=>goe(s,t,n,i))}function qTe(e,t,n){if(!e.length)return Ke;let i;return e.map(o=>{let c=$Te(o,t,n,s);c.reportsUnnecessary=o.reportsUnnecessary,c.reportsDeprecated=o.reportDeprecated,c.source=o.source,c.skippedOn=o.skippedOn;let{relatedInformation:p}=o;return c.relatedInformation=p?p.length?p.map(u=>$Te(u,t,n,s)):[]:void 0,c});function s(o){return i??(i=ti(as(i1(n.getCompilerOptions()),n.getCurrentDirectory()))),So(o,i,n.getCanonicalFileName)}}function $Te(e,t,n,i){let{file:s}=e,o=s!==!1?n.getSourceFileByPath(s?i(s):t):void 0;return{...e,file:o,messageText:Is(e.messageText)?e.messageText:goe(e.messageText,o,n,c=>c.info)}}function wUe(e){fm.releaseCache(e),e.program=void 0}function yoe(e,t){w.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function HTe(e,t,n){for(var i;;){let{affectedFiles:s}=e;if(s){let p=e.seenAffectedFiles,u=e.affectedFilesIndex;for(;u<s.length;){let g=s[u];if(!p.has(g.resolvedPath))return e.affectedFilesIndex=u,IV(e,g.resolvedPath,Lb(e.compilerOptions)),PUe(e,g,t,n),g;u++}e.changedFilesSet.delete(e.currentChangedFilePath),e.currentChangedFilePath=void 0,(i=e.oldSignatures)==null||i.clear(),e.affectedFiles=void 0}let o=e.changedFilesSet.keys().next();if(o.done)return;if(e.program.getCompilerOptions().outFile)return e.program;e.affectedFiles=fm.getFilesAffectedByWithOldState(e,e.program,o.value,t,n),e.currentChangedFilePath=o.value,e.affectedFilesIndex=0,e.seenAffectedFiles||(e.seenAffectedFiles=new Set)}}function QTe(e,t,n){var i,s;if(!(!((i=e.affectedFilesPendingEmit)!=null&&i.size)&&!e.programEmitPending)&&(!t&&!n&&(e.affectedFilesPendingEmit=void 0,e.programEmitPending=void 0),(s=e.affectedFilesPendingEmit)==null||s.forEach((o,c)=>{let p=n?o&55:o&7;p?e.affectedFilesPendingEmit.set(c,p):e.affectedFilesPendingEmit.delete(c)}),e.programEmitPending)){let o=n?e.programEmitPending&55:e.programEmitPending&7;o?e.programEmitPending=o:e.programEmitPending=void 0}}function Dj(e,t,n,i){let s=Ij(e,t);return n&&(s=s&56),i&&(s=s&8),s}function kV(e){return e?8:56}function IUe(e,t,n){var i;if((i=e.affectedFilesPendingEmit)!=null&&i.size)return Rl(e.affectedFilesPendingEmit,(s,o)=>{var c;let p=e.program.getSourceFileByPath(o);if(!p||!wS(p,e.program)){e.affectedFilesPendingEmit.delete(o);return}let u=(c=e.seenEmittedFiles)==null?void 0:c.get(p.resolvedPath),g=Dj(s,u,t,n);if(g)return{affectedFile:p,emitKind:g}})}function DUe(e,t){var n;if((n=e.emitDiagnosticsPerFile)!=null&&n.size)return Rl(e.emitDiagnosticsPerFile,(i,s)=>{var o;let c=e.program.getSourceFileByPath(s);if(!c||!wS(c,e.program)){e.emitDiagnosticsPerFile.delete(s);return}let p=((o=e.seenEmittedFiles)==null?void 0:o.get(c.resolvedPath))||0;if(!(p&kV(t)))return{affectedFile:c,diagnostics:i,seenKind:p}})}function KTe(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;let t=e.program.getCompilerOptions();or(e.program.getSourceFiles(),n=>e.program.isSourceFileDefaultLibrary(n)&&!Sne(n,t,e.program)&&boe(e,n.resolvedPath))}}function PUe(e,t,n,i){if(boe(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){KTe(e),fm.updateShapeSignature(e,e.program,t,n,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||AUe(e,t,n,i)}function voe(e,t,n,i,s){if(boe(e,t),!e.changedFilesSet.has(t)){let o=e.program.getSourceFileByPath(t);o&&(fm.updateShapeSignature(e,e.program,o,i,s,!0),n?IV(e,t,Lb(e.compilerOptions)):lf(e.compilerOptions)&&IV(e,t,e.compilerOptions.declarationMap?56:24))}}function boe(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function XTe(e,t){let n=w.checkDefined(e.oldSignatures).get(t)||void 0;return w.checkDefined(e.fileInfos.get(t)).signature!==n}function Soe(e,t,n,i,s){var o;return(o=e.fileInfos.get(t))!=null&&o.affectsGlobalScope?(fm.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(c=>voe(e,c.resolvedPath,n,i,s)),KTe(e),!0):!1}function AUe(e,t,n,i){var s,o;if(!e.referencedMap||!e.changedFilesSet.has(t.resolvedPath)||!XTe(e,t.resolvedPath))return;if(md(e.compilerOptions)){let u=new Map;u.set(t.resolvedPath,!0);let g=fm.getReferencedByPaths(e,t.resolvedPath);for(;g.length>0;){let d=g.pop();if(!u.has(d)){if(u.set(d,!0),Soe(e,d,!1,n,i))return;if(voe(e,d,!1,n,i),XTe(e,d)){let h=e.program.getSourceFileByPath(d);g.push(...fm.getReferencedByPaths(e,h.resolvedPath))}}}}let c=new Set,p=!!((s=t.symbol)!=null&&s.exports)&&!!Rl(t.symbol.exports,u=>{if((u.flags&128)!==0)return!0;let g=vu(u,e.program.getTypeChecker());return g===u?!1:(g.flags&128)!==0&&_t(g.declarations,d=>Nr(d)===t)});(o=e.referencedMap.getKeys(t.resolvedPath))==null||o.forEach(u=>{if(Soe(e,u,p,n,i))return!0;let g=e.referencedMap.getKeys(u);return g&&ch(g,d=>YTe(e,d,p,c,n,i))})}function YTe(e,t,n,i,s,o){var c;if(Uy(i,t)){if(Soe(e,t,n,s,o))return!0;voe(e,t,n,s,o),(c=e.referencedMap.getKeys(t))==null||c.forEach(p=>YTe(e,p,n,i,s,o))}}function xV(e,t,n,i){return e.compilerOptions.noCheck?Ke:Qi(EUe(e,t,n,i),e.program.getProgramDiagnostics(t))}function EUe(e,t,n,i){i??(i=e.semanticDiagnosticsPerFile);let s=t.resolvedPath,o=i.get(s);if(o)return Cj(o,e.compilerOptions);let c=e.program.getBindAndCheckDiagnostics(t,n);return i.set(s,c),e.buildInfoEmitPending=!0,Cj(c,e.compilerOptions)}function Toe(e){var t;return!!((t=e.options)!=null&&t.outFile)}function rR(e){return!!e.fileNames}function NUe(e){return!rR(e)&&!!e.root}function ZTe(e){e.hasErrors===void 0&&(NS(e.compilerOptions)?e.hasErrors=!_t(e.program.getSourceFiles(),t=>{var n,i;let s=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return s===void 0||!!s.length||!!((i=(n=e.emitDiagnosticsPerFile)==null?void 0:n.get(t.resolvedPath))!=null&&i.length)})&&(eke(e)||_t(e.program.getSourceFiles(),t=>!!e.program.getProgramDiagnostics(t).length)):e.hasErrors=_t(e.program.getSourceFiles(),t=>{var n,i;let s=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return!!s?.length||!!((i=(n=e.emitDiagnosticsPerFile)==null?void 0:n.get(t.resolvedPath))!=null&&i.length)})||eke(e))}function eke(e){return!!e.program.getConfigFileParsingDiagnostics().length||!!e.program.getSyntacticDiagnostics().length||!!e.program.getOptionsDiagnostics().length||!!e.program.getGlobalDiagnostics().length}function tke(e){return ZTe(e),e.buildInfoEmitPending??(e.buildInfoEmitPending=!!e.hasErrorsFromOldState!=!!e.hasErrors)}function MUe(e){var t,n;let i=e.program.getCurrentDirectory(),s=ti(as(i1(e.compilerOptions),i)),o=e.latestChangedDtsFile?F(e.latestChangedDtsFile):void 0,c=[],p=new Map,u=new Set(e.program.getRootFileNames().map(H=>So(H,i,e.program.getCanonicalFileName)));if(ZTe(e),!NS(e.compilerOptions))return{root:ds(u,Se=>O(Se)),errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:Vi};let g=[];if(e.compilerOptions.outFile){let H=ds(e.fileInfos.entries(),([Je,ye])=>{let ee=W(Je);return $(Je,ee),ye.impliedFormat?{version:ye.version,impliedFormat:ye.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:ye.version});return{fileNames:c,fileInfos:H,root:g,resolvedRoot:X(),options:U(e.compilerOptions),semanticDiagnosticsPerFile:e.changedFilesSet.size?void 0:re(),emitDiagnosticsPerFile:V(),changeFileSet:ve(),outSignature:e.outSignature,latestChangedDtsFile:o,pendingEmit:e.programEmitPending?e.programEmitPending===Lb(e.compilerOptions)?!1:e.programEmitPending:void 0,errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:Vi}}let d,h,S,T=ds(e.fileInfos.entries(),([H,Se])=>{var Je,ye;let ee=W(H);$(H,ee),w.assert(c[ee-1]===O(H));let ge=(Je=e.oldSignatures)==null?void 0:Je.get(H),ke=ge!==void 0?ge||void 0:Se.signature;if(e.compilerOptions.composite){let Oe=e.program.getSourceFileByPath(H);if(!M_(Oe)&&wS(Oe,e.program)){let nt=(ye=e.emitSignatures)==null?void 0:ye.get(H);nt!==ke&&(S=Fr(S,nt===void 0?ee:[ee,!Is(nt)&&nt[0]===ke?Ke:nt]))}}return Se.version===ke?Se.affectsGlobalScope||Se.impliedFormat?{version:Se.version,signature:void 0,affectsGlobalScope:Se.affectsGlobalScope,impliedFormat:Se.impliedFormat}:Se.version:ke!==void 0?ge===void 0?Se:{version:Se.version,signature:ke,affectsGlobalScope:Se.affectsGlobalScope,impliedFormat:Se.impliedFormat}:{version:Se.version,signature:!1,affectsGlobalScope:Se.affectsGlobalScope,impliedFormat:Se.impliedFormat}}),x;(t=e.referencedMap)!=null&&t.size()&&(x=ds(e.referencedMap.keys()).sort(Eu).map(H=>[W(H),z(e.referencedMap.getValues(H))]));let I=re(),P;if((n=e.affectedFilesPendingEmit)!=null&&n.size){let H=Lb(e.compilerOptions),Se=new Set;for(let Je of ds(e.affectedFilesPendingEmit.keys()).sort(Eu))if(Uy(Se,Je)){let ye=e.program.getSourceFileByPath(Je);if(!ye||!wS(ye,e.program))continue;let ee=W(Je),ge=e.affectedFilesPendingEmit.get(Je);P=Fr(P,ge===H?ee:ge===24?[ee]:[ee,ge])}}return{fileNames:c,fileIdsList:d,fileInfos:T,root:g,resolvedRoot:X(),options:U(e.compilerOptions),referencedMap:x,semanticDiagnosticsPerFile:I,emitDiagnosticsPerFile:V(),changeFileSet:ve(),affectedFilesPendingEmit:P,emitSignatures:S,latestChangedDtsFile:o,errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:Vi};function F(H){return O(as(H,i))}function O(H){return GT(n_(s,H,e.program.getCanonicalFileName))}function W(H){let Se=p.get(H);return Se===void 0&&(c.push(O(H)),p.set(H,Se=c.length)),Se}function z(H){let Se=ds(H.keys(),W).sort(Po),Je=Se.join(),ye=h?.get(Je);return ye===void 0&&(d=Fr(d,Se),(h??(h=new Map)).set(Je,ye=d.length)),ye}function $(H,Se){let Je=e.program.getSourceFile(H);if(!e.program.getFileIncludeReasons().get(Je.path).some(ke=>ke.kind===0))return;if(!g.length)return g.push(Se);let ye=g[g.length-1],ee=gs(ye);if(ee&&ye[1]===Se-1)return ye[1]=Se;if(ee||g.length===1||ye!==Se-1)return g.push(Se);let ge=g[g.length-2];return!Yv(ge)||ge!==ye-1?g.push(Se):(g[g.length-2]=[ge,Se],g.length=g.length-1)}function X(){let H;return u.forEach(Se=>{let Je=e.program.getSourceFileByPath(Se);Je&&Se!==Je.resolvedPath&&(H=Fr(H,[W(Je.resolvedPath),W(Se)]))}),H}function U(H){let Se,{optionsNameMap:Je}=PI();for(let ye of Nm(H).sort(Eu)){let ee=Je.get(ye.toLowerCase());ee?.affectsBuildInfo&&((Se||(Se={}))[ye]=_e(ee,H[ye]))}return Se}function _e(H,Se){if(H){if(w.assert(H.type!=="listOrElement"),H.type==="list"){let Je=Se;if(H.element.isFilePath&&Je.length)return Je.map(F)}else if(H.isFilePath)return F(Se)}return Se}function re(){let H;return e.fileInfos.forEach((Se,Je)=>{let ye=e.semanticDiagnosticsPerFile.get(Je);ye?ye.length&&(H=Fr(H,[W(Je),ce(ye,Je)])):e.changedFilesSet.has(Je)||(H=Fr(H,W(Je)))}),H}function V(){var H;let Se;if(!((H=e.emitDiagnosticsPerFile)!=null&&H.size))return Se;for(let Je of ds(e.emitDiagnosticsPerFile.keys()).sort(Eu)){let ye=e.emitDiagnosticsPerFile.get(Je);Se=Fr(Se,[W(Je),ce(ye,Je)])}return Se}function ce(H,Se){return w.assert(!!H.length),H.map(Je=>{let ye=oe(Je,Se);ye.reportsUnnecessary=Je.reportsUnnecessary,ye.reportDeprecated=Je.reportsDeprecated,ye.source=Je.source,ye.skippedOn=Je.skippedOn;let{relatedInformation:ee}=Je;return ye.relatedInformation=ee?ee.length?ee.map(ge=>oe(ge,Se)):[]:void 0,ye})}function oe(H,Se){let{file:Je}=H;return{...H,file:Je?Je.resolvedPath===Se?void 0:O(Je.resolvedPath):!1,messageText:Is(H.messageText)?H.messageText:le(H.messageText)}}function le(H){if(H.repopulateInfo)return{info:H.repopulateInfo(),next:de(H.next)};let Se=de(H.next);return Se===H.next?H:{...H,next:Se}}function de(H){return H&&(or(H,(Se,Je)=>{let ye=le(Se);if(Se===ye)return;let ee=Je>0?H.slice(0,Je-1):[];ee.push(ye);for(let ge=Je+1;ge<H.length;ge++)ee.push(le(H[ge]));return ee})||H)}function ve(){let H;if(e.changedFilesSet.size)for(let Se of ds(e.changedFilesSet.keys()).sort(Eu))H=Fr(H,W(Se));return H}}var koe=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(koe||{});function Pj(e,t,n,i,s,o){let c,p,u;return e===void 0?(w.assert(t===void 0),c=n,u=i,w.assert(!!u),p=u.getProgram()):gs(e)?(u=i,p=eR({rootNames:e,options:t,host:n,oldProgram:u&&u.getProgramOrUndefined(),configFileParsingDiagnostics:s,projectReferences:o}),c=n):(p=e,c=t,u=n,s=i),{host:c,newProgram:p,oldProgram:u,configFileParsingDiagnostics:s||Ke}}function rke(e,t){return t?.sourceMapUrlPos!==void 0?e.substring(0,t.sourceMapUrlPos):e}function CV(e,t,n,i,s){var o;n=rke(n,s);let c;return(o=s?.diagnostics)!=null&&o.length&&(n+=s.diagnostics.map(g=>`${u(g)}${zO[g.category]}${g.code}: ${p(g.messageText)}`).join(`
|
|
`)),(i.createHash??SP)(n);function p(g){return Is(g)?g:g===void 0?"":g.next?g.messageText+g.next.map(p).join(`
|
|
`):g.messageText}function u(g){return g.file.resolvedPath===t.resolvedPath?`(${g.start},${g.length})`:(c===void 0&&(c=ti(t.resolvedPath)),`${GT(n_(c,g.file.resolvedPath,e.getCanonicalFileName))}(${g.start},${g.length})`)}}function RUe(e,t,n){return(t.createHash??SP)(rke(e,n))}function wV(e,{newProgram:t,host:n,oldProgram:i,configFileParsingDiagnostics:s}){let o=i&&i.state;if(o&&t===o.program&&s===t.getConfigFileParsingDiagnostics())return t=void 0,o=void 0,i;let c=CUe(t,o);t.getBuildInfo=()=>MUe(kUe(c)),t=void 0,i=void 0,o=void 0;let p=PV(c,s);return p.state=c,p.hasChangedEmitSignature=()=>!!c.hasChangedEmitSignature,p.getAllDependencies=F=>fm.getAllDependencies(c,w.checkDefined(c.program),F),p.getSemanticDiagnostics=E,p.getDeclarationDiagnostics=I,p.emit=T,p.releaseProgram=()=>wUe(c),e===0?p.getSemanticDiagnosticsOfNextAffectedFile=P:e===1?(p.getSemanticDiagnosticsOfNextAffectedFile=P,p.emitNextAffectedFile=h,p.emitBuildInfo=u):ea(),p;function u(F,O){if(w.assert(BI(c)),tke(c)){let W=c.program.emitBuildInfo(F||Js(n,n.writeFile),O);return c.buildInfoEmitPending=!1,W}return bV}function g(F,O,W,z,$){var X,U,_e,re;w.assert(BI(c));let V=HTe(c,O,n),ce=Lb(c.compilerOptions),oe=$?8:W?ce&56:ce;if(!V){if(c.compilerOptions.outFile){if(c.programEmitPending&&(oe=Dj(c.programEmitPending,c.seenProgramEmit,W,$),oe&&(V=c.program)),!V&&((X=c.emitDiagnosticsPerFile)!=null&&X.size)){let ve=c.seenProgramEmit||0;if(!(ve&kV($))){c.seenProgramEmit=kV($)|ve;let H=[];return c.emitDiagnosticsPerFile.forEach(Se=>Gn(H,Se)),{result:{emitSkipped:!0,diagnostics:H},affected:c.program}}}}else{let ve=IUe(c,W,$);if(ve)({affectedFile:V,emitKind:oe}=ve);else{let H=DUe(c,$);if(H)return(c.seenEmittedFiles??(c.seenEmittedFiles=new Map)).set(H.affectedFile.resolvedPath,H.seenKind|kV($)),{result:{emitSkipped:!0,diagnostics:H.diagnostics},affected:H.affectedFile}}}if(!V){if($||!tke(c))return;let ve=c.program,H=ve.emitBuildInfo(F||Js(n,n.writeFile),O);return c.buildInfoEmitPending=!1,{result:H,affected:ve}}}let le;oe&7&&(le=0),oe&56&&(le=le===void 0?1:void 0);let de=$?{emitSkipped:!0,diagnostics:c.program.getDeclarationDiagnostics(V===c.program?void 0:V,O)}:c.program.emit(V===c.program?void 0:V,S(F,z),O,le,z,void 0,!0);if(V!==c.program){let ve=V;c.seenAffectedFiles.add(ve.resolvedPath),c.affectedFilesIndex!==void 0&&c.affectedFilesIndex++,c.buildInfoEmitPending=!0;let H=((U=c.seenEmittedFiles)==null?void 0:U.get(ve.resolvedPath))||0;(c.seenEmittedFiles??(c.seenEmittedFiles=new Map)).set(ve.resolvedPath,oe|H);let Se=((_e=c.affectedFilesPendingEmit)==null?void 0:_e.get(ve.resolvedPath))||ce,Je=Ij(Se,oe|H);Je?(c.affectedFilesPendingEmit??(c.affectedFilesPendingEmit=new Map)).set(ve.resolvedPath,Je):(re=c.affectedFilesPendingEmit)==null||re.delete(ve.resolvedPath),de.diagnostics.length&&(c.emitDiagnosticsPerFile??(c.emitDiagnosticsPerFile=new Map)).set(ve.resolvedPath,de.diagnostics)}else c.changedFilesSet.clear(),c.programEmitPending=c.changedFilesSet.size?Ij(ce,oe):c.programEmitPending?Ij(c.programEmitPending,oe):void 0,c.seenProgramEmit=oe|(c.seenProgramEmit||0),d(de.diagnostics),c.buildInfoEmitPending=!0;return{result:de,affected:V}}function d(F){let O;F.forEach(W=>{if(!W.file)return;let z=O?.get(W.file.resolvedPath);z||(O??(O=new Map)).set(W.file.resolvedPath,z=[]),z.push(W)}),O&&(c.emitDiagnosticsPerFile=O)}function h(F,O,W,z){return g(F,O,W,z,!1)}function S(F,O){return w.assert(BI(c)),lf(c.compilerOptions)?(W,z,$,X,U,_e)=>{var re,V,ce;if(Kl(W))if(c.compilerOptions.outFile){if(c.compilerOptions.composite){let le=oe(c.outSignature,void 0);if(!le)return _e.skippedDtsWrite=!0;c.outSignature=le}}else{w.assert(U?.length===1);let le;if(!O){let de=U[0],ve=c.fileInfos.get(de.resolvedPath);if(ve.signature===de.version){let H=CV(c.program,de,z,n,_e);(re=_e?.diagnostics)!=null&&re.length||(le=H),H!==de.version&&(n.storeSignatureInfo&&(c.signatureInfo??(c.signatureInfo=new Map)).set(de.resolvedPath,1),c.affectedFiles&&((V=c.oldSignatures)==null?void 0:V.get(de.resolvedPath))===void 0&&(c.oldSignatures??(c.oldSignatures=new Map)).set(de.resolvedPath,ve.signature||!1),ve.signature=H)}}if(c.compilerOptions.composite){let de=U[0].resolvedPath;if(le=oe((ce=c.emitSignatures)==null?void 0:ce.get(de),le),!le)return _e.skippedDtsWrite=!0;(c.emitSignatures??(c.emitSignatures=new Map)).set(de,le)}}F?F(W,z,$,X,U,_e):n.writeFile?n.writeFile(W,z,$,X,U,_e):c.program.writeFile(W,z,$,X,U,_e);function oe(le,de){let ve=!le||Is(le)?le:le[0];if(de??(de=RUe(z,n,_e)),de===ve){if(le===ve)return;_e?_e.differsOnlyInMap=!0:_e={differsOnlyInMap:!0}}else c.hasChangedEmitSignature=!0,c.latestChangedDtsFile=W;return de}}:F||Js(n,n.writeFile)}function T(F,O,W,z,$){w.assert(BI(c)),e===1&&yoe(c,F);let X=SV(p,F,O,W);if(X)return X;if(!F)if(e===1){let _e=[],re=!1,V,ce=[],oe;for(;oe=h(O,W,z,$);)re=re||oe.result.emitSkipped,V=Gn(V,oe.result.diagnostics),ce=Gn(ce,oe.result.emittedFiles),_e=Gn(_e,oe.result.sourceMaps);return{emitSkipped:re,diagnostics:V||Ke,emittedFiles:ce,sourceMaps:_e}}else QTe(c,z,!1);let U=c.program.emit(F,S(O,$),W,z,$);return x(F,z,!1,U.diagnostics),U}function x(F,O,W,z){!F&&e!==1&&(QTe(c,O,W),d(z))}function I(F,O){var W;if(w.assert(BI(c)),e===1){yoe(c,F);let z,$;for(;z=g(void 0,O,void 0,void 0,!0);)F||($=Gn($,z.result.diagnostics));return(F?(W=c.emitDiagnosticsPerFile)==null?void 0:W.get(F.resolvedPath):$)||Ke}else{let z=c.program.getDeclarationDiagnostics(F,O);return x(F,void 0,!0,z),z}}function P(F,O){for(w.assert(BI(c));;){let W=HTe(c,F,n),z;if(W)if(W!==c.program){let $=W;if((!O||!O($))&&(z=xV(c,$,F)),c.seenAffectedFiles.add($.resolvedPath),c.affectedFilesIndex++,c.buildInfoEmitPending=!0,!z)continue}else{let $,X=new Map;c.program.getSourceFiles().forEach(U=>$=Gn($,xV(c,U,F,X))),c.semanticDiagnosticsPerFile=X,z=$||Ke,c.changedFilesSet.clear(),c.programEmitPending=Lb(c.compilerOptions),c.compilerOptions.noCheck||(c.checkPending=void 0),c.buildInfoEmitPending=!0}else{c.checkPending&&!c.compilerOptions.noCheck&&(c.checkPending=void 0,c.buildInfoEmitPending=!0);return}return{result:z,affected:W}}}function E(F,O){if(w.assert(BI(c)),yoe(c,F),F)return xV(c,F,O);for(;;){let z=P(O);if(!z)break;if(z.affected===c.program)return z.result}let W;for(let z of c.program.getSourceFiles())W=Gn(W,xV(c,z,O));return c.checkPending&&!c.compilerOptions.noCheck&&(c.checkPending=void 0,c.buildInfoEmitPending=!0),W||Ke}}function IV(e,t,n){var i,s;let o=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,o|n),(s=e.emitDiagnosticsPerFile)==null||s.delete(t)}function xoe(e){return Is(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:Is(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function Coe(e,t){return Yv(e)?t:e[1]||24}function woe(e,t){return e||Lb(t||{})}function Ioe(e,t,n){var i,s,o,c;let p=ti(as(t,n.getCurrentDirectory())),u=hu(n.useCaseSensitiveFileNames()),g,d=(i=e.fileNames)==null?void 0:i.map(I),h,S=e.latestChangedDtsFile?P(e.latestChangedDtsFile):void 0,T=new Map,x=new Set(kr(e.changeFileSet,E));if(Toe(e))e.fileInfos.forEach(($,X)=>{let U=E(X+1);T.set(U,Is($)?{version:$,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:$)}),g={fileInfos:T,compilerOptions:e.options?W7(e.options,P):{},semanticDiagnosticsPerFile:W(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:z(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:x,latestChangedDtsFile:S,outSignature:e.outSignature,programEmitPending:e.pendingEmit===void 0?void 0:woe(e.pendingEmit,e.options),hasErrors:e.errors,checkPending:e.checkPending};else{h=(s=e.fileIdsList)==null?void 0:s.map(U=>new Set(U.map(E)));let $=(o=e.options)!=null&&o.composite&&!e.options.outFile?new Map:void 0;e.fileInfos.forEach((U,_e)=>{let re=E(_e+1),V=xoe(U);T.set(re,V),$&&V.signature&&$.set(re,V.signature)}),(c=e.emitSignatures)==null||c.forEach(U=>{if(Yv(U))$.delete(E(U));else{let _e=E(U[0]);$.set(_e,!Is(U[1])&&!U[1].length?[$.get(_e)]:U[1])}});let X=e.affectedFilesPendingEmit?Lb(e.options||{}):void 0;g={fileInfos:T,compilerOptions:e.options?W7(e.options,P):{},referencedMap:O(e.referencedMap,e.options??{}),semanticDiagnosticsPerFile:W(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:z(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:x,affectedFilesPendingEmit:e.affectedFilesPendingEmit&&yw(e.affectedFilesPendingEmit,U=>E(Yv(U)?U:U[0]),U=>Coe(U,X)),latestChangedDtsFile:S,emitSignatures:$?.size?$:void 0,hasErrors:e.errors,checkPending:e.checkPending}}return{state:g,getProgram:ea,getProgramOrUndefined:lS,releaseProgram:no,getCompilerOptions:()=>g.compilerOptions,getSourceFile:ea,getSourceFiles:ea,getOptionsDiagnostics:ea,getGlobalDiagnostics:ea,getConfigFileParsingDiagnostics:ea,getSyntacticDiagnostics:ea,getDeclarationDiagnostics:ea,getSemanticDiagnostics:ea,emit:ea,getAllDependencies:ea,getCurrentDirectory:ea,emitNextAffectedFile:ea,getSemanticDiagnosticsOfNextAffectedFile:ea,emitBuildInfo:ea,close:no,hasChangedEmitSignature:$h};function I($){return So($,p,u)}function P($){return as($,p)}function E($){return d[$-1]}function F($){return h[$-1]}function O($,X){let U=fm.createReferencedMap(X);return!U||!$||$.forEach(([_e,re])=>U.set(E(_e),F(re))),U}function W($){let X=new Map(Hv(T.keys(),U=>x.has(U)?void 0:[U,Ke]));return $?.forEach(U=>{Yv(U)?X.delete(E(U)):X.set(E(U[0]),U[1])}),X}function z($){return $&&yw($,X=>E(X[0]),X=>X[1])}}function DV(e,t,n){let i=ti(as(t,n.getCurrentDirectory())),s=hu(n.useCaseSensitiveFileNames()),o=new Map,c=0,p=new Map,u=new Map(e.resolvedRoot);return e.fileInfos.forEach((d,h)=>{let S=So(e.fileNames[h],i,s),T=Is(d)?d:d.version;if(o.set(S,T),c<e.root.length){let x=e.root[c],I=h+1;gs(x)?x[0]<=I&&I<=x[1]&&(g(I,S),x[1]===I&&c++):x===I&&(g(I,S),c++)}}),{fileInfos:o,roots:p};function g(d,h){let S=u.get(d);S?p.set(So(e.fileNames[S-1],i,s),h):p.set(h,void 0)}}function Doe(e,t,n){if(!NUe(e))return;let i=ti(as(t,n.getCurrentDirectory())),s=hu(n.useCaseSensitiveFileNames());return e.root.map(o=>So(o,i,s))}function PV(e,t){return{state:void 0,getProgram:n,getProgramOrUndefined:()=>e.program,releaseProgram:()=>e.program=void 0,getCompilerOptions:()=>e.compilerOptions,getSourceFile:i=>n().getSourceFile(i),getSourceFiles:()=>n().getSourceFiles(),getOptionsDiagnostics:i=>n().getOptionsDiagnostics(i),getGlobalDiagnostics:i=>n().getGlobalDiagnostics(i),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(i,s)=>n().getSyntacticDiagnostics(i,s),getDeclarationDiagnostics:(i,s)=>n().getDeclarationDiagnostics(i,s),getSemanticDiagnostics:(i,s)=>n().getSemanticDiagnostics(i,s),emit:(i,s,o,c,p)=>n().emit(i,s,o,c,p),emitBuildInfo:(i,s)=>n().emitBuildInfo(i,s),getAllDependencies:ea,getCurrentDirectory:()=>n().getCurrentDirectory(),close:no};function n(){return w.checkDefined(e.program)}}function nke(e,t,n,i,s,o){return wV(0,Pj(e,t,n,i,s,o))}function AV(e,t,n,i,s,o){return wV(1,Pj(e,t,n,i,s,o))}function ike(e,t,n,i,s,o){let{newProgram:c,configFileParsingDiagnostics:p}=Pj(e,t,n,i,s,o);return PV({program:c,compilerOptions:c.getCompilerOptions()},p)}function Aj(e){return Bo(e,"/node_modules/.staging")?Sw(e,"/.staging"):_t(UO,t=>e.includes(t))?void 0:e}function Poe(e,t){if(t<=1)return 1;let n=1,i=e[0].search(/[a-z]:/i)===0;if(e[0]!==Ro&&!i&&e[1].search(/[a-z]\$$/i)===0){if(t===2)return 2;n=2,i=!0}return i&&!e[n].match(/^users$/i)?n:e[n].match(/^workspaces$/i)?n+1:n+2}function EV(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;let n=Poe(e,t);return t>n+1}function nR(e){return EV(Nu(e))}function Aoe(e){return ake(ti(e))}function ske(e,t){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0}function ake(e){return nR(e)}function Eoe(e){return ake(e)}function NV(e,t,n,i,s,o,c,p){let u=Nu(t);e=Sf(e)?ra(e):as(e,c());let g=Nu(e),d=Poe(u,u.length);if(u.length<=d+1)return;let h=u.indexOf("node_modules");if(h!==-1&&h+1<=d+1)return;let S=u.lastIndexOf("node_modules");return o&&ske(s,u)?u.length>s.length+1?Noe(g,u,Math.max(s.length+1,d+1),S):{dir:n,dirPath:i,nonRecursive:!0}:oke(g,u,u.length-1,d,h,s,S,p)}function oke(e,t,n,i,s,o,c,p){if(s!==-1)return Noe(e,t,s+1,c);let u=!0,g=n;if(!p){for(let d=0;d<n;d++)if(t[d]!==o[d]){u=!1,g=Math.max(d+1,i+1);break}}return Noe(e,t,g,c,u)}function Noe(e,t,n,i,s){let o;return i!==-1&&i+1>=n&&i+2<t.length&&(Zi(t[i+1],"@")?i+3<t.length&&(o=i+3):o=i+2),{dir:w0(e,n),dirPath:w0(t,n),nonRecursive:s,packageDir:o!==void 0?w0(e,o):void 0,packageDirPath:o!==void 0?w0(t,o):void 0}}function Moe(e,t,n,i,s,o,c,p){let u=Nu(t);if(s&&ske(i,u))return n;e=Sf(e)?ra(e):as(e,o());let g=oke(Nu(e),u,u.length,Poe(u,u.length),u.indexOf("node_modules"),i,u.lastIndexOf("node_modules"),c);return g&&p(g.dirPath)?g.dirPath:void 0}function Roe(e,t){let n=as(e,t());return yB(n)?n:Vy(n)}function Ej(e){var t;return((t=e.getCompilerHost)==null?void 0:t.call(e))||e}function Ooe(e,t,n,i,s){return{nameAndMode:bj,resolve:(o,c)=>OUe(i,s,o,e,n,t,c)}}function OUe(e,t,n,i,s,o,c){let p=Ej(e),u=Pk(n,i,s,p,t,o,c);if(!e.getGlobalTypingsCacheLocation)return u;let g=e.getGlobalTypingsCacheLocation();if(g!==void 0&&!Ul(n)&&!(u.resolvedModule&&z8(u.resolvedModule.extension))){let{resolvedModule:d,failedLookupLocations:h,affectingLocations:S,resolutionDiagnostics:T}=qse(w.checkDefined(e.globalCacheResolutionModuleName)(n),e.projectName,s,p,g,t);if(d)return u.resolvedModule=d,u.failedLookupLocations=AI(u.failedLookupLocations,h),u.affectingLocations=AI(u.affectingLocations,S),u.resolutionDiagnostics=AI(u.resolutionDiagnostics,T),u}return u}function MV(e,t,n){let i,s,o,c=new Set,p=new Set,u=new Set,g=new Map,d=new Map,h=!1,S,T,x,I,P,E=!1,F=up(()=>e.getCurrentDirectory()),O=e.getCachedDirectoryStructureHost(),W=new Map,z=NI(F(),e.getCanonicalFileName,e.getCompilationSettings()),$=new Map,X=Q7(F(),e.getCanonicalFileName,e.getCompilationSettings(),z.getPackageJsonInfoCache(),z.optionsToRedirectsKey),U=new Map,_e=NI(F(),e.getCanonicalFileName,dU(e.getCompilationSettings()),z.getPackageJsonInfoCache()),re=new Map,V=new Map,ce=Roe(t,F),oe=e.toPath(ce),le=Nu(oe),de=EV(le),ve=new Map,H=new Map,Se=new Map,Je=new Map;return{rootDirForResolution:t,resolvedModuleNames:W,resolvedTypeReferenceDirectives:$,resolvedLibraries:U,resolvedFileToResolution:g,resolutionsWithFailedLookups:p,resolutionsWithOnlyAffectingLocations:u,directoryWatchesOfFailedLookups:re,fileWatchesOfAffectingLocations:V,packageDirWatchers:H,dirPathToSymlinkPackageRefCount:Se,watchFailedLookupLocationsOfExternalModuleResolutions:qt,getModuleResolutionCache:()=>z,startRecordingFilesWithChangedResolutions:ge,finishRecordingFilesWithChangedResolutions:ke,startCachingPerDirectoryResolution:ae,finishCachingPerDirectoryResolution:te,resolveModuleNameLiterals:Bt,resolveTypeReferenceDirectiveReferences:St,resolveLibrary:fr,resolveSingleModuleNameWithoutWatching:Mr,removeResolutionsFromProjectReferenceRedirects:ei,removeResolutionsOfFile:Mi,hasChangedAutomaticTypeDirectiveNames:()=>h,invalidateResolutionOfFile:oa,invalidateResolutionsOfFailedLookupLocations:Mt,setFilesWithInvalidatedNonRelativeUnresolvedImports:wr,createHasInvalidatedResolutions:nt,isFileWithInvalidatedNonRelativeUnresolvedImports:Oe,updateTypeRootsWatch:at,closeTypeRootsWatch:Ee,clear:ye,onChangesAffectModuleResolution:ee};function ye(){cf(re,J_),cf(V,J_),ve.clear(),H.clear(),Se.clear(),c.clear(),Ee(),W.clear(),$.clear(),g.clear(),p.clear(),u.clear(),x=void 0,I=void 0,P=void 0,T=void 0,S=void 0,E=!1,z.clear(),X.clear(),z.update(e.getCompilationSettings()),X.update(e.getCompilationSettings()),_e.clear(),d.clear(),U.clear(),h=!1}function ee(){E=!0,z.clearAllExceptPackageJsonInfoCache(),X.clearAllExceptPackageJsonInfoCache(),z.update(e.getCompilationSettings()),X.update(e.getCompilationSettings())}function ge(){i=[]}function ke(){let Le=i;return i=void 0,Le}function Oe(Le){if(!o)return!1;let kt=o.get(Le);return!!kt&&!!kt.length}function nt(Le,kt){Mt();let Tt=s;return s=void 0,{hasInvalidatedResolutions:Rt=>Le(Rt)||E||!!Tt?.has(Rt)||Oe(Rt),hasInvalidatedLibResolutions:Rt=>{var Ye;return kt(Rt)||!!((Ye=U?.get(Rt))!=null&&Ye.isInvalidated)}}}function ae(){z.isReadonly=void 0,X.isReadonly=void 0,_e.isReadonly=void 0,z.getPackageJsonInfoCache().isReadonly=void 0,z.clearAllExceptPackageJsonInfoCache(),X.clearAllExceptPackageJsonInfoCache(),_e.clearAllExceptPackageJsonInfoCache(),rs(),ve.clear()}function Ue(Le){U.forEach((kt,Tt)=>{var Rt;(Rt=Le?.resolvedLibReferences)!=null&&Rt.has(Tt)||(bt(kt,e.toPath(Tj(e.getCompilationSettings(),F(),Tt)),c2),U.delete(Tt))})}function te(Le,kt){o=void 0,E=!1,rs(),Le!==kt&&(Ue(Le),Le?.getSourceFiles().forEach(Tt=>{var Rt;let Ye=((Rt=Tt.packageJsonLocations)==null?void 0:Rt.length)??0,Gt=d.get(Tt.resolvedPath)??Ke;for(let ln=Gt.length;ln<Ye;ln++)At(Tt.packageJsonLocations[ln],!1);if(Gt.length>Ye)for(let ln=Ye;ln<Gt.length;ln++)V.get(Gt[ln]).files--;Ye?d.set(Tt.resolvedPath,Tt.packageJsonLocations):d.delete(Tt.resolvedPath)}),d.forEach((Tt,Rt)=>{let Ye=Le?.getSourceFileByPath(Rt);(!Ye||Ye.resolvedPath!==Rt)&&(Tt.forEach(Gt=>V.get(Gt).files--),d.delete(Rt))})),re.forEach(Ie),V.forEach(xe),H.forEach(Ne),h=!1,z.isReadonly=!0,X.isReadonly=!0,_e.isReadonly=!0,z.getPackageJsonInfoCache().isReadonly=!0,ve.clear()}function Ne(Le,kt){Le.dirPathToWatcher.size===0&&H.delete(kt)}function Ie(Le,kt){Le.refCount===0&&(re.delete(kt),Le.watcher.close())}function xe(Le,kt){var Tt;Le.files===0&&Le.resolutions===0&&!((Tt=Le.symlinks)!=null&&Tt.size)&&(V.delete(kt),Le.watcher.close())}function Qe({entries:Le,containingFile:kt,containingSourceFile:Tt,redirectedReference:Rt,options:Ye,perFileCache:Gt,reusedNames:ln,loader:Ae,getResolutionWithResolvedFileName:wt,deferWatchingNonRelativeResolution:fe,shouldRetryResolution:j,logChanges:je}){var q;let vt=e.toPath(kt),jt=Gt.get(vt)||Gt.set(vt,EI()).get(vt),Ce=[],ut=je&&Oe(vt),Qt=e.getCurrentProgram(),Zr=Qt&&((q=Qt.getRedirectFromSourceFile(kt))==null?void 0:q.resolvedRef),jr=Zr?!Rt||Rt.sourceFile.path!==Zr.sourceFile.path:!!Rt,Jr=EI();for(let It of Le){let Ot=Ae.nameAndMode.getName(It),Ht=Ae.nameAndMode.getMode(It,Tt,Rt?.commandLine.options||Ye),hr=jt.get(Ot,Ht);if(!Jr.has(Ot,Ht)&&(E||jr||!hr||hr.isInvalidated||ut&&!Ul(Ot)&&j(hr))){let ur=hr;hr=Ae.resolve(Ot,Ht),e.onDiscoveredSymlink&&FUe(hr)&&e.onDiscoveredSymlink(),jt.set(Ot,Ht,hr),hr!==ur&&(qt(Ot,hr,vt,wt,fe),ur&&bt(ur,vt,wt)),je&&i&&!ct(ur,hr)&&(i.push(vt),je=!1)}else{let ur=Ej(e);if(Mb(Ye,ur)&&!Jr.has(Ot,Ht)){let Nt=wt(hr);ls(ur,Gt===W?Nt?.resolvedFileName?Nt.packageId?_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Nt?.resolvedFileName?Nt.packageId?_.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:_.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Ot,kt,Nt?.resolvedFileName,Nt?.packageId&&A0(Nt.packageId))}}w.assert(hr!==void 0&&!hr.isInvalidated),Jr.set(Ot,Ht,!0),Ce.push(hr)}return ln?.forEach(It=>Jr.set(Ae.nameAndMode.getName(It),Ae.nameAndMode.getMode(It,Tt,Rt?.commandLine.options||Ye),!0)),jt.size()!==Jr.size()&&jt.forEach((It,Ot,Ht)=>{Jr.has(Ot,Ht)||(bt(It,vt,wt),jt.delete(Ot,Ht))}),Ce;function ct(It,Ot){if(It===Ot)return!0;if(!It||!Ot)return!1;let Ht=wt(It),hr=wt(Ot);return Ht===hr?!0:!Ht||!hr?!1:Ht.resolvedFileName===hr.resolvedFileName}}function St(Le,kt,Tt,Rt,Ye,Gt){return Qe({entries:Le,containingFile:kt,containingSourceFile:Ye,redirectedReference:Tt,options:Rt,reusedNames:Gt,perFileCache:$,loader:Sj(kt,Tt,Rt,Ej(e),X),getResolutionWithResolvedFileName:kF,shouldRetryResolution:ln=>ln.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Bt(Le,kt,Tt,Rt,Ye,Gt){return Qe({entries:Le,containingFile:kt,containingSourceFile:Ye,redirectedReference:Tt,options:Rt,reusedNames:Gt,perFileCache:W,loader:Ooe(kt,Tt,Rt,e,z),getResolutionWithResolvedFileName:c2,shouldRetryResolution:ln=>!ln.resolvedModule||!kA(ln.resolvedModule.extension),logChanges:n,deferWatchingNonRelativeResolution:!0})}function fr(Le,kt,Tt,Rt){let Ye=Ej(e),Gt=U?.get(Rt);if(!Gt||Gt.isInvalidated){let ln=Gt;Gt=K7(Le,kt,Tt,Ye,_e);let Ae=e.toPath(kt);qt(Le,Gt,Ae,c2,!1),U.set(Rt,Gt),ln&&bt(ln,Ae,c2)}else if(Mb(Tt,Ye)){let ln=c2(Gt);ls(Ye,ln?.resolvedFileName?ln.packageId?_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,Le,kt,ln?.resolvedFileName,ln?.packageId&&A0(ln.packageId))}return Gt}function Mr(Le,kt){var Tt,Rt;let Ye=e.toPath(kt),Gt=W.get(Ye),ln=Gt?.get(Le,void 0);if(ln&&!ln.isInvalidated)return ln;let Ae=(Tt=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:Tt.call(e,z),wt=Ej(e),fe=Pk(Le,kt,e.getCompilationSettings(),wt,z);return(Rt=e.afterResolveSingleModuleNameWithoutWatching)==null||Rt.call(e,z,Le,kt,fe,Ae),fe}function ft(Le){return Bo(Le,"/node_modules/@types")}function qt(Le,kt,Tt,Rt,Ye){if((kt.files??(kt.files=new Set)).add(Tt),kt.files.size!==1)return;!Ye||Ul(Le)?bi(kt):c.add(kt);let Gt=Rt(kt);if(Gt&&Gt.resolvedFileName){let ln=e.toPath(Gt.resolvedFileName),Ae=g.get(ln);Ae||g.set(ln,Ae=new Set),Ae.add(kt)}}function Hr(Le,kt){let Tt=e.toPath(Le),Rt=NV(Le,Tt,ce,oe,le,de,F,e.preferNonRecursiveWatch);if(Rt){let{dir:Ye,dirPath:Gt,nonRecursive:ln,packageDir:Ae,packageDirPath:wt}=Rt;Gt===oe?(w.assert(ln),w.assert(!Ae),kt=!0):Sn(Ye,Gt,Ae,wt,ln)}return kt}function bi(Le){var kt;w.assert(!!((kt=Le.files)!=null&&kt.size));let{failedLookupLocations:Tt,affectingLocations:Rt,alternateResult:Ye}=Le;if(!Tt?.length&&!Rt?.length&&!Ye)return;(Tt?.length||Ye)&&p.add(Le);let Gt=!1;if(Tt)for(let ln of Tt)Gt=Hr(ln,Gt);Ye&&(Gt=Hr(Ye,Gt)),Gt&&Sn(ce,oe,void 0,void 0,!0),us(Le,!Tt?.length&&!Ye)}function us(Le,kt){var Tt;w.assert(!!((Tt=Le.files)!=null&&Tt.size));let{affectingLocations:Rt}=Le;if(Rt?.length){kt&&u.add(Le);for(let Ye of Rt)At(Ye,!0)}}function At(Le,kt){let Tt=V.get(Le);if(Tt){kt?Tt.resolutions++:Tt.files++;return}let Rt=Le,Ye=!1,Gt;e.realpath&&(Rt=e.realpath(Le),Le!==Rt&&(Ye=!0,Gt=V.get(Rt)));let ln=kt?1:0,Ae=kt?0:1;if(!Ye||!Gt){let wt={watcher:Eoe(e.toPath(Rt))?e.watchAffectingFileLocation(Rt,(fe,j)=>{O?.addOrDeleteFile(fe,e.toPath(Rt),j),Un(Rt,z.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):GI,resolutions:Ye?0:ln,files:Ye?0:Ae,symlinks:void 0};V.set(Rt,wt),Ye&&(Gt=wt)}if(Ye){w.assert(!!Gt);let wt={watcher:{close:()=>{var fe;let j=V.get(Rt);(fe=j?.symlinks)!=null&&fe.delete(Le)&&!j.symlinks.size&&!j.resolutions&&!j.files&&(V.delete(Rt),j.watcher.close())}},resolutions:ln,files:Ae,symlinks:void 0};V.set(Le,wt),(Gt.symlinks??(Gt.symlinks=new Set)).add(Le)}}function Un(Le,kt){var Tt;let Rt=V.get(Le);Rt?.resolutions&&(T??(T=new Set)).add(Le),Rt?.files&&(S??(S=new Set)).add(Le),(Tt=Rt?.symlinks)==null||Tt.forEach(Ye=>Un(Ye,kt)),kt?.delete(e.toPath(Le))}function rs(){c.forEach(bi),c.clear()}function zn(Le,kt,Tt,Rt,Ye){w.assert(!Ye);let Gt=ve.get(Rt),ln=H.get(Rt);if(Gt===void 0){let fe=e.realpath(Tt);Gt=fe!==Tt&&e.toPath(fe)!==Rt,ve.set(Rt,Gt),ln?ln.isSymlink!==Gt&&(ln.dirPathToWatcher.forEach(j=>{ar(ln.isSymlink?Rt:kt),j.watcher=wt()}),ln.isSymlink=Gt):H.set(Rt,ln={dirPathToWatcher:new Map,isSymlink:Gt})}else w.assertIsDefined(ln),w.assert(Gt===ln.isSymlink);let Ae=ln.dirPathToWatcher.get(kt);Ae?Ae.refCount++:(ln.dirPathToWatcher.set(kt,{watcher:wt(),refCount:1}),Gt&&Se.set(kt,(Se.get(kt)??0)+1));function wt(){return Gt?_i(Tt,Rt,Ye):_i(Le,kt,Ye)}}function Sn(Le,kt,Tt,Rt,Ye){!Rt||!e.realpath?_i(Le,kt,Ye):zn(Le,kt,Tt,Rt,Ye)}function _i(Le,kt,Tt){let Rt=re.get(kt);return Rt?(w.assert(!!Tt==!!Rt.nonRecursive),Rt.refCount++):re.set(kt,Rt={watcher:tn(Le,kt,Tt),refCount:1,nonRecursive:Tt}),Rt}function qe(Le,kt){let Tt=e.toPath(Le),Rt=NV(Le,Tt,ce,oe,le,de,F,e.preferNonRecursiveWatch);if(Rt){let{dirPath:Ye,packageDirPath:Gt}=Rt;if(Ye===oe)kt=!0;else if(Gt&&e.realpath){let ln=H.get(Gt),Ae=ln.dirPathToWatcher.get(Ye);if(Ae.refCount--,Ae.refCount===0&&(ar(ln.isSymlink?Gt:Ye),ln.dirPathToWatcher.delete(Ye),ln.isSymlink)){let wt=Se.get(Ye)-1;wt===0?Se.delete(Ye):Se.set(Ye,wt)}}else ar(Ye)}return kt}function bt(Le,kt,Tt){if(w.checkDefined(Le.files).delete(kt),Le.files.size)return;Le.files=void 0;let Rt=Tt(Le);if(Rt&&Rt.resolvedFileName){let Ae=e.toPath(Rt.resolvedFileName),wt=g.get(Ae);wt?.delete(Le)&&!wt.size&&g.delete(Ae)}let{failedLookupLocations:Ye,affectingLocations:Gt,alternateResult:ln}=Le;if(p.delete(Le)){let Ae=!1;if(Ye)for(let wt of Ye)Ae=qe(wt,Ae);ln&&(Ae=qe(ln,Ae)),Ae&&ar(oe)}else Gt?.length&&u.delete(Le);if(Gt)for(let Ae of Gt){let wt=V.get(Ae);wt.resolutions--}}function ar(Le){let kt=re.get(Le);kt.refCount--}function tn(Le,kt,Tt){return e.watchDirectoryOfFailedLookupLocation(Le,Rt=>{let Ye=e.toPath(Rt);O&&O.addOrDeleteFileOrDirectory(Rt,Ye),Ds(Ye,kt===Ye)},Tt?0:1)}function Xn(Le,kt,Tt){let Rt=Le.get(kt);Rt&&(Rt.forEach(Ye=>bt(Ye,kt,Tt)),Le.delete(kt))}function ei(Le){if(!uc(Le,".json"))return;let kt=e.getCurrentProgram();if(!kt)return;let Tt=kt.getResolvedProjectReferenceByPath(Le);Tt&&Tt.commandLine.fileNames.forEach(Rt=>Mi(e.toPath(Rt)))}function Mi(Le){Xn(W,Le,c2),Xn($,Le,kF)}function js(Le,kt){if(!Le)return!1;let Tt=!1;return Le.forEach(Rt=>{if(!(Rt.isInvalidated||!kt(Rt))){Rt.isInvalidated=Tt=!0;for(let Ye of w.checkDefined(Rt.files))(s??(s=new Set)).add(Ye),h=h||Bo(Ye,vE)}}),Tt}function oa(Le){Mi(Le);let kt=h;js(g.get(Le),cS)&&h&&!kt&&e.onChangedAutomaticTypeDirectiveNames()}function wr(Le){w.assert(o===Le||o===void 0),o=Le}function Ds(Le,kt){if(kt)(P||(P=new Set)).add(Le);else{let Tt=Aj(Le);if(!Tt||(Le=Tt,e.fileIsOpen(Le)))return!1;let Rt=ti(Le);if(ft(Le)||QO(Le)||ft(Rt)||QO(Rt))(x||(x=new Set)).add(Le),(I||(I=new Set)).add(Le);else{if(toe(e.getCurrentProgram(),Le)||uc(Le,".map"))return!1;(x||(x=new Set)).add(Le),(I||(I=new Set)).add(Le);let Ye=R4(Le,!0);Ye&&(I||(I=new Set)).add(Ye)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function tt(){let Le=z.getPackageJsonInfoCache().getInternalMap();Le&&(x||I||P)&&Le.forEach((kt,Tt)=>pt(Tt)?Le.delete(Tt):void 0)}function Mt(){var Le;if(E)return S=void 0,tt(),(x||I||P||T)&&js(U,se),x=void 0,I=void 0,P=void 0,T=void 0,!0;let kt=!1;return S&&((Le=e.getCurrentProgram())==null||Le.getSourceFiles().forEach(Tt=>{_t(Tt.packageJsonLocations,Rt=>S.has(Rt))&&((s??(s=new Set)).add(Tt.path),kt=!0)}),S=void 0),!x&&!I&&!P&&!T||(kt=js(p,se)||kt,tt(),x=void 0,I=void 0,P=void 0,kt=js(u,Z)||kt,T=void 0),kt}function se(Le){var kt;return Z(Le)?!0:!x&&!I&&!P?!1:((kt=Le.failedLookupLocations)==null?void 0:kt.some(Tt=>pt(e.toPath(Tt))))||!!Le.alternateResult&&pt(e.toPath(Le.alternateResult))}function pt(Le){return x?.has(Le)||Em(I?.keys()||[],kt=>Zi(Le,kt)?!0:void 0)||Em(P?.keys()||[],kt=>Le.length>kt.length&&Zi(Le,kt)&&(yB(kt)||Le[kt.length]===Ro)?!0:void 0)}function Z(Le){var kt;return!!T&&((kt=Le.affectingLocations)==null?void 0:kt.some(Tt=>T.has(Tt)))}function Ee(){cf(Je,Fd)}function et(Le){return Pt(Le)?e.watchTypeRootsDirectory(Le,kt=>{let Tt=e.toPath(kt);O&&O.addOrDeleteFileOrDirectory(kt,Tt),h=!0,e.onChangedAutomaticTypeDirectiveNames();let Rt=Moe(Le,e.toPath(Le),oe,le,de,F,e.preferNonRecursiveWatch,Ye=>re.has(Ye)||Se.has(Ye));Rt&&Ds(Tt,Rt===Tt)},1):GI}function at(){let Le=e.getCompilationSettings();if(Le.types){Ee();return}let kt=rE(Le,{getCurrentDirectory:F});kt?yA(Je,new Set(kt),{createNewValue:et,onDeleteValue:Fd}):Ee()}function Pt(Le){return e.getCompilationSettings().typeRoots?!0:Aoe(e.toPath(Le))}}function FUe(e){var t,n;return!!((t=e.resolvedModule)!=null&&t.originalPath||(n=e.resolvedTypeReferenceDirective)!=null&&n.originalPath)}var cke=Nl?{getCurrentDirectory:()=>Nl.getCurrentDirectory(),getNewLine:()=>Nl.newLine,getCanonicalFileName:hu(Nl.useCaseSensitiveFileNames)}:void 0;function aC(e,t){let n=e===Nl&&cke?cke:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:hu(e.useCaseSensitiveFileNames)};if(!t)return s=>e.write(_V(s,n));let i=new Array(1);return s=>{i[0]=s,e.write(coe(i,n)+n.getNewLine()),i[0]=void 0}}function lke(e,t,n){return e.clearScreen&&!n.preserveWatchOutput&&!n.extendedDiagnostics&&!n.diagnostics&&ws(uke,t.code)?(e.clearScreen(),!0):!1}var uke=[_.Starting_compilation_in_watch_mode.code,_.File_change_detected_Starting_incremental_compilation.code];function jUe(e,t){return ws(uke,e.code)?t+t:t}function iR(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function RV(e,t){return t?(n,i,s)=>{lke(e,n,s);let o=`[${QS(iR(e),"\x1B[90m")}] `;o+=`${tg(n.messageText,e.newLine)}${i+i}`,e.write(o)}:(n,i,s)=>{let o="";lke(e,n,s)||(o+=i),o+=`${iR(e)} - `,o+=`${tg(n.messageText,e.newLine)}${jUe(n,i)}`,e.write(o)}}function Foe(e,t,n,i,s,o){let c=s;c.onUnRecoverableConfigFileDiagnostic=u=>_ke(s,o,u);let p=I4(e,t,c,n,i);return c.onUnRecoverableConfigFileDiagnostic=void 0,p}function Nj(e){return Jy(e,t=>t.category===1)}function Mj(e){return Mn(e,n=>n.category===1).map(n=>{if(n.file!==void 0)return`${n.file.fileName}`}).map(n=>{if(n===void 0)return;let i=Bn(e,s=>s.file!==void 0&&s.file.fileName===n);if(i!==void 0){let{line:s}=Hs(i.file,i.start);return{fileName:n,line:s+1}}})}function OV(e){return e===1?_.Found_1_error_Watching_for_file_changes:_.Found_0_errors_Watching_for_file_changes}function pke(e,t){let n=QS(":"+e.line,"\x1B[90m");return TP(e.fileName)&&TP(t)?n_(t,e.fileName,!1)+n:e.fileName+n}function FV(e,t,n,i){if(e===0)return"";let s=t.filter(d=>d!==void 0),o=s.map(d=>`${d.fileName}:${d.line}`).filter((d,h,S)=>S.indexOf(d)===h),c=s[0]&&pke(s[0],i.getCurrentDirectory()),p;e===1?p=t[0]!==void 0?[_.Found_1_error_in_0,c]:[_.Found_1_error]:p=o.length===0?[_.Found_0_errors,e]:o.length===1?[_.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,c]:[_.Found_0_errors_in_1_files,e,o.length];let u=fc(...p),g=o.length>1?LUe(s,i):"";return`${n}${tg(u.messageText,n)}${n}${n}${g}`}function LUe(e,t){let n=e.filter((h,S,T)=>S===T.findIndex(x=>x?.fileName===h?.fileName));if(n.length===0)return"";let i=h=>Math.log(h)*Math.LOG10E+1,s=n.map(h=>[h,Jy(e,S=>S.fileName===h.fileName)]),o=WW(s,0,h=>h[1]),c=_.Errors_Files.message,p=c.split(" ")[0].length,u=Math.max(p,i(o)),g=Math.max(i(o)-p,0),d="";return d+=" ".repeat(g)+c+`
|
|
`,s.forEach(h=>{let[S,T]=h,x=Math.log(T)*Math.LOG10E+1|0,I=x<u?" ".repeat(u-x):"",P=pke(S,t.getCurrentDirectory());d+=`${I}${T} ${P}
|
|
`}),d}function jV(e){return!!e.state}function WUe(e,t){let n=e.getCompilerOptions();n.explainFiles?LV(jV(e)?e.getProgram():e,t):(n.listFiles||n.listFilesOnly)&&or(e.getSourceFiles(),i=>{t(i.fileName)})}function LV(e,t){var n,i;let s=e.getFileIncludeReasons(),o=c=>kP(c,e.getCurrentDirectory(),e.getCanonicalFileName);for(let c of e.getSourceFiles())t(`${zI(c,o)}`),(n=s.get(c.path))==null||n.forEach(p=>t(` ${GV(e,p,o).messageText}`)),(i=WV(c,e.getCompilerOptionsForFile(c),o))==null||i.forEach(p=>t(` ${p.messageText}`))}function WV(e,t,n){var i;let s;if(e.path!==e.resolvedPath&&(s??(s=[])).push(Ns(void 0,_.File_is_output_of_project_reference_source_0,zI(e.originalFileName,n))),e.redirectInfo&&(s??(s=[])).push(Ns(void 0,_.File_redirects_to_file_0,zI(e.redirectInfo.redirectTarget,n))),xf(e))switch(Rk(e,t)){case 99:e.packageJsonScope&&(s??(s=[])).push(Ns(void 0,_.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,zI(ka(e.packageJsonLocations),n)));break;case 1:e.packageJsonScope?(s??(s=[])).push(Ns(void 0,e.packageJsonScope.contents.packageJsonContent.type?_.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:_.File_is_CommonJS_module_because_0_does_not_have_field_type,zI(ka(e.packageJsonLocations),n))):(i=e.packageJsonLocations)!=null&&i.length&&(s??(s=[])).push(Ns(void 0,_.File_is_CommonJS_module_because_package_json_was_not_found));break}return s}function BV(e,t){var n;let i=e.getCompilerOptions().configFile;if(!((n=i?.configFileSpecs)!=null&&n.validatedFilesSpec))return;let s=e.getCanonicalFileName(t),o=ti(as(i.fileName,e.getCurrentDirectory())),c=Tc(i.configFileSpecs.validatedFilesSpec,p=>e.getCanonicalFileName(as(p,o))===s);return c!==-1?i.configFileSpecs.validatedFilesSpecBeforeSubstitution[c]:void 0}function zV(e,t){var n,i;let s=e.getCompilerOptions().configFile;if(!((n=s?.configFileSpecs)!=null&&n.validatedIncludeSpecs))return;if(s.configFileSpecs.isDefaultIncludeSpec)return!0;let o=uc(t,".json"),c=ti(as(s.fileName,e.getCurrentDirectory())),p=e.useCaseSensitiveFileNames(),u=Tc((i=s?.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,g=>{if(o&&!Bo(g,".json"))return!1;let d=PG(g,c,"files");return!!d&&ev(`(?:${d})$`,p).test(t)});return u!==-1?s.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[u]:void 0}function GV(e,t,n){var i,s;let o=e.getCompilerOptions();if(s1(t)){let c=bE(e,t),p=WI(c)?c.file.text.substring(c.pos,c.end):`"${c.text}"`,u;switch(w.assert(WI(c)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:WI(c)?u=c.packageId?_.Imported_via_0_from_file_1_with_packageId_2:_.Imported_via_0_from_file_1:c.text===_b?u=c.packageId?_.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:_.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:u=c.packageId?_.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:_.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:w.assert(!c.packageId),u=_.Referenced_via_0_from_file_1;break;case 5:u=c.packageId?_.Type_library_referenced_via_0_from_file_1_with_packageId_2:_.Type_library_referenced_via_0_from_file_1;break;case 7:w.assert(!c.packageId),u=_.Library_referenced_via_0_from_file_1;break;default:w.assertNever(t)}return Ns(void 0,u,p,zI(c.file,n),c.packageId&&A0(c.packageId))}switch(t.kind){case 0:if(!((i=o.configFile)!=null&&i.configFileSpecs))return Ns(void 0,_.Root_file_specified_for_compilation);let c=as(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(BV(e,c))return Ns(void 0,_.Part_of_files_list_in_tsconfig_json);let u=zV(e,c);return Is(u)?Ns(void 0,_.Matched_by_include_pattern_0_in_1,u,zI(o.configFile,n)):Ns(void 0,u?_.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:_.Root_file_specified_for_compilation);case 1:case 2:let g=t.kind===2,d=w.checkDefined((s=e.getResolvedProjectReferences())==null?void 0:s[t.index]);return Ns(void 0,o.outFile?g?_.Output_from_referenced_project_0_included_because_1_specified:_.Source_from_referenced_project_0_included_because_1_specified:g?_.Output_from_referenced_project_0_included_because_module_is_specified_as_none:_.Source_from_referenced_project_0_included_because_module_is_specified_as_none,zI(d.sourceFile.fileName,n),o.outFile?"--outFile":"--out");case 8:{let h=o.types?t.packageId?[_.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,A0(t.packageId)]:[_.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[_.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,A0(t.packageId)]:[_.Entry_point_for_implicit_type_library_0,t.typeReference];return Ns(void 0,...h)}case 6:{if(t.index!==void 0)return Ns(void 0,_.Library_0_specified_in_compilerOptions,o.lib[t.index]);let h=P8(xa(o)),S=h?[_.Default_library_for_target_0,h]:[_.Default_library];return Ns(void 0,...S)}default:w.assertNever(t)}}function zI(e,t){let n=Is(e)?e:e.fileName;return t?t(n):n}function Rj(e,t,n,i,s,o,c,p){let u=e.getCompilerOptions(),g=e.getConfigFileParsingDiagnostics().slice(),d=g.length;Gn(g,e.getSyntacticDiagnostics(void 0,o)),g.length===d&&(Gn(g,e.getOptionsDiagnostics(o)),u.listFilesOnly||(Gn(g,e.getGlobalDiagnostics(o)),g.length===d&&Gn(g,e.getSemanticDiagnostics(void 0,o)),u.noEmit&&lf(u)&&g.length===d&&Gn(g,e.getDeclarationDiagnostics(void 0,o))));let h=u.listFilesOnly?{emitSkipped:!0,diagnostics:Ke}:e.emit(void 0,s,o,c,p);Gn(g,h.diagnostics);let S=Dw(g);if(S.forEach(t),n){let T=e.getCurrentDirectory();or(h.emittedFiles,x=>{let I=as(x,T);n(`TSFILE: ${I}`)}),WUe(e,n)}return i&&i(Nj(S),Mj(S)),{emitResult:h,diagnostics:S}}function JV(e,t,n,i,s,o,c,p){let{emitResult:u,diagnostics:g}=Rj(e,t,n,i,s,o,c,p);return u.emitSkipped&&g.length>0?1:g.length>0?2:0}var GI={close:no},TE=()=>GI;function UV(e=Nl,t){return{onWatchStatusChange:t||RV(e),watchFile:Js(e,e.watchFile)||TE,watchDirectory:Js(e,e.watchDirectory)||TE,setTimeout:Js(e,e.setTimeout)||no,clearTimeout:Js(e,e.clearTimeout)||no,preferNonRecursiveWatch:e.preferNonRecursiveWatch}}var Xl={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"};function VV(e,t){let n=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=n!==0?o=>e.trace(o):no,s=cV(e,n,i);return s.writeLog=i,s}function qV(e,t,n=e){let i=e.useCaseSensitiveFileNames(),s={getSourceFile:pV((o,c)=>c?e.readFile(o,c):s.readFile(o),void 0),getDefaultLibLocation:Js(e,e.getDefaultLibLocation),getDefaultLibFileName:o=>e.getDefaultLibFileName(o),writeFile:fV((o,c,p)=>e.writeFile(o,c,p),o=>e.createDirectory(o),o=>e.directoryExists(o)),getCurrentDirectory:up(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:hu(i),getNewLine:()=>Zy(t()),fileExists:o=>e.fileExists(o),readFile:o=>e.readFile(o),trace:Js(e,e.trace),directoryExists:Js(n,n.directoryExists),getDirectories:Js(n,n.getDirectories),realpath:Js(e,e.realpath),getEnvironmentVariable:Js(e,e.getEnvironmentVariable)||(()=>""),createHash:Js(e,e.createHash),readDirectory:Js(e,e.readDirectory),storeSignatureInfo:e.storeSignatureInfo,jsDocParsingMode:e.jsDocParsingMode};return s}function Oj(e,t){if(t.match(oae)){let n=t.length,i=n;for(let s=n-1;s>=0;s--){let o=t.charCodeAt(s);switch(o){case 10:s&&t.charCodeAt(s-1)===13&&s--;case 13:break;default:if(o<127||!qu(o)){i=s;continue}break}let c=t.substring(i,n);if(c.match(OU)){t=t.substring(0,i);break}else if(!c.match(FU))break;n=i}}return(e.createHash||SP)(t)}function Fj(e){let t=e.getSourceFile;e.getSourceFile=(...n)=>{let i=t.call(e,...n);return i&&(i.version=Oj(e,i.text)),i}}function $V(e,t){let n=up(()=>ti(ra(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:up(()=>e.getCurrentDirectory()),getDefaultLibLocation:n,getDefaultLibFileName:i=>Jn(n(),kM(i)),fileExists:i=>e.fileExists(i),readFile:(i,s)=>e.readFile(i,s),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,s,o,c,p)=>e.readDirectory(i,s,o,c,p),realpath:Js(e,e.realpath),getEnvironmentVariable:Js(e,e.getEnvironmentVariable),trace:i=>e.write(i+e.newLine),createDirectory:i=>e.createDirectory(i),writeFile:(i,s,o)=>e.writeFile(i,s,o),createHash:Js(e,e.createHash),createProgram:t||AV,storeSignatureInfo:e.storeSignatureInfo,now:Js(e,e.now)}}function fke(e=Nl,t,n,i){let s=c=>e.write(c+e.newLine),o=$V(e,t);return jW(o,UV(e,i)),o.afterProgramCreate=c=>{let p=c.getCompilerOptions(),u=Zy(p);Rj(c,n,s,g=>o.onWatchStatusChange(fc(OV(g),g),u,p,g))},o}function _ke(e,t,n){t(n),e.exit(1)}function HV({configFileName:e,optionsToExtend:t,watchOptionsToExtend:n,extraFileExtensions:i,system:s,createProgram:o,reportDiagnostic:c,reportWatchStatus:p}){let u=c||aC(s),g=fke(s,o,u,p);return g.onUnRecoverableConfigFileDiagnostic=d=>_ke(s,u,d),g.configFileName=e,g.optionsToExtend=t,g.watchOptionsToExtend=n,g.extraFileExtensions=i,g}function QV({rootFiles:e,options:t,watchOptions:n,projectReferences:i,system:s,createProgram:o,reportDiagnostic:c,reportWatchStatus:p}){let u=fke(s,o,c||aC(s),p);return u.rootFiles=e,u.options=t,u.watchOptions=n,u.projectReferences=i,u}function joe(e){let t=e.system||Nl,n=e.host||(e.host=Lj(e.options,t)),i=Loe(e),s=JV(i,e.reportDiagnostic||aC(t),o=>n.trace&&n.trace(o),e.reportErrorSummary||e.options.pretty?(o,c)=>t.write(FV(o,c,t.newLine,n)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),s}function jj(e,t){let n=i1(e);if(!n)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(n,e.configFilePath);else{let s=t.readFile(n);if(!s)return;i=iV(n,s)}if(!(!i||i.version!==Vi||!rR(i)))return Ioe(i,n,t)}function Lj(e,t=Nl){let n=yj(e,void 0,t);return n.createHash=Js(t,t.createHash),n.storeSignatureInfo=t.storeSignatureInfo,Fj(n),yE(n,i=>So(i,n.getCurrentDirectory(),n.getCanonicalFileName)),n}function Loe({rootNames:e,options:t,configFileParsingDiagnostics:n,projectReferences:i,host:s,createProgram:o}){s=s||Lj(t),o=o||AV;let c=jj(t,s);return o(e,t,s,c,n,i)}function dke(e,t,n,i,s,o,c,p){return gs(e)?QV({rootFiles:e,options:t,watchOptions:p,projectReferences:c,system:n,createProgram:i,reportDiagnostic:s,reportWatchStatus:o}):HV({configFileName:e,optionsToExtend:t,watchOptionsToExtend:c,extraFileExtensions:p,system:n,createProgram:i,reportDiagnostic:s,reportWatchStatus:o})}function KV(e){let t,n,i,s,o=new Map([[void 0,void 0]]),c,p,u,g,d=e.extendedConfigCache,h=!1,S=new Map,T,x=!1,I=e.useCaseSensitiveFileNames(),P=e.getCurrentDirectory(),{configFileName:E,optionsToExtend:F={},watchOptionsToExtend:O,extraFileExtensions:W,createProgram:z}=e,{rootFiles:$,options:X,watchOptions:U,projectReferences:_e}=e,re,V,ce=!1,oe=!1,le=E===void 0?void 0:mj(e,P,I),de=le||e,ve=wj(e,de),H=Mr();E&&e.configFileParsingResult&&(wr(e.configFileParsingResult),H=Mr()),zn(_.Starting_compilation_in_watch_mode),E&&!e.configFileParsingResult&&(H=Zy(F),w.assert(!$),oa(),H=Mr()),w.assert(X),w.assert($);let{watchFile:Se,watchDirectory:Je,writeLog:ye}=VV(e,X),ee=hu(I);ye(`Current directory: ${P} CaseSensitiveFileNames: ${I}`);let ge;E&&(ge=Se(E,tn,2e3,U,Xl.ConfigFile));let ke=qV(e,()=>X,de);Fj(ke);let Oe=ke.getSourceFile;ke.getSourceFile=(Tt,...Rt)=>us(Tt,ft(Tt),...Rt),ke.getSourceFileByPath=us,ke.getNewLine=()=>H,ke.fileExists=bi,ke.onReleaseOldSourceFile=rs,ke.onReleaseParsedCommandLine=Mt,ke.toPath=ft,ke.getCompilationSettings=()=>X,ke.useSourceOfProjectReferenceRedirect=Js(e,e.useSourceOfProjectReferenceRedirect),ke.preferNonRecursiveWatch=e.preferNonRecursiveWatch,ke.watchDirectoryOfFailedLookupLocation=(Tt,Rt,Ye)=>Je(Tt,Rt,Ye,U,Xl.FailedLookupLocations),ke.watchAffectingFileLocation=(Tt,Rt)=>Se(Tt,Rt,2e3,U,Xl.AffectingFileLocation),ke.watchTypeRootsDirectory=(Tt,Rt,Ye)=>Je(Tt,Rt,Ye,U,Xl.TypeRoots),ke.getCachedDirectoryStructureHost=()=>le,ke.scheduleInvalidateResolutionsOfFailedLookupLocations=qe,ke.onInvalidatedResolution=ar,ke.onChangedAutomaticTypeDirectiveNames=ar,ke.fileIsOpen=$h,ke.getCurrentProgram=Qe,ke.writeLog=ye,ke.getParsedCommandLine=Ds;let nt=MV(ke,E?ti(as(E,P)):P,!1);ke.resolveModuleNameLiterals=Js(e,e.resolveModuleNameLiterals),ke.resolveModuleNames=Js(e,e.resolveModuleNames),!ke.resolveModuleNameLiterals&&!ke.resolveModuleNames&&(ke.resolveModuleNameLiterals=nt.resolveModuleNameLiterals.bind(nt)),ke.resolveTypeReferenceDirectiveReferences=Js(e,e.resolveTypeReferenceDirectiveReferences),ke.resolveTypeReferenceDirectives=Js(e,e.resolveTypeReferenceDirectives),!ke.resolveTypeReferenceDirectiveReferences&&!ke.resolveTypeReferenceDirectives&&(ke.resolveTypeReferenceDirectiveReferences=nt.resolveTypeReferenceDirectiveReferences.bind(nt)),ke.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):nt.resolveLibrary.bind(nt),ke.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?Js(e,e.getModuleResolutionCache):()=>nt.getModuleResolutionCache();let Ue=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?Js(e,e.hasInvalidatedResolutions)||cS:$h,te=e.resolveLibrary?Js(e,e.hasInvalidatedLibResolutions)||cS:$h;return t=jj(X,ke),St(),E?{getCurrentProgram:xe,getProgram:ei,close:Ne,getResolutionCache:Ie}:{getCurrentProgram:xe,getProgram:ei,updateRootFileNames:fr,close:Ne,getResolutionCache:Ie};function Ne(){_i(),nt.clear(),cf(S,Tt=>{Tt&&Tt.fileWatcher&&(Tt.fileWatcher.close(),Tt.fileWatcher=void 0)}),ge&&(ge.close(),ge=void 0),d?.clear(),d=void 0,g&&(cf(g,J_),g=void 0),s&&(cf(s,J_),s=void 0),i&&(cf(i,Fd),i=void 0),u&&(cf(u,Tt=>{var Rt;(Rt=Tt.watcher)==null||Rt.close(),Tt.watcher=void 0,Tt.watchedDirectories&&cf(Tt.watchedDirectories,J_),Tt.watchedDirectories=void 0}),u=void 0),t=void 0}function Ie(){return nt}function xe(){return t}function Qe(){return t&&t.getProgramOrUndefined()}function St(){ye("Synchronizing program"),w.assert(X),w.assert($),_i();let Tt=xe();x&&(H=Mr(),Tt&&SF(Tt.getCompilerOptions(),X)&&nt.onChangesAffectModuleResolution());let{hasInvalidatedResolutions:Rt,hasInvalidatedLibResolutions:Ye}=nt.createHasInvalidatedResolutions(Ue,te),{originalReadFile:Gt,originalFileExists:ln,originalDirectoryExists:Ae,originalCreateDirectory:wt,originalWriteFile:fe,readFileWithCache:j}=yE(ke,ft);return vV(Qe(),$,X,je=>Un(je,j),je=>ke.fileExists(je),Rt,Ye,Sn,Ds,_e)?oe&&(h&&zn(_.File_change_detected_Starting_incremental_compilation),t=z(void 0,void 0,ke,t,V,_e),oe=!1):(h&&zn(_.File_change_detected_Starting_incremental_compilation),Bt(Rt,Ye)),h=!1,e.afterProgramCreate&&Tt!==t&&e.afterProgramCreate(t),ke.readFile=Gt,ke.fileExists=ln,ke.directoryExists=Ae,ke.createDirectory=wt,ke.writeFile=fe,o?.forEach((je,q)=>{if(!q)at(),E&&Le(ft(E),X,U,Xl.ExtendedConfigFile);else{let vt=u?.get(q);vt&&kt(je,q,vt)}}),o=void 0,t}function Bt(Tt,Rt){ye("CreatingProgramWith::"),ye(` roots: ${JSON.stringify($)}`),ye(` options: ${JSON.stringify(X)}`),_e&&ye(` projectReferences: ${JSON.stringify(_e)}`);let Ye=x||!Qe();x=!1,oe=!1,nt.startCachingPerDirectoryResolution(),ke.hasInvalidatedResolutions=Tt,ke.hasInvalidatedLibResolutions=Rt,ke.hasChangedAutomaticTypeDirectiveNames=Sn;let Gt=Qe();if(t=z($,X,ke,t,V,_e),nt.finishCachingPerDirectoryResolution(t.getProgram(),Gt),oV(t.getProgram(),i||(i=new Map),Ee),Ye&&nt.updateTypeRootsWatch(),T){for(let ln of T)i.has(ln)||S.delete(ln);T=void 0}}function fr(Tt){w.assert(!E,"Cannot update root file names with config file watch mode"),$=Tt,ar()}function Mr(){return Zy(X||F)}function ft(Tt){return So(Tt,P,ee)}function qt(Tt){return typeof Tt=="boolean"}function Hr(Tt){return typeof Tt.version=="boolean"}function bi(Tt){let Rt=ft(Tt);return qt(S.get(Rt))?!1:de.fileExists(Tt)}function us(Tt,Rt,Ye,Gt,ln){let Ae=S.get(Rt);if(qt(Ae))return;let wt=typeof Ye=="object"?Ye.impliedNodeFormat:void 0;if(Ae===void 0||ln||Hr(Ae)||Ae.sourceFile.impliedNodeFormat!==wt){let fe=Oe(Tt,Ye,Gt);if(Ae)fe?(Ae.sourceFile=fe,Ae.version=fe.version,Ae.fileWatcher||(Ae.fileWatcher=se(Rt,Tt,pt,250,U,Xl.SourceFile))):(Ae.fileWatcher&&Ae.fileWatcher.close(),S.set(Rt,!1));else if(fe){let j=se(Rt,Tt,pt,250,U,Xl.SourceFile);S.set(Rt,{sourceFile:fe,version:fe.version,fileWatcher:j})}else S.set(Rt,!1);return fe}return Ae.sourceFile}function At(Tt){let Rt=S.get(Tt);Rt!==void 0&&(qt(Rt)?S.set(Tt,{version:!1}):Rt.version=!1)}function Un(Tt,Rt){let Ye=S.get(Tt);if(!Ye)return;if(Ye.version)return Ye.version;let Gt=Rt(Tt);return Gt!==void 0?Oj(ke,Gt):void 0}function rs(Tt,Rt,Ye){let Gt=S.get(Tt.resolvedPath);Gt!==void 0&&(qt(Gt)?(T||(T=[])).push(Tt.path):Gt.sourceFile===Tt&&(Gt.fileWatcher&&Gt.fileWatcher.close(),S.delete(Tt.resolvedPath),Ye||nt.removeResolutionsOfFile(Tt.path)))}function zn(Tt){e.onWatchStatusChange&&e.onWatchStatusChange(fc(Tt),H,X||F)}function Sn(){return nt.hasChangedAutomaticTypeDirectiveNames()}function _i(){return p?(e.clearTimeout(p),p=void 0,!0):!1}function qe(){if(!e.setTimeout||!e.clearTimeout)return nt.invalidateResolutionsOfFailedLookupLocations();let Tt=_i();ye(`Scheduling invalidateFailedLookup${Tt?", Cancelled earlier one":""}`),p=e.setTimeout(bt,250,"timerToInvalidateFailedLookupResolutions")}function bt(){p=void 0,nt.invalidateResolutionsOfFailedLookupLocations()&&ar()}function ar(){!e.setTimeout||!e.clearTimeout||(c&&e.clearTimeout(c),ye("Scheduling update"),c=e.setTimeout(Xn,250,"timerToUpdateProgram"))}function tn(){w.assert(!!E),n=2,ar()}function Xn(){c=void 0,h=!0,ei()}function ei(){switch(n){case 1:Mi();break;case 2:js();break;default:St();break}return xe()}function Mi(){ye("Reloading new file names and options"),w.assert(X),w.assert(E),n=0,$=eE(X.configFile.configFileSpecs,as(ti(E),P),X,ve,W),G7($,as(E,P),X.configFile.configFileSpecs,V,ce)&&(oe=!0),St()}function js(){w.assert(E),ye(`Reloading config file: ${E}`),n=0,le&&le.clearCache(),oa(),x=!0,(o??(o=new Map)).set(void 0,void 0),St()}function oa(){w.assert(E),wr(I4(E,F,ve,d||(d=new Map),O,W))}function wr(Tt){$=Tt.fileNames,X=Tt.options,U=Tt.watchOptions,_e=Tt.projectReferences,re=Tt.wildcardDirectories,V=KS(Tt).slice(),ce=N4(Tt.raw),oe=!0}function Ds(Tt){let Rt=ft(Tt),Ye=u?.get(Rt);if(Ye){if(!Ye.updateLevel)return Ye.parsedCommandLine;if(Ye.parsedCommandLine&&Ye.updateLevel===1&&!e.getParsedCommandLine){ye("Reloading new file names and options"),w.assert(X);let ln=eE(Ye.parsedCommandLine.options.configFile.configFileSpecs,as(ti(Tt),P),X,ve);return Ye.parsedCommandLine={...Ye.parsedCommandLine,fileNames:ln},Ye.updateLevel=void 0,Ye.parsedCommandLine}}ye(`Loading config file: ${Tt}`);let Gt=e.getParsedCommandLine?e.getParsedCommandLine(Tt):tt(Tt);return Ye?(Ye.parsedCommandLine=Gt,Ye.updateLevel=void 0):(u||(u=new Map)).set(Rt,Ye={parsedCommandLine:Gt}),(o??(o=new Map)).set(Rt,Tt),Gt}function tt(Tt){let Rt=ve.onUnRecoverableConfigFileDiagnostic;ve.onUnRecoverableConfigFileDiagnostic=no;let Ye=I4(Tt,void 0,ve,d||(d=new Map),O);return ve.onUnRecoverableConfigFileDiagnostic=Rt,Ye}function Mt(Tt){var Rt;let Ye=ft(Tt),Gt=u?.get(Ye);Gt&&(u.delete(Ye),Gt.watchedDirectories&&cf(Gt.watchedDirectories,J_),(Rt=Gt.watcher)==null||Rt.close(),aV(Ye,g))}function se(Tt,Rt,Ye,Gt,ln,Ae){return Se(Rt,(wt,fe)=>Ye(wt,fe,Tt),Gt,ln,Ae)}function pt(Tt,Rt,Ye){Z(Tt,Ye,Rt),Rt===2&&S.has(Ye)&&nt.invalidateResolutionOfFile(Ye),At(Ye),ar()}function Z(Tt,Rt,Ye){le&&le.addOrDeleteFile(Tt,Rt,Ye)}function Ee(Tt,Rt){return u?.has(Tt)?GI:se(Tt,Rt,et,500,U,Xl.MissingFile)}function et(Tt,Rt,Ye){Z(Tt,Ye,Rt),Rt===0&&i.has(Ye)&&(i.get(Ye).close(),i.delete(Ye),At(Ye),ar())}function at(){Q4(s||(s=new Map),re,Pt)}function Pt(Tt,Rt){return Je(Tt,Ye=>{w.assert(E),w.assert(X);let Gt=ft(Ye);le&&le.addOrDeleteFileOrDirectory(Ye,Gt),At(Gt),!K4({watchedDirPath:ft(Tt),fileOrDirectory:Ye,fileOrDirectoryPath:Gt,configFileName:E,extraFileExtensions:W,options:X,program:xe()||$,currentDirectory:P,useCaseSensitiveFileNames:I,writeLog:ye,toPath:ft})&&n!==2&&(n=1,ar())},Rt,U,Xl.WildcardDirectory)}function Le(Tt,Rt,Ye,Gt){gj(Tt,Rt,g||(g=new Map),(ln,Ae)=>Se(ln,(wt,fe)=>{var j;Z(ln,Ae,fe),d&&hj(d,Ae,ft);let je=(j=g.get(Ae))==null?void 0:j.projects;je?.size&&je.forEach(q=>{if(E&&ft(E)===q)n=2;else{let vt=u?.get(q);vt&&(vt.updateLevel=2),nt.removeResolutionsFromProjectReferenceRedirects(q)}ar()})},2e3,Ye,Gt),ft)}function kt(Tt,Rt,Ye){var Gt,ln,Ae,wt;Ye.watcher||(Ye.watcher=Se(Tt,(fe,j)=>{Z(Tt,Rt,j);let je=u?.get(Rt);je&&(je.updateLevel=2),nt.removeResolutionsFromProjectReferenceRedirects(Rt),ar()},2e3,((Gt=Ye.parsedCommandLine)==null?void 0:Gt.watchOptions)||U,Xl.ConfigFileOfReferencedProject)),Q4(Ye.watchedDirectories||(Ye.watchedDirectories=new Map),(ln=Ye.parsedCommandLine)==null?void 0:ln.wildcardDirectories,(fe,j)=>{var je;return Je(fe,q=>{let vt=ft(q);le&&le.addOrDeleteFileOrDirectory(q,vt),At(vt);let jt=u?.get(Rt);jt?.parsedCommandLine&&(K4({watchedDirPath:ft(fe),fileOrDirectory:q,fileOrDirectoryPath:vt,configFileName:Tt,options:jt.parsedCommandLine.options,program:jt.parsedCommandLine.fileNames,currentDirectory:P,useCaseSensitiveFileNames:I,writeLog:ye,toPath:ft})||jt.updateLevel!==2&&(jt.updateLevel=1,ar()))},j,((je=Ye.parsedCommandLine)==null?void 0:je.watchOptions)||U,Xl.WildcardDirectoryOfReferencedProject)}),Le(Rt,(Ae=Ye.parsedCommandLine)==null?void 0:Ae.options,((wt=Ye.parsedCommandLine)==null?void 0:wt.watchOptions)||U,Xl.ExtendedConfigOfReferencedProject)}}var Woe=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutputMissing=3]="OutputMissing",e[e.ErrorReadingFile=4]="ErrorReadingFile",e[e.OutOfDateWithSelf=5]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfoWithPendingEmit=7]="OutOfDateBuildInfoWithPendingEmit",e[e.OutOfDateBuildInfoWithErrors=8]="OutOfDateBuildInfoWithErrors",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(Woe||{});function XV(e){return uc(e,".json")?e:Jn(e,"tsconfig.json")}var BUe=new Date(-864e13);function zUe(e,t,n){let i=e.get(t),s;return i||(s=n(),e.set(t,s)),i||s}function Boe(e,t){return zUe(e,t,()=>new Map)}function YV(e){return e.now?e.now():new Date}function oC(e){return!!e&&!!e.buildOrder}function sR(e){return oC(e)?e.buildOrder:e}function Wj(e,t){return n=>{let i=t?`[${QS(iR(e),"\x1B[90m")}] `:`${iR(e)} - `;i+=`${tg(n.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function mke(e,t,n,i){let s=$V(e,t);return s.getModifiedTime=e.getModifiedTime?o=>e.getModifiedTime(o):lS,s.setModifiedTime=e.setModifiedTime?(o,c)=>e.setModifiedTime(o,c):no,s.deleteFile=e.deleteFile?o=>e.deleteFile(o):no,s.reportDiagnostic=n||aC(e),s.reportSolutionBuilderStatus=i||Wj(e),s.now=Js(e,e.now),s}function zoe(e=Nl,t,n,i,s){let o=mke(e,t,n,i);return o.reportErrorSummary=s,o}function Goe(e=Nl,t,n,i,s){let o=mke(e,t,n,i),c=UV(e,s);return jW(o,c),o}function GUe(e){let t={};return E7.forEach(n=>{_o(e,n.name)&&(t[n.name]=e[n.name])}),t.tscBuild=!0,t}function Joe(e,t,n){return Fke(!1,e,t,n)}function Uoe(e,t,n,i){return Fke(!0,e,t,n,i)}function JUe(e,t,n,i,s){let o=t,c=t,p=GUe(i),u=qV(o,()=>I.projectCompilerOptions);Fj(u),u.getParsedCommandLine=P=>JI(I,P,Mg(I,P)),u.resolveModuleNameLiterals=Js(o,o.resolveModuleNameLiterals),u.resolveTypeReferenceDirectiveReferences=Js(o,o.resolveTypeReferenceDirectiveReferences),u.resolveLibrary=Js(o,o.resolveLibrary),u.resolveModuleNames=Js(o,o.resolveModuleNames),u.resolveTypeReferenceDirectives=Js(o,o.resolveTypeReferenceDirectives),u.getModuleResolutionCache=Js(o,o.getModuleResolutionCache);let g,d;!u.resolveModuleNameLiterals&&!u.resolveModuleNames&&(g=NI(u.getCurrentDirectory(),u.getCanonicalFileName),u.resolveModuleNameLiterals=(P,E,F,O,W)=>Y4(P,E,F,O,W,o,g,hV),u.getModuleResolutionCache=()=>g),!u.resolveTypeReferenceDirectiveReferences&&!u.resolveTypeReferenceDirectives&&(d=Q7(u.getCurrentDirectory(),u.getCanonicalFileName,void 0,g?.getPackageJsonInfoCache(),g?.optionsToRedirectsKey),u.resolveTypeReferenceDirectiveReferences=(P,E,F,O,W)=>Y4(P,E,F,O,W,o,d,Sj));let h;u.resolveLibrary||(h=NI(u.getCurrentDirectory(),u.getCanonicalFileName,void 0,g?.getPackageJsonInfoCache()),u.resolveLibrary=(P,E,F)=>K7(P,E,F,o,h)),u.getBuildInfo=(P,E)=>Ike(I,P,Mg(I,E),void 0);let{watchFile:S,watchDirectory:T,writeLog:x}=VV(c,i),I={host:o,hostWithWatch:c,parseConfigFileHost:wj(o),write:Js(o,o.trace),options:i,baseCompilerOptions:p,rootNames:n,baseWatchOptions:s,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:u,moduleResolutionCache:g,typeReferenceDirectiveResolutionCache:d,libraryResolutionCache:h,buildOrder:void 0,readFileWithCache:P=>o.readFile(P),projectCompilerOptions:p,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:S,watchDirectory:T,writeLog:x};return I}function zd(e,t){return So(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Mg(e,t){let{resolvedConfigFilePaths:n}=e,i=n.get(t);if(i!==void 0)return i;let s=zd(e,t);return n.set(t,s),s}function gke(e){return!!e.options}function UUe(e,t){let n=e.configFileCache.get(t);return n&&gke(n)?n:void 0}function JI(e,t,n){let{configFileCache:i}=e,s=i.get(n);if(s)return gke(s)?s:void 0;dc("SolutionBuilder::beforeConfigFileParsing");let o,{parseConfigFileHost:c,baseCompilerOptions:p,baseWatchOptions:u,extendedConfigCache:g,host:d}=e,h;return d.getParsedCommandLine?(h=d.getParsedCommandLine(t),h||(o=fc(_.File_0_not_found,t))):(c.onUnRecoverableConfigFileDiagnostic=S=>o=S,h=I4(t,p,c,g,u),c.onUnRecoverableConfigFileDiagnostic=no),i.set(n,h||o),dc("SolutionBuilder::afterConfigFileParsing"),P_("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),h}function aR(e,t){return XV(ib(e.compilerHost.getCurrentDirectory(),t))}function hke(e,t){let n=new Map,i=new Map,s=[],o,c;for(let u of t)p(u);return c?{buildOrder:o||Ke,circularDiagnostics:c}:o||Ke;function p(u,g){let d=Mg(e,u);if(i.has(d))return;if(n.has(d)){g||(c||(c=[])).push(fc(_.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,s.join(`\r
|
|
`)));return}n.set(d,!0),s.push(u);let h=JI(e,u,d);if(h&&h.projectReferences)for(let S of h.projectReferences){let T=aR(e,S.path);p(T,g||S.circular)}s.pop(),i.set(d,!0),(o||(o=[])).push(u)}}function Bj(e){return e.buildOrder||VUe(e)}function VUe(e){let t=hke(e,e.rootNames.map(s=>aR(e,s)));e.resolvedConfigFilePaths.clear();let n=new Set(sR(t).map(s=>Mg(e,s))),i={onDeleteValue:no};return dh(e.configFileCache,n,i),dh(e.projectStatus,n,i),dh(e.builderPrograms,n,i),dh(e.diagnostics,n,i),dh(e.projectPendingBuild,n,i),dh(e.projectErrorsReported,n,i),dh(e.buildInfoCache,n,i),dh(e.outputTimeStamps,n,i),dh(e.lastCachedPackageJsonLookups,n,i),e.watch&&(dh(e.allWatchedConfigFiles,n,{onDeleteValue:Fd}),e.allWatchedExtendedConfigFiles.forEach(s=>{s.projects.forEach(o=>{n.has(o)||s.projects.delete(o)}),s.close()}),dh(e.allWatchedWildcardDirectories,n,{onDeleteValue:s=>s.forEach(J_)}),dh(e.allWatchedInputFiles,n,{onDeleteValue:s=>s.forEach(Fd)}),dh(e.allWatchedPackageJsonFiles,n,{onDeleteValue:s=>s.forEach(Fd)})),e.buildOrder=t}function yke(e,t,n){let i=t&&aR(e,t),s=Bj(e);if(oC(s))return s;if(i){let c=Mg(e,i);if(Tc(s,u=>Mg(e,u)===c)===-1)return}let o=i?hke(e,[i]):s;return w.assert(!oC(o)),w.assert(!n||i!==void 0),w.assert(!n||o[o.length-1]===i),n?o.slice(0,o.length-1):o}function vke(e){e.cache&&Voe(e);let{compilerHost:t,host:n}=e,i=e.readFileWithCache,s=t.getSourceFile,{originalReadFile:o,originalFileExists:c,originalDirectoryExists:p,originalCreateDirectory:u,originalWriteFile:g,getSourceFileWithCache:d,readFileWithCache:h}=yE(n,S=>zd(e,S),(...S)=>s.call(t,...S));e.readFileWithCache=h,t.getSourceFile=d,e.cache={originalReadFile:o,originalFileExists:c,originalDirectoryExists:p,originalCreateDirectory:u,originalWriteFile:g,originalReadFileWithCache:i,originalGetSourceFile:s}}function Voe(e){if(!e.cache)return;let{cache:t,host:n,compilerHost:i,extendedConfigCache:s,moduleResolutionCache:o,typeReferenceDirectiveResolutionCache:c,libraryResolutionCache:p}=e;n.readFile=t.originalReadFile,n.fileExists=t.originalFileExists,n.directoryExists=t.originalDirectoryExists,n.createDirectory=t.originalCreateDirectory,n.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,s.clear(),o?.clear(),c?.clear(),p?.clear(),e.cache=void 0}function bke(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function Ske({projectPendingBuild:e},t,n){let i=e.get(t);(i===void 0||i<n)&&e.set(t,n)}function Tke(e,t){if(!e.allProjectBuildPending)return;e.allProjectBuildPending=!1,e.options.watch&&ece(e,_.Starting_compilation_in_watch_mode),vke(e),sR(Bj(e)).forEach(i=>e.projectPendingBuild.set(Mg(e,i),0)),t&&t.throwIfCancellationRequested()}var qoe=(e=>(e[e.Build=0]="Build",e[e.UpdateOutputFileStamps=1]="UpdateOutputFileStamps",e))(qoe||{});function kke(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function qUe(e,t,n,i,s){let o=!0;return{kind:1,project:t,projectPath:n,buildOrder:s,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{Pke(e,i,n),o=!1},done:()=>(o&&Pke(e,i,n),dc("SolutionBuilder::Timestamps only updates"),kke(e,n))}}function $Ue(e,t,n,i,s,o,c){let p=0,u,g;return{kind:0,project:t,projectPath:n,buildOrder:c,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>h(Do),getProgram:()=>h(P=>P.getProgramOrUndefined()),getSourceFile:P=>h(E=>E.getSourceFile(P)),getSourceFiles:()=>S(P=>P.getSourceFiles()),getOptionsDiagnostics:P=>S(E=>E.getOptionsDiagnostics(P)),getGlobalDiagnostics:P=>S(E=>E.getGlobalDiagnostics(P)),getConfigFileParsingDiagnostics:()=>S(P=>P.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(P,E)=>S(F=>F.getSyntacticDiagnostics(P,E)),getAllDependencies:P=>S(E=>E.getAllDependencies(P)),getSemanticDiagnostics:(P,E)=>S(F=>F.getSemanticDiagnostics(P,E)),getSemanticDiagnosticsOfNextAffectedFile:(P,E)=>h(F=>F.getSemanticDiagnosticsOfNextAffectedFile&&F.getSemanticDiagnosticsOfNextAffectedFile(P,E)),emit:(P,E,F,O,W)=>P||O?h(z=>{var $,X;return z.emit(P,E,F,O,W||((X=($=e.host).getCustomTransformers)==null?void 0:X.call($,t)))}):(I(0,F),x(E,F,W)),done:d};function d(P,E,F){return I(3,P,E,F),dc("SolutionBuilder::Projects built"),kke(e,n)}function h(P){return I(0),u&&P(u)}function S(P){return h(P)||Ke}function T(){var P,E,F;if(w.assert(u===void 0),e.options.dry){Nf(e,_.A_non_dry_build_would_build_project_0,t),g=1,p=2;return}if(e.options.verbose&&Nf(e,_.Building_project_0,t),s.fileNames.length===0){oR(e,n,KS(s)),g=0,p=2;return}let{host:O,compilerHost:W}=e;if(e.projectCompilerOptions=s.options,(P=e.moduleResolutionCache)==null||P.update(s.options),(E=e.typeReferenceDirectiveResolutionCache)==null||E.update(s.options),u=O.createProgram(s.fileNames,s.options,W,HUe(e,n,s),KS(s),s.projectReferences),e.watch){let z=(F=e.moduleResolutionCache)==null?void 0:F.getPackageJsonInfoCache().getInternalMap();e.lastCachedPackageJsonLookups.set(n,z&&new Set(ds(z.values(),$=>e.host.realpath&&(H7($)||$.directoryExists)?e.host.realpath(Jn($.packageDirectory,"package.json")):Jn($.packageDirectory,"package.json")))),e.builderPrograms.set(n,u)}p++}function x(P,E,F){var O,W,z;w.assertIsDefined(u),w.assert(p===1);let{host:$,compilerHost:X}=e,U=new Map,_e=u.getCompilerOptions(),re=NS(_e),V,ce,{emitResult:oe,diagnostics:le}=Rj(u,de=>$.reportDiagnostic(de),e.write,void 0,(de,ve,H,Se,Je,ye)=>{var ee;let ge=zd(e,de);if(U.set(zd(e,de),de),ye?.buildInfo){ce||(ce=YV(e.host));let Oe=(ee=u.hasChangedEmitSignature)==null?void 0:ee.call(u),nt=tq(e,de,n);nt?(nt.buildInfo=ye.buildInfo,nt.modifiedTime=ce,Oe&&(nt.latestChangedDtsTime=ce)):e.buildInfoCache.set(n,{path:zd(e,de),buildInfo:ye.buildInfo,modifiedTime:ce,latestChangedDtsTime:Oe?ce:void 0})}let ke=ye?.differsOnlyInMap?Kx(e.host,de):void 0;(P||X.writeFile)(de,ve,H,Se,Je,ye),ye?.differsOnlyInMap?e.host.setModifiedTime(de,ke):!re&&e.watch&&(V||(V=Hoe(e,n))).set(ge,ce||(ce=YV(e.host)))},E,void 0,F||((W=(O=e.host).getCustomTransformers)==null?void 0:W.call(O,t)));return(!_e.noEmitOnError||!le.length)&&(U.size||o.type!==8)&&Dke(e,s,n,_.Updating_unchanged_output_timestamps_of_project_0,U),e.projectErrorsReported.set(n,!0),g=(z=u.hasChangedEmitSignature)!=null&&z.call(u)?0:2,le.length?(e.diagnostics.set(n,le),e.projectStatus.set(n,{type:0,reason:"it had errors"}),g|=4):(e.diagnostics.delete(n),e.projectStatus.set(n,{type:1,oldestOutputFileName:MO(U.values())??tV(s,!$.useCaseSensitiveFileNames())})),QUe(e,u),p=2,oe}function I(P,E,F,O){for(;p<=P&&p<3;){let W=p;switch(p){case 0:T();break;case 1:x(F,E,O);break;case 2:ZUe(e,t,n,i,s,c,w.checkDefined(g)),p++;break;default:}w.assert(p>W)}}}function xke(e,t,n){if(!e.projectPendingBuild.size||oC(t))return;let{options:i,projectPendingBuild:s}=e;for(let o=0;o<t.length;o++){let c=t[o],p=Mg(e,c),u=e.projectPendingBuild.get(p);if(u===void 0)continue;n&&(n=!1,Wke(e,t));let g=JI(e,c,p);if(!g){jke(e,p),s.delete(p);continue}u===2?(Mke(e,c,p,g),Rke(e,p,g),Oke(e,c,p,g),Yoe(e,c,p,g),Zoe(e,c,p,g)):u===1&&(g.fileNames=eE(g.options.configFile.configFileSpecs,ti(c),g.options,e.parseConfigFileHost),G7(g.fileNames,c,g.options.configFile.configFileSpecs,g.errors,N4(g.raw)),Yoe(e,c,p,g),Zoe(e,c,p,g));let d=Koe(e,g,p);if(!i.force){if(d.type===1){nq(e,c,d),oR(e,p,KS(g)),s.delete(p),i.dry&&Nf(e,_.Project_0_is_up_to_date,c);continue}if(d.type===2||d.type===15)return oR(e,p,KS(g)),{kind:1,status:d,project:c,projectPath:p,projectIndex:o,config:g}}if(d.type===12){nq(e,c,d),oR(e,p,KS(g)),s.delete(p),i.verbose&&Nf(e,d.upstreamProjectBlocked?_.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:_.Skipping_build_of_project_0_because_its_dependency_1_has_errors,c,d.upstreamProjectName);continue}if(d.type===16){nq(e,c,d),oR(e,p,KS(g)),s.delete(p);continue}return{kind:0,status:d,project:c,projectPath:p,projectIndex:o,config:g}}}function Cke(e,t,n){return nq(e,t.project,t.status),t.kind!==1?$Ue(e,t.project,t.projectPath,t.projectIndex,t.config,t.status,n):qUe(e,t.project,t.projectPath,t.config,n)}function $oe(e,t,n){let i=xke(e,t,n);return i&&Cke(e,i,t)}function HUe({options:e,builderPrograms:t,compilerHost:n},i,s){if(e.force)return;let o=t.get(i);return o||jj(s.options,n)}function QUe(e,t){t&&(e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()),e.projectCompilerOptions=e.baseCompilerOptions}function ZV(e){return!!e.watcher}function wke(e,t){let n=zd(e,t),i=e.filesWatched.get(n);if(e.watch&&i){if(!ZV(i))return i;if(i.modifiedTime)return i.modifiedTime}let s=Kx(e.host,t);return e.watch&&(i?i.modifiedTime=s:e.filesWatched.set(n,s)),s}function eq(e,t,n,i,s,o,c){let p=zd(e,t),u=e.filesWatched.get(p);if(u&&ZV(u))u.callbacks.push(n);else{let g=e.watchFile(t,(d,h,S)=>{let T=w.checkDefined(e.filesWatched.get(p));w.assert(ZV(T)),T.modifiedTime=S,T.callbacks.forEach(x=>x(d,h,S))},i,s,o,c);e.filesWatched.set(p,{callbacks:[n],watcher:g,modifiedTime:u})}return{close:()=>{let g=w.checkDefined(e.filesWatched.get(p));w.assert(ZV(g)),g.callbacks.length===1?(e.filesWatched.delete(p),J_(g)):Hx(g.callbacks,n)}}}function Hoe(e,t){if(!e.watch)return;let n=e.outputTimeStamps.get(t);return n||e.outputTimeStamps.set(t,n=new Map),n}function tq(e,t,n){let i=zd(e,t),s=e.buildInfoCache.get(n);return s?.path===i?s:void 0}function Ike(e,t,n,i){let s=zd(e,t),o=e.buildInfoCache.get(n);if(o!==void 0&&o.path===s)return o.buildInfo||void 0;let c=e.readFileWithCache(t),p=c?iV(t,c):void 0;return e.buildInfoCache.set(n,{path:s,buildInfo:p||!1,modifiedTime:i||bf}),p}function Qoe(e,t,n,i){let s=wke(e,t);if(n<s)return{type:5,outOfDateOutputFileName:i,newerInputFileName:t}}function KUe(e,t,n){var i,s,o,c,p;if(cU(t))return{type:16};let u,g=!!e.options.force;if(t.projectReferences){e.projectStatus.set(n,{type:13});for(let le of t.projectReferences){let de=sC(le),ve=Mg(e,de),H=JI(e,de,ve),Se=Koe(e,H,ve);if(!(Se.type===13||Se.type===16)){if(e.options.stopBuildOnErrors&&(Se.type===0||Se.type===12))return{type:12,upstreamProjectName:le.path,upstreamProjectBlocked:Se.type===12};g||(u||(u=[])).push({ref:le,refStatus:Se,resolvedRefPath:ve,resolvedConfig:H})}}}if(g)return{type:17};let{host:d}=e,h=i1(t.options),S=NS(t.options),T=tq(e,h,n),x=T?.modifiedTime||Kx(d,h);if(x===bf)return T||e.buildInfoCache.set(n,{path:zd(e,h),buildInfo:!1,modifiedTime:x}),{type:3,missingOutputFileName:h};let I=Ike(e,h,n,x);if(!I)return{type:4,fileName:h};let P=S&&rR(I)?I:void 0;if((P||!S)&&I.version!==Vi)return{type:14,version:I.version};if(!t.options.noCheck&&(I.errors||I.checkPending))return{type:8,buildInfoFile:h};if(P){if(!t.options.noCheck&&((i=P.changeFileSet)!=null&&i.length||(s=P.semanticDiagnosticsPerFile)!=null&&s.length||lf(t.options)&&((o=P.emitDiagnosticsPerFile)!=null&&o.length)))return{type:8,buildInfoFile:h};if(!t.options.noEmit&&((c=P.changeFileSet)!=null&&c.length||(p=P.affectedFilesPendingEmit)!=null&&p.length||P.pendingEmit!==void 0))return{type:7,buildInfoFile:h};if((!t.options.noEmit||t.options.noEmit&&lf(t.options))&&Dj(t.options,P.options||{},void 0,!!t.options.noEmit))return{type:9,buildInfoFile:h}}let E=x,F=h,O,W=BUe,z=!1,$=new Set,X;for(let le of t.fileNames){let de=wke(e,le);if(de===bf)return{type:0,reason:`${le} does not exist`};let ve=zd(e,le);if(x<de){let H,Se;if(P){X||(X=DV(P,h,d));let Je=X.roots.get(ve);H=X.fileInfos.get(Je??ve);let ye=H?e.readFileWithCache(Je??le):void 0;Se=ye!==void 0?Oj(d,ye):void 0,H&&H===Se&&(z=!0)}if(!H||H!==Se)return{type:5,outOfDateOutputFileName:h,newerInputFileName:le}}de>W&&(O=le,W=de),$.add(ve)}let U;if(P?(X||(X=DV(P,h,d)),U=Rl(X.roots,(le,de)=>$.has(de)?void 0:de)):U=or(Doe(I,h,d),le=>$.has(le)?void 0:le),U)return{type:10,buildInfoFile:h,inputFile:U};if(!S){let le=dj(t,!d.useCaseSensitiveFileNames()),de=Hoe(e,n);for(let ve of le){if(ve===h)continue;let H=zd(e,ve),Se=de?.get(H);if(Se||(Se=Kx(e.host,ve),de?.set(H,Se)),Se===bf)return{type:3,missingOutputFileName:ve};if(Se<W)return{type:5,outOfDateOutputFileName:ve,newerInputFileName:O};Se<E&&(E=Se,F=ve)}}let _e=!1;if(u)for(let{ref:le,refStatus:de,resolvedConfig:ve,resolvedRefPath:H}of u){if(de.newestInputFileTime&&de.newestInputFileTime<=E)continue;if(XUe(e,T??(T=e.buildInfoCache.get(n)),H))return{type:6,outOfDateOutputFileName:h,newerProjectName:le.path};let Se=YUe(e,ve.options,H);if(Se&&Se<=E){_e=!0;continue}return w.assert(F!==void 0,"Should have an oldest output filename here"),{type:6,outOfDateOutputFileName:F,newerProjectName:le.path}}let re=Qoe(e,t.options.configFilePath,E,F);if(re)return re;let V=or(t.options.configFile.extendedSourceFiles||Ke,le=>Qoe(e,le,E,F));if(V)return V;let ce=e.lastCachedPackageJsonLookups.get(n),oe=ce&&ch(ce,le=>Qoe(e,le,E,F));return oe||{type:_e?2:z?15:1,newestInputFileTime:W,newestInputFileName:O,oldestOutputFileName:F}}function XUe(e,t,n){return e.buildInfoCache.get(n).path===t.path}function Koe(e,t,n){if(t===void 0)return{type:0,reason:"config file deleted mid-build"};let i=e.projectStatus.get(n);if(i!==void 0)return i;dc("SolutionBuilder::beforeUpToDateCheck");let s=KUe(e,t,n);return dc("SolutionBuilder::afterUpToDateCheck"),P_("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(n,s),s}function Dke(e,t,n,i,s){if(t.options.noEmit)return;let o,c=i1(t.options),p=NS(t.options);if(c&&p){s?.has(zd(e,c))||(e.options.verbose&&Nf(e,i,t.options.configFilePath),e.host.setModifiedTime(c,o=YV(e.host)),tq(e,c,n).modifiedTime=o),e.outputTimeStamps.delete(n);return}let{host:u}=e,g=dj(t,!u.useCaseSensitiveFileNames()),d=Hoe(e,n),h=d?new Set:void 0;if(!s||g.length!==s.size){let S=!!e.options.verbose;for(let T of g){let x=zd(e,T);s?.has(x)||(S&&(S=!1,Nf(e,i,t.options.configFilePath)),u.setModifiedTime(T,o||(o=YV(e.host))),T===c?tq(e,c,n).modifiedTime=o:d&&(d.set(x,o),h.add(x)))}}d?.forEach((S,T)=>{!s?.has(T)&&!h.has(T)&&d.delete(T)})}function YUe(e,t,n){if(!t.composite)return;let i=w.checkDefined(e.buildInfoCache.get(n));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;let s=i.buildInfo&&rR(i.buildInfo)&&i.buildInfo.latestChangedDtsFile?e.host.getModifiedTime(as(i.buildInfo.latestChangedDtsFile,ti(i.path))):void 0;return i.latestChangedDtsTime=s||!1,s}function Pke(e,t,n){if(e.options.dry)return Nf(e,_.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);Dke(e,t,n,_.Updating_output_timestamps_of_project_0),e.projectStatus.set(n,{type:1,oldestOutputFileName:tV(t,!e.host.useCaseSensitiveFileNames())})}function ZUe(e,t,n,i,s,o,c){if(!(e.options.stopBuildOnErrors&&c&4)&&s.options.composite)for(let p=i+1;p<o.length;p++){let u=o[p],g=Mg(e,u);if(e.projectPendingBuild.has(g))continue;let d=JI(e,u,g);if(!(!d||!d.projectReferences))for(let h of d.projectReferences){let S=aR(e,h.path);if(Mg(e,S)!==n)continue;let T=e.projectStatus.get(g);if(T)switch(T.type){case 1:if(c&2){T.type=2;break}case 15:case 2:c&2||e.projectStatus.set(g,{type:6,outOfDateOutputFileName:T.oldestOutputFileName,newerProjectName:t});break;case 12:Mg(e,aR(e,T.upstreamProjectName))===n&&bke(e,g);break}Ske(e,g,0);break}}}function Ake(e,t,n,i,s,o){dc("SolutionBuilder::beforeBuild");let c=eVe(e,t,n,i,s,o);return dc("SolutionBuilder::afterBuild"),P_("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),c}function eVe(e,t,n,i,s,o){let c=yke(e,t,o);if(!c)return 3;Tke(e,n);let p=!0,u=0;for(;;){let g=$oe(e,c,p);if(!g)break;p=!1,g.done(n,i,s?.(g.project)),e.diagnostics.has(g.projectPath)||u++}return Voe(e),Lke(e,c),iVe(e,c),oC(c)?4:c.some(g=>e.diagnostics.has(Mg(e,g)))?u?2:1:0}function Eke(e,t,n){dc("SolutionBuilder::beforeClean");let i=tVe(e,t,n);return dc("SolutionBuilder::afterClean"),P_("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function tVe(e,t,n){let i=yke(e,t,n);if(!i)return 3;if(oC(i))return rq(e,i.circularDiagnostics),4;let{options:s,host:o}=e,c=s.dry?[]:void 0;for(let p of i){let u=Mg(e,p),g=JI(e,p,u);if(g===void 0){jke(e,u);continue}let d=dj(g,!o.useCaseSensitiveFileNames());if(!d.length)continue;let h=new Set(g.fileNames.map(S=>zd(e,S)));for(let S of d)h.has(zd(e,S))||o.fileExists(S)&&(c?c.push(S):(o.deleteFile(S),Xoe(e,u,0)))}return c&&Nf(e,_.A_non_dry_build_would_delete_the_following_files_Colon_0,c.map(p=>`\r
|
|
* ${p}`).join("")),0}function Xoe(e,t,n){e.host.getParsedCommandLine&&n===1&&(n=2),n===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,bke(e,t),Ske(e,t,n),vke(e)}function zj(e,t,n){e.reportFileChangeDetected=!0,Xoe(e,t,n),Nke(e,250,!0)}function Nke(e,t,n){let{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(rVe,t,"timerToBuildInvalidatedProject",e,n))}function rVe(e,t,n){dc("SolutionBuilder::beforeBuild");let i=nVe(t,n);dc("SolutionBuilder::afterBuild"),P_("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&Lke(t,i)}function nVe(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),ece(e,_.File_change_detected_Starting_incremental_compilation));let n=0,i=Bj(e),s=$oe(e,i,!1);if(s)for(s.done(),n++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;let o=xke(e,i,!1);if(!o)break;if(o.kind!==1&&(t||n===5)){Nke(e,100,!1);return}Cke(e,o,i).done(),o.kind!==1&&n++}return Voe(e),i}function Mke(e,t,n,i){!e.watch||e.allWatchedConfigFiles.has(n)||e.allWatchedConfigFiles.set(n,eq(e,t,()=>zj(e,n,2),2e3,i?.watchOptions,Xl.ConfigFile,t))}function Rke(e,t,n){gj(t,n?.options,e.allWatchedExtendedConfigFiles,(i,s)=>eq(e,i,()=>{var o;return(o=e.allWatchedExtendedConfigFiles.get(s))==null?void 0:o.projects.forEach(c=>zj(e,c,2))},2e3,n?.watchOptions,Xl.ExtendedConfigFile),i=>zd(e,i))}function Oke(e,t,n,i){e.watch&&Q4(Boe(e.allWatchedWildcardDirectories,n),i.wildcardDirectories,(s,o)=>e.watchDirectory(s,c=>{var p;K4({watchedDirPath:zd(e,s),fileOrDirectory:c,fileOrDirectoryPath:zd(e,c),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(n)||((p=UUe(e,n))==null?void 0:p.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:u=>e.writeLog(u),toPath:u=>zd(e,u)})||zj(e,n,1)},o,i?.watchOptions,Xl.WildcardDirectory,t))}function Yoe(e,t,n,i){e.watch&&yA(Boe(e.allWatchedInputFiles,n),new Set(i.fileNames),{createNewValue:s=>eq(e,s,()=>zj(e,n,0),250,i?.watchOptions,Xl.SourceFile,t),onDeleteValue:Fd})}function Zoe(e,t,n,i){!e.watch||!e.lastCachedPackageJsonLookups||yA(Boe(e.allWatchedPackageJsonFiles,n),e.lastCachedPackageJsonLookups.get(n),{createNewValue:s=>eq(e,s,()=>zj(e,n,0),2e3,i?.watchOptions,Xl.PackageJson,t),onDeleteValue:Fd})}function iVe(e,t){if(e.watchAllProjectsPending){dc("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(let n of sR(t)){let i=Mg(e,n),s=JI(e,n,i);Mke(e,n,i,s),Rke(e,i,s),s&&(Oke(e,n,i,s),Yoe(e,n,i,s),Zoe(e,n,i,s))}dc("SolutionBuilder::afterWatcherCreation"),P_("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function sVe(e){cf(e.allWatchedConfigFiles,Fd),cf(e.allWatchedExtendedConfigFiles,J_),cf(e.allWatchedWildcardDirectories,t=>cf(t,J_)),cf(e.allWatchedInputFiles,t=>cf(t,Fd)),cf(e.allWatchedPackageJsonFiles,t=>cf(t,Fd))}function Fke(e,t,n,i,s){let o=JUe(e,t,n,i,s);return{build:(c,p,u,g)=>Ake(o,c,p,u,g),clean:c=>Eke(o,c),buildReferences:(c,p,u,g)=>Ake(o,c,p,u,g,!0),cleanReferences:c=>Eke(o,c,!0),getNextInvalidatedProject:c=>(Tke(o,c),$oe(o,Bj(o),!1)),getBuildOrder:()=>Bj(o),getUpToDateStatusOfProject:c=>{let p=aR(o,c),u=Mg(o,p);return Koe(o,JI(o,p,u),u)},invalidateProject:(c,p)=>Xoe(o,c,p||0),close:()=>sVe(o)}}function ku(e,t){return kP(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Nf(e,t,...n){e.host.reportSolutionBuilderStatus(fc(t,...n))}function ece(e,t,...n){var i,s;(s=(i=e.hostWithWatch).onWatchStatusChange)==null||s.call(i,fc(t,...n),e.host.getNewLine(),e.baseCompilerOptions)}function rq({host:e},t){t.forEach(n=>e.reportDiagnostic(n))}function oR(e,t,n){rq(e,n),e.projectErrorsReported.set(t,!0),n.length&&e.diagnostics.set(t,n)}function jke(e,t){oR(e,t,[e.configFileCache.get(t)])}function Lke(e,t){if(!e.needsSummary)return;e.needsSummary=!1;let n=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e,s=0,o=[];oC(t)?(Wke(e,t.buildOrder),rq(e,t.circularDiagnostics),n&&(s+=Nj(t.circularDiagnostics)),n&&(o=[...o,...Mj(t.circularDiagnostics)])):(t.forEach(c=>{let p=Mg(e,c);e.projectErrorsReported.has(p)||rq(e,i.get(p)||Ke)}),n&&i.forEach(c=>s+=Nj(c)),n&&i.forEach(c=>[...o,...Mj(c)])),e.watch?ece(e,OV(s),s):e.host.reportErrorSummary&&e.host.reportErrorSummary(s,o)}function Wke(e,t){e.options.verbose&&Nf(e,_.Projects_in_this_build_Colon_0,t.map(n=>`\r
|
|
* `+ku(e,n)).join(""))}function aVe(e,t,n){switch(n.type){case 5:return Nf(e,_.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,ku(e,t),ku(e,n.outOfDateOutputFileName),ku(e,n.newerInputFileName));case 6:return Nf(e,_.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,ku(e,t),ku(e,n.outOfDateOutputFileName),ku(e,n.newerProjectName));case 3:return Nf(e,_.Project_0_is_out_of_date_because_output_file_1_does_not_exist,ku(e,t),ku(e,n.missingOutputFileName));case 4:return Nf(e,_.Project_0_is_out_of_date_because_there_was_error_reading_file_1,ku(e,t),ku(e,n.fileName));case 7:return Nf(e,_.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,ku(e,t),ku(e,n.buildInfoFile));case 8:return Nf(e,_.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors,ku(e,t),ku(e,n.buildInfoFile));case 9:return Nf(e,_.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,ku(e,t),ku(e,n.buildInfoFile));case 10:return Nf(e,_.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,ku(e,t),ku(e,n.buildInfoFile),ku(e,n.inputFile));case 1:if(n.newestInputFileTime!==void 0)return Nf(e,_.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,ku(e,t),ku(e,n.newestInputFileName||""),ku(e,n.oldestOutputFileName||""));break;case 2:return Nf(e,_.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,ku(e,t));case 15:return Nf(e,_.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,ku(e,t));case 11:return Nf(e,_.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,ku(e,t),ku(e,n.upstreamProjectName));case 12:return Nf(e,n.upstreamProjectBlocked?_.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:_.Project_0_can_t_be_built_because_its_dependency_1_has_errors,ku(e,t),ku(e,n.upstreamProjectName));case 0:return Nf(e,_.Project_0_is_out_of_date_because_1,ku(e,t),n.reason);case 14:return Nf(e,_.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,ku(e,t),n.version,Vi);case 17:return Nf(e,_.Project_0_is_being_forcibly_rebuilt,ku(e,t));case 16:case 13:break;default:}}function nq(e,t,n){e.options.verbose&&aVe(e,t,n)}var tce=(e=>(e[e.time=0]="time",e[e.count=1]="count",e[e.memory=2]="memory",e))(tce||{});function oVe(e){let t=cVe();return or(e.getSourceFiles(),n=>{let i=lVe(e,n),s=th(n).length;t.set(i,t.get(i)+s)}),t}function cVe(){let e=new Map;return e.set("Library",0),e.set("Definitions",0),e.set("TypeScript",0),e.set("JavaScript",0),e.set("JSON",0),e.set("Other",0),e}function lVe(e,t){if(e.isSourceFileDefaultLibrary(t))return"Library";if(t.isDeclarationFile)return"Definitions";let n=t.path;return Bc(n,EG)?"TypeScript":Bc(n,aI)?"JavaScript":uc(n,".json")?"JSON":"Other"}function iq(e,t,n){return Gj(e,n)?aC(e,!0):t}function Bke(e){return!!e.writeOutputIsTTY&&e.writeOutputIsTTY()&&!e.getEnvironmentVariable("NO_COLOR")}function Gj(e,t){return!t||typeof t.pretty>"u"?Bke(e):t.pretty}function zke(e){return e.options.all?yf(Bd.concat(Ik),(t,n)=>fM(t.name,n.name)):Mn(Bd.concat(Ik),t=>!!t.showInSimplifiedHelpView)}function sq(e){e.write(Qp(_.Version_0,Vi)+e.newLine)}function aq(e){if(!Bke(e))return{bold:d=>d,blue:d=>d,blueBackground:d=>d,brightWhite:d=>d};function n(d){return`\x1B[1m${d}\x1B[22m`}let i=e.getEnvironmentVariable("OS")&&e.getEnvironmentVariable("OS").toLowerCase().includes("windows"),s=e.getEnvironmentVariable("WT_SESSION"),o=e.getEnvironmentVariable("TERM_PROGRAM")&&e.getEnvironmentVariable("TERM_PROGRAM")==="vscode";function c(d){return i&&!s&&!o?g(d):`\x1B[94m${d}\x1B[39m`}let p=e.getEnvironmentVariable("COLORTERM")==="truecolor"||e.getEnvironmentVariable("TERM")==="xterm-256color";function u(d){return p?`\x1B[48;5;68m${d}\x1B[39;49m`:`\x1B[44m${d}\x1B[39;49m`}function g(d){return`\x1B[97m${d}\x1B[39m`}return{bold:n,blue:c,brightWhite:g,blueBackground:u}}function Gke(e){return`--${e.name}${e.shortName?`, -${e.shortName}`:""}`}function uVe(e,t,n,i){var s;let o=[],c=aq(e),p=Gke(t),u=x(t),g=typeof t.defaultValueDescription=="object"?Qp(t.defaultValueDescription):h(t.defaultValueDescription,t.type==="list"||t.type==="listOrElement"?t.element.type:t.type),d=((s=e.getWidthOfTerminal)==null?void 0:s.call(e))??0;if(d>=80){let I="";t.description&&(I=Qp(t.description)),o.push(...T(p,I,n,i,d,!0),e.newLine),S(u,t)&&(u&&o.push(...T(u.valueType,u.possibleValues,n,i,d,!1),e.newLine),g&&o.push(...T(Qp(_.default_Colon),g,n,i,d,!1),e.newLine)),o.push(e.newLine)}else{if(o.push(c.blue(p),e.newLine),t.description){let I=Qp(t.description);o.push(I)}if(o.push(e.newLine),S(u,t)){if(u&&o.push(`${u.valueType} ${u.possibleValues}`),g){u&&o.push(e.newLine);let I=Qp(_.default_Colon);o.push(`${I} ${g}`)}o.push(e.newLine)}o.push(e.newLine)}return o;function h(I,P){return I!==void 0&&typeof P=="object"?ds(P.entries()).filter(([,E])=>E===I).map(([E])=>E).join("/"):String(I)}function S(I,P){let E=["string"],F=[void 0,"false","n/a"],O=P.defaultValueDescription;return!(P.category===_.Command_line_Options||ws(E,I?.possibleValues)&&ws(F,O))}function T(I,P,E,F,O,W){let z=[],$=!0,X=P,U=O-F;for(;X.length>0;){let _e="";$?(_e=I.padStart(E),_e=_e.padEnd(F),_e=W?c.blue(_e):_e):_e="".padStart(F);let re=X.substr(0,U);X=X.slice(U),z.push(`${_e}${re}`),$=!1}return z}function x(I){if(I.type==="object")return;return{valueType:P(I),possibleValues:E(I)};function P(F){switch(w.assert(F.type!=="listOrElement"),F.type){case"string":case"number":case"boolean":return Qp(_.type_Colon);case"list":return Qp(_.one_or_more_Colon);default:return Qp(_.one_of_Colon)}}function E(F){let O;switch(F.type){case"string":case"number":case"boolean":O=F.type;break;case"list":case"listOrElement":O=E(F.element);break;case"object":O="";break;default:let W={};return F.type.forEach((z,$)=>{var X;(X=F.deprecatedKeys)!=null&&X.has($)||(W[z]||(W[z]=[])).push($)}),Object.entries(W).map(([,z])=>z.join("/")).join(", ")}return O}}}function Jke(e,t){let n=0;for(let c of t){let p=Gke(c).length;n=n>p?n:p}let i=n+2,s=i+2,o=[];for(let c of t){let p=uVe(e,c,i,s);o=[...o,...p]}return o[o.length-2]!==e.newLine&&o.push(e.newLine),o}function cR(e,t,n,i,s,o){let c=[];if(c.push(aq(e).bold(t)+e.newLine+e.newLine),s&&c.push(s+e.newLine+e.newLine),!i)return c=[...c,...Jke(e,n)],o&&c.push(o+e.newLine+e.newLine),c;let p=new Map;for(let u of n){if(!u.category)continue;let g=Qp(u.category),d=p.get(g)??[];d.push(u),p.set(g,d)}return p.forEach((u,g)=>{c.push(`### ${g}${e.newLine}${e.newLine}`),c=[...c,...Jke(e,u)]}),o&&c.push(o+e.newLine+e.newLine),c}function pVe(e,t){let n=aq(e),i=[...oq(e,`${Qp(_.tsc_Colon_The_TypeScript_Compiler)} - ${Qp(_.Version_0,Vi)}`)];i.push(n.bold(Qp(_.COMMON_COMMANDS))+e.newLine+e.newLine),c("tsc",_.Compiles_the_current_project_tsconfig_json_in_the_working_directory),c("tsc app.ts util.ts",_.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options),c("tsc -b",_.Build_a_composite_project_in_the_working_directory),c("tsc --init",_.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory),c("tsc -p ./path/to/tsconfig.json",_.Compiles_the_TypeScript_project_located_at_the_specified_path),c("tsc --help --all",_.An_expanded_version_of_this_information_showing_all_possible_compiler_options),c(["tsc --noEmit","tsc --target esnext"],_.Compiles_the_current_project_with_additional_settings);let s=t.filter(p=>p.isCommandLineOnly||p.category===_.Command_line_Options),o=t.filter(p=>!ws(s,p));i=[...i,...cR(e,Qp(_.COMMAND_LINE_FLAGS),s,!1,void 0,void 0),...cR(e,Qp(_.COMMON_COMPILER_OPTIONS),o,!1,void 0,I2(_.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))];for(let p of i)e.write(p);function c(p,u){let g=typeof p=="string"?[p]:p;for(let d of g)i.push(" "+n.blue(d)+e.newLine);i.push(" "+Qp(u)+e.newLine+e.newLine)}}function fVe(e,t,n,i){let s=[...oq(e,`${Qp(_.tsc_Colon_The_TypeScript_Compiler)} - ${Qp(_.Version_0,Vi)}`)];s=[...s,...cR(e,Qp(_.ALL_COMPILER_OPTIONS),t,!0,void 0,I2(_.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))],s=[...s,...cR(e,Qp(_.WATCH_OPTIONS),i,!1,Qp(_.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon))],s=[...s,...cR(e,Qp(_.BUILD_OPTIONS),Mn(n,o=>o!==Ik),!1,I2(_.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(let o of s)e.write(o)}function Uke(e,t){let n=[...oq(e,`${Qp(_.tsc_Colon_The_TypeScript_Compiler)} - ${Qp(_.Version_0,Vi)}`)];n=[...n,...cR(e,Qp(_.BUILD_OPTIONS),Mn(t,i=>i!==Ik),!1,I2(_.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(let i of n)e.write(i)}function oq(e,t){var n;let i=aq(e),s=[],o=((n=e.getWidthOfTerminal)==null?void 0:n.call(e))??0,c=5,p=i.blueBackground("".padStart(c)),u=i.blueBackground(i.brightWhite("TS ".padStart(c)));if(o>=t.length+c){let d=(o>120?120:o)-c;s.push(t.padEnd(d)+p+e.newLine),s.push("".padStart(d)+u+e.newLine)}else s.push(t+e.newLine),s.push(e.newLine);return s}function Vke(e,t){t.options.all?fVe(e,zke(t),XJ,Z2):pVe(e,zke(t))}function qke(e,t,n){let i=aC(e),s;if(n.options.locale&&EB(n.options.locale,e,n.errors),n.errors.length>0)return n.errors.forEach(i),e.exit(1);if(n.options.init)return gVe(e,i,n.options),e.exit(0);if(n.options.version)return sq(e),e.exit(0);if(n.options.help||n.options.all)return Vke(e,n),e.exit(0);if(n.options.watch&&n.options.listFilesOnly)return i(fc(_.Options_0_and_1_cannot_be_combined,"watch","listFilesOnly")),e.exit(1);if(n.options.project){if(n.fileNames.length!==0)return i(fc(_.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)),e.exit(1);let p=ra(n.options.project);if(!p||e.directoryExists(p)){if(s=Jn(p,"tsconfig.json"),!e.fileExists(s))return i(fc(_.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0,n.options.project)),e.exit(1)}else if(s=p,!e.fileExists(s))return i(fc(_.The_specified_path_does_not_exist_Colon_0,n.options.project)),e.exit(1)}else if(n.fileNames.length===0){let p=ra(e.getCurrentDirectory());s=lV(p,u=>e.fileExists(u))}if(n.fileNames.length===0&&!s)return n.options.showConfig?i(fc(_.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,ra(e.getCurrentDirectory()))):(sq(e),Vke(e,n)),e.exit(1);let o=e.getCurrentDirectory(),c=W7(n.options,p=>as(p,o));if(s){let p=new Map,u=Foe(s,c,p,n.watchOptions,e,i);if(c.showConfig)return u.errors.length!==0?(i=iq(e,i,u.options),u.errors.forEach(i),e.exit(1)):(e.write(JSON.stringify(iU(u,s,e),null,4)+e.newLine),e.exit(0));if(i=iq(e,i,u.options),mG(u.options))return nce(e,i)?void 0:_Ve(e,t,i,u,c,n.watchOptions,p);NS(u.options)?Kke(e,t,i,u):Qke(e,t,i,u)}else{if(c.showConfig)return e.write(JSON.stringify(iU(n,Jn(o,"tsconfig.json"),e),null,4)+e.newLine),e.exit(0);if(i=iq(e,i,c),mG(c))return nce(e,i)?void 0:dVe(e,t,i,n.fileNames,c,n.watchOptions);NS(c)?Kke(e,t,i,{...n,options:c}):Qke(e,t,i,{...n,options:c})}}function rce(e){if(e.length>0&&e[0].charCodeAt(0)===45){let t=e[0].slice(e[0].charCodeAt(1)===45?2:1).toLowerCase();return t===Ik.name||t===Ik.shortName}return!1}function $ke(e,t,n){if(rce(n)){let{buildOptions:s,watchOptions:o,projects:c,errors:p}=hse(n);if(s.generateCpuProfile&&e.enableCPUProfiler)e.enableCPUProfiler(s.generateCpuProfile,()=>Hke(e,t,s,o,c,p));else return Hke(e,t,s,o,c,p)}let i=mse(n,s=>e.readFile(s));if(i.options.generateCpuProfile&&e.enableCPUProfiler)e.enableCPUProfiler(i.options.generateCpuProfile,()=>qke(e,t,i));else return qke(e,t,i)}function nce(e,t){return!e.watchFile||!e.watchDirectory?(t(fc(_.The_current_host_does_not_support_the_0_option,"--watch")),e.exit(1),!0):!1}var Jj=2;function Hke(e,t,n,i,s,o){let c=iq(e,aC(e),n);if(n.locale&&EB(n.locale,e,o),o.length>0)return o.forEach(c),e.exit(1);if(n.help||s.length===0)return sq(e),Uke(e,w4),e.exit(0);if(!e.getModifiedTime||!e.setModifiedTime||n.clean&&!e.deleteFile)return c(fc(_.The_current_host_does_not_support_the_0_option,"--build")),e.exit(1);if(n.watch){if(nce(e,c))return;let h=Goe(e,void 0,c,Wj(e,Gj(e,n)),sce(e,n));h.jsDocParsingMode=Jj;let S=exe(e,n);Xke(e,t,h,S);let T=h.onWatchStatusChange,x=!1;h.onWatchStatusChange=(P,E,F,O)=>{T?.(P,E,F,O),x&&(P.code===_.Found_0_errors_Watching_for_file_changes.code||P.code===_.Found_1_error_Watching_for_file_changes.code)&&ace(I,S)};let I=Uoe(h,s,n,i);return I.build(),ace(I,S),x=!0,I}let p=zoe(e,void 0,c,Wj(e,Gj(e,n)),ice(e,n));p.jsDocParsingMode=Jj;let u=exe(e,n);Xke(e,t,p,u);let g=Joe(p,s,n),d=n.clean?g.clean():g.build();return ace(g,u),oZ(),e.exit(d)}function ice(e,t){return Gj(e,t)?(n,i)=>e.write(FV(n,i,e.newLine,e)):void 0}function Qke(e,t,n,i){let{fileNames:s,options:o,projectReferences:c}=i,p=yj(o,void 0,e);p.jsDocParsingMode=Jj;let u=p.getCurrentDirectory(),g=hu(p.useCaseSensitiveFileNames());yE(p,T=>So(T,u,g)),oce(e,o,!1);let d={rootNames:s,options:o,projectReferences:c,host:p,configFileParsingDiagnostics:KS(i)},h=eR(d),S=JV(h,n,T=>e.write(T+e.newLine),ice(e,o));return lq(e,h,void 0),t(h),e.exit(S)}function Kke(e,t,n,i){let{options:s,fileNames:o,projectReferences:c}=i;oce(e,s,!1);let p=Lj(s,e);p.jsDocParsingMode=Jj;let u=joe({host:p,system:e,rootNames:o,options:s,configFileParsingDiagnostics:KS(i),projectReferences:c,reportDiagnostic:n,reportErrorSummary:ice(e,s),afterProgramEmitAndDiagnostics:g=>{lq(e,g.getProgram(),void 0),t(g)}});return e.exit(u)}function Xke(e,t,n,i){Yke(e,n,!0),n.afterProgramEmitAndDiagnostics=s=>{lq(e,s.getProgram(),i),t(s)}}function Yke(e,t,n){let i=t.createProgram;t.createProgram=(s,o,c,p,u,g)=>(w.assert(s!==void 0||o===void 0&&!!p),o!==void 0&&oce(e,o,n),i(s,o,c,p,u,g))}function Zke(e,t,n){n.jsDocParsingMode=Jj,Yke(e,n,!1);let i=n.afterProgramCreate;n.afterProgramCreate=s=>{i(s),lq(e,s.getProgram(),void 0),t(s)}}function sce(e,t){return RV(e,Gj(e,t))}function _Ve(e,t,n,i,s,o,c){let p=HV({configFileName:i.options.configFilePath,optionsToExtend:s,watchOptionsToExtend:o,system:e,reportDiagnostic:n,reportWatchStatus:sce(e,i.options)});return Zke(e,t,p),p.configFileParsingResult=i,p.extendedConfigCache=c,KV(p)}function dVe(e,t,n,i,s,o){let c=QV({rootFiles:i,options:s,watchOptions:o,system:e,reportDiagnostic:n,reportWatchStatus:sce(e,s)});return Zke(e,t,c),KV(c)}function exe(e,t){if(e===Nl&&t.extendedDiagnostics)return KW(),mVe()}function mVe(){let e;return{addAggregateStatistic:t,forEachAggregateStatistics:n,clear:i};function t(s){let o=e?.get(s.name);o?o.type===2?o.value=Math.max(o.value,s.value):o.value+=s.value:(e??(e=new Map)).set(s.name,s)}function n(s){e?.forEach(s)}function i(){e=void 0}}function ace(e,t){if(!t)return;if(!iZ()){Nl.write(_.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+`
|
|
`);return}let n=[];n.push({name:"Projects in scope",value:sR(e.getBuildOrder()).length,type:1}),i("SolutionBuilder::Projects built"),i("SolutionBuilder::Timestamps only updates"),i("SolutionBuilder::Bundles updated"),t.forEachAggregateStatistics(o=>{o.name=`Aggregate ${o.name}`,n.push(o)}),QW((o,c)=>{cq(o)&&n.push({name:`${s(o)} time`,value:c,type:0})}),sZ(),KW(),t.clear(),nxe(Nl,n);function i(o){let c=Lve(o);c&&n.push({name:s(o),value:c,type:1})}function s(o){return o.replace("SolutionBuilder::","")}}function txe(e,t){return e===Nl&&(t.diagnostics||t.extendedDiagnostics)}function rxe(e,t){return e===Nl&&t.generateTrace}function oce(e,t,n){txe(e,t)&&KW(e),rxe(e,t)&&aZ(n?"build":"project",t.generateTrace,t.configFilePath)}function cq(e){return Zi(e,"SolutionBuilder::")}function lq(e,t,n){var i;let s=t.getCompilerOptions();rxe(e,s)&&((i=mn)==null||i.stopTracing());let o;if(txe(e,s)){o=[];let g=e.getMemoryUsage?e.getMemoryUsage():-1;p("Files",t.getSourceFiles().length);let d=oVe(t);if(s.extendedDiagnostics)for(let[P,E]of d.entries())p("Lines of "+P,E);else p("Lines",hw(d.values(),(P,E)=>P+E,0));p("Identifiers",t.getIdentifierCount()),p("Symbols",t.getSymbolCount()),p("Types",t.getTypeCount()),p("Instantiations",t.getInstantiationCount()),g>=0&&c({name:"Memory used",value:g,type:2},!0);let h=iZ(),S=h?vP("Program"):0,T=h?vP("Bind"):0,x=h?vP("Check"):0,I=h?vP("Emit"):0;if(s.extendedDiagnostics){let P=t.getRelationCacheSizes();p("Assignability cache size",P.assignable),p("Identity cache size",P.identity),p("Subtype cache size",P.subtype),p("Strict subtype cache size",P.strictSubtype),h&&QW((E,F)=>{cq(E)||u(`${E} time`,F,!0)})}else h&&(u("I/O read",vP("I/O Read"),!0),u("I/O write",vP("I/O Write"),!0),u("Parse time",S,!0),u("Bind time",T,!0),u("Check time",x,!0),u("Emit time",I,!0));h&&u("Total time",S+T+x+I,!1),nxe(e,o),h?n?(QW(P=>{cq(P)||Bve(P)}),Wve(P=>{cq(P)||zve(P)})):sZ():e.write(_.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+`
|
|
`)}function c(g,d){o.push(g),d&&n?.addAggregateStatistic(g)}function p(g,d){c({name:g,value:d,type:1},!0)}function u(g,d,h){c({name:g,value:d,type:0},h)}}function nxe(e,t){let n=0,i=0;for(let s of t){s.name.length>n&&(n=s.name.length);let o=ixe(s);o.length>i&&(i=o.length)}for(let s of t)e.write(`${s.name}:`.padEnd(n+2)+ixe(s).toString().padStart(i)+e.newLine)}function ixe(e){switch(e.type){case 1:return""+e.value;case 0:return(e.value/1e3).toFixed(2)+"s";case 2:return Math.round(e.value/1e3)+"K";default:w.assertNever(e.type)}}function gVe(e,t,n){let i=e.getCurrentDirectory(),s=ra(Jn(i,"tsconfig.json"));if(e.fileExists(s))t(fc(_.A_tsconfig_json_file_is_already_defined_at_Colon_0,s));else{e.writeFile(s,Sse(n,e.newLine));let o=[e.newLine,...oq(e,"Created a new tsconfig.json")];o.push("You can learn more at https://aka.ms/tsconfig"+e.newLine);for(let c of o)e.write(c)}}function rg(e,t=!0){return{type:e,reportFallback:t}}var sxe=rg(void 0,!1),axe=rg(void 0,!1),kE=rg(void 0,!0);function cce(e,t){let n=Ru(e,"strictNullChecks");return{serializeTypeOfDeclaration:d,serializeReturnTypeForSignature:S,serializeTypeOfExpression:g,serializeTypeOfAccessor:u,tryReuseExistingTypeNode(te,Ne){if(t.canReuseTypeNode(te,Ne))return s(te,Ne)}};function i(te,Ne,Ie=Ne){return Ne===void 0?void 0:t.markNodeReuse(te,Ne.flags&16?Ne:A.cloneNode(Ne),Ie??Ne)}function s(te,Ne){let{finalizeBoundary:Ie,startRecoveryScope:xe,hadError:Qe,markError:St}=t.createRecoveryBoundary(te),Bt=rt(Ne,fr,yi);if(!Ie())return;return te.approximateLength+=Ne.end-Ne.pos,Bt;function fr(At){if(Qe())return At;let Un=xe(),rs=Lne(At)?t.enterNewScope(te,At):void 0,zn=us(At);return rs?.(),Qe()?yi(At)&&!z2(At)?(Un(),t.serializeExistingTypeNode(te,At)):At:zn?t.markNodeReuse(te,zn,At):void 0}function Mr(At){let Un=tA(At);switch(Un.kind){case 184:return bi(Un);case 187:return Hr(Un);case 200:return ft(Un);case 199:let rs=Un;if(rs.operator===143)return qt(rs)}return rt(At,fr,yi)}function ft(At){let Un=Mr(At.objectType);if(Un!==void 0)return A.updateIndexedAccessTypeNode(At,Un,rt(At.indexType,fr,yi))}function qt(At){w.assertEqual(At.operator,143);let Un=Mr(At.type);if(Un!==void 0)return A.updateTypeOperatorNode(At,Un)}function Hr(At){let{introducesError:Un,node:rs}=t.trackExistingEntityName(te,At.exprName);if(!Un)return A.updateTypeQueryNode(At,rs,Br(At.typeArguments,fr,yi));let zn=t.serializeTypeName(te,At.exprName,!0);if(zn)return t.markNodeReuse(te,zn,At.exprName)}function bi(At){if(t.canReuseTypeNode(te,At)){let{introducesError:Un,node:rs}=t.trackExistingEntityName(te,At.typeName),zn=Br(At.typeArguments,fr,yi);if(Un){let Sn=t.serializeTypeName(te,At.typeName,!1,zn);if(Sn)return t.markNodeReuse(te,Sn,At.typeName)}else{let Sn=A.updateTypeReferenceNode(At,rs,zn);return t.markNodeReuse(te,Sn,At)}}}function us(At){var Un;if(K0(At))return rt(At.type,fr,yi);if(Iie(At)||At.kind===320)return A.createKeywordTypeNode(133);if(Die(At))return A.createKeywordTypeNode(159);if(bI(At))return A.createUnionTypeNode([rt(At.type,fr,yi),A.createLiteralTypeNode(A.createNull())]);if(bJ(At))return A.createUnionTypeNode([rt(At.type,fr,yi),A.createKeywordTypeNode(157)]);if(m7(At))return rt(At.type,fr);if(g7(At))return A.createArrayTypeNode(rt(At.type,fr,yi));if(xk(At))return A.createTypeLiteralNode(kr(At.jsDocPropertyTags,bt=>{let ar=rt(Be(bt.name)?bt.name:bt.name.right,fr,Be),tn=t.getJsDocPropertyOverride(te,At,bt);return A.createPropertySignature(void 0,ar,bt.isBracketed||bt.typeExpression&&bJ(bt.typeExpression.type)?A.createToken(58):void 0,tn||bt.typeExpression&&rt(bt.typeExpression.type,fr,yi)||A.createKeywordTypeNode(133))}));if(Pf(At)&&Be(At.typeName)&&At.typeName.escapedText==="")return Rn(A.createKeywordTypeNode(133),At);if((sy(At)||Pf(At))&&HF(At))return A.createTypeLiteralNode([A.createIndexSignature(void 0,[A.createParameterDeclaration(void 0,void 0,"x",void 0,rt(At.typeArguments[0],fr,yi))],rt(At.typeArguments[1],fr,yi))]);if(SI(At))if(g2(At)){let bt;return A.createConstructorTypeNode(void 0,Br(At.typeParameters,fr,Ho),Ji(At.parameters,(ar,tn)=>ar.name&&Be(ar.name)&&ar.name.escapedText==="new"?(bt=ar.type,void 0):A.createParameterDeclaration(void 0,Sn(ar),t.markNodeReuse(te,A.createIdentifier(_i(ar,tn)),ar),A.cloneNode(ar.questionToken),rt(ar.type,fr,yi),void 0)),rt(bt||At.type,fr,yi)||A.createKeywordTypeNode(133))}else return A.createFunctionTypeNode(Br(At.typeParameters,fr,Ho),kr(At.parameters,(bt,ar)=>A.createParameterDeclaration(void 0,Sn(bt),t.markNodeReuse(te,A.createIdentifier(_i(bt,ar)),bt),A.cloneNode(bt.questionToken),rt(bt.type,fr,yi),void 0)),rt(At.type,fr,yi)||A.createKeywordTypeNode(133));if(GA(At))return t.canReuseTypeNode(te,At)||St(),At;if(Ho(At)){let{node:bt}=t.trackExistingEntityName(te,At.name);return A.updateTypeParameterDeclaration(At,Br(At.modifiers,fr,la),bt,rt(At.constraint,fr,yi),rt(At.default,fr,yi))}if(LS(At)){let bt=ft(At);return bt||(St(),At)}if(Pf(At)){let bt=bi(At);return bt||(St(),At)}if(Yh(At)){if(((Un=At.attributes)==null?void 0:Un.token)===132)return St(),At;if(!t.canReuseTypeNode(te,At))return t.serializeExistingTypeNode(te,At);let bt=qe(At,At.argument.literal),ar=bt===At.argument.literal?i(te,At.argument.literal):bt;return A.updateImportTypeNode(At,ar===At.argument.literal?i(te,At.argument):A.createLiteralTypeNode(ar),rt(At.attributes,fr,Tk),rt(At.qualifier,fr,xp),Br(At.typeArguments,fr,yi),At.isTypeOf)}if(Vl(At)&&At.name.kind===168&&!t.hasLateBindableName(At)){if(!ey(At))return rs(At,fr);if(t.shouldRemoveDeclaration(te,At))return}if(Fs(At)&&!At.type||hs(At)&&!At.type&&!At.initializer||mp(At)&&!At.type&&!At.initializer||Gi(At)&&!At.type&&!At.initializer){let bt=rs(At,fr);return bt===At&&(bt=t.markNodeReuse(te,A.cloneNode(At),At)),bt.type=A.createKeywordTypeNode(133),Gi(At)&&(bt.modifiers=void 0),bt}if(FS(At)){let bt=Hr(At);return bt||(St(),At)}if(na(At)&&mo(At.expression)){let{node:bt,introducesError:ar}=t.trackExistingEntityName(te,At.expression);if(ar){let tn=t.serializeTypeOfExpression(te,At.expression),Xn;if(av(tn))Xn=tn.literal;else{let ei=t.evaluateEntityNameExpression(At.expression),Mi=typeof ei.value=="string"?A.createStringLiteral(ei.value,void 0):typeof ei.value=="number"?A.createNumericLiteral(ei.value,0):void 0;if(!Mi)return Hm(tn)&&t.trackComputedName(te,At.expression),At;Xn=Mi}return Xn.kind===11&&af(Xn.text,xa(e))?A.createIdentifier(Xn.text):Xn.kind===9&&!Xn.text.startsWith("-")?Xn:A.updateComputedPropertyName(At,Xn)}else return A.updateComputedPropertyName(At,bt)}if(z2(At)){let bt;if(Be(At.parameterName)){let{node:ar,introducesError:tn}=t.trackExistingEntityName(te,At.parameterName);tn&&St(),bt=ar}else bt=A.cloneNode(At.parameterName);return A.updateTypePredicateNode(At,A.cloneNode(At.assertsModifier),bt,rt(At.type,fr,yi))}if(G2(At)||Dp(At)||yk(At)){let bt=rs(At,fr),ar=t.markNodeReuse(te,bt===At?A.cloneNode(At):bt,At),tn=Oa(ar);return yn(ar,tn|(te.flags&1024&&Dp(At)?0:1)),ar}if(ya(At)&&te.flags&268435456&&!At.singleQuote){let bt=A.cloneNode(At);return bt.singleQuote=!0,bt}if(jS(At)){let bt=rt(At.checkType,fr,yi),ar=t.enterNewScope(te,At),tn=rt(At.extendsType,fr,yi),Xn=rt(At.trueType,fr,yi);ar();let ei=rt(At.falseType,fr,yi);return A.updateConditionalTypeNode(At,bt,tn,Xn,ei)}if(J0(At)){if(At.operator===158&&At.type.kind===155){if(!t.canReuseTypeNode(te,At))return St(),At}else if(At.operator===143){let bt=qt(At);return bt||(St(),At)}}return rs(At,fr);function rs(bt,ar){let tn=!te.enclosingFile||te.enclosingFile!==Nr(bt);return Pr(bt,ar,void 0,tn?zn:void 0)}function zn(bt,ar,tn,Xn,ei){let Mi=Br(bt,ar,tn,Xn,ei);return Mi&&(Mi.pos!==-1||Mi.end!==-1)&&(Mi===bt&&(Mi=A.createNodeArray(bt.slice(),bt.hasTrailingComma)),om(Mi,-1,-1)),Mi}function Sn(bt){return bt.dotDotDotToken||(bt.type&&g7(bt.type)?A.createToken(26):void 0)}function _i(bt,ar){return bt.name&&Be(bt.name)&&bt.name.escapedText==="this"?"this":Sn(bt)?"args":`arg${ar}`}function qe(bt,ar){let tn=t.getModuleSpecifierOverride(te,bt,ar);return tn?Rn(A.createStringLiteral(tn),ar):ar}}}function o(te,Ne,Ie){if(!te)return;let xe;return(!Ie||Oe(te))&&t.canReuseTypeNode(Ne,te)&&(xe=s(Ne,te),xe!==void 0&&(xe=ke(xe,Ie,void 0,Ne))),xe}function c(te,Ne,Ie,xe,Qe,St=Qe!==void 0){if(!te||!t.canReuseTypeNodeAnnotation(Ne,Ie,te,xe,Qe)&&(!Qe||!t.canReuseTypeNodeAnnotation(Ne,Ie,te,xe,!1)))return;let Bt;return(!Qe||Oe(te))&&(Bt=o(te,Ne,Qe)),Bt!==void 0||!St?Bt:(Ne.tracker.reportInferenceFallback(Ie),t.serializeExistingTypeNode(Ne,te,Qe)??A.createKeywordTypeNode(133))}function p(te,Ne,Ie,xe){if(!te)return;let Qe=o(te,Ne,Ie);return Qe!==void 0?Qe:(Ne.tracker.reportInferenceFallback(xe??te),t.serializeExistingTypeNode(Ne,te,Ie)??A.createKeywordTypeNode(133))}function u(te,Ne,Ie){return I(te,Ne,Ie)??X(te,t.getAllAccessorDeclarations(te),Ie,Ne)}function g(te,Ne,Ie,xe){let Qe=re(te,Ne,!1,Ie,xe);return Qe.type!==void 0?Qe.type:z(te,Ne,Qe.reportFallback)}function d(te,Ne,Ie){switch(te.kind){case 170:case 342:return E(te,Ne,Ie);case 261:return P(te,Ne,Ie);case 172:case 349:case 173:return O(te,Ne,Ie);case 209:return W(te,Ne,Ie);case 278:return g(te.expression,Ie,void 0,!0);case 212:case 213:case 227:return F(te,Ne,Ie);case 304:case 305:return h(te,Ne,Ie);default:w.assertNever(te,`Node needs to be an inferrable node, found ${w.formatSyntaxKind(te.kind)}`)}}function h(te,Ne,Ie){let xe=ml(te),Qe;if(xe&&t.canReuseTypeNodeAnnotation(Ie,te,xe,Ne)&&(Qe=o(xe,Ie)),!Qe&&te.kind===304){let St=te.initializer,Bt=JS(St)?xI(St):St.kind===235||St.kind===217?St.type:void 0;Bt&&!Nd(Bt)&&t.canReuseTypeNodeAnnotation(Ie,te,Bt,Ne)&&(Qe=o(Bt,Ie))}return Qe??W(te,Ne,Ie,!1)}function S(te,Ne,Ie){switch(te.kind){case 178:return u(te,Ne,Ie);case 175:case 263:case 181:case 174:case 180:case 177:case 179:case 182:case 185:case 186:case 219:case 220:case 318:case 324:return nt(te,Ne,Ie);default:w.assertNever(te,`Node needs to be an inferrable node, found ${w.formatSyntaxKind(te.kind)}`)}}function T(te){if(te)return te.kind===178?dn(te)&&qy(te)||wf(te):tG(te)}function x(te,Ne){let Ie=T(te);return!Ie&&te!==Ne.firstAccessor&&(Ie=T(Ne.firstAccessor)),!Ie&&Ne.secondAccessor&&te!==Ne.secondAccessor&&(Ie=T(Ne.secondAccessor)),Ie}function I(te,Ne,Ie){let xe=t.getAllAccessorDeclarations(te),Qe=x(te,xe);if(Qe&&!z2(Qe))return U(Ie,te,()=>c(Qe,Ie,te,Ne)??W(te,Ne,Ie));if(xe.getAccessor)return U(Ie,xe.getAccessor,()=>nt(xe.getAccessor,Ne,Ie))}function P(te,Ne,Ie){var xe;let Qe=ml(te),St=kE;return Qe?St=rg(c(Qe,Ie,te,Ne)):te.initializer&&(((xe=Ne.declarations)==null?void 0:xe.length)===1||Jy(Ne.declarations,li)===1)&&!t.isExpandoFunctionDeclaration(te)&&!Ue(te)&&(St=re(te.initializer,Ie,void 0,void 0,Ute(te))),St.type!==void 0?St.type:W(te,Ne,Ie,St.reportFallback)}function E(te,Ne,Ie){let xe=te.parent;if(xe.kind===179)return u(xe,void 0,Ie);let Qe=ml(te),St=t.requiresAddingImplicitUndefined(te,Ne,Ie.enclosingDeclaration),Bt=kE;return Qe?Bt=rg(c(Qe,Ie,te,Ne,St)):Gi(te)&&te.initializer&&Be(te.name)&&!Ue(te)&&(Bt=re(te.initializer,Ie,void 0,St)),Bt.type!==void 0?Bt.type:W(te,Ne,Ie,Bt.reportFallback)}function F(te,Ne,Ie){let xe=ml(te),Qe;xe&&(Qe=c(xe,Ie,te,Ne));let St=Ie.suppressReportInferenceFallback;Ie.suppressReportInferenceFallback=!0;let Bt=Qe??W(te,Ne,Ie,!1);return Ie.suppressReportInferenceFallback=St,Bt}function O(te,Ne,Ie){let xe=ml(te),Qe=t.requiresAddingImplicitUndefined(te,Ne,Ie.enclosingDeclaration),St=kE;if(xe)St=rg(c(xe,Ie,te,Ne,Qe));else{let Bt=hs(te)?te.initializer:void 0;if(Bt&&!Ue(te)){let fr=KM(te);St=re(Bt,Ie,void 0,Qe,fr)}}return St.type!==void 0?St.type:W(te,Ne,Ie,St.reportFallback)}function W(te,Ne,Ie,xe=!0){return xe&&Ie.tracker.reportInferenceFallback(te),Ie.noInferenceFallback===!0?A.createKeywordTypeNode(133):t.serializeTypeOfDeclaration(Ie,te,Ne)}function z(te,Ne,Ie=!0,xe){return w.assert(!xe),Ie&&Ne.tracker.reportInferenceFallback(te),Ne.noInferenceFallback===!0?A.createKeywordTypeNode(133):t.serializeTypeOfExpression(Ne,te)??A.createKeywordTypeNode(133)}function $(te,Ne,Ie,xe){return xe&&Ne.tracker.reportInferenceFallback(te),Ne.noInferenceFallback===!0?A.createKeywordTypeNode(133):t.serializeReturnTypeForSignature(Ne,te,Ie)??A.createKeywordTypeNode(133)}function X(te,Ne,Ie,xe,Qe=!0){return te.kind===178?nt(te,xe,Ie,Qe):(Qe&&Ie.tracker.reportInferenceFallback(te),(Ne.getAccessor&&nt(Ne.getAccessor,xe,Ie,Qe))??t.serializeTypeOfDeclaration(Ie,te,xe)??A.createKeywordTypeNode(133))}function U(te,Ne,Ie){let xe=t.enterNewScope(te,Ne),Qe=Ie();return xe(),Qe}function _e(te,Ne,Ie,xe){return Nd(Ne)?re(te,Ie,!0,xe):rg(p(Ne,Ie,xe))}function re(te,Ne,Ie=!1,xe=!1,Qe=!1){switch(te.kind){case 218:return JS(te)?_e(te.expression,xI(te),Ne,xe):re(te.expression,Ne,Ie,xe);case 80:if(t.isUndefinedIdentifierExpression(te))return rg(ee());break;case 106:return rg(n?ke(A.createLiteralTypeNode(A.createNull()),xe,te,Ne):A.createKeywordTypeNode(133));case 220:case 219:return w.type(te),U(Ne,te,()=>V(te,Ne));case 217:case 235:let St=te;return _e(St.expression,St.type,Ne,xe);case 225:let Bt=te;if(Q8(Bt))return ge(Bt.operator===40?Bt.operand:Bt,Bt.operand.kind===10?163:150,Ne,Ie||Qe,xe);break;case 210:return oe(te,Ne,Ie,xe);case 211:return de(te,Ne,Ie,xe);case 232:return rg(z(te,Ne,!0,xe));case 229:if(!Ie&&!Qe)return rg(A.createKeywordTypeNode(154));break;default:let fr,Mr=te;switch(te.kind){case 9:fr=150;break;case 15:Mr=A.createStringLiteral(te.text),fr=154;break;case 11:fr=154;break;case 10:fr=163;break;case 112:case 97:fr=136;break}if(fr)return ge(Mr,fr,Ne,Ie||Qe,xe)}return kE}function V(te,Ne){let Ie=nt(te,void 0,Ne),xe=Se(te.typeParameters,Ne),Qe=te.parameters.map(St=>H(St,Ne));return rg(A.createFunctionTypeNode(xe,Qe,Ie))}function ce(te,Ne,Ie){if(!Ie)return Ne.tracker.reportInferenceFallback(te),!1;for(let xe of te.elements)if(xe.kind===231)return Ne.tracker.reportInferenceFallback(xe),!1;return!0}function oe(te,Ne,Ie,xe){if(!ce(te,Ne,Ie))return xe||ql(Od(te).parent)?axe:rg(z(te,Ne,!1,xe));let Qe=Ne.noInferenceFallback;Ne.noInferenceFallback=!0;let St=[];for(let fr of te.elements)if(w.assert(fr.kind!==231),fr.kind===233)St.push(ee());else{let Mr=re(fr,Ne,Ie),ft=Mr.type!==void 0?Mr.type:z(fr,Ne,Mr.reportFallback);St.push(ft)}let Bt=A.createTupleTypeNode(St);return Bt.emitNode={flags:1,autoGenerate:void 0,internalFlags:0},Ne.noInferenceFallback=Qe,sxe}function le(te,Ne){let Ie=!0;for(let xe of te.properties){if(xe.flags&262144){Ie=!1;break}if(xe.kind===305||xe.kind===306)Ne.tracker.reportInferenceFallback(xe),Ie=!1;else if(xe.name.flags&262144){Ie=!1;break}else if(xe.name.kind===81)Ie=!1;else if(xe.name.kind===168){let Qe=xe.name.expression;!Q8(Qe,!1)&&!t.isDefinitelyReferenceToGlobalSymbolObject(Qe)&&(Ne.tracker.reportInferenceFallback(xe.name),Ie=!1)}}return Ie}function de(te,Ne,Ie,xe){if(!le(te,Ne))return xe||ql(Od(te).parent)?axe:rg(z(te,Ne,!1,xe));let Qe=Ne.noInferenceFallback;Ne.noInferenceFallback=!0;let St=[],Bt=Ne.flags;Ne.flags|=4194304;for(let Mr of te.properties){w.assert(!Fu(Mr)&&!Sh(Mr));let ft=Mr.name,qt;switch(Mr.kind){case 175:qt=U(Ne,Mr,()=>Je(Mr,ft,Ne,Ie));break;case 304:qt=ve(Mr,ft,Ne,Ie);break;case 179:case 178:qt=ye(Mr,ft,Ne);break}qt&&(gl(qt,Mr),St.push(qt))}Ne.flags=Bt;let fr=A.createTypeLiteralNode(St);return Ne.flags&1024||yn(fr,1),Ne.noInferenceFallback=Qe,sxe}function ve(te,Ne,Ie,xe){let Qe=xe?[A.createModifier(148)]:[],St=re(te.initializer,Ie,xe),Bt=St.type!==void 0?St.type:W(te,void 0,Ie,St.reportFallback);return A.createPropertySignature(Qe,i(Ie,Ne),void 0,Bt)}function H(te,Ne){return A.updateParameterDeclaration(te,void 0,i(Ne,te.dotDotDotToken),t.serializeNameOfParameter(Ne,te),t.isOptionalParameter(te)?A.createToken(58):void 0,E(te,void 0,Ne),void 0)}function Se(te,Ne){return te?.map(Ie=>{var xe;let{node:Qe}=t.trackExistingEntityName(Ne,Ie.name);return A.updateTypeParameterDeclaration(Ie,(xe=Ie.modifiers)==null?void 0:xe.map(St=>i(Ne,St)),Qe,p(Ie.constraint,Ne),p(Ie.default,Ne))})}function Je(te,Ne,Ie,xe){let Qe=nt(te,void 0,Ie),St=Se(te.typeParameters,Ie),Bt=te.parameters.map(fr=>H(fr,Ie));return xe?A.createPropertySignature([A.createModifier(148)],i(Ie,Ne),i(Ie,te.questionToken),A.createFunctionTypeNode(St,Bt,Qe)):(Be(Ne)&&Ne.escapedText==="new"&&(Ne=A.createStringLiteral("new")),A.createMethodSignature([],i(Ie,Ne),i(Ie,te.questionToken),St,Bt,Qe))}function ye(te,Ne,Ie){let xe=t.getAllAccessorDeclarations(te),Qe=xe.getAccessor&&T(xe.getAccessor),St=xe.setAccessor&&T(xe.setAccessor);if(Qe!==void 0&&St!==void 0)return U(Ie,te,()=>{let Bt=te.parameters.map(fr=>H(fr,Ie));return ah(te)?A.updateGetAccessorDeclaration(te,[],i(Ie,Ne),Bt,p(Qe,Ie),void 0):A.updateSetAccessorDeclaration(te,[],i(Ie,Ne),Bt,void 0)});if(xe.firstAccessor===te){let fr=(Qe?U(Ie,xe.getAccessor,()=>p(Qe,Ie)):St?U(Ie,xe.setAccessor,()=>p(St,Ie)):void 0)??X(te,xe,Ie,void 0);return A.createPropertySignature(xe.setAccessor===void 0?[A.createModifier(148)]:[],i(Ie,Ne),void 0,fr)}}function ee(){return n?A.createKeywordTypeNode(157):A.createKeywordTypeNode(133)}function ge(te,Ne,Ie,xe,Qe){let St;return xe?(te.kind===225&&te.operator===40&&(St=A.createLiteralTypeNode(i(Ie,te.operand))),St=A.createLiteralTypeNode(i(Ie,te))):St=A.createKeywordTypeNode(Ne),rg(ke(St,Qe,te,Ie))}function ke(te,Ne,Ie,xe){let Qe=Ie&&Od(Ie).parent,St=Qe&&ql(Qe)&&E2(Qe);return!n||!(Ne||St)?te:(Oe(te)||xe.tracker.reportInferenceFallback(te),sv(te)?A.createUnionTypeNode([...te.types,A.createKeywordTypeNode(157)]):A.createUnionTypeNode([te,A.createKeywordTypeNode(157)]))}function Oe(te){return!n||qp(te.kind)||te.kind===202||te.kind===185||te.kind===186||te.kind===189||te.kind===190||te.kind===188||te.kind===204||te.kind===198?!0:te.kind===197?Oe(te.type):te.kind===193||te.kind===194?te.types.every(Oe):!1}function nt(te,Ne,Ie,xe=!0){let Qe=kE,St=g2(te)?ml(te.parameters[0]):wf(te);return St?Qe=rg(c(St,Ie,te,Ne)):ak(te)&&(Qe=ae(te,Ie)),Qe.type!==void 0?Qe.type:$(te,Ie,Ne,xe&&Qe.reportFallback&&!St)}function ae(te,Ne){let Ie;if(te&&!xc(te.body)){if(Yc(te)&3)return kE;let Qe=te.body;Qe&&Bs(Qe)?hb(Qe,St=>{if(St.parent!==Qe)return Ie=void 0,!0;if(!Ie)Ie=St.expression;else return Ie=void 0,!0}):Ie=Qe}if(Ie)if(Ue(Ie)){let xe=JS(Ie)?xI(Ie):mI(Ie)||p7(Ie)?Ie.type:void 0;if(xe&&!Nd(xe))return rg(o(xe,Ne))}else return re(Ie,Ne);return kE}function Ue(te){return vr(te.parent,Ne=>Ws(Ne)||!yo(Ne)&&!!ml(Ne)||Xm(Ne)||yI(Ne))}}var Wb={};it(Wb,{NameValidationResult:()=>_xe,discoverTypings:()=>vVe,isTypingUpToDate:()=>pxe,loadSafeList:()=>hVe,loadTypesMap:()=>yVe,nonRelativeModuleNameForTypingCache:()=>fxe,renderPackageNameValidationFailure:()=>SVe,validatePackageName:()=>bVe});var Uj="action::set",Vj="action::invalidate",qj="action::packageInstalled",uq="event::typesRegistry",pq="event::beginInstallTypes",fq="event::endInstallTypes",lce="event::initializationFailed",lR="action::watchTypingLocations",_q;(e=>{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(_q||(_q={}));function oxe(e){return Nl.args.includes(e)}function cxe(e){let t=Nl.args.indexOf(e);return t>=0&&t<Nl.args.length-1?Nl.args[t+1]:void 0}function lxe(){let e=new Date;return`${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}.${e.getMilliseconds().toString().padStart(3,"0")}`}var uxe=`
|
|
`;function xE(e){return uxe+e.replace(/\n/g,uxe)}function a1(e){return xE(JSON.stringify(e,void 0,2))}function pxe(e,t){return new Zd(lM(t,`ts${Yi}`)||lM(t,"latest")).compareTo(e.version)<=0}function fxe(e){return lI.has(e)?"node":e}function hVe(e,t){let n=D4(t,i=>e.readFile(i));return new Map(Object.entries(n.config))}function yVe(e,t){var n;let i=D4(t,s=>e.readFile(s));if((n=i.config)!=null&&n.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function vVe(e,t,n,i,s,o,c,p,u,g){if(!c||!c.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};let d=new Map;n=Ji(n,W=>{let z=ra(W);if(gh(z))return z});let h=[];c.include&&E(c.include,"Explicitly included types");let S=c.exclude||[];if(!g.types){let W=new Set(n.map(ti));W.add(i),W.forEach(z=>{F(z,"bower.json","bower_components",h),F(z,"package.json","node_modules",h)})}if(c.disableFilenameBasedTypeAcquisition||O(n),p){let W=oS(p.map(fxe),uS,Eu);E(W,"Inferred typings from unresolved imports")}for(let W of S)d.delete(W)&&t&&t(`Typing for ${W} is in exclude list, will be ignored.`);o.forEach((W,z)=>{let $=u.get(z);d.get(z)===!1&&$!==void 0&&pxe(W,$)&&d.set(z,W.typingLocation)});let T=[],x=[];d.forEach((W,z)=>{W?x.push(W):T.push(z)});let I={cachedTypingPaths:x,newTypingNames:T,filesToWatch:h};return t&&t(`Finished typings discovery:${a1(I)}`),I;function P(W){d.has(W)||d.set(W,!1)}function E(W,z){t&&t(`${z}: ${JSON.stringify(W)}`),or(W,P)}function F(W,z,$,X){let U=Jn(W,z),_e,re;e.fileExists(U)&&(X.push(U),_e=D4(U,le=>e.readFile(le)).config,re=Ma([_e.dependencies,_e.devDependencies,_e.optionalDependencies,_e.peerDependencies],Nm),E(re,`Typing names in '${U}' dependencies`));let V=Jn(W,$);if(X.push(V),!e.directoryExists(V))return;let ce=[],oe=re?re.map(le=>Jn(V,le,z)):e.readDirectory(V,[".json"],void 0,void 0,3).filter(le=>{if(dl(le)!==z)return!1;let de=Nu(ra(le)),ve=de[de.length-3][0]==="@";return ve&&Zv(de[de.length-4])===$||!ve&&Zv(de[de.length-3])===$});t&&t(`Searching for typing names in ${V}; all files: ${JSON.stringify(oe)}`);for(let le of oe){let de=ra(le),H=D4(de,Je=>e.readFile(Je)).config;if(!H.name)continue;let Se=H.types||H.typings;if(Se){let Je=as(Se,ti(de));e.fileExists(Je)?(t&&t(` Package '${H.name}' provides its own types.`),d.set(H.name,Je)):t&&t(` Package '${H.name}' provides its own types but they are missing.`)}else ce.push(H.name)}E(ce," Found package names")}function O(W){let z=Ji(W,X=>{if(!gh(X))return;let U=dp(Zv(dl(X))),_e=JW(U);return s.get(_e)});z.length&&E(z,"Inferred typings from file names"),_t(W,X=>uc(X,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),P("react"))}}var _xe=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(_xe||{}),dxe=214;function bVe(e){return uce(e,!0)}function uce(e,t){if(!e)return 1;if(e.length>dxe)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){let n=/^@([^/]+)\/([^/]+)$/.exec(e);if(n){let i=uce(n[1],!1);if(i!==0)return{name:n[1],isScopeName:!0,result:i};let s=uce(n[2],!1);return s!==0?{name:n[2],isScopeName:!1,result:s}:0}}return encodeURIComponent(e)!==e?5:0}function SVe(e,t){return typeof e=="object"?mxe(t,e.result,e.name,e.isScopeName):mxe(t,e,t,!1)}function mxe(e,t,n,i){let s=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${s} name '${n}' cannot be empty`;case 2:return`'${e}':: ${s} name '${n}' should be less than ${dxe} characters`;case 3:return`'${e}':: ${s} name '${n}' cannot start with '.'`;case 4:return`'${e}':: ${s} name '${n}' cannot start with '_'`;case 5:return`'${e}':: ${s} name '${n}' contains non URI safe characters`;case 0:return w.fail();default:w.assertNever(t)}}var $j;(e=>{class t{constructor(s){this.text=s}getText(s,o){return s===0&&o===this.text.length?this.text:this.text.substring(s,o)}getLength(){return this.text.length}getChangeRange(){}}function n(i){return new t(i)}e.fromString=n})($j||($j={}));var pce=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(pce||{}),fce=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(fce||{}),_ce=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(_ce||{}),vd={},dce=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(dce||{}),dq=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(dq||{}),mq=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(mq||{}),mce=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(mce||{}),gce=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(gce||{}),hce=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(hce||{}),gq=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(gq||{});function Hj(e){return{indentSize:4,tabSize:4,newLineCharacter:e||`
|
|
`,convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var gxe=Hj(`
|
|
`),Qj=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(Qj||{}),yce=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(yce||{}),vce=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(vce||{}),bce=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(bce||{}),Sce=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(Sce||{}),Tce=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(Tce||{}),kce=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(kce||{}),xce=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(xce||{}),Cce=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(Cce||{}),hq=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(hq||{}),pu=ih(99,!0),wce=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(wce||{});function Kj(e){switch(e.kind){case 261:return dn(e)&&OB(e)?7:1;case 170:case 209:case 173:case 172:case 304:case 305:case 175:case 174:case 177:case 178:case 179:case 263:case 219:case 220:case 300:case 292:return 1;case 169:case 265:case 266:case 188:return 2;case 347:return e.name===void 0?3:2;case 307:case 264:return 3;case 268:return pp(e)||ly(e)===1?5:4;case 267:case 276:case 277:case 272:case 273:case 278:case 279:return 7;case 308:return 5}return 7}function Ok(e){e=Aq(e);let t=e.parent;return e.kind===308?1:Qo(t)||Xu(t)||ay(t)||gp(t)||Ld(t)||Dl(t)&&e===t.name?7:Xj(e)?TVe(e):Ig(e)?Kj(t):xp(e)&&vr(e,vf($A,s2,X0))?7:wVe(e)?2:kVe(e)?4:Ho(t)?(w.assert(hd(t.parent)),2):av(t)?3:1}function TVe(e){let t=e.kind===167?e:Ip(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===272?7:4}function Xj(e){if(!e.parent)return!1;for(;e.parent.kind===167;)e=e.parent;return tk(e.parent)&&e.parent.moduleReference===e}function kVe(e){return xVe(e)||CVe(e)}function xVe(e){let t=e,n=!0;if(t.parent.kind===167){for(;t.parent&&t.parent.kind===167;)t=t.parent;n=t.right===e}return t.parent.kind===184&&!n}function CVe(e){let t=e,n=!0;if(t.parent.kind===212){for(;t.parent&&t.parent.kind===212;)t=t.parent;n=t.name===e}if(!n&&t.parent.kind===234&&t.parent.parent.kind===299){let i=t.parent.parent.parent;return i.kind===264&&t.parent.parent.token===119||i.kind===265&&t.parent.parent.token===96}return!1}function wVe(e){switch(_A(e)&&(e=e.parent),e.kind){case 110:return!wg(e);case 198:return!0}switch(e.parent.kind){case 184:return!0;case 206:return!e.parent.isTypeOf;case 234:return Wm(e.parent)}return!1}function yq(e,t=!1,n=!1){return uR(e,Ws,bq,t,n)}function CE(e,t=!1,n=!1){return uR(e,WS,bq,t,n)}function vq(e,t=!1,n=!1){return uR(e,Om,bq,t,n)}function Ice(e,t=!1,n=!1){return uR(e,U0,IVe,t,n)}function Dce(e,t=!1,n=!1){return uR(e,Il,bq,t,n)}function Pce(e,t=!1,n=!1){return uR(e,Qu,DVe,t,n)}function bq(e){return e.expression}function IVe(e){return e.tag}function DVe(e){return e.tagName}function uR(e,t,n,i,s){let o=i?PVe(e):Yj(e);return s&&(o=Nc(o)),!!o&&!!o.parent&&t(o.parent)&&n(o.parent)===o}function Yj(e){return UI(e)?e.parent:e}function PVe(e){return UI(e)||xq(e)?e.parent:e}function Zj(e,t){for(;e;){if(e.kind===257&&e.label.escapedText===t)return e.label;e=e.parent}}function pR(e,t){return Ln(e.expression)?e.expression.name.text===t:!1}function fR(e){var t;return Be(e)&&((t=Hn(e.parent,RP))==null?void 0:t.label)===e}function Sq(e){var t;return Be(e)&&((t=Hn(e.parent,Eb))==null?void 0:t.label)===e}function Tq(e){return Sq(e)||fR(e)}function kq(e){var t;return((t=Hn(e.parent,Ow))==null?void 0:t.tagName)===e}function Ace(e){var t;return((t=Hn(e.parent,Ip))==null?void 0:t.right)===e}function UI(e){var t;return((t=Hn(e.parent,Ln))==null?void 0:t.name)===e}function xq(e){var t;return((t=Hn(e.parent,xo))==null?void 0:t.argumentExpression)===e}function Cq(e){var t;return((t=Hn(e.parent,el))==null?void 0:t.name)===e}function wq(e){var t;return Be(e)&&((t=Hn(e.parent,Fs))==null?void 0:t.name)===e}function e5(e){switch(e.parent.kind){case 173:case 172:case 304:case 307:case 175:case 174:case 178:case 179:case 268:return Ss(e.parent)===e;case 213:return e.parent.argumentExpression===e;case 168:return!0;case 202:return e.parent.parent.kind===200;default:return!1}}function Ece(e){return M0(e.parent.parent)&&QP(e.parent.parent)===e}function Fk(e){for(fd(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 308:case 175:case 174:case 263:case 219:case 178:case 179:case 264:case 265:case 267:case 268:return e}}}function XS(e){switch(e.kind){case 308:return Pl(e)?"module":"script";case 268:return"module";case 264:case 232:return"class";case 265:return"interface";case 266:case 339:case 347:return"type";case 267:return"enum";case 261:return t(e);case 209:return t(zm(e));case 220:case 263:case 219:return"function";case 178:return"getter";case 179:return"setter";case 175:case 174:return"method";case 304:let{initializer:n}=e;return Fs(n)?"method":"property";case 173:case 172:case 305:case 306:return"property";case 182:return"index";case 181:return"construct";case 180:return"call";case 177:case 176:return"constructor";case 169:return"type parameter";case 307:return"enum member";case 170:return ri(e,31)?"property":"parameter";case 272:case 277:case 282:case 275:case 281:return"alias";case 227:let i=Hc(e),{right:s}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:let c=XS(s);return c===""?"const":c;case 3:return Ao(s)?"method":"property";case 4:return"property";case 5:return Ao(s)?"method":"property";case 6:return"local class";default:return""}case 80:return Ld(e.parent)?"alias":"";case 278:let o=XS(e.expression);return o===""?"const":o;default:return""}function t(n){return Bw(n)?"const":MF(n)?"let":"var"}}function VI(e){switch(e.kind){case 110:return!0;case 80:return eG(e)&&e.parent.kind===170;default:return!1}}var AVe=/^\/\/\/\s*</;function bd(e,t){let n=th(t),i=t.getLineAndCharacterOfPosition(e).line;return n[i]}function Nce(e,t){return _R(e,t.pos)&&_R(e,t.end)}function qI(e,t){return e.pos<=t&&t<=e.end}function _R(e,t){return e.pos<t&&t<e.end}function dR(e,t,n){return e.pos<=t&&e.end>=n}function wE(e,t,n){return r5(e.pos,e.end,t,n)}function t5(e,t,n,i){return r5(e.getStart(t),e.end,n,i)}function r5(e,t,n,i){let s=Math.max(e,n),o=Math.min(t,i);return s<o}function Iq(e,t,n){return w.assert(e.pos<=t),t<e.end||!_m(e,n)}function _m(e,t){if(e===void 0||xc(e))return!1;switch(e.kind){case 264:case 265:case 267:case 211:case 207:case 188:case 242:case 269:case 270:case 276:case 280:return Dq(e,20,t);case 300:return _m(e.block,t);case 215:if(!e.arguments)return!0;case 214:case 218:case 197:return Dq(e,22,t);case 185:case 186:return _m(e.type,t);case 177:case 178:case 179:case 263:case 219:case 175:case 174:case 181:case 180:case 220:return e.body?_m(e.body,t):e.type?_m(e.type,t):Pq(e,22,t);case 268:return!!e.body&&_m(e.body,t);case 246:return e.elseStatement?_m(e.elseStatement,t):_m(e.thenStatement,t);case 245:return _m(e.expression,t)||Pq(e,27,t);case 210:case 208:case 213:case 168:case 190:return Dq(e,24,t);case 182:return e.type?_m(e.type,t):Pq(e,24,t);case 297:case 298:return!1;case 249:case 250:case 251:case 248:return _m(e.statement,t);case 247:return Pq(e,117,t)?Dq(e,22,t):_m(e.statement,t);case 187:return _m(e.exprName,t);case 222:case 221:case 223:case 230:case 231:return _m(e.expression,t);case 216:return _m(e.template,t);case 229:let i=Wo(e.templateSpans);return _m(i,t);case 240:return ud(e.literal);case 279:case 273:return ud(e.moduleSpecifier);case 225:return _m(e.operand,t);case 227:return _m(e.right,t);case 228:return _m(e.whenFalse,t);default:return!0}}function Dq(e,t,n){let i=e.getChildren(n);if(i.length){let s=ka(i);if(s.kind===t)return!0;if(s.kind===27&&i.length!==1)return i[i.length-2].kind===t}return!1}function Mce(e){let t=n5(e);if(!t)return;let n=t.getChildren();return{listItemIndex:jw(n,e),list:t}}function Pq(e,t,n){return!!lo(e,t,n)}function lo(e,t,n){return Bn(e.getChildren(n),i=>i.kind===t)}function n5(e){let t=Bn(e.parent.getChildren(),n=>kI(n)&&$p(n,e));return w.assert(!t||ws(t.getChildren(),e)),t}function hxe(e){return e.kind===90}function EVe(e){return e.kind===86}function NVe(e){return e.kind===100}function MVe(e){if(Vl(e))return e.name;if(hl(e)){let t=e.modifiers&&Bn(e.modifiers,hxe);if(t)return t}if(Zc(e)){let t=Bn(e.getChildren(),EVe);if(t)return t}}function RVe(e){if(Vl(e))return e.name;if(Gc(e)){let t=Bn(e.modifiers,hxe);if(t)return t}if(Ao(e)){let t=Bn(e.getChildren(),NVe);if(t)return t}}function OVe(e){let t;return vr(e,n=>(yi(n)&&(t=n),!Ip(n.parent)&&!yi(n.parent)&&!dS(n.parent))),t}function i5(e,t){if(e.flags&16777216)return;let n=b5(e,t);if(n)return n;let i=OVe(e);return i&&t.getTypeAtLocation(i)}function FVe(e,t){if(!t)switch(e.kind){case 264:case 232:return MVe(e);case 263:case 219:return RVe(e);case 177:return e}if(Vl(e))return e.name}function yxe(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(Km(e.importClause.namedBindings)){let n=eh(e.importClause.namedBindings.elements);return n?n.name:void 0}else if(bh(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function vxe(e,t){if(e.exportClause){if(G_(e.exportClause))return eh(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(Ag(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function jVe(e){if(e.types.length===1)return e.types[0].expression}function bxe(e,t){let{parent:n}=e;if(la(e)&&(t||e.kind!==90)?yd(n)&&ws(n.modifiers,e):e.kind===86?hl(n)||Zc(e):e.kind===100?Gc(n)||Ao(e):e.kind===120?uu(n):e.kind===94?H0(n):e.kind===156?gd(n):e.kind===145||e.kind===144?el(n):e.kind===102?Dl(n):e.kind===139?B_(n):e.kind===153&&uf(n)){let i=FVe(n,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&lu(n)&&n.declarations.length===1){let i=n.declarations[0];if(Be(i.name))return i.name}if(e.kind===156){if(Ld(n)&&n.isTypeOnly){let i=yxe(n.parent,t);if(i)return i}if(tl(n)&&n.isTypeOnly){let i=vxe(n,t);if(i)return i}}if(e.kind===130){if(gp(n)&&n.propertyName||Xu(n)&&n.propertyName||bh(n)||Ag(n))return n.name;if(tl(n)&&n.exportClause&&Ag(n.exportClause))return n.exportClause.name}if(e.kind===102&&ac(n)){let i=yxe(n,t);if(i)return i}if(e.kind===95){if(tl(n)){let i=vxe(n,t);if(i)return i}if(Qo(n))return Nc(n.expression)}if(e.kind===149&&ay(n))return n.expression;if(e.kind===161&&(ac(n)||tl(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((e.kind===96||e.kind===119)&&Af(n)&&n.token===e.kind){let i=jVe(n);if(i)return i}if(e.kind===96){if(Ho(n)&&n.constraint&&Pf(n.constraint))return n.constraint.typeName;if(jS(n)&&Pf(n.extendsType))return n.extendsType.typeName}if(e.kind===140&&gk(n))return n.typeParameter.name;if(e.kind===103&&Ho(n)&&yk(n.parent))return n.name;if(e.kind===143&&J0(n)&&n.operator===143&&Pf(n.type))return n.type.typeName;if(e.kind===148&&J0(n)&&n.operator===148&&l4(n.type)&&Pf(n.type.elementType))return n.type.elementType.typeName;if(!t){if((e.kind===105&&WS(n)||e.kind===116&&U2(n)||e.kind===114&&dI(n)||e.kind===135&&Ab(n)||e.kind===127&&u4(n)||e.kind===91&&gie(n))&&n.expression)return Nc(n.expression);if((e.kind===103||e.kind===104)&&vn(n)&&n.operatorToken===e)return Nc(n.right);if(e.kind===130&&mI(n)&&Pf(n.type))return n.type.typeName;if(e.kind===103&&_7(n)||e.kind===165&&p4(n))return Nc(n.expression)}return e}function Aq(e){return bxe(e,!1)}function s5(e){return bxe(e,!0)}function Kp(e,t){return $I(e,t,n=>Bm(n)||qp(n.kind)||zi(n))}function $I(e,t,n){return Sxe(e,t,!1,n,!1)}function Ii(e,t){return Sxe(e,t,!0,void 0,!1)}function Sxe(e,t,n,i,s){let o=e,c;e:for(;;){let u=o.getChildren(e),g=Vx(u,t,(d,h)=>h,(d,h)=>{let S=u[d].getEnd();if(S<t)return-1;let T=n?u[d].getFullStart():u[d].getStart(e,!0);return T>t?1:p(u[d],T,S)?u[d-1]&&p(u[d-1])?1:0:i&&T===t&&u[d-1]&&u[d-1].getEnd()===t&&p(u[d-1])?1:-1});if(c)return c;if(g>=0&&u[g]){o=u[g];continue e}return o}function p(u,g,d){if(d??(d=u.getEnd()),d<t||(g??(g=n?u.getFullStart():u.getStart(e,!0)),g>t))return!1;if(t<d||t===d&&(u.kind===1||s))return!0;if(i&&d===t){let h=Al(t,e,u);if(h&&i(h))return c=h,!0}return!1}}function Rce(e,t){let n=Ii(e,t);for(;a5(n);){let i=YS(n,n.parent,e);if(!i)return;n=i}return n}function IE(e,t){let n=Ii(e,t);return t2(n)&&t>n.getStart(e)&&t<n.getEnd()?n:Al(t,e)}function YS(e,t,n){return i(t);function i(s){return t2(s)&&s.pos===e.end?s:fo(s.getChildren(n),o=>(o.pos<=e.pos&&o.end>e.end||o.pos===e.end)&&Bce(o,n)?i(o):void 0)}}function Al(e,t,n,i){let s=o(n||t);return w.assert(!(s&&a5(s))),s;function o(c){if(Txe(c)&&c.kind!==1)return c;let p=c.getChildren(t),u=Vx(p,e,(d,h)=>h,(d,h)=>e<p[d].end?!p[d-1]||e>=p[d-1].end?0:1:-1);if(u>=0&&p[u]){let d=p[u];if(e<d.end)if(d.getStart(t,!i)>=e||!Bce(d,t)||a5(d)){let T=Fce(p,u,t,c.kind);return T?!i&&hF(T)&&T.getChildren(t).length?o(T):Oce(T,t):void 0}else return o(d)}w.assert(n!==void 0||c.kind===308||c.kind===1||hF(c));let g=Fce(p,p.length,t,c.kind);return g&&Oce(g,t)}}function Txe(e){return t2(e)&&!a5(e)}function Oce(e,t){if(Txe(e))return e;let n=e.getChildren(t);if(n.length===0)return e;let i=Fce(n,n.length,t,e.kind);return i&&Oce(i,t)}function Fce(e,t,n,i){for(let s=t-1;s>=0;s--){let o=e[s];if(a5(o))s===0&&(i===12||i===286)&&w.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(Bce(e[s],n))return e[s]}}function cC(e,t,n=Al(t,e)){if(n&&GB(n)){let i=n.getStart(e),s=n.getEnd();if(i<t&&t<s)return!0;if(t===s)return!!n.isUnterminated}return!1}function jce(e,t){let n=Ii(e,t);return n?!!(n.kind===12||n.kind===30&&n.parent.kind===12||n.kind===30&&n.parent.kind===295||n&&n.kind===20&&n.parent.kind===295||n.kind===30&&n.parent.kind===288):!1}function a5(e){return F2(e)&&e.containsOnlyTriviaWhiteSpaces}function Eq(e,t){let n=Ii(e,t);return cb(n.kind)&&t>n.getStart(e)}function Lce(e,t){let n=Ii(e,t);return!!(F2(n)||n.kind===19&&yI(n.parent)&&Xm(n.parent.parent)||n.kind===30&&Qu(n.parent)&&Xm(n.parent.parent))}function o5(e,t){function n(i){for(;i;)if(i.kind>=286&&i.kind<=295||i.kind===12||i.kind===30||i.kind===32||i.kind===80||i.kind===20||i.kind===19||i.kind===44)i=i.parent;else if(i.kind===285){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return n(Ii(e,t))}function c5(e,t,n){let i=ta(e.kind),s=ta(t),o=e.getFullStart(),c=n.text.lastIndexOf(s,o);if(c===-1)return;if(n.text.lastIndexOf(i,o-1)<c){let g=Al(c+1,n);if(g&&g.kind===t)return g}let p=e.kind,u=0;for(;;){let g=Al(e.getFullStart(),n);if(!g)return;if(e=g,e.kind===t){if(u===0)return e;u--}else e.kind===p&&u++}}function LVe(e,t,n){return t?e.getNonNullableType():n?e.getNonOptionalType():e}function mR(e,t,n){let i=Mq(e,t);return i!==void 0&&(Wm(i.called)||Nq(i.called,i.nTypeArguments,n).length!==0||mR(i.called,t,n))}function Nq(e,t,n){let i=n.getTypeAtLocation(e);return $u(e.parent)&&(i=LVe(i,NP(e.parent),!0)),(WS(e.parent)?i.getConstructSignatures():i.getCallSignatures()).filter(o=>!!o.typeParameters&&o.typeParameters.length>=t)}function Mq(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let n=e,i=0,s=0;for(;n;){switch(n.kind){case 30:if(n=Al(n.getFullStart(),t),n&&n.kind===29&&(n=Al(n.getFullStart(),t)),!n||!Be(n))return;if(!i)return Ig(n)?void 0:{called:n,nTypeArguments:s};i--;break;case 50:i=3;break;case 49:i=2;break;case 32:i++;break;case 20:if(n=c5(n,19,t),!n)return;break;case 22:if(n=c5(n,21,t),!n)return;break;case 24:if(n=c5(n,23,t),!n)return;break;case 28:s++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(yi(n))break;return}n=Al(n.getFullStart(),t)}}function lv(e,t,n){return vl.getRangeOfEnclosingComment(e,t,void 0,n)}function Wce(e,t){let n=Ii(e,t);return!!vr(n,um)}function Bce(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function DE(e,t=0){let n=[],i=ql(e)?AB(e)&~t:0;return i&2&&n.push("private"),i&4&&n.push("protected"),i&1&&n.push("public"),(i&256||zc(e))&&n.push("static"),i&64&&n.push("abstract"),i&32&&n.push("export"),i&65536&&n.push("deprecated"),e.flags&33554432&&n.push("declare"),e.kind===278&&n.push("export"),n.length>0?n.join(","):""}function zce(e){if(e.kind===184||e.kind===214)return e.typeArguments;if(Fs(e)||e.kind===264||e.kind===265)return e.typeParameters}function l5(e){return e===2||e===3}function Rq(e){return!!(e===11||e===14||cb(e))}function kxe(e,t,n){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(n)}function Gce(e){if(!e.isIntersection())return!1;let{types:t,checker:n}=e;return t.length===2&&(kxe(n,t[0],t[1])||kxe(n,t[1],t[0]))}function gR(e,t,n){return cb(e.kind)&&e.getStart(n)<t&&t<e.end||!!e.isUnterminated&&t===e.end}function Oq(e){switch(e){case 125:case 123:case 124:return!0}return!1}function Fq(e){let t=BY(e);return aU(t,e&&e.configFile),t}function uv(e){return!!((e.kind===210||e.kind===211)&&(e.parent.kind===227&&e.parent.left===e&&e.parent.operatorToken.kind===64||e.parent.kind===251&&e.parent.initializer===e||uv(e.parent.kind===304?e.parent.parent:e.parent)))}function Jce(e,t){return xxe(e,t,!0)}function Uce(e,t){return xxe(e,t,!1)}function xxe(e,t,n){let i=lv(e,t,void 0);return!!i&&n===AVe.test(e.text.substring(i.pos,i.end))}function jq(e,t){if(e)switch(e.kind){case 11:case 15:return Lq(e,t);default:return Np(e)}}function Np(e,t,n){return $c(e.getStart(t),(n||e).getEnd())}function Lq(e,t){let n=e.getEnd()-1;if(e.isUnterminated){if(e.getStart()===n)return;n=Math.min(t,e.getEnd())}return $c(e.getStart()+1,n)}function Wq(e,t){return O_(e.getStart(t),e.end)}function pv(e){return $c(e.pos,e.end)}function u5(e){return O_(e.start,e.start+e.length)}function p5(e,t,n){return hR(yu(e,t),n)}function hR(e,t){return{span:e,newText:t}}var Bq=[133,131,163,136,97,140,143,146,106,150,151,148,154,155,114,112,116,157,158,159];function PE(e){return ws(Bq,e)}function Cxe(e){return e.kind===156}function f5(e){return Cxe(e)||Be(e)&&e.text==="type"}function HI(){let e=[];return t=>{let n=qa(t);return!e[n]&&(e[n]=!0)}}function lC(e){return e.getText(0,e.getLength())}function yR(e,t){let n="";for(let i=0;i<t;i++)n+=e;return n}function zq(e){return e.isTypeParameter()&&e.getConstraint()||e}function vR(e){return e.kind===168?s_(e.expression)?e.expression.text:void 0:zi(e)?Fn(e):R_(e)}function Vce(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function qce(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function Gq(e){return!!e.module||xa(e)>=2||!!e.noEmit}function o1(e,t){return{fileExists:n=>e.fileExists(n),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:Js(t,t.readFile),useCaseSensitiveFileNames:Js(t,t.useCaseSensitiveFileNames)||e.useCaseSensitiveFileNames,getSymlinkCache:Js(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:Js(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var n;return(n=e.getModuleResolutionCache())==null?void 0:n.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:Js(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getRedirectFromSourceFile:n=>e.getRedirectFromSourceFile(n),isSourceOfProjectReferenceRedirect:n=>e.isSourceOfProjectReferenceRedirect(n),getNearestAncestorDirectoryWithPackageJson:Js(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory(),getDefaultResolutionModeForFile:n=>e.getDefaultResolutionModeForFile(n),getModeForResolutionAtIndex:(n,i)=>e.getModeForResolutionAtIndex(n,i)}}function Jq(e,t){return{...o1(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function _5(e){return e===2||e>=3&&e<=99||e===100}function Bb(e,t,n,i,s){return A.createImportDeclaration(void 0,e||t?A.createImportClause(s?156:void 0,e,t&&t.length?A.createNamedImports(t):void 0):void 0,typeof n=="string"?AE(n,i):n,void 0)}function AE(e,t){return A.createStringLiteral(e,t===0)}var $ce=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))($ce||{});function Uq(e,t){return QF(e,t)?1:0}function Mf(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{let n=ph(e)&&e.imports&&Bn(e.imports,i=>ya(i)&&!ko(i.parent));return n?Uq(n,e):1}}function Vq(e){switch(e){case 0:return"'";case 1:return'"';default:return w.assertNever(e)}}function qq(e){let t=d5(e);return t===void 0?void 0:Ai(t)}function d5(e){return e.escapedName!=="default"?e.escapedName:fo(e.declarations,t=>{let n=Ss(t);return n&&n.kind===80?n.escapedText:void 0})}function m5(e){return Ha(e)&&(ay(e.parent)||ac(e.parent)||Zm(e.parent)||Vp(e.parent,!1)&&e.parent.arguments[0]===e||Up(e.parent)&&e.parent.arguments[0]===e)}function bR(e){return Da(e)&&o_(e.parent)&&Be(e.name)&&!e.propertyName}function g5(e,t){let n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)}function SR(e,t,n){if(e)for(;e.parent;){if(Li(e.parent)||!WVe(n,e.parent,t))return e;e=e.parent}}function WVe(e,t,n){return IB(e,t.getStart(n))&&t.getEnd()<=mc(e)}function QI(e,t){return yd(e)?Bn(e.modifiers,n=>n.kind===t):void 0}function $q(e,t,n,i,s){var o;let p=(gs(n)?n[0]:n).kind===244?o6:u2,u=Mn(t.statements,p),{comparer:g,isSorted:d}=d1.getOrganizeImportsStringComparerWithDetection(u,s),h=gs(n)?yf(n,(S,T)=>d1.compareImportsOrRequireStatements(S,T,g)):[n];if(!u?.length){if(ph(t))e.insertNodesAtTopOfFile(t,h,i);else for(let S of h)e.insertStatementsInNewFile(t.fileName,[S],(o=sc(S))==null?void 0:o.getSourceFile());return}if(w.assert(ph(t)),u&&d)for(let S of h){let T=d1.getImportDeclarationInsertionIndex(u,S,g);if(T===0){let x=u[0]===t.statements[0]?{leadingTriviaOption:gn.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,u[0],S,!1,x)}else{let x=u[T-1];e.insertNodeAfter(t,x,S)}}else{let S=Wo(u);S?e.insertNodesAfter(t,S,h):e.insertNodesAtTopOfFile(t,h,i)}}function Hq(e,t){return w.assert(e.isTypeOnly),Zs(e.getChildAt(0,t),Cxe)}function KI(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function Qq(e,t,n){return(n?uS:tb)(e.fileName,t.fileName)&&KI(e.textSpan,t.textSpan)}function Kq(e){return(t,n)=>Qq(t,n,e)}function Xq(e,t){if(e){for(let n=0;n<e.length;n++)if(e.indexOf(e[n])===n){let i=t(e[n],n);if(i)return i}}}function Hce(e,t,n){for(let i=t;i<n;i++)if(!rh(e.charCodeAt(i)))return!1;return!0}function EE(e,t,n){let i=t.tryGetSourcePosition(e);return i&&(!n||n(ra(i.fileName))?i:void 0)}function h5(e,t,n){let{fileName:i,textSpan:s}=e,o=EE({fileName:i,pos:s.start},t,n);if(!o)return;let c=EE({fileName:i,pos:s.start+s.length},t,n),p=c?c.pos-o.pos:s.length;return{fileName:o.fileName,textSpan:{start:o.pos,length:p},originalFileName:e.fileName,originalTextSpan:e.textSpan,contextSpan:Yq(e,t,n),originalContextSpan:e.contextSpan}}function Yq(e,t,n){let i=e.contextSpan&&EE({fileName:e.fileName,pos:e.contextSpan.start},t,n),s=e.contextSpan&&EE({fileName:e.fileName,pos:e.contextSpan.start+e.contextSpan.length},t,n);return i&&s?{start:i.pos,length:s.pos-i.pos}:void 0}function Zq(e){let t=e.declarations?_l(e.declarations):void 0;return!!vr(t,n=>Gi(n)?!0:Da(n)||o_(n)||ov(n)?!1:"quit")}var Qce=new Map;function BVe(e){return e=e||zP,Qce.has(e)||Qce.set(e,zVe(e)),Qce.get(e)}function zVe(e){let t=e*10,n,i,s,o;h();let c=S=>u(S,17);return{displayParts:()=>{let S=n.length&&n[n.length-1].text;return o>t&&S&&S!=="..."&&(rh(S.charCodeAt(S.length-1))||n.push(pf(" ",16)),n.push(pf("...",15))),n},writeKeyword:S=>u(S,5),writeOperator:S=>u(S,12),writePunctuation:S=>u(S,15),writeTrailingSemicolon:S=>u(S,15),writeSpace:S=>u(S,16),writeStringLiteral:S=>u(S,8),writeParameter:S=>u(S,13),writeProperty:S=>u(S,14),writeLiteral:S=>u(S,8),writeSymbol:g,writeLine:d,write:c,writeComment:c,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:ea,getIndent:()=>s,increaseIndent:()=>{s++},decreaseIndent:()=>{s--},clear:h};function p(){if(!(o>t)&&i){let S=a8(s);S&&(o+=S.length,n.push(pf(S,16))),i=!1}}function u(S,T){o>t||(p(),o+=S.length,n.push(pf(S,T)))}function g(S,T){o>t||(p(),o+=S.length,n.push(GVe(S,T)))}function d(){o>t||(o+=1,n.push(XI()),i=!0)}function h(){n=[],i=!0,s=0,o=0}}function GVe(e,t){return pf(e,n(t));function n(i){let s=i.flags;return s&3?Zq(i)?13:9:s&4||s&32768||s&65536?14:s&8?19:s&16?20:s&32?1:s&64?4:s&384?2:s&1536?11:s&8192?10:s&262144?18:s&524288||s&2097152?0:17}}function pf(e,t){return{text:e,kind:Qj[t]}}function Ic(){return pf(" ",16)}function Rf(e){return pf(ta(e),5)}function ep(e){return pf(ta(e),15)}function NE(e){return pf(ta(e),12)}function Kce(e){return pf(e,13)}function Xce(e){return pf(e,14)}function e$(e){let t=JT(e);return t===void 0?f_(e):Rf(t)}function f_(e){return pf(e,17)}function Yce(e){return pf(e,0)}function Zce(e){return pf(e,18)}function ele(e){return pf(e,24)}function JVe(e,t){return{text:e,kind:Qj[23],target:{fileName:Nr(t).fileName,textSpan:Np(t)}}}function wxe(e){return pf(e,22)}function tle(e,t){var n;let i=Cie(e)?"link":wie(e)?"linkcode":"linkplain",s=[wxe(`{@${i} `)];if(!e.name)e.text&&s.push(ele(e.text));else{let o=t?.getSymbolAtLocation(e.name),c=o&&t?n$(o,t):void 0,p=VVe(e.text),u=pc(e.name)+e.text.slice(0,p),g=UVe(e.text.slice(p)),d=c?.valueDeclaration||((n=c?.declarations)==null?void 0:n[0]);if(d)s.push(JVe(u,d)),g&&s.push(ele(g));else{let h=p===0||e.text.charCodeAt(p)===124&&u.charCodeAt(u.length-1)!==32?" ":"";s.push(ele(u+h+g))}}return s.push(wxe("}")),s}function UVe(e){let t=0;if(e.charCodeAt(t++)===124){for(;t<e.length&&e.charCodeAt(t)===32;)t++;return e.slice(t)}return e}function VVe(e){let t=e.indexOf("://");if(t===0){for(;t<e.length&&e.charCodeAt(t)!==124;)t++;return t}if(e.indexOf("()")===0)return 2;if(e.charAt(0)==="<"){let n=0,i=0;for(;i<e.length;)if(e[i]==="<"&&n++,e[i]===">"&&n--,i++,!n)return i}return 0}var qVe=`
|
|
`;function py(e,t){var n;return t?.newLineCharacter||((n=e.getNewLine)==null?void 0:n.call(e))||qVe}function XI(){return pf(`
|
|
`,6)}function zb(e,t){let n=BVe(t);try{return e(n),n.displayParts()}finally{n.clear()}}function TR(e,t,n,i=0,s,o,c){return zb(p=>{e.writeType(t,n,i|1024|16384,p,s,o,c)},s)}function ME(e,t,n,i,s=0){return zb(o=>{e.writeSymbol(t,n,i,s|8,o)})}function t$(e,t,n,i=0,s,o,c){return i|=25632,zb(p=>{e.writeSignature(t,n,i,void 0,p,s,o,c)},s)}function rle(e){return!!e.parent&&lb(e.parent)&&e.parent.propertyName===e}function r$(e,t){return F8(e,t.getScriptKind&&t.getScriptKind(e))}function n$(e,t){let n=e;for(;$Ve(n)||oh(n)&&n.links.target;)oh(n)&&n.links.target?n=n.links.target:n=vu(n,t);return n}function $Ve(e){return(e.flags&2097152)!==0}function nle(e,t){return sa(vu(e,t))}function ile(e,t){for(;rh(e.charCodeAt(t));)t+=1;return t}function y5(e,t){for(;t>-1&&Rm(e.charCodeAt(t));)t-=1;return t+1}function jk(e,t){let n=e.getSourceFile(),i=n.text;HVe(e,i)?YI(e,t,n):xR(e,t,n),RE(e,t,n)}function HVe(e,t){let n=e.getFullStart(),i=e.getStart();for(let s=n;s<i;s++)if(t.charCodeAt(s)===10)return!0;return!1}function Lk(e,t){let n=e;for(let i=1;!wF(t,n);i++)n=`${e}_${i}`;return n}function kR(e,t,n,i){let s=0,o=-1;for(let{fileName:c,textChanges:p}of e){w.assert(c===t);for(let u of p){let{span:g,newText:d}=u,h=QVe(d,Dg(n));if(h!==-1&&(o=g.start+s+h,!i))return o;s+=d.length-g.length}}return w.assert(i),w.assert(o>=0),o}function YI(e,t,n,i,s){bM(n.text,e.pos,sle(t,n,i,s,Ib))}function RE(e,t,n,i,s){SM(n.text,e.end,sle(t,n,i,s,FA))}function xR(e,t,n,i,s){SM(n.text,e.pos,sle(t,n,i,s,Ib))}function sle(e,t,n,i,s){return(o,c,p,u)=>{p===3?(o+=2,c-=2):o+=2,s(e,n||p,t.text.slice(o,c),i!==void 0?i:u)}}function QVe(e,t){if(Zi(e,t))return 0;let n=e.indexOf(" "+t);return n===-1&&(n=e.indexOf("."+t)),n===-1&&(n=e.indexOf('"'+t)),n===-1?-1:n+1}function v5(e){return vn(e)&&e.operatorToken.kind===28||Sa(e)||(mI(e)||gI(e))&&Sa(e.expression)}function b5(e,t,n){let i=Od(e.parent);switch(i.kind){case 215:return t.getContextualType(i,n);case 227:{let{left:s,operatorToken:o,right:c}=i;return S5(o.kind)?t.getTypeAtLocation(e===c?s:c):t.getContextualType(e,n)}case 297:return s$(i,t);default:return t.getContextualType(e,n)}}function OE(e,t,n){let i=Mf(e,t),s=JSON.stringify(n);return i===0?`'${_d(s).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:s}function S5(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function ale(e){switch(e.kind){case 11:case 15:case 229:case 216:return!0;default:return!1}}function i$(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function s$(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}var a$="anonymous function";function FE(e,t,n,i){let s=n.getTypeChecker(),o=!0,c=()=>o=!1,p=s.typeToTypeNode(e,t,1,8,{trackSymbol:(u,g,d)=>(o=o&&s.isSymbolAccessible(u,g,d,!1).accessibility===0,!o),reportInaccessibleThisError:c,reportPrivateInBaseOfClassExpression:c,reportInaccessibleUniqueSymbolError:c,moduleResolverHost:Jq(n,i)});return o?p:void 0}function ole(e){return e===180||e===181||e===182||e===172||e===174}function Ixe(e){return e===263||e===177||e===175||e===178||e===179}function Dxe(e){return e===268}function cle(e){return e===244||e===245||e===247||e===252||e===253||e===254||e===258||e===260||e===173||e===266||e===273||e===272||e===279||e===271||e===278}var KVe=vf(ole,Ixe,Dxe,cle);function XVe(e,t){let n=e.getLastToken(t);if(n&&n.kind===27)return!1;if(ole(e.kind)){if(n&&n.kind===28)return!1}else if(Dxe(e.kind)){let p=ka(e.getChildren(t));if(p&&Qm(p))return!1}else if(Ixe(e.kind)){let p=ka(e.getChildren(t));if(p&&bS(p))return!1}else if(!cle(e.kind))return!1;if(e.kind===247)return!0;let i=vr(e,p=>!p.parent),s=YS(e,i,t);if(!s||s.kind===20)return!0;let o=t.getLineAndCharacterOfPosition(e.getEnd()).line,c=t.getLineAndCharacterOfPosition(s.getStart(t)).line;return o!==c}function T5(e,t,n){let i=vr(t,s=>s.end!==e?"quit":KVe(s.kind));return!!i&&XVe(i,n)}function CR(e){let t=0,n=0,i=5;return Ms(e,function s(o){if(cle(o.kind)){let c=o.getLastToken(e);c?.kind===27?t++:n++}else if(ole(o.kind)){let c=o.getLastToken(e);if(c?.kind===27)t++;else if(c&&c.kind!==28){let p=Hs(e,c.getStart(e)).line,u=Hs(e,jm(e,c.end).start).line;p!==u&&n++}}return t+n>=i?!0:Ms(o,s)}),t===0&&n<=1?!0:t/n>1/i}function k5(e,t){return lle(e,e.getDirectories,t)||[]}function o$(e,t,n,i,s){return lle(e,e.readDirectory,t,n,i,s)||Ke}function jE(e,t){return lle(e,e.fileExists,t)}function x5(e,t){return C5(()=>sm(t,e))||!1}function C5(e){try{return e()}catch{return}}function lle(e,t,...n){return C5(()=>t&&t.apply(e,n))}function c$(e,t){let n=[];return Eg(t,e,i=>{let s=Jn(i,"package.json");jE(t,s)&&n.push(s)}),n}function ule(e,t){let n;return Eg(t,e,i=>{if(i==="node_modules"||(n=lV(i,s=>jE(t,s),"package.json"),n))return!0}),n}function YVe(e,t){if(!t.fileExists)return[];let n=[];return Eg(t,ti(e),i=>{let s=Jn(i,"package.json");if(t.fileExists(s)){let o=l$(s,t);o&&n.push(o)}}),n}function l$(e,t){if(!t.readFile)return;let n=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",s=R6(i),o={};if(s)for(let u of n){let g=s[u];if(!g)continue;let d=new Map;for(let h in g)d.set(h,g[h]);o[u]=d}let c=[[1,o.dependencies],[2,o.devDependencies],[8,o.optionalDependencies],[4,o.peerDependencies]];return{...o,parseable:!!s,fileName:e,get:p,has(u,g){return!!p(u,g)}};function p(u,g=15){for(let[d,h]of c)if(h&&g&d){let S=h.get(u);if(S!==void 0)return S}}}function ZI(e,t,n){let i=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(e.fileName)||YVe(e.fileName,n)).filter(x=>x.parseable),s,o,c;return{allowsImportingAmbientModule:u,getSourceFileInfo:g,allowsImportingSpecifier:d};function p(x){let I=T(x);for(let P of i)if(P.has(I)||P.has(Z7(I)))return!0;return!1}function u(x,I){if(!i.length||!x.valueDeclaration)return!0;if(!o)o=new Map;else{let W=o.get(x);if(W!==void 0)return W}let P=_d(x.getName());if(h(P))return o.set(x,!0),!0;let E=x.valueDeclaration.getSourceFile(),F=S(E.fileName,I);if(typeof F>"u")return o.set(x,!0),!0;let O=p(F)||p(P);return o.set(x,O),O}function g(x,I){if(!i.length)return{importable:!0,packageName:void 0};if(!c)c=new Map;else{let O=c.get(x);if(O!==void 0)return O}let P=S(x.fileName,I);if(!P){let O={importable:!0,packageName:P};return c.set(x,O),O}let F={importable:p(P),packageName:P};return c.set(x,F),F}function d(x){return!i.length||h(x)||$f(x)||Sf(x)?!0:p(x)}function h(x){return!!(ph(e)&&Cp(e)&&lI.has(x)&&(s===void 0&&(s=w5(e)),s))}function S(x,I){if(!x.includes("node_modules"))return;let P=uy.getNodeModulesPackageName(n.getCompilationSettings(),e,x,I,t);if(P&&!$f(P)&&!Sf(P))return T(P)}function T(x){let I=Nu(aE(x)).slice(1);return Zi(I[0],"@")?`${I[0]}/${I[1]}`:I[0]}}function w5(e){return _t(e.imports,({text:t})=>lI.has(t))}function wR(e){return ws(Nu(e),"node_modules")}function Pxe(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function ple(e,t){let n=Np(e),i=Vx(t,n,Do,RO);if(i>=0){let s=t[i];return w.assertEqual(s.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),Zs(s,Pxe)}}function fle(e,t){var n;let i=Vx(t,e.start,c=>c.start,Po);for(i<0&&(i=~i);((n=t[i-1])==null?void 0:n.start)===e.start;)i--;let s=[],o=mc(e);for(;;){let c=Hn(t[i],Pxe);if(!c||c.start>o)break;Cee(e,c)&&s.push(c),i++}return s}function uC({startPosition:e,endPosition:t}){return $c(e,t===void 0?e:t)}function u$(e,t){let n=Ii(e,t.start);return vr(n,s=>s.getStart(e)<t.start||s.getEnd()>mc(t)?"quit":ht(s)&&KI(t,Np(s,e)))}function p$(e,t,n=Do){return e?gs(e)?n(kr(e,t)):t(e,0):void 0}function f$(e){return gs(e)?Ra(e):e}function I5(e,t,n){return e.escapedName==="export="||e.escapedName==="default"?_$(e)||IR(ZVe(e),t,!!n):e.name}function _$(e){return fo(e.declarations,t=>{var n,i,s;if(Qo(t))return(n=Hn(Nc(t.expression),Be))==null?void 0:n.text;if(Xu(t)&&t.symbol.flags===2097152)return(i=Hn(t.propertyName,Be))==null?void 0:i.text;let o=(s=Hn(Ss(t),Be))==null?void 0:s.text;if(o)return o;if(e.parent&&!a2(e.parent))return e.parent.getName()})}function ZVe(e){var t;return w.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${w.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(n=>{let i=w.formatSyntaxKind(n.kind),s=dn(n),{expression:o}=n;return(s?"[JS]":"")+i+(o?` (expression: ${w.formatSyntaxKind(o.kind)})`:"")}).join(", ")}.`)}function IR(e,t,n){return DR(dp(_d(e.name)),t,n)}function DR(e,t,n){let i=dl(Sw(dp(e),"/index")),s="",o=!0,c=i.charCodeAt(0);Sg(c,t)?(s+=String.fromCharCode(c),n&&(s=s.toUpperCase())):o=!1;for(let p=1;p<i.length;p++){let u=i.charCodeAt(p),g=Qh(u,t);if(g){let d=String.fromCharCode(u);o||(d=d.toUpperCase()),s+=d}o=g}return y2(s)?`_${s}`:s||"_"}function _le(e,t,n){let i=t.length;if(i+n>e.length)return!1;for(let s=0;s<i;s++)if(t.charCodeAt(s)!==e.charCodeAt(s+n))return!1;return!0}function d$(e){return e.charCodeAt(0)===95}function D5(e){return!!(AB(e)&65536)}function P5(e,t){let n;for(let i of e.imports)if(lI.has(i.text)&&!X8.has(i.text)){if(Zi(i.text,"node:"))return!0;n=!1}return n??t.usesUriStyleNodeCoreModules}function PR(e){return e===`
|
|
`?1:0}function ZS(e){return gs(e)?mh(Es(e[0]),e.slice(1)):Es(e)}function A5({options:e},t){let n=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||n&&!CR(t);return{...e,semicolons:i?"remove":"ignore"}}function m$(e){return e===2||e===3}function eD(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function E5(e,t){let n=new Set,i=new Set,s=new Set;for(let p of t)if(!qA(p)){let u=Qa(p.expression);if($T(u))switch(u.kind){case 15:case 11:n.add(u.text);break;case 9:i.add(parseInt(u.text));break;case 10:let g=Tne(Bo(u.text,"n")?u.text.slice(0,-1):u.text);g&&s.add(MS(g));break}else{let g=e.getSymbolAtLocation(p.expression);if(g&&g.valueDeclaration&&oy(g.valueDeclaration)){let d=e.getConstantValue(g.valueDeclaration);d!==void 0&&o(d)}}}return{addValue:o,hasValue:c};function o(p){switch(typeof p){case"string":n.add(p);break;case"number":i.add(p)}}function c(p){switch(typeof p){case"string":return n.has(p);case"number":return i.has(p);case"object":return s.has(MS(p))}}}function g$(e,t,n,i){var s;let o=typeof e=="string"?e:e.fileName;if(!gh(o))return!1;let c=typeof e=="string"?t.getCompilerOptions():t.getCompilerOptionsForFile(e),p=_p(c),u=typeof e=="string"?{fileName:e,impliedNodeFormat:Z4(So(e,n.getCurrentDirectory(),ty(n)),(s=t.getPackageJsonInfoCache)==null?void 0:s.call(t),n,c)}:e,g=Rk(u,c);if(g===99)return!1;if(g===1||c.verbatimModuleSyntax&&p===1)return!0;if(c.verbatimModuleSyntax&&G6(p))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}function pC(e){switch(e.kind){case 242:case 308:case 269:case 297:return!0;default:return!1}}function N5(e,t,n,i){var s;let o=kj(e,(s=n.getPackageJsonInfoCache)==null?void 0:s.call(n),i,n.getCompilerOptions()),c,p;return typeof o=="object"&&(c=o.impliedNodeFormat,p=o.packageJsonScope),{path:So(e,n.getCurrentDirectory(),n.getCanonicalFileName),fileName:e,externalModuleIndicator:t===99?!0:void 0,commonJsModuleIndicator:t===1?!0:void 0,impliedNodeFormat:c,packageJsonScope:p,statements:Ke,imports:Ke}}var dle=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(dle||{}),mle=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e[e.Module=4]="Module",e))(mle||{});function h$(e){let t=1,n=od(),i=new Map,s=new Map,o,c={isUsableByFile:T=>T===o,isEmpty:()=>!n.size,clear:()=>{n.clear(),i.clear(),o=void 0},add:(T,x,I,P,E,F,O,W)=>{T!==o&&(c.clear(),o=T);let z;if(E){let ve=V8(E.fileName);if(ve){let{topLevelNodeModulesIndex:H,topLevelPackageNameIndex:Se,packageRootIndex:Je}=ve;if(z=F4(aE(E.fileName.substring(Se+1,Je))),Zi(T,E.path.substring(0,H))){let ye=s.get(z),ee=E.fileName.substring(0,Se+1);if(ye){let ge=ye.indexOf(Th);H>ge&&s.set(z,ee)}else s.set(z,ee)}}}let X=F===1&&dA(x)||x,U=F===0||a2(X)?Ai(I):tqe(X,W,void 0),_e=typeof U=="string"?U:U[0],re=typeof U=="string"?void 0:U[1],V=_d(P.name),ce=t++,oe=vu(x,W),le=x.flags&33554432?void 0:x,de=P.flags&33554432?void 0:P;(!le||!de)&&i.set(ce,[x,P]),n.add(u(_e,x,Ul(V)?void 0:V,W),{id:ce,symbolTableKey:I,symbolName:_e,capitalizedSymbolName:re,moduleName:V,moduleFile:E,moduleFileName:E?.fileName,packageName:z,exportKind:F,targetFlags:oe.flags,isFromPackageJson:O,symbol:le,moduleSymbol:de})},get:(T,x)=>{if(T!==o)return;let I=n.get(x);return I?.map(p)},search:(T,x,I,P)=>{if(T===o)return Rl(n,(E,F)=>{let{symbolName:O,ambientModuleName:W}=g(F),z=x&&E[0].capitalizedSymbolName||O;if(I(z,E[0].targetFlags)){let X=E.map(p).filter((U,_e)=>S(U,E[_e].packageName));if(X.length){let U=P(X,z,!!W,F);if(U!==void 0)return U}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(T,x,I)=>d(T)&&d(x)?!1:o&&o!==x.path||I&&w5(T)!==w5(x)||!qf(T.moduleAugmentations,x.moduleAugmentations)||!h(T,x)?(c.clear(),!0):(o=x.path,!1)};return w.isDebugging&&Object.defineProperty(c,"__cache",{value:n}),c;function p(T){if(T.symbol&&T.moduleSymbol)return T;let{id:x,exportKind:I,targetFlags:P,isFromPackageJson:E,moduleFileName:F}=T,[O,W]=i.get(x)||Ke;if(O&&W)return{symbol:O,moduleSymbol:W,moduleFileName:F,exportKind:I,targetFlags:P,isFromPackageJson:E};let z=(E?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),$=T.moduleSymbol||W||w.checkDefined(T.moduleFile?z.getMergedSymbol(T.moduleFile.symbol):z.tryFindAmbientModule(T.moduleName)),X=T.symbol||O||w.checkDefined(I===2?z.resolveExternalModuleSymbol($):z.tryGetMemberInModuleExportsAndProperties(Ai(T.symbolTableKey),$),`Could not find symbol '${T.symbolName}' by key '${T.symbolTableKey}' in module ${$.name}`);return i.set(x,[X,$]),{symbol:X,moduleSymbol:$,moduleFileName:F,exportKind:I,targetFlags:P,isFromPackageJson:E}}function u(T,x,I,P){let E=I||"";return`${T.length} ${sa(vu(x,P))} ${T} ${E}`}function g(T){let x=T.indexOf(" "),I=T.indexOf(" ",x+1),P=parseInt(T.substring(0,x),10),E=T.substring(I+1),F=E.substring(0,P),O=E.substring(P+1);return{symbolName:F,ambientModuleName:O===""?void 0:O}}function d(T){return!T.commonJsModuleIndicator&&!T.externalModuleIndicator&&!T.moduleAugmentations&&!T.ambientModuleNames}function h(T,x){if(!qf(T.ambientModuleNames,x.ambientModuleNames))return!1;let I=-1,P=-1;for(let E of x.ambientModuleNames){let F=O=>uz(O)&&O.name.text===E;if(I=Tc(T.statements,F,I+1),P=Tc(x.statements,F,P+1),T.statements[I]!==x.statements[P])return!1}return!0}function S(T,x){if(!x||!T.moduleFileName)return!0;let I=e.getGlobalTypingsCacheLocation();if(I&&Zi(T.moduleFileName,I))return!0;let P=s.get(x);return!P||Zi(T.moduleFileName,P)}}function y$(e,t,n,i,s,o,c,p){var u;if(!n){let T,x=_d(i.name);return lI.has(x)&&(T=P5(t,e))!==void 0?T===Zi(x,"node:"):!o||o.allowsImportingAmbientModule(i,c)||gle(t,x)}if(w.assertIsDefined(n),t===n)return!1;let g=p?.get(t.path,n.path,s,{});if(g?.isBlockedByPackageJsonDependencies!==void 0)return!g.isBlockedByPackageJsonDependencies||!!g.packageName&&gle(t,g.packageName);let d=ty(c),h=(u=c.getGlobalTypingsCacheLocation)==null?void 0:u.call(c),S=!!uy.forEachFileNameOfModule(t.fileName,n.fileName,c,!1,T=>{let x=e.getSourceFile(T);return(x===n||!x)&&eqe(t.fileName,T,d,h,c)});if(o){let T=S?o.getSourceFileInfo(n,c):void 0;return p?.setBlockedByPackageJsonDependencies(t.path,n.path,s,{},T?.packageName,!T?.importable),!!T?.importable||S&&!!T?.packageName&&gle(t,T.packageName)}return S}function gle(e,t){return e.imports&&e.imports.some(n=>n.text===t||n.text.startsWith(t+"/"))}function eqe(e,t,n,i,s){let o=Eg(s,t,p=>dl(p)==="node_modules"?p:void 0),c=o&&ti(n(o));return c===void 0||Zi(n(e),c)||!!i&&Zi(n(i),c)}function v$(e,t,n,i,s){var o,c;let p=ck(t),u=n.autoImportFileExcludePatterns&&Axe(n,p);Exe(e.getTypeChecker(),e.getSourceFiles(),u,t,(d,h)=>s(d,h,e,!1));let g=i&&((o=t.getPackageJsonAutoImportProvider)==null?void 0:o.call(t));if(g){let d=bo(),h=e.getTypeChecker();Exe(g.getTypeChecker(),g.getSourceFiles(),u,t,(S,T)=>{(T&&!e.getSourceFile(T.fileName)||!T&&!h.resolveName(S.name,void 0,1536,!1))&&s(S,T,g,!0)}),(c=t.log)==null||c.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${bo()-d}`)}}function Axe(e,t){return Ji(e.autoImportFileExcludePatterns,n=>{let i=R8(n,"","exclude");return i?ev(i,t):void 0})}function Exe(e,t,n,i,s){var o;let c=n&&Nxe(n,i);for(let p of e.getAmbientModules())!p.name.includes("*")&&!(n&&((o=p.declarations)!=null&&o.every(u=>c(u.getSourceFile()))))&&s(p,void 0);for(let p of t)xf(p)&&!c?.(p)&&s(e.getMergedSymbol(p.symbol),p)}function Nxe(e,t){var n;let i=(n=t.getSymlinkCache)==null?void 0:n.call(t).getSymlinkedDirectoriesByRealpath();return({fileName:s,path:o})=>{if(e.some(c=>c.test(s)))return!0;if(i?.size&&Ob(s)){let c=ti(s);return Eg(t,ti(o),p=>{let u=i.get(Ml(p));if(u)return u.some(g=>e.some(d=>d.test(s.replace(c,g))));c=ti(c)})??!1}return!1}}function hle(e,t){return t.autoImportFileExcludePatterns?Nxe(Axe(t,ck(e)),e):()=>!1}function AR(e,t,n,i,s){var o,c,p,u,g;let d=bo();(o=t.getPackageJsonAutoImportProvider)==null||o.call(t);let h=((c=t.getCachedExportInfoMap)==null?void 0:c.call(t))||h$({getCurrentProgram:()=>n,getPackageJsonAutoImportProvider:()=>{var T;return(T=t.getPackageJsonAutoImportProvider)==null?void 0:T.call(t)},getGlobalTypingsCacheLocation:()=>{var T;return(T=t.getGlobalTypingsCacheLocation)==null?void 0:T.call(t)}});if(h.isUsableByFile(e.path))return(p=t.log)==null||p.call(t,"getExportInfoMap: cache hit"),h;(u=t.log)==null||u.call(t,"getExportInfoMap: cache miss or empty; calculating new results");let S=0;try{v$(n,t,i,!0,(T,x,I,P)=>{++S%100===0&&s?.throwIfCancellationRequested();let E=new Set,F=I.getTypeChecker(),O=M5(T,F);O&&Mxe(O.symbol,F)&&h.add(e.path,O.symbol,O.exportKind===1?"default":"export=",T,x,O.exportKind,P,F),F.forEachExportAndPropertyOfModule(T,(W,z)=>{W!==O?.symbol&&Mxe(W,F)&&dd(E,z)&&h.add(e.path,W,z,T,x,0,P,F)})})}catch(T){throw h.clear(),T}return(g=t.log)==null||g.call(t,`getExportInfoMap: done in ${bo()-d} ms`),h}function M5(e,t){let n=t.resolveExternalModuleSymbol(e);if(n!==e){let s=t.tryGetMemberInModuleExports("default",n);return s?{symbol:s,exportKind:1}:{symbol:n,exportKind:2}}let i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function Mxe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!oA(e)&&!vre(e)}function tqe(e,t,n){let i;return R5(e,t,n,(s,o)=>(i=o?[s,o]:s,!0)),w.checkDefined(i)}function R5(e,t,n,i){let s,o=e,c=new Set;for(;o;){let p=_$(o);if(p){let u=i(p);if(u)return u}if(o.escapedName!=="default"&&o.escapedName!=="export="){let u=i(o.name);if(u)return u}if(s=Fr(s,o),!dd(c,o))break;o=o.flags&2097152?t.getImmediateAliasedSymbol(o):void 0}for(let p of s??Ke)if(p.parent&&a2(p.parent)){let u=i(IR(p.parent,n,!1),IR(p.parent,n,!0));if(u)return u}}function Rxe(){let e=ih(99,!1);function t(i,s,o){return sqe(n(i,s,o),i)}function n(i,s,o){let c=0,p=0,u=[],{prefix:g,pushTemplate:d}=cqe(s);i=g+i;let h=g.length;d&&u.push(16),e.setText(i);let S=0,T=[],x=0;do{c=e.scan(),Kw(c)||(I(),p=c);let P=e.getTokenEnd();if(iqe(e.getTokenStart(),P,h,pqe(c),T),P>=i.length){let E=nqe(e,c,Wo(u));E!==void 0&&(S=E)}}while(c!==1);function I(){switch(c){case 44:case 69:!rqe[p]&&e.reScanSlashToken()===14&&(c=14);break;case 30:p===80&&x++;break;case 32:x>0&&x--;break;case 133:case 154:case 150:case 136:case 155:x>0&&!o&&(c=80);break;case 16:u.push(c);break;case 19:u.length>0&&u.push(c);break;case 20:if(u.length>0){let P=Wo(u);P===16?(c=e.reScanTemplateToken(!1),c===18?u.pop():w.assertEqual(c,17,"Should have been a template middle.")):(w.assertEqual(P,19,"Should have been an open brace"),u.pop())}break;default:if(!qp(c))break;(p===25||qp(p)&&qp(c)&&!oqe(p,c))&&(c=80)}}return{endOfLineState:S,spans:T}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:n}}var rqe=WY([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0);function nqe(e,t,n){switch(t){case 11:{if(!e.isUnterminated())return;let i=e.getTokenText(),s=i.length-1,o=0;for(;i.charCodeAt(s-o)===92;)o++;return(o&1)===0?void 0:i.charCodeAt(0)===34?3:2}case 3:return e.isUnterminated()?1:void 0;default:if(cb(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return w.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return n===16?6:void 0}}function iqe(e,t,n,i,s){if(i===8)return;e===0&&n>0&&(e+=n);let o=t-e;o>0&&s.push(e-n,o,i)}function sqe(e,t){let n=[],i=e.spans,s=0;for(let c=0;c<i.length;c+=3){let p=i[c],u=i[c+1],g=i[c+2];if(s>=0){let d=p-s;d>0&&n.push({length:d,classification:4})}n.push({length:u,classification:aqe(g)}),s=p+u}let o=t.length-s;return o>0&&n.push({length:o,classification:4}),{entries:n,finalLexState:e.endOfLineState}}function aqe(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function oqe(e,t){if(!Oq(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function cqe(e){switch(e){case 3:return{prefix:`"\\
|
|
`};case 2:return{prefix:`'\\
|
|
`};case 1:return{prefix:`/*
|
|
`};case 4:return{prefix:"`\n"};case 5:return{prefix:`}
|
|
`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return w.assertNever(e)}}function lqe(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function uqe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function pqe(e){if(qp(e))return 3;if(lqe(e)||uqe(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;default:return cb(e)?6:2}}function yle(e,t,n,i,s){return jxe(b$(e,t,n,i,s))}function Oxe(e,t){switch(t){case 268:case 264:case 265:case 263:case 232:case 219:case 220:e.throwIfCancellationRequested()}}function b$(e,t,n,i,s){let o=[];return n.forEachChild(function p(u){if(!(!u||!CM(s,u.pos,u.getFullWidth()))){if(Oxe(t,u.kind),Be(u)&&!xc(u)&&i.has(u.escapedText)){let g=e.getSymbolAtLocation(u),d=g&&Fxe(g,Ok(u),e);d&&c(u.getStart(n),u.getEnd(),d)}u.forEachChild(p)}}),{spans:o,endOfLineState:0};function c(p,u,g){let d=u-p;w.assert(d>0,`Classification had non-positive length of ${d}`),o.push(p),o.push(d),o.push(g)}}function Fxe(e,t,n){let i=e.getFlags();if((i&2885600)!==0)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&fqe(e)?14:void 0:i&2097152?Fxe(n.getAliasedSymbol(e),t,n):t&2?i&64?13:i&262144?15:void 0:void 0}function fqe(e){return _t(e.declarations,t=>el(t)&&ly(t)===1)}function _qe(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function jxe(e){w.assert(e.spans.length%3===0);let t=e.spans,n=[];for(let i=0;i<t.length;i+=3)n.push({textSpan:yu(t[i],t[i+1]),classificationType:_qe(t[i+2])});return n}function vle(e,t,n){return jxe(S$(e,t,n))}function S$(e,t,n){let i=n.start,s=n.length,o=ih(99,!1,t.languageVariant,t.text),c=ih(99,!1,t.languageVariant,t.text),p=[];return W(t),{spans:p,endOfLineState:0};function u(z,$,X){p.push(z),p.push($),p.push(X)}function g(z){for(o.resetTokenState(z.pos);;){let $=o.getTokenEnd();if(!vee(t.text,$))return $;let X=o.scan(),U=o.getTokenEnd(),_e=U-$;if(!Kw(X))return $;switch(X){case 4:case 5:continue;case 2:case 3:d(z,X,$,_e),o.resetTokenState(U);continue;case 7:let re=t.text,V=re.charCodeAt($);if(V===60||V===62){u($,_e,1);continue}w.assert(V===124||V===61),I(re,$,U);break;case 6:break;default:w.assertNever(X)}}}function d(z,$,X,U){if($===3){let _e=tse(t.text,X,U);if(_e&&_e.jsDoc){Ka(_e.jsDoc,z),S(_e.jsDoc);return}}else if($===2&&T(X,U))return;h(X,U)}function h(z,$){u(z,$,1)}function S(z){var $,X,U,_e,re,V,ce,oe;let le=z.pos;if(z.tags)for(let ve of z.tags){ve.pos!==le&&h(le,ve.pos-le),u(ve.pos,1,10),u(ve.tagName.pos,ve.tagName.end-ve.tagName.pos,18),le=ve.tagName.end;let H=ve.tagName.end;switch(ve.kind){case 342:let Se=ve;de(Se),H=Se.isNameFirst&&(($=Se.typeExpression)==null?void 0:$.end)||Se.name.end;break;case 349:let Je=ve;H=Je.isNameFirst&&((X=Je.typeExpression)==null?void 0:X.end)||Je.name.end;break;case 346:x(ve),le=ve.end,H=ve.typeParameters.end;break;case 347:let ye=ve;H=((U=ye.typeExpression)==null?void 0:U.kind)===310&&((_e=ye.fullName)==null?void 0:_e.end)||((re=ye.typeExpression)==null?void 0:re.end)||H;break;case 339:H=ve.typeExpression.end;break;case 345:W(ve.typeExpression),le=ve.end,H=ve.typeExpression.end;break;case 344:case 341:H=ve.typeExpression.end;break;case 343:W(ve.typeExpression),le=ve.end,H=((V=ve.typeExpression)==null?void 0:V.end)||H;break;case 348:H=((ce=ve.name)==null?void 0:ce.end)||H;break;case 329:case 330:H=ve.class.end;break;case 350:W(ve.typeExpression),le=ve.end,H=((oe=ve.typeExpression)==null?void 0:oe.end)||H;break}typeof ve.comment=="object"?h(ve.comment.pos,ve.comment.end-ve.comment.pos):typeof ve.comment=="string"&&h(H,ve.end-H)}le!==z.end&&h(le,z.end-le);return;function de(ve){ve.isNameFirst&&(h(le,ve.name.pos-le),u(ve.name.pos,ve.name.end-ve.name.pos,17),le=ve.name.end),ve.typeExpression&&(h(le,ve.typeExpression.pos-le),W(ve.typeExpression),le=ve.typeExpression.end),ve.isNameFirst||(h(le,ve.name.pos-le),u(ve.name.pos,ve.name.end-ve.name.pos,17),le=ve.name.end)}}function T(z,$){let X=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/m,U=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/g,_e=t.text.substr(z,$),re=X.exec(_e);if(!re||!re[3]||!(re[3]in GO))return!1;let V=z;h(V,re[1].length),V+=re[1].length,u(V,re[2].length,10),V+=re[2].length,u(V,re[3].length,21),V+=re[3].length;let ce=re[4],oe=V;for(;;){let de=U.exec(ce);if(!de)break;let ve=V+de.index+de[1].length;ve>oe&&(h(oe,ve-oe),oe=ve),u(oe,de[2].length,22),oe+=de[2].length,de[3].length&&(h(oe,de[3].length),oe+=de[3].length),u(oe,de[4].length,5),oe+=de[4].length,de[5].length&&(h(oe,de[5].length),oe+=de[5].length),u(oe,de[6].length,24),oe+=de[6].length}V+=re[4].length,V>oe&&h(oe,V-oe),re[5]&&(u(V,re[5].length,10),V+=re[5].length);let le=z+$;return V<le&&h(V,le-V),!0}function x(z){for(let $ of z.getChildren())W($)}function I(z,$,X){let U;for(U=$;U<X&&!qu(z.charCodeAt(U));U++);for(u($,U-$,1),c.resetTokenState(U);c.getTokenEnd()<X;)P()}function P(){let z=c.getTokenEnd(),$=c.scan(),X=c.getTokenEnd(),U=O($);U&&u(z,X-z,U)}function E(z){if(um(z)||xc(z))return!0;let $=F(z);if(!t2(z)&&z.kind!==12&&$===void 0)return!1;let X=z.kind===12?z.pos:g(z),U=z.end-X;if(w.assert(U>=0),U>0){let _e=$||O(z.kind,z);_e&&u(X,U,_e)}return!0}function F(z){switch(z.parent&&z.parent.kind){case 287:if(z.parent.tagName===z)return 19;break;case 288:if(z.parent.tagName===z)return 20;break;case 286:if(z.parent.tagName===z)return 21;break;case 292:if(z.parent.name===z)return 22;break}}function O(z,$){if(qp(z))return 3;if((z===30||z===32)&&$&&zce($.parent))return 10;if(jz(z)){if($){let X=$.parent;if(z===64&&(X.kind===261||X.kind===173||X.kind===170||X.kind===292)||X.kind===227||X.kind===225||X.kind===226||X.kind===228)return 5}return 10}else{if(z===9)return 4;if(z===10)return 25;if(z===11)return $&&$.parent.kind===292?24:6;if(z===14)return 6;if(cb(z))return 6;if(z===12)return 23;if(z===80){if($){switch($.parent.kind){case 264:return $.parent.name===$?11:void 0;case 169:return $.parent.name===$?15:void 0;case 265:return $.parent.name===$?13:void 0;case 267:return $.parent.name===$?12:void 0;case 268:return $.parent.name===$?14:void 0;case 170:return $.parent.name===$?Sb($)?3:17:void 0}if(Nd($.parent))return 3}return 2}}}function W(z){if(z&&wM(i,s,z.pos,z.getFullWidth())){Oxe(e,z.kind);for(let $ of z.getChildren(t))E($)||W($)}}}var O5;(e=>{function t(V,ce,oe,le,de){let ve=Kp(oe,le);if(ve.parent&&(cm(ve.parent)&&ve.parent.tagName===ve||BS(ve.parent))){let{openingElement:H,closingElement:Se}=ve.parent.parent,Je=[H,Se].map(({tagName:ye})=>n(ye,oe));return[{fileName:oe.fileName,highlightSpans:Je}]}return i(le,ve,V,ce,de)||s(ve,oe)}e.getDocumentHighlights=t;function n(V,ce){return{fileName:ce.fileName,textSpan:Np(V,ce),kind:"none"}}function i(V,ce,oe,le,de){let ve=new Set(de.map(ye=>ye.fileName)),H=jo.getReferenceEntriesForNode(V,ce,oe,de,le,void 0,ve);if(!H)return;let Se=uM(H.map(jo.toHighlightSpan),ye=>ye.fileName,ye=>ye.span),Je=hu(oe.useCaseSensitiveFileNames());return ds(Hv(Se.entries(),([ye,ee])=>{if(!ve.has(ye)){if(!oe.redirectTargetsMap.has(So(ye,oe.getCurrentDirectory(),Je)))return;let ge=oe.getSourceFile(ye);ye=Bn(de,Oe=>!!Oe.redirectInfo&&Oe.redirectInfo.redirectTarget===ge).fileName,w.assert(ve.has(ye))}return{fileName:ye,highlightSpans:ee}}))}function s(V,ce){let oe=o(V,ce);return oe&&[{fileName:ce.fileName,highlightSpans:oe}]}function o(V,ce){switch(V.kind){case 101:case 93:return q0(V.parent)?U(V.parent,ce):void 0;case 107:return le(V.parent,Qf,W);case 111:return le(V.parent,vJ,O);case 113:case 85:case 98:let ve=V.kind===85?V.parent.parent:V.parent;return le(ve,Sk,F);case 109:return le(V.parent,UA,E);case 84:case 90:return qA(V.parent)||vI(V.parent)?le(V.parent.parent.parent,UA,E):void 0;case 83:case 88:return le(V.parent,RP,P);case 99:case 117:case 92:return le(V.parent,H=>fb(H,!0),I);case 137:return oe(yc,[137]);case 139:case 153:return oe(pb,[139,153]);case 135:return le(V.parent,Ab,z);case 134:return de(z(V));case 127:return de($(V));case 103:case 147:return;default:return ub(V.kind)&&(ql(V.parent)||Qc(V.parent))?de(S(V.kind,V.parent)):void 0}function oe(ve,H){return le(V.parent,ve,Se=>{var Je;return Ji((Je=Hn(Se,rm))==null?void 0:Je.symbol.declarations,ye=>ve(ye)?Bn(ye.getChildren(ce),ee=>ws(H,ee.kind)):void 0)})}function le(ve,H,Se){return H(ve)?de(Se(ve,ce)):void 0}function de(ve){return ve&&ve.map(H=>n(H,ce))}}function c(V){return vJ(V)?[V]:Sk(V)?Qi(V.catchClause?c(V.catchClause):V.tryBlock&&c(V.tryBlock),V.finallyBlock&&c(V.finallyBlock)):Fs(V)?void 0:g(V,c)}function p(V){let ce=V;for(;ce.parent;){let oe=ce.parent;if(bS(oe)||oe.kind===308)return oe;if(Sk(oe)&&oe.tryBlock===ce&&oe.catchClause)return ce;ce=oe}}function u(V){return RP(V)?[V]:Fs(V)?void 0:g(V,u)}function g(V,ce){let oe=[];return V.forEachChild(le=>{let de=ce(le);de!==void 0&&oe.push(...$x(de))}),oe}function d(V,ce){let oe=h(ce);return!!oe&&oe===V}function h(V){return vr(V,ce=>{switch(ce.kind){case 256:if(V.kind===252)return!1;case 249:case 250:case 251:case 248:case 247:return!V.label||re(ce,V.label.escapedText);default:return Fs(ce)&&"quit"}})}function S(V,ce){return Ji(T(ce,S2(V)),oe=>QI(oe,V))}function T(V,ce){let oe=V.parent;switch(oe.kind){case 269:case 308:case 242:case 297:case 298:return ce&64&&hl(V)?[...V.members,V]:oe.statements;case 177:case 175:case 263:return[...oe.parameters,...ni(oe.parent)?oe.parent.members:[]];case 264:case 232:case 265:case 188:let le=oe.members;if(ce&15){let de=Bn(oe.members,yc);if(de)return[...le,...de.parameters]}else if(ce&64)return[...le,oe];return le;default:return}}function x(V,ce,...oe){return ce&&ws(oe,ce.kind)?(V.push(ce),!0):!1}function I(V){let ce=[];if(x(ce,V.getFirstToken(),99,117,92)&&V.kind===247){let oe=V.getChildren();for(let le=oe.length-1;le>=0&&!x(ce,oe[le],117);le--);}return or(u(V.statement),oe=>{d(V,oe)&&x(ce,oe.getFirstToken(),83,88)}),ce}function P(V){let ce=h(V);if(ce)switch(ce.kind){case 249:case 250:case 251:case 247:case 248:return I(ce);case 256:return E(ce)}}function E(V){let ce=[];return x(ce,V.getFirstToken(),109),or(V.caseBlock.clauses,oe=>{x(ce,oe.getFirstToken(),84,90),or(u(oe),le=>{d(V,le)&&x(ce,le.getFirstToken(),83)})}),ce}function F(V,ce){let oe=[];if(x(oe,V.getFirstToken(),113),V.catchClause&&x(oe,V.catchClause.getFirstToken(),85),V.finallyBlock){let le=lo(V,98,ce);x(oe,le,98)}return oe}function O(V,ce){let oe=p(V);if(!oe)return;let le=[];return or(c(oe),de=>{le.push(lo(de,111,ce))}),bS(oe)&&hb(oe,de=>{le.push(lo(de,107,ce))}),le}function W(V,ce){let oe=i_(V);if(!oe)return;let le=[];return hb(Zs(oe.body,Bs),de=>{le.push(lo(de,107,ce))}),or(c(oe.body),de=>{le.push(lo(de,111,ce))}),le}function z(V){let ce=i_(V);if(!ce)return;let oe=[];return ce.modifiers&&ce.modifiers.forEach(le=>{x(oe,le,134)}),Ms(ce,le=>{X(le,de=>{Ab(de)&&x(oe,de.getFirstToken(),135)})}),oe}function $(V){let ce=i_(V);if(!ce)return;let oe=[];return Ms(ce,le=>{X(le,de=>{u4(de)&&x(oe,de.getFirstToken(),127)})}),oe}function X(V,ce){ce(V),!Fs(V)&&!ni(V)&&!uu(V)&&!el(V)&&!gd(V)&&!yi(V)&&Ms(V,oe=>X(oe,ce))}function U(V,ce){let oe=_e(V,ce),le=[];for(let de=0;de<oe.length;de++){if(oe[de].kind===93&&de<oe.length-1){let ve=oe[de],H=oe[de+1],Se=!0;for(let Je=H.getStart(ce)-1;Je>=ve.end;Je--)if(!Rm(ce.text.charCodeAt(Je))){Se=!1;break}if(Se){le.push({fileName:ce.fileName,textSpan:$c(ve.getStart(),H.end),kind:"reference"}),de++;continue}}le.push(n(oe[de],ce))}return le}function _e(V,ce){let oe=[];for(;q0(V.parent)&&V.parent.elseStatement===V;)V=V.parent;for(;;){let le=V.getChildren(ce);x(oe,le[0],101);for(let de=le.length-1;de>=0&&!x(oe,le[de],93);de--);if(!V.elseStatement||!q0(V.elseStatement))break;V=V.elseStatement}return oe}function re(V,ce){return!!vr(V.parent,oe=>Eb(oe)?oe.label.escapedText===ce:"quit")}})(O5||(O5={}));function ER(e){return!!e.sourceFile}function ble(e,t,n){return T$(e,t,n)}function T$(e,t="",n,i){let s=new Map,o=hu(!!e);function c(){let P=ds(s.keys()).filter(E=>E&&E.charAt(0)==="_").map(E=>{let F=s.get(E),O=[];return F.forEach((W,z)=>{ER(W)?O.push({name:z,scriptKind:W.sourceFile.scriptKind,refCount:W.languageServiceRefCount}):W.forEach(($,X)=>O.push({name:z,scriptKind:X,refCount:$.languageServiceRefCount}))}),O.sort((W,z)=>z.refCount-W.refCount),{bucket:E,sourceFiles:O}});return JSON.stringify(P,void 0,2)}function p(P){return typeof P.getCompilationSettings=="function"?P.getCompilationSettings():P}function u(P,E,F,O,W,z){let $=So(P,t,o),X=k$(p(E));return g(P,$,E,X,F,O,W,z)}function g(P,E,F,O,W,z,$,X){return T(P,E,F,O,W,z,!0,$,X)}function d(P,E,F,O,W,z){let $=So(P,t,o),X=k$(p(E));return h(P,$,E,X,F,O,W,z)}function h(P,E,F,O,W,z,$,X){return T(P,E,p(F),O,W,z,!1,$,X)}function S(P,E){let F=ER(P)?P:P.get(w.checkDefined(E,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return w.assert(E===void 0||!F||F.sourceFile.scriptKind===E,`Script kind should match provided ScriptKind:${E} and sourceFile.scriptKind: ${F?.sourceFile.scriptKind}, !entry: ${!F}`),F}function T(P,E,F,O,W,z,$,X,U){var _e,re,V,ce;X=F8(P,X);let oe=p(F),le=F===oe?void 0:F,de=X===6?100:xa(oe),ve=typeof U=="object"?U:{languageVersion:de,impliedNodeFormat:le&&Z4(E,(ce=(V=(re=(_e=le.getCompilerHost)==null?void 0:_e.call(le))==null?void 0:re.getModuleResolutionCache)==null?void 0:V.call(re))==null?void 0:ce.getPackageJsonInfoCache(),le,oe),setExternalModuleIndicator:L6(oe),jsDocParsingMode:n};ve.languageVersion=de,w.assertEqual(n,ve.jsDocParsingMode);let H=s.size,Se=Sle(O,ve.impliedNodeFormat),Je=pP(s,Se,()=>new Map);if(mn){s.size>H&&mn.instant(mn.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:oe.configFilePath,key:Se});let ke=!Kl(E)&&Rl(s,(Oe,nt)=>nt!==Se&&Oe.has(E)&&nt);ke&&mn.instant(mn.Phase.Session,"documentRegistryBucketOverlap",{path:E,key1:ke,key2:Se})}let ye=Je.get(E),ee=ye&&S(ye,X);if(!ee&&i){let ke=i.getDocument(Se,E);ke&&ke.scriptKind===X&&ke.text===lC(W)&&(w.assert($),ee={sourceFile:ke,languageServiceRefCount:0},ge())}if(ee)ee.sourceFile.version!==z&&(ee.sourceFile=rH(ee.sourceFile,W,z,W.getChangeRange(ee.sourceFile.scriptSnapshot)),i&&i.setDocument(Se,E,ee.sourceFile)),$&&ee.languageServiceRefCount++;else{let ke=X5(P,W,ve,z,!1,X);i&&i.setDocument(Se,E,ke),ee={sourceFile:ke,languageServiceRefCount:1},ge()}return w.assert(ee.languageServiceRefCount!==0),ee.sourceFile;function ge(){if(!ye)Je.set(E,ee);else if(ER(ye)){let ke=new Map;ke.set(ye.sourceFile.scriptKind,ye),ke.set(X,ee),Je.set(E,ke)}else ye.set(X,ee)}}function x(P,E,F,O){let W=So(P,t,o),z=k$(E);return I(W,z,F,O)}function I(P,E,F,O){let W=w.checkDefined(s.get(Sle(E,O))),z=W.get(P),$=S(z,F);$.languageServiceRefCount--,w.assert($.languageServiceRefCount>=0),$.languageServiceRefCount===0&&(ER(z)?W.delete(P):(z.delete(F),z.size===1&&W.set(P,Em(z.values(),Do))))}return{acquireDocument:u,acquireDocumentWithKey:g,updateDocument:d,updateDocumentWithKey:h,releaseDocument:x,releaseDocumentWithKey:I,getKeyForCompilationSettings:k$,getDocumentRegistryBucketKeyWithMode:Sle,reportStats:c,getBuckets:()=>s}}function k$(e){return _U(e,KJ)}function Sle(e,t){return t?`${e}|${t}`:e}function Tle(e,t,n,i,s,o,c){let p=ck(i),u=hu(p),g=x$(t,n,u,c),d=x$(n,t,u,c);return gn.ChangeTracker.with({host:i,formatContext:s,preferences:o},h=>{mqe(e,h,g,t,n,i.getCurrentDirectory(),p),gqe(e,h,g,d,i,u)})}function x$(e,t,n,i){let s=n(e);return c=>{let p=i&&i.tryGetSourcePosition({fileName:c,pos:0}),u=o(p?p.fileName:c);return p?u===void 0?void 0:dqe(p.fileName,u,c,n):u};function o(c){if(n(c)===s)return t;let p=IG(c,s,n);return p===void 0?void 0:t+"/"+p}}function dqe(e,t,n,i){let s=Cw(e,t,i);return kle(ti(n),s)}function mqe(e,t,n,i,s,o,c){let{configFile:p}=e.getCompilerOptions();if(!p)return;let u=ti(p.fileName),g=$P(p);if(!g)return;xle(g,(T,x)=>{switch(x){case"files":case"include":case"exclude":{if(d(T)||x!=="include"||!Tu(T.initializer))return;let P=Ji(T.initializer.elements,F=>ya(F)?F.text:void 0);if(P.length===0)return;let E=O8(u,[],P,c,o);ev(w.checkDefined(E.includeFilePattern),c).test(i)&&!ev(w.checkDefined(E.includeFilePattern),c).test(s)&&t.insertNodeAfter(p,ka(T.initializer.elements),A.createStringLiteral(S(s)));return}case"compilerOptions":xle(T.initializer,(I,P)=>{let E=ZJ(P);w.assert(E?.type!=="listOrElement"),E&&(E.isFilePath||E.type==="list"&&E.element.isFilePath)?d(I):P==="paths"&&xle(I.initializer,F=>{if(Tu(F.initializer))for(let O of F.initializer.elements)h(O)})});return}});function d(T){let x=Tu(T.initializer)?T.initializer.elements:[T.initializer],I=!1;for(let P of x)I=h(P)||I;return I}function h(T){if(!ya(T))return!1;let x=kle(u,T.text),I=n(x);return I!==void 0?(t.replaceRangeWithText(p,Wxe(T,p),S(I)),!0):!1}function S(T){return n_(u,T,!c)}}function gqe(e,t,n,i,s,o){let c=e.getSourceFiles();for(let p of c){let u=n(p.fileName),g=u??p.fileName,d=ti(g),h=i(p.fileName),S=h||p.fileName,T=ti(S),x=u!==void 0||h!==void 0;vqe(p,t,I=>{if(!$f(I))return;let P=kle(T,I),E=n(P);return E===void 0?void 0:GT(n_(d,E,o))},I=>{let P=e.getTypeChecker().getSymbolAtLocation(I);if(P?.declarations&&P.declarations.some(F=>pp(F)))return;let E=h!==void 0?Lxe(I,Pk(I.text,S,e.getCompilerOptions(),s),n,c):yqe(P,I,p,e,s,n);return E!==void 0&&(E.updated||x&&$f(I.text))?uy.updateModuleSpecifier(e.getCompilerOptions(),p,g,E.newFileName,o1(e,s),I.text):void 0})}}function hqe(e,t){return ra(Jn(e,t))}function kle(e,t){return GT(hqe(e,t))}function yqe(e,t,n,i,s,o){if(e){let c=Bn(e.declarations,Li).fileName,p=o(c);return p===void 0?{newFileName:c,updated:!1}:{newFileName:p,updated:!0}}else{let c=i.getModeForUsageLocation(n,t),p=s.resolveModuleNameLiterals||!s.resolveModuleNames?i.getResolvedModuleFromModuleSpecifier(t,n):s.getResolvedModuleWithFailedLookupLocationsFromCache&&s.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,n.fileName,c);return Lxe(t,p,o,i.getSourceFiles())}}function Lxe(e,t,n,i){if(!t)return;if(t.resolvedModule){let u=p(t.resolvedModule.resolvedFileName);if(u)return u}let s=or(t.failedLookupLocations,o)||$f(e.text)&&or(t.failedLookupLocations,c);if(s)return s;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function o(u){let g=n(u);return g&&Bn(i,d=>d.fileName===g)?c(u):void 0}function c(u){return Bo(u,"/package.json")?void 0:p(u)}function p(u){let g=n(u);return g&&{newFileName:g,updated:!0}}}function vqe(e,t,n,i){for(let s of e.referencedFiles||Ke){let o=n(s.fileName);o!==void 0&&o!==e.text.slice(s.pos,s.end)&&t.replaceRangeWithText(e,s,o)}for(let s of e.imports){let o=i(s);o!==void 0&&o!==s.text&&t.replaceRangeWithText(e,Wxe(s,e),o)}}function Wxe(e,t){return O_(e.getStart(t)+1,e.end-1)}function xle(e,t){if(Sa(e))for(let n of e.properties)yl(n)&&ya(n.name)&&t(n,n.name.text)}var C$=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(C$||{});function LE(e,t){return{kind:e,isCaseSensitive:t}}function Cle(e){let t=new Map,n=e.trim().split(".").map(i=>kqe(i.trim()));if(n.length===1&&n[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>LE(2,!0),getFullMatch:()=>LE(2,!0),patternContainsDots:!1};if(!n.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,s)=>bqe(i,s,n,t),getMatchForLastSegmentOfPattern:i=>wle(i,ka(n),t),patternContainsDots:n.length>1}}function bqe(e,t,n,i){if(!wle(t,ka(n),i)||n.length-1>e.length)return;let o;for(let c=n.length-2,p=e.length-1;c>=0;c-=1,p-=1)o=Gxe(o,wle(e[p],n[c],i));return o}function Bxe(e,t){let n=t.get(e);return n||t.set(e,n=Nle(e)),n}function zxe(e,t,n){let i=xqe(e,t.textLowerCase);if(i===0)return LE(t.text.length===e.length?0:1,Zi(e,t.text));if(t.isLowerCase){if(i===-1)return;let s=Bxe(e,n);for(let o of s)if(Ile(e,o,t.text,!0))return LE(2,Ile(e,o,t.text,!1));if(t.text.length<e.length&&tD(e.charCodeAt(i)))return LE(2,!1)}else{if(e.indexOf(t.text)>0)return LE(2,!0);if(t.characterSpans.length>0){let s=Bxe(e,n),o=Jxe(e,s,t,!1)?!0:Jxe(e,s,t,!0)?!1:void 0;if(o!==void 0)return LE(3,o)}}}function wle(e,t,n){if(w$(t.totalTextChunk.text,o=>o!==32&&o!==42)){let o=zxe(e,t.totalTextChunk,n);if(o)return o}let i=t.subWordTextChunks,s;for(let o of i)s=Gxe(s,zxe(e,o,n));return s}function Gxe(e,t){return BW([e,t],Sqe)}function Sqe(e,t){return e===void 0?1:t===void 0?-1:Po(e.kind,t.kind)||C0(!e.isCaseSensitive,!t.isCaseSensitive)}function Ile(e,t,n,i,s={start:0,length:n.length}){return s.length<=t.length&&$xe(0,s.length,o=>Tqe(n.charCodeAt(s.start+o),e.charCodeAt(t.start+o),i))}function Tqe(e,t,n){return n?Dle(e)===Dle(t):e===t}function Jxe(e,t,n,i){let s=n.characterSpans,o=0,c=0,p,u;for(;;){if(c===s.length)return!0;if(o===t.length)return!1;let g=t[o],d=!1;for(;c<s.length;c++){let h=s[c];if(d&&(!tD(n.text.charCodeAt(s[c-1].start))||!tD(n.text.charCodeAt(s[c].start)))||!Ile(e,g,n.text,i,h))break;d=!0,p=p===void 0?o:p,u=u===void 0?!0:u,g=yu(g.start+h.length,g.length-h.length)}!d&&u!==void 0&&(u=!1),o++}}function kqe(e){return{totalTextChunk:Ale(e),subWordTextChunks:wqe(e)}}function tD(e){if(e>=65&&e<=90)return!0;if(e<127||!XO(e,99))return!1;let t=String.fromCharCode(e);return t===t.toUpperCase()}function Uxe(e){if(e>=97&&e<=122)return!0;if(e<127||!XO(e,99))return!1;let t=String.fromCharCode(e);return t===t.toLowerCase()}function xqe(e,t){let n=e.length-t.length;for(let i=0;i<=n;i++)if(w$(t,(s,o)=>Dle(e.charCodeAt(o+i))===s))return i;return-1}function Dle(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function Ple(e){return e>=48&&e<=57}function Cqe(e){return tD(e)||Uxe(e)||Ple(e)||e===95||e===36}function wqe(e){let t=[],n=0,i=0;for(let s=0;s<e.length;s++){let o=e.charCodeAt(s);Cqe(o)?(i===0&&(n=s),i++):i>0&&(t.push(Ale(e.substr(n,i))),i=0)}return i>0&&t.push(Ale(e.substr(n,i))),t}function Ale(e){let t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:Ele(e)}}function Ele(e){return Vxe(e,!1)}function Nle(e){return Vxe(e,!0)}function Vxe(e,t){let n=[],i=0;for(let s=1;s<e.length;s++){let o=Ple(e.charCodeAt(s-1)),c=Ple(e.charCodeAt(s)),p=Dqe(e,t,s),u=t&&Iqe(e,s,i);(Mle(e.charCodeAt(s-1))||Mle(e.charCodeAt(s))||o!==c||p||u)&&(qxe(e,i,s)||n.push(yu(i,s-i)),i=s)}return qxe(e,i,e.length)||n.push(yu(i,e.length-i)),n}function Mle(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function qxe(e,t,n){return w$(e,i=>Mle(i)&&i!==95,t,n)}function Iqe(e,t,n){return t!==n&&t+1<e.length&&tD(e.charCodeAt(t))&&Uxe(e.charCodeAt(t+1))&&w$(e,tD,n,t)}function Dqe(e,t,n){let i=tD(e.charCodeAt(n-1));return tD(e.charCodeAt(n))&&(!t||!i)}function $xe(e,t,n){for(let i=e;i<t;i++)if(!n(i))return!1;return!0}function w$(e,t,n=0,i=e.length){return $xe(n,i,s=>t(e.charCodeAt(s),s))}function Hxe(e,t=!0,n=!1){let i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},s=[],o,c,p,u=0,g=!1;function d(){return c=p,p=pu.scan(),p===19?u++:p===20&&u--,p}function h(){let z=pu.getTokenValue(),$=pu.getTokenStart();return{fileName:z,pos:$,end:$+z.length}}function S(){o||(o=[]),o.push({ref:h(),depth:u})}function T(){s.push(h()),x()}function x(){u===0&&(g=!0)}function I(){let z=pu.getToken();return z===138?(z=d(),z===144&&(z=d(),z===11&&S()),!0):!1}function P(){if(c===25)return!1;let z=pu.getToken();if(z===102){if(z=d(),z===21){if(z=d(),z===11||z===15)return T(),!0}else{if(z===11)return T(),!0;if(z===156&&pu.lookAhead(()=>{let X=pu.scan();return X!==161&&(X===42||X===19||X===80||qp(X))})&&(z=d()),z===80||qp(z))if(z=d(),z===161){if(z=d(),z===11)return T(),!0}else if(z===64){if(F(!0))return!0}else if(z===28)z=d();else return!0;if(z===19){for(z=d();z!==20&&z!==1;)z=d();z===20&&(z=d(),z===161&&(z=d(),z===11&&T()))}else z===42&&(z=d(),z===130&&(z=d(),(z===80||qp(z))&&(z=d(),z===161&&(z=d(),z===11&&T()))))}return!0}return!1}function E(){let z=pu.getToken();if(z===95){if(x(),z=d(),z===156&&pu.lookAhead(()=>{let X=pu.scan();return X===42||X===19})&&(z=d()),z===19){for(z=d();z!==20&&z!==1;)z=d();z===20&&(z=d(),z===161&&(z=d(),z===11&&T()))}else if(z===42)z=d(),z===161&&(z=d(),z===11&&T());else if(z===102&&(z=d(),z===156&&pu.lookAhead(()=>{let X=pu.scan();return X===80||qp(X)})&&(z=d()),(z===80||qp(z))&&(z=d(),z===64&&F(!0))))return!0;return!0}return!1}function F(z,$=!1){let X=z?d():pu.getToken();return X===149?(X=d(),X===21&&(X=d(),(X===11||$&&X===15)&&T()),!0):!1}function O(){let z=pu.getToken();if(z===80&&pu.getTokenValue()==="define"){if(z=d(),z!==21)return!0;if(z=d(),z===11||z===15)if(z=d(),z===28)z=d();else return!0;if(z!==23)return!0;for(z=d();z!==24&&z!==1;)(z===11||z===15)&&T(),z=d();return!0}return!1}function W(){for(pu.setText(e),d();pu.getToken()!==1;){if(pu.getToken()===16){let z=[pu.getToken()];e:for(;Dr(z);){let $=pu.scan();switch($){case 1:break e;case 102:P();break;case 16:z.push($);break;case 19:Dr(z)&&z.push($);break;case 20:Dr(z)&&(Wo(z)===16?pu.reScanTemplateToken(!1)===18&&z.pop():z.pop());break}}d()}I()||P()||E()||n&&(F(!1,!0)||O())||d()}pu.setText(void 0)}if(t&&W(),VJ(i,e),qJ(i,no),g){if(o)for(let z of o)s.push(z.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:s,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let z;if(o)for(let $ of o)$.depth===0?(z||(z=[]),z.push($.ref.fileName)):s.push($.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:s,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:z}}}var Pqe=/^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/;function Rle(e){let t=hu(e.useCaseSensitiveFileNames()),n=e.getCurrentDirectory(),i=new Map,s=new Map;return{tryGetSourcePosition:p,tryGetGeneratedPosition:u,toLineColumnOffset:S,clearCache:T,documentPositionMappers:s};function o(x){return So(x,n,t)}function c(x,I){let P=o(x),E=s.get(P);if(E)return E;let F;if(e.getDocumentPositionMapper)F=e.getDocumentPositionMapper(x,I);else if(e.readFile){let O=h(x);F=O&&I$({getSourceFileLike:h,getCanonicalFileName:t,log:W=>e.log(W)},x,jU(O.text,th(O)),W=>!e.fileExists||e.fileExists(W)?e.readFile(W):void 0)}return s.set(P,F||WU),F||WU}function p(x){if(!Kl(x.fileName)||!g(x.fileName))return;let P=c(x.fileName).getSourcePosition(x);return!P||P===x?void 0:p(P)||P}function u(x){if(Kl(x.fileName))return;let I=g(x.fileName);if(!I)return;let P=e.getProgram();if(P.isSourceOfProjectReferenceRedirect(I.fileName))return;let F=P.getCompilerOptions().outFile,O=F?dp(F)+".d.ts":o8(x.fileName,P.getCompilerOptions(),P);if(O===void 0)return;let W=c(O,x.fileName).getGeneratedPosition(x);return W===x?void 0:W}function g(x){let I=e.getProgram();if(!I)return;let P=o(x),E=I.getSourceFileByPath(P);return E&&E.resolvedPath===P?E:void 0}function d(x){let I=o(x),P=i.get(I);if(P!==void 0)return P||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(x)){i.set(I,!1);return}let E=e.readFile(x),F=E?Aqe(E):!1;return i.set(I,F),F||void 0}function h(x){return e.getSourceFileLike?e.getSourceFileLike(x):g(x)||d(x)}function S(x,I){return h(x).getLineAndCharacterOfPosition(I)}function T(){i.clear(),s.clear()}}function I$(e,t,n,i){let s=cae(n);if(s){let p=Pqe.exec(s);if(p){if(p[1]){let u=p[1];return Qxe(e,Gre(Nl,u),t)}s=void 0}}let o=[];s&&o.push(s),o.push(t+".map");let c=s&&as(s,ti(t));for(let p of o){let u=as(p,ti(t)),g=i(u,c);if(Is(g))return Qxe(e,g,u);if(g!==void 0)return g||void 0}}function Qxe(e,t,n){let i=lae(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(Is)))return pae(e,i,n)}function Aqe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(n){return ww(th(this),n)}}}var Ole=new Map;function D$(e,t,n){var i;t.getSemanticDiagnostics(e,n);let s=[],o=t.getTypeChecker();!(t.getImpliedNodeFormatForEmit(e)===1||Bc(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(qce(t)||Gq(t.getCompilerOptions()))&&Eqe(e)&&s.push(_n(Oqe(e.commonJsModuleIndicator),_.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));let p=Cp(e);if(Ole.clear(),u(e),D2(t.getCompilerOptions()))for(let g of e.imports){let d=eA(g);if(Dl(d)&&ri(d,32))continue;let h=Nqe(d);if(!h)continue;let S=(i=t.getResolvedModuleFromModuleSpecifier(g,e))==null?void 0:i.resolvedModule,T=S&&t.getSourceFile(S.resolvedFileName);T&&T.externalModuleIndicator&&T.externalModuleIndicator!==!0&&Qo(T.externalModuleIndicator)&&T.externalModuleIndicator.isExportEquals&&s.push(_n(h,_.Import_may_be_converted_to_a_default_import))}return Gn(s,e.bindSuggestionDiagnostics),Gn(s,t.getSuggestionDiagnostics(e,n)),s.sort((g,d)=>g.start-d.start),s;function u(g){if(p)jqe(g,o)&&s.push(_n(li(g.parent)?g.parent.name:g,_.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Qc(g)&&g.parent===e&&g.declarationList.flags&2&&g.declarationList.declarations.length===1){let h=g.declarationList.declarations[0].initializer;h&&Vp(h,!0)&&s.push(_n(h,_.require_call_may_be_converted_to_an_import))}let d=tp.getJSDocTypedefNodes(g);for(let h of d)s.push(_n(h,_.JSDoc_typedef_may_be_converted_to_TypeScript_type));tp.parameterShouldGetTypeFromJSDoc(g)&&s.push(_n(g.name||g,_.JSDoc_types_may_be_moved_to_TypeScript_types))}E$(g)&&Mqe(g,o,s),g.forEachChild(u)}}function Eqe(e){return e.statements.some(t=>{switch(t.kind){case 244:return t.declarationList.declarations.some(n=>!!n.initializer&&Vp(Kxe(n.initializer),!0));case 245:{let{expression:n}=t;if(!vn(n))return Vp(n,!0);let i=Hc(n);return i===1||i===2}default:return!1}})}function Kxe(e){return Ln(e)?Kxe(e.expression):e}function Nqe(e){switch(e.kind){case 273:let{importClause:t,moduleSpecifier:n}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===275&&ya(n)?t.namedBindings.name:void 0;case 272:return e.name;default:return}}function Mqe(e,t,n){Rqe(e,t)&&!Ole.has(e2e(e))&&n.push(_n(!e.name&&li(e.parent)&&Be(e.parent.name)?e.parent.name:e,_.This_may_be_converted_to_an_async_function))}function Rqe(e,t){return!sA(e)&&e.body&&Bs(e.body)&&Fqe(e.body,t)&&P$(e,t)}function P$(e,t){let n=t.getSignatureFromDeclaration(e),i=n?t.getReturnTypeOfSignature(n):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function Oqe(e){return vn(e)?e.left:e}function Fqe(e,t){return!!hb(e,n=>F5(n,t))}function F5(e,t){return Qf(e)&&!!e.expression&&A$(e.expression,t)}function A$(e,t){if(!Xxe(e)||!Yxe(e)||!e.arguments.every(i=>Zxe(i,t)))return!1;let n=e.expression.expression;for(;Xxe(n)||Ln(n);)if(Ws(n)){if(!Yxe(n)||!n.arguments.every(i=>Zxe(i,t)))return!1;n=n.expression.expression}else n=n.expression;return!0}function Xxe(e){return Ws(e)&&(pR(e,"then")||pR(e,"catch")||pR(e,"finally"))}function Yxe(e){let t=e.expression.name.text,n=t==="then"?2:t==="catch"||t==="finally"?1:0;return e.arguments.length>n?!1:e.arguments.length<n?!0:n===1||_t(e.arguments,i=>i.kind===106||Be(i)&&i.text==="undefined")}function Zxe(e,t){switch(e.kind){case 263:case 219:if(Yc(e)&1)return!1;case 220:Ole.set(e2e(e),!0);case 106:return!0;case 80:case 212:{let i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||_t(vu(i,t).declarations,s=>Fs(s)||Hy(s)&&!!s.initializer&&Fs(s.initializer)):!1}default:return!1}}function e2e(e){return`${e.pos.toString()}:${e.end.toString()}`}function jqe(e,t){var n,i,s,o;if(Ao(e)){if(li(e.parent)&&((n=e.symbol.members)!=null&&n.size))return!0;let c=t.getSymbolOfExpando(e,!1);return!!(c&&((i=c.exports)!=null&&i.size||(s=c.members)!=null&&s.size))}return Gc(e)?!!((o=e.symbol.members)!=null&&o.size):!1}function E$(e){switch(e.kind){case 263:case 175:case 219:case 220:return!0;default:return!1}}var Lqe=new Set(["isolatedModules"]);function Fle(e,t){return r2e(e,t,!1)}function t2e(e,t){return r2e(e,t,!0)}var Wqe=`/// <reference no-default-lib="true"/>
|
|
interface Boolean {}
|
|
interface Function {}
|
|
interface CallableFunction {}
|
|
interface NewableFunction {}
|
|
interface IArguments {}
|
|
interface Number {}
|
|
interface Object {}
|
|
interface RegExp {}
|
|
interface String {}
|
|
interface Array<T> { length: number; [n: number]: T; }
|
|
interface SymbolConstructor {
|
|
(desc?: string | number): symbol;
|
|
for(name: string): symbol;
|
|
readonly toStringTag: symbol;
|
|
}
|
|
declare var Symbol: SymbolConstructor;
|
|
interface Symbol {
|
|
readonly [Symbol.toStringTag]: string;
|
|
}`,j5="lib.d.ts",jle;function r2e(e,t,n){jle??(jle=X2(j5,Wqe,{languageVersion:99}));let i=[],s=t.compilerOptions?N$(t.compilerOptions,i):{},o=K5();for(let I in o)_o(o,I)&&s[I]===void 0&&(s[I]=o[I]);for(let I of use)s.verbatimModuleSyntax&&Lqe.has(I.name)||(s[I.name]=I.transpileOptionValue);s.suppressOutputPathCheck=!0,s.allowNonTsExtensions=!0,n?(s.declaration=!0,s.emitDeclarationOnly=!0,s.isolatedDeclarations=!0):(s.declaration=!1,s.declarationMap=!1);let c=Zy(s),p={getSourceFile:I=>I===ra(u)?g:I===ra(j5)?jle:void 0,writeFile:(I,P)=>{uc(I,".map")?(w.assertEqual(h,void 0,"Unexpected multiple source map outputs, file:",I),h=P):(w.assertEqual(d,void 0,"Unexpected multiple outputs, file:",I),d=P)},getDefaultLibFileName:()=>j5,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:I=>I,getCurrentDirectory:()=>"",getNewLine:()=>c,fileExists:I=>I===u||!!n&&I===j5,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},u=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),g=X2(u,e,{languageVersion:xa(s),impliedNodeFormat:Z4(So(u,"",p.getCanonicalFileName),void 0,p,s),setExternalModuleIndicator:L6(s),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(g.moduleName=t.moduleName),t.renamedDependencies&&(g.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let d,h,T=eR(n?[u,j5]:[u],s,p);t.reportDiagnostics&&(Gn(i,T.getSyntacticDiagnostics(g)),Gn(i,T.getOptionsDiagnostics()));let x=T.emit(void 0,void 0,void 0,n,t.transformers,n);return Gn(i,x.diagnostics),d===void 0?w.fail("Output generation failed"):{outputText:d,diagnostics:i,sourceMapText:h}}function n2e(e,t,n,i,s){let o=Fle(e,{compilerOptions:t,fileName:n,reportDiagnostics:!!i,moduleName:s});return Gn(i,o.diagnostics),o.outputText}var Lle;function N$(e,t){Lle=Lle||Mn(Bd,n=>typeof n.type=="object"&&!Rl(n.type,i=>typeof i!="number")),e=Fq(e);for(let n of Lle){if(!_o(e,n.name))continue;let i=e[n.name];Is(i)?e[n.name]=R7(n,i,t):Rl(n.type,s=>s===i)||t.push(fse(n))}return e}var Wle={};it(Wle,{getNavigateToItems:()=>i2e});function i2e(e,t,n,i,s,o,c){let p=Cle(i);if(!p)return Ke;let u=[],g=e.length===1?e[0]:void 0;for(let d of e)n.throwIfCancellationRequested(),!(o&&d.isDeclarationFile)&&(s2e(d,!!c,g)||d.getNamedDeclarations().forEach((h,S)=>{Bqe(p,S,h,t,d.fileName,!!c,g,u)}));return u.sort(Uqe),(s===void 0?u:u.slice(0,s)).map(Vqe)}function s2e(e,t,n){return e!==n&&t&&(wR(e.path)||e.hasNoDefaultLib)}function Bqe(e,t,n,i,s,o,c,p){let u=e.getMatchForLastSegmentOfPattern(t);if(u){for(let g of n)if(zqe(g,i,o,c))if(e.patternContainsDots){let d=e.getFullMatch(Jqe(g),t);d&&p.push({name:t,fileName:s,matchKind:d.kind,isCaseSensitive:d.isCaseSensitive,declaration:g})}else p.push({name:t,fileName:s,matchKind:u.kind,isCaseSensitive:u.isCaseSensitive,declaration:g})}}function zqe(e,t,n,i){var s;switch(e.kind){case 274:case 277:case 272:let o=t.getSymbolAtLocation(e.name),c=t.getAliasedSymbol(o);return o.escapedName!==c.escapedName&&!((s=c.declarations)!=null&&s.every(p=>s2e(p.getSourceFile(),n,i)));default:return!0}}function Gqe(e,t){let n=Ss(e);return!!n&&(a2e(n,t)||n.kind===168&&Ble(n.expression,t))}function Ble(e,t){return a2e(e,t)||Ln(e)&&(t.push(e.name.text),!0)&&Ble(e.expression,t)}function a2e(e,t){return Bm(e)&&(t.push(R_(e)),!0)}function Jqe(e){let t=[],n=Ss(e);if(n&&n.kind===168&&!Ble(n.expression,t))return Ke;t.shift();let i=Fk(e);for(;i;){if(!Gqe(i,t))return Ke;i=Fk(i)}return t.reverse(),t}function Uqe(e,t){return Po(e.matchKind,t.matchKind)||_M(e.name,t.name)}function Vqe(e){let t=e.declaration,n=Fk(t),i=n&&Ss(n);return{name:e.name,kind:XS(t),kindModifiers:DE(t),matchKind:C$[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:Np(t),containerName:i?i.text:"",containerKind:i?XS(n):""}}var zle={};it(zle,{getNavigationBarItems:()=>c2e,getNavigationTree:()=>l2e});var qqe=/\s+/g,Gle=150,M$,NR,L5=[],fv,o2e=[],rD,Jle=[];function c2e(e,t){M$=t,NR=e;try{return kr(Xqe(f2e(e)),Yqe)}finally{u2e()}}function l2e(e,t){M$=t,NR=e;try{return S2e(f2e(e))}finally{u2e()}}function u2e(){NR=void 0,M$=void 0,L5=[],fv=void 0,Jle=[]}function W5(e){return WE(e.getText(NR))}function R$(e){return e.node.kind}function p2e(e,t){e.children?e.children.push(t):e.children=[t]}function f2e(e){w.assert(!L5.length);let t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};fv=t;for(let n of e.statements)fC(n);return c1(),w.assert(!fv&&!L5.length),t}function eT(e,t){p2e(fv,Ule(e,t))}function Ule(e,t){return{node:e,name:t||(ql(e)||ht(e)?Ss(e):void 0),additionalNodes:void 0,parent:fv,children:void 0,indent:fv.indent+1}}function _2e(e){rD||(rD=new Map),rD.set(e,!0)}function d2e(e){for(let t=0;t<e;t++)c1()}function m2e(e,t){let n=[];for(;!Bm(t);){let i=p6(t),s=Zh(t);t=t.expression,!(s==="prototype"||zi(i))&&n.push(i)}n.push(t);for(let i=n.length-1;i>0;i--){let s=n[i];tT(e,s)}return[n.length-1,n[0]]}function tT(e,t){let n=Ule(e,t);p2e(fv,n),L5.push(fv),o2e.push(rD),rD=void 0,fv=n}function c1(){fv.children&&(O$(fv.children,fv),$le(fv.children)),fv=L5.pop(),rD=o2e.pop()}function l1(e,t,n){tT(e,n),fC(t),c1()}function g2e(e){e.initializer&&e$e(e.initializer)?(tT(e),Ms(e.initializer,fC),c1()):l1(e,e.initializer)}function Vle(e){let t=Ss(e);if(t===void 0)return!1;if(na(t)){let n=t.expression;return mo(n)||Hp(n)||s_(n)}return!!t}function fC(e){if(M$.throwIfCancellationRequested(),!(!e||t2(e)))switch(e.kind){case 177:let t=e;l1(t,t.body);for(let c of t.parameters)Tf(c,t)&&eT(c);break;case 175:case 178:case 179:case 174:Vle(e)&&l1(e,e.body);break;case 173:Vle(e)&&g2e(e);break;case 172:Vle(e)&&eT(e);break;case 274:let n=e;n.name&&eT(n.name);let{namedBindings:i}=n;if(i)if(i.kind===275)eT(i);else for(let c of i.elements)eT(c);break;case 305:l1(e,e.name);break;case 306:let{expression:s}=e;Be(s)?eT(e,s):eT(e);break;case 209:case 304:case 261:{let c=e;Ls(c.name)?fC(c.name):g2e(c);break}case 263:let o=e.name;o&&Be(o)&&_2e(o.text),l1(e,e.body);break;case 220:case 219:l1(e,e.body);break;case 267:tT(e);for(let c of e.members)Zqe(c)||eT(c);c1();break;case 264:case 232:case 265:tT(e);for(let c of e.members)fC(c);c1();break;case 268:l1(e,k2e(e).body);break;case 278:{let c=e.expression,p=Sa(c)||Ws(c)?c:Fo(c)||Ao(c)?c.body:void 0;p?(tT(e),fC(p),c1()):eT(e);break}case 282:case 272:case 182:case 180:case 181:case 266:eT(e);break;case 214:case 227:{let c=Hc(e);switch(c){case 1:case 2:l1(e,e.right);return;case 6:case 3:{let p=e,u=p.left,g=c===3?u.expression:u,d=0,h;Be(g.expression)?(_2e(g.expression.text),h=g.expression):[d,h]=m2e(p,g.expression),c===6?Sa(p.right)&&p.right.properties.length>0&&(tT(p,h),Ms(p.right,fC),c1()):Ao(p.right)||Fo(p.right)?l1(e,p.right,h):(tT(p,h),l1(e,p.right,u.name),c1()),d2e(d);return}case 7:case 9:{let p=e,u=c===7?p.arguments[0]:p.arguments[0].expression,g=p.arguments[1],[d,h]=m2e(e,u);tT(e,h),tT(e,mt(A.createIdentifier(g.text),g)),fC(e.arguments[2]),c1(),c1(),d2e(d);return}case 5:{let p=e,u=p.left,g=u.expression;if(Be(g)&&Zh(u)!=="prototype"&&rD&&rD.has(g.text)){Ao(p.right)||Fo(p.right)?l1(e,p.right,g):TS(u)&&(tT(p,g),l1(p.left,p.right,p6(u)),c1());return}break}case 4:case 0:case 8:break;default:w.assertNever(c)}}default:Hf(e)&&or(e.jsDoc,c=>{or(c.tags,p=>{fd(p)&&eT(p)})}),Ms(e,fC)}}function O$(e,t){let n=new Map;xW(e,(i,s)=>{let o=i.name||Ss(i.node),c=o&&W5(o);if(!c)return!0;let p=n.get(c);if(!p)return n.set(c,i),!0;if(p instanceof Array){for(let u of p)if(h2e(u,i,s,t))return!1;return p.push(i),!0}else{let u=p;return h2e(u,i,s,t)?!1:(n.set(c,[u,i]),!0)}})}var MR={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1};function $qe(e,t,n,i){function s(p){return Ao(p)||Gc(p)||li(p)}let o=vn(t.node)||Ws(t.node)?Hc(t.node):0,c=vn(e.node)||Ws(e.node)?Hc(e.node):0;if(MR[o]&&MR[c]||s(e.node)&&MR[o]||s(t.node)&&MR[c]||hl(e.node)&&qle(e.node)&&MR[o]||hl(t.node)&&MR[c]||hl(e.node)&&qle(e.node)&&s(t.node)||hl(t.node)&&s(e.node)&&qle(e.node)){let p=e.additionalNodes&&Wo(e.additionalNodes)||e.node;if(!hl(e.node)&&!hl(t.node)||s(e.node)||s(t.node)){let g=s(e.node)?e.node:s(t.node)?t.node:void 0;if(g!==void 0){let d=mt(A.createConstructorDeclaration(void 0,[],void 0),g),h=Ule(d);h.indent=e.indent+1,h.children=e.node===g?e.children:t.children,e.children=e.node===g?Qi([h],t.children||[t]):Qi(e.children||[{...e}],[h])}else(e.children||t.children)&&(e.children=Qi(e.children||[{...e}],t.children||[t]),e.children&&(O$(e.children,e),$le(e.children)));p=e.node=mt(A.createClassDeclaration(void 0,e.name||A.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=Qi(e.children,t.children),e.children&&O$(e.children,e);let u=t.node;return i.children[n-1].node.end===p.end?mt(p,{pos:p.pos,end:u.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(mt(A.createClassDeclaration(void 0,e.name||A.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return o!==0}function h2e(e,t,n,i){return $qe(e,t,n,i)?!0:Hqe(e.node,t.node,i)?(Qqe(e,t),!0):!1}function Hqe(e,t,n){if(e.kind!==t.kind||e.parent!==t.parent&&!(y2e(e,n)&&y2e(t,n)))return!1;switch(e.kind){case 173:case 175:case 178:case 179:return Ks(e)===Ks(t);case 268:return v2e(e,t)&&Kle(e)===Kle(t);default:return!0}}function qle(e){return!!(e.flags&16)}function y2e(e,t){if(e.parent===void 0)return!1;let n=Qm(e.parent)?e.parent.parent:e.parent;return n===t.node||ws(t.additionalNodes,n)}function v2e(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==268||v2e(e.body,t.body))}function Qqe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=Qi(e.children,t.children),e.children&&(O$(e.children,e),$le(e.children))}function $le(e){e.sort(Kqe)}function Kqe(e,t){return _M(b2e(e.node),b2e(t.node))||Po(R$(e),R$(t))}function b2e(e){if(e.kind===268)return T2e(e);let t=Ss(e);if(t&&ol(t)){let n=ok(t);return n&&Ai(n)}switch(e.kind){case 219:case 220:case 232:return C2e(e);default:return}}function Hle(e,t){if(e.kind===268)return WE(T2e(e));if(t){let n=Be(t)?t.text:xo(t)?`[${W5(t.argumentExpression)}]`:W5(t);if(n.length>0)return WE(n)}switch(e.kind){case 308:let n=e;return Pl(n)?`"${Dg(dl(dp(ra(n.fileName))))}"`:"<global>";case 278:return Qo(e)&&e.isExportEquals?"export=":"default";case 220:case 263:case 219:case 264:case 232:return Xy(e)&2048?"default":C2e(e);case 177:return"constructor";case 181:return"new()";case 180:return"()";case 182:return"[]";default:return"<unknown>"}}function Xqe(e){let t=[];function n(s){if(i(s)&&(t.push(s),s.children))for(let o of s.children)n(o)}return n(e),t;function i(s){if(s.children)return!0;switch(R$(s)){case 264:case 232:case 267:case 265:case 268:case 308:case 266:case 347:case 339:return!0;case 220:case 263:case 219:return o(s);default:return!1}function o(c){if(!c.node.body)return!1;switch(R$(c.parent)){case 269:case 308:case 175:case 177:return!0;default:return!1}}}}function S2e(e){return{text:Hle(e.node,e.name),kind:XS(e.node),kindModifiers:x2e(e.node),spans:Qle(e),nameSpan:e.name&&Xle(e.name),childItems:kr(e.children,S2e)}}function Yqe(e){return{text:Hle(e.node,e.name),kind:XS(e.node),kindModifiers:x2e(e.node),spans:Qle(e),childItems:kr(e.children,t)||Jle,indent:e.indent,bolded:!1,grayed:!1};function t(n){return{text:Hle(n.node,n.name),kind:XS(n.node),kindModifiers:DE(n.node),spans:Qle(n),childItems:Jle,indent:0,bolded:!1,grayed:!1}}}function Qle(e){let t=[Xle(e.node)];if(e.additionalNodes)for(let n of e.additionalNodes)t.push(Xle(n));return t}function T2e(e){return pp(e)?pc(e.name):Kle(e)}function Kle(e){let t=[R_(e.name)];for(;e.body&&e.body.kind===268;)e=e.body,t.push(R_(e.name));return t.join(".")}function k2e(e){return e.body&&el(e.body)?k2e(e.body):e}function Zqe(e){return!e.name||e.name.kind===168}function Xle(e){return e.kind===308?pv(e):Np(e,NR)}function x2e(e){return e.parent&&e.parent.kind===261&&(e=e.parent),DE(e)}function C2e(e){let{parent:t}=e;if(e.name&&GM(e.name)>0)return WE(To(e.name));if(li(t))return WE(To(t.name));if(vn(t)&&t.operatorToken.kind===64)return W5(t.left).replace(qqe,"");if(yl(t))return W5(t.name);if(Xy(e)&2048)return"default";if(ni(e))return"<class>";if(Ws(t)){let n=w2e(t.expression);if(n!==void 0){if(n=WE(n),n.length>Gle)return`${n} callback`;let i=WE(Ji(t.arguments,s=>Ha(s)||i2(s)?s.getText(NR):void 0).join(", "));return`${n}(${i}) callback`}}return"<function>"}function w2e(e){if(Be(e))return e.text;if(Ln(e)){let t=w2e(e.expression),n=e.name.text;return t===void 0?n:`${t}.${n}`}else return}function e$e(e){switch(e.kind){case 220:case 219:case 232:return!0;default:return!1}}function WE(e){return e=e.length>Gle?e.substring(0,Gle)+"...":e,e.replace(/\\?(?:\r?\n|[\r\u2028\u2029])/g,"")}var _C={};it(_C,{addExportsInOldFile:()=>cue,addImportsForMovedSymbols:()=>lue,addNewFileToTsconfig:()=>oue,addOrRemoveBracesToArrowFunction:()=>Q$e,addTargetFileImports:()=>yue,containsJsx:()=>fue,convertArrowFunctionOrFunctionExpression:()=>eHe,convertParamsToDestructuredObject:()=>pHe,convertStringOrTemplateLiteral:()=>PHe,convertToOptionalChainExpression:()=>WHe,createNewFileName:()=>pue,doChangeNamedToNamespaceOrDefault:()=>N2e,extractSymbol:()=>xCe,generateGetAccessorAndSetAccessor:()=>TQe,getApplicableRefactors:()=>t$e,getEditsForRefactor:()=>r$e,getExistingLocals:()=>gue,getIdentifierForNode:()=>hue,getNewStatementsAndRemoveFromOldFile:()=>aue,getStatementsToMove:()=>RR,getUsageInfo:()=>B5,inferFunctionReturnType:()=>kQe,isInImport:()=>U$,isRefactorErrorInfo:()=>fy,refactorKindBeginsWith:()=>u1,registerRefactor:()=>kh});var Yle=new Map;function kh(e,t){Yle.set(e,t)}function t$e(e,t){return ds(CW(Yle.values(),n=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=n.kinds)!=null&&i.some(s=>u1(s,e.kind)))?void 0:n.getAvailableActions(e,t)}))}function r$e(e,t,n,i){let s=Yle.get(t);return s&&s.getEditsForAction(e,n,i)}var Zle="Convert export",F$={name:"Convert default export to named export",description:Es(_.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},j$={name:"Convert named export to default export",description:Es(_.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"};kh(Zle,{kinds:[F$.kind,j$.kind],getAvailableActions:function(t){let n=I2e(t,t.triggerReason==="invoked");if(!n)return Ke;if(!fy(n)){let i=n.wasDefault?F$:j$;return[{name:Zle,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:Zle,description:Es(_.Convert_default_export_to_named_export),actions:[{...F$,notApplicableReason:n.error},{...j$,notApplicableReason:n.error}]}]:Ke},getEditsForAction:function(t,n){w.assert(n===F$.name||n===j$.name,"Unexpected action name");let i=I2e(t);return w.assert(i&&!fy(i),"Expected applicable refactor info"),{edits:gn.ChangeTracker.with(t,o=>n$e(t.file,t.program,i,o,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}});function I2e(e,t=!0){let{file:n,program:i}=e,s=uC(e),o=Ii(n,s.start),c=o.parent&&Xy(o.parent)&32&&t?o.parent:SR(o,n,s);if(!c||!Li(c.parent)&&!(Qm(c.parent)&&pp(c.parent.parent)))return{error:Es(_.Could_not_find_export_statement)};let p=i.getTypeChecker(),u=c$e(c.parent,p),g=Xy(c)||(Qo(c)&&!c.isExportEquals?2080:0),d=!!(g&2048);if(!(g&32)||!d&&u.exports.has("default"))return{error:Es(_.This_file_already_has_a_default_export)};let h=S=>Be(S)&&p.getSymbolAtLocation(S)?void 0:{error:Es(_.Can_only_convert_named_export)};switch(c.kind){case 263:case 264:case 265:case 267:case 266:case 268:{let S=c;return S.name?h(S.name)||{exportNode:S,exportName:S.name,wasDefault:d,exportingModuleSymbol:u}:void 0}case 244:{let S=c;if(!(S.declarationList.flags&2)||S.declarationList.declarations.length!==1)return;let T=Ra(S.declarationList.declarations);return T.initializer?(w.assert(!d,"Can't have a default flag here"),h(T.name)||{exportNode:S,exportName:T.name,wasDefault:d,exportingModuleSymbol:u}):void 0}case 278:{let S=c;return S.isExportEquals?void 0:h(S.expression)||{exportNode:S,exportName:S.expression,wasDefault:d,exportingModuleSymbol:u}}default:return}}function n$e(e,t,n,i,s){i$e(e,n,i,t.getTypeChecker()),s$e(t,n,i,s)}function i$e(e,{wasDefault:t,exportNode:n,exportName:i},s,o){if(t)if(Qo(n)&&!n.isExportEquals){let c=n.expression,p=D2e(c.text,c.text);s.replaceNode(e,n,A.createExportDeclaration(void 0,!1,A.createNamedExports([p])))}else s.delete(e,w.checkDefined(QI(n,90),"Should find a default keyword in modifier list"));else{let c=w.checkDefined(QI(n,95),"Should find an export keyword in modifier list");switch(n.kind){case 263:case 264:case 265:s.insertNodeAfter(e,c,A.createToken(90));break;case 244:let p=Ra(n.declarationList.declarations);if(!jo.Core.isSymbolReferencedInFile(i,o,e)&&!p.type){s.replaceNode(e,n,A.createExportDefault(w.checkDefined(p.initializer,"Initializer was previously known to be present")));break}case 267:case 266:case 268:s.deleteModifier(e,c),s.insertNodeAfter(e,n,A.createExportDefault(A.createIdentifier(i.text)));break;default:w.fail(`Unexpected exportNode kind ${n.kind}`)}}}function s$e(e,{wasDefault:t,exportName:n,exportingModuleSymbol:i},s,o){let c=e.getTypeChecker(),p=w.checkDefined(c.getSymbolAtLocation(n),"Export name should resolve to a symbol");jo.Core.eachExportReference(e.getSourceFiles(),c,o,p,i,n.text,t,u=>{if(n===u)return;let g=u.getSourceFile();t?a$e(g,u,s,n.text):o$e(g,u,s)})}function a$e(e,t,n,i){let{parent:s}=t;switch(s.kind){case 212:n.replaceNode(e,t,A.createIdentifier(i));break;case 277:case 282:{let c=s;n.replaceNode(e,c,eue(i,c.name.text));break}case 274:{let c=s;w.assert(c.name===t,"Import clause name should match provided ref");let p=eue(i,t.text),{namedBindings:u}=c;if(!u)n.replaceNode(e,t,A.createNamedImports([p]));else if(u.kind===275){n.deleteRange(e,{pos:t.getStart(e),end:u.getStart(e)});let g=ya(c.parent.moduleSpecifier)?Uq(c.parent.moduleSpecifier,e):1,d=Bb(void 0,[eue(i,t.text)],c.parent.moduleSpecifier,g);n.insertNodeAfter(e,c.parent,d)}else n.delete(e,t),n.insertNodeAtEndOfList(e,u.elements,p);break}case 206:let o=s;n.replaceNode(e,s,A.createImportTypeNode(o.argument,o.attributes,A.createIdentifier(i),o.typeArguments,o.isTypeOf));break;default:w.failBadSyntaxKind(s)}}function o$e(e,t,n){let i=t.parent;switch(i.kind){case 212:n.replaceNode(e,t,A.createIdentifier("default"));break;case 277:{let s=A.createIdentifier(i.name.text);i.parent.elements.length===1?n.replaceNode(e,i.parent,s):(n.delete(e,i),n.insertNodeBefore(e,i.parent,s));break}case 282:{n.replaceNode(e,i,D2e("default",i.name.text));break}default:w.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function eue(e,t){return A.createImportSpecifier(!1,e===t?void 0:A.createIdentifier(e),A.createIdentifier(t))}function D2e(e,t){return A.createExportSpecifier(!1,e===t?void 0:A.createIdentifier(e),A.createIdentifier(t))}function c$e(e,t){if(Li(e))return e.symbol;let n=e.parent.symbol;return n.valueDeclaration&&vS(n.valueDeclaration)?t.getMergedSymbol(n):n}var tue="Convert import",L$={0:{name:"Convert namespace import to named imports",description:Es(_.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:Es(_.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:Es(_.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}};kh(tue,{kinds:qx(L$).map(e=>e.kind),getAvailableActions:function(t){let n=P2e(t,t.triggerReason==="invoked");if(!n)return Ke;if(!fy(n)){let i=L$[n.convertTo];return[{name:tue,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?qx(L$).map(i=>({name:tue,description:i.description,actions:[{...i,notApplicableReason:n.error}]})):Ke},getEditsForAction:function(t,n){w.assert(_t(qx(L$),o=>o.name===n),"Unexpected action name");let i=P2e(t);return w.assert(i&&!fy(i),"Expected applicable refactor info"),{edits:gn.ChangeTracker.with(t,o=>l$e(t.file,t.program,o,i)),renameFilename:void 0,renameLocation:void 0}}});function P2e(e,t=!0){let{file:n}=e,i=uC(e),s=Ii(n,i.start),o=t?vr(s,vf(ac,Zm)):SR(s,n,i);if(o===void 0||!(ac(o)||Zm(o)))return{error:"Selection is not an import declaration."};let c=i.start+i.length,p=YS(o,o.parent,n);if(p&&c>p.getStart())return;let{importClause:u}=o;return u?u.namedBindings?u.namedBindings.kind===275?{convertTo:0,import:u.namedBindings}:A2e(e.program,u)?{convertTo:1,import:u.namedBindings}:{convertTo:2,import:u.namedBindings}:{error:Es(_.Could_not_find_namespace_import_or_named_imports)}:{error:Es(_.Could_not_find_import_clause)}}function A2e(e,t){return D2(e.getCompilerOptions())&&f$e(t.parent.moduleSpecifier,e.getTypeChecker())}function l$e(e,t,n,i){let s=t.getTypeChecker();i.convertTo===0?u$e(e,s,n,i.import,D2(t.getCompilerOptions())):N2e(e,t,n,i.import,i.convertTo===1)}function u$e(e,t,n,i,s){let o=!1,c=[],p=new Map;jo.Core.eachSymbolReferenceInFile(i.name,t,e,h=>{if(!jM(h.parent))o=!0;else{let S=E2e(h.parent).text;t.resolveName(S,h,-1,!0)&&p.set(S,!0),w.assert(p$e(h.parent)===h,"Parent expression should match id"),c.push(h.parent)}});let u=new Map;for(let h of c){let S=E2e(h).text,T=u.get(S);T===void 0&&u.set(S,T=p.has(S)?Lk(S,e):S),n.replaceNode(e,h,A.createIdentifier(T))}let g=[];u.forEach((h,S)=>{g.push(A.createImportSpecifier(!1,h===S?void 0:A.createIdentifier(S),A.createIdentifier(h)))});let d=i.parent.parent;if(o&&!s&&ac(d))n.insertNodeAfter(e,d,M2e(d,void 0,g));else{let h=o?A.createIdentifier(i.name.text):void 0;n.replaceNode(e,i.parent,R2e(h,g))}}function E2e(e){return Ln(e)?e.name:e.right}function p$e(e){return Ln(e)?e.expression:e.left}function N2e(e,t,n,i,s=A2e(t,i.parent)){let o=t.getTypeChecker(),c=i.parent.parent,{moduleSpecifier:p}=c,u=new Set;i.elements.forEach(x=>{let I=o.getSymbolAtLocation(x.name);I&&u.add(I)});let g=p&&ya(p)?DR(p.text,99):"module";function d(x){return!!jo.Core.eachSymbolReferenceInFile(x.name,o,e,I=>{let P=o.resolveName(g,I,-1,!0);return P?u.has(P)?Xu(I.parent):!0:!1})}let S=i.elements.some(d)?Lk(g,e):g,T=new Set;for(let x of i.elements){let I=x.propertyName||x.name;jo.Core.eachSymbolReferenceInFile(x.name,o,e,P=>{let E=I.kind===11?A.createElementAccessExpression(A.createIdentifier(S),A.cloneNode(I)):A.createPropertyAccessExpression(A.createIdentifier(S),A.cloneNode(I));Fu(P.parent)?n.replaceNode(e,P.parent,A.createPropertyAssignment(P.text,E)):Xu(P.parent)?T.add(x):n.replaceNode(e,P,E)})}if(n.replaceNode(e,i,s?A.createIdentifier(S):A.createNamespaceImport(A.createIdentifier(S))),T.size&&ac(c)){let x=ds(T.values(),I=>A.createImportSpecifier(I.isTypeOnly,I.propertyName&&A.cloneNode(I.propertyName),A.cloneNode(I.name)));n.insertNodeAfter(e,i.parent.parent,M2e(c,void 0,x))}}function f$e(e,t){let n=t.resolveExternalModuleName(e);if(!n)return!1;let i=t.resolveExternalModuleSymbol(n);return n!==i}function M2e(e,t,n){return A.createImportDeclaration(void 0,R2e(t,n),e.moduleSpecifier,void 0)}function R2e(e,t){return A.createImportClause(void 0,e,t&&t.length?A.createNamedImports(t):void 0)}var rue="Extract type",W$={name:"Extract to type alias",description:Es(_.Extract_to_type_alias),kind:"refactor.extract.type"},B$={name:"Extract to interface",description:Es(_.Extract_to_interface),kind:"refactor.extract.interface"},z$={name:"Extract to typedef",description:Es(_.Extract_to_typedef),kind:"refactor.extract.typedef"};kh(rue,{kinds:[W$.kind,B$.kind,z$.kind],getAvailableActions:function(t){let{info:n,affectedTextRange:i}=O2e(t,t.triggerReason==="invoked");return n?fy(n)?t.preferences.provideRefactorNotApplicableReason?[{name:rue,description:Es(_.Extract_type),actions:[{...z$,notApplicableReason:n.error},{...W$,notApplicableReason:n.error},{...B$,notApplicableReason:n.error}]}]:Ke:[{name:rue,description:Es(_.Extract_type),actions:n.isJS?[z$]:Fr([W$],n.typeElements&&B$)}].map(o=>({...o,actions:o.actions.map(c=>({...c,range:i?{start:{line:Hs(t.file,i.pos).line,offset:Hs(t.file,i.pos).character},end:{line:Hs(t.file,i.end).line,offset:Hs(t.file,i.end).character}}:void 0}))})):Ke},getEditsForAction:function(t,n){let{file:i}=t,{info:s}=O2e(t);w.assert(s&&!fy(s),"Expected to find a range to extract");let o=Lk("NewType",i),c=gn.ChangeTracker.with(t,g=>{switch(n){case W$.name:return w.assert(!s.isJS,"Invalid actionName/JS combo"),m$e(g,i,o,s);case z$.name:return w.assert(s.isJS,"Invalid actionName/JS combo"),h$e(g,t,i,o,s);case B$.name:return w.assert(!s.isJS&&!!s.typeElements,"Invalid actionName/JS combo"),g$e(g,i,o,s);default:w.fail("Unexpected action name")}}),p=i.fileName,u=kR(c,p,o,!1);return{edits:c,renameFilename:p,renameLocation:u}}});function O2e(e,t=!0){let{file:n,startPosition:i}=e,s=Cp(n),o=u5(uC(e)),c=o.pos===o.end&&t,p=_$e(n,i,o,c);if(!p||!yi(p))return{info:{error:Es(_.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};let u=e.program.getTypeChecker(),g=y$e(p,s);if(g===void 0)return{info:{error:Es(_.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};let d=v$e(p,g);if(!yi(d))return{info:{error:Es(_.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};let h=[];(sv(d.parent)||J2(d.parent))&&o.end>p.end&&Gn(h,d.parent.types.filter(P=>t5(P,n,o.pos,o.end)));let S=h.length>1?h:d,{typeParameters:T,affectedTextRange:x}=d$e(u,S,g,n);if(!T)return{info:{error:Es(_.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};let I=G$(u,S);return{info:{isJS:s,selection:S,enclosingNode:g,typeParameters:T,typeElements:I},affectedTextRange:x}}function _$e(e,t,n,i){let s=[()=>Ii(e,t),()=>$I(e,t,()=>!0)];for(let o of s){let c=o(),p=t5(c,e,n.pos,n.end),u=vr(c,g=>g.parent&&yi(g)&&!rT(n,g.parent,e)&&(i||p));if(u)return u}}function G$(e,t){if(t){if(gs(t)){let n=[];for(let i of t){let s=G$(e,i);if(!s)return;Gn(n,s)}return n}if(J2(t)){let n=[],i=new Set;for(let s of t.types){let o=G$(e,s);if(!o||!o.every(c=>c.name&&dd(i,vR(c.name))))return;Gn(n,o)}return n}else{if(hk(t))return G$(e,t.type);if(Dp(t))return t.members}}}function rT(e,t,n){return dR(e,ha(n.text,t.pos),t.end)}function d$e(e,t,n,i){let s=[],o=$x(t),c={pos:o[0].getStart(i),end:o[o.length-1].end};for(let u of o)if(p(u))return{typeParameters:void 0,affectedTextRange:void 0};return{typeParameters:s,affectedTextRange:c};function p(u){if(Pf(u)){if(Be(u.typeName)){let g=u.typeName,d=e.resolveName(g.text,g,262144,!0);for(let h of d?.declarations||Ke)if(Ho(h)&&h.getSourceFile()===i){if(h.name.escapedText===g.escapedText&&rT(h,c,i))return!0;if(rT(n,h,i)&&!rT(c,h,i)){D_(s,h);break}}}}else if(gk(u)){let g=vr(u,d=>jS(d)&&rT(d.extendsType,u,i));if(!g||!rT(c,g,i))return!0}else if(z2(u)||GA(u)){let g=vr(u.parent,Fs);if(g&&g.type&&rT(g.type,u,i)&&!rT(c,g,i))return!0}else if(FS(u)){if(Be(u.exprName)){let g=e.resolveName(u.exprName.text,u.exprName,111551,!1);if(g?.valueDeclaration&&rT(n,g.valueDeclaration,i)&&!rT(c,g.valueDeclaration,i))return!0}else if(Sb(u.exprName.left)&&!rT(c,u.parent,i))return!0}return i&&G2(u)&&Hs(i,u.pos).line===Hs(i,u.end).line&&yn(u,1),Ms(u,p)}}function m$e(e,t,n,i){let{enclosingNode:s,typeParameters:o}=i,{firstTypeNode:c,lastTypeNode:p,newTypeNode:u}=nue(i),g=A.createTypeAliasDeclaration(void 0,n,o.map(d=>A.updateTypeParameterDeclaration(d,d.modifiers,d.name,d.constraint,void 0)),u);e.insertNodeBefore(t,s,cJ(g),!0),e.replaceNodeRange(t,c,p,A.createTypeReferenceNode(n,o.map(d=>A.createTypeReferenceNode(d.name,void 0))),{leadingTriviaOption:gn.LeadingTriviaOption.Exclude,trailingTriviaOption:gn.TrailingTriviaOption.ExcludeWhitespace})}function g$e(e,t,n,i){var s;let{enclosingNode:o,typeParameters:c,typeElements:p}=i,u=A.createInterfaceDeclaration(void 0,n,c,void 0,p);mt(u,(s=p[0])==null?void 0:s.parent),e.insertNodeBefore(t,o,cJ(u),!0);let{firstTypeNode:g,lastTypeNode:d}=nue(i);e.replaceNodeRange(t,g,d,A.createTypeReferenceNode(n,c.map(h=>A.createTypeReferenceNode(h.name,void 0))),{leadingTriviaOption:gn.LeadingTriviaOption.Exclude,trailingTriviaOption:gn.TrailingTriviaOption.ExcludeWhitespace})}function h$e(e,t,n,i,s){var o;$x(s.selection).forEach(x=>{yn(x,7168)});let{enclosingNode:c,typeParameters:p}=s,{firstTypeNode:u,lastTypeNode:g,newTypeNode:d}=nue(s),h=A.createJSDocTypedefTag(A.createIdentifier("typedef"),A.createJSDocTypeExpression(d),A.createIdentifier(i)),S=[];or(p,x=>{let I=Aw(x),P=A.createTypeParameterDeclaration(void 0,x.name),E=A.createJSDocTemplateTag(A.createIdentifier("template"),I&&Zs(I,K0),[P]);S.push(E)});let T=A.createJSDocComment(void 0,A.createNodeArray(Qi(S,[h])));if(um(c)){let x=c.getStart(n),I=py(t.host,(o=t.formatContext)==null?void 0:o.options);e.insertNodeAt(n,c.getStart(n),T,{suffix:I+I+n.text.slice(y5(n.text,x-1),x)})}else e.insertNodeBefore(n,c,T,!0);e.replaceNodeRange(n,u,g,A.createTypeReferenceNode(i,p.map(x=>A.createTypeReferenceNode(x.name,void 0))))}function nue(e){return gs(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:sv(e.selection[0].parent)?A.createUnionTypeNode(e.selection):A.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function y$e(e,t){return vr(e,Ei)||(t?vr(e,um):void 0)}function v$e(e,t){return vr(e,n=>n===t?"quit":!!(sv(n.parent)||J2(n.parent)))??e}var J$="Move to file",iue=Es(_.Move_to_file),sue={name:"Move to file",description:iue,kind:"refactor.move.file"};kh(J$,{kinds:[sue.kind],getAvailableActions:function(t,n){let i=t.file,s=RR(t);if(!n)return Ke;if(t.triggerReason==="implicit"&&t.endPosition!==void 0){let o=vr(Ii(i,t.startPosition),pC),c=vr(Ii(i,t.endPosition),pC);if(o&&!Li(o)&&c&&!Li(c))return Ke}if(t.preferences.allowTextChangesInNewFiles&&s){let o={start:{line:Hs(i,s.all[0].getStart(i)).line,offset:Hs(i,s.all[0].getStart(i)).character},end:{line:Hs(i,ka(s.all).end).line,offset:Hs(i,ka(s.all).end).character}};return[{name:J$,description:iue,actions:[{...sue,range:o}]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:J$,description:iue,actions:[{...sue,notApplicableReason:Es(_.Selection_is_not_a_valid_statement_or_statements)}]}]:Ke},getEditsForAction:function(t,n,i){w.assert(n===J$,"Wrong refactor invoked");let s=w.checkDefined(RR(t)),{host:o,program:c}=t;w.assert(i,"No interactive refactor arguments available");let p=i.targetFile;return gh(p)||pk(p)?o.fileExists(p)&&c.getSourceFile(p)===void 0?F2e(Es(_.Cannot_move_statements_to_the_selected_file)):{edits:gn.ChangeTracker.with(t,g=>b$e(t,t.file,i.targetFile,t.program,s,g,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:F2e(Es(_.Cannot_move_to_file_selected_file_is_invalid))}});function F2e(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function b$e(e,t,n,i,s,o,c,p){let u=i.getTypeChecker(),g=!c.fileExists(n),d=g?N5(n,t.externalModuleIndicator?99:t.commonJsModuleIndicator?1:void 0,i,c):w.checkDefined(i.getSourceFile(n)),h=tp.createImportAdder(t,e.program,e.preferences,e.host),S=tp.createImportAdder(d,e.program,e.preferences,e.host);aue(t,d,B5(t,s.all,u,g?void 0:gue(d,s.all,u)),o,s,i,c,p,S,h),g&&oue(i,o,t.fileName,n,ty(c))}function aue(e,t,n,i,s,o,c,p,u,g){let d=o.getTypeChecker(),h=qW(e.statements,Lm),S=!g$(t.fileName,o,c,!!e.commonJsModuleIndicator),T=Mf(e,p);lue(n.oldFileImportsFromTargetFile,t.fileName,g,o),T$e(e,s.all,n.unusedImportsFromOldFile,g),g.writeFixes(i,T),S$e(e,s.ranges,i),k$e(i,o,c,e,n.movedSymbols,t.fileName,T),cue(e,n.targetFileImportsFromOldFile,i,S),yue(e,n.oldImportsNeededByTargetFile,n.targetFileImportsFromOldFile,d,o,u),!ph(t)&&h.length&&i.insertStatementsInNewFile(t.fileName,h,e),u.writeFixes(i,T);let x=P$e(e,s.all,ds(n.oldFileImportsFromTargetFile.keys()),S);ph(t)&&t.statements.length>0?V$e(i,o,x,t,s):ph(t)?i.insertNodesAtEndOfFile(t,x,!1):i.insertStatementsInNewFile(t.fileName,u.hasFixes()?[4,...x]:x,e)}function oue(e,t,n,i,s){let o=e.getCompilerOptions().configFile;if(!o)return;let c=ra(Jn(n,"..",i)),p=Cw(o.fileName,c,s),u=o.statements[0]&&Hn(o.statements[0].expression,Sa),g=u&&Bn(u.properties,d=>yl(d)&&ya(d.name)&&d.name.text==="files");g&&Tu(g.initializer)&&t.insertNodeInListAfter(o,ka(g.initializer.elements),A.createStringLiteral(p),g.initializer.elements)}function S$e(e,t,n){for(let{first:i,afterLast:s}of t)n.deleteNodeRangeExcludingEnd(e,i,s)}function T$e(e,t,n,i){for(let s of e.statements)ws(t,s)||L2e(s,o=>{W2e(o,c=>{n.has(c.symbol)&&i.removeExistingImport(c)})})}function cue(e,t,n,i){let s=HI();t.forEach((o,c)=>{if(c.declarations)for(let p of c.declarations){if(!mue(p))continue;let u=j$e(p);if(!u)continue;let g=J2e(p);s(g)&&L$e(e,g,u,n,i)}})}function k$e(e,t,n,i,s,o,c){let p=t.getTypeChecker();for(let u of t.getSourceFiles())if(u!==i)for(let g of u.statements)L2e(g,d=>{if(p.getSymbolAtLocation(I$e(d))!==i.symbol)return;let h=P=>{let E=Da(P.parent)?g5(p,P.parent):vu(p.getSymbolAtLocation(P),p);return!!E&&s.has(E)};A$e(u,d,e,h);let S=ib(ti(as(i.fileName,t.getCurrentDirectory())),o);if(bw(!t.useCaseSensitiveFileNames())(S,u.fileName)===0)return;let T=uy.getModuleSpecifier(t.getCompilerOptions(),u,u.fileName,S,o1(t,n)),x=R$e(d,AE(T,c),h);x&&e.insertNodeAfter(u,g,x);let I=x$e(d);I&&C$e(e,u,p,s,T,I,d,c)})}function x$e(e){switch(e.kind){case 273:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===275?e.importClause.namedBindings.name:void 0;case 272:return e.name;case 261:return Hn(e.name,Be);default:return w.assertNever(e,`Unexpected node kind ${e.kind}`)}}function C$e(e,t,n,i,s,o,c,p){let u=DR(s,99),g=!1,d=[];if(jo.Core.eachSymbolReferenceInFile(o,n,t,h=>{Ln(h.parent)&&(g=g||!!n.resolveName(u,h,-1,!0),i.has(n.getSymbolAtLocation(h.parent.name))&&d.push(h))}),d.length){let h=g?Lk(u,t):u;for(let S of d)e.replaceNode(t,S,A.createIdentifier(h));e.insertNodeAfter(t,c,w$e(c,u,s,p))}}function w$e(e,t,n,i){let s=A.createIdentifier(t),o=AE(n,i);switch(e.kind){case 273:return A.createImportDeclaration(void 0,A.createImportClause(void 0,void 0,A.createNamespaceImport(s)),o,void 0);case 272:return A.createImportEqualsDeclaration(void 0,!1,s,A.createExternalModuleReference(o));case 261:return A.createVariableDeclaration(s,void 0,void 0,j2e(o));default:return w.assertNever(e,`Unexpected node kind ${e.kind}`)}}function j2e(e){return A.createCallExpression(A.createIdentifier("require"),void 0,[e])}function I$e(e){return e.kind===273?e.moduleSpecifier:e.kind===272?e.moduleReference.expression:e.initializer.arguments[0]}function L2e(e,t){if(ac(e))ya(e.moduleSpecifier)&&t(e);else if(Dl(e))ay(e.moduleReference)&&Ha(e.moduleReference.expression)&&t(e);else if(Qc(e))for(let n of e.declarationList.declarations)n.initializer&&Vp(n.initializer,!0)&&t(n)}function W2e(e,t){var n,i,s,o,c;if(e.kind===273){if((n=e.importClause)!=null&&n.name&&t(e.importClause),((s=(i=e.importClause)==null?void 0:i.namedBindings)==null?void 0:s.kind)===275&&t(e.importClause.namedBindings),((c=(o=e.importClause)==null?void 0:o.namedBindings)==null?void 0:c.kind)===276)for(let p of e.importClause.namedBindings.elements)t(p)}else if(e.kind===272)t(e);else if(e.kind===261){if(e.name.kind===80)t(e);else if(e.name.kind===207)for(let p of e.name.elements)Be(p.name)&&t(p)}}function lue(e,t,n,i){for(let[s,o]of e){let c=I5(s,xa(i.getCompilerOptions())),p=s.name==="default"&&s.parent?1:0;n.addImportForNonExistentExport(c,t,p,s.flags,o)}}function D$e(e,t,n,i=2){return A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(e,void 0,t,n)],i))}function P$e(e,t,n,i){return Ma(t,s=>{if(z2e(s)&&!B2e(e,s,i)&&due(s,o=>{var c;return n.includes(w.checkDefined((c=Hn(o,rm))==null?void 0:c.symbol))})){let o=E$e(to(s),i);if(o)return o}return to(s)})}function B2e(e,t,n,i){var s;return n?!Ql(t)&&ri(t,32)||!!(i&&e.symbol&&((s=e.symbol.exports)!=null&&s.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&uue(t).some(o=>e.symbol.exports.has(gc(o)))}function A$e(e,t,n,i){if(t.kind===273&&t.importClause){let{name:s,namedBindings:o}=t.importClause;if((!s||i(s))&&(!o||o.kind===276&&o.elements.length!==0&&o.elements.every(c=>i(c.name))))return n.delete(e,t)}W2e(t,s=>{s.name&&Be(s.name)&&i(s.name)&&n.delete(e,s)})}function z2e(e){return w.assert(Li(e.parent),"Node parent should be a SourceFile"),q2e(e)||Qc(e)}function E$e(e,t){return t?[N$e(e)]:M$e(e)}function N$e(e){let t=yd(e)?Qi([A.createModifier(95)],fS(e)):void 0;switch(e.kind){case 263:return A.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 264:let n=US(e)?ab(e):void 0;return A.updateClassDeclaration(e,Qi(n,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 244:return A.updateVariableStatement(e,t,e.declarationList);case 268:return A.updateModuleDeclaration(e,t,e.name,e.body);case 267:return A.updateEnumDeclaration(e,t,e.name,e.members);case 266:return A.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 265:return A.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 272:return A.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 245:return w.fail();default:return w.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function M$e(e){return[e,...uue(e).map(G2e)]}function G2e(e){return A.createExpressionStatement(A.createBinaryExpression(A.createPropertyAccessExpression(A.createIdentifier("exports"),A.createIdentifier(e)),64,A.createIdentifier(e)))}function uue(e){switch(e.kind){case 263:case 264:return[e.name.text];case 244:return Ji(e.declarationList.declarations,t=>Be(t.name)?t.name.text:void 0);case 268:case 267:case 266:case 265:case 272:return Ke;case 245:return w.fail("Can't export an ExpressionStatement");default:return w.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function R$e(e,t,n){switch(e.kind){case 273:{let i=e.importClause;if(!i)return;let s=i.name&&n(i.name)?i.name:void 0,o=i.namedBindings&&O$e(i.namedBindings,n);return s||o?A.createImportDeclaration(void 0,A.createImportClause(i.phaseModifier,s,o),to(t),void 0):void 0}case 272:return n(e.name)?e:void 0;case 261:{let i=F$e(e.name,n);return i?D$e(i,e.type,j2e(t),e.parent.flags):void 0}default:return w.assertNever(e,`Unexpected import kind ${e.kind}`)}}function O$e(e,t){if(e.kind===275)return t(e.name)?e:void 0;{let n=e.elements.filter(i=>t(i.name));return n.length?A.createNamedImports(n):void 0}}function F$e(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 208:return e;case 207:{let n=e.elements.filter(i=>i.propertyName||!Be(i.name)||t(i.name));return n.length?A.createObjectBindingPattern(n):void 0}}}function j$e(e){return Ql(e)?Hn(e.expression.left.name,Be):Hn(e.name,Be)}function J2e(e){switch(e.kind){case 261:return e.parent.parent;case 209:return J2e(Zs(e.parent.parent,t=>li(t)||Da(t)));default:return e}}function L$e(e,t,n,i,s){if(!B2e(e,t,s,n))if(s)Ql(t)||i.insertExportModifier(e,t);else{let o=uue(t);o.length!==0&&i.insertNodesAfter(e,t,o.map(G2e))}}function pue(e,t,n,i){let s=t.getTypeChecker();if(i){let o=B5(e,i.all,s),c=ti(e.fileName),p=xA(e.fileName);return Jn(c,G$e(J$e(o.oldFileImportsFromTargetFile,o.movedSymbols),p,c,n))+p}return""}function W$e(e){let{file:t}=e,n=u5(uC(e)),{statements:i}=t,s=Tc(i,g=>g.end>n.pos);if(s===-1)return;let o=i[s],c=$2e(t,o);c&&(s=c.start);let p=Tc(i,g=>g.end>=n.end,s);p!==-1&&n.end<=i[p].getStart()&&p--;let u=$2e(t,i[p]);return u&&(p=u.end),{toMove:i.slice(s,p===-1?i.length:p+1),afterLast:p===-1?void 0:i[p+1]}}function RR(e){let t=W$e(e);if(t===void 0)return;let n=[],i=[],{toMove:s,afterLast:o}=t;return DW(s,B$e,(c,p)=>{for(let u=c;u<p;u++)n.push(s[u]);i.push({first:s[c],afterLast:o})}),n.length===0?void 0:{all:n,ranges:i}}function fue(e){return Bn(e,t=>!!(t.transformFlags&2))}function B$e(e){return!z$e(e)&&!Lm(e)}function z$e(e){switch(e.kind){case 273:return!0;case 272:return!ri(e,32);case 244:return e.declarationList.declarations.every(t=>!!t.initializer&&Vp(t.initializer,!0));default:return!1}}function B5(e,t,n,i=new Set,s){var o;let c=new Set,p=new Map,u=new Map,g=S(fue(t));g&&p.set(g,[!1,Hn((o=g.declarations)==null?void 0:o[0],T=>gp(T)||Ld(T)||bh(T)||Dl(T)||Da(T)||li(T))]);for(let T of t)due(T,x=>{c.add(w.checkDefined(Ql(x)?n.getSymbolAtLocation(x.expression.left):x.symbol,"Need a symbol here"))});let d=new Set;for(let T of t)_ue(T,n,s,(x,I)=>{if(!_t(x.declarations))return;if(i.has(vu(x,n))){d.add(x);return}let P=Bn(x.declarations,U$);if(P){let E=p.get(x);p.set(x,[(E===void 0||E)&&I,Hn(P,F=>gp(F)||Ld(F)||bh(F)||Dl(F)||Da(F)||li(F))])}else!c.has(x)&&Fi(x.declarations,E=>mue(E)&&U$e(E)===e)&&u.set(x,I)});for(let T of p.keys())d.add(T);let h=new Map;for(let T of e.statements)ws(t,T)||(g&&T.transformFlags&2&&d.delete(g),_ue(T,n,s,(x,I)=>{c.has(x)&&h.set(x,I),d.delete(x)}));return{movedSymbols:c,targetFileImportsFromOldFile:u,oldFileImportsFromTargetFile:h,oldImportsNeededByTargetFile:p,unusedImportsFromOldFile:d};function S(T){if(T===void 0)return;let x=n.getJsxNamespace(T),I=n.resolveName(x,T,1920,!0);return I&&_t(I.declarations,U$)?I:void 0}}function G$e(e,t,n,i){let s=e;for(let o=1;;o++){let c=Jn(n,s+t);if(!i.fileExists(c))return s;s=`${e}.${o}`}}function J$e(e,t){return ch(e,qq)||ch(t,qq)||"newFile"}function _ue(e,t,n,i){e.forEachChild(function s(o){if(Be(o)&&!Ig(o)){if(n&&!$p(n,o))return;let c=t.getSymbolAtLocation(o);c&&i(c,B0(o))}else o.forEachChild(s)})}function due(e,t){switch(e.kind){case 263:case 264:case 268:case 267:case 266:case 265:case 272:return t(e);case 244:return fo(e.declarationList.declarations,n=>V2e(n.name,t));case 245:{let{expression:n}=e;return vn(n)&&Hc(n)===1?t(e):void 0}}}function U$(e){switch(e.kind){case 272:case 277:case 274:case 275:return!0;case 261:return U2e(e);case 209:return li(e.parent.parent)&&U2e(e.parent.parent);default:return!1}}function U2e(e){return Li(e.parent.parent.parent)&&!!e.initializer&&Vp(e.initializer,!0)}function mue(e){return q2e(e)&&Li(e.parent)||li(e)&&Li(e.parent.parent.parent)}function U$e(e){return li(e)?e.parent.parent.parent:e.parent}function V2e(e,t){switch(e.kind){case 80:return t(Zs(e.parent,n=>li(n)||Da(n)));case 208:case 207:return fo(e.elements,n=>Fl(n)?void 0:V2e(n.name,t));default:return w.assertNever(e,`Unexpected name kind ${e.kind}`)}}function q2e(e){switch(e.kind){case 263:case 264:case 268:case 267:case 266:case 265:case 272:return!0;default:return!1}}function V$e(e,t,n,i,s){var o;let c=new Set,p=(o=i.symbol)==null?void 0:o.exports;if(p){let g=t.getTypeChecker(),d=new Map;for(let h of s.all)z2e(h)&&ri(h,32)&&due(h,S=>{var T;let x=rm(S)?(T=p.get(S.symbol.escapedName))==null?void 0:T.declarations:void 0,I=fo(x,P=>tl(P)?P:Xu(P)?Hn(P.parent.parent,tl):void 0);I&&I.moduleSpecifier&&d.set(I,(d.get(I)||new Set).add(S))});for(let[h,S]of ds(d))if(h.exportClause&&G_(h.exportClause)&&Dr(h.exportClause.elements)){let T=h.exportClause.elements,x=Mn(T,I=>Bn(vu(I.symbol,g).declarations,P=>mue(P)&&S.has(P))===void 0);if(Dr(x)===0){e.deleteNode(i,h),c.add(h);continue}Dr(x)<Dr(T)&&e.replaceNode(i,h,A.updateExportDeclaration(h,h.modifiers,h.isTypeOnly,A.updateNamedExports(h.exportClause,A.createNodeArray(x,T.hasTrailingComma)),h.moduleSpecifier,h.attributes))}}let u=aS(i.statements,g=>tl(g)&&!!g.moduleSpecifier&&!c.has(g));u?e.insertNodesBefore(i,u,n,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],n)}function $2e(e,t){if(yo(t)){let n=t.symbol.declarations;if(n===void 0||Dr(n)<=1||!ws(n,t))return;let i=n[0],s=n[Dr(n)-1],o=Ji(n,u=>Nr(u)===e&&Ei(u)?u:void 0),c=Tc(e.statements,u=>u.end>=s.end),p=Tc(e.statements,u=>u.end>=i.end);return{toMove:o,start:p,end:c}}}function gue(e,t,n){let i=new Set;for(let s of e.imports){let o=eA(s);if(ac(o)&&o.importClause&&o.importClause.namedBindings&&Km(o.importClause.namedBindings))for(let c of o.importClause.namedBindings.elements){let p=n.getSymbolAtLocation(c.propertyName||c.name);p&&i.add(vu(p,n))}if(a6(o.parent)&&o_(o.parent.name))for(let c of o.parent.name.elements){let p=n.getSymbolAtLocation(c.propertyName||c.name);p&&i.add(vu(p,n))}}for(let s of t)_ue(s,n,void 0,o=>{let c=vu(o,n);c.valueDeclaration&&Nr(c.valueDeclaration).path===e.path&&i.add(c)});return i}function fy(e){return e.error!==void 0}function u1(e,t){return t?e.substr(0,t.length)===t:!0}function hue(e,t,n,i){return Ln(e)&&!ni(t)&&!n.resolveName(e.name.text,e,111551,!1)&&!zi(e.name)&&!VT(e.name)?e.name.text:Lk(ni(t)?"newProperty":"newLocal",i)}function yue(e,t,n,i,s,o){t.forEach(([c,p],u)=>{var g;let d=vu(u,i);i.isUnknownSymbol(d)?o.addVerbatimImport(w.checkDefined(p??vr((g=u.declarations)==null?void 0:g[0],Ote))):d.parent===void 0?(w.assert(p!==void 0,"expected module symbol to have a declaration"),o.addImportForModuleSymbol(u,c,p)):o.addImportFromExportedSymbol(d,c,p)}),lue(n,e.fileName,o,s)}var z5="Inline variable",vue=Es(_.Inline_variable),bue={name:z5,description:vue,kind:"refactor.inline.variable"};kh(z5,{kinds:[bue.kind],getAvailableActions(e){let{file:t,program:n,preferences:i,startPosition:s,triggerReason:o}=e,c=H2e(t,s,o==="invoked",n);return c?_C.isRefactorErrorInfo(c)?i.provideRefactorNotApplicableReason?[{name:z5,description:vue,actions:[{...bue,notApplicableReason:c.error}]}]:Ke:[{name:z5,description:vue,actions:[bue]}]:Ke},getEditsForAction(e,t){w.assert(t===z5,"Unexpected refactor invoked");let{file:n,program:i,startPosition:s}=e,o=H2e(n,s,!0,i);if(!o||_C.isRefactorErrorInfo(o))return;let{references:c,declaration:p,replacement:u}=o;return{edits:gn.ChangeTracker.with(e,d=>{for(let h of c){let S=ya(u)&&Be(h)&&Od(h.parent);S&&hI(S)&&!U0(S.parent.parent)?$$e(d,n,S,u):d.replaceNode(n,h,q$e(h,u))}d.delete(n,p)})}}});function H2e(e,t,n,i){var s,o;let c=i.getTypeChecker(),p=Kp(e,t),u=p.parent;if(Be(p)){if(F6(u)&&qP(u)&&Be(u.name)){if(((s=c.getMergedSymbol(u.symbol).declarations)==null?void 0:s.length)!==1)return{error:Es(_.Variables_with_multiple_declarations_cannot_be_inlined)};if(Q2e(u))return;let g=K2e(u,c,e);return g&&{references:g,declaration:u,replacement:u.initializer}}if(n){let g=c.resolveName(p.text,p,111551,!1);if(g=g&&c.getMergedSymbol(g),((o=g?.declarations)==null?void 0:o.length)!==1)return{error:Es(_.Variables_with_multiple_declarations_cannot_be_inlined)};let d=g.declarations[0];if(!F6(d)||!qP(d)||!Be(d.name)||Q2e(d))return;let h=K2e(d,c,e);return h&&{references:h,declaration:d,replacement:d.initializer}}return{error:Es(_.Could_not_find_variable_to_inline)}}}function Q2e(e){let t=Zs(e.parent.parent,Qc);return _t(t.modifiers,L2)}function K2e(e,t,n){let i=[],s=jo.Core.eachSymbolReferenceInFile(e.name,t,n,o=>{if(jo.isWriteAccessForReference(o)&&!Fu(o.parent)||Xu(o.parent)||Qo(o.parent)||FS(o.parent)||xM(e,o.pos))return!0;i.push(o)});return i.length===0||s?void 0:i}function q$e(e,t){t=to(t);let{parent:n}=e;return ht(n)&&(cA(t)<cA(n)||v5(n))||Fs(t)&&(mS(n)||Ln(n))||Ln(n)&&(Hp(t)||Sa(t))?A.createParenthesizedExpression(t):Be(e)&&Fu(n)?A.createPropertyAssignment(e,t):t}function $$e(e,t,n,i){let s=n.parent,o=s.templateSpans.indexOf(n),c=o===0?s.head:s.templateSpans[o-1];e.replaceRangeWithText(t,{pos:c.getEnd()-2,end:n.literal.getStart()+1},i.text.replace(/\\/g,"\\\\").replace(/`/g,"\\`"))}var G5="Move to a new file",Sue=Es(_.Move_to_a_new_file),Tue={name:G5,description:Sue,kind:"refactor.move.newFile"};kh(G5,{kinds:[Tue.kind],getAvailableActions:function(t){let n=RR(t),i=t.file;if(t.triggerReason==="implicit"&&t.endPosition!==void 0){let s=vr(Ii(i,t.startPosition),pC),o=vr(Ii(i,t.endPosition),pC);if(s&&!Li(s)&&o&&!Li(o))return Ke}if(t.preferences.allowTextChangesInNewFiles&&n){let s=t.file,o={start:{line:Hs(s,n.all[0].getStart(s)).line,offset:Hs(s,n.all[0].getStart(s)).character},end:{line:Hs(s,ka(n.all).end).line,offset:Hs(s,ka(n.all).end).character}};return[{name:G5,description:Sue,actions:[{...Tue,range:o}]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:G5,description:Sue,actions:[{...Tue,notApplicableReason:Es(_.Selection_is_not_a_valid_statement_or_statements)}]}]:Ke},getEditsForAction:function(t,n){w.assert(n===G5,"Wrong refactor invoked");let i=w.checkDefined(RR(t));return{edits:gn.ChangeTracker.with(t,o=>H$e(t.file,t.program,i,o,t.host,t,t.preferences)),renameFilename:void 0,renameLocation:void 0}}});function H$e(e,t,n,i,s,o,c){let p=t.getTypeChecker(),u=B5(e,n.all,p),g=pue(e,t,s,n),d=N5(g,e.externalModuleIndicator?99:e.commonJsModuleIndicator?1:void 0,t,s),h=tp.createImportAdder(e,o.program,o.preferences,o.host),S=tp.createImportAdder(d,o.program,o.preferences,o.host);aue(e,d,u,i,n,t,s,c,S,h),oue(t,i,e.fileName,g,ty(s))}var Q$e={},kue="Convert overload list to single signature",X2e=Es(_.Convert_overload_list_to_single_signature),Y2e={name:kue,description:X2e,kind:"refactor.rewrite.function.overloadList"};kh(kue,{kinds:[Y2e.kind],getEditsForAction:X$e,getAvailableActions:K$e});function K$e(e){let{file:t,startPosition:n,program:i}=e;return eCe(t,n,i)?[{name:kue,description:X2e,actions:[Y2e]}]:Ke}function X$e(e){let{file:t,startPosition:n,program:i}=e,s=eCe(t,n,i);if(!s)return;let o=i.getTypeChecker(),c=s[s.length-1],p=c;switch(c.kind){case 174:{p=A.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,g(s),c.type);break}case 175:{p=A.updateMethodDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,g(s),c.type,c.body);break}case 180:{p=A.updateCallSignature(c,c.typeParameters,g(s),c.type);break}case 177:{p=A.updateConstructorDeclaration(c,c.modifiers,g(s),c.body);break}case 181:{p=A.updateConstructSignature(c,c.typeParameters,g(s),c.type);break}case 263:{p=A.updateFunctionDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.typeParameters,g(s),c.type,c.body);break}default:return w.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(p===c)return;return{renameFilename:void 0,renameLocation:void 0,edits:gn.ChangeTracker.with(e,S=>{S.replaceNodeRange(t,s[0],s[s.length-1],p)})};function g(S){let T=S[S.length-1];return yo(T)&&T.body&&(S=S.slice(0,S.length-1)),A.createNodeArray([A.createParameterDeclaration(void 0,A.createToken(26),"args",void 0,A.createUnionTypeNode(kr(S,d)))])}function d(S){let T=kr(S.parameters,h);return yn(A.createTupleTypeNode(T),_t(T,x=>!!Dr(uI(x)))?0:1)}function h(S){w.assert(Be(S.name));let T=mt(A.createNamedTupleMember(S.dotDotDotToken,S.name,S.questionToken,S.type||A.createKeywordTypeNode(133)),S),x=S.symbol&&S.symbol.getDocumentationComment(o);if(x){let I=jR(x);I.length&&G0(T,[{text:`*
|
|
${I.split(`
|
|
`).map(P=>` * ${P}`).join(`
|
|
`)}
|
|
`,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return T}}function Z2e(e){switch(e.kind){case 174:case 175:case 180:case 177:case 181:case 263:return!0}return!1}function eCe(e,t,n){let i=Ii(e,t),s=vr(i,Z2e);if(!s||yo(s)&&s.body&&qI(s.body,t))return;let o=n.getTypeChecker(),c=s.symbol;if(!c)return;let p=c.declarations;if(Dr(p)<=1||!Fi(p,S=>Nr(S)===e)||!Z2e(p[0]))return;let u=p[0].kind;if(!Fi(p,S=>S.kind===u))return;let g=p;if(_t(g,S=>!!S.typeParameters||_t(S.parameters,T=>!!T.modifiers||!Be(T.name))))return;let d=Ji(g,S=>o.getSignatureFromDeclaration(S));if(Dr(d)!==Dr(p))return;let h=o.getReturnTypeOfSignature(d[0]);if(Fi(d,S=>o.getReturnTypeOfSignature(S)===h))return g}var xue="Add or remove braces in an arrow function",tCe=Es(_.Add_or_remove_braces_in_an_arrow_function),V$={name:"Add braces to arrow function",description:Es(_.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},J5={name:"Remove braces from arrow function",description:Es(_.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"};kh(xue,{kinds:[J5.kind],getEditsForAction:Z$e,getAvailableActions:Y$e});function Y$e(e){let{file:t,startPosition:n,triggerReason:i}=e,s=rCe(t,n,i==="invoked");return s?fy(s)?e.preferences.provideRefactorNotApplicableReason?[{name:xue,description:tCe,actions:[{...V$,notApplicableReason:s.error},{...J5,notApplicableReason:s.error}]}]:Ke:[{name:xue,description:tCe,actions:[s.addBraces?V$:J5]}]:Ke}function Z$e(e,t){let{file:n,startPosition:i}=e,s=rCe(n,i);w.assert(s&&!fy(s),"Expected applicable refactor info");let{expression:o,returnStatement:c,func:p}=s,u;if(t===V$.name){let d=A.createReturnStatement(o);u=A.createBlock([d],!0),YI(o,d,n,3,!0)}else if(t===J5.name&&c){let d=o||A.createVoidZero();u=v5(d)?A.createParenthesizedExpression(d):d,xR(c,u,n,3,!1),YI(c,u,n,3,!1),RE(c,u,n,3,!1)}else w.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:gn.ChangeTracker.with(e,d=>{d.replaceNode(n,p.body,u)})}}function rCe(e,t,n=!0,i){let s=Ii(e,t),o=i_(s);if(!o)return{error:Es(_.Could_not_find_a_containing_arrow_function)};if(!Fo(o))return{error:Es(_.Containing_function_is_not_an_arrow_function)};if(!(!$p(o,s)||$p(o.body,s)&&!n)){if(u1(V$.kind,i)&&ht(o.body))return{func:o,addBraces:!0,expression:o.body};if(u1(J5.kind,i)&&Bs(o.body)&&o.body.statements.length===1){let c=Ra(o.body.statements);if(Qf(c)){let p=c.expression&&Sa(iI(c.expression,!1))?A.createParenthesizedExpression(c.expression):c.expression;return{func:o,addBraces:!1,expression:p,returnStatement:c}}}}}var eHe={},nCe="Convert arrow function or function expression",tHe=Es(_.Convert_arrow_function_or_function_expression),U5={name:"Convert to anonymous function",description:Es(_.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},V5={name:"Convert to named function",description:Es(_.Convert_to_named_function),kind:"refactor.rewrite.function.named"},q5={name:"Convert to arrow function",description:Es(_.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};kh(nCe,{kinds:[U5.kind,V5.kind,q5.kind],getEditsForAction:nHe,getAvailableActions:rHe});function rHe(e){let{file:t,startPosition:n,program:i,kind:s}=e,o=sCe(t,n,i);if(!o)return Ke;let{selectedVariableDeclaration:c,func:p}=o,u=[],g=[];if(u1(V5.kind,s)){let d=c||Fo(p)&&li(p.parent)?void 0:Es(_.Could_not_convert_to_named_function);d?g.push({...V5,notApplicableReason:d}):u.push(V5)}if(u1(U5.kind,s)){let d=!c&&Fo(p)?void 0:Es(_.Could_not_convert_to_anonymous_function);d?g.push({...U5,notApplicableReason:d}):u.push(U5)}if(u1(q5.kind,s)){let d=Ao(p)?void 0:Es(_.Could_not_convert_to_arrow_function);d?g.push({...q5,notApplicableReason:d}):u.push(q5)}return[{name:nCe,description:tHe,actions:u.length===0&&e.preferences.provideRefactorNotApplicableReason?g:u}]}function nHe(e,t){let{file:n,startPosition:i,program:s}=e,o=sCe(n,i,s);if(!o)return;let{func:c}=o,p=[];switch(t){case U5.name:p.push(...oHe(e,c));break;case V5.name:let u=aHe(c);if(!u)return;p.push(...cHe(e,c,u));break;case q5.name:if(!Ao(c))return;p.push(...lHe(e,c));break;default:return w.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:p}}function iCe(e){let t=!1;return e.forEachChild(function n(i){if(VI(i)){t=!0;return}!ni(i)&&!Gc(i)&&!Ao(i)&&Ms(i,n)}),t}function sCe(e,t,n){let i=Ii(e,t),s=n.getTypeChecker(),o=sHe(e,s,i.parent);if(o&&!iCe(o.body)&&!s.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};let c=i_(i);if(c&&(Ao(c)||Fo(c))&&!$p(c.body,i)&&!iCe(c.body)&&!s.containsArgumentsReference(c))return Ao(c)&&oCe(e,s,c)?void 0:{selectedVariableDeclaration:!1,func:c}}function iHe(e){return li(e)||lu(e)&&e.declarations.length===1}function sHe(e,t,n){if(!iHe(n))return;let s=(li(n)?n:Ra(n.declarations)).initializer;if(s&&(Fo(s)||Ao(s)&&!oCe(e,t,s)))return s}function aCe(e){if(ht(e)){let t=A.createReturnStatement(e),n=e.getSourceFile();return mt(t,e),Df(t),xR(e,t,n,void 0,!0),A.createBlock([t],!0)}else return e}function aHe(e){let t=e.parent;if(!li(t)||!qP(t))return;let n=t.parent,i=n.parent;if(!(!lu(n)||!Qc(i)||!Be(t.name)))return{variableDeclaration:t,variableDeclarationList:n,statement:i,name:t.name}}function oHe(e,t){let{file:n}=e,i=aCe(t.body),s=A.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return gn.ChangeTracker.with(e,o=>o.replaceNode(n,t,s))}function cHe(e,t,n){let{file:i}=e,s=aCe(t.body),{variableDeclaration:o,variableDeclarationList:c,statement:p,name:u}=n;tJ(p);let g=I0(o)&32|Mu(t),d=A.createModifiersFromModifierFlags(g),h=A.createFunctionDeclaration(Dr(d)?d:void 0,t.asteriskToken,u,t.typeParameters,t.parameters,t.type,s);return c.declarations.length===1?gn.ChangeTracker.with(e,S=>S.replaceNode(i,p,h)):gn.ChangeTracker.with(e,S=>{S.delete(i,o),S.insertNodeAfter(i,p,h)})}function lHe(e,t){let{file:n}=e,s=t.body.statements[0],o;uHe(t.body,s)?(o=s.expression,Df(o),jk(s,o)):o=t.body;let c=A.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,A.createToken(39),o);return gn.ChangeTracker.with(e,p=>p.replaceNode(n,t,c))}function uHe(e,t){return e.statements.length===1&&Qf(t)&&!!t.expression}function oCe(e,t,n){return!!n.name&&jo.Core.isSymbolReferencedInFile(n.name,t,e)}var pHe={},q$="Convert parameters to destructured object",fHe=1,cCe=Es(_.Convert_parameters_to_destructured_object),lCe={name:q$,description:cCe,kind:"refactor.rewrite.parameters.toDestructured"};kh(q$,{kinds:[lCe.kind],getEditsForAction:dHe,getAvailableActions:_He});function _He(e){let{file:t,startPosition:n}=e;return Cp(t)||!fCe(t,n,e.program.getTypeChecker())?Ke:[{name:q$,description:cCe,actions:[lCe]}]}function dHe(e,t){w.assert(t===q$,"Unexpected action name");let{file:n,startPosition:i,program:s,cancellationToken:o,host:c}=e,p=fCe(n,i,s.getTypeChecker());if(!p||!o)return;let u=gHe(p,s,o);return u.valid?{renameFilename:void 0,renameLocation:void 0,edits:gn.ChangeTracker.with(e,d=>mHe(n,s,c,d,p,u))}:{edits:[]}}function mHe(e,t,n,i,s,o){let c=o.signature,p=kr(gCe(s,t,n),d=>to(d));if(c){let d=kr(gCe(c,t,n),h=>to(h));g(c,d)}g(s,p);let u=fP(o.functionCalls,(d,h)=>Po(d.pos,h.pos));for(let d of u)if(d.arguments&&d.arguments.length){let h=to(wHe(s,d.arguments),!0);i.replaceNodeRange(Nr(d),Ra(d.arguments),ka(d.arguments),h,{leadingTriviaOption:gn.LeadingTriviaOption.IncludeAll,trailingTriviaOption:gn.TrailingTriviaOption.Include})}function g(d,h){i.replaceNodeRangeWithNodes(e,Ra(d.parameters),ka(d.parameters),h,{joiner:", ",indentation:0,leadingTriviaOption:gn.LeadingTriviaOption.IncludeAll,trailingTriviaOption:gn.TrailingTriviaOption.Include})}}function gHe(e,t,n){let i=DHe(e),s=yc(e)?IHe(e):[],o=oS([...i,...s],eb),c=t.getTypeChecker(),p=Ma(o,h=>jo.getReferenceEntriesForNode(-1,h,t,t.getSourceFiles(),n)),u=g(p);return Fi(u.declarations,h=>ws(o,h))||(u.valid=!1),u;function g(h){let S={accessExpressions:[],typeUsages:[]},T={functionCalls:[],declarations:[],classReferences:S,valid:!0},x=kr(i,d),I=kr(s,d),P=yc(e),E=kr(i,F=>Cue(F,c));for(let F of h){if(F.kind===jo.EntryKind.Span){T.valid=!1;continue}if(ws(E,d(F.node))){if(bHe(F.node.parent)){T.signature=F.node.parent;continue}let W=pCe(F);if(W){T.functionCalls.push(W);continue}}let O=Cue(F.node,c);if(O&&ws(E,O)){let W=wue(F);if(W){T.declarations.push(W);continue}}if(ws(x,d(F.node))||CE(F.node)){if(uCe(F))continue;let z=wue(F);if(z){T.declarations.push(z);continue}let $=pCe(F);if($){T.functionCalls.push($);continue}}if(P&&ws(I,d(F.node))){if(uCe(F))continue;let z=wue(F);if(z){T.declarations.push(z);continue}let $=hHe(F);if($){S.accessExpressions.push($);continue}if(hl(e.parent)){let X=yHe(F);if(X){S.typeUsages.push(X);continue}}}T.valid=!1}return T}function d(h){let S=c.getSymbolAtLocation(h);return S&&n$(S,c)}}function Cue(e,t){let n=LR(e);if(n){let i=t.getContextualTypeForObjectLiteralElement(n),s=i?.getSymbol();if(s&&!(Cc(s)&6))return s}}function uCe(e){let t=e.node;if(gp(t.parent)||Ld(t.parent)||Dl(t.parent)||bh(t.parent)||Xu(t.parent)||Qo(t.parent))return t}function wue(e){if(ql(e.node.parent))return e.node}function pCe(e){if(e.node.parent){let t=e.node,n=t.parent;switch(n.kind){case 214:case 215:let i=Hn(n,Om);if(i&&i.expression===t)return i;break;case 212:let s=Hn(n,Ln);if(s&&s.parent&&s.name===t){let c=Hn(s.parent,Om);if(c&&c.expression===s)return c}break;case 213:let o=Hn(n,xo);if(o&&o.parent&&o.argumentExpression===t){let c=Hn(o.parent,Om);if(c&&c.expression===o)return c}break}}}function hHe(e){if(e.node.parent){let t=e.node,n=t.parent;switch(n.kind){case 212:let i=Hn(n,Ln);if(i&&i.expression===t)return i;break;case 213:let s=Hn(n,xo);if(s&&s.expression===t)return s;break}}}function yHe(e){let t=e.node;if(Ok(t)===2||g8(t.parent))return t}function fCe(e,t,n){let i=$I(e,t),s=Yte(i);if(!vHe(i)&&s&&SHe(s,n)&&$p(s,i)&&!(s.body&&$p(s.body,i)))return s}function vHe(e){let t=vr(e,Rw);if(t){let n=vr(t,i=>!Rw(i));return!!n&&yo(n)}return!1}function bHe(e){return jd(e)&&(uu(e.parent)||Dp(e.parent))}function SHe(e,t){var n;if(!THe(e.parameters,t))return!1;switch(e.kind){case 263:return _Ce(e)&&$5(e,t);case 175:if(Sa(e.parent)){let i=Cue(e.name,t);return((n=i?.declarations)==null?void 0:n.length)===1&&$5(e,t)}return $5(e,t);case 177:return hl(e.parent)?_Ce(e.parent)&&$5(e,t):dCe(e.parent.parent)&&$5(e,t);case 219:case 220:return dCe(e.parent)}return!1}function $5(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function _Ce(e){return e.name?!0:!!QI(e,90)}function THe(e,t){return xHe(e)>=fHe&&Fi(e,n=>kHe(n,t))}function kHe(e,t){if(kg(e)){let n=t.getTypeAtLocation(e);if(!t.isArrayType(n)&&!t.isTupleType(n))return!1}return!e.modifiers&&Be(e.name)}function dCe(e){return li(e)&&Bw(e)&&Be(e.name)&&!e.type}function Iue(e){return e.length>0&&VI(e[0].name)}function xHe(e){return Iue(e)?e.length-1:e.length}function mCe(e){return Iue(e)&&(e=A.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function CHe(e,t){return Be(t)&&R_(t)===e?A.createShorthandPropertyAssignment(e):A.createPropertyAssignment(e,t)}function wHe(e,t){let n=mCe(e.parameters),i=kg(ka(n)),s=i?t.slice(0,n.length-1):t,o=kr(s,(p,u)=>{let g=$$(n[u]),d=CHe(g,p);return Df(d.name),yl(d)&&Df(d.initializer),jk(p,d),d});if(i&&t.length>=n.length){let p=t.slice(n.length-1),u=A.createPropertyAssignment($$(ka(n)),A.createArrayLiteralExpression(p));o.push(u)}return A.createObjectLiteralExpression(o,!1)}function gCe(e,t,n){let i=t.getTypeChecker(),s=mCe(e.parameters),o=kr(s,d),c=A.createObjectBindingPattern(o),p=h(s),u;Fi(s,x)&&(u=A.createObjectLiteralExpression());let g=A.createParameterDeclaration(void 0,void 0,c,void 0,p,u);if(Iue(e.parameters)){let I=e.parameters[0],P=A.createParameterDeclaration(void 0,void 0,I.name,void 0,I.type);return Df(P.name),jk(I.name,P.name),I.type&&(Df(P.type),jk(I.type,P.type)),A.createNodeArray([P,g])}return A.createNodeArray([g]);function d(I){let P=A.createBindingElement(void 0,void 0,$$(I),kg(I)&&x(I)?A.createArrayLiteralExpression():I.initializer);return Df(P),I.initializer&&P.initializer&&jk(I.initializer,P.initializer),P}function h(I){let P=kr(I,S);return qm(A.createTypeLiteralNode(P),1)}function S(I){let P=I.type;!P&&(I.initializer||kg(I))&&(P=T(I));let E=A.createPropertySignature(void 0,$$(I),x(I)?A.createToken(58):I.questionToken,P);return Df(E),jk(I.name,E.name),I.type&&E.type&&jk(I.type,E.type),E}function T(I){let P=i.getTypeAtLocation(I);return FE(P,I,t,n)}function x(I){if(kg(I)){let P=i.getTypeAtLocation(I);return!i.isTupleType(P)}return i.isOptionalParameter(I)}}function $$(e){return R_(e.name)}function IHe(e){switch(e.parent.kind){case 264:let t=e.parent;return t.name?[t.name]:[w.checkDefined(QI(t,90),"Nameless class declaration should be a default export")];case 232:let i=e.parent,s=e.parent.parent,o=i.name;return o?[o,s.name]:[s.name]}}function DHe(e){switch(e.kind){case 263:return e.name?[e.name]:[w.checkDefined(QI(e,90),"Nameless function declaration should be a default export")];case 175:return[e.name];case 177:let n=w.checkDefined(lo(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===232?[e.parent.parent.name,n]:[n];case 220:return[e.parent.name];case 219:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return w.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var PHe={},Due="Convert to template string",Pue=Es(_.Convert_to_template_string),Aue={name:Due,description:Pue,kind:"refactor.rewrite.string"};kh(Due,{kinds:[Aue.kind],getEditsForAction:EHe,getAvailableActions:AHe});function AHe(e){let{file:t,startPosition:n}=e,i=hCe(t,n),s=Eue(i),o=ya(s),c={name:Due,description:Pue,actions:[]};return o&&e.triggerReason!=="invoked"?Ke:wg(s)&&(o||vn(s)&&Nue(s).isValidConcatenation)?(c.actions.push(Aue),[c]):e.preferences.provideRefactorNotApplicableReason?(c.actions.push({...Aue,notApplicableReason:Es(_.Can_only_convert_string_concatenations_and_string_literals)}),[c]):Ke}function hCe(e,t){let n=Ii(e,t),i=Eue(n);return!Nue(i).isValidConcatenation&&Pp(i.parent)&&vn(i.parent.parent)?i.parent.parent:n}function EHe(e,t){let{file:n,startPosition:i}=e,s=hCe(n,i);return t===Pue?{edits:NHe(e,s)}:w.fail("invalid action")}function NHe(e,t){let n=Eue(t),i=e.file,s=jHe(Nue(n),i),o=sb(i.text,n.end);if(o){let c=o[o.length-1],p={pos:o[0].pos,end:c.end};return gn.ChangeTracker.with(e,u=>{u.deleteRange(i,p),u.replaceNode(i,n,s)})}else return gn.ChangeTracker.with(e,c=>c.replaceNode(i,n,s))}function MHe(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function Eue(e){return vr(e.parent,n=>{switch(n.kind){case 212:case 213:return!1;case 229:case 227:return!(vn(n.parent)&&MHe(n.parent));default:return"quit"}})||e}function Nue(e){let t=c=>{if(!vn(c))return{nodes:[c],operators:[],validOperators:!0,hasString:ya(c)||mk(c)};let{nodes:p,operators:u,hasString:g,validOperators:d}=t(c.left);if(!(g||ya(c.right)||f7(c.right)))return{nodes:[c],operators:[],hasString:!1,validOperators:!0};let h=c.operatorToken.kind===40,S=d&&h;return p.push(c.right),u.push(c.operatorToken),{nodes:p,operators:u,hasString:!0,validOperators:S}},{nodes:n,operators:i,validOperators:s,hasString:o}=t(e);return{nodes:n,operators:i,isValidConcatenation:s&&o}}var RHe=(e,t)=>(n,i)=>{n<e.length&&RE(e[n],i,t,3,!1)},OHe=(e,t,n)=>(i,s)=>{for(;i.length>0;){let o=i.shift();RE(e[o],s,t,3,!1),n(o,s)}};function FHe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function yCe(e){let t=j2(e)||uJ(e)?-2:-1;return pc(e).slice(1,t)}function vCe(e,t){let n=[],i="",s="";for(;e<t.length;){let o=t[e];if(Ha(o))i+=o.text,s+=FHe(pc(o).slice(1,-1)),n.push(e),e++;else if(f7(o)){i+=o.head.text,s+=yCe(o.head);break}else break}return[e,i,s,n]}function jHe({nodes:e,operators:t},n){let i=RHe(t,n),s=OHe(e,n,i),[o,c,p,u]=vCe(0,e);if(o===e.length){let h=A.createNoSubstitutionTemplateLiteral(c,p);return s(u,h),h}let g=[],d=A.createTemplateHead(c,p);s(u,d);for(let h=o;h<e.length;h++){let S=LHe(e[h]);i(h,S);let[T,x,I,P]=vCe(h+1,e);h=T-1;let E=h===e.length-1;if(f7(S)){let F=kr(S.templateSpans,(O,W)=>{bCe(O);let z=W===S.templateSpans.length-1,$=O.literal.text+(z?x:""),X=yCe(O.literal)+(z?I:"");return A.createTemplateSpan(O.expression,E&&z?A.createTemplateTail($,X):A.createTemplateMiddle($,X))});g.push(...F)}else{let F=E?A.createTemplateTail(x,I):A.createTemplateMiddle(x,I);s(P,F),g.push(A.createTemplateSpan(S,F))}}return A.createTemplateExpression(d,g)}function bCe(e){let t=e.getSourceFile();RE(e,e.expression,t,3,!1),xR(e.expression,e.expression,t,3,!1)}function LHe(e){return Pp(e)&&(bCe(e),e=e.expression),e}var WHe={},H$="Convert to optional chain expression",Mue=Es(_.Convert_to_optional_chain_expression),Rue={name:H$,description:Mue,kind:"refactor.rewrite.expression.optionalChain"};kh(H$,{kinds:[Rue.kind],getEditsForAction:zHe,getAvailableActions:BHe});function BHe(e){let t=SCe(e,e.triggerReason==="invoked");return t?fy(t)?e.preferences.provideRefactorNotApplicableReason?[{name:H$,description:Mue,actions:[{...Rue,notApplicableReason:t.error}]}]:Ke:[{name:H$,description:Mue,actions:[Rue]}]:Ke}function zHe(e,t){let n=SCe(e);return w.assert(n&&!fy(n),"Expected applicable refactor info"),{edits:gn.ChangeTracker.with(e,s=>QHe(e.file,e.program.getTypeChecker(),s,n,t)),renameFilename:void 0,renameLocation:void 0}}function Q$(e){return vn(e)||vk(e)}function GHe(e){return Ql(e)||Qf(e)||Qc(e)}function K$(e){return Q$(e)||GHe(e)}function SCe(e,t=!0){let{file:n,program:i}=e,s=uC(e),o=s.length===0;if(o&&!t)return;let c=Ii(n,s.start),p=IE(n,s.start+s.length),u=$c(c.pos,p&&p.end>=c.pos?p.getEnd():c.getEnd()),g=o?$He(c):qHe(c,u),d=g&&K$(g)?HHe(g):void 0;if(!d)return{error:Es(_.Could_not_find_convertible_access_expression)};let h=i.getTypeChecker();return vk(d)?JHe(d,h):UHe(d)}function JHe(e,t){let n=e.condition,i=Fue(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:Es(_.Could_not_find_convertible_access_expression)};if((Ln(n)||Be(n))&&Oue(n,i.expression))return{finalExpression:i,occurrences:[n],expression:e};if(vn(n)){let s=TCe(i.expression,n);return s?{finalExpression:i,occurrences:s,expression:e}:{error:Es(_.Could_not_find_matching_access_expressions)}}}function UHe(e){if(e.operatorToken.kind!==56)return{error:Es(_.Can_only_convert_logical_AND_access_chains)};let t=Fue(e.right);if(!t)return{error:Es(_.Could_not_find_convertible_access_expression)};let n=TCe(t.expression,e.left);return n?{finalExpression:t,occurrences:n,expression:e}:{error:Es(_.Could_not_find_matching_access_expressions)}}function TCe(e,t){let n=[];for(;vn(t)&&t.operatorToken.kind===56;){let s=Oue(Qa(e),Qa(t.right));if(!s)break;n.push(s),e=s,t=t.left}let i=Oue(e,t);return i&&n.push(i),n.length>0?n:void 0}function Oue(e,t){if(!(!Be(t)&&!Ln(t)&&!xo(t)))return VHe(e,t)?t:void 0}function VHe(e,t){for(;(Ws(e)||Ln(e)||xo(e))&&OR(e)!==OR(t);)e=e.expression;for(;Ln(e)&&Ln(t)||xo(e)&&xo(t);){if(OR(e)!==OR(t))return!1;e=e.expression,t=t.expression}return Be(e)&&Be(t)&&e.getText()===t.getText()}function OR(e){if(Be(e)||s_(e))return e.getText();if(Ln(e))return OR(e.name);if(xo(e))return OR(e.argumentExpression)}function qHe(e,t){for(;e.parent;){if(K$(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function $He(e){for(;e.parent;){if(K$(e)&&!K$(e.parent))return e;e=e.parent}}function HHe(e){if(Q$(e))return e;if(Qc(e)){let t=h2(e),n=t?.initializer;return n&&Q$(n)?n:void 0}return e.expression&&Q$(e.expression)?e.expression:void 0}function Fue(e){if(e=Qa(e),vn(e))return Fue(e.left);if((Ln(e)||xo(e)||Ws(e))&&!$u(e))return e}function kCe(e,t,n){if(Ln(t)||xo(t)||Ws(t)){let i=kCe(e,t.expression,n),s=n.length>0?n[n.length-1]:void 0,o=s?.getText()===t.expression.getText();if(o&&n.pop(),Ws(t))return o?A.createCallChain(i,A.createToken(29),t.typeArguments,t.arguments):A.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(Ln(t))return o?A.createPropertyAccessChain(i,A.createToken(29),t.name):A.createPropertyAccessChain(i,t.questionDotToken,t.name);if(xo(t))return o?A.createElementAccessChain(i,A.createToken(29),t.argumentExpression):A.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function QHe(e,t,n,i,s){let{finalExpression:o,occurrences:c,expression:p}=i,u=c[c.length-1],g=kCe(t,o,c);g&&(Ln(g)||xo(g)||Ws(g))&&(vn(p)?n.replaceNodeRange(e,u,o,g):vk(p)&&n.replaceNode(e,p,A.createBinaryExpression(g,A.createToken(61),p.whenFalse)))}var xCe={};it(xCe,{Messages:()=>xu,RangeFacts:()=>ICe,getRangeToExtract:()=>jue,getRefactorActionsToExtractSymbol:()=>CCe,getRefactorEditsToExtractSymbol:()=>wCe});var BE="Extract Symbol",zE={name:"Extract Constant",description:Es(_.Extract_constant),kind:"refactor.extract.constant"},GE={name:"Extract Function",description:Es(_.Extract_function),kind:"refactor.extract.function"};kh(BE,{kinds:[zE.kind,GE.kind],getEditsForAction:wCe,getAvailableActions:CCe});function CCe(e){let t=e.kind,n=jue(e.file,uC(e),e.triggerReason==="invoked"),i=n.targetRange;if(i===void 0){if(!n.errors||n.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return Ke;let I=[];return u1(GE.kind,t)&&I.push({name:BE,description:GE.description,actions:[{...GE,notApplicableReason:x(n.errors)}]}),u1(zE.kind,t)&&I.push({name:BE,description:zE.description,actions:[{...zE,notApplicableReason:x(n.errors)}]}),I}let{affectedTextRange:s,extractions:o}=tQe(i,e);if(o===void 0)return Ke;let c=[],p=new Map,u,g=[],d=new Map,h,S=0;for(let{functionExtraction:I,constantExtraction:P}of o){if(u1(GE.kind,t)){let E=I.description;I.errors.length===0?p.has(E)||(p.set(E,!0),c.push({description:E,name:`function_scope_${S}`,kind:GE.kind,range:{start:{line:Hs(e.file,s.pos).line,offset:Hs(e.file,s.pos).character},end:{line:Hs(e.file,s.end).line,offset:Hs(e.file,s.end).character}}})):u||(u={description:E,name:`function_scope_${S}`,notApplicableReason:x(I.errors),kind:GE.kind})}if(u1(zE.kind,t)){let E=P.description;P.errors.length===0?d.has(E)||(d.set(E,!0),g.push({description:E,name:`constant_scope_${S}`,kind:zE.kind,range:{start:{line:Hs(e.file,s.pos).line,offset:Hs(e.file,s.pos).character},end:{line:Hs(e.file,s.end).line,offset:Hs(e.file,s.end).character}}})):h||(h={description:E,name:`constant_scope_${S}`,notApplicableReason:x(P.errors),kind:zE.kind})}S++}let T=[];return c.length?T.push({name:BE,description:Es(_.Extract_function),actions:c}):e.preferences.provideRefactorNotApplicableReason&&u&&T.push({name:BE,description:Es(_.Extract_function),actions:[u]}),g.length?T.push({name:BE,description:Es(_.Extract_constant),actions:g}):e.preferences.provideRefactorNotApplicableReason&&h&&T.push({name:BE,description:Es(_.Extract_constant),actions:[h]}),T.length?T:Ke;function x(I){let P=I[0].messageText;return typeof P!="string"&&(P=P.messageText),P}}function wCe(e,t){let i=jue(e.file,uC(e)).targetRange,s=/^function_scope_(\d+)$/.exec(t);if(s){let c=+s[1];return w.assert(isFinite(c),"Expected to parse a finite number from the function scope index"),ZHe(i,e,c)}let o=/^constant_scope_(\d+)$/.exec(t);if(o){let c=+o[1];return w.assert(isFinite(c),"Expected to parse a finite number from the constant scope index"),eQe(i,e,c)}w.fail("Unrecognized action name")}var xu;(e=>{function t(n){return{message:n,code:0,category:3,key:n}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(xu||(xu={}));var ICe=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(ICe||{});function jue(e,t,n=!0){let{length:i}=t;if(i===0&&!n)return{errors:[wl(e,t.start,i,xu.cannotExtractEmpty)]};let s=i===0&&n,o=Rce(e,t.start),c=IE(e,mc(t)),p=o&&c&&n?KHe(o,c,e):t,u=s?SQe(o):SR(o,e,p),g=s?u:SR(c,e,p),d=0,h;if(!u||!g)return{errors:[wl(e,t.start,i,xu.cannotExtractRange)]};if(u.flags&16777216)return{errors:[wl(e,t.start,i,xu.cannotExtractJSDoc)]};if(u.parent!==g.parent)return{errors:[wl(e,t.start,i,xu.cannotExtractRange)]};if(u!==g){if(!pC(u.parent))return{errors:[wl(e,t.start,i,xu.cannotExtractRange)]};let F=[];for(let O of u.parent.statements){if(O===u||F.length){let W=E(O);if(W)return{errors:W};F.push(O)}if(O===g)break}return F.length?{targetRange:{range:F,facts:d,thisNode:h}}:{errors:[wl(e,t.start,i,xu.cannotExtractRange)]}}if(Qf(u)&&!u.expression)return{errors:[wl(e,t.start,i,xu.cannotExtractRange)]};let S=x(u),T=I(S)||E(S);if(T)return{errors:T};return{targetRange:{range:XHe(S),facts:d,thisNode:h}};function x(F){if(Qf(F)){if(F.expression)return F.expression}else if(Qc(F)||lu(F)){let O=Qc(F)?F.declarationList.declarations:F.declarations,W=0,z;for(let $ of O)$.initializer&&(W++,z=$.initializer);if(W===1)return z}else if(li(F)&&F.initializer)return F.initializer;return F}function I(F){if(Be(Ql(F)?F.expression:F))return[_n(F,xu.cannotExtractIdentifier)]}function P(F,O){let W=F;for(;W!==O;){if(W.kind===173){Ks(W)&&(d|=32);break}else if(W.kind===170){i_(W).kind===177&&(d|=32);break}else W.kind===175&&Ks(W)&&(d|=32);W=W.parent}}function E(F){let O;if((_e=>{_e[_e.None=0]="None",_e[_e.Break=1]="Break",_e[_e.Continue=2]="Continue",_e[_e.Return=4]="Return"})(O||(O={})),w.assert(F.pos<=F.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),w.assert(!am(F.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Ei(F)&&!(wg(F)&&DCe(F))&&!Gue(F))return[_n(F,xu.statementOrExpressionExpected)];if(F.flags&33554432)return[_n(F,xu.cannotExtractAmbientBlock)];let W=cu(F);W&&P(F,W);let z,$=4,X;if(U(F),d&8){let _e=fp(F,!1,!1);(_e.kind===263||_e.kind===175&&_e.parent.kind===211||_e.kind===219)&&(d|=16)}return z;function U(_e){if(z)return!0;if(ql(_e)){let V=_e.kind===261?_e.parent.parent:_e;if(ri(V,32))return(z||(z=[])).push(_n(_e,xu.cannotExtractExportedEntity)),!0}switch(_e.kind){case 273:return(z||(z=[])).push(_n(_e,xu.cannotExtractImport)),!0;case 278:return(z||(z=[])).push(_n(_e,xu.cannotExtractExportedEntity)),!0;case 108:if(_e.parent.kind===214){let V=cu(_e);if(V===void 0||V.pos<t.start||V.end>=t.start+t.length)return(z||(z=[])).push(_n(_e,xu.cannotExtractSuper)),!0}else d|=8,h=_e;break;case 220:Ms(_e,function V(ce){if(VI(ce))d|=8,h=_e;else{if(ni(ce)||Fs(ce)&&!Fo(ce))return!1;Ms(ce,V)}});case 264:case 263:Li(_e.parent)&&_e.parent.externalModuleIndicator===void 0&&(z||(z=[])).push(_n(_e,xu.functionWillNotBeVisibleInTheNewScope));case 232:case 219:case 175:case 177:case 178:case 179:return!1}let re=$;switch(_e.kind){case 246:$&=-5;break;case 259:$=0;break;case 242:_e.parent&&_e.parent.kind===259&&_e.parent.finallyBlock===_e&&($=4);break;case 298:case 297:$|=1;break;default:fb(_e,!1)&&($|=3);break}switch(_e.kind){case 198:case 110:d|=8,h=_e;break;case 257:{let V=_e.label;(X||(X=[])).push(V.escapedText),Ms(_e,U),X.pop();break}case 253:case 252:{let V=_e.label;V?ws(X,V.escapedText)||(z||(z=[])).push(_n(_e,xu.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):$&(_e.kind===253?1:2)||(z||(z=[])).push(_n(_e,xu.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 224:d|=4;break;case 230:d|=2;break;case 254:$&4?d|=1:(z||(z=[])).push(_n(_e,xu.cannotExtractRangeContainingConditionalReturnStatement));break;default:Ms(_e,U);break}$=re}}}function KHe(e,t,n){let i=e.getStart(n),s=t.getEnd();return n.text.charCodeAt(s)===59&&s++,{start:i,length:s-i}}function XHe(e){if(Ei(e))return[e];if(wg(e))return Ql(e.parent)?[e.parent]:e;if(Gue(e))return e}function Lue(e){return Fo(e)?QB(e.body):yo(e)||Li(e)||Qm(e)||ni(e)}function YHe(e){let t=_v(e.range)?Ra(e.range):e.range;if(e.facts&8&&!(e.facts&16)){let i=cu(t);if(i){let s=vr(t,yo);return s?[s,i]:[i]}}let n=[];for(;;)if(t=t.parent,t.kind===170&&(t=vr(t,i=>yo(i)).parent),Lue(t)&&(n.push(t),t.kind===308))return n}function ZHe(e,t,n){let{scopes:i,readsAndWrites:{target:s,usagesPerScope:o,functionErrorsPerScope:c,exposedVariableDeclarations:p}}=Wue(e,t);return w.assert(!c[n].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),oQe(s,i[n],o[n],p,e,t)}function eQe(e,t,n){let{scopes:i,readsAndWrites:{target:s,usagesPerScope:o,constantErrorsPerScope:c,exposedVariableDeclarations:p}}=Wue(e,t);w.assert(!c[n].length,"The extraction went missing? How?"),w.assert(p.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();let u=ht(s)?s:s.statements[0].expression;return cQe(u,i[n],o[n],e.facts,t)}function tQe(e,t){let{scopes:n,affectedTextRange:i,readsAndWrites:{functionErrorsPerScope:s,constantErrorsPerScope:o}}=Wue(e,t),c=n.map((p,u)=>{let g=rQe(p),d=nQe(p),h=yo(p)?iQe(p):ni(p)?sQe(p):aQe(p),S,T;return h===1?(S=mh(Es(_.Extract_to_0_in_1_scope),[g,"global"]),T=mh(Es(_.Extract_to_0_in_1_scope),[d,"global"])):h===0?(S=mh(Es(_.Extract_to_0_in_1_scope),[g,"module"]),T=mh(Es(_.Extract_to_0_in_1_scope),[d,"module"])):(S=mh(Es(_.Extract_to_0_in_1),[g,h]),T=mh(Es(_.Extract_to_0_in_1),[d,h])),u===0&&!ni(p)&&(T=mh(Es(_.Extract_to_0_in_enclosing_scope),[d])),{functionExtraction:{description:S,errors:s[u]},constantExtraction:{description:T,errors:o[u]}}});return{affectedTextRange:i,extractions:c}}function Wue(e,t){let{file:n}=t,i=YHe(e),s=vQe(e,n),o=bQe(e,i,s,n,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,affectedTextRange:s,readsAndWrites:o}}function rQe(e){return yo(e)?"inner function":ni(e)?"method":"function"}function nQe(e){return ni(e)?"readonly field":"constant"}function iQe(e){switch(e.kind){case 177:return"constructor";case 219:case 263:return e.name?`function '${e.name.text}'`:a$;case 220:return"arrow function";case 175:return`method '${e.name.getText()}'`;case 178:return`'get ${e.name.getText()}'`;case 179:return`'set ${e.name.getText()}'`;default:w.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function sQe(e){return e.kind===264?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function aQe(e){return e.kind===269?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function oQe(e,t,{usages:n,typeParameterUsages:i,substitutions:s},o,c,p){let u=p.program.getTypeChecker(),g=xa(p.program.getCompilerOptions()),d=tp.createImportAdder(p.file,p.program,p.preferences,p.host),h=t.getSourceFile(),S=Lk(ni(t)?"newMethod":"newFunction",h),T=dn(t),x=A.createIdentifier(S),I,P=[],E=[],F;n.forEach((ee,ge)=>{let ke;if(!T){let nt=u.getTypeOfSymbolAtLocation(ee.symbol,ee.node);nt=u.getBaseTypeOfLiteralType(nt),ke=tp.typeToAutoImportableTypeNode(u,d,nt,t,g,1,8)}let Oe=A.createParameterDeclaration(void 0,void 0,ge,void 0,ke);P.push(Oe),ee.usage===2&&(F||(F=[])).push(ee),E.push(A.createIdentifier(ge))});let O=ds(i.values(),ee=>({type:ee,declaration:uQe(ee,p.startPosition)}));O.sort(pQe);let W=O.length===0?void 0:Ji(O,({declaration:ee})=>ee),z=W!==void 0?W.map(ee=>A.createTypeReferenceNode(ee.name,void 0)):void 0;if(ht(e)&&!T){let ee=u.getContextualType(e);I=u.typeToTypeNode(ee,t,1,8)}let{body:$,returnValueProperty:X}=_Qe(e,o,F,s,!!(c.facts&1));Df($);let U,_e=!!(c.facts&16);if(ni(t)){let ee=T?[]:[A.createModifier(123)];c.facts&32&&ee.push(A.createModifier(126)),c.facts&4&&ee.push(A.createModifier(134)),U=A.createMethodDeclaration(ee.length?ee:void 0,c.facts&2?A.createToken(42):void 0,x,void 0,W,P,I,$)}else _e&&P.unshift(A.createParameterDeclaration(void 0,void 0,"this",void 0,u.typeToTypeNode(u.getTypeAtLocation(c.thisNode),t,1,8),void 0)),U=A.createFunctionDeclaration(c.facts&4?[A.createToken(134)]:void 0,c.facts&2?A.createToken(42):void 0,x,W,P,I,$);let re=gn.ChangeTracker.fromContext(p),V=(_v(c.range)?ka(c.range):c.range).end,ce=gQe(V,t);ce?re.insertNodeBefore(p.file,ce,U,!0):re.insertNodeAtEndOfScope(p.file,t,U),d.writeFixes(re);let oe=[],le=fQe(t,c,S);_e&&E.unshift(A.createIdentifier("this"));let de=A.createCallExpression(_e?A.createPropertyAccessExpression(le,"call"):le,z,E);if(c.facts&2&&(de=A.createYieldExpression(A.createToken(42),de)),c.facts&4&&(de=A.createAwaitExpression(de)),zue(e)&&(de=A.createJsxExpression(void 0,de)),o.length&&!F)if(w.assert(!X,"Expected no returnValueProperty"),w.assert(!(c.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),o.length===1){let ee=o[0];oe.push(A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(to(ee.name),void 0,to(ee.type),de)],ee.parent.flags)))}else{let ee=[],ge=[],ke=o[0].parent.flags,Oe=!1;for(let ae of o){ee.push(A.createBindingElement(void 0,void 0,to(ae.name)));let Ue=u.typeToTypeNode(u.getBaseTypeOfLiteralType(u.getTypeAtLocation(ae)),t,1,8);ge.push(A.createPropertySignature(void 0,ae.symbol.name,void 0,Ue)),Oe=Oe||ae.type!==void 0,ke=ke&ae.parent.flags}let nt=Oe?A.createTypeLiteralNode(ge):void 0;nt&&yn(nt,1),oe.push(A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(A.createObjectBindingPattern(ee),void 0,nt,de)],ke)))}else if(o.length||F){if(o.length)for(let ge of o){let ke=ge.parent.flags;ke&2&&(ke=ke&-3|1),oe.push(A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(ge.symbol.name,void 0,ye(ge.type))],ke)))}X&&oe.push(A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(X,void 0,ye(I))],1)));let ee=Bue(o,F);X&&ee.unshift(A.createShorthandPropertyAssignment(X)),ee.length===1?(w.assert(!X,"Shouldn't have returnValueProperty here"),oe.push(A.createExpressionStatement(A.createAssignment(ee[0].name,de))),c.facts&1&&oe.push(A.createReturnStatement())):(oe.push(A.createExpressionStatement(A.createAssignment(A.createObjectLiteralExpression(ee),de))),X&&oe.push(A.createReturnStatement(A.createIdentifier(X))))}else c.facts&1?oe.push(A.createReturnStatement(de)):_v(c.range)?oe.push(A.createExpressionStatement(de)):oe.push(de);_v(c.range)?re.replaceNodeRangeWithNodes(p.file,Ra(c.range),ka(c.range),oe):re.replaceNodeWithNodes(p.file,c.range,oe);let ve=re.getChanges(),Se=(_v(c.range)?Ra(c.range):c.range).getSourceFile().fileName,Je=kR(ve,Se,S,!1);return{renameFilename:Se,renameLocation:Je,edits:ve};function ye(ee){if(ee===void 0)return;let ge=to(ee),ke=ge;for(;hk(ke);)ke=ke.type;return sv(ke)&&Bn(ke.types,Oe=>Oe.kind===157)?ge:A.createUnionTypeNode([ge,A.createKeywordTypeNode(157)])}}function cQe(e,t,{substitutions:n},i,s){let o=s.program.getTypeChecker(),c=t.getSourceFile(),p=hue(e,t,o,c),u=dn(t),g=u||!o.isContextSensitive(e)?void 0:o.typeToTypeNode(o.getContextualType(e),t,1,8),d=dQe(Qa(e),n);({variableType:g,initializer:d}=I(g,d)),Df(d);let h=gn.ChangeTracker.fromContext(s);if(ni(t)){w.assert(!u,"Cannot extract to a JS class");let P=[];P.push(A.createModifier(123)),i&32&&P.push(A.createModifier(126)),P.push(A.createModifier(148));let E=A.createPropertyDeclaration(P,p,void 0,g,d),F=A.createPropertyAccessExpression(i&32?A.createIdentifier(t.name.getText()):A.createThis(),A.createIdentifier(p));zue(e)&&(F=A.createJsxExpression(void 0,F));let O=e.pos,W=hQe(O,t);h.insertNodeBefore(s.file,W,E,!0),h.replaceNode(s.file,e,F)}else{let P=A.createVariableDeclaration(p,void 0,g,d),E=lQe(e,t);if(E){h.insertNodeBefore(s.file,E,P);let F=A.createIdentifier(p);h.replaceNode(s.file,e,F)}else if(e.parent.kind===245&&t===vr(e,Lue)){let F=A.createVariableStatement(void 0,A.createVariableDeclarationList([P],2));h.replaceNode(s.file,e.parent,F)}else{let F=A.createVariableStatement(void 0,A.createVariableDeclarationList([P],2)),O=yQe(e,t);if(O.pos===0?h.insertNodeAtTopOfFile(s.file,F,!1):h.insertNodeBefore(s.file,O,F,!1),e.parent.kind===245)h.delete(s.file,e.parent);else{let W=A.createIdentifier(p);zue(e)&&(W=A.createJsxExpression(void 0,W)),h.replaceNode(s.file,e,W)}}}let S=h.getChanges(),T=e.getSourceFile().fileName,x=kR(S,T,p,!0);return{renameFilename:T,renameLocation:x,edits:S};function I(P,E){if(P===void 0)return{variableType:P,initializer:E};if(!Ao(E)&&!Fo(E)||E.typeParameters)return{variableType:P,initializer:E};let F=o.getTypeAtLocation(e),O=eh(o.getSignaturesOfType(F,0));if(!O)return{variableType:P,initializer:E};if(O.getTypeParameters())return{variableType:P,initializer:E};let W=[],z=!1;for(let $ of E.parameters)if($.type)W.push($);else{let X=o.getTypeAtLocation($);X===o.getAnyType()&&(z=!0),W.push(A.updateParameterDeclaration($,$.modifiers,$.dotDotDotToken,$.name,$.questionToken,$.type||o.typeToTypeNode(X,t,1,8),$.initializer))}if(z)return{variableType:P,initializer:E};if(P=void 0,Fo(E))E=A.updateArrowFunction(E,yd(e)?fS(e):void 0,E.typeParameters,W,E.type||o.typeToTypeNode(O.getReturnType(),t,1,8),E.equalsGreaterThanToken,E.body);else{if(O&&O.thisParameter){let $=_l(W);if(!$||Be($.name)&&$.name.escapedText!=="this"){let X=o.getTypeOfSymbolAtLocation(O.thisParameter,e);W.splice(0,0,A.createParameterDeclaration(void 0,void 0,"this",void 0,o.typeToTypeNode(X,t,1,8)))}}E=A.updateFunctionExpression(E,yd(e)?fS(e):void 0,E.asteriskToken,E.name,E.typeParameters,W,E.type||o.typeToTypeNode(O.getReturnType(),t,1),E.body)}return{variableType:P,initializer:E}}}function lQe(e,t){let n;for(;e!==void 0&&e!==t;){if(li(e)&&e.initializer===n&&lu(e.parent)&&e.parent.declarations.length>1)return e;n=e,e=e.parent}}function uQe(e,t){let n,i=e.symbol;if(i&&i.declarations)for(let s of i.declarations)(n===void 0||s.pos<n.pos)&&s.pos<t&&(n=s);return n}function pQe({type:e,declaration:t},{type:n,declaration:i}){return VY(t,i,"pos",Po)||Eu(e.symbol?e.symbol.getName():"",n.symbol?n.symbol.getName():"")||Po(e.id,n.id)}function fQe(e,t,n){let i=A.createIdentifier(n);if(ni(e)){let s=t.facts&32?A.createIdentifier(e.name.text):A.createThis();return A.createPropertyAccessExpression(s,i)}else return i}function _Qe(e,t,n,i,s){let o=n!==void 0||t.length>0;if(Bs(e)&&!o&&i.size===0)return{body:A.createBlock(e.statements,!0),returnValueProperty:void 0};let c,p=!1,u=A.createNodeArray(Bs(e)?e.statements.slice(0):[Ei(e)?e:A.createReturnStatement(Qa(e))]);if(o||i.size){let d=Br(u,g,Ei).slice();if(o&&!s&&Ei(e)){let h=Bue(t,n);h.length===1?d.push(A.createReturnStatement(h[0].name)):d.push(A.createReturnStatement(A.createObjectLiteralExpression(h)))}return{body:A.createBlock(d,!0),returnValueProperty:c}}else return{body:A.createBlock(u,!0),returnValueProperty:void 0};function g(d){if(!p&&Qf(d)&&o){let h=Bue(t,n);return d.expression&&(c||(c="__return"),h.unshift(A.createPropertyAssignment(c,rt(d.expression,g,ht)))),h.length===1?A.createReturnStatement(h[0].name):A.createReturnStatement(A.createObjectLiteralExpression(h))}else{let h=p;p=p||yo(d)||ni(d);let S=i.get(qa(d).toString()),T=S?to(S):Pr(d,g,void 0);return p=h,T}}}function dQe(e,t){return t.size?n(e):e;function n(i){let s=t.get(qa(i).toString());return s?to(s):Pr(i,n,void 0)}}function mQe(e){if(yo(e)){let t=e.body;if(Bs(t))return t.statements}else{if(Qm(e)||Li(e))return e.statements;if(ni(e))return e.members;}return Ke}function gQe(e,t){return Bn(mQe(t),n=>n.pos>=e&&yo(n)&&!yc(n))}function hQe(e,t){let n=t.members;w.assert(n.length>0,"Found no members");let i,s=!0;for(let o of n){if(o.pos>e)return i||n[0];if(s&&!hs(o)){if(i!==void 0)return o;s=!1}i=o}return i===void 0?w.fail():i}function yQe(e,t){w.assert(!ni(t));let n;for(let i=e;i!==t;i=i.parent)Lue(i)&&(n=i);for(let i=(n||e).parent;;i=i.parent){if(pC(i)){let s;for(let o of i.statements){if(o.pos>e.pos)break;s=o}return!s&&vI(i)?(w.assert(UA(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):w.checkDefined(s,"prevStatement failed to get set")}w.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function Bue(e,t){let n=kr(e,s=>A.createShorthandPropertyAssignment(s.symbol.name)),i=kr(t,s=>A.createShorthandPropertyAssignment(s.symbol.name));return n===void 0?i:i===void 0?n:n.concat(i)}function _v(e){return gs(e)}function vQe(e,t){return _v(e.range)?{pos:Ra(e.range).getStart(t),end:ka(e.range).getEnd()}:e.range}function bQe(e,t,n,i,s,o){let c=new Map,p=[],u=[],g=[],d=[],h=[],S=new Map,T=[],x,I=_v(e.range)?e.range.length===1&&Ql(e.range[0])?e.range[0].expression:void 0:e.range,P;if(I===void 0){let oe=e.range,le=Ra(oe).getStart(),de=ka(oe).end;P=wl(i,le,de-le,xu.expressionExpected)}else s.getTypeAtLocation(I).flags&147456&&(P=_n(I,xu.uselessConstantType));for(let oe of t){p.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),u.push(new Map),g.push([]);let le=[];P&&le.push(P),ni(oe)&&dn(oe)&&le.push(_n(oe,xu.cannotExtractToJSClass)),Fo(oe)&&!Bs(oe.body)&&le.push(_n(oe,xu.cannotExtractToExpressionArrowFunction)),d.push(le)}let E=new Map,F=_v(e.range)?A.createBlock(e.range):e.range,O=_v(e.range)?Ra(e.range):e.range,W=z(O);if(X(F),W&&!_v(e.range)&&!Ym(e.range)){let oe=s.getContextualType(e.range);$(oe)}if(c.size>0){let oe=new Map,le=0;for(let de=O;de!==void 0&&le<t.length;de=de.parent)if(de===t[le]&&(oe.forEach((ve,H)=>{p[le].typeParameterUsages.set(H,ve)}),le++),gz(de))for(let ve of ob(de)){let H=s.getTypeAtLocation(ve);c.has(H.id.toString())&&oe.set(H.id.toString(),H)}w.assert(le===t.length,"Should have iterated all scopes")}if(h.length){let oe=mz(t[0],t[0].parent)?t[0]:nm(t[0]);Ms(oe,re)}for(let oe=0;oe<t.length;oe++){let le=p[oe];if(oe>0&&(le.usages.size>0||le.typeParameterUsages.size>0)){let H=_v(e.range)?e.range[0]:e.range;d[oe].push(_n(H,xu.cannotAccessVariablesFromNestedScopes))}e.facts&16&&ni(t[oe])&&g[oe].push(_n(e.thisNode,xu.cannotExtractFunctionsContainingThisToMethod));let de=!1,ve;if(p[oe].usages.forEach(H=>{H.usage===2&&(de=!0,H.symbol.flags&106500&&H.symbol.valueDeclaration&&If(H.symbol.valueDeclaration,8)&&(ve=H.symbol.valueDeclaration))}),w.assert(_v(e.range)||T.length===0,"No variable declarations expected if something was extracted"),de&&!_v(e.range)){let H=_n(e.range,xu.cannotWriteInExpression);g[oe].push(H),d[oe].push(H)}else if(ve&&oe>0){let H=_n(ve,xu.cannotExtractReadonlyPropertyInitializerOutsideConstructor);g[oe].push(H),d[oe].push(H)}else if(x){let H=_n(x,xu.cannotExtractExportedEntity);g[oe].push(H),d[oe].push(H)}}return{target:F,usagesPerScope:p,functionErrorsPerScope:g,constantErrorsPerScope:d,exposedVariableDeclarations:T};function z(oe){return!!vr(oe,le=>gz(le)&&ob(le).length!==0)}function $(oe){let le=s.getSymbolWalker(()=>(o.throwIfCancellationRequested(),!0)),{visitedTypes:de}=le.walkType(oe);for(let ve of de)ve.isTypeParameter()&&c.set(ve.id.toString(),ve)}function X(oe,le=1){if(W){let de=s.getTypeAtLocation(oe);$(de)}if(ql(oe)&&oe.symbol&&h.push(oe),Hl(oe))X(oe.left,2),X(oe.right);else if(ate(oe))X(oe.operand,2);else if(Ln(oe)||xo(oe))Ms(oe,X);else if(Be(oe)){if(!oe.parent||Ip(oe.parent)&&oe!==oe.parent.left||Ln(oe.parent)&&oe!==oe.parent.expression)return;U(oe,le,Wm(oe))}else Ms(oe,X)}function U(oe,le,de){let ve=_e(oe,le,de);if(ve)for(let H=0;H<t.length;H++){let Se=u[H].get(ve);Se&&p[H].substitutions.set(qa(oe).toString(),Se)}}function _e(oe,le,de){let ve=V(oe);if(!ve)return;let H=sa(ve).toString(),Se=E.get(H);if(Se&&Se>=le)return H;if(E.set(H,le),Se){for(let ee of p)ee.usages.get(oe.text)&&ee.usages.set(oe.text,{usage:le,symbol:ve,node:oe});return H}let Je=ve.getDeclarations(),ye=Je&&Bn(Je,ee=>ee.getSourceFile()===i);if(ye&&!dR(n,ye.getStart(),ye.end)){if(e.facts&2&&le===2){let ee=_n(oe,xu.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(let ge of g)ge.push(ee);for(let ge of d)ge.push(ee)}for(let ee=0;ee<t.length;ee++){let ge=t[ee];if(s.resolveName(ve.name,ge,ve.flags,!1)!==ve&&!u[ee].has(H)){let Oe=ce(ve.exportSymbol||ve,ge,de);if(Oe)u[ee].set(H,Oe);else if(de){if(!(ve.flags&262144)){let nt=_n(oe,xu.typeWillNotBeVisibleInTheNewScope);g[ee].push(nt),d[ee].push(nt)}}else p[ee].usages.set(oe.text,{usage:le,symbol:ve,node:oe})}}return H}}function re(oe){if(oe===e.range||_v(e.range)&&e.range.includes(oe))return;let le=Be(oe)?V(oe):s.getSymbolAtLocation(oe);if(le){let de=Bn(h,ve=>ve.symbol===le);if(de)if(li(de)){let ve=de.symbol.id.toString();S.has(ve)||(T.push(de),S.set(ve,!0))}else x=x||de}Ms(oe,re)}function V(oe){return oe.parent&&Fu(oe.parent)&&oe.parent.name===oe?s.getShorthandAssignmentValueSymbol(oe.parent):s.getSymbolAtLocation(oe)}function ce(oe,le,de){if(!oe)return;let ve=oe.getDeclarations();if(ve&&ve.some(Se=>Se.parent===le))return A.createIdentifier(oe.name);let H=ce(oe.parent,le,de);if(H!==void 0)return de?A.createQualifiedName(H,A.createIdentifier(oe.name)):A.createPropertyAccessExpression(H,oe.name)}}function SQe(e){return vr(e,t=>t.parent&&DCe(t)&&!vn(t.parent))}function DCe(e){let{parent:t}=e;if(t.kind===307)return!1;switch(e.kind){case 11:return t.kind!==273&&t.kind!==277;case 231:case 207:case 209:return!1;case 80:return t.kind!==209&&t.kind!==277&&t.kind!==282}return!0}function zue(e){return Gue(e)||(Xm(e)||kk(e)||Q0(e))&&(Xm(e.parent)||Q0(e.parent))}function Gue(e){return ya(e)&&e.parent&&Ym(e.parent)}var TQe={},X$="Generate 'get' and 'set' accessors",Jue=Es(_.Generate_get_and_set_accessors),Uue={name:X$,description:Jue,kind:"refactor.rewrite.property.generateAccessors"};kh(X$,{kinds:[Uue.kind],getEditsForAction:function(t,n){if(!t.endPosition)return;let i=tp.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);w.assert(i&&!fy(i),"Expected applicable refactor info");let s=tp.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,n);if(!s)return;let o=t.file.fileName,c=i.renameAccessor?i.accessorName:i.fieldName,u=(Be(c)?0:-1)+kR(s,o,c.text,Gi(i.declaration));return{renameFilename:o,renameLocation:u,edits:s}},getAvailableActions(e){if(!e.endPosition)return Ke;let t=tp.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?fy(t)?e.preferences.provideRefactorNotApplicableReason?[{name:X$,description:Jue,actions:[{...Uue,notApplicableReason:t.error}]}]:Ke:[{name:X$,description:Jue,actions:[Uue]}]:Ke}});var kQe={},Y$="Infer function return type",Vue=Es(_.Infer_function_return_type),Z$={name:Y$,description:Vue,kind:"refactor.rewrite.function.returnType"};kh(Y$,{kinds:[Z$.kind],getEditsForAction:xQe,getAvailableActions:CQe});function xQe(e){let t=PCe(e);if(t&&!fy(t))return{renameFilename:void 0,renameLocation:void 0,edits:gn.ChangeTracker.with(e,i=>wQe(e.file,i,t.declaration,t.returnTypeNode))}}function CQe(e){let t=PCe(e);return t?fy(t)?e.preferences.provideRefactorNotApplicableReason?[{name:Y$,description:Vue,actions:[{...Z$,notApplicableReason:t.error}]}]:Ke:[{name:Y$,description:Vue,actions:[Z$]}]:Ke}function wQe(e,t,n,i){let s=lo(n,22,e),o=Fo(n)&&s===void 0,c=o?Ra(n.parameters):s;c&&(o&&(t.insertNodeBefore(e,c,A.createToken(21)),t.insertNodeAfter(e,c,A.createToken(22))),t.insertNodeAt(e,c.end,i,{prefix:": "}))}function PCe(e){if(dn(e.file)||!u1(Z$.kind,e.kind))return;let t=Kp(e.file,e.startPosition),n=vr(t,c=>Bs(c)||c.parent&&Fo(c.parent)&&(c.kind===39||c.parent.body===c)?"quit":IQe(c));if(!n||!n.body||n.type)return{error:Es(_.Return_type_must_be_inferred_from_a_function)};let i=e.program.getTypeChecker(),s;if(i.isImplementationOfOverload(n)){let c=i.getTypeAtLocation(n).getCallSignatures();c.length>1&&(s=i.getUnionType(Ji(c,p=>p.getReturnType())))}if(!s){let c=i.getSignatureFromDeclaration(n);if(c){let p=i.getTypePredicateOfSignature(c);if(p&&p.type){let u=i.typePredicateToTypePredicateNode(p,n,1,8);if(u)return{declaration:n,returnTypeNode:u}}else s=i.getReturnTypeOfSignature(c)}}if(!s)return{error:Es(_.Could_not_determine_function_return_type)};let o=i.typeToTypeNode(s,n,1,8);if(o)return{declaration:n,returnTypeNode:o}}function IQe(e){switch(e.kind){case 263:case 219:case 220:case 175:return!0;default:return!1}}var ACe=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(ACe||{}),ECe=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(ECe||{}),NCe=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(NCe||{});function MCe(e,t,n,i){let s=que(e,t,n,i);w.assert(s.spans.length%3===0);let o=s.spans,c=[];for(let p=0;p<o.length;p+=3)c.push({textSpan:yu(o[p],o[p+1]),classificationType:o[p+2]});return c}function que(e,t,n,i){return{spans:DQe(e,n,i,t),endOfLineState:0}}function DQe(e,t,n,i){let s=[];return e&&t&&PQe(e,t,n,(c,p,u)=>{s.push(c.getStart(t),c.getWidth(t),(p+1<<8)+u)},i),s}function PQe(e,t,n,i,s){let o=e.getTypeChecker(),c=!1;function p(u){switch(u.kind){case 268:case 264:case 265:case 263:case 232:case 219:case 220:s.throwIfCancellationRequested()}if(!u||!CM(n,u.pos,u.getFullWidth())||u.getFullWidth()===0)return;let g=c;if((Xm(u)||kk(u))&&(c=!0),yI(u)&&(c=!1),Be(u)&&!c&&!MQe(u)&&!AA(u.escapedText)){let d=o.getSymbolAtLocation(u);if(d){d.flags&2097152&&(d=o.getAliasedSymbol(d));let h=AQe(d,Ok(u));if(h!==void 0){let S=0;u.parent&&(Da(u.parent)||FCe.get(u.parent.kind)===h)&&u.parent.name===u&&(S=1),h===6&&OCe(u)&&(h=9),h=EQe(o,u,h);let T=d.valueDeclaration;if(T){let x=I0(T),I=Kh(T);x&256&&(S|=2),x&1024&&(S|=4),h!==0&&h!==2&&(x&8||I&2||d.getFlags()&8)&&(S|=8),(h===7||h===10)&&NQe(T,t)&&(S|=32),e.isSourceFileDefaultLibrary(T.getSourceFile())&&(S|=16)}else d.declarations&&d.declarations.some(x=>e.isSourceFileDefaultLibrary(x.getSourceFile()))&&(S|=16);i(u,h,S)}}}Ms(u,p),c=g}p(t)}function AQe(e,t){let n=e.getFlags();if(n&32)return 0;if(n&384)return 1;if(n&524288)return 5;if(n&64){if(t&2)return 2}else if(n&262144)return 4;let i=e.valueDeclaration||e.declarations&&e.declarations[0];return i&&Da(i)&&(i=RCe(i)),i&&FCe.get(i.kind)}function EQe(e,t,n){if(n===7||n===9||n===6){let i=e.getTypeAtLocation(t);if(i){let s=o=>o(i)||i.isUnion()&&i.types.some(o);if(n!==6&&s(o=>o.getConstructSignatures().length>0))return 0;if(s(o=>o.getCallSignatures().length>0)&&!s(o=>o.getProperties().length>0)||RQe(t))return n===9?11:10}}return n}function NQe(e,t){return Da(e)&&(e=RCe(e)),li(e)?(!Li(e.parent.parent.parent)||GS(e.parent))&&e.getSourceFile()===t:Gc(e)?!Li(e.parent)&&e.getSourceFile()===t:!1}function RCe(e){for(;;)if(Da(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function MQe(e){let t=e.parent;return t&&(Ld(t)||gp(t)||bh(t))}function RQe(e){for(;OCe(e);)e=e.parent;return Ws(e.parent)&&e.parent.expression===e}function OCe(e){return Ip(e.parent)&&e.parent.right===e||Ln(e.parent)&&e.parent.name===e}var FCe=new Map([[261,7],[170,6],[173,9],[268,3],[267,1],[307,8],[264,0],[175,11],[263,10],[219,10],[174,11],[178,9],[179,9],[172,9],[265,2],[266,5],[169,4],[304,9],[305,9]]),jCe="0.8";function LCe(e,t,n,i){let s=lF(e)?new $ue(e,t,n):e===80?new BCe(80,t,n):e===81?new zCe(81,t,n):new WCe(e,t,n);return s.parent=i,s.flags=i.flags&101441536,s}var $ue=class{constructor(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}assertHasRealPosition(e){w.assert(!am(this.pos)&&!am(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Nr(this)}getStart(e,t){return this.assertHasRealPosition(),mb(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e=Nr(this)){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),DJ(this,e)??Eie(this,e,OQe(this,e))}getFirstToken(e){this.assertHasRealPosition();let t=this.getChildren(e);if(!t.length)return;let n=Bn(t,i=>i.kind<310||i.kind>352);return n.kind<167?n:n.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),n=Wo(t);if(n)return n.kind<167?n:n.getLastToken(e)}forEachChild(e,t){return Ms(this,e,t)}};function OQe(e,t){let n=[];if(hF(e))return e.forEachChild(c=>{n.push(c)}),n;pu.setText((t||e.getSourceFile()).text);let i=e.pos,s=c=>{H5(n,i,c.pos,e),n.push(c),i=c.end},o=c=>{H5(n,i,c.pos,e),n.push(FQe(c,e)),i=c.end};return or(e.jsDoc,s),i=e.pos,e.forEachChild(s,o),H5(n,i,e.end,e),pu.setText(void 0),n}function H5(e,t,n,i){for(pu.resetTokenState(t);t<n;){let s=pu.scan(),o=pu.getTokenEnd();if(o<=n){if(s===80){if(Pne(i))continue;w.fail(`Did not expect ${w.formatSyntaxKind(i.kind)} to have an Identifier in its trivia`)}e.push(LCe(s,t,o,i))}if(t=o,s===1)break}}function FQe(e,t){let n=LCe(353,e.pos,e.end,t),i=[],s=e.pos;for(let o of e)H5(i,s,o.pos,t),i.push(o),s=o.end;return H5(i,s,e.end,t),n._children=i,n}var Hue=class{constructor(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}getSourceFile(){return Nr(this)}getStart(e,t){return mb(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||Ke}getFirstToken(){}getLastToken(){}forEachChild(){}},jQe=class{constructor(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}getFlags(){return this.flags}get name(){return kc(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=Ke,!this.declarations&&oh(this)&&this.links.target&&oh(this.links.target)&&this.links.target.links.tupleLabelDeclaration){let t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=Q5([t],e)}else this.documentationComment=Q5(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(ah(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=Ke,this.contextualGetAccessorDocumentationComment=Q5(Mn(this.declarations,ah),t)),Dr(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(Fm(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=Ke,this.contextualSetAccessorDocumentationComment=Q5(Mn(this.declarations,Fm),t)),Dr(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=Ke,this.tags=eH(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(ah(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=Ke,this.contextualGetAccessorTags=eH(Mn(this.declarations,ah),t)),Dr(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(Fm(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=Ke,this.contextualSetAccessorTags=eH(Mn(this.declarations,Fm),t)),Dr(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},WCe=class extends Hue{constructor(e,t,n){super(e,t,n)}},BCe=class extends Hue{constructor(e,t,n){super(e,t,n)}get text(){return Fn(this)}},zCe=class extends Hue{constructor(e,t,n){super(e,t,n)}get text(){return Fn(this)}},LQe=class{constructor(e,t){this.flags=t,this.checker=e}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(jn(this)&3)}isClass(){return!!(jn(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(jn(this)&4)return this.checker.getTypeArguments(this)}},WQe=class{constructor(e,t){this.flags=t,this.checker=e}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){let t=this.checker.getParameterType(this,e);if(t.isIndexType()&&EA(t.type)){let n=t.type.getConstraint();if(n)return this.checker.getIndexType(n)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=Q5(Qx(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=eH(Qx(this.declaration),this.checker))}};function GCe(e){return P0(e).some(t=>t.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function eH(e,t){if(!e)return Ke;let n=_1.getJsDocTagsFromDeclarations(e,t);if(t&&(n.length===0||e.some(GCe))){let i=new Set;for(let s of e){let o=JCe(t,s,c=>{var p;if(!i.has(c))return i.add(c),s.kind===178||s.kind===179?c.getContextualJsDocTags(s,t):((p=c.declarations)==null?void 0:p.length)===1?c.getJsDocTags(t):void 0});o&&(n=[...o,...n])}}return n}function Q5(e,t){if(!e)return Ke;let n=_1.getJsDocCommentsFromDeclarations(e,t);if(t&&(n.length===0||e.some(GCe))){let i=new Set;for(let s of e){let o=JCe(t,s,c=>{if(!i.has(c))return i.add(c),s.kind===178||s.kind===179?c.getContextualDocumentationComment(s,t):c.getDocumentationComment(t)});o&&(n=n.length===0?o.slice():o.concat(XI(),n))}}return n}function JCe(e,t,n){var i;let s=((i=t.parent)==null?void 0:i.kind)===177?t.parent.parent:t.parent;if(!s)return;let o=Cl(t);return fo(nA(s),c=>{let p=e.getTypeAtLocation(c),u=o&&p.symbol?e.getTypeOfSymbol(p.symbol):p,g=e.getPropertyOfType(u,t.symbol.name);return g?n(g):void 0})}var BQe=class extends $ue{constructor(e,t,n){super(e,t,n)}update(e,t){return JJ(this,e,t)}getLineAndCharacterOfPosition(e){return Hs(this,e)}getLineStarts(){return th(this)}getPositionOfLineAndCharacter(e,t,n){return YO(th(this),e,t,this.text,n)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),n=this.getLineStarts(),i;t+1>=n.length&&(i=this.getEnd()),i||(i=n[t+1]-1);let s=this.getFullText();return s[i]===`
|
|
`&&s[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=od();return this.forEachChild(s),e;function t(o){let c=i(o);c&&e.add(c,o)}function n(o){let c=e.get(o);return c||e.set(o,c=[]),c}function i(o){let c=tF(o);return c&&(na(c)&&Ln(c.expression)?c.expression.name.text:ol(c)?vR(c):void 0)}function s(o){switch(o.kind){case 263:case 219:case 175:case 174:let c=o,p=i(c);if(p){let d=n(p),h=Wo(d);h&&c.parent===h.parent&&c.symbol===h.symbol?c.body&&!h.body&&(d[d.length-1]=c):d.push(c)}Ms(o,s);break;case 264:case 232:case 265:case 266:case 267:case 268:case 272:case 282:case 277:case 274:case 275:case 178:case 179:case 188:t(o),Ms(o,s);break;case 170:if(!ri(o,31))break;case 261:case 209:{let d=o;if(Ls(d.name)){Ms(d.name,s);break}d.initializer&&s(d.initializer)}case 307:case 173:case 172:t(o);break;case 279:let u=o;u.exportClause&&(G_(u.exportClause)?or(u.exportClause.elements,s):s(u.exportClause.name));break;case 273:let g=o.importClause;g&&(g.name&&t(g.name),g.namedBindings&&(g.namedBindings.kind===275?t(g.namedBindings):or(g.namedBindings.elements,s)));break;case 227:Hc(o)!==0&&t(o);default:Ms(o,s)}}}},zQe=class{constructor(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(i=>i)}getLineAndCharacterOfPosition(e){return Hs(this,e)}};function GQe(){return{getNodeConstructor:()=>$ue,getTokenConstructor:()=>WCe,getIdentifierConstructor:()=>BCe,getPrivateIdentifierConstructor:()=>zCe,getSourceFileConstructor:()=>BQe,getSymbolConstructor:()=>jQe,getTypeConstructor:()=>LQe,getSignatureConstructor:()=>WQe,getSourceMapSourceConstructor:()=>zQe}}function FR(e){let t=!0;for(let i in e)if(_o(e,i)&&!UCe(i)){t=!1;break}if(t)return e;let n={};for(let i in e)if(_o(e,i)){let s=UCe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);n[s]=e[i]}return n}function UCe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function jR(e){return e?kr(e,t=>t.text).join(""):""}function K5(){return{target:1,jsx:1}}function tH(){return tp.getSupportedErrorCodes()}var JQe=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,n,i,s,o,c,p,u;let g=this.host.getScriptSnapshot(e);if(!g)throw new Error("Could not find file: '"+e+"'.");let d=r$(e,this.host),h=this.host.getScriptVersion(e),S;if(this.currentFileName!==e){let T={languageVersion:99,impliedNodeFormat:Z4(So(e,this.host.getCurrentDirectory(),((i=(n=(t=this.host).getCompilerHost)==null?void 0:n.call(t))==null?void 0:i.getCanonicalFileName)||ty(this.host)),(u=(p=(c=(o=(s=this.host).getCompilerHost)==null?void 0:o.call(s))==null?void 0:c.getModuleResolutionCache)==null?void 0:p.call(c))==null?void 0:u.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:L6(this.host.getCompilationSettings()),jsDocParsingMode:0};S=X5(e,g,T,h,!0,d)}else if(this.currentFileVersion!==h){let T=g.getChangeRange(this.currentFileScriptSnapshot);S=rH(this.currentSourceFile,g,h,T)}return S&&(this.currentFileVersion=h,this.currentFileName=e,this.currentFileScriptSnapshot=g,this.currentSourceFile=S),this.currentSourceFile}};function VCe(e,t,n){e.version=n,e.scriptSnapshot=t}function X5(e,t,n,i,s,o){let c=X2(e,lC(t),n,s,o);return VCe(c,t,i),c}function rH(e,t,n,i,s){if(i&&n!==e.version){let c,p=i.span.start!==0?e.text.substr(0,i.span.start):"",u=mc(i.span)!==e.text.length?e.text.substr(mc(i.span)):"";if(i.newLength===0)c=p&&u?p+u:p||u;else{let d=t.getText(i.span.start,i.span.start+i.newLength);c=p&&u?p+d+u:p?p+d:d+u}let g=JJ(e,c,i,s);return VCe(g,t,n),g.nameTable=void 0,e!==g&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),g}let o={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return X5(e.fileName,t,o,n,!0,e.scriptKind)}var UQe={isCancellationRequested:$h,throwIfCancellationRequested:no},VQe=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=mn)==null||e.instant(mn.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new bP}},Que=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){let e=bo();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=mn)==null||e.instant(mn.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new bP}},qCe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],qQe=[...qCe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];function Kue(e,t=ble(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory(),e.jsDocParsingMode),n){var i;let s;n===void 0?s=0:typeof n=="boolean"?s=n?2:0:s=n;let o=new JQe(e),c,p,u=0,g=e.getCancellationToken?new VQe(e.getCancellationToken()):UQe,d=e.getCurrentDirectory();ene((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function h(ct){e.log&&e.log(ct)}let S=ck(e),T=hu(S),x=Rle({useCaseSensitiveFileNames:()=>S,getCurrentDirectory:()=>d,getProgram:F,fileExists:Js(e,e.fileExists),readFile:Js(e,e.readFile),getDocumentPositionMapper:Js(e,e.getDocumentPositionMapper),getSourceFileLike:Js(e,e.getSourceFileLike),log:h});function I(ct){let It=c.getSourceFile(ct);if(!It){let Ot=new Error(`Could not find source file: '${ct}'.`);throw Ot.ProgramFiles=c.getSourceFiles().map(Ht=>Ht.fileName),Ot}return It}function P(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():E()}function E(){var ct,It,Ot;if(w.assert(s!==2),e.getProjectVersion){let ys=e.getProjectVersion();if(ys){if(p===ys&&!((ct=e.hasChangedAutomaticTypeDirectiveNames)!=null&&ct.call(e)))return;p=ys}}let Ht=e.getTypeRootsVersion?e.getTypeRootsVersion():0;u!==Ht&&(h("TypeRoots version has changed; provide new program"),c=void 0,u=Ht);let hr=e.getScriptFileNames().slice(),ur=e.getCompilationSettings()||K5(),Nt=e.hasInvalidatedResolutions||$h,mr=Js(e,e.hasInvalidatedLibResolutions)||$h,Tr=Js(e,e.hasChangedAutomaticTypeDirectiveNames),Cr=(It=e.getProjectReferences)==null?void 0:It.call(e),rr,di={getSourceFile:Jc,getSourceFileByPath:d_,getCancellationToken:()=>g,getCanonicalFileName:T,useCaseSensitiveFileNames:()=>S,getNewLine:()=>Zy(ur),getDefaultLibFileName:ys=>e.getDefaultLibFileName(ys),writeFile:no,getCurrentDirectory:()=>d,fileExists:ys=>e.fileExists(ys),readFile:ys=>e.readFile&&e.readFile(ys),getSymlinkCache:Js(e,e.getSymlinkCache),realpath:Js(e,e.realpath),directoryExists:ys=>sm(ys,e),getDirectories:ys=>e.getDirectories?e.getDirectories(ys):[],readDirectory:(ys,Ys,Ga,Fa,$t)=>(w.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(ys,Ys,Ga,Fa,$t)),onReleaseOldSourceFile:fa,onReleaseParsedCommandLine:ll,hasInvalidatedResolutions:Nt,hasInvalidatedLibResolutions:mr,hasChangedAutomaticTypeDirectiveNames:Tr,trace:Js(e,e.trace),resolveModuleNames:Js(e,e.resolveModuleNames),getModuleResolutionCache:Js(e,e.getModuleResolutionCache),createHash:Js(e,e.createHash),resolveTypeReferenceDirectives:Js(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:Js(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:Js(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:Js(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:Js(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Ki,jsDocParsingMode:e.jsDocParsingMode,getGlobalTypingsCacheLocation:Js(e,e.getGlobalTypingsCacheLocation)},Vs=di.getSourceFile,{getSourceFileWithCache:qs}=yE(di,ys=>So(ys,d,T),(...ys)=>Vs.call(di,...ys));di.getSourceFile=qs,(Ot=e.setCompilerHost)==null||Ot.call(e,di);let xs={useCaseSensitiveFileNames:S,fileExists:ys=>di.fileExists(ys),readFile:ys=>di.readFile(ys),directoryExists:ys=>di.directoryExists(ys),getDirectories:ys=>di.getDirectories(ys),realpath:di.realpath,readDirectory:(...ys)=>di.readDirectory(...ys),trace:di.trace,getCurrentDirectory:di.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:no},Dc=t.getKeyForCompilationSettings(ur),vc=new Set;if(vV(c,hr,ur,(ys,Ys)=>e.getScriptVersion(Ys),ys=>di.fileExists(ys),Nt,mr,Tr,Ki,Cr)){di=void 0,rr=void 0,vc=void 0;return}c=eR({rootNames:hr,options:ur,host:di,oldProgram:c,projectReferences:Cr}),di=void 0,rr=void 0,vc=void 0,x.clearCache(),c.getTypeChecker();return;function Ki(ys){let Ys=So(ys,d,T),Ga=rr?.get(Ys);if(Ga!==void 0)return Ga||void 0;let Fa=e.getParsedCommandLine?e.getParsedCommandLine(ys):Cs(ys);return(rr||(rr=new Map)).set(Ys,Fa||!1),Fa}function Cs(ys){let Ys=Jc(ys,100);if(Ys)return Ys.path=So(ys,d,T),Ys.resolvedPath=Ys.path,Ys.originalFileName=Ys.fileName,A4(Ys,xs,as(ti(ys),d),void 0,as(ys,d))}function ll(ys,Ys,Ga){var Fa;e.getParsedCommandLine?(Fa=e.onReleaseParsedCommandLine)==null||Fa.call(e,ys,Ys,Ga):Ys&&Lo(Ys.sourceFile,Ga)}function Lo(ys,Ys){let Ga=t.getKeyForCompilationSettings(Ys);t.releaseDocumentWithKey(ys.resolvedPath,Ga,ys.scriptKind,ys.impliedNodeFormat)}function fa(ys,Ys,Ga,Fa){var $t;Lo(ys,Ys),($t=e.onReleaseOldSourceFile)==null||$t.call(e,ys,Ys,Ga,Fa)}function Jc(ys,Ys,Ga,Fa){return d_(ys,So(ys,d,T),Ys,Ga,Fa)}function d_(ys,Ys,Ga,Fa,$t){w.assert(di,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");let uo=e.getScriptSnapshot(ys);if(!uo)return;let Mc=r$(ys,e),rl=e.getScriptVersion(ys);if(!$t){let Yl=c&&c.getSourceFileByPath(Ys);if(Yl){if(Mc===Yl.scriptKind||vc.has(Yl.resolvedPath))return t.updateDocumentWithKey(ys,Ys,e,Dc,uo,rl,Mc,Ga);t.releaseDocumentWithKey(Yl.resolvedPath,t.getKeyForCompilationSettings(c.getCompilerOptions()),Yl.scriptKind,Yl.impliedNodeFormat),vc.add(Yl.resolvedPath)}}return t.acquireDocumentWithKey(ys,Ys,e,Dc,uo,rl,Mc,Ga)}}function F(){if(s===2){w.assert(c===void 0);return}return P(),c}function O(){var ct;return(ct=e.getPackageJsonAutoImportProvider)==null?void 0:ct.call(e)}function W(ct,It){let Ot=c.getTypeChecker(),Ht=hr();if(!Ht)return!1;for(let Nt of ct)for(let mr of Nt.references){let Tr=ur(mr);if(w.assertIsDefined(Tr),It.has(mr)||jo.isDeclarationOfSymbol(Tr,Ht)){It.add(mr),mr.isDefinition=!0;let Cr=h5(mr,x,Js(e,e.fileExists));Cr&&It.add(Cr)}else mr.isDefinition=!1}return!0;function hr(){for(let Nt of ct)for(let mr of Nt.references){if(It.has(mr)){let Cr=ur(mr);return w.assertIsDefined(Cr),Ot.getSymbolAtLocation(Cr)}let Tr=h5(mr,x,Js(e,e.fileExists));if(Tr&&It.has(Tr)){let Cr=ur(Tr);if(Cr)return Ot.getSymbolAtLocation(Cr)}}}function ur(Nt){let mr=c.getSourceFile(Nt.fileName);if(!mr)return;let Tr=Kp(mr,Nt.textSpan.start);return jo.Core.getAdjustedNode(Tr,{use:jo.FindReferencesUse.References})}}function z(){if(c){let ct=t.getKeyForCompilationSettings(c.getCompilerOptions());or(c.getSourceFiles(),It=>t.releaseDocumentWithKey(It.resolvedPath,ct,It.scriptKind,It.impliedNodeFormat)),c=void 0}}function $(){z(),e=void 0}function X(ct){return P(),c.getSyntacticDiagnostics(I(ct),g).slice()}function U(ct){P();let It=I(ct),Ot=c.getSemanticDiagnostics(It,g);if(!lf(c.getCompilerOptions()))return Ot.slice();let Ht=c.getDeclarationDiagnostics(It,g);return[...Ot,...Ht]}function _e(ct,It){P();let Ot=I(ct),Ht=c.getCompilerOptions();if(oI(Ot,Ht,c)||!wA(Ot,Ht)||c.getCachedSemanticDiagnostics(Ot))return;let hr=re(Ot,It);if(!hr)return;let ur=PB(hr.map(mr=>$c(mr.getFullStart(),mr.getEnd())));return{diagnostics:c.getSemanticDiagnostics(Ot,g,hr).slice(),spans:ur}}function re(ct,It){let Ot=[],Ht=PB(It.map(hr=>pv(hr)));for(let hr of Ht){let ur=V(ct,hr);if(!ur)return;Ot.push(...ur)}if(Ot.length)return Ot}function V(ct,It){if(DB(It,ct))return;let Ot=IE(ct,mc(It))||ct,Ht=vr(Ot,ur=>wee(ur,It)),hr=[];if(ce(It,Ht,hr),ct.end===It.start+It.length&&hr.push(ct.endOfFileToken),!_t(hr,Li))return hr}function ce(ct,It,Ot){return oe(It,ct)?DB(ct,It)?(le(It,Ot),!0):pC(It)?de(ct,It,Ot):ni(It)?ve(ct,It,Ot):(le(It,Ot),!0):!1}function oe(ct,It){let Ot=It.start+It.length;return ct.pos<Ot&&ct.end>It.start}function le(ct,It){for(;ct.parent&&!Mne(ct);)ct=ct.parent;It.push(ct)}function de(ct,It,Ot){let Ht=[];return It.statements.filter(ur=>ce(ct,ur,Ht)).length===It.statements.length?(le(It,Ot),!0):(Ot.push(...Ht),!1)}function ve(ct,It,Ot){var Ht,hr,ur;let Nt=Cr=>Aee(Cr,ct);if((Ht=It.modifiers)!=null&&Ht.some(Nt)||It.name&&Nt(It.name)||(hr=It.typeParameters)!=null&&hr.some(Nt)||(ur=It.heritageClauses)!=null&&ur.some(Nt))return le(It,Ot),!0;let mr=[];return It.members.filter(Cr=>ce(ct,Cr,mr)).length===It.members.length?(le(It,Ot),!0):(Ot.push(...mr),!1)}function H(ct){return P(),D$(I(ct),c,g)}function Se(){return P(),[...c.getOptionsDiagnostics(g),...c.getGlobalDiagnostics(g)]}function Je(ct,It,Ot=vd,Ht){let hr={...Ot,includeCompletionsForModuleExports:Ot.includeCompletionsForModuleExports||Ot.includeExternalModuleExports,includeCompletionsWithInsertText:Ot.includeCompletionsWithInsertText||Ot.includeInsertTextCompletions};return P(),vC.getCompletionsAtPosition(e,c,h,I(ct),It,hr,Ot.triggerCharacter,Ot.triggerKind,g,Ht&&vl.getFormatContext(Ht,e),Ot.includeSymbol)}function ye(ct,It,Ot,Ht,hr,ur=vd,Nt){return P(),vC.getCompletionEntryDetails(c,h,I(ct),It,{name:Ot,source:hr,data:Nt},e,Ht&&vl.getFormatContext(Ht,e),ur,g)}function ee(ct,It,Ot,Ht,hr=vd){return P(),vC.getCompletionEntrySymbol(c,h,I(ct),It,{name:Ot,source:Ht},e,hr)}function ge(ct,It,Ot,Ht){P();let hr=I(ct),ur=Kp(hr,It);if(ur===hr)return;let Nt=c.getTypeChecker(),mr=nt(ur),Tr=KQe(mr,Nt);if(!Tr||Nt.isUnknownSymbol(Tr)){let xs=ae(hr,mr,It)?Nt.getTypeAtLocation(mr):void 0;return xs&&{kind:"",kindModifiers:"",textSpan:Np(mr,hr),displayParts:Nt.runWithCancellationToken(g,Dc=>TR(Dc,xs,Fk(mr),void 0,Ht)),documentation:xs.symbol?xs.symbol.getDocumentationComment(Nt):void 0,tags:xs.symbol?xs.symbol.getJsDocTags(Nt):void 0}}let{symbolKind:Cr,displayParts:rr,documentation:di,tags:Vs,canIncreaseVerbosityLevel:qs}=Nt.runWithCancellationToken(g,xs=>dv.getSymbolDisplayPartsDocumentationAndSymbolKind(xs,Tr,hr,Fk(mr),mr,void 0,void 0,Ot??vte,Ht));return{kind:Cr,kindModifiers:dv.getSymbolModifiers(Nt,Tr),textSpan:Np(mr,hr),displayParts:rr,documentation:di,tags:Vs,canIncreaseVerbosityLevel:qs}}function ke(ct,It){return P(),_Q.preparePasteEdits(I(ct),It,c.getTypeChecker())}function Oe(ct,It){return P(),dQ.pasteEditsProvider(I(ct.targetFile),ct.pastedText,ct.pasteLocations,ct.copiedFrom?{file:I(ct.copiedFrom.file),range:ct.copiedFrom.range}:void 0,e,ct.preferences,vl.getFormatContext(It,e),g)}function nt(ct){return WS(ct.parent)&&ct.pos===ct.parent.pos?ct.parent.expression:_I(ct.parent)&&ct.pos===ct.parent.pos||zw(ct.parent)&&ct.parent.name===ct||lm(ct.parent)?ct.parent:ct}function ae(ct,It,Ot){switch(It.kind){case 80:return It.flags&16777216&&!dn(It)&&(It.parent.kind===172&&It.parent.name===It||vr(It,Ht=>Ht.kind===170))?!1:!Tq(It)&&!kq(It)&&!Nd(It.parent);case 212:case 167:return!lv(ct,Ot);case 110:case 198:case 108:case 203:return!0;case 237:return zw(It);default:return!1}}function Ue(ct,It,Ot,Ht){return P(),aD.getDefinitionAtPosition(c,I(ct),It,Ot,Ht)}function te(ct,It){return P(),aD.getDefinitionAndBoundSpan(c,I(ct),It)}function Ne(ct,It){return P(),aD.getTypeDefinitionAtPosition(c.getTypeChecker(),I(ct),It)}function Ie(ct,It){return P(),jo.getImplementationsAtPosition(c,g,c.getSourceFiles(),I(ct),It)}function xe(ct,It,Ot){let Ht=ra(ct);w.assert(Ot.some(Nt=>ra(Nt)===Ht)),P();let hr=Ji(Ot,Nt=>c.getSourceFile(Nt)),ur=I(ct);return O5.getDocumentHighlights(c,g,ur,It,hr)}function Qe(ct,It,Ot,Ht,hr){P();let ur=I(ct),Nt=s5(Kp(ur,It));if(yL.nodeIsEligibleForRename(Nt))if(Be(Nt)&&(cm(Nt.parent)||BS(Nt.parent))&&Yw(Nt.escapedText)){let{openingElement:mr,closingElement:Tr}=Nt.parent.parent;return[mr,Tr].map(Cr=>{let rr=Np(Cr.tagName,ur);return{fileName:ur.fileName,textSpan:rr,...jo.toContextSpan(rr,ur,Cr.parent)}})}else{let mr=Mf(ur,hr??vd),Tr=typeof hr=="boolean"?hr:hr?.providePrefixAndSuffixTextForRename;return Bt(Nt,It,{findInStrings:Ot,findInComments:Ht,providePrefixAndSuffixTextForRename:Tr,use:jo.FindReferencesUse.Rename},(Cr,rr,di)=>jo.toRenameLocation(Cr,rr,di,Tr||!1,mr))}}function St(ct,It){return P(),Bt(Kp(I(ct),It),It,{use:jo.FindReferencesUse.References},jo.toReferenceEntry)}function Bt(ct,It,Ot,Ht){P();let hr=Ot&&Ot.use===jo.FindReferencesUse.Rename?c.getSourceFiles().filter(ur=>!c.isSourceFileDefaultLibrary(ur)):c.getSourceFiles();return jo.findReferenceOrRenameEntries(c,g,hr,ct,It,Ot,Ht)}function fr(ct,It){return P(),jo.findReferencedSymbols(c,g,c.getSourceFiles(),I(ct),It)}function Mr(ct){return P(),jo.Core.getReferencesForFileName(ct,c,c.getSourceFiles()).map(jo.toReferenceEntry)}function ft(ct,It,Ot,Ht=!1,hr=!1){P();let ur=Ot?[I(Ot)]:c.getSourceFiles();return i2e(ur,c.getTypeChecker(),g,ct,It,Ht,hr)}function qt(ct,It,Ot){P();let Ht=I(ct),hr=e.getCustomTransformers&&e.getCustomTransformers();return _oe(c,Ht,!!It,g,hr,Ot)}function Hr(ct,It,{triggerReason:Ot}=vd){P();let Ht=I(ct);return ZR.getSignatureHelpItems(c,Ht,It,Ot,g)}function bi(ct){return o.getCurrentSourceFile(ct)}function us(ct,It,Ot){let Ht=o.getCurrentSourceFile(ct),hr=Kp(Ht,It);if(hr===Ht)return;switch(hr.kind){case 212:case 167:case 11:case 97:case 112:case 106:case 108:case 110:case 198:case 80:break;default:return}let ur=hr;for(;;)if(UI(ur)||Ace(ur))ur=ur.parent;else if(Cq(ur))if(ur.parent.parent.kind===268&&ur.parent.parent.body===ur.parent)ur=ur.parent.parent.name;else break;else break;return $c(ur.getStart(),hr.getEnd())}function At(ct,It){let Ot=o.getCurrentSourceFile(ct);return iH.spanInSourceFileAtLocation(Ot,It)}function Un(ct){return c2e(o.getCurrentSourceFile(ct),g)}function rs(ct){return l2e(o.getCurrentSourceFile(ct),g)}function zn(ct,It,Ot){return P(),(Ot||"original")==="2020"?MCe(c,g,I(ct),It):yle(c.getTypeChecker(),g,I(ct),c.getClassifiableNames(),It)}function Sn(ct,It,Ot){return P(),(Ot||"original")==="original"?b$(c.getTypeChecker(),g,I(ct),c.getClassifiableNames(),It):que(c,g,I(ct),It)}function _i(ct,It){return vle(g,o.getCurrentSourceFile(ct),It)}function qe(ct,It){return S$(g,o.getCurrentSourceFile(ct),It)}function bt(ct){let It=o.getCurrentSourceFile(ct);return YH.collectElements(It,g)}let ar=new Map(Object.entries({19:20,21:22,23:24,32:30}));ar.forEach((ct,It)=>ar.set(ct.toString(),Number(It)));function tn(ct,It){let Ot=o.getCurrentSourceFile(ct),Ht=$I(Ot,It),hr=Ht.getStart(Ot)===It?ar.get(Ht.kind.toString()):void 0,ur=hr&&lo(Ht.parent,hr,Ot);return ur?[Np(Ht,Ot),Np(ur,Ot)].sort((Nt,mr)=>Nt.start-mr.start):Ke}function Xn(ct,It,Ot){let Ht=bo(),hr=FR(Ot),ur=o.getCurrentSourceFile(ct);h("getIndentationAtPosition: getCurrentSourceFile: "+(bo()-Ht)),Ht=bo();let Nt=vl.SmartIndenter.getIndentation(It,ur,hr);return h("getIndentationAtPosition: computeIndentation : "+(bo()-Ht)),Nt}function ei(ct,It,Ot,Ht){let hr=o.getCurrentSourceFile(ct);return vl.formatSelection(It,Ot,hr,vl.getFormatContext(FR(Ht),e))}function Mi(ct,It){return vl.formatDocument(o.getCurrentSourceFile(ct),vl.getFormatContext(FR(It),e))}function js(ct,It,Ot,Ht){let hr=o.getCurrentSourceFile(ct),ur=vl.getFormatContext(FR(Ht),e);if(!lv(hr,It))switch(Ot){case"{":return vl.formatOnOpeningCurly(It,hr,ur);case"}":return vl.formatOnClosingCurly(It,hr,ur);case";":return vl.formatOnSemicolon(It,hr,ur);case`
|
|
`:return vl.formatOnEnter(It,hr,ur)}return[]}function oa(ct,It,Ot,Ht,hr,ur=vd){P();let Nt=I(ct),mr=$c(It,Ot),Tr=vl.getFormatContext(hr,e);return Ma(oS(Ht,eb,Po),Cr=>(g.throwIfCancellationRequested(),tp.getFixes({errorCode:Cr,sourceFile:Nt,span:mr,program:c,host:e,cancellationToken:g,formatContext:Tr,preferences:ur})))}function wr(ct,It,Ot,Ht=vd){P(),w.assert(ct.type==="file");let hr=I(ct.fileName),ur=vl.getFormatContext(Ot,e);return tp.getAllFixes({fixId:It,sourceFile:hr,program:c,host:e,cancellationToken:g,formatContext:ur,preferences:Ht})}function Ds(ct,It,Ot=vd){P(),w.assert(ct.type==="file");let Ht=I(ct.fileName);if(l2(Ht))return Ke;let hr=vl.getFormatContext(It,e),ur=ct.mode??(ct.skipDestructiveCodeActions?"SortAndCombine":"All");return d1.organizeImports(Ht,hr,e,c,Ot,ur)}function tt(ct,It,Ot,Ht=vd){return Tle(F(),ct,It,e,vl.getFormatContext(Ot,e),Ht,x)}function Mt(ct,It){let Ot=typeof ct=="string"?It:ct;return gs(Ot)?Promise.all(Ot.map(Ht=>se(Ht))):se(Ot)}function se(ct){let It=Ot=>So(Ot,d,T);return w.assertEqual(ct.type,"install package"),e.installPackage?e.installPackage({fileName:It(ct.file),packageName:ct.packageName}):Promise.reject("Host does not implement `installPackage`")}function pt(ct,It,Ot,Ht){let hr=Ht?vl.getFormatContext(Ht,e).options:void 0;return _1.getDocCommentTemplateAtPosition(py(e,hr),o.getCurrentSourceFile(ct),It,Ot)}function Z(ct,It,Ot){if(Ot===60)return!1;let Ht=o.getCurrentSourceFile(ct);if(cC(Ht,It))return!1;if(jce(Ht,It))return Ot===123;if(Eq(Ht,It))return!1;switch(Ot){case 39:case 34:case 96:return!lv(Ht,It)}return!0}function Ee(ct,It){let Ot=o.getCurrentSourceFile(ct),Ht=Al(It,Ot);if(!Ht)return;let hr=Ht.kind===32&&cm(Ht.parent)?Ht.parent.parent:F2(Ht)&&Xm(Ht.parent)?Ht.parent:void 0;if(hr&&Rt(hr))return{newText:`</${hr.openingElement.tagName.getText(Ot)}>`};let ur=Ht.kind===32&&Wd(Ht.parent)?Ht.parent.parent:F2(Ht)&&Q0(Ht.parent)?Ht.parent:void 0;if(ur&&Ye(ur))return{newText:"</>"}}function et(ct,It){let Ot=o.getCurrentSourceFile(ct),Ht=Al(It,Ot);if(!Ht||Ht.parent.kind===308)return;let hr="[a-zA-Z0-9:\\-\\._$]*";if(Q0(Ht.parent.parent)){let ur=Ht.parent.parent.openingFragment,Nt=Ht.parent.parent.closingFragment;if(l2(ur)||l2(Nt))return;let mr=ur.getStart(Ot)+1,Tr=Nt.getStart(Ot)+2;return It!==mr&&It!==Tr?void 0:{ranges:[{start:mr,length:0},{start:Tr,length:0}],wordPattern:hr}}else{let ur=vr(Ht.parent,qs=>!!(cm(qs)||BS(qs)));if(!ur)return;w.assert(cm(ur)||BS(ur),"tag should be opening or closing element");let Nt=ur.parent.openingElement,mr=ur.parent.closingElement,Tr=Nt.tagName.getStart(Ot),Cr=Nt.tagName.end,rr=mr.tagName.getStart(Ot),di=mr.tagName.end;return Tr===Nt.getStart(Ot)||rr===mr.getStart(Ot)||Cr===Nt.getEnd()||di===mr.getEnd()||!(Tr<=It&&It<=Cr||rr<=It&&It<=di)||Nt.tagName.getText(Ot)!==mr.tagName.getText(Ot)?void 0:{ranges:[{start:Tr,length:Cr-Tr},{start:rr,length:di-rr}],wordPattern:hr}}}function at(ct,It){return{lineStarts:ct.getLineStarts(),firstLine:ct.getLineAndCharacterOfPosition(It.pos).line,lastLine:ct.getLineAndCharacterOfPosition(It.end).line}}function Pt(ct,It,Ot){let Ht=o.getCurrentSourceFile(ct),hr=[],{lineStarts:ur,firstLine:Nt,lastLine:mr}=at(Ht,It),Tr=Ot||!1,Cr=Number.MAX_VALUE,rr=new Map,di=new RegExp(/\S/),Vs=o5(Ht,ur[Nt]),qs=Vs?"{/*":"//";for(let xs=Nt;xs<=mr;xs++){let Dc=Ht.text.substring(ur[xs],Ht.getLineEndOfPosition(ur[xs])),vc=di.exec(Dc);vc&&(Cr=Math.min(Cr,vc.index),rr.set(xs.toString(),vc.index),Dc.substr(vc.index,qs.length)!==qs&&(Tr=Ot===void 0||Ot))}for(let xs=Nt;xs<=mr;xs++){if(Nt!==mr&&ur[xs]===It.end)continue;let Dc=rr.get(xs.toString());Dc!==void 0&&(Vs?hr.push(...Le(ct,{pos:ur[xs]+Cr,end:Ht.getLineEndOfPosition(ur[xs])},Tr,Vs)):Tr?hr.push({newText:qs,span:{length:0,start:ur[xs]+Cr}}):Ht.text.substr(ur[xs]+Dc,qs.length)===qs&&hr.push({newText:"",span:{length:qs.length,start:ur[xs]+Dc}}))}return hr}function Le(ct,It,Ot,Ht){var hr;let ur=o.getCurrentSourceFile(ct),Nt=[],{text:mr}=ur,Tr=!1,Cr=Ot||!1,rr=[],{pos:di}=It,Vs=Ht!==void 0?Ht:o5(ur,di),qs=Vs?"{/*":"/*",xs=Vs?"*/}":"*/",Dc=Vs?"\\{\\/\\*":"\\/\\*",vc=Vs?"\\*\\/\\}":"\\*\\/";for(;di<=It.end;){let vo=mr.substr(di,qs.length)===qs?qs.length:0,Ki=lv(ur,di+vo);if(Ki)Vs&&(Ki.pos--,Ki.end++),rr.push(Ki.pos),Ki.kind===3&&rr.push(Ki.end),Tr=!0,di=Ki.end+1;else{let Cs=mr.substring(di,It.end).search(`(${Dc})|(${vc})`);Cr=Ot!==void 0?Ot:Cr||!Hce(mr,di,Cs===-1?It.end:di+Cs),di=Cs===-1?It.end+1:di+Cs+xs.length}}if(Cr||!Tr){((hr=lv(ur,It.pos))==null?void 0:hr.kind)!==2&&Qv(rr,It.pos,Po),Qv(rr,It.end,Po);let vo=rr[0];mr.substr(vo,qs.length)!==qs&&Nt.push({newText:qs,span:{length:0,start:vo}});for(let Ki=1;Ki<rr.length-1;Ki++)mr.substr(rr[Ki]-xs.length,xs.length)!==xs&&Nt.push({newText:xs,span:{length:0,start:rr[Ki]}}),mr.substr(rr[Ki],qs.length)!==qs&&Nt.push({newText:qs,span:{length:0,start:rr[Ki]}});Nt.length%2!==0&&Nt.push({newText:xs,span:{length:0,start:rr[rr.length-1]}})}else for(let vo of rr){let Ki=vo-xs.length>0?vo-xs.length:0,Cs=mr.substr(Ki,xs.length)===xs?xs.length:0;Nt.push({newText:"",span:{length:qs.length,start:vo-Cs}})}return Nt}function kt(ct,It){let Ot=o.getCurrentSourceFile(ct),{firstLine:Ht,lastLine:hr}=at(Ot,It);return Ht===hr&&It.pos!==It.end?Le(ct,It,!0):Pt(ct,It,!0)}function Tt(ct,It){let Ot=o.getCurrentSourceFile(ct),Ht=[],{pos:hr}=It,{end:ur}=It;hr===ur&&(ur+=o5(Ot,hr)?2:1);for(let Nt=hr;Nt<=ur;Nt++){let mr=lv(Ot,Nt);if(mr){switch(mr.kind){case 2:Ht.push(...Pt(ct,{end:mr.end,pos:mr.pos+1},!1));break;case 3:Ht.push(...Le(ct,{end:mr.end,pos:mr.pos+1},!1))}Nt=mr.end+1}}return Ht}function Rt({openingElement:ct,closingElement:It,parent:Ot}){return!t1(ct.tagName,It.tagName)||Xm(Ot)&&t1(ct.tagName,Ot.openingElement.tagName)&&Rt(Ot)}function Ye({closingFragment:ct,parent:It}){return!!(ct.flags&262144)||Q0(It)&&Ye(It)}function Gt(ct,It,Ot){let Ht=o.getCurrentSourceFile(ct),hr=vl.getRangeOfEnclosingComment(Ht,It);return hr&&(!Ot||hr.kind===3)?pv(hr):void 0}function ln(ct,It){P();let Ot=I(ct);g.throwIfCancellationRequested();let Ht=Ot.text,hr=[];if(It.length>0&&!Tr(Ot.fileName)){let Cr=Nt(),rr;for(;rr=Cr.exec(Ht);){g.throwIfCancellationRequested();let di=3;w.assert(rr.length===It.length+di);let Vs=rr[1],qs=rr.index+Vs.length;if(!lv(Ot,qs))continue;let xs;for(let vc=0;vc<It.length;vc++)rr[vc+di]&&(xs=It[vc]);if(xs===void 0)return w.fail();if(mr(Ht.charCodeAt(qs+xs.text.length)))continue;let Dc=rr[2];hr.push({descriptor:xs,message:Dc,position:qs})}}return hr;function ur(Cr){return Cr.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Nt(){let Cr=/(?:\/{2,}\s*)/.source,rr=/(?:\/\*+\s*)/.source,Vs="("+/(?:^(?:\s|\*)*)/.source+"|"+Cr+"|"+rr+")",qs="(?:"+kr(It,Ki=>"("+ur(Ki.text)+")").join("|")+")",xs=/(?:$|\*\/)/.source,Dc=/(?:.*?)/.source,vc="("+qs+Dc+")",vo=Vs+vc+xs;return new RegExp(vo,"gim")}function mr(Cr){return Cr>=97&&Cr<=122||Cr>=65&&Cr<=90||Cr>=48&&Cr<=57}function Tr(Cr){return Cr.includes("/node_modules/")}}function Ae(ct,It,Ot){return P(),yL.getRenameInfo(c,I(ct),It,Ot||{})}function wt(ct,It,Ot,Ht,hr,ur){let[Nt,mr]=typeof It=="number"?[It,void 0]:[It.pos,It.end];return{file:ct,startPosition:Nt,endPosition:mr,program:F(),host:e,formatContext:vl.getFormatContext(Ht,e),cancellationToken:g,preferences:Ot,triggerReason:hr,kind:ur}}function fe(ct,It,Ot){return{file:ct,program:F(),host:e,span:It,preferences:Ot,cancellationToken:g}}function j(ct,It){return tQ.getSmartSelectionRange(It,o.getCurrentSourceFile(ct))}function je(ct,It,Ot=vd,Ht,hr,ur){P();let Nt=I(ct);return _C.getApplicableRefactors(wt(Nt,It,Ot,vd,Ht,hr),ur)}function q(ct,It,Ot=vd){P();let Ht=I(ct),hr=w.checkDefined(c.getSourceFiles()),ur=xA(ct),Nt=RR(wt(Ht,It,Ot,vd)),mr=fue(Nt?.all),Tr=Ji(hr,Cr=>{let rr=xA(Cr.fileName);return!c?.isSourceFileFromExternalLibrary(Ht)&&!(Ht===I(Cr.fileName)||ur===".ts"&&rr===".d.ts"||ur===".d.ts"&&Zi(dl(Cr.fileName),"lib.")&&rr===".d.ts")&&(ur===rr||(ur===".tsx"&&rr===".ts"||ur===".jsx"&&rr===".js")&&!mr)?Cr.fileName:void 0});return{newFileName:pue(Ht,c,e,Nt),files:Tr}}function vt(ct,It,Ot,Ht,hr,ur=vd,Nt){P();let mr=I(ct);return _C.getEditsForRefactor(wt(mr,Ot,ur,It),Ht,hr,Nt)}function jt(ct,It){return It===0?{line:0,character:0}:x.toLineColumnOffset(ct,It)}function Ce(ct,It){P();let Ot=dC.resolveCallHierarchyDeclaration(c,Kp(I(ct),It));return Ot&&p$(Ot,Ht=>dC.createCallHierarchyItem(c,Ht))}function ut(ct,It){P();let Ot=I(ct),Ht=f$(dC.resolveCallHierarchyDeclaration(c,It===0?Ot:Kp(Ot,It)));return Ht?dC.getIncomingCalls(c,Ht,g):[]}function Qt(ct,It){P();let Ot=I(ct),Ht=f$(dC.resolveCallHierarchyDeclaration(c,It===0?Ot:Kp(Ot,It)));return Ht?dC.getOutgoingCalls(c,Ht):[]}function Zr(ct,It,Ot=vd){P();let Ht=I(ct);return QH.provideInlayHints(fe(Ht,It,Ot))}function jr(ct,It,Ot,Ht,hr){return KH.mapCode(o.getCurrentSourceFile(ct),It,Ot,e,vl.getFormatContext(Ht,e),hr)}let Jr={dispose:$,cleanupSemanticCache:z,getSyntacticDiagnostics:X,getSemanticDiagnostics:U,getRegionSemanticDiagnostics:_e,getSuggestionDiagnostics:H,getCompilerOptionsDiagnostics:Se,getSyntacticClassifications:_i,getSemanticClassifications:zn,getEncodedSyntacticClassifications:qe,getEncodedSemanticClassifications:Sn,getCompletionsAtPosition:Je,getCompletionEntryDetails:ye,getCompletionEntrySymbol:ee,getSignatureHelpItems:Hr,getQuickInfoAtPosition:ge,getDefinitionAtPosition:Ue,getDefinitionAndBoundSpan:te,getImplementationAtPosition:Ie,getTypeDefinitionAtPosition:Ne,getReferencesAtPosition:St,findReferences:fr,getFileReferences:Mr,getDocumentHighlights:xe,getNameOrDottedNameSpan:us,getBreakpointStatementAtPosition:At,getNavigateToItems:ft,getRenameInfo:Ae,getSmartSelectionRange:j,findRenameLocations:Qe,getNavigationBarItems:Un,getNavigationTree:rs,getOutliningSpans:bt,getTodoComments:ln,getBraceMatchingAtPosition:tn,getIndentationAtPosition:Xn,getFormattingEditsForRange:ei,getFormattingEditsForDocument:Mi,getFormattingEditsAfterKeystroke:js,getDocCommentTemplateAtPosition:pt,isValidBraceCompletionAtPosition:Z,getJsxClosingTagAtPosition:Ee,getLinkedEditingRangeAtPosition:et,getSpanOfEnclosingComment:Gt,getCodeFixesAtPosition:oa,getCombinedCodeFix:wr,applyCodeActionCommand:Mt,organizeImports:Ds,getEditsForFileRename:tt,getEmitOutput:qt,getNonBoundSourceFile:bi,getProgram:F,getCurrentProgram:()=>c,getAutoImportProvider:O,updateIsDefinitionOfReferencedSymbols:W,getApplicableRefactors:je,getEditsForRefactor:vt,getMoveToRefactoringFileSuggestions:q,toLineColumnOffset:jt,getSourceMapper:()=>x,clearSourceMapperCache:()=>x.clearCache(),prepareCallHierarchy:Ce,provideCallHierarchyIncomingCalls:ut,provideCallHierarchyOutgoingCalls:Qt,toggleLineComment:Pt,toggleMultilineComment:Le,commentSelection:kt,uncommentSelection:Tt,provideInlayHints:Zr,getSupportedCodeFixes:tH,preparePasteEditsForFile:ke,getPasteEdits:Oe,mapCode:jr};switch(s){case 0:break;case 1:qCe.forEach(ct=>Jr[ct]=()=>{throw new Error(`LanguageService Operation: ${ct} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:qQe.forEach(ct=>Jr[ct]=()=>{throw new Error(`LanguageService Operation: ${ct} not allowed in LanguageServiceMode.Syntactic`)});break;default:w.assertNever(s)}return Jr}function nH(e){return e.nameTable||$Qe(e),e.nameTable}function $Qe(e){let t=e.nameTable=new Map;e.forEachChild(function n(i){if(Be(i)&&!kq(i)&&i.escapedText||s_(i)&&HQe(i)){let s=aA(i);t.set(s,t.get(s)===void 0?i.pos:-1)}else if(zi(i)){let s=i.escapedText;t.set(s,t.get(s)===void 0?i.pos:-1)}if(Ms(i,n),Hf(i))for(let s of i.jsDoc)Ms(s,n)})}function HQe(e){return Ig(e)||e.parent.kind===284||XQe(e)||b6(e)}function LR(e){let t=QQe(e);return t&&(Sa(t.parent)||zS(t.parent))?t:void 0}function QQe(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===168)return XB(e.parent.parent)?e.parent.parent:void 0;case 80:case 296:return XB(e.parent)&&(e.parent.parent.kind===211||e.parent.parent.kind===293)&&e.parent.name===e?e.parent:void 0}}function KQe(e,t){let n=LR(e);if(n){let i=t.getContextualType(n.parent),s=i&&Y5(n,t,i,!1);if(s&&s.length===1)return Ra(s)}return t.getSymbolAtLocation(e)}function Y5(e,t,n,i){let s=vR(e.name);if(!s)return Ke;if(!n.isUnion()){let p=n.getProperty(s);return p?[p]:Ke}let o=Sa(e.parent)||zS(e.parent)?Mn(n.types,p=>!t.isTypeInvalidDueToUnionDiscriminant(p,e.parent)):n.types,c=Ji(o,p=>p.getProperty(s));if(i&&(c.length===0||c.length===n.types.length)){let p=n.getProperty(s);if(p)return[p]}return!o.length&&!c.length?Ji(n.types,p=>p.getProperty(s)):oS(c,eb)}function XQe(e){return e&&e.parent&&e.parent.kind===213&&e.parent.argumentExpression===e}function Xue(e){if(Nl)return Jn(ti(ra(Nl.getExecutingFilePath())),kM(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}Yre(GQe());function $Ce(e,t,n){let i=[];n=N$(n,i);let s=gs(e)?e:[e],o=q4(void 0,void 0,A,n,s,t,!0);return o.diagnostics=Qi(o.diagnostics,i),o}var iH={};it(iH,{spanInSourceFileAtLocation:()=>YQe});function YQe(e,t){if(e.isDeclarationFile)return;let n=Ii(e,t),i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(n.getStart(e)).line>i){let h=Al(n.pos,e);if(!h||e.getLineAndCharacterOfPosition(h.getEnd()).line!==i)return;n=h}if(n.flags&33554432)return;return d(n);function s(h,S){let T=US(h)?aS(h.modifiers,Il):void 0,x=T?ha(e.text,T.end):h.getStart(e);return $c(x,(S||h).getEnd())}function o(h,S){return s(h,YS(S,S.parent,e))}function c(h,S){return h&&i===e.getLineAndCharacterOfPosition(h.getStart(e)).line?d(h):d(S)}function p(h,S,T){if(h){let x=h.indexOf(S);if(x>=0){let I=x,P=x+1;for(;I>0&&T(h[I-1]);)I--;for(;P<h.length&&T(h[P]);)P++;return $c(ha(e.text,h[I].pos),h[P-1].end)}}return s(S)}function u(h){return d(Al(h.pos,e))}function g(h){return d(YS(h,h.parent,e))}function d(h){if(h){let{parent:H}=h;switch(h.kind){case 244:return T(h.declarationList.declarations[0]);case 261:case 173:case 172:return T(h);case 170:return I(h);case 263:case 175:case 174:case 178:case 179:case 177:case 219:case 220:return E(h);case 242:if(bS(h))return F(h);case 269:return O(h);case 300:return O(h.block);case 245:return s(h.expression);case 254:return s(h.getChildAt(0),h.expression);case 248:return o(h,h.expression);case 247:return d(h.statement);case 260:return s(h.getChildAt(0));case 246:return o(h,h.expression);case 257:return d(h.statement);case 253:case 252:return s(h.getChildAt(0),h.label);case 249:return z(h);case 250:return o(h,h.expression);case 251:return W(h);case 256:return o(h,h.expression);case 297:case 298:return d(h.statements[0]);case 259:return O(h.tryBlock);case 258:return s(h,h.expression);case 278:return s(h,h.expression);case 272:return s(h,h.moduleReference);case 273:return s(h,h.moduleSpecifier);case 279:return s(h,h.moduleSpecifier);case 268:if(ly(h)!==1)return;case 264:case 267:case 307:case 209:return s(h);case 255:return d(h.statement);case 171:return p(H.modifiers,h,Il);case 207:case 208:return $(h);case 265:case 266:return;case 27:case 1:return c(Al(h.pos,e));case 28:return u(h);case 19:return U(h);case 20:return _e(h);case 24:return re(h);case 21:return V(h);case 22:return ce(h);case 59:return oe(h);case 32:case 30:return le(h);case 117:return de(h);case 93:case 85:case 98:return g(h);case 165:return ve(h);default:if(uv(h))return X(h);if((h.kind===80||h.kind===231||h.kind===304||h.kind===305)&&uv(H))return s(h);if(h.kind===227){let{left:Se,operatorToken:Je}=h;if(uv(Se))return X(Se);if(Je.kind===64&&uv(h.parent))return s(h);if(Je.kind===28)return d(Se)}if(wg(h))switch(H.kind){case 247:return u(h);case 171:return d(h.parent);case 249:case 251:return s(h);case 227:if(h.parent.operatorToken.kind===28)return s(h);break;case 220:if(h.parent.body===h)return s(h);break}switch(h.parent.kind){case 304:if(h.parent.name===h&&!uv(h.parent.parent))return d(h.parent.initializer);break;case 217:if(h.parent.type===h)return g(h.parent.type);break;case 261:case 170:{let{initializer:Se,type:Je}=h.parent;if(Se===h||Je===h||ry(h.kind))return u(h);break}case 227:{let{left:Se}=h.parent;if(uv(Se)&&h!==Se)return u(h);break}default:if(Fs(h.parent)&&h.parent.type===h)return u(h)}return d(h.parent)}}function S(H){return lu(H.parent)&&H.parent.declarations[0]===H?s(Al(H.pos,e,H.parent),H):s(H)}function T(H){if(H.parent.parent.kind===250)return d(H.parent.parent);let Se=H.parent;if(Ls(H.name))return $(H.name);if(XT(H)&&H.initializer||ri(H,32)||Se.parent.kind===251)return S(H);if(lu(H.parent)&&H.parent.declarations[0]!==H)return d(Al(H.pos,e,H.parent))}function x(H){return!!H.initializer||H.dotDotDotToken!==void 0||ri(H,3)}function I(H){if(Ls(H.name))return $(H.name);if(x(H))return s(H);{let Se=H.parent,Je=Se.parameters.indexOf(H);return w.assert(Je!==-1),Je!==0?I(Se.parameters[Je-1]):d(Se.body)}}function P(H){return ri(H,32)||H.parent.kind===264&&H.kind!==177}function E(H){if(H.body)return P(H)?s(H):d(H.body)}function F(H){let Se=H.statements.length?H.statements[0]:H.getLastToken();return P(H.parent)?c(H.parent,Se):d(Se)}function O(H){switch(H.parent.kind){case 268:if(ly(H.parent)!==1)return;case 248:case 246:case 250:return c(H.parent,H.statements[0]);case 249:case 251:return c(Al(H.pos,e,H.parent),H.statements[0])}return d(H.statements[0])}function W(H){if(H.initializer.kind===262){let Se=H.initializer;if(Se.declarations.length>0)return d(Se.declarations[0])}else return d(H.initializer)}function z(H){if(H.initializer)return W(H);if(H.condition)return s(H.condition);if(H.incrementor)return s(H.incrementor)}function $(H){let Se=or(H.elements,Je=>Je.kind!==233?Je:void 0);return Se?d(Se):H.parent.kind===209?s(H.parent):S(H.parent)}function X(H){w.assert(H.kind!==208&&H.kind!==207);let Se=H.kind===210?H.elements:H.properties,Je=or(Se,ye=>ye.kind!==233?ye:void 0);return Je?d(Je):s(H.parent.kind===227?H.parent:H)}function U(H){switch(H.parent.kind){case 267:let Se=H.parent;return c(Al(H.pos,e,H.parent),Se.members.length?Se.members[0]:Se.getLastToken(e));case 264:let Je=H.parent;return c(Al(H.pos,e,H.parent),Je.members.length?Je.members[0]:Je.getLastToken(e));case 270:return c(H.parent.parent,H.parent.clauses[0])}return d(H.parent)}function _e(H){switch(H.parent.kind){case 269:if(ly(H.parent.parent)!==1)return;case 267:case 264:return s(H);case 242:if(bS(H.parent))return s(H);case 300:return d(Wo(H.parent.statements));case 270:let Se=H.parent,Je=Wo(Se.clauses);return Je?d(Wo(Je.statements)):void 0;case 207:let ye=H.parent;return d(Wo(ye.elements)||ye);default:if(uv(H.parent)){let ee=H.parent;return s(Wo(ee.properties)||ee)}return d(H.parent)}}function re(H){switch(H.parent.kind){case 208:let Se=H.parent;return s(Wo(Se.elements)||Se);default:if(uv(H.parent)){let Je=H.parent;return s(Wo(Je.elements)||Je)}return d(H.parent)}}function V(H){return H.parent.kind===247||H.parent.kind===214||H.parent.kind===215?u(H):H.parent.kind===218?g(H):d(H.parent)}function ce(H){switch(H.parent.kind){case 219:case 263:case 220:case 175:case 174:case 178:case 179:case 177:case 248:case 247:case 249:case 251:case 214:case 215:case 218:return u(H);default:return d(H.parent)}}function oe(H){return Fs(H.parent)||H.parent.kind===304||H.parent.kind===170?u(H):d(H.parent)}function le(H){return H.parent.kind===217?g(H):d(H.parent)}function de(H){return H.parent.kind===247?o(H,H.parent.expression):d(H.parent)}function ve(H){return H.parent.kind===251?g(H):d(H.parent)}}}var dC={};it(dC,{createCallHierarchyItem:()=>Yue,getIncomingCalls:()=>aKe,getOutgoingCalls:()=>gKe,resolveCallHierarchyDeclaration:()=>twe});function ZQe(e){return(Ao(e)||Zc(e))&&Vl(e)}function HCe(e){return hs(e)||li(e)}function WR(e){return(Ao(e)||Fo(e)||Zc(e))&&HCe(e.parent)&&e===e.parent.initializer&&Be(e.parent.name)&&(!!(Kh(e.parent)&2)||hs(e.parent))}function QCe(e){return Li(e)||el(e)||Gc(e)||Ao(e)||hl(e)||Zc(e)||zc(e)||hc(e)||jd(e)||B_(e)||uf(e)}function nD(e){return Li(e)||el(e)&&Be(e.name)||Gc(e)||hl(e)||zc(e)||hc(e)||jd(e)||B_(e)||uf(e)||ZQe(e)||WR(e)}function KCe(e){return Li(e)?e:Vl(e)?e.name:WR(e)?e.parent.name:w.checkDefined(e.modifiers&&Bn(e.modifiers,XCe))}function XCe(e){return e.kind===90}function YCe(e,t){let n=KCe(t);return n&&e.getSymbolAtLocation(n)}function eKe(e,t){if(Li(t))return{text:t.fileName,pos:0,end:0};if((Gc(t)||hl(t))&&!Vl(t)){let s=t.modifiers&&Bn(t.modifiers,XCe);if(s)return{text:"default",pos:s.getStart(),end:s.getEnd()}}if(zc(t)){let s=t.getSourceFile(),o=ha(s.text,Um(t).pos),c=o+6,p=e.getTypeChecker(),u=p.getSymbolAtLocation(t.parent);return{text:`${u?`${p.symbolToString(u,t.parent)} `:""}static {}`,pos:o,end:c}}let n=WR(t)?t.parent.name:w.checkDefined(Ss(t),"Expected call hierarchy item to have a name"),i=Be(n)?Fn(n):s_(n)?n.text:na(n)&&s_(n.expression)?n.expression.text:void 0;if(i===void 0){let s=e.getTypeChecker(),o=s.getSymbolAtLocation(n);o&&(i=s.symbolToString(o,t))}if(i===void 0){let s=sV();i=Fw(o=>s.writeNode(4,t,t.getSourceFile(),o))}return{text:i,pos:n.getStart(),end:n.getEnd()}}function tKe(e){var t,n,i,s;if(WR(e))return hs(e.parent)&&ni(e.parent.parent)?Zc(e.parent.parent)?(t=rF(e.parent.parent))==null?void 0:t.getText():(n=e.parent.parent.name)==null?void 0:n.getText():Qm(e.parent.parent.parent.parent)&&Be(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 178:case 179:case 175:return e.parent.kind===211?(i=rF(e.parent))==null?void 0:i.getText():(s=Ss(e.parent))==null?void 0:s.getText();case 263:case 264:case 268:if(Qm(e.parent)&&Be(e.parent.parent.name))return e.parent.parent.name.getText()}}function ZCe(e,t){if(t.body)return t;if(yc(t))return _h(t.parent);if(Gc(t)||hc(t)){let n=YCe(e,t);return n&&n.valueDeclaration&&yo(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return t}function ewe(e,t){let n=YCe(e,t),i;if(n&&n.declarations){let s=NO(n.declarations),o=kr(n.declarations,u=>({file:u.getSourceFile().fileName,pos:u.pos}));s.sort((u,g)=>Eu(o[u].file,o[g].file)||o[u].pos-o[g].pos);let c=kr(s,u=>n.declarations[u]),p;for(let u of c)nD(u)&&((!p||p.parent!==u.parent||p.end!==u.pos)&&(i=Fr(i,u)),p=u)}return i}function sH(e,t){return zc(t)?t:yo(t)?ZCe(e,t)??ewe(e,t)??t:ewe(e,t)??t}function twe(e,t){let n=e.getTypeChecker(),i=!1;for(;;){if(nD(t))return sH(n,t);if(QCe(t)){let s=vr(t,nD);return s&&sH(n,s)}if(Ig(t)){if(nD(t.parent))return sH(n,t.parent);if(QCe(t.parent)){let s=vr(t.parent,nD);return s&&sH(n,s)}return HCe(t.parent)&&t.parent.initializer&&WR(t.parent.initializer)?t.parent.initializer:void 0}if(yc(t))return nD(t.parent)?t.parent:void 0;if(t.kind===126&&zc(t.parent)){t=t.parent;continue}if(li(t)&&t.initializer&&WR(t.initializer))return t.initializer;if(!i){let s=n.getSymbolAtLocation(t);if(s&&(s.flags&2097152&&(s=n.getAliasedSymbol(s)),s.valueDeclaration)){i=!0,t=s.valueDeclaration;continue}}return}}function Yue(e,t){let n=t.getSourceFile(),i=eKe(e,t),s=tKe(t),o=XS(t),c=DE(t),p=$c(ha(n.text,t.getFullStart(),!1,!0),t.getEnd()),u=$c(i.pos,i.end);return{file:n.fileName,kind:o,kindModifiers:c,name:i.text,containerName:s,span:p,selectionSpan:u}}function rKe(e){return e!==void 0}function nKe(e){if(e.kind===jo.EntryKind.Node){let{node:t}=e;if(vq(t,!0,!0)||Ice(t,!0,!0)||Dce(t,!0,!0)||Pce(t,!0,!0)||UI(t)||xq(t)){let n=t.getSourceFile();return{declaration:vr(t,nD)||n,range:Wq(t,n)}}}}function rwe(e){return qa(e.declaration)}function iKe(e,t){return{from:e,fromSpans:t}}function sKe(e,t){return iKe(Yue(e,t[0].declaration),kr(t,n=>pv(n.range)))}function aKe(e,t,n){if(Li(t)||el(t)||zc(t))return[];let i=KCe(t),s=Mn(jo.findReferenceOrRenameEntries(e,n,e.getSourceFiles(),i,0,{use:jo.FindReferencesUse.References},nKe),rKe);return s?vw(s,rwe,o=>sKe(e,o)):[]}function oKe(e,t){function n(s){let o=U0(s)?s.tag:Qu(s)?s.tagName:Oo(s)||zc(s)?s:s.expression,c=twe(e,o);if(c){let p=Wq(o,s.getSourceFile());if(gs(c))for(let u of c)t.push({declaration:u,range:p});else t.push({declaration:c,range:p})}}function i(s){if(s&&!(s.flags&33554432)){if(nD(s)){if(ni(s))for(let o of s.members)o.name&&na(o.name)&&i(o.name.expression);return}switch(s.kind){case 80:case 272:case 273:case 279:case 265:case 266:return;case 176:n(s);return;case 217:case 235:i(s.expression);return;case 261:case 170:i(s.name),i(s.initializer);return;case 214:n(s),i(s.expression),or(s.arguments,i);return;case 215:n(s),i(s.expression),or(s.arguments,i);return;case 216:n(s),i(s.tag),i(s.template);return;case 287:case 286:n(s),i(s.tagName),i(s.attributes);return;case 171:n(s),i(s.expression);return;case 212:case 213:n(s),Ms(s,i);break;case 239:i(s.expression);return}Wm(s)||Ms(s,i)}}return i}function cKe(e,t){or(e.statements,t)}function lKe(e,t){!ri(e,128)&&e.body&&Qm(e.body)&&or(e.body.statements,t)}function uKe(e,t,n){let i=ZCe(e,t);i&&(or(i.parameters,n),n(i.body))}function pKe(e,t){t(e.body)}function fKe(e,t){or(e.modifiers,t);let n=CS(e);n&&t(n.expression);for(let i of e.members)yd(i)&&or(i.modifiers,t),hs(i)?t(i.initializer):yc(i)&&i.body?(or(i.parameters,t),t(i.body)):zc(i)&&t(i)}function _Ke(e,t){let n=[],i=oKe(e,n);switch(t.kind){case 308:cKe(t,i);break;case 268:lKe(t,i);break;case 263:case 219:case 220:case 175:case 178:case 179:uKe(e.getTypeChecker(),t,i);break;case 264:case 232:fKe(t,i);break;case 176:pKe(t,i);break;default:w.assertNever(t)}return n}function dKe(e,t){return{to:e,fromSpans:t}}function mKe(e,t){return dKe(Yue(e,t[0].declaration),kr(t,n=>pv(n.range)))}function gKe(e,t){return t.flags&33554432||jd(t)?[]:vw(_Ke(e,t),rwe,n=>mKe(e,n))}var Zue={};it(Zue,{v2020:()=>nwe});var nwe={};it(nwe,{TokenEncodingConsts:()=>ACe,TokenModifier:()=>NCe,TokenType:()=>ECe,getEncodedSemanticClassifications:()=>que,getSemanticClassifications:()=>MCe});var tp={};it(tp,{PreserveOptionalFlags:()=>hAe,addNewNodeForMemberSymbol:()=>yAe,codeFixAll:()=>co,createCodeFixAction:()=>Us,createCodeFixActionMaybeFixAll:()=>rpe,createCodeFixActionWithoutFixAll:()=>dm,createCombinedCodeActions:()=>mC,createFileTextChanges:()=>iwe,createImportAdder:()=>iT,createImportSpecifierResolver:()=>CXe,createMissingMemberNodes:()=>kfe,createSignatureDeclarationFromCallExpression:()=>xfe,createSignatureDeclarationFromSignature:()=>EH,createStubbedBody:()=>sL,eachDiagnostic:()=>gC,findAncestorMatchingSpan:()=>Efe,generateAccessorFromProperty:()=>wAe,getAccessorConvertiblePropertyAtPosition:()=>PAe,getAllFixes:()=>bKe,getFixes:()=>vKe,getImportCompletionAction:()=>wXe,getImportKind:()=>gH,getJSDocTypedefNodes:()=>kXe,getNoopSymbolTrackerWithResolver:()=>sD,getPromoteTypeOnlyCompletionAction:()=>IXe,getSupportedErrorCodes:()=>hKe,importFixName:()=>wIe,importSymbols:()=>Wk,parameterShouldGetTypeFromJSDoc:()=>Owe,registerCodeFix:()=>aa,setJsonCompilerOptionValue:()=>Pfe,setJsonCompilerOptionValues:()=>Dfe,tryGetAutoImportableReferenceFromTypeNode:()=>sT,typeNodeToAutoImportableTypeNode:()=>Cfe,typePredicateToAutoImportableTypeNode:()=>SAe,typeToAutoImportableTypeNode:()=>NH,typeToMinimizedReferenceType:()=>bAe});var epe=od(),tpe=new Map;function dm(e,t,n){return npe(e,ZS(n),t,void 0,void 0)}function Us(e,t,n,i,s,o){return npe(e,ZS(n),t,i,ZS(s),o)}function rpe(e,t,n,i,s,o){return npe(e,ZS(n),t,i,s&&ZS(s),o)}function npe(e,t,n,i,s,o){return{fixName:e,description:t,changes:n,fixId:i,fixAllDescription:s,commands:o?[o]:void 0}}function aa(e){for(let t of e.errorCodes)ipe=void 0,epe.add(String(t),e);if(e.fixIds)for(let t of e.fixIds)w.assert(!tpe.has(t)),tpe.set(t,e)}var ipe;function hKe(){return ipe??(ipe=ds(epe.keys()))}function yKe(e,t){let{errorCodes:n}=e,i=0;for(let o of t)if(ws(n,o.code)&&i++,i>1)break;let s=i<2;return({fixId:o,fixAllDescription:c,...p})=>s?p:{...p,fixId:o,fixAllDescription:c}}function vKe(e){let t=swe(e),n=epe.get(String(e.errorCode));return Ma(n,i=>kr(i.getCodeActions(e),yKe(i,t)))}function bKe(e){return tpe.get(Zs(e.fixId,Is)).getAllCodeActions(e)}function mC(e,t){return{changes:e,commands:t}}function iwe(e,t){return{fileName:e,textChanges:t}}function co(e,t,n){let i=[],s=gn.ChangeTracker.with(e,o=>gC(e,t,c=>n(o,c,i)));return mC(s,i.length===0?void 0:i)}function gC(e,t,n){for(let i of swe(e))ws(t,i.code)&&n(i)}function swe({program:e,sourceFile:t,cancellationToken:n}){let i=[...e.getSemanticDiagnostics(t,n),...e.getSyntacticDiagnostics(t,n),...D$(t,e,n)];return lf(e.getCompilerOptions())&&i.push(...e.getDeclarationDiagnostics(t,n)),i}var spe="addConvertToUnknownForNonOverlappingTypes",awe=[_.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];aa({errorCodes:awe,getCodeActions:function(t){let n=cwe(t.sourceFile,t.span.start);if(n===void 0)return;let i=gn.ChangeTracker.with(t,s=>owe(s,t.sourceFile,n));return[Us(spe,i,_.Add_unknown_conversion_for_non_overlapping_types,spe,_.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[spe],getAllCodeActions:e=>co(e,awe,(t,n)=>{let i=cwe(n.file,n.start);i&&owe(t,n.file,i)})});function owe(e,t,n){let i=mI(n)?A.createAsExpression(n.expression,A.createKeywordTypeNode(159)):A.createTypeAssertion(A.createKeywordTypeNode(159),n.expression);e.replaceNode(t,n.expression,i)}function cwe(e,t){if(!dn(e))return vr(Ii(e,t),n=>mI(n)||p7(n))}aa({errorCodes:[_.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,_.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,_.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(t){let{sourceFile:n}=t,i=gn.ChangeTracker.with(t,s=>{let o=A.createExportDeclaration(void 0,!1,A.createNamedExports([]),void 0);s.insertNodeAtEndOfScope(n,n,o)});return[dm("addEmptyExportDeclaration",i,_.Add_export_to_make_this_file_into_a_module)]}});var ape="addMissingAsync",lwe=[_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_.Type_0_is_not_assignable_to_type_1.code,_.Type_0_is_not_comparable_to_type_1.code];aa({fixIds:[ape],errorCodes:lwe,getCodeActions:function(t){let{sourceFile:n,errorCode:i,cancellationToken:s,program:o,span:c}=t,p=Bn(o.getTypeChecker().getDiagnostics(n,s),TKe(c,i)),u=p&&p.relatedInformation&&Bn(p.relatedInformation,h=>h.code===_.Did_you_mean_to_mark_this_function_as_async.code),g=pwe(n,u);return g?[uwe(t,g,h=>gn.ChangeTracker.with(t,h))]:void 0},getAllCodeActions:e=>{let{sourceFile:t}=e,n=new Set;return co(e,lwe,(i,s)=>{let o=s.relatedInformation&&Bn(s.relatedInformation,u=>u.code===_.Did_you_mean_to_mark_this_function_as_async.code),c=pwe(t,o);return c?uwe(e,c,u=>(u(i),[]),n):void 0})}});function uwe(e,t,n,i){let s=n(o=>SKe(o,e.sourceFile,t,i));return Us(ape,s,_.Add_async_modifier_to_containing_function,ape,_.Add_all_missing_async_modifiers)}function SKe(e,t,n,i){if(i&&i.has(qa(n)))return;i?.add(qa(n));let s=A.replaceModifiers(to(n,!0),A.createNodeArray(A.createModifiersFromModifierFlags(Xy(n)|1024)));e.replaceNode(t,n,s)}function pwe(e,t){if(!t)return;let n=Ii(e,t.start);return vr(n,s=>s.getStart(e)<t.start||s.getEnd()>mc(t)?"quit":(Fo(s)||hc(s)||Ao(s)||Gc(s))&&KI(t,Np(s,e)))}function TKe(e,t){return({start:n,length:i,relatedInformation:s,code:o})=>Yv(n)&&Yv(i)&&KI({start:n,length:i},e)&&o===t&&!!s&&_t(s,c=>c.code===_.Did_you_mean_to_mark_this_function_as_async.code)}var ope="addMissingAwait",fwe=_.Property_0_does_not_exist_on_type_1.code,_we=[_.This_expression_is_not_callable.code,_.This_expression_is_not_constructable.code],cpe=[_.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,_.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,_.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,_.Operator_0_cannot_be_applied_to_type_1.code,_.Operator_0_cannot_be_applied_to_types_1_and_2.code,_.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,_.This_condition_will_always_return_true_since_this_0_is_always_defined.code,_.Type_0_is_not_an_array_type.code,_.Type_0_is_not_an_array_type_or_a_string_type.code,_.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,_.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,_.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,_.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,_.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,fwe,..._we];aa({fixIds:[ope],errorCodes:cpe,getCodeActions:function(t){let{sourceFile:n,errorCode:i,span:s,cancellationToken:o,program:c}=t,p=dwe(n,i,s,o,c);if(!p)return;let u=t.program.getTypeChecker(),g=d=>gn.ChangeTracker.with(t,d);return cM([mwe(t,p,i,u,g),gwe(t,p,i,u,g)])},getAllCodeActions:e=>{let{sourceFile:t,program:n,cancellationToken:i}=e,s=e.program.getTypeChecker(),o=new Set;return co(e,cpe,(c,p)=>{let u=dwe(t,p.code,p,i,n);if(!u)return;let g=d=>(d(c),[]);return mwe(e,u,p.code,s,g,o)||gwe(e,u,p.code,s,g,o)})}});function dwe(e,t,n,i,s){let o=u$(e,n);return o&&kKe(e,t,n,i,s)&&hwe(o)?o:void 0}function mwe(e,t,n,i,s,o){let{sourceFile:c,program:p,cancellationToken:u}=e,g=xKe(t,c,u,p,i);if(g){let d=s(h=>{or(g.initializers,({expression:S})=>lpe(h,n,c,i,S,o)),o&&g.needsSecondPassForFixAll&&lpe(h,n,c,i,t,o)});return dm("addMissingAwaitToInitializer",d,g.initializers.length===1?[_.Add_await_to_initializer_for_0,g.initializers[0].declarationSymbol.name]:_.Add_await_to_initializers)}}function gwe(e,t,n,i,s,o){let c=s(p=>lpe(p,n,e.sourceFile,i,t,o));return Us(ope,c,_.Add_await,ope,_.Fix_all_expressions_possibly_missing_await)}function kKe(e,t,n,i,s){let c=s.getTypeChecker().getDiagnostics(e,i);return _t(c,({start:p,length:u,relatedInformation:g,code:d})=>Yv(p)&&Yv(u)&&KI({start:p,length:u},n)&&d===t&&!!g&&_t(g,h=>h.code===_.Did_you_forget_to_use_await.code))}function xKe(e,t,n,i,s){let o=CKe(e,s);if(!o)return;let c=o.isCompleteFix,p;for(let u of o.identifiers){let g=s.getSymbolAtLocation(u);if(!g)continue;let d=Hn(g.valueDeclaration,li),h=d&&Hn(d.name,Be),S=j0(d,244);if(!d||!S||d.type||!d.initializer||S.getSourceFile()!==t||ri(S,32)||!h||!hwe(d.initializer)){c=!1;continue}let T=i.getSemanticDiagnostics(t,n);if(jo.Core.eachSymbolReferenceInFile(h,s,t,I=>u!==I&&!wKe(I,T,t,s))){c=!1;continue}(p||(p=[])).push({expression:d.initializer,declarationSymbol:g})}return p&&{initializers:p,needsSecondPassForFixAll:!c}}function CKe(e,t){if(Ln(e.parent)&&Be(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Be(e))return{identifiers:[e],isCompleteFix:!0};if(vn(e)){let n,i=!0;for(let s of[e.left,e.right]){let o=t.getTypeAtLocation(s);if(t.getPromisedTypeOfPromise(o)){if(!Be(s)){i=!1;continue}(n||(n=[])).push(s)}}return n&&{identifiers:n,isCompleteFix:i}}}function wKe(e,t,n,i){let s=Ln(e.parent)?e.parent.name:vn(e.parent)?e.parent:e,o=Bn(t,c=>c.start===s.getStart(n)&&c.start+c.length===s.getEnd());return o&&ws(cpe,o.code)||i.getTypeAtLocation(s).flags&1}function hwe(e){return e.flags&65536||!!vr(e,t=>t.parent&&Fo(t.parent)&&t.parent.body===t||Bs(t)&&(t.parent.kind===263||t.parent.kind===219||t.parent.kind===220||t.parent.kind===175))}function lpe(e,t,n,i,s,o){if(p4(s.parent)&&!s.parent.awaitModifier){let c=i.getTypeAtLocation(s),p=i.getAnyAsyncIterableType();if(p&&i.isTypeAssignableTo(c,p)){let u=s.parent;e.replaceNode(n,u,A.updateForOfStatement(u,A.createToken(135),u.initializer,u.expression,u.statement));return}}if(vn(s))for(let c of[s.left,s.right]){if(o&&Be(c)){let g=i.getSymbolAtLocation(c);if(g&&o.has(sa(g)))continue}let p=i.getTypeAtLocation(c),u=i.getPromisedTypeOfPromise(p)?A.createAwaitExpression(c):c;e.replaceNode(n,c,u)}else if(t===fwe&&Ln(s.parent)){if(o&&Be(s.parent.expression)){let c=i.getSymbolAtLocation(s.parent.expression);if(c&&o.has(sa(c)))return}e.replaceNode(n,s.parent.expression,A.createParenthesizedExpression(A.createAwaitExpression(s.parent.expression))),ywe(e,s.parent.expression,n)}else if(ws(_we,t)&&Om(s.parent)){if(o&&Be(s)){let c=i.getSymbolAtLocation(s);if(c&&o.has(sa(c)))return}e.replaceNode(n,s,A.createParenthesizedExpression(A.createAwaitExpression(s))),ywe(e,s,n)}else{if(o&&li(s.parent)&&Be(s.parent.name)){let c=i.getSymbolAtLocation(s.parent.name);if(c&&!Uy(o,sa(c)))return}e.replaceNode(n,s,A.createAwaitExpression(s))}}function ywe(e,t,n){let i=Al(t.pos,n);i&&T5(i.end,i.parent,n)&&e.insertText(n,t.getStart(n),";")}var upe="addMissingConst",vwe=[_.Cannot_find_name_0.code,_.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];aa({errorCodes:vwe,getCodeActions:function(t){let n=gn.ChangeTracker.with(t,i=>bwe(i,t.sourceFile,t.span.start,t.program));if(n.length>0)return[Us(upe,n,_.Add_const_to_unresolved_variable,upe,_.Add_const_to_all_unresolved_variables)]},fixIds:[upe],getAllCodeActions:e=>{let t=new Set;return co(e,vwe,(n,i)=>bwe(n,i.file,i.start,e.program,t))}});function bwe(e,t,n,i,s){let o=Ii(t,n),c=vr(o,g=>KT(g.parent)?g.parent.initializer===g:IKe(g)?!1:"quit");if(c)return aH(e,c,t,s);let p=o.parent;if(vn(p)&&p.operatorToken.kind===64&&Ql(p.parent))return aH(e,o,t,s);if(Tu(p)){let g=i.getTypeChecker();return Fi(p.elements,d=>DKe(d,g))?aH(e,p,t,s):void 0}let u=vr(o,g=>Ql(g.parent)?!0:PKe(g)?!1:"quit");if(u){let g=i.getTypeChecker();return Swe(u,g)?aH(e,u,t,s):void 0}}function aH(e,t,n,i){(!i||Uy(i,t))&&e.insertModifierBefore(n,87,t)}function IKe(e){switch(e.kind){case 80:case 210:case 211:case 304:case 305:return!0;default:return!1}}function DKe(e,t){let n=Be(e)?e:Hl(e,!0)&&Be(e.left)?e.left:void 0;return!!n&&!t.getSymbolAtLocation(n)}function PKe(e){switch(e.kind){case 80:case 227:case 28:return!0;default:return!1}}function Swe(e,t){return vn(e)?e.operatorToken.kind===28?Fi([e.left,e.right],n=>Swe(n,t)):e.operatorToken.kind===64&&Be(e.left)&&!t.getSymbolAtLocation(e.left):!1}var ppe="addMissingDeclareProperty",Twe=[_.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];aa({errorCodes:Twe,getCodeActions:function(t){let n=gn.ChangeTracker.with(t,i=>kwe(i,t.sourceFile,t.span.start));if(n.length>0)return[Us(ppe,n,_.Prefix_with_declare,ppe,_.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[ppe],getAllCodeActions:e=>{let t=new Set;return co(e,Twe,(n,i)=>kwe(n,i.file,i.start,t))}});function kwe(e,t,n,i){let s=Ii(t,n);if(!Be(s))return;let o=s.parent;o.kind===173&&(!i||Uy(i,o))&&e.insertModifierBefore(t,138,o)}var fpe="addMissingInvocationForDecorator",xwe=[_._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];aa({errorCodes:xwe,getCodeActions:function(t){let n=gn.ChangeTracker.with(t,i=>Cwe(i,t.sourceFile,t.span.start));return[Us(fpe,n,_.Call_decorator_expression,fpe,_.Add_to_all_uncalled_decorators)]},fixIds:[fpe],getAllCodeActions:e=>co(e,xwe,(t,n)=>Cwe(t,n.file,n.start))});function Cwe(e,t,n){let i=Ii(t,n),s=vr(i,Il);w.assert(!!s,"Expected position to be owned by a decorator.");let o=A.createCallExpression(s.expression,void 0,void 0);e.replaceNode(t,s.expression,o)}var _pe="addMissingResolutionModeImportAttribute",wwe=[_.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code,_.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code];aa({errorCodes:wwe,getCodeActions:function(t){let n=gn.ChangeTracker.with(t,i=>Iwe(i,t.sourceFile,t.span.start,t.program,t.host,t.preferences));return[Us(_pe,n,_.Add_resolution_mode_import_attribute,_pe,_.Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it)]},fixIds:[_pe],getAllCodeActions:e=>co(e,wwe,(t,n)=>Iwe(t,n.file,n.start,e.program,e.host,e.preferences))});function Iwe(e,t,n,i,s,o){var c,p,u;let g=Ii(t,n),d=vr(g,vf(ac,Hm));w.assert(!!d,"Expected position to be owned by an ImportDeclaration or ImportType.");let h=Mf(t,o)===0,S=_2(d),T=!S||((c=Pk(S.text,t.fileName,i.getCompilerOptions(),s,i.getModuleResolutionCache(),void 0,99).resolvedModule)==null?void 0:c.resolvedFileName)===((u=(p=i.getResolvedModuleFromModuleSpecifier(S,t))==null?void 0:p.resolvedModule)==null?void 0:u.resolvedFileName),x=d.attributes?A.updateImportAttributes(d.attributes,A.createNodeArray([...d.attributes.elements,A.createImportAttribute(A.createStringLiteral("resolution-mode",h),A.createStringLiteral(T?"import":"require",h))],d.attributes.elements.hasTrailingComma),d.attributes.multiLine):A.createImportAttributes(A.createNodeArray([A.createImportAttribute(A.createStringLiteral("resolution-mode",h),A.createStringLiteral(T?"import":"require",h))]));d.kind===273?e.replaceNode(t,d,A.updateImportDeclaration(d,d.modifiers,d.importClause,d.moduleSpecifier,x)):e.replaceNode(t,d,A.updateImportTypeNode(d,d.argument,x,d.qualifier,d.typeArguments))}var dpe="addNameToNamelessParameter",Dwe=[_.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];aa({errorCodes:Dwe,getCodeActions:function(t){let n=gn.ChangeTracker.with(t,i=>Pwe(i,t.sourceFile,t.span.start));return[Us(dpe,n,_.Add_parameter_name,dpe,_.Add_names_to_all_parameters_without_names)]},fixIds:[dpe],getAllCodeActions:e=>co(e,Dwe,(t,n)=>Pwe(t,n.file,n.start))});function Pwe(e,t,n){let i=Ii(t,n),s=i.parent;if(!Gi(s))return w.fail("Tried to add a parameter name to a non-parameter: "+w.formatSyntaxKind(i.kind));let o=s.parent.parameters.indexOf(s);w.assert(!s.type,"Tried to add a parameter name to a parameter that already had one."),w.assert(o>-1,"Parameter not found in parent parameter list.");let c=s.name.getEnd(),p=A.createTypeReferenceNode(s.name,void 0),u=Awe(t,s);for(;u;)p=A.createArrayTypeNode(p),c=u.getEnd(),u=Awe(t,u);let g=A.createParameterDeclaration(s.modifiers,s.dotDotDotToken,"arg"+o,s.questionToken,s.dotDotDotToken&&!l4(p)?A.createArrayTypeNode(p):p,s.initializer);e.replaceRange(t,O_(s.getStart(t),c),g)}function Awe(e,t){let n=YS(t.name,t.parent,e);if(n&&n.kind===23&&ov(n.parent)&&Gi(n.parent.parent))return n.parent.parent}var Ewe="addOptionalPropertyUndefined",AKe=[_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code];aa({errorCodes:AKe,getCodeActions(e){let t=e.program.getTypeChecker(),n=EKe(e.sourceFile,e.span,t);if(!n.length)return;let i=gn.ChangeTracker.with(e,s=>MKe(s,n));return[dm(Ewe,i,_.Add_undefined_to_optional_property_type)]},fixIds:[Ewe]});function EKe(e,t,n){var i,s;let o=Nwe(u$(e,t),n);if(!o)return Ke;let{source:c,target:p}=o,u=NKe(c,p,n)?n.getTypeAtLocation(p.expression):n.getTypeAtLocation(p);return(s=(i=u.symbol)==null?void 0:i.declarations)!=null&&s.some(g=>Nr(g).fileName.match(/\.d\.ts$/))?Ke:n.getExactOptionalProperties(u)}function NKe(e,t,n){return Ln(t)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(t.expression)).length&&n.getTypeAtLocation(e)===n.getUndefinedType()}function Nwe(e,t){var n;if(e){if(vn(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(li(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(Ws(e.parent)){let i=t.getSymbolAtLocation(e.parent.expression);if(!i?.valueDeclaration||!r2(i.valueDeclaration.kind)||!ht(e))return;let s=e.parent.arguments.indexOf(e);if(s===-1)return;let o=i.valueDeclaration.parameters[s].name;if(Be(o))return{source:e,target:o}}else if(yl(e.parent)&&Be(e.parent.name)||Fu(e.parent)){let i=Nwe(e.parent.parent,t);if(!i)return;let s=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),o=(n=s?.declarations)==null?void 0:n[0];return o?{source:yl(e.parent)?e.parent.initializer:e.parent.name,target:o}:void 0}}else return}function MKe(e,t){for(let n of t){let i=n.valueDeclaration;if(i&&(mp(i)||hs(i))&&i.type){let s=A.createUnionTypeNode([...i.type.kind===193?i.type.types:[i.type],A.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,s)}}}var mpe="annotateWithTypeFromJSDoc",Mwe=[_.JSDoc_types_may_be_moved_to_TypeScript_types.code];aa({errorCodes:Mwe,getCodeActions(e){let t=Rwe(e.sourceFile,e.span.start);if(!t)return;let n=gn.ChangeTracker.with(e,i=>jwe(i,e.sourceFile,t));return[Us(mpe,n,_.Annotate_with_type_from_JSDoc,mpe,_.Annotate_everything_with_types_from_JSDoc)]},fixIds:[mpe],getAllCodeActions:e=>co(e,Mwe,(t,n)=>{let i=Rwe(n.file,n.start);i&&jwe(t,n.file,i)})});function Rwe(e,t){let n=Ii(e,t);return Hn(Gi(n.parent)?n.parent.parent:n.parent,Owe)}function Owe(e){return RKe(e)&&Fwe(e)}function Fwe(e){return yo(e)?e.parameters.some(Fwe)||!e.type&&!!PM(e):!e.type&&!!qy(e)}function jwe(e,t,n){if(yo(n)&&(PM(n)||n.parameters.some(i=>!!qy(i)))){if(!n.typeParameters){let s=_8(n);s.length&&e.insertTypeParameters(t,n,s)}let i=Fo(n)&&!lo(n,21,t);i&&e.insertNodeBefore(t,Ra(n.parameters),A.createToken(21));for(let s of n.parameters)if(!s.type){let o=qy(s);o&&e.tryInsertTypeAnnotation(t,s,rt(o,nT,yi))}if(i&&e.insertNodeAfter(t,ka(n.parameters),A.createToken(22)),!n.type){let s=PM(n);s&&e.tryInsertTypeAnnotation(t,n,rt(s,nT,yi))}}else{let i=w.checkDefined(qy(n),"A JSDocType for this declaration should exist");w.assert(!n.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,n,rt(i,nT,yi))}}function RKe(e){return yo(e)||e.kind===261||e.kind===172||e.kind===173}function nT(e){switch(e.kind){case 313:case 314:return A.createTypeReferenceNode("any",Ke);case 317:return FKe(e);case 316:return nT(e.type);case 315:return jKe(e);case 319:return LKe(e);case 318:return WKe(e);case 184:return zKe(e);case 323:return OKe(e);default:let t=Pr(e,nT,void 0);return yn(t,1),t}}function OKe(e){let t=A.createTypeLiteralNode(kr(e.jsDocPropertyTags,n=>A.createPropertySignature(void 0,Be(n.name)?n.name:n.name.right,X6(n)?A.createToken(58):void 0,n.typeExpression&&rt(n.typeExpression.type,nT,yi)||A.createKeywordTypeNode(133))));return yn(t,1),t}function FKe(e){return A.createUnionTypeNode([rt(e.type,nT,yi),A.createTypeReferenceNode("undefined",Ke)])}function jKe(e){return A.createUnionTypeNode([rt(e.type,nT,yi),A.createTypeReferenceNode("null",Ke)])}function LKe(e){return A.createArrayTypeNode(rt(e.type,nT,yi))}function WKe(e){return A.createFunctionTypeNode(Ke,e.parameters.map(BKe),e.type??A.createKeywordTypeNode(133))}function BKe(e){let t=e.parent.parameters.indexOf(e),n=e.type.kind===319&&t===e.parent.parameters.length-1,i=e.name||(n?"rest":"arg"+t),s=n?A.createToken(26):e.dotDotDotToken;return A.createParameterDeclaration(e.modifiers,s,i,e.questionToken,rt(e.type,nT,yi),e.initializer)}function zKe(e){let t=e.typeName,n=e.typeArguments;if(Be(e.typeName)){if(HF(e))return GKe(e);let i=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1);break}t=A.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?n=A.createNodeArray([A.createTypeReferenceNode("any",Ke)]):n=Br(e.typeArguments,nT,yi)}return A.createTypeReferenceNode(t,n)}function GKe(e){let t=A.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,A.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),n=A.createTypeLiteralNode([A.createIndexSignature(void 0,[t],e.typeArguments[1])]);return yn(n,1),n}var gpe="convertFunctionToEs6Class",Lwe=[_.This_constructor_function_may_be_converted_to_a_class_declaration.code];aa({errorCodes:Lwe,getCodeActions(e){let t=gn.ChangeTracker.with(e,n=>Wwe(n,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[Us(gpe,t,_.Convert_function_to_an_ES2015_class,gpe,_.Convert_all_constructor_functions_to_classes)]},fixIds:[gpe],getAllCodeActions:e=>co(e,Lwe,(t,n)=>Wwe(t,n.file,n.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))});function Wwe(e,t,n,i,s,o){let c=i.getSymbolAtLocation(Ii(t,n));if(!c||!c.valueDeclaration||!(c.flags&19))return;let p=c.valueDeclaration;if(Gc(p)||Ao(p))e.replaceNode(t,p,d(p));else if(li(p)){let h=g(p);if(!h)return;let S=p.parent.parent;lu(p.parent)&&p.parent.declarations.length>1?(e.delete(t,p),e.insertNodeAfter(t,S,h)):e.replaceNode(t,S,h)}function u(h){let S=[];return h.exports&&h.exports.forEach(I=>{if(I.name==="prototype"&&I.declarations){let P=I.declarations[0];if(I.declarations.length===1&&Ln(P)&&vn(P.parent)&&P.parent.operatorToken.kind===64&&Sa(P.parent.right)){let E=P.parent.right;x(E.symbol,void 0,S)}}else x(I,[A.createToken(126)],S)}),h.members&&h.members.forEach((I,P)=>{var E,F,O,W;if(P==="constructor"&&I.valueDeclaration){let z=(W=(O=(F=(E=h.exports)==null?void 0:E.get("prototype"))==null?void 0:F.declarations)==null?void 0:O[0])==null?void 0:W.parent;z&&vn(z)&&Sa(z.right)&&_t(z.right.properties,cH)||e.delete(t,I.valueDeclaration.parent);return}x(I,void 0,S)}),S;function T(I,P){return Oo(I)?Ln(I)&&cH(I)?!0:Fs(P):Fi(I.properties,E=>!!(hc(E)||EM(E)||yl(E)&&Ao(E.initializer)&&E.name||cH(E)))}function x(I,P,E){if(!(I.flags&8192)&&!(I.flags&4096))return;let F=I.valueDeclaration,O=F.parent,W=O.right;if(!T(F,W)||_t(E,_e=>{let re=Ss(_e);return!!(re&&Be(re)&&Fn(re)===kc(I))}))return;let z=O.parent&&O.parent.kind===245?O.parent:O;if(e.delete(t,z),!W){E.push(A.createPropertyDeclaration(P,I.name,void 0,void 0,void 0));return}if(Oo(F)&&(Ao(W)||Fo(W))){let _e=Mf(t,s),re=JKe(F,o,_e);re&&$(E,W,re);return}else if(Sa(W)){or(W.properties,_e=>{(hc(_e)||EM(_e))&&E.push(_e),yl(_e)&&Ao(_e.initializer)&&$(E,_e.initializer,_e.name),cH(_e)});return}else{if(Cp(t)||!Ln(F))return;let _e=A.createPropertyDeclaration(P,F.name,void 0,void 0,W);YI(O.parent,_e,t),E.push(_e);return}function $(_e,re,V){return Ao(re)?X(_e,re,V):U(_e,re,V)}function X(_e,re,V){let ce=Qi(P,oH(re,134)),oe=A.createMethodDeclaration(ce,void 0,V,void 0,void 0,re.parameters,void 0,re.body);YI(O,oe,t),_e.push(oe)}function U(_e,re,V){let ce=re.body,oe;ce.kind===242?oe=ce:oe=A.createBlock([A.createReturnStatement(ce)]);let le=Qi(P,oH(re,134)),de=A.createMethodDeclaration(le,void 0,V,void 0,void 0,re.parameters,void 0,oe);YI(O,de,t),_e.push(de)}}}function g(h){let S=h.initializer;if(!S||!Ao(S)||!Be(h.name))return;let T=u(h.symbol);S.body&&T.unshift(A.createConstructorDeclaration(void 0,S.parameters,S.body));let x=oH(h.parent.parent,95);return A.createClassDeclaration(x,h.name,void 0,void 0,T)}function d(h){let S=u(c);h.body&&S.unshift(A.createConstructorDeclaration(void 0,h.parameters,h.body));let T=oH(h,95);return A.createClassDeclaration(T,h.name,void 0,void 0,S)}}function oH(e,t){return yd(e)?Mn(e.modifiers,n=>n.kind===t):void 0}function cH(e){return e.name?!!(Be(e.name)&&e.name.text==="constructor"):!1}function JKe(e,t,n){if(Ln(e))return e.name;let i=e.argumentExpression;if(Hp(i))return i;if(Ha(i))return af(i.text,xa(t))?A.createIdentifier(i.text):mk(i)?A.createStringLiteral(i.text,n===0):i}var hpe="convertToAsyncFunction",Bwe=[_.This_may_be_converted_to_an_async_function.code],lH=!0;aa({errorCodes:Bwe,getCodeActions(e){lH=!0;let t=gn.ChangeTracker.with(e,n=>zwe(n,e.sourceFile,e.span.start,e.program.getTypeChecker()));return lH?[Us(hpe,t,_.Convert_to_async_function,hpe,_.Convert_all_to_async_functions)]:[]},fixIds:[hpe],getAllCodeActions:e=>co(e,Bwe,(t,n)=>zwe(t,n.file,n.start,e.program.getTypeChecker()))});function zwe(e,t,n,i){let s=Ii(t,n),o;if(Be(s)&&li(s.parent)&&s.parent.initializer&&yo(s.parent.initializer)?o=s.parent.initializer:o=Hn(i_(Ii(t,n)),E$),!o)return;let c=new Map,p=dn(o),u=VKe(o,i),g=qKe(o,i,c);if(!P$(g,i))return;let d=g.body&&Bs(g.body)?UKe(g.body,i):Ke,h={checker:i,synthNamesMap:c,setOfExpressionsToReturn:u,isInJSFile:p};if(!d.length)return;let S=ha(t.text,Um(o).pos);e.insertModifierAt(t,S,134,{suffix:" "});for(let T of d)if(Ms(T,function x(I){if(Ws(I)){let P=iD(I,I,h,!1);if(hC())return!0;e.replaceNodeWithNodes(t,T,P)}else if(!Fs(I)&&(Ms(I,x),hC()))return!0}),hC())return}function UKe(e,t){let n=[];return hb(e,i=>{F5(i,t)&&n.push(i)}),n}function VKe(e,t){if(!e.body)return new Set;let n=new Set;return Ms(e.body,function i(s){BR(s,t,"then")?(n.add(qa(s)),or(s.arguments,i)):BR(s,t,"catch")||BR(s,t,"finally")?(n.add(qa(s)),Ms(s,i)):Jwe(s,t)?n.add(qa(s)):Ms(s,i)}),n}function BR(e,t,n){if(!Ws(e))return!1;let s=pR(e,n)&&t.getTypeAtLocation(e);return!!(s&&t.getPromisedTypeOfPromise(s))}function Gwe(e,t){return(jn(e)&4)!==0&&e.target===t}function uH(e,t,n){if(e.expression.name.escapedText==="finally")return;let i=n.getTypeAtLocation(e.expression.expression);if(Gwe(i,n.getPromiseType())||Gwe(i,n.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===Kv(e.arguments,0))return Kv(e.typeArguments,0);if(t===Kv(e.arguments,1))return Kv(e.typeArguments,1)}else return Kv(e.typeArguments,0)}function Jwe(e,t){return ht(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function qKe(e,t,n){let i=new Map,s=od();return Ms(e,function o(c){if(!Be(c)){Ms(c,o);return}let p=t.getSymbolAtLocation(c);if(p){let u=t.getTypeAtLocation(c),g=Qwe(u,t),d=sa(p).toString();if(g&&!Gi(c.parent)&&!yo(c.parent)&&!n.has(d)){let h=_l(g.parameters),S=h?.valueDeclaration&&Gi(h.valueDeclaration)&&Hn(h.valueDeclaration.name,Be)||A.createUniqueName("result",16),T=Uwe(S,s);n.set(d,T),s.add(S.text,p)}else if(c.parent&&(Gi(c.parent)||li(c.parent)||Da(c.parent))){let h=c.text,S=s.get(h);if(S&&S.some(T=>T!==p)){let T=Uwe(c,s);i.set(d,T.identifier),n.set(d,T),s.add(h,p)}else{let T=to(c);n.set(d,JE(T)),s.add(h,p)}}}}),e4(e,!0,o=>{if(Da(o)&&Be(o.name)&&o_(o.parent)){let c=t.getSymbolAtLocation(o.name),p=c&&i.get(String(sa(c)));if(p&&p.text!==(o.name||o.propertyName).getText())return A.createBindingElement(o.dotDotDotToken,o.propertyName||o.name,p,o.initializer)}else if(Be(o)){let c=t.getSymbolAtLocation(o),p=c&&i.get(String(sa(c)));if(p)return A.createIdentifier(p.text)}})}function Uwe(e,t){let n=(t.get(e.text)||Ke).length,i=n===0?e:A.createIdentifier(e.text+"_"+n);return JE(i)}function hC(){return!lH}function p1(){return lH=!1,Ke}function iD(e,t,n,i,s){if(BR(t,n.checker,"then"))return QKe(t,Kv(t.arguments,0),Kv(t.arguments,1),n,i,s);if(BR(t,n.checker,"catch"))return $we(t,Kv(t.arguments,0),n,i,s);if(BR(t,n.checker,"finally"))return HKe(t,Kv(t.arguments,0),n,i,s);if(Ln(t))return iD(e,t.expression,n,i,s);let o=n.checker.getTypeAtLocation(t);return o&&n.checker.getPromisedTypeOfPromise(o)?(w.assertNode(sc(t).parent,Ln),KKe(e,t,n,i,s)):p1()}function pH({checker:e},t){if(t.kind===106)return!0;if(Be(t)&&!ec(t)&&Fn(t)==="undefined"){let n=e.getSymbolAtLocation(t);return!n||e.isUndefinedSymbol(n)}return!1}function $Ke(e){let t=A.createUniqueName(e.identifier.text,16);return JE(t)}function Vwe(e,t,n){let i;return n&&!GR(e,t)&&(zR(n)?(i=n,t.synthNamesMap.forEach((s,o)=>{if(s.identifier.text===n.identifier.text){let c=$Ke(n);t.synthNamesMap.set(o,c)}})):i=JE(A.createUniqueName("result",16),n.types),Spe(i)),i}function qwe(e,t,n,i,s){let o=[],c;if(i&&!GR(e,t)){c=to(Spe(i));let p=i.types,u=t.checker.getUnionType(p,2),g=t.isInJSFile?void 0:t.checker.typeToTypeNode(u,void 0,void 0),d=[A.createVariableDeclaration(c,void 0,g)],h=A.createVariableStatement(void 0,A.createVariableDeclarationList(d,1));o.push(h)}return o.push(n),s&&c&&ZKe(s)&&o.push(A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(to(Zwe(s)),void 0,void 0,c)],2))),o}function HKe(e,t,n,i,s){if(!t||pH(n,t))return iD(e,e.expression.expression,n,i,s);let o=Vwe(e,n,s),c=iD(e,e.expression.expression,n,!0,o);if(hC())return p1();let p=vpe(t,i,void 0,void 0,e,n);if(hC())return p1();let u=A.createBlock(c),g=A.createBlock(p),d=A.createTryStatement(u,void 0,g);return qwe(e,n,d,o,s)}function $we(e,t,n,i,s){if(!t||pH(n,t))return iD(e,e.expression.expression,n,i,s);let o=Xwe(t,n),c=Vwe(e,n,s),p=iD(e,e.expression.expression,n,!0,c);if(hC())return p1();let u=vpe(t,i,c,o,e,n);if(hC())return p1();let g=A.createBlock(p),d=A.createCatchClause(o&&to(Z5(o)),A.createBlock(u)),h=A.createTryStatement(g,d,void 0);return qwe(e,n,h,c,s)}function QKe(e,t,n,i,s,o){if(!t||pH(i,t))return $we(e,n,i,s,o);if(n&&!pH(i,n))return p1();let c=Xwe(t,i),p=iD(e.expression.expression,e.expression.expression,i,!0,c);if(hC())return p1();let u=vpe(t,s,o,c,e,i);return hC()?p1():Qi(p,u)}function KKe(e,t,n,i,s){if(GR(e,n)){let o=to(t);return i&&(o=A.createAwaitExpression(o)),[A.createReturnStatement(o)]}return fH(s,A.createAwaitExpression(t),void 0)}function fH(e,t,n){return!e||Ywe(e)?[A.createExpressionStatement(t)]:zR(e)&&e.hasBeenDeclared?[A.createExpressionStatement(A.createAssignment(to(bpe(e)),t))]:[A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(to(Z5(e)),void 0,n,t)],2))]}function ype(e,t){if(t&&e){let n=A.createUniqueName("result",16);return[...fH(JE(n),e,t),A.createReturnStatement(n)]}return[A.createReturnStatement(e)]}function vpe(e,t,n,i,s,o){var c;switch(e.kind){case 106:break;case 212:case 80:if(!i)break;let p=A.createCallExpression(to(e),void 0,zR(i)?[bpe(i)]:[]);if(GR(s,o))return ype(p,uH(s,e,o.checker));let u=o.checker.getTypeAtLocation(e),g=o.checker.getSignaturesOfType(u,0);if(!g.length)return p1();let d=g[0].getReturnType(),h=fH(n,A.createAwaitExpression(p),uH(s,e,o.checker));return n&&n.types.push(o.checker.getAwaitedType(d)||d),h;case 219:case 220:{let S=e.body,T=(c=Qwe(o.checker.getTypeAtLocation(e),o.checker))==null?void 0:c.getReturnType();if(Bs(S)){let x=[],I=!1;for(let P of S.statements)if(Qf(P))if(I=!0,F5(P,o.checker))x=x.concat(Kwe(o,P,t,n));else{let E=T&&P.expression?Hwe(o.checker,T,P.expression):P.expression;x.push(...ype(E,uH(s,e,o.checker)))}else{if(t&&hb(P,cS))return p1();x.push(P)}return GR(s,o)?x.map(P=>to(P)):XKe(x,n,o,I)}else{let x=A$(S,o.checker)?Kwe(o,A.createReturnStatement(S),t,n):Ke;if(x.length>0)return x;if(T){let I=Hwe(o.checker,T,S);if(GR(s,o))return ype(I,uH(s,e,o.checker));{let P=fH(n,I,void 0);return n&&n.types.push(o.checker.getAwaitedType(T)||T),P}}else return p1()}}default:return p1()}return Ke}function Hwe(e,t,n){let i=to(n);return e.getPromisedTypeOfPromise(t)?A.createAwaitExpression(i):i}function Qwe(e,t){let n=t.getSignaturesOfType(e,0);return Wo(n)}function XKe(e,t,n,i){let s=[];for(let o of e)if(Qf(o)){if(o.expression){let c=Jwe(o.expression,n.checker)?A.createAwaitExpression(o.expression):o.expression;t===void 0?s.push(A.createExpressionStatement(c)):zR(t)&&t.hasBeenDeclared?s.push(A.createExpressionStatement(A.createAssignment(bpe(t),c))):s.push(A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(Z5(t),void 0,void 0,c)],2)))}}else s.push(to(o));return!i&&t!==void 0&&s.push(A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(Z5(t),void 0,void 0,A.createIdentifier("undefined"))],2))),s}function Kwe(e,t,n,i){let s=[];return Ms(t,function o(c){if(Ws(c)){let p=iD(c,c,e,n,i);if(s=s.concat(p),s.length>0)return}else Fs(c)||Ms(c,o)}),s}function Xwe(e,t){let n=[],i;if(yo(e)){if(e.parameters.length>0){let u=e.parameters[0].name;i=s(u)}}else Be(e)?i=o(e):Ln(e)&&Be(e.name)&&(i=o(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function s(u){if(Be(u))return o(u);let g=Ma(u.elements,d=>Fl(d)?[]:[s(d.name)]);return YKe(u,g)}function o(u){let g=p(u),d=c(g);return d&&t.synthNamesMap.get(sa(d).toString())||JE(u,n)}function c(u){var g;return((g=Hn(u,rm))==null?void 0:g.symbol)??t.checker.getSymbolAtLocation(u)}function p(u){return u.original?u.original:u}}function Ywe(e){return e?zR(e)?!e.identifier.text:Fi(e.elements,Ywe):!0}function JE(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function YKe(e,t=Ke,n=[]){return{kind:1,bindingPattern:e,elements:t,types:n}}function bpe(e){return e.hasBeenReferenced=!0,e.identifier}function Z5(e){return zR(e)?Spe(e):Zwe(e)}function Zwe(e){for(let t of e.elements)Z5(t);return e.bindingPattern}function Spe(e){return e.hasBeenDeclared=!0,e.identifier}function zR(e){return e.kind===0}function ZKe(e){return e.kind===1}function GR(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(qa(e.original))}aa({errorCodes:[_.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){let{sourceFile:t,program:n,preferences:i}=e,s=gn.ChangeTracker.with(e,o=>{if(tXe(t,n.getTypeChecker(),o,xa(n.getCompilerOptions()),Mf(t,i)))for(let p of n.getSourceFiles())eXe(p,t,n,o,Mf(p,i))});return[dm("convertToEsModule",s,_.Convert_to_ES_module)]}});function eXe(e,t,n,i,s){var o;for(let c of e.imports){let p=(o=n.getResolvedModuleFromModuleSpecifier(c,e))==null?void 0:o.resolvedModule;if(!p||p.resolvedFileName!==t.fileName)continue;let u=eA(c);switch(u.kind){case 272:i.replaceNode(e,u,Bb(u.name,void 0,c,s));break;case 214:Vp(u,!1)&&i.replaceNode(e,u,A.createPropertyAccessExpression(to(u),"default"));break}}}function tXe(e,t,n,i,s){let o={original:dXe(e),additional:new Set},c=rXe(e,t,o);nXe(e,c,n);let p=!1,u;for(let g of Mn(e.statements,Qc)){let d=tIe(e,g,n,t,o,i,s);d&&TF(d,u??(u=new Map))}for(let g of Mn(e.statements,d=>!Qc(d))){let d=iXe(e,g,t,n,o,i,c,u,s);p=p||d}return u?.forEach((g,d)=>{n.replaceNode(e,d,g)}),p}function rXe(e,t,n){let i=new Map;return eIe(e,s=>{let{text:o}=s.name;!i.has(o)&&(Wz(s.name)||t.resolveName(o,s,111551,!0))&&i.set(o,_H(`_${o}`,n))}),i}function nXe(e,t,n){eIe(e,(i,s)=>{if(s)return;let{text:o}=i.name;n.replaceNode(e,i,A.createIdentifier(t.get(o)||o))})}function eIe(e,t){e.forEachChild(function n(i){if(Ln(i)&&VS(e,i.expression)&&Be(i.name)){let{parent:s}=i;t(i,vn(s)&&s.left===i&&s.operatorToken.kind===64)}i.forEachChild(n)})}function iXe(e,t,n,i,s,o,c,p,u){switch(t.kind){case 244:return tIe(e,t,i,n,s,o,u),!1;case 245:{let{expression:g}=t;switch(g.kind){case 214:return Vp(g,!0)&&i.replaceNode(e,t,Bb(void 0,void 0,g.arguments[0],u)),!1;case 227:{let{operatorToken:d}=g;return d.kind===64&&aXe(e,n,g,i,c,p)}}}default:return!1}}function tIe(e,t,n,i,s,o,c){let{declarationList:p}=t,u=!1,g=kr(p.declarations,d=>{let{name:h,initializer:S}=d;if(S){if(VS(e,S))return u=!0,UE([]);if(Vp(S,!0))return u=!0,fXe(h,S.arguments[0],i,s,o,c);if(Ln(S)&&Vp(S.expression,!0))return u=!0,sXe(h,S.name.text,S.expression.arguments[0],s,c)}return UE([A.createVariableStatement(void 0,A.createVariableDeclarationList([d],p.flags))])});if(u){n.replaceNodeWithNodes(e,t,Ma(g,h=>h.newImports));let d;return or(g,h=>{h.useSitesToUnqualify&&TF(h.useSitesToUnqualify,d??(d=new Map))}),d}}function sXe(e,t,n,i,s){switch(e.kind){case 207:case 208:{let o=_H(t,i);return UE([sIe(o,t,n,s),dH(void 0,e,A.createIdentifier(o))])}case 80:return UE([sIe(e.text,t,n,s)]);default:return w.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function aXe(e,t,n,i,s,o){let{left:c,right:p}=n;if(!Ln(c))return!1;if(VS(e,c))if(VS(e,p))i.delete(e,n.parent);else{let u=Sa(p)?oXe(p,o):Vp(p,!0)?lXe(p.arguments[0],t):void 0;return u?(i.replaceNodeWithNodes(e,n.parent,u[0]),u[1]):(i.replaceRangeWithText(e,O_(c.getStart(e),p.pos),"export default"),!0)}else VS(e,c.expression)&&cXe(e,n,i,s);return!1}function oXe(e,t){let n=wW(e.properties,i=>{switch(i.kind){case 178:case 179:case 305:case 306:return;case 304:return Be(i.name)?pXe(i.name.text,i.initializer,t):void 0;case 175:return Be(i.name)?iIe(i.name.text,[A.createToken(95)],i,t):void 0;default:w.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return n&&[n,!1]}function cXe(e,t,n,i){let{text:s}=t.left.name,o=i.get(s);if(o!==void 0){let c=[dH(void 0,o,t.right),xpe([A.createExportSpecifier(!1,o,s)])];n.replaceNodeWithNodes(e,t.parent,c)}else uXe(t,e,n)}function lXe(e,t){let n=e.text,i=t.getSymbolAtLocation(e),s=i?i.exports:Gl;return s.has("export=")?[[Tpe(n)],!0]:s.has("default")?s.size>1?[[rIe(n),Tpe(n)],!0]:[[Tpe(n)],!0]:[[rIe(n)],!1]}function rIe(e){return xpe(void 0,e)}function Tpe(e){return xpe([A.createExportSpecifier(!1,void 0,"default")],e)}function uXe({left:e,right:t,parent:n},i,s){let o=e.name.text;if((Ao(t)||Fo(t)||Zc(t))&&(!t.name||t.name.text===o)){s.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},A.createToken(95),{suffix:" "}),t.name||s.insertName(i,t,o);let c=lo(n,27,i);c&&s.delete(i,c)}else s.replaceNodeRangeWithNodes(i,e.expression,lo(e,25,i),[A.createToken(95),A.createToken(87)],{joiner:" ",suffix:" "})}function pXe(e,t,n){let i=[A.createToken(95)];switch(t.kind){case 219:{let{name:o}=t;if(o&&o.text!==e)return s()}case 220:return iIe(e,i,t,n);case 232:return gXe(e,i,t,n);default:return s()}function s(){return dH(i,A.createIdentifier(e),kpe(t,n))}}function kpe(e,t){if(!t||!_t(ds(t.keys()),i=>$p(e,i)))return e;return gs(e)?eJ(e,!0,n):e4(e,!0,n);function n(i){if(i.kind===212){let s=t.get(i);return t.delete(i),s}}}function fXe(e,t,n,i,s,o){switch(e.kind){case 207:{let c=wW(e.elements,p=>p.dotDotDotToken||p.initializer||p.propertyName&&!Be(p.propertyName)||!Be(p.name)?void 0:aIe(p.propertyName&&p.propertyName.text,p.name.text));if(c)return UE([Bb(void 0,c,t,o)])}case 208:{let c=_H(DR(t.text,s),i);return UE([Bb(A.createIdentifier(c),void 0,t,o),dH(void 0,to(e),A.createIdentifier(c))])}case 80:return _Xe(e,t,n,i,o);default:return w.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function _Xe(e,t,n,i,s){let o=n.getSymbolAtLocation(e),c=new Map,p=!1,u;for(let d of i.original.get(e.text)){if(n.getSymbolAtLocation(d)!==o||d===e)continue;let{parent:h}=d;if(Ln(h)){let{name:{text:S}}=h;if(S==="default"){p=!0;let T=d.getText();(u??(u=new Map)).set(h,A.createIdentifier(T))}else{w.assert(h.expression===d,"Didn't expect expression === use");let T=c.get(S);T===void 0&&(T=_H(S,i),c.set(S,T)),(u??(u=new Map)).set(h,A.createIdentifier(T))}}else p=!0}let g=c.size===0?void 0:ds(lP(c.entries(),([d,h])=>A.createImportSpecifier(!1,d===h?void 0:A.createIdentifier(d),A.createIdentifier(h))));return g||(p=!0),UE([Bb(p?to(e):void 0,g,t,s)],u)}function _H(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function dXe(e){let t=od();return nIe(e,n=>t.add(n.text,n)),t}function nIe(e,t){Be(e)&&mXe(e)&&t(e),e.forEachChild(n=>nIe(n,t))}function mXe(e){let{parent:t}=e;switch(t.kind){case 212:return t.name!==e;case 209:return t.propertyName!==e;case 277:return t.propertyName!==e;default:return!0}}function iIe(e,t,n,i){return A.createFunctionDeclaration(Qi(t,OS(n.modifiers)),to(n.asteriskToken),e,OS(n.typeParameters),OS(n.parameters),to(n.type),A.converters.convertToFunctionBlock(kpe(n.body,i)))}function gXe(e,t,n,i){return A.createClassDeclaration(Qi(t,OS(n.modifiers)),e,OS(n.typeParameters),OS(n.heritageClauses),kpe(n.members,i))}function sIe(e,t,n,i){return t==="default"?Bb(A.createIdentifier(e),void 0,n,i):Bb(void 0,[aIe(t,e)],n,i)}function aIe(e,t){return A.createImportSpecifier(!1,e!==void 0&&e!==t?A.createIdentifier(e):void 0,A.createIdentifier(t))}function dH(e,t,n){return A.createVariableStatement(e,A.createVariableDeclarationList([A.createVariableDeclaration(t,void 0,void 0,n)],2))}function xpe(e,t){return A.createExportDeclaration(void 0,!1,e&&A.createNamedExports(e),t===void 0?void 0:A.createStringLiteral(t))}function UE(e,t){return{newImports:e,useSitesToUnqualify:t}}var Cpe="correctQualifiedNameToIndexedAccessType",oIe=[_.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];aa({errorCodes:oIe,getCodeActions(e){let t=cIe(e.sourceFile,e.span.start);if(!t)return;let n=gn.ChangeTracker.with(e,s=>lIe(s,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[Us(Cpe,n,[_.Rewrite_as_the_indexed_access_type_0,i],Cpe,_.Rewrite_all_as_indexed_access_types)]},fixIds:[Cpe],getAllCodeActions:e=>co(e,oIe,(t,n)=>{let i=cIe(n.file,n.start);i&&lIe(t,n.file,i)})});function cIe(e,t){let n=vr(Ii(e,t),Ip);return w.assert(!!n,"Expected position to be owned by a qualified name."),Be(n.left)?n:void 0}function lIe(e,t,n){let i=n.right.text,s=A.createIndexedAccessTypeNode(A.createTypeReferenceNode(n.left,void 0),A.createLiteralTypeNode(A.createStringLiteral(i)));e.replaceNode(t,n,s)}var wpe=[_.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],Ipe="convertToTypeOnlyExport";aa({errorCodes:wpe,getCodeActions:function(t){let n=gn.ChangeTracker.with(t,i=>pIe(i,uIe(t.span,t.sourceFile),t));if(n.length)return[Us(Ipe,n,_.Convert_to_type_only_export,Ipe,_.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[Ipe],getAllCodeActions:function(t){let n=new Set;return co(t,wpe,(i,s)=>{let o=uIe(s,t.sourceFile);o&&dd(n,qa(o.parent.parent))&&pIe(i,o,t)})}});function uIe(e,t){return Hn(Ii(t,e.start).parent,Xu)}function pIe(e,t,n){if(!t)return;let i=t.parent,s=i.parent,o=hXe(t,n);if(o.length===i.elements.length)e.insertModifierBefore(n.sourceFile,156,i);else{let c=A.updateExportDeclaration(s,s.modifiers,!1,A.updateNamedExports(i,Mn(i.elements,u=>!ws(o,u))),s.moduleSpecifier,void 0),p=A.createExportDeclaration(void 0,!0,A.createNamedExports(o),s.moduleSpecifier,void 0);e.replaceNode(n.sourceFile,s,c,{leadingTriviaOption:gn.LeadingTriviaOption.IncludeAll,trailingTriviaOption:gn.TrailingTriviaOption.Exclude}),e.insertNodeAfter(n.sourceFile,s,p)}}function hXe(e,t){let n=e.parent;if(n.elements.length===1)return n.elements;let i=fle(Np(n),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return Mn(n.elements,s=>{var o;return s===e||((o=ple(s,i))==null?void 0:o.code)===wpe[0]})}var fIe=[_._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,_._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],mH="convertToTypeOnlyImport";aa({errorCodes:fIe,getCodeActions:function(t){var n;let i=_Ie(t.sourceFile,t.span.start);if(i){let s=gn.ChangeTracker.with(t,p=>eL(p,t.sourceFile,i)),o=i.kind===277&&ac(i.parent.parent.parent)&&dIe(i,t.sourceFile,t.program)?gn.ChangeTracker.with(t,p=>eL(p,t.sourceFile,i.parent.parent.parent)):void 0,c=Us(mH,s,i.kind===277?[_.Use_type_0,((n=i.propertyName)==null?void 0:n.text)??i.name.text]:_.Use_import_type,mH,_.Fix_all_with_type_only_imports);return _t(o)?[dm(mH,o,_.Use_import_type),c]:[c]}},fixIds:[mH],getAllCodeActions:function(t){let n=new Set;return co(t,fIe,(i,s)=>{let o=_Ie(s.file,s.start);o?.kind===273&&!n.has(o)?(eL(i,s.file,o),n.add(o)):o?.kind===277&&ac(o.parent.parent.parent)&&!n.has(o.parent.parent.parent)&&dIe(o,s.file,t.program)?(eL(i,s.file,o.parent.parent.parent),n.add(o.parent.parent.parent)):o?.kind===277&&eL(i,s.file,o)})}});function _Ie(e,t){let{parent:n}=Ii(e,t);return gp(n)||ac(n)&&n.importClause?n:void 0}function dIe(e,t,n){if(e.parent.parent.name)return!1;let i=e.parent.elements.filter(o=>!o.isTypeOnly);if(i.length===1)return!0;let s=n.getTypeChecker();for(let o of i)if(jo.Core.eachSymbolReferenceInFile(o.name,s,t,p=>{let u=s.getSymbolAtLocation(p);return!!u&&s.symbolIsValue(u)||!B0(p)}))return!1;return!0}function eL(e,t,n){var i;if(gp(n))e.replaceNode(t,n,A.updateImportSpecifier(n,!0,n.propertyName,n.name));else{let s=n.importClause;if(s.name&&s.namedBindings)e.replaceNodeWithNodes(t,n,[A.createImportDeclaration(OS(n.modifiers,!0),A.createImportClause(156,to(s.name,!0),void 0),to(n.moduleSpecifier,!0),to(n.attributes,!0)),A.createImportDeclaration(OS(n.modifiers,!0),A.createImportClause(156,void 0,to(s.namedBindings,!0)),to(n.moduleSpecifier,!0),to(n.attributes,!0))]);else{let o=((i=s.namedBindings)==null?void 0:i.kind)===276?A.updateNamedImports(s.namedBindings,fl(s.namedBindings.elements,p=>A.updateImportSpecifier(p,!1,p.propertyName,p.name))):s.namedBindings,c=A.updateImportDeclaration(n,n.modifiers,A.updateImportClause(s,156,s.name,o),n.moduleSpecifier,n.attributes);e.replaceNode(t,n,c)}}}var Dpe="convertTypedefToType",mIe=[_.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];aa({fixIds:[Dpe],errorCodes:mIe,getCodeActions(e){let t=py(e.host,e.formatContext.options),n=Ii(e.sourceFile,e.span.start);if(!n)return;let i=gn.ChangeTracker.with(e,s=>gIe(s,n,e.sourceFile,t));if(i.length>0)return[Us(Dpe,i,_.Convert_typedef_to_TypeScript_type,Dpe,_.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>co(e,mIe,(t,n)=>{let i=py(e.host,e.formatContext.options),s=Ii(n.file,n.start);s&&gIe(t,s,n.file,i,!0)})});function gIe(e,t,n,i,s=!1){if(!Ck(t))return;let o=vXe(t);if(!o)return;let c=t.parent,{leftSibling:p,rightSibling:u}=yXe(t),g=c.getStart(),d="";!p&&c.comment&&(g=hIe(c,c.getStart(),t.getStart()),d=`${i} */${i}`),p&&(s&&Ck(p)?(g=t.getStart(),d=""):(g=hIe(c,p.getStart(),t.getStart()),d=`${i} */${i}`));let h=c.getEnd(),S="";u&&(s&&Ck(u)?(h=u.getStart(),S=`${i}${i}`):(h=u.getStart(),S=`${i}/**${i} * `)),e.replaceRange(n,{pos:g,end:h},o,{prefix:d,suffix:S})}function yXe(e){let t=e.parent,n=t.getChildCount()-1,i=t.getChildren().findIndex(c=>c.getStart()===e.getStart()&&c.getEnd()===e.getEnd()),s=i>0?t.getChildAt(i-1):void 0,o=i<n?t.getChildAt(i+1):void 0;return{leftSibling:s,rightSibling:o}}function hIe(e,t,n){let i=e.getText().substring(t-e.getStart(),n-e.getStart());for(let s=i.length;s>0;s--)if(!/[*/\s]/.test(i.substring(s-1,s)))return t+s;return n}function vXe(e){var t;let{typeExpression:n}=e;if(!n)return;let i=(t=e.name)==null?void 0:t.getText();if(i){if(n.kind===323)return bXe(i,n);if(n.kind===310)return SXe(i,n)}}function bXe(e,t){let n=yIe(t);if(_t(n))return A.createInterfaceDeclaration(void 0,e,void 0,void 0,n)}function SXe(e,t){let n=to(t.type);if(n)return A.createTypeAliasDeclaration(void 0,A.createIdentifier(e),void 0,n)}function yIe(e){let t=e.jsDocPropertyTags;return _t(t)?Ji(t,i=>{var s;let o=TXe(i),c=(s=i.typeExpression)==null?void 0:s.type,p=i.isBracketed,u;if(c&&xk(c)){let g=yIe(c);u=A.createTypeLiteralNode(g)}else c&&(u=to(c));if(u&&o){let g=p?A.createToken(58):void 0;return A.createPropertySignature(void 0,o,g,u)}}):void 0}function TXe(e){return e.name.kind===80?e.name.text:e.name.right.text}function kXe(e){return Hf(e)?Ma(e.jsDoc,t=>{var n;return(n=t.tags)==null?void 0:n.filter(i=>Ck(i))}):[]}var Ppe="convertLiteralTypeToMappedType",vIe=[_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];aa({errorCodes:vIe,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=bIe(n,i.start);if(!s)return;let{name:o,constraint:c}=s,p=gn.ChangeTracker.with(t,u=>SIe(u,n,s));return[Us(Ppe,p,[_.Convert_0_to_1_in_0,c,o],Ppe,_.Convert_all_type_literals_to_mapped_type)]},fixIds:[Ppe],getAllCodeActions:e=>co(e,vIe,(t,n)=>{let i=bIe(n.file,n.start);i&&SIe(t,n.file,i)})});function bIe(e,t){let n=Ii(e,t);if(Be(n)){let i=Zs(n.parent.parent,mp),s=n.getText(e);return{container:Zs(i.parent,Dp),typeNode:i.type,constraint:s,name:s==="K"?"P":"K"}}}function SIe(e,t,{container:n,typeNode:i,constraint:s,name:o}){e.replaceNode(t,n,A.createMappedTypeNode(void 0,A.createTypeParameterDeclaration(void 0,o,A.createTypeReferenceNode(s)),void 0,void 0,i,void 0))}var TIe=[_.Class_0_incorrectly_implements_interface_1.code,_.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],Ape="fixClassIncorrectlyImplementsInterface";aa({errorCodes:TIe,getCodeActions(e){let{sourceFile:t,span:n}=e,i=kIe(t,n.start);return Ji(Qw(i),s=>{let o=gn.ChangeTracker.with(e,c=>CIe(e,s,t,i,c,e.preferences));return o.length===0?void 0:Us(Ape,o,[_.Implement_interface_0,s.getText(t)],Ape,_.Implement_all_unimplemented_interfaces)})},fixIds:[Ape],getAllCodeActions(e){let t=new Set;return co(e,TIe,(n,i)=>{let s=kIe(i.file,i.start);if(dd(t,qa(s)))for(let o of Qw(s))CIe(e,o,i.file,s,n,e.preferences)})}});function kIe(e,t){return w.checkDefined(cu(Ii(e,t)),"There should be a containing class")}function xIe(e){return!e.valueDeclaration||!(Mu(e.valueDeclaration)&2)}function CIe(e,t,n,i,s,o){let c=e.program.getTypeChecker(),p=xXe(i,c),u=c.getTypeAtLocation(t),d=c.getPropertiesOfType(u).filter(FO(xIe,P=>!p.has(P.escapedName))),h=c.getTypeAtLocation(i),S=Bn(i.members,P=>yc(P));h.getNumberIndexType()||x(u,1),h.getStringIndexType()||x(u,0);let T=iT(n,e.program,o,e.host);kfe(i,d,n,e,o,T,P=>I(n,i,P)),T.writeFixes(s);function x(P,E){let F=c.getIndexInfoOfType(P,E);F&&I(n,i,c.indexInfoToIndexSignatureDeclaration(F,i,void 0,void 0,sD(e)))}function I(P,E,F){S?s.insertNodeAfter(P,S,F):s.insertMemberAtStart(P,E,F)}}function xXe(e,t){let n=im(e);if(!n)return Qs();let i=t.getTypeAtLocation(n),s=t.getPropertiesOfType(i);return Qs(s.filter(xIe))}var wIe="import",IIe="fixMissingImport",DIe=[_.Cannot_find_name_0.code,_.Cannot_find_name_0_Did_you_mean_1.code,_.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,_.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,_.Cannot_find_namespace_0.code,_._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,_.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,_._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,_.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,_.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig.code,_.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig.code,_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha.code,_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig.code,_.Cannot_find_namespace_0_Did_you_mean_1.code,_.Cannot_extend_an_interface_0_Did_you_mean_implements.code,_.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found.code];aa({errorCodes:DIe,getCodeActions(e){let{errorCode:t,preferences:n,sourceFile:i,span:s,program:o}=e,c=RIe(e,t,s.start,!0);if(c)return c.map(({fix:p,symbolName:u,errorIdentifierText:g})=>Mpe(e,i,u,p,u!==g,o,n))},fixIds:[IIe],getAllCodeActions:e=>{let{sourceFile:t,program:n,preferences:i,host:s,cancellationToken:o}=e,c=PIe(t,n,!0,i,s,o);return gC(e,DIe,p=>c.addImportFromDiagnostic(p,e)),mC(gn.ChangeTracker.with(e,c.writeFixes))}});function iT(e,t,n,i,s){return PIe(e,t,!1,n,i,s)}function PIe(e,t,n,i,s,o){let c=t.getCompilerOptions(),p=[],u=[],g=new Map,d=new Set,h=new Set,S=new Map;return{addImportFromDiagnostic:I,addImportFromExportedSymbol:P,addImportForModuleSymbol:E,writeFixes:z,hasFixes:X,addImportForUnresolvedIdentifier:x,addImportForNonExistentExport:F,removeExistingImport:O,addVerbatimImport:T};function T(U){h.add(U)}function x(U,_e,re){let V=OXe(U,_e,re);!V||!V.length||W(Ra(V))}function I(U,_e){let re=RIe(_e,U.code,U.start,n);!re||!re.length||W(Ra(re))}function P(U,_e,re){var V,ce;let oe=w.checkDefined(U.parent,"Expected exported symbol to have module symbol as parent"),le=I5(U,xa(c)),de=t.getTypeChecker(),ve=de.getMergedSymbol(vu(U,de)),H=EIe(e,ve,le,oe,!1,t,s,i,o);if(!H){w.assert((V=i.autoImportFileExcludePatterns)==null?void 0:V.length);return}let Se=JR(e,t),Je=Epe(e,H,t,void 0,!!_e,Se,s,i);if(Je){let ye=((ce=Hn(re?.name,Be))==null?void 0:ce.text)??le,ee,ge;re&&Ew(re)&&(Je.kind===3||Je.kind===2)&&Je.addAsTypeOnly===1&&(ee=2),U.name!==ye&&(ge=U.name),Je={...Je,...ee===void 0?{}:{addAsTypeOnly:ee},...ge===void 0?{}:{propertyName:ge}},W({fix:Je,symbolName:ye??le,errorIdentifierText:void 0})}}function E(U,_e,re){var V,ce,oe;let le=t.getTypeChecker(),de=le.getAliasedSymbol(U);w.assert(de.flags&1536,"Expected symbol to be a module");let ve=o1(t,s),H=uy.getModuleSpecifiersWithCacheInfo(de,le,c,e,ve,i,void 0,!0),Se=JR(e,t),Je=rL(_e,!0,void 0,U.flags,t.getTypeChecker(),c);Je=Je===1&&Ew(re)?2:1;let ye=ac(re)?sk(re)?1:2:gp(re)?0:Ld(re)&&re.name?1:2,ee=[{symbol:U,moduleSymbol:de,moduleFileName:(oe=(ce=(V=de.declarations)==null?void 0:V[0])==null?void 0:ce.getSourceFile())==null?void 0:oe.fileName,exportKind:4,targetFlags:U.flags,isFromPackageJson:!1}],ge=Epe(e,ee,t,void 0,!!_e,Se,s,i),ke;ge&&ye!==2&&ge.kind!==0&&ge.kind!==1?ke={...ge,addAsTypeOnly:Je,importKind:ye}:ke={kind:3,moduleSpecifierKind:ge!==void 0?ge.moduleSpecifierKind:H.kind,moduleSpecifier:ge!==void 0?ge.moduleSpecifier:Ra(H.moduleSpecifiers),importKind:ye,addAsTypeOnly:Je,useRequire:Se},W({fix:ke,symbolName:U.name,errorIdentifierText:void 0})}function F(U,_e,re,V,ce){let oe=t.getSourceFile(_e),le=JR(e,t);if(oe&&oe.symbol){let{fixes:de}=tL([{exportKind:re,isFromPackageJson:!1,moduleFileName:_e,moduleSymbol:oe.symbol,targetFlags:V}],void 0,ce,le,t,e,s,i);de.length&&W({fix:de[0],symbolName:U,errorIdentifierText:U})}else{let de=N5(_e,99,t,s),ve=uy.getLocalModuleSpecifierBetweenFileNames(e,_e,c,o1(t,s),i),H=gH(de,re,t),Se=rL(ce,!0,void 0,V,t.getTypeChecker(),c);W({fix:{kind:3,moduleSpecifierKind:"relative",moduleSpecifier:ve,importKind:H,addAsTypeOnly:Se,useRequire:le},symbolName:U,errorIdentifierText:U})}}function O(U){U.kind===274&&w.assertIsDefined(U.name,"ImportClause should have a name if it's being removed"),d.add(U)}function W(U){var _e,re,V;let{fix:ce,symbolName:oe}=U;switch(ce.kind){case 0:p.push(ce);break;case 1:u.push(ce);break;case 2:{let{importClauseOrBindingPattern:H,importKind:Se,addAsTypeOnly:Je,propertyName:ye}=ce,ee=g.get(H);if(ee||g.set(H,ee={importClauseOrBindingPattern:H,defaultImport:void 0,namedImports:new Map}),Se===0){let ge=(_e=ee?.namedImports.get(oe))==null?void 0:_e.addAsTypeOnly;ee.namedImports.set(oe,{addAsTypeOnly:le(ge,Je),propertyName:ye})}else w.assert(ee.defaultImport===void 0||ee.defaultImport.name===oe,"(Add to Existing) Default import should be missing or match symbolName"),ee.defaultImport={name:oe,addAsTypeOnly:le((re=ee.defaultImport)==null?void 0:re.addAsTypeOnly,Je)};break}case 3:{let{moduleSpecifier:H,importKind:Se,useRequire:Je,addAsTypeOnly:ye,propertyName:ee}=ce,ge=de(H,Se,Je,ye);switch(w.assert(ge.useRequire===Je,"(Add new) Tried to add an `import` and a `require` for the same module"),Se){case 1:w.assert(ge.defaultImport===void 0||ge.defaultImport.name===oe,"(Add new) Default import should be missing or match symbolName"),ge.defaultImport={name:oe,addAsTypeOnly:le((V=ge.defaultImport)==null?void 0:V.addAsTypeOnly,ye)};break;case 0:let ke=(ge.namedImports||(ge.namedImports=new Map)).get(oe);ge.namedImports.set(oe,[le(ke,ye),ee]);break;case 3:if(c.verbatimModuleSyntax){let Oe=(ge.namedImports||(ge.namedImports=new Map)).get(oe);ge.namedImports.set(oe,[le(Oe,ye),ee])}else w.assert(ge.namespaceLikeImport===void 0||ge.namespaceLikeImport.name===oe,"Namespacelike import shoudl be missing or match symbolName"),ge.namespaceLikeImport={importKind:Se,name:oe,addAsTypeOnly:ye};break;case 2:w.assert(ge.namespaceLikeImport===void 0||ge.namespaceLikeImport.name===oe,"Namespacelike import shoudl be missing or match symbolName"),ge.namespaceLikeImport={importKind:Se,name:oe,addAsTypeOnly:ye};break}break}case 4:break;default:w.assertNever(ce,`fix wasn't never - got kind ${ce.kind}`)}function le(H,Se){return Math.max(H??0,Se)}function de(H,Se,Je,ye){let ee=ve(H,!0),ge=ve(H,!1),ke=S.get(ee),Oe=S.get(ge),nt={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:Je};return Se===1&&ye===2?ke||(S.set(ee,nt),nt):ye===1&&(ke||Oe)?ke||Oe:Oe||(S.set(ge,nt),nt)}function ve(H,Se){return`${Se?1:0}|${H}`}}function z(U,_e){var re,V;let ce;e.imports!==void 0&&e.imports.length===0&&_e!==void 0?ce=_e:ce=Mf(e,i);for(let de of p)Rpe(U,e,de);for(let de of u)JIe(U,e,de,ce);let oe;if(d.size){w.assert(ph(e),"Cannot remove imports from a future source file");let de=new Set(Ji([...d],ye=>vr(ye,ac))),ve=new Set(Ji([...d],ye=>vr(ye,a6))),H=[...de].filter(ye=>{var ee,ge,ke;return!g.has(ye.importClause)&&(!((ee=ye.importClause)!=null&&ee.name)||d.has(ye.importClause))&&(!Hn((ge=ye.importClause)==null?void 0:ge.namedBindings,bh)||d.has(ye.importClause.namedBindings))&&(!Hn((ke=ye.importClause)==null?void 0:ke.namedBindings,Km)||Fi(ye.importClause.namedBindings.elements,Oe=>d.has(Oe)))}),Se=[...ve].filter(ye=>(ye.name.kind!==207||!g.has(ye.name))&&(ye.name.kind!==207||Fi(ye.name.elements,ee=>d.has(ee)))),Je=[...de].filter(ye=>{var ee,ge;return((ee=ye.importClause)==null?void 0:ee.namedBindings)&&H.indexOf(ye)===-1&&!((ge=g.get(ye.importClause))!=null&&ge.namedImports)&&(ye.importClause.namedBindings.kind===275||Fi(ye.importClause.namedBindings.elements,ke=>d.has(ke)))});for(let ye of[...H,...Se])U.delete(e,ye);for(let ye of Je)U.replaceNode(e,ye.importClause,A.updateImportClause(ye.importClause,ye.importClause.phaseModifier,ye.importClause.name,void 0));for(let ye of d){let ee=vr(ye,ac);ee&&H.indexOf(ee)===-1&&Je.indexOf(ee)===-1?ye.kind===274?U.delete(e,ye.name):(w.assert(ye.kind===277,"NamespaceImport should have been handled earlier"),(re=g.get(ee.importClause))!=null&&re.namedImports?(oe??(oe=new Set)).add(ye):U.delete(e,ye)):ye.kind===209?(V=g.get(ye.parent))!=null&&V.namedImports?(oe??(oe=new Set)).add(ye):U.delete(e,ye):ye.kind===272&&U.delete(e,ye)}}g.forEach(({importClauseOrBindingPattern:de,defaultImport:ve,namedImports:H})=>{GIe(U,e,de,ve,ds(H.entries(),([Se,{addAsTypeOnly:Je,propertyName:ye}])=>({addAsTypeOnly:Je,propertyName:ye,name:Se})),oe,i)});let le;S.forEach(({useRequire:de,defaultImport:ve,namedImports:H,namespaceLikeImport:Se},Je)=>{let ye=Je.slice(2),ge=(de?qIe:VIe)(ye,ce,ve,H&&ds(H.entries(),([ke,[Oe,nt]])=>({addAsTypeOnly:Oe,propertyName:nt,name:ke})),Se,c,i);le=Ux(le,ge)}),le=Ux(le,$()),le&&$q(U,e,le,!0,i)}function $(){if(!h.size)return;let U=new Set(Ji([...h],re=>vr(re,ac))),_e=new Set(Ji([...h],re=>vr(re,o6)));return[...Ji([...h],re=>re.kind===272?to(re,!0):void 0),...[...U].map(re=>{var V;return h.has(re)?to(re,!0):to(A.updateImportDeclaration(re,re.modifiers,re.importClause&&A.updateImportClause(re.importClause,re.importClause.phaseModifier,h.has(re.importClause)?re.importClause.name:void 0,h.has(re.importClause.namedBindings)?re.importClause.namedBindings:(V=Hn(re.importClause.namedBindings,Km))!=null&&V.elements.some(ce=>h.has(ce))?A.updateNamedImports(re.importClause.namedBindings,re.importClause.namedBindings.elements.filter(ce=>h.has(ce))):void 0),re.moduleSpecifier,re.attributes),!0)}),...[..._e].map(re=>h.has(re)?to(re,!0):to(A.updateVariableStatement(re,re.modifiers,A.updateVariableDeclarationList(re.declarationList,Ji(re.declarationList.declarations,V=>h.has(V)?V:A.updateVariableDeclaration(V,V.name.kind===207?A.updateObjectBindingPattern(V.name,V.name.elements.filter(ce=>h.has(ce))):V.name,V.exclamationToken,V.type,V.initializer)))),!0))]}function X(){return p.length>0||u.length>0||g.size>0||S.size>0||h.size>0||d.size>0}}function CXe(e,t,n,i){let s=ZI(e,i,n),o=NIe(e,t);return{getModuleSpecifierForBestExportInfo:c};function c(p,u,g,d){let{fixes:h,computedWithoutCacheCount:S}=tL(p,u,g,!1,t,e,n,i,o,d),T=FIe(h,e,t,s,n,i);return T&&{...T,computedWithoutCacheCount:S}}}function wXe(e,t,n,i,s,o,c,p,u,g,d,h){let S;n?(S=AR(i,c,p,d,h).get(i.path,n),w.assertIsDefined(S,"Some exportInfo should match the specified exportMapKey")):(S=vB(_d(t.name))?[DXe(e,s,t,p,c)]:EIe(i,e,s,t,o,p,c,d,h),w.assertIsDefined(S,"Some exportInfo should match the specified symbol / moduleSymbol"));let T=JR(i,p),x=B0(Ii(i,g)),I=w.checkDefined(Epe(i,S,p,g,x,T,c,d));return{moduleSpecifier:I.moduleSpecifier,codeAction:AIe(Mpe({host:c,formatContext:u,preferences:d},i,s,I,!1,p,d))}}function IXe(e,t,n,i,s,o){let c=n.getCompilerOptions(),p=MW(Npe(e,n.getTypeChecker(),t,c)),u=BIe(e,t,p,n),g=p!==t.text;return u&&AIe(Mpe({host:i,formatContext:s,preferences:o},e,p,u,g,n,o))}function Epe(e,t,n,i,s,o,c,p){let u=ZI(e,p,c);return FIe(tL(t,i,s,o,n,e,c,p).fixes,e,n,u,c,p)}function AIe({description:e,changes:t,commands:n}){return{description:e,changes:t,commands:n}}function EIe(e,t,n,i,s,o,c,p,u){let g=MIe(o,c),d=p.autoImportFileExcludePatterns&&hle(c,p),h=o.getTypeChecker().getMergedSymbol(i),S=d&&h.declarations&&$o(h,308),T=S&&d(S);return AR(e,c,o,p,u).search(e.path,s,x=>x===n,x=>{let I=g(x[0].isFromPackageJson);if(I.getMergedSymbol(vu(x[0].symbol,I))===t&&(T||x.some(P=>I.getMergedSymbol(P.moduleSymbol)===i||P.symbol.parent===i)))return x})}function DXe(e,t,n,i,s){var o,c;let p=g(i.getTypeChecker(),!1);if(p)return p;let u=(c=(o=s.getPackageJsonAutoImportProvider)==null?void 0:o.call(s))==null?void 0:c.getTypeChecker();return w.checkDefined(u&&g(u,!0),"Could not find symbol in specified module for code actions");function g(d,h){let S=M5(n,d);if(S&&vu(S.symbol,d)===e)return{symbol:S.symbol,moduleSymbol:n,moduleFileName:void 0,exportKind:S.exportKind,targetFlags:vu(e,d).flags,isFromPackageJson:h};let T=d.tryGetMemberInModuleExportsAndProperties(t,n);if(T&&vu(T,d)===e)return{symbol:T,moduleSymbol:n,moduleFileName:void 0,exportKind:0,targetFlags:vu(e,d).flags,isFromPackageJson:h}}}function tL(e,t,n,i,s,o,c,p,u=ph(o)?NIe(o,s):void 0,g){let d=s.getTypeChecker(),h=u?Ma(e,u.getImportsForExportInfo):Ke,S=t!==void 0&&PXe(h,t),T=EXe(h,n,d,s.getCompilerOptions());if(T)return{computedWithoutCacheCount:0,fixes:[...S?[S]:Ke,T]};let{fixes:x,computedWithoutCacheCount:I=0}=MXe(e,h,s,o,t,n,i,c,p,g);return{computedWithoutCacheCount:I,fixes:[...S?[S]:Ke,...x]}}function PXe(e,t){return fo(e,({declaration:n,importKind:i})=>{var s;if(i!==0)return;let o=AXe(n),c=o&&((s=_2(n))==null?void 0:s.text);if(c)return{kind:0,namespacePrefix:o,usagePosition:t,moduleSpecifierKind:void 0,moduleSpecifier:c}})}function AXe(e){var t,n,i;switch(e.kind){case 261:return(t=Hn(e.name,Be))==null?void 0:t.text;case 272:return e.name.text;case 352:case 273:return(i=Hn((n=e.importClause)==null?void 0:n.namedBindings,bh))==null?void 0:i.name.text;default:return w.assertNever(e)}}function rL(e,t,n,i,s,o){return e?n&&o.verbatimModuleSyntax&&(!(i&111551)||s.getTypeOnlyAliasDeclaration(n))?2:1:4}function EXe(e,t,n,i){let s;for(let c of e){let p=o(c);if(!p)continue;let u=Ew(p.importClauseOrBindingPattern);if(p.addAsTypeOnly!==4&&u||p.addAsTypeOnly===4&&!u)return p;s??(s=p)}return s;function o({declaration:c,importKind:p,symbol:u,targetFlags:g}){if(p===3||p===2||c.kind===272)return;if(c.kind===261)return(p===0||p===1)&&c.name.kind===207?{kind:2,importClauseOrBindingPattern:c.name,importKind:p,moduleSpecifierKind:void 0,moduleSpecifier:c.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;let{importClause:d}=c;if(!d||!Ha(c.moduleSpecifier))return;let{name:h,namedBindings:S}=d;if(d.isTypeOnly&&!(p===0&&S))return;let T=rL(t,!1,u,g,n,i);if(!(p===1&&(h||T===2&&S))&&!(p===0&&S?.kind===275))return{kind:2,importClauseOrBindingPattern:d,importKind:p,moduleSpecifierKind:void 0,moduleSpecifier:c.moduleSpecifier.text,addAsTypeOnly:T}}}function NIe(e,t){let n=t.getTypeChecker(),i;for(let s of e.imports){let o=eA(s);if(a6(o.parent)){let c=n.resolveExternalModuleName(s);c&&(i||(i=od())).add(sa(c),o.parent)}else if(o.kind===273||o.kind===272||o.kind===352){let c=n.getSymbolAtLocation(s);c&&(i||(i=od())).add(sa(c),o)}}return{getImportsForExportInfo:({moduleSymbol:s,exportKind:o,targetFlags:c,symbol:p})=>{let u=i?.get(sa(s));if(!u||Cp(e)&&!(c&111551)&&!Fi(u,Zm))return Ke;let g=gH(e,o,t);return u.map(d=>({declaration:d,importKind:g,symbol:p,targetFlags:c}))}}}function JR(e,t){if(!gh(e.fileName))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;let n=t.getCompilerOptions();if(n.configFile)return _p(n)<5;if(Fpe(e,t)===1)return!0;if(Fpe(e,t)===99)return!1;for(let i of t.getSourceFiles())if(!(i===e||!Cp(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function MIe(e,t){return Mm(n=>n?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function NXe(e,t,n,i,s,o,c,p,u){let g=gh(t.fileName),d=e.getCompilerOptions(),h=o1(e,c),S=MIe(e,c),T=Ku(d),x=_5(T),I=u?F=>uy.tryGetModuleSpecifiersFromCache(F.moduleSymbol,t,h,p):(F,O)=>uy.getModuleSpecifiersWithCacheInfo(F.moduleSymbol,O,d,t,h,p,void 0,!0),P=0,E=Ma(o,(F,O)=>{let W=S(F.isFromPackageJson),{computedWithoutCache:z,moduleSpecifiers:$,kind:X}=I(F,W)??{},U=!!(F.targetFlags&111551),_e=rL(i,!0,F.symbol,F.targetFlags,W,d);return P+=z?1:0,Ji($,re=>{if(x&&Ob(re))return;if(!U&&g&&n!==void 0)return{kind:1,moduleSpecifierKind:X,moduleSpecifier:re,usagePosition:n,exportInfo:F,isReExport:O>0};let V=gH(t,F.exportKind,e),ce;if(n!==void 0&&V===3&&F.exportKind===0){let oe=W.resolveExternalModuleSymbol(F.moduleSymbol),le;oe!==F.moduleSymbol&&(le=R5(oe,W,xa(d),Do)),le||(le=IR(F.moduleSymbol,xa(d),!1)),ce={namespacePrefix:le,usagePosition:n}}return{kind:3,moduleSpecifierKind:X,moduleSpecifier:re,importKind:V,useRequire:s,addAsTypeOnly:_e,exportInfo:F,isReExport:O>0,qualification:ce}})});return{computedWithoutCacheCount:P,fixes:E}}function MXe(e,t,n,i,s,o,c,p,u,g){let d=fo(t,h=>RXe(h,o,c,n.getTypeChecker(),n.getCompilerOptions()));return d?{fixes:[d]}:NXe(n,i,s,o,c,e,p,u,g)}function RXe({declaration:e,importKind:t,symbol:n,targetFlags:i},s,o,c,p){var u;let g=(u=_2(e))==null?void 0:u.text;if(g){let d=o?4:rL(s,!0,n,i,c,p);return{kind:3,moduleSpecifierKind:void 0,moduleSpecifier:g,importKind:t,addAsTypeOnly:d,useRequire:o}}}function RIe(e,t,n,i){let s=Ii(e.sourceFile,n),o;if(t===_._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)o=WXe(e,s);else if(Be(s))if(t===_._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){let p=MW(Npe(e.sourceFile,e.program.getTypeChecker(),s,e.program.getCompilerOptions())),u=BIe(e.sourceFile,s,p,e.program);return u&&[{fix:u,symbolName:p,errorIdentifierText:s.text}]}else o=WIe(e,s,i);else return;let c=ZI(e.sourceFile,e.preferences,e.host);return o&&OIe(o,e.sourceFile,e.program,c,e.host,e.preferences)}function OIe(e,t,n,i,s,o){let c=p=>So(p,s.getCurrentDirectory(),ty(s));return yf(e,(p,u)=>C0(!!p.isJsxNamespaceFix,!!u.isJsxNamespaceFix)||Po(p.fix.kind,u.fix.kind)||jIe(p.fix,u.fix,t,n,o,i.allowsImportingSpecifier,c))}function OXe(e,t,n){let i=WIe(e,t,n),s=ZI(e.sourceFile,e.preferences,e.host);return i&&OIe(i,e.sourceFile,e.program,s,e.host,e.preferences)}function FIe(e,t,n,i,s,o){if(_t(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((c,p)=>jIe(p,c,t,n,o,i.allowsImportingSpecifier,u=>So(u,s.getCurrentDirectory(),ty(s)))===-1?p:c)}function jIe(e,t,n,i,s,o,c){return e.kind!==0&&t.kind!==0?C0(t.moduleSpecifierKind!=="node_modules"||o(t.moduleSpecifier),e.moduleSpecifierKind!=="node_modules"||o(e.moduleSpecifier))||FXe(e,t,s)||LXe(e.moduleSpecifier,t.moduleSpecifier,n,i)||C0(LIe(e,n.path,c),LIe(t,n.path,c))||q6(e.moduleSpecifier,t.moduleSpecifier):0}function FXe(e,t,n){return n.importModuleSpecifierPreference==="non-relative"||n.importModuleSpecifierPreference==="project-relative"?C0(e.moduleSpecifierKind==="relative",t.moduleSpecifierKind==="relative"):0}function LIe(e,t,n){var i;if(e.isReExport&&((i=e.exportInfo)!=null&&i.moduleFileName)&&jXe(e.exportInfo.moduleFileName)){let s=n(ti(e.exportInfo.moduleFileName));return Zi(t,s)}return!1}function jXe(e){return dl(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function LXe(e,t,n,i){return Zi(e,"node:")&&!Zi(t,"node:")?P5(n,i)?-1:1:Zi(t,"node:")&&!Zi(e,"node:")?P5(n,i)?1:-1:0}function WXe({sourceFile:e,program:t,host:n,preferences:i},s){let o=t.getTypeChecker(),c=BXe(s,o);if(!c)return;let p=o.getAliasedSymbol(c),u=c.name,g=[{symbol:c,moduleSymbol:p,moduleFileName:void 0,exportKind:3,targetFlags:p.flags,isFromPackageJson:!1}],d=JR(e,t);return tL(g,void 0,!1,d,t,e,n,i).fixes.map(S=>{var T;return{fix:S,symbolName:u,errorIdentifierText:(T=Hn(s,Be))==null?void 0:T.text}})}function BXe(e,t){let n=Be(e)?t.getSymbolAtLocation(e):void 0;if(T8(n))return n;let{parent:i}=e;if(Qu(i)&&i.tagName===e||Wd(i)){let s=t.resolveName(t.getJsxNamespace(i),Qu(i)?e:i,111551,!1);if(T8(s))return s}}function gH(e,t,n,i){if(n.getCompilerOptions().verbatimModuleSyntax&&$Xe(e,n)===1)return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return UXe(e,n.getCompilerOptions(),!!i);case 3:return zXe(e,n,!!i);case 4:return 2;default:return w.assertNever(t)}}function zXe(e,t,n){if(D2(t.getCompilerOptions()))return 1;let i=_p(t.getCompilerOptions());switch(i){case 2:case 1:case 3:return gh(e.fileName)&&(e.externalModuleIndicator||n)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 101:case 102:case 199:return Fpe(e,t)===99?2:3;default:return w.assertNever(i,`Unexpected moduleKind ${i}`)}}function WIe({sourceFile:e,program:t,cancellationToken:n,host:i,preferences:s},o,c){let p=t.getTypeChecker(),u=t.getCompilerOptions();return Ma(Npe(e,p,o,u),g=>{if(g==="default")return;let d=B0(o),h=JR(e,t),S=JXe(g,Uw(o),Ok(o),n,e,t,c,i,s);return ds(CW(S.values(),T=>tL(T,o.getStart(e),d,h,t,e,i,s).fixes),T=>({fix:T,symbolName:g,errorIdentifierText:o.text,isJsxNamespaceFix:g!==o.text}))})}function BIe(e,t,n,i){let s=i.getTypeChecker(),o=s.resolveName(n,t,111551,!0);if(!o)return;let c=s.getTypeOnlyAliasDeclaration(o);if(!(!c||Nr(c)!==e))return{kind:4,typeOnlyAliasDeclaration:c}}function Npe(e,t,n,i){let s=n.parent;if((Qu(s)||BS(s))&&s.tagName===n&&m$(i.jsx)){let o=t.getJsxNamespace(e);if(GXe(o,n,t))return!Yw(n.text)&&!t.resolveName(n.text,n,111551,!1)?[n.text,o]:[o]}return[n.text]}function GXe(e,t,n){if(Yw(t.text))return!0;let i=n.resolveName(e,t,111551,!0);return!i||_t(i.declarations,$y)&&!(i.flags&111551)}function JXe(e,t,n,i,s,o,c,p,u){var g;let d=od(),h=ZI(s,u,p),S=(g=p.getModuleSpecifierCache)==null?void 0:g.call(p),T=Mm(I=>o1(I?p.getPackageJsonAutoImportProvider():o,p));function x(I,P,E,F,O,W){let z=T(W);if(y$(O,s,P,I,u,h,z,S)){let $=O.getTypeChecker();d.add(nle(E,$).toString(),{symbol:E,moduleSymbol:I,moduleFileName:P?.fileName,exportKind:F,targetFlags:vu(E,$).flags,isFromPackageJson:W})}}return v$(o,p,u,c,(I,P,E,F)=>{let O=E.getTypeChecker();i.throwIfCancellationRequested();let W=E.getCompilerOptions(),z=M5(I,O);z&&HIe(O.getSymbolFlags(z.symbol),n)&&R5(z.symbol,O,xa(W),(X,U)=>(t?U??X:X)===e)&&x(I,P,z.symbol,z.exportKind,E,F);let $=O.tryGetMemberInModuleExportsAndProperties(e,I);$&&HIe(O.getSymbolFlags($),n)&&x(I,P,$,0,E,F)}),d}function UXe(e,t,n){let i=D2(t),s=gh(e.fileName);if(!s&&_p(t)>=5)return i?1:2;if(s)return e.externalModuleIndicator||n?i?1:2:3;for(let o of e.statements??Ke)if(Dl(o)&&!xc(o.moduleReference))return 3;return i?1:3}function Mpe(e,t,n,i,s,o,c){let p,u=gn.ChangeTracker.with(e,g=>{p=VXe(g,t,n,i,s,o,c)});return Us(wIe,u,p,IIe,_.Add_all_missing_imports)}function VXe(e,t,n,i,s,o,c){let p=Mf(t,c);switch(i.kind){case 0:return Rpe(e,t,i),[_.Change_0_to_1,n,`${i.namespacePrefix}.${n}`];case 1:return JIe(e,t,i,p),[_.Change_0_to_1,n,UIe(i.moduleSpecifier,p)+n];case 2:{let{importClauseOrBindingPattern:u,importKind:g,addAsTypeOnly:d,moduleSpecifier:h}=i;GIe(e,t,u,g===1?{name:n,addAsTypeOnly:d}:void 0,g===0?[{name:n,addAsTypeOnly:d}]:Ke,void 0,c);let S=_d(h);return s?[_.Import_0_from_1,n,S]:[_.Update_import_from_0,S]}case 3:{let{importKind:u,moduleSpecifier:g,addAsTypeOnly:d,useRequire:h,qualification:S}=i,T=h?qIe:VIe,x=u===1?{name:n,addAsTypeOnly:d}:void 0,I=u===0?[{name:n,addAsTypeOnly:d}]:void 0,P=u===2||u===3?{importKind:u,name:S?.namespacePrefix||n,addAsTypeOnly:d}:void 0;return $q(e,t,T(g,p,x,I,P,o.getCompilerOptions(),c),!0,c),S&&Rpe(e,t,S),s?[_.Import_0_from_1,n,g]:[_.Add_import_from_0,g]}case 4:{let{typeOnlyAliasDeclaration:u}=i,g=qXe(e,u,o,t,c);return g.kind===277?[_.Remove_type_from_import_of_0_from_1,n,zIe(g.parent.parent)]:[_.Remove_type_from_import_declaration_from_0,zIe(g)]}default:return w.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function zIe(e){var t,n;return e.kind===272?((n=Hn((t=Hn(e.moduleReference,ay))==null?void 0:t.expression,Ha))==null?void 0:n.text)||e.moduleReference.getText():Zs(e.parent.moduleSpecifier,ya).text}function qXe(e,t,n,i,s){let o=n.getCompilerOptions(),c=o.verbatimModuleSyntax;switch(t.kind){case 277:if(t.isTypeOnly){if(t.parent.elements.length>1){let u=A.updateImportSpecifier(t,!1,t.propertyName,t.name),{specifierComparer:g}=d1.getNamedImportSpecifierComparerWithDetection(t.parent.parent.parent,s,i),d=d1.getImportSpecifierInsertionIndex(t.parent.elements,u,g);if(d!==t.parent.elements.indexOf(t))return e.delete(i,t),e.insertImportSpecifierAtIndex(i,u,t.parent,d),t}return e.deleteRange(i,{pos:mb(t.getFirstToken()),end:mb(t.propertyName??t.name)}),t}else return w.assert(t.parent.parent.isTypeOnly),p(t.parent.parent),t.parent.parent;case 274:return p(t),t;case 275:return p(t.parent),t.parent;case 272:return e.deleteRange(i,t.getChildAt(1)),t;default:w.failBadSyntaxKind(t)}function p(u){var g;if(e.delete(i,Hq(u,i)),!o.allowImportingTsExtensions){let d=_2(u.parent),h=d&&((g=n.getResolvedModuleFromModuleSpecifier(d,i))==null?void 0:g.resolvedModule);if(h?.resolvedUsingTsExtension){let S=hM(d.text,H4(d.text,o));e.replaceNode(i,d,A.createStringLiteral(S))}}if(c){let d=Hn(u.namedBindings,Km);if(d&&d.elements.length>1){d1.getNamedImportSpecifierComparerWithDetection(u.parent,s,i).isSorted!==!1&&t.kind===277&&d.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,d,0));for(let S of d.elements)S!==t&&!S.isTypeOnly&&e.insertModifierBefore(i,156,S)}}}}function GIe(e,t,n,i,s,o,c){var p;if(n.kind===207){if(o&&n.elements.some(h=>o.has(h))){e.replaceNode(t,n,A.createObjectBindingPattern([...n.elements.filter(h=>!o.has(h)),...i?[A.createBindingElement(void 0,"default",i.name)]:Ke,...s.map(h=>A.createBindingElement(void 0,h.propertyName,h.name))]));return}i&&d(n,i.name,"default");for(let h of s)d(n,h.name,h.propertyName);return}let u=n.isTypeOnly&&_t([i,...s],h=>h?.addAsTypeOnly===4),g=n.namedBindings&&((p=Hn(n.namedBindings,Km))==null?void 0:p.elements);if(i&&(w.assert(!n.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,n.getStart(t),A.createIdentifier(i.name),{suffix:", "})),s.length){let{specifierComparer:h,isSorted:S}=d1.getNamedImportSpecifierComparerWithDetection(n.parent,c,t),T=yf(s.map(x=>A.createImportSpecifier((!n.isTypeOnly||u)&&hH(x,c),x.propertyName===void 0?void 0:A.createIdentifier(x.propertyName),A.createIdentifier(x.name))),h);if(o)e.replaceNode(t,n.namedBindings,A.updateNamedImports(n.namedBindings,yf([...g.filter(x=>!o.has(x)),...T],h)));else if(g?.length&&S!==!1){let x=u&&g?A.updateNamedImports(n.namedBindings,fl(g,I=>A.updateImportSpecifier(I,!0,I.propertyName,I.name))).elements:g;for(let I of T){let P=d1.getImportSpecifierInsertionIndex(x,I,h);e.insertImportSpecifierAtIndex(t,I,n.namedBindings,P)}}else if(g?.length)for(let x of T)e.insertNodeInListAfter(t,ka(g),x,g);else if(T.length){let x=A.createNamedImports(T);n.namedBindings?e.replaceNode(t,n.namedBindings,x):e.insertNodeAfter(t,w.checkDefined(n.name,"Import clause must have either named imports or a default import"),x)}}if(u&&(e.delete(t,Hq(n,t)),g))for(let h of g)e.insertModifierBefore(t,156,h);function d(h,S,T){let x=A.createBindingElement(void 0,T,S);h.elements.length?e.insertNodeInListAfter(t,ka(h.elements),x):e.replaceNode(t,h,A.createObjectBindingPattern([x]))}}function Rpe(e,t,{namespacePrefix:n,usagePosition:i}){e.insertText(t,i,n+".")}function JIe(e,t,{moduleSpecifier:n,usagePosition:i},s){e.insertText(t,i,UIe(n,s))}function UIe(e,t){let n=Vq(t);return`import(${n}${e}${n}).`}function Ope({addAsTypeOnly:e}){return e===2}function hH(e,t){return Ope(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function VIe(e,t,n,i,s,o,c){let p=AE(e,t),u;if(n!==void 0||i?.length){let g=(!n||Ope(n))&&Fi(i,Ope)||(o.verbatimModuleSyntax||c.preferTypeOnlyAutoImports)&&n?.addAsTypeOnly!==4&&!_t(i,d=>d.addAsTypeOnly===4);u=Ux(u,Bb(n&&A.createIdentifier(n.name),i?.map(d=>A.createImportSpecifier(!g&&hH(d,c),d.propertyName===void 0?void 0:A.createIdentifier(d.propertyName),A.createIdentifier(d.name))),e,t,g))}if(s){let g=s.importKind===3?A.createImportEqualsDeclaration(void 0,hH(s,c),A.createIdentifier(s.name),A.createExternalModuleReference(p)):A.createImportDeclaration(void 0,A.createImportClause(hH(s,c)?156:void 0,void 0,A.createNamespaceImport(A.createIdentifier(s.name))),p,void 0);u=Ux(u,g)}return w.checkDefined(u)}function qIe(e,t,n,i,s){let o=AE(e,t),c;if(n||i?.length){let p=i?.map(({name:g,propertyName:d})=>A.createBindingElement(void 0,d,g))||[];n&&p.unshift(A.createBindingElement(void 0,"default",n.name));let u=$Ie(A.createObjectBindingPattern(p),o);c=Ux(c,u)}if(s){let p=$Ie(s.name,o);c=Ux(c,p)}return w.checkDefined(c)}function $Ie(e,t){return A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(typeof e=="string"?A.createIdentifier(e):e,void 0,void 0,A.createCallExpression(A.createIdentifier("require"),void 0,[t]))],2))}function HIe(e,t){return t===7?!0:t&1?!!(e&111551):t&2?!!(e&788968):t&4?!!(e&1920):!1}function Fpe(e,t){return ph(e)?t.getImpliedNodeFormatForEmit(e):Rk(e,t.getCompilerOptions())}function $Xe(e,t){return ph(e)?t.getEmitModuleFormatOfFile(e):SE(e,t.getCompilerOptions())}var jpe="addMissingConstraint",QIe=[_.Type_0_is_not_comparable_to_type_1.code,_.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,_.Type_0_is_not_assignable_to_type_1.code,_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,_.Property_0_is_incompatible_with_index_signature.code,_.Property_0_in_type_1_is_not_assignable_to_type_2.code,_.Type_0_does_not_satisfy_the_constraint_1.code];aa({errorCodes:QIe,getCodeActions(e){let{sourceFile:t,span:n,program:i,preferences:s,host:o}=e,c=KIe(i,t,n);if(c===void 0)return;let p=gn.ChangeTracker.with(e,u=>XIe(u,i,s,o,t,c));return[Us(jpe,p,_.Add_extends_constraint,jpe,_.Add_extends_constraint_to_all_type_parameters)]},fixIds:[jpe],getAllCodeActions:e=>{let{program:t,preferences:n,host:i}=e,s=new Set;return mC(gn.ChangeTracker.with(e,o=>{gC(e,QIe,c=>{let p=KIe(t,c.file,yu(c.start,c.length));if(p&&dd(s,qa(p.declaration)))return XIe(o,t,n,i,c.file,p)})}))}});function KIe(e,t,n){let i=Bn(e.getSemanticDiagnostics(t),c=>c.start===n.start&&c.length===n.length);if(i===void 0||i.relatedInformation===void 0)return;let s=Bn(i.relatedInformation,c=>c.code===_.This_type_parameter_might_need_an_extends_0_constraint.code);if(s===void 0||s.file===void 0||s.start===void 0||s.length===void 0)return;let o=Efe(s.file,yu(s.start,s.length));if(o!==void 0&&(Be(o)&&Ho(o.parent)&&(o=o.parent),Ho(o))){if(yk(o.parent))return;let c=Ii(t,n.start),p=e.getTypeChecker();return{constraint:QXe(p,c)||HXe(s.messageText),declaration:o,token:c}}}function XIe(e,t,n,i,s,o){let{declaration:c,constraint:p}=o,u=t.getTypeChecker();if(Is(p))e.insertText(s,c.name.end,` extends ${p}`);else{let g=xa(t.getCompilerOptions()),d=sD({program:t,host:i}),h=iT(s,t,n,i),S=NH(u,h,p,void 0,g,void 0,void 0,d);S&&(e.replaceNode(s,c,A.updateTypeParameterDeclaration(c,void 0,c.name,S,c.default)),h.writeFixes(e))}}function HXe(e){let[,t]=tg(e,`
|
|
`,0).match(/`extends (.*)`/)||[];return t}function QXe(e,t){return yi(t.parent)?e.getTypeArgumentConstraint(t.parent):(ht(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var YIe="fixOverrideModifier",UR="fixAddOverrideModifier",nL="fixRemoveOverrideModifier",ZIe=[_.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,_.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,_.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,_.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,_.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,_.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,_.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],eDe={[_.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:_.Add_override_modifier,fixId:UR,fixAllDescriptions:_.Add_all_missing_override_modifiers},[_.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:_.Add_override_modifier,fixId:UR,fixAllDescriptions:_.Add_all_missing_override_modifiers},[_.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:_.Remove_override_modifier,fixId:nL,fixAllDescriptions:_.Remove_all_unnecessary_override_modifiers},[_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:_.Remove_override_modifier,fixId:nL,fixAllDescriptions:_.Remove_override_modifier},[_.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:_.Add_override_modifier,fixId:UR,fixAllDescriptions:_.Add_all_missing_override_modifiers},[_.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:_.Add_override_modifier,fixId:UR,fixAllDescriptions:_.Add_all_missing_override_modifiers},[_.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:_.Add_override_modifier,fixId:UR,fixAllDescriptions:_.Remove_all_unnecessary_override_modifiers},[_.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:_.Remove_override_modifier,fixId:nL,fixAllDescriptions:_.Remove_all_unnecessary_override_modifiers},[_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:_.Remove_override_modifier,fixId:nL,fixAllDescriptions:_.Remove_all_unnecessary_override_modifiers}};aa({errorCodes:ZIe,getCodeActions:function(t){let{errorCode:n,span:i}=t,s=eDe[n];if(!s)return Ke;let{descriptions:o,fixId:c,fixAllDescriptions:p}=s,u=gn.ChangeTracker.with(t,g=>tDe(g,t,n,i.start));return[rpe(YIe,u,o,c,p)]},fixIds:[YIe,UR,nL],getAllCodeActions:e=>co(e,ZIe,(t,n)=>{let{code:i,start:s}=n,o=eDe[i];!o||o.fixId!==e.fixId||tDe(t,e,i,s)})});function tDe(e,t,n,i){switch(n){case _.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case _.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case _.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case _.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case _.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return KXe(e,t.sourceFile,i);case _.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case _.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case _.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case _.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return XXe(e,t.sourceFile,i);default:w.fail("Unexpected error code: "+n)}}function KXe(e,t,n){let i=nDe(t,n);if(Cp(t)){e.addJSDocTags(t,i,[A.createJSDocOverrideTag(A.createIdentifier("override"))]);return}let s=i.modifiers||Ke,o=Bn(s,W2),c=Bn(s,fie),p=Bn(s,h=>Oq(h.kind)),u=aS(s,Il),g=c?c.end:o?o.end:p?p.end:u?ha(t.text,u.end):i.getStart(t),d=p||o||c?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,g,164,d)}function XXe(e,t,n){let i=nDe(t,n);if(Cp(t)){e.filterJSDocTags(t,i,jO(h7));return}let s=Bn(i.modifiers,_ie);w.assertIsDefined(s),e.deleteModifier(t,s)}function rDe(e){switch(e.kind){case 177:case 173:case 175:case 178:case 179:return!0;case 170:return Tf(e,e.parent);default:return!1}}function nDe(e,t){let n=Ii(e,t),i=vr(n,s=>ni(s)?"quit":rDe(s));return w.assert(i&&rDe(i)),i}var Lpe="fixNoPropertyAccessFromIndexSignature",iDe=[_.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];aa({errorCodes:iDe,fixIds:[Lpe],getCodeActions(e){let{sourceFile:t,span:n,preferences:i}=e,s=aDe(t,n.start),o=gn.ChangeTracker.with(e,c=>sDe(c,e.sourceFile,s,i));return[Us(Lpe,o,[_.Use_element_access_for_0,s.name.text],Lpe,_.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>co(e,iDe,(t,n)=>sDe(t,n.file,aDe(n.file,n.start),e.preferences))});function sDe(e,t,n,i){let s=Mf(t,i),o=A.createStringLiteral(n.name.text,s===0);e.replaceNode(t,n,aF(n)?A.createElementAccessChain(n.expression,n.questionDotToken,o):A.createElementAccessExpression(n.expression,o))}function aDe(e,t){return Zs(Ii(e,t).parent,Ln)}var Wpe="fixImplicitThis",oDe=[_.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];aa({errorCodes:oDe,getCodeActions:function(t){let{sourceFile:n,program:i,span:s}=t,o,c=gn.ChangeTracker.with(t,p=>{o=cDe(p,n,s.start,i.getTypeChecker())});return o?[Us(Wpe,c,o,Wpe,_.Fix_all_implicit_this_errors)]:Ke},fixIds:[Wpe],getAllCodeActions:e=>co(e,oDe,(t,n)=>{cDe(t,n.file,n.start,e.program.getTypeChecker())})});function cDe(e,t,n,i){let s=Ii(t,n);if(!VI(s))return;let o=fp(s,!1,!1);if(!(!Gc(o)&&!Ao(o))&&!Li(fp(o,!1,!1))){let c=w.checkDefined(lo(o,100,t)),{name:p}=o,u=w.checkDefined(o.body);return Ao(o)?p&&jo.Core.isSymbolReferencedInFile(p,i,t,u)?void 0:(e.delete(t,c),p&&e.delete(t,p),e.insertText(t,u.pos," =>"),[_.Convert_function_expression_0_to_arrow_function,p?p.text:a$]):(e.replaceNode(t,c,A.createToken(87)),e.insertText(t,p.end," = "),e.insertText(t,u.pos," =>"),[_.Convert_function_declaration_0_to_arrow_function,p.text])}}var Bpe="fixImportNonExportedMember",lDe=[_.Module_0_declares_1_locally_but_it_is_not_exported.code];aa({errorCodes:lDe,fixIds:[Bpe],getCodeActions(e){let{sourceFile:t,span:n,program:i}=e,s=uDe(t,n.start,i);if(s===void 0)return;let o=gn.ChangeTracker.with(e,c=>YXe(c,i,s));return[Us(Bpe,o,[_.Export_0_from_module_1,s.exportName.node.text,s.moduleSpecifier],Bpe,_.Export_all_referenced_locals)]},getAllCodeActions(e){let{program:t}=e;return mC(gn.ChangeTracker.with(e,n=>{let i=new Map;gC(e,lDe,s=>{let o=uDe(s.file,s.start,t);if(o===void 0)return;let{exportName:c,node:p,moduleSourceFile:u}=o;if(yH(u,c.isTypeOnly)===void 0&&K6(p))n.insertExportModifier(u,p);else{let g=i.get(u)||{typeOnlyExports:[],exports:[]};c.isTypeOnly?g.typeOnlyExports.push(c):g.exports.push(c),i.set(u,g)}}),i.forEach((s,o)=>{let c=yH(o,!0);c&&c.isTypeOnly?(zpe(n,t,o,s.typeOnlyExports,c),zpe(n,t,o,s.exports,yH(o,!1))):zpe(n,t,o,[...s.exports,...s.typeOnlyExports],c)})}))}});function uDe(e,t,n){var i,s;let o=Ii(e,t);if(Be(o)){let c=vr(o,ac);if(c===void 0)return;let p=ya(c.moduleSpecifier)?c.moduleSpecifier:void 0;if(p===void 0)return;let u=(i=n.getResolvedModuleFromModuleSpecifier(p,e))==null?void 0:i.resolvedModule;if(u===void 0)return;let g=n.getSourceFile(u.resolvedFileName);if(g===void 0||eD(n,g))return;let d=g.symbol,h=(s=Hn(d.valueDeclaration,Tg))==null?void 0:s.locals;if(h===void 0)return;let S=h.get(o.escapedText);if(S===void 0)return;let T=ZXe(S);return T===void 0?void 0:{exportName:{node:o,isTypeOnly:A2(T)},node:T,moduleSourceFile:g,moduleSpecifier:p.text}}}function YXe(e,t,{exportName:n,node:i,moduleSourceFile:s}){let o=yH(s,n.isTypeOnly);o?pDe(e,t,s,o,[n]):K6(i)?e.insertExportModifier(s,i):fDe(e,t,s,[n])}function zpe(e,t,n,i,s){Dr(i)&&(s?pDe(e,t,n,s,i):fDe(e,t,n,i))}function yH(e,t){let n=i=>tl(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return aS(e.statements,n)}function pDe(e,t,n,i,s){let o=i.exportClause&&G_(i.exportClause)?i.exportClause.elements:A.createNodeArray([]),c=!i.isTypeOnly&&!!(md(t.getCompilerOptions())||Bn(o,p=>p.isTypeOnly));e.replaceNode(n,i,A.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,A.createNamedExports(A.createNodeArray([...o,..._De(s,c)],o.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function fDe(e,t,n,i){e.insertNodeAtEndOfScope(n,n,A.createExportDeclaration(void 0,!1,A.createNamedExports(_De(i,md(t.getCompilerOptions()))),void 0,void 0))}function _De(e,t){return A.createNodeArray(kr(e,n=>A.createExportSpecifier(t&&n.isTypeOnly,void 0,n.node)))}function ZXe(e){if(e.valueDeclaration===void 0)return _l(e.declarations);let t=e.valueDeclaration,n=li(t)?Hn(t.parent.parent,Qc):void 0;return n&&Dr(n.declarationList.declarations)===1?n:t}var Gpe="fixIncorrectNamedTupleSyntax",eYe=[_.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,_.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code];aa({errorCodes:eYe,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=tYe(n,i.start),o=gn.ChangeTracker.with(t,c=>rYe(c,n,s));return[Us(Gpe,o,_.Move_labeled_tuple_element_modifiers_to_labels,Gpe,_.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[Gpe]});function tYe(e,t){let n=Ii(e,t);return vr(n,i=>i.kind===203)}function rYe(e,t,n){if(!n)return;let i=n.type,s=!1,o=!1;for(;i.kind===191||i.kind===192||i.kind===197;)i.kind===191?s=!0:i.kind===192&&(o=!0),i=i.type;let c=A.updateNamedTupleMember(n,n.dotDotDotToken||(o?A.createToken(26):void 0),n.name,n.questionToken||(s?A.createToken(58):void 0),i);c!==n&&e.replaceNode(t,n,c)}var dDe="fixSpelling",mDe=[_.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,_.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,_.Cannot_find_name_0_Did_you_mean_1.code,_.Could_not_find_name_0_Did_you_mean_1.code,_.Cannot_find_namespace_0_Did_you_mean_1.code,_.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,_.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,_._0_has_no_exported_member_named_1_Did_you_mean_2.code,_.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,_.No_overload_matches_this_call.code,_.Type_0_is_not_assignable_to_type_1.code];aa({errorCodes:mDe,getCodeActions(e){let{sourceFile:t,errorCode:n}=e,i=gDe(t,e.span.start,e,n);if(!i)return;let{node:s,suggestedSymbol:o}=i,c=xa(e.host.getCompilationSettings()),p=gn.ChangeTracker.with(e,u=>hDe(u,t,s,o,c));return[Us("spelling",p,[_.Change_spelling_to_0,kc(o)],dDe,_.Fix_all_detected_spelling_errors)]},fixIds:[dDe],getAllCodeActions:e=>co(e,mDe,(t,n)=>{let i=gDe(n.file,n.start,e,n.code),s=xa(e.host.getCompilationSettings());i&&hDe(t,e.sourceFile,i.node,i.suggestedSymbol,s)})});function gDe(e,t,n,i){let s=Ii(e,t),o=s.parent;if((i===_.No_overload_matches_this_call.code||i===_.Type_0_is_not_assignable_to_type_1.code)&&!Ym(o))return;let c=n.program.getTypeChecker(),p;if(Ln(o)&&o.name===s){w.assert(sh(s),"Expected an identifier for spelling (property access)");let u=c.getTypeAtLocation(o.expression);o.flags&64&&(u=c.getNonNullableType(u)),p=c.getSuggestedSymbolForNonexistentProperty(s,u)}else if(vn(o)&&o.operatorToken.kind===103&&o.left===s&&zi(s)){let u=c.getTypeAtLocation(o.right);p=c.getSuggestedSymbolForNonexistentProperty(s,u)}else if(Ip(o)&&o.right===s){let u=c.getSymbolAtLocation(o.left);u&&u.flags&1536&&(p=c.getSuggestedSymbolForNonexistentModule(o.right,u))}else if(gp(o)&&o.name===s){w.assertNode(s,Be,"Expected an identifier for spelling (import)");let u=vr(s,ac),g=iYe(n,u,e);g&&g.symbol&&(p=c.getSuggestedSymbolForNonexistentModule(s,g.symbol))}else if(Ym(o)&&o.name===s){w.assertNode(s,Be,"Expected an identifier for JSX attribute");let u=vr(s,Qu),g=c.getContextualTypeForArgumentAtIndex(u,0);p=c.getSuggestedSymbolForNonexistentJSXAttribute(s,g)}else if(d8(o)&&cl(o)&&o.name===s){let u=vr(s,ni),g=u?im(u):void 0,d=g?c.getTypeAtLocation(g):void 0;d&&(p=c.getSuggestedSymbolForNonexistentClassMember(pc(s),d))}else{let u=Ok(s),g=pc(s);w.assert(g!==void 0,"name should be defined"),p=c.getSuggestedSymbolForNonexistentSymbol(s,g,nYe(u))}return p===void 0?void 0:{node:s,suggestedSymbol:p}}function hDe(e,t,n,i,s){let o=kc(i);if(!af(o,s)&&Ln(n.parent)){let c=i.valueDeclaration;c&&Vl(c)&&zi(c.name)?e.replaceNode(t,n,A.createIdentifier(o)):e.replaceNode(t,n.parent,A.createElementAccessExpression(n.parent.expression,A.createStringLiteral(o)))}else e.replaceNode(t,n,A.createIdentifier(o))}function nYe(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function iYe(e,t,n){var i;if(!t||!Ha(t.moduleSpecifier))return;let s=(i=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier,n))==null?void 0:i.resolvedModule;if(s)return e.program.getSourceFile(s.resolvedFileName)}var Jpe="returnValueCorrect",Upe="fixAddReturnStatement",Vpe="fixRemoveBracesFromArrowFunctionBody",qpe="fixWrapTheBlockWithParen",yDe=[_.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,_.Type_0_is_not_assignable_to_type_1.code,_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];aa({errorCodes:yDe,fixIds:[Upe,Vpe,qpe],getCodeActions:function(t){let{program:n,sourceFile:i,span:{start:s},errorCode:o}=t,c=bDe(n.getTypeChecker(),i,s,o);if(c)return c.kind===0?Fr([aYe(t,c.expression,c.statement)],Fo(c.declaration)?oYe(t,c.declaration,c.expression,c.commentSource):void 0):[cYe(t,c.declaration,c.expression)]},getAllCodeActions:e=>co(e,yDe,(t,n)=>{let i=bDe(e.program.getTypeChecker(),n.file,n.start,n.code);if(i)switch(e.fixId){case Upe:SDe(t,n.file,i.expression,i.statement);break;case Vpe:if(!Fo(i.declaration))return;TDe(t,n.file,i.declaration,i.expression,i.commentSource,!1);break;case qpe:if(!Fo(i.declaration))return;kDe(t,n.file,i.declaration,i.expression);break;default:w.fail(JSON.stringify(e.fixId))}})});function vDe(e,t,n){let i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(n);let s=Qs([i]);return e.createAnonymousType(void 0,s,[],[],[])}function $pe(e,t,n,i){if(!t.body||!Bs(t.body)||Dr(t.body.statements)!==1)return;let s=Ra(t.body.statements);if(Ql(s)&&Hpe(e,t,e.getTypeAtLocation(s.expression),n,i))return{declaration:t,kind:0,expression:s.expression,statement:s,commentSource:s.expression};if(Eb(s)&&Ql(s.statement)){let o=A.createObjectLiteralExpression([A.createPropertyAssignment(s.label,s.statement.expression)]),c=vDe(e,s.label,s.statement.expression);if(Hpe(e,t,c,n,i))return Fo(t)?{declaration:t,kind:1,expression:o,statement:s,commentSource:s.statement.expression}:{declaration:t,kind:0,expression:o,statement:s,commentSource:s.statement.expression}}else if(Bs(s)&&Dr(s.statements)===1){let o=Ra(s.statements);if(Eb(o)&&Ql(o.statement)){let c=A.createObjectLiteralExpression([A.createPropertyAssignment(o.label,o.statement.expression)]),p=vDe(e,o.label,o.statement.expression);if(Hpe(e,t,p,n,i))return{declaration:t,kind:0,expression:c,statement:s,commentSource:o}}}}function Hpe(e,t,n,i,s){if(s){let o=e.getSignatureFromDeclaration(t);if(o){ri(t,1024)&&(n=e.createPromiseType(n));let c=e.createSignature(t,o.typeParameters,o.thisParameter,o.parameters,n,void 0,o.minArgumentCount,o.flags);n=e.createAnonymousType(void 0,Qs(),[c],[],[])}else n=e.getAnyType()}return e.isTypeAssignableTo(n,i)}function bDe(e,t,n,i){let s=Ii(t,n);if(!s.parent)return;let o=vr(s.parent,yo);switch(i){case _.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!o||!o.body||!o.type||!$p(o.type,s)?void 0:$pe(e,o,e.getTypeFromTypeNode(o.type),!1);case _.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!Ws(o.parent)||!o.body)return;let c=o.parent.arguments.indexOf(o);if(c===-1)return;let p=e.getContextualTypeForArgumentAtIndex(o.parent,c);return p?$pe(e,o,p,!0):void 0;case _.Type_0_is_not_assignable_to_type_1.code:if(!Ig(s)||!VP(s.parent)&&!Ym(s.parent))return;let u=sYe(s.parent);return!u||!yo(u)||!u.body?void 0:$pe(e,u,e.getTypeAtLocation(s.parent),!0)}}function sYe(e){switch(e.kind){case 261:case 170:case 209:case 173:case 304:return e.initializer;case 292:return e.initializer&&(yI(e.initializer)?e.initializer.expression:void 0);case 305:case 172:case 307:case 349:case 342:return}}function SDe(e,t,n,i){Df(n);let s=CR(t);e.replaceNode(t,i,A.createReturnStatement(n),{leadingTriviaOption:gn.LeadingTriviaOption.Exclude,trailingTriviaOption:gn.TrailingTriviaOption.Exclude,suffix:s?";":void 0})}function TDe(e,t,n,i,s,o){let c=o||v5(i)?A.createParenthesizedExpression(i):i;Df(s),jk(s,c),e.replaceNode(t,n.body,c)}function kDe(e,t,n,i){e.replaceNode(t,n.body,A.createParenthesizedExpression(i))}function aYe(e,t,n){let i=gn.ChangeTracker.with(e,s=>SDe(s,e.sourceFile,t,n));return Us(Jpe,i,_.Add_a_return_statement,Upe,_.Add_all_missing_return_statement)}function oYe(e,t,n,i){let s=gn.ChangeTracker.with(e,o=>TDe(o,e.sourceFile,t,n,i,!1));return Us(Jpe,s,_.Remove_braces_from_arrow_function_body,Vpe,_.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function cYe(e,t,n){let i=gn.ChangeTracker.with(e,s=>kDe(s,e.sourceFile,t,n));return Us(Jpe,i,_.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,qpe,_.Wrap_all_object_literal_with_parentheses)}var f1="fixMissingMember",vH="fixMissingProperties",bH="fixMissingAttributes",SH="fixMissingFunctionDeclaration",xDe=[_.Property_0_does_not_exist_on_type_1.code,_.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,_.Property_0_is_missing_in_type_1_but_required_in_type_2.code,_.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,_.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_.Cannot_find_name_0.code,_.Type_0_does_not_satisfy_the_expected_type_1.code];aa({errorCodes:xDe,getCodeActions(e){let t=e.program.getTypeChecker(),n=CDe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(n){if(n.kind===3){let i=gn.ChangeTracker.with(e,s=>ODe(s,e,n));return[Us(vH,i,_.Add_missing_properties,vH,_.Add_all_missing_properties)]}if(n.kind===4){let i=gn.ChangeTracker.with(e,s=>RDe(s,e,n));return[Us(bH,i,_.Add_missing_attributes,bH,_.Add_all_missing_attributes)]}if(n.kind===2||n.kind===5){let i=gn.ChangeTracker.with(e,s=>MDe(s,e,n));return[Us(SH,i,[_.Add_missing_function_declaration_0,n.token.text],SH,_.Add_all_missing_function_declarations)]}if(n.kind===1){let i=gn.ChangeTracker.with(e,s=>NDe(s,e.program.getTypeChecker(),n));return[Us(f1,i,[_.Add_missing_enum_member_0,n.token.text],f1,_.Add_all_missing_members)]}return Qi(_Ye(e,n),lYe(e,n))}},fixIds:[f1,SH,vH,bH],getAllCodeActions:e=>{let{program:t,fixId:n}=e,i=t.getTypeChecker(),s=new Set,o=new Map;return mC(gn.ChangeTracker.with(e,c=>{gC(e,xDe,p=>{let u=CDe(p.file,p.start,p.code,i,e.program);if(u===void 0)return;let g=qa(u.parentDeclaration)+"#"+(u.kind===3?u.identifier||qa(u.token):u.token.text);if(dd(s,g)){if(n===SH&&(u.kind===2||u.kind===5))MDe(c,e,u);else if(n===vH&&u.kind===3)ODe(c,e,u);else if(n===bH&&u.kind===4)RDe(c,e,u);else if(u.kind===1&&NDe(c,i,u),u.kind===0){let{parentDeclaration:d,token:h}=u,S=pP(o,d,()=>[]);S.some(T=>T.token.text===h.text)||S.push(u)}}}),o.forEach((p,u)=>{let g=Dp(u)?void 0:yYe(u,i);for(let d of p){if(g?.some(E=>{let F=o.get(E);return!!F&&F.some(({token:O})=>O.text===d.token.text)}))continue;let{parentDeclaration:h,declSourceFile:S,modifierFlags:T,token:x,call:I,isJSFile:P}=d;if(I&&!zi(x))EDe(e,c,I,x,T&256,h,S);else if(P&&!uu(h)&&!Dp(h))wDe(c,S,h,x,!!(T&256));else{let E=DDe(i,h,x);PDe(c,S,h,x.text,E,T&256)}}})}))}});function CDe(e,t,n,i,s){var o,c;let p=Ii(e,t),u=p.parent;if(n===_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(p.kind===19&&Sa(u)&&Ws(u.parent)))return;let x=Tc(u.parent.arguments,F=>F===u);if(x<0)return;let I=i.getResolvedSignature(u.parent);if(!(I&&I.declaration&&I.parameters[x]))return;let P=I.parameters[x].valueDeclaration;if(!(P&&Gi(P)&&Be(P.name)))return;let E=ds(i.getUnmatchedProperties(i.getTypeAtLocation(u),i.getParameterType(I,x).getNonNullableType(),!1,!1));return Dr(E)?{kind:3,token:P.name,identifier:P.name.text,properties:E,parentDeclaration:u}:void 0}if(p.kind===19||gI(u)||Qf(u)){let x=(gI(u)||Qf(u))&&u.expression?u.expression:u;if(Sa(x)){let I=gI(u)?i.getTypeFromTypeNode(u.type):i.getContextualType(x)||i.getTypeAtLocation(x),P=ds(i.getUnmatchedProperties(i.getTypeAtLocation(u),I.getNonNullableType(),!1,!1));return Dr(P)?{kind:3,token:u,identifier:void 0,properties:P,parentDeclaration:x,indentation:Qf(x.parent)||u4(x.parent)?0:void 0}:void 0}}if(!sh(p))return;if(Be(p)&&Hy(u)&&u.initializer&&Sa(u.initializer)){let x=(o=i.getContextualType(p)||i.getTypeAtLocation(p))==null?void 0:o.getNonNullableType(),I=ds(i.getUnmatchedProperties(i.getTypeAtLocation(u.initializer),x,!1,!1));return Dr(I)?{kind:3,token:p,identifier:p.text,properties:I,parentDeclaration:u.initializer}:void 0}if(Be(p)&&Qu(p.parent)){let x=xa(s.getCompilerOptions()),I=mYe(i,x,p.parent);return Dr(I)?{kind:4,token:p,attributes:I,parentDeclaration:p.parent}:void 0}if(Be(p)){let x=(c=i.getContextualType(p))==null?void 0:c.getNonNullableType();if(x&&jn(x)&16){let I=_l(i.getSignaturesOfType(x,0));return I===void 0?void 0:{kind:5,token:p,signature:I,sourceFile:e,parentDeclaration:FDe(p)}}if(Ws(u)&&u.expression===p)return{kind:2,token:p,call:u,sourceFile:e,modifierFlags:0,parentDeclaration:FDe(p)}}if(!Ln(u))return;let g=zq(i.getTypeAtLocation(u.expression)),d=g.symbol;if(!d||!d.declarations)return;if(Be(p)&&Ws(u.parent)){let x=Bn(d.declarations,el),I=x?.getSourceFile();if(x&&I&&!eD(s,I))return{kind:2,token:p,call:u.parent,sourceFile:I,modifierFlags:32,parentDeclaration:x};let P=Bn(d.declarations,Li);if(e.commonJsModuleIndicator)return;if(P&&!eD(s,P))return{kind:2,token:p,call:u.parent,sourceFile:P,modifierFlags:32,parentDeclaration:P}}let h=Bn(d.declarations,ni);if(!h&&zi(p))return;let S=h||Bn(d.declarations,x=>uu(x)||Dp(x));if(S&&!eD(s,S.getSourceFile())){let x=!Dp(S)&&(g.target||g)!==i.getDeclaredTypeOfSymbol(d);if(x&&(zi(p)||uu(S)))return;let I=S.getSourceFile(),P=Dp(S)?0:(x?256:0)|(d$(p.text)?2:0),E=Cp(I),F=Hn(u.parent,Ws);return{kind:0,token:p,call:F,modifierFlags:P,parentDeclaration:S,declSourceFile:I,isJSFile:E}}let T=Bn(d.declarations,H0);if(T&&!(g.flags&1056)&&!zi(p)&&!eD(s,T.getSourceFile()))return{kind:1,token:p,parentDeclaration:T}}function lYe(e,t){return t.isJSFile?Qx(uYe(e,t)):pYe(e,t)}function uYe(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:i,token:s}){if(uu(t)||Dp(t))return;let o=gn.ChangeTracker.with(e,p=>wDe(p,n,t,s,!!(i&256)));if(o.length===0)return;let c=i&256?_.Initialize_static_property_0:zi(s)?_.Declare_a_private_field_named_0:_.Initialize_property_0_in_the_constructor;return Us(f1,o,[c,s.text],f1,_.Add_all_missing_members)}function wDe(e,t,n,i,s){let o=i.text;if(s){if(n.kind===232)return;let c=n.name.getText(),p=IDe(A.createIdentifier(c),o);e.insertNodeAfter(t,n,p)}else if(zi(i)){let c=A.createPropertyDeclaration(void 0,o,void 0,void 0,void 0),p=ADe(n);p?e.insertNodeAfter(t,p,c):e.insertMemberAtStart(t,n,c)}else{let c=_h(n);if(!c)return;let p=IDe(A.createThis(),o);e.insertNodeAtConstructorEnd(t,c,p)}}function IDe(e,t){return A.createExpressionStatement(A.createAssignment(A.createPropertyAccessExpression(e,t),yC()))}function pYe(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:i,token:s}){let o=s.text,c=i&256,p=DDe(e.program.getTypeChecker(),t,s),u=d=>gn.ChangeTracker.with(e,h=>PDe(h,n,t,o,p,d)),g=[Us(f1,u(i&256),[c?_.Declare_static_property_0:_.Declare_property_0,o],f1,_.Add_all_missing_members)];return c||zi(s)||(i&2&&g.unshift(dm(f1,u(2),[_.Declare_private_property_0,o])),g.push(fYe(e,n,t,s.text,p))),g}function DDe(e,t,n){let i;if(n.parent.parent.kind===227){let s=n.parent.parent,o=n.parent===s.left?s.right:s.left,c=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(o)));i=e.typeToTypeNode(c,t,1,8)}else{let s=e.getContextualType(n.parent);i=s?e.typeToTypeNode(s,void 0,1,8):void 0}return i||A.createKeywordTypeNode(133)}function PDe(e,t,n,i,s,o){let c=o?A.createNodeArray(A.createModifiersFromModifierFlags(o)):void 0,p=ni(n)?A.createPropertyDeclaration(c,i,void 0,s,void 0):A.createPropertySignature(void 0,i,void 0,s),u=ADe(n);u?e.insertNodeAfter(t,u,p):e.insertMemberAtStart(t,n,p)}function ADe(e){let t;for(let n of e.members){if(!hs(n))break;t=n}return t}function fYe(e,t,n,i,s){let o=A.createKeywordTypeNode(154),c=A.createParameterDeclaration(void 0,void 0,"x",void 0,o,void 0),p=A.createIndexSignature(void 0,[c],s),u=gn.ChangeTracker.with(e,g=>g.insertMemberAtStart(t,n,p));return dm(f1,u,[_.Add_index_signature_for_property_0,i])}function _Ye(e,t){let{parentDeclaration:n,declSourceFile:i,modifierFlags:s,token:o,call:c}=t;if(c===void 0)return;let p=o.text,u=d=>gn.ChangeTracker.with(e,h=>EDe(e,h,c,o,d,n,i)),g=[Us(f1,u(s&256),[s&256?_.Declare_static_method_0:_.Declare_method_0,p],f1,_.Add_all_missing_members)];return s&2&&g.unshift(dm(f1,u(2),[_.Declare_private_method_0,p])),g}function EDe(e,t,n,i,s,o,c){let p=iT(c,e.program,e.preferences,e.host),u=ni(o)?175:174,g=xfe(u,e,p,n,i,s,o),d=gYe(o,n);d?t.insertNodeAfter(c,d,g):t.insertMemberAtStart(c,o,g),p.writeFixes(t)}function NDe(e,t,{token:n,parentDeclaration:i}){let s=_t(i.members,u=>{let g=t.getTypeAtLocation(u);return!!(g&&g.flags&402653316)}),o=i.getSourceFile(),c=A.createEnumMember(n,s?A.createStringLiteral(n.text):void 0),p=Wo(i.members);p?e.insertNodeInListAfter(o,p,c,i.members):e.insertMemberAtStart(o,i,c)}function MDe(e,t,n){let i=Mf(t.sourceFile,t.preferences),s=iT(t.sourceFile,t.program,t.preferences,t.host),o=n.kind===2?xfe(263,t,s,n.call,Fn(n.token),n.modifierFlags,n.parentDeclaration):EH(263,t,i,n.signature,sL(_.Function_not_implemented.message,i),n.token,void 0,void 0,void 0,s);o===void 0&&w.fail("fixMissingFunctionDeclaration codefix got unexpected error."),Qf(n.parentDeclaration)?e.insertNodeBefore(n.sourceFile,n.parentDeclaration,o,!0):e.insertNodeAtEndOfScope(n.sourceFile,n.parentDeclaration,o),s.writeFixes(e)}function RDe(e,t,n){let i=iT(t.sourceFile,t.program,t.preferences,t.host),s=Mf(t.sourceFile,t.preferences),o=t.program.getTypeChecker(),c=n.parentDeclaration.attributes,p=_t(c.properties,$2),u=kr(n.attributes,h=>{let S=TH(t,o,i,s,o.getTypeOfSymbol(h),n.parentDeclaration),T=A.createIdentifier(h.name),x=A.createJsxAttribute(T,A.createJsxExpression(void 0,S));return Ka(T,x),x}),g=A.createJsxAttributes(p?[...u,...c.properties]:[...c.properties,...u]),d={prefix:c.pos===c.end?" ":void 0};e.replaceNode(t.sourceFile,c,g,d),i.writeFixes(e)}function ODe(e,t,n){let i=iT(t.sourceFile,t.program,t.preferences,t.host),s=Mf(t.sourceFile,t.preferences),o=xa(t.program.getCompilerOptions()),c=t.program.getTypeChecker(),p=kr(n.properties,g=>{let d=TH(t,c,i,s,c.getTypeOfSymbol(g),n.parentDeclaration);return A.createPropertyAssignment(hYe(g,o,s,c),d)}),u={leadingTriviaOption:gn.LeadingTriviaOption.Exclude,trailingTriviaOption:gn.TrailingTriviaOption.Exclude,indentation:n.indentation};e.replaceNode(t.sourceFile,n.parentDeclaration,A.createObjectLiteralExpression([...n.parentDeclaration.properties,...p],!0),u),i.writeFixes(e)}function TH(e,t,n,i,s,o){if(s.flags&3)return yC();if(s.flags&134217732)return A.createStringLiteral("",i===0);if(s.flags&8)return A.createNumericLiteral(0);if(s.flags&64)return A.createBigIntLiteral("0n");if(s.flags&16)return A.createFalse();if(s.flags&1056){let c=s.symbol.exports?MO(s.symbol.exports.values()):s.symbol,p=s.symbol.parent&&s.symbol.parent.flags&256?s.symbol.parent:s.symbol,u=t.symbolToExpression(p,111551,void 0,64);return c===void 0||u===void 0?A.createNumericLiteral(0):A.createPropertyAccessExpression(u,t.symbolToString(c))}if(s.flags&256)return A.createNumericLiteral(s.value);if(s.flags&2048)return A.createBigIntLiteral(s.value);if(s.flags&128)return A.createStringLiteral(s.value,i===0);if(s.flags&512)return s===t.getFalseType()||s===t.getFalseType(!0)?A.createFalse():A.createTrue();if(s.flags&65536)return A.createNull();if(s.flags&1048576)return fo(s.types,p=>TH(e,t,n,i,p,o))??yC();if(t.isArrayLikeType(s))return A.createArrayLiteralExpression();if(dYe(s)){let c=kr(t.getPropertiesOfType(s),p=>{let u=TH(e,t,n,i,t.getTypeOfSymbol(p),o);return A.createPropertyAssignment(p.name,u)});return A.createObjectLiteralExpression(c,!0)}if(jn(s)&16){if(Bn(s.symbol.declarations||Ke,vf(Pg,jd,hc))===void 0)return yC();let p=t.getSignaturesOfType(s,0);return p===void 0?yC():EH(219,e,i,p[0],sL(_.Function_not_implemented.message,i),void 0,void 0,void 0,o,n)??yC()}if(jn(s)&1){let c=iy(s.symbol);if(c===void 0||AS(c))return yC();let p=_h(c);return p&&Dr(p.parameters)?yC():A.createNewExpression(A.createIdentifier(s.symbol.name),void 0,void 0)}return yC()}function yC(){return A.createIdentifier("undefined")}function dYe(e){return e.flags&524288&&(jn(e)&128||e.symbol&&Hn(eh(e.symbol.declarations),Dp))}function mYe(e,t,n){let i=e.getContextualType(n.attributes);if(i===void 0)return Ke;let s=i.getProperties();if(!Dr(s))return Ke;let o=new Set;for(let c of n.attributes.properties)if(Ym(c)&&o.add(NA(c.name)),$2(c)){let p=e.getTypeAtLocation(c.expression);for(let u of p.getProperties())o.add(u.escapedName)}return Mn(s,c=>af(c.name,t,1)&&!(c.flags&16777216||Cc(c)&48||o.has(c.escapedName)))}function gYe(e,t){if(Dp(e))return;let n=vr(t,i=>hc(i)||yc(i));return n&&n.parent===e?n:void 0}function hYe(e,t,n,i){if(oh(e)){let s=i.symbolToNode(e,111551,void 0,void 0,1);if(s&&na(s))return s}return Q6(e.name,t,n===0,!1,!1)}function FDe(e){if(vr(e,yI)){let t=vr(e.parent,Qf);if(t)return t}return Nr(e)}function yYe(e,t){let n=[];for(;e;){let i=CS(e),s=i&&t.getSymbolAtLocation(i.expression);if(!s)break;let o=s.flags&2097152?t.getAliasedSymbol(s):s,c=o.declarations&&Bn(o.declarations,ni);if(!c)break;n.push(c),e=c}return n}var Qpe="addMissingNewOperator",jDe=[_.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];aa({errorCodes:jDe,getCodeActions(e){let{sourceFile:t,span:n}=e,i=gn.ChangeTracker.with(e,s=>LDe(s,t,n));return[Us(Qpe,i,_.Add_missing_new_operator_to_call,Qpe,_.Add_missing_new_operator_to_all_calls)]},fixIds:[Qpe],getAllCodeActions:e=>co(e,jDe,(t,n)=>LDe(t,e.sourceFile,n))});function LDe(e,t,n){let i=Zs(vYe(t,n),Ws),s=A.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,s)}function vYe(e,t){let n=Ii(e,t.start),i=mc(t);for(;n.end<i;)n=n.parent;return n}var kH="addMissingParam",xH="addOptionalParam",WDe=[_.Expected_0_arguments_but_got_1.code];aa({errorCodes:WDe,fixIds:[kH,xH],getCodeActions(e){let t=BDe(e.sourceFile,e.program,e.span.start);if(t===void 0)return;let{name:n,declarations:i,newParameters:s,newOptionalParameters:o}=t,c=[];return Dr(s)&&Fr(c,Us(kH,gn.ChangeTracker.with(e,p=>CH(p,e.program,e.preferences,e.host,i,s)),[Dr(s)>1?_.Add_missing_parameters_to_0:_.Add_missing_parameter_to_0,n],kH,_.Add_all_missing_parameters)),Dr(o)&&Fr(c,Us(xH,gn.ChangeTracker.with(e,p=>CH(p,e.program,e.preferences,e.host,i,o)),[Dr(o)>1?_.Add_optional_parameters_to_0:_.Add_optional_parameter_to_0,n],xH,_.Add_all_optional_parameters)),c},getAllCodeActions:e=>co(e,WDe,(t,n)=>{let i=BDe(e.sourceFile,e.program,n.start);if(i){let{declarations:s,newParameters:o,newOptionalParameters:c}=i;e.fixId===kH&&CH(t,e.program,e.preferences,e.host,s,o),e.fixId===xH&&CH(t,e.program,e.preferences,e.host,s,c)}})});function BDe(e,t,n){let i=Ii(e,n),s=vr(i,Ws);if(s===void 0||Dr(s.arguments)===0)return;let o=t.getTypeChecker(),c=o.getTypeAtLocation(s.expression),p=Mn(c.symbol.declarations,zDe);if(p===void 0)return;let u=Wo(p);if(u===void 0||u.body===void 0||eD(t,u.getSourceFile()))return;let g=bYe(u);if(g===void 0)return;let d=[],h=[],S=Dr(u.parameters),T=Dr(s.arguments);if(S>T)return;let x=[u,...TYe(u,p)];for(let I=0,P=0,E=0;I<T;I++){let F=s.arguments[I],O=Oo(F)?vG(F):F,W=o.getWidenedType(o.getBaseTypeOfLiteralType(o.getTypeAtLocation(F))),z=P<S?u.parameters[P]:void 0;if(z&&o.isTypeAssignableTo(W,o.getTypeAtLocation(z))){P++;continue}let $=O&&Be(O)?O.text:`p${E++}`,X=SYe(o,W,u);Fr(d,{pos:I,declaration:JDe($,X,void 0)}),!xYe(x,P)&&Fr(h,{pos:I,declaration:JDe($,X,A.createToken(58))})}return{newParameters:d,newOptionalParameters:h,name:To(g),declarations:x}}function bYe(e){let t=Ss(e);if(t)return t;if(li(e.parent)&&Be(e.parent.name)||hs(e.parent)||Gi(e.parent))return e.parent.name}function SYe(e,t,n){return e.typeToTypeNode(e.getWidenedType(t),n,1,8)??A.createKeywordTypeNode(159)}function CH(e,t,n,i,s,o){let c=xa(t.getCompilerOptions());or(s,p=>{let u=Nr(p),g=iT(u,t,n,i);Dr(p.parameters)?e.replaceNodeRangeWithNodes(u,Ra(p.parameters),ka(p.parameters),GDe(g,c,p,o),{joiner:", ",indentation:0,leadingTriviaOption:gn.LeadingTriviaOption.IncludeAll,trailingTriviaOption:gn.TrailingTriviaOption.Include}):or(GDe(g,c,p,o),(d,h)=>{Dr(p.parameters)===0&&h===0?e.insertNodeAt(u,p.parameters.end,d):e.insertNodeAtEndOfList(u,p.parameters,d)}),g.writeFixes(e)})}function zDe(e){switch(e.kind){case 263:case 219:case 175:case 220:return!0;default:return!1}}function GDe(e,t,n,i){let s=kr(n.parameters,o=>A.createParameterDeclaration(o.modifiers,o.dotDotDotToken,o.name,o.questionToken,o.type,o.initializer));for(let{pos:o,declaration:c}of i){let p=o>0?s[o-1]:void 0;s.splice(o,0,A.updateParameterDeclaration(c,c.modifiers,c.dotDotDotToken,c.name,p&&p.questionToken?A.createToken(58):c.questionToken,CYe(e,c.type,t),c.initializer))}return s}function TYe(e,t){let n=[];for(let i of t)if(kYe(i)){if(Dr(i.parameters)===Dr(e.parameters)){n.push(i);continue}if(Dr(i.parameters)>Dr(e.parameters))return[]}return n}function kYe(e){return zDe(e)&&e.body===void 0}function JDe(e,t,n){return A.createParameterDeclaration(void 0,void 0,e,n,t,void 0)}function xYe(e,t){return Dr(e)&&_t(e,n=>t<Dr(n.parameters)&&!!n.parameters[t]&&n.parameters[t].questionToken===void 0)}function CYe(e,t,n){let i=sT(t,n);return i?(Wk(e,i.symbols),i.typeNode):t}var wYe="fixCannotFindModule",Kpe="installTypesPackage",UDe=_.Cannot_find_module_0_or_its_corresponding_type_declarations.code,VDe=_.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed.code,qDe=[UDe,_.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code,VDe];aa({errorCodes:qDe,getCodeActions:function(t){let{host:n,sourceFile:i,span:{start:s},errorCode:o}=t,c=o===VDe?J6(t.program.getCompilerOptions(),i):HDe(i,s);if(c===void 0)return;let p=QDe(c,n,o);return p===void 0?[]:[Us(wYe,[],[_.Install_0,p],Kpe,_.Install_all_missing_types_packages,$De(i.fileName,p))]},fixIds:[Kpe],getAllCodeActions:e=>co(e,qDe,(t,n,i)=>{let s=HDe(n.file,n.start);if(s!==void 0)if(e.fixId===Kpe){let o=QDe(s,e.host,n.code);o&&i.push($De(n.file.fileName,o))}else w.fail(`Bad fixId: ${e.fixId}`)})});function $De(e,t){return{type:"install package",file:e,packageName:t}}function HDe(e,t){let n=Hn(Ii(e,t),ya);if(!n)return;let i=n.text,{packageName:s}=X7(i);return Ul(s)?void 0:s}function QDe(e,t,n){var i;return n===UDe?lI.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?Z7(e):void 0}var KDe=[_.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,_.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,_.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,_.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,_.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,_.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code],Xpe="fixClassDoesntImplementInheritedAbstractMember";aa({errorCodes:KDe,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=gn.ChangeTracker.with(t,o=>YDe(XDe(n,i.start),n,t,o,t.preferences));return s.length===0?void 0:[Us(Xpe,s,_.Implement_inherited_abstract_class,Xpe,_.Implement_all_inherited_abstract_classes)]},fixIds:[Xpe],getAllCodeActions:function(t){let n=new Set;return co(t,KDe,(i,s)=>{let o=XDe(s.file,s.start);dd(n,qa(o))&&YDe(o,t.sourceFile,t,i,t.preferences)})}});function XDe(e,t){let n=Ii(e,t);return Zs(n.parent,ni)}function YDe(e,t,n,i,s){let o=im(e),c=n.program.getTypeChecker(),p=c.getTypeAtLocation(o),u=c.getPropertiesOfType(p).filter(IYe),g=iT(t,n.program,s,n.host);kfe(e,u,t,n,s,g,d=>i.insertMemberAtStart(t,e,d)),g.writeFixes(i)}function IYe(e){let t=Xy(Ra(e.getDeclarations()));return!(t&2)&&!!(t&64)}var Ype="classSuperMustPrecedeThisAccess",ZDe=[_.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];aa({errorCodes:ZDe,getCodeActions(e){let{sourceFile:t,span:n}=e,i=tPe(t,n.start);if(!i)return;let{constructor:s,superCall:o}=i,c=gn.ChangeTracker.with(e,p=>ePe(p,t,s,o));return[Us(Ype,c,_.Make_super_call_the_first_statement_in_the_constructor,Ype,_.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[Ype],getAllCodeActions(e){let{sourceFile:t}=e,n=new Set;return co(e,ZDe,(i,s)=>{let o=tPe(s.file,s.start);if(!o)return;let{constructor:c,superCall:p}=o;dd(n,qa(c.parent))&&ePe(i,t,c,p)})}});function ePe(e,t,n,i){e.insertNodeAtConstructorStart(t,n,i),e.delete(t,i)}function tPe(e,t){let n=Ii(e,t);if(n.kind!==110)return;let i=i_(n),s=rPe(i.body);return s&&!s.expression.arguments.some(o=>Ln(o)&&o.expression===n)?{constructor:i,superCall:s}:void 0}function rPe(e){return Ql(e)&&ek(e.expression)?e:Fs(e)?void 0:Ms(e,rPe)}var Zpe="constructorForDerivedNeedSuperCall",nPe=[_.Constructors_for_derived_classes_must_contain_a_super_call.code];aa({errorCodes:nPe,getCodeActions(e){let{sourceFile:t,span:n}=e,i=iPe(t,n.start),s=gn.ChangeTracker.with(e,o=>sPe(o,t,i));return[Us(Zpe,s,_.Add_missing_super_call,Zpe,_.Add_all_missing_super_calls)]},fixIds:[Zpe],getAllCodeActions:e=>co(e,nPe,(t,n)=>sPe(t,e.sourceFile,iPe(n.file,n.start)))});function iPe(e,t){let n=Ii(e,t);return w.assert(yc(n.parent),"token should be at the constructor declaration"),n.parent}function sPe(e,t,n){let i=A.createExpressionStatement(A.createCallExpression(A.createSuper(),void 0,Ke));e.insertNodeAtConstructorStart(t,n,i)}var aPe="fixEnableJsxFlag",oPe=[_.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];aa({errorCodes:oPe,getCodeActions:function(t){let{configFile:n}=t.program.getCompilerOptions();if(n===void 0)return;let i=gn.ChangeTracker.with(t,s=>cPe(s,n));return[dm(aPe,i,_.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[aPe],getAllCodeActions:e=>co(e,oPe,t=>{let{configFile:n}=e.program.getCompilerOptions();n!==void 0&&cPe(t,n)})});function cPe(e,t){Pfe(e,t,"jsx",A.createStringLiteral("react"))}var efe="fixNaNEquality",lPe=[_.This_condition_will_always_return_0.code];aa({errorCodes:lPe,getCodeActions(e){let{sourceFile:t,span:n,program:i}=e,s=uPe(i,t,n);if(s===void 0)return;let{suggestion:o,expression:c,arg:p}=s,u=gn.ChangeTracker.with(e,g=>pPe(g,t,p,c));return[Us(efe,u,[_.Use_0,o],efe,_.Use_Number_isNaN_in_all_conditions)]},fixIds:[efe],getAllCodeActions:e=>co(e,lPe,(t,n)=>{let i=uPe(e.program,n.file,yu(n.start,n.length));i&&pPe(t,n.file,i.arg,i.expression)})});function uPe(e,t,n){let i=Bn(e.getSemanticDiagnostics(t),c=>c.start===n.start&&c.length===n.length);if(i===void 0||i.relatedInformation===void 0)return;let s=Bn(i.relatedInformation,c=>c.code===_.Did_you_mean_0.code);if(s===void 0||s.file===void 0||s.start===void 0||s.length===void 0)return;let o=Efe(s.file,yu(s.start,s.length));if(o!==void 0&&ht(o)&&vn(o.parent))return{suggestion:DYe(s.messageText),expression:o.parent,arg:o}}function pPe(e,t,n,i){let s=A.createCallExpression(A.createPropertyAccessExpression(A.createIdentifier("Number"),A.createIdentifier("isNaN")),void 0,[n]),o=i.operatorToken.kind;e.replaceNode(t,i,o===38||o===36?A.createPrefixUnaryExpression(54,s):s)}function DYe(e){let[,t]=tg(e,`
|
|
`,0).match(/'(.*)'/)||[];return t}aa({errorCodes:[_.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,_.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,_.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){let n=t.program.getCompilerOptions(),{configFile:i}=n;if(i===void 0)return;let s=[],o=_p(n);if(o>=5&&o<99){let g=gn.ChangeTracker.with(t,d=>{Pfe(d,i,"module",A.createStringLiteral("esnext"))});s.push(dm("fixModuleOption",g,[_.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}let p=xa(n);if(p<4||p>99){let g=gn.ChangeTracker.with(t,d=>{if(!$P(i))return;let S=[["target",A.createStringLiteral("es2017")]];o===1&&S.push(["module",A.createStringLiteral("commonjs")]),Dfe(d,i,S)});s.push(dm("fixTargetOption",g,[_.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return s.length?s:void 0}});var tfe="fixPropertyAssignment",fPe=[_.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];aa({errorCodes:fPe,fixIds:[tfe],getCodeActions(e){let{sourceFile:t,span:n}=e,i=dPe(t,n.start),s=gn.ChangeTracker.with(e,o=>_Pe(o,e.sourceFile,i));return[Us(tfe,s,[_.Change_0_to_1,"=",":"],tfe,[_.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>co(e,fPe,(t,n)=>_Pe(t,n.file,dPe(n.file,n.start)))});function _Pe(e,t,n){e.replaceNode(t,n,A.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function dPe(e,t){return Zs(Ii(e,t).parent,Fu)}var rfe="extendsInterfaceBecomesImplements",mPe=[_.Cannot_extend_an_interface_0_Did_you_mean_implements.code];aa({errorCodes:mPe,getCodeActions(e){let{sourceFile:t}=e,n=gPe(t,e.span.start);if(!n)return;let{extendsToken:i,heritageClauses:s}=n,o=gn.ChangeTracker.with(e,c=>hPe(c,t,i,s));return[Us(rfe,o,_.Change_extends_to_implements,rfe,_.Change_all_extended_interfaces_to_implements)]},fixIds:[rfe],getAllCodeActions:e=>co(e,mPe,(t,n)=>{let i=gPe(n.file,n.start);i&&hPe(t,n.file,i.extendsToken,i.heritageClauses)})});function gPe(e,t){let n=Ii(e,t),i=cu(n).heritageClauses,s=i[0].getFirstToken();return s.kind===96?{extendsToken:s,heritageClauses:i}:void 0}function hPe(e,t,n,i){if(e.replaceNode(t,n,A.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){let s=i[1].getFirstToken(),o=s.getFullStart();e.replaceRange(t,{pos:o,end:o},A.createToken(28));let c=t.text,p=s.end;for(;p<c.length&&Rm(c.charCodeAt(p));)p++;e.deleteRange(t,{pos:s.getStart(),end:p})}}var nfe="forgottenThisPropertyAccess",yPe=_.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,vPe=[_.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,_.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,yPe];aa({errorCodes:vPe,getCodeActions(e){let{sourceFile:t}=e,n=bPe(t,e.span.start,e.errorCode);if(!n)return;let i=gn.ChangeTracker.with(e,s=>SPe(s,t,n));return[Us(nfe,i,[_.Add_0_to_unresolved_variable,n.className||"this"],nfe,_.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[nfe],getAllCodeActions:e=>co(e,vPe,(t,n)=>{let i=bPe(n.file,n.start,n.code);i&&SPe(t,e.sourceFile,i)})});function bPe(e,t,n){let i=Ii(e,t);if(Be(i)||zi(i))return{node:i,className:n===yPe?cu(i).name.text:void 0}}function SPe(e,t,{node:n,className:i}){Df(n),e.replaceNode(t,n,A.createPropertyAccessExpression(i?A.createIdentifier(i):A.createThis(),n))}var ife="fixInvalidJsxCharacters_expression",wH="fixInvalidJsxCharacters_htmlEntity",TPe=[_.Unexpected_token_Did_you_mean_or_gt.code,_.Unexpected_token_Did_you_mean_or_rbrace.code];aa({errorCodes:TPe,fixIds:[ife,wH],getCodeActions(e){let{sourceFile:t,preferences:n,span:i}=e,s=gn.ChangeTracker.with(e,c=>sfe(c,n,t,i.start,!1)),o=gn.ChangeTracker.with(e,c=>sfe(c,n,t,i.start,!0));return[Us(ife,s,_.Wrap_invalid_character_in_an_expression_container,ife,_.Wrap_all_invalid_characters_in_an_expression_container),Us(wH,o,_.Convert_invalid_character_to_its_html_entity_code,wH,_.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return co(e,TPe,(t,n)=>sfe(t,e.preferences,n.file,n.start,e.fixId===wH))}});var kPe={">":">","}":"}"};function PYe(e){return _o(kPe,e)}function sfe(e,t,n,i,s){let o=n.getText()[i];if(!PYe(o))return;let c=s?kPe[o]:`{${OE(n,t,o)}}`;e.replaceRangeWithText(n,{pos:i,end:i+1},c)}var IH="deleteUnmatchedParameter",xPe="renameUnmatchedParameter",CPe=[_.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];aa({fixIds:[IH,xPe],errorCodes:CPe,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=[],o=wPe(n,i.start);if(o)return Fr(s,AYe(t,o)),Fr(s,EYe(t,o)),s},getAllCodeActions:function(t){let n=new Map;return mC(gn.ChangeTracker.with(t,i=>{gC(t,CPe,({file:s,start:o})=>{let c=wPe(s,o);c&&n.set(c.signature,Fr(n.get(c.signature),c.jsDocParameterTag))}),n.forEach((s,o)=>{if(t.fixId===IH){let c=new Set(s);i.filterJSDocTags(o.getSourceFile(),o,p=>!c.has(p))}})}))}});function AYe(e,{name:t,jsDocHost:n,jsDocParameterTag:i}){let s=gn.ChangeTracker.with(e,o=>o.filterJSDocTags(e.sourceFile,n,c=>c!==i));return Us(IH,s,[_.Delete_unused_param_tag_0,t.getText(e.sourceFile)],IH,_.Delete_all_unused_param_tags)}function EYe(e,{name:t,jsDocHost:n,signature:i,jsDocParameterTag:s}){if(!Dr(i.parameters))return;let o=e.sourceFile,c=P0(i),p=new Set;for(let h of c)c_(h)&&Be(h.name)&&p.add(h.name.escapedText);let u=fo(i.parameters,h=>Be(h.name)&&!p.has(h.name.escapedText)?h.name.getText(o):void 0);if(u===void 0)return;let g=A.updateJSDocParameterTag(s,s.tagName,A.createIdentifier(u),s.isBracketed,s.typeExpression,s.isNameFirst,s.comment),d=gn.ChangeTracker.with(e,h=>h.replaceJSDocComment(o,n,kr(c,S=>S===s?g:S)));return dm(xPe,d,[_.Rename_param_tag_name_0_to_1,t.getText(o),u])}function wPe(e,t){let n=Ii(e,t);if(n.parent&&c_(n.parent)&&Be(n.parent.name)){let i=n.parent,s=kS(i),o=O0(i);if(s&&o)return{jsDocHost:s,signature:o,name:n.parent.name,jsDocParameterTag:i}}}var afe="fixUnreferenceableDecoratorMetadata",NYe=[_.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code];aa({errorCodes:NYe,getCodeActions:e=>{let t=MYe(e.sourceFile,e.program,e.span.start);if(!t)return;let n=gn.ChangeTracker.with(e,o=>t.kind===277&&OYe(o,e.sourceFile,t,e.program)),i=gn.ChangeTracker.with(e,o=>RYe(o,e.sourceFile,t,e.program)),s;return n.length&&(s=Fr(s,dm(afe,n,_.Convert_named_imports_to_namespace_import))),i.length&&(s=Fr(s,dm(afe,i,_.Use_import_type))),s},fixIds:[afe]});function MYe(e,t,n){let i=Hn(Ii(e,n),Be);if(!i||i.parent.kind!==184)return;let o=t.getTypeChecker().getSymbolAtLocation(i);return Bn(o?.declarations||Ke,vf(Ld,gp,Dl))}function RYe(e,t,n,i){if(n.kind===272){e.insertModifierBefore(t,156,n.name);return}let s=n.kind===274?n:n.parent.parent;if(s.name&&s.namedBindings)return;let o=i.getTypeChecker();ure(s,p=>{if(vu(p.symbol,o).flags&111551)return!0})||e.insertModifierBefore(t,156,s)}function OYe(e,t,n,i){_C.doChangeNamedToNamespaceOrDefault(t,i,e,n.parent)}var iL="unusedIdentifier",ofe="unusedIdentifier_prefix",cfe="unusedIdentifier_delete",DH="unusedIdentifier_deleteImports",lfe="unusedIdentifier_infer",IPe=[_._0_is_declared_but_its_value_is_never_read.code,_._0_is_declared_but_never_used.code,_.Property_0_is_declared_but_its_value_is_never_read.code,_.All_imports_in_import_declaration_are_unused.code,_.All_destructured_elements_are_unused.code,_.All_variables_are_unused.code,_.All_type_parameters_are_unused.code];aa({errorCodes:IPe,getCodeActions(e){let{errorCode:t,sourceFile:n,program:i,cancellationToken:s}=e,o=i.getTypeChecker(),c=i.getSourceFiles(),p=Ii(n,e.span.start);if(hd(p))return[VE(gn.ChangeTracker.with(e,h=>h.delete(n,p)),_.Remove_template_tag)];if(p.kind===30){let h=gn.ChangeTracker.with(e,S=>PPe(S,n,p));return[VE(h,_.Remove_type_parameters)]}let u=APe(p);if(u){let h=gn.ChangeTracker.with(e,S=>S.delete(n,u));return[Us(iL,h,[_.Remove_import_from_0,Qre(u)],DH,_.Delete_all_unused_imports)]}else if(ufe(p)){let h=gn.ChangeTracker.with(e,S=>PH(n,p,S,o,c,i,s,!1));if(h.length)return[Us(iL,h,[_.Remove_unused_declaration_for_Colon_0,p.getText(n)],DH,_.Delete_all_unused_imports)]}if(o_(p.parent)||ov(p.parent)){if(Gi(p.parent.parent)){let h=p.parent.elements,S=[h.length>1?_.Remove_unused_declarations_for_Colon_0:_.Remove_unused_declaration_for_Colon_0,kr(h,T=>T.getText(n)).join(", ")];return[VE(gn.ChangeTracker.with(e,T=>FYe(T,n,p.parent)),S)]}return[VE(gn.ChangeTracker.with(e,h=>jYe(e,h,n,p.parent)),_.Remove_unused_destructuring_declaration)]}if(EPe(n,p))return[VE(gn.ChangeTracker.with(e,h=>NPe(h,n,p.parent)),_.Remove_variable_statement)];if(Be(p)&&Gc(p.parent))return[VE(gn.ChangeTracker.with(e,h=>FPe(h,n,p.parent)),[_.Remove_unused_declaration_for_Colon_0,p.getText(n)])];let g=[];if(p.kind===140){let h=gn.ChangeTracker.with(e,T=>DPe(T,n,p)),S=Zs(p.parent,gk).typeParameter.name.text;g.push(Us(iL,h,[_.Replace_infer_0_with_unknown,S],lfe,_.Replace_all_unused_infer_with_unknown))}else{let h=gn.ChangeTracker.with(e,S=>PH(n,p,S,o,c,i,s,!1));if(h.length){let S=na(p.parent)?p.parent:p;g.push(VE(h,[_.Remove_unused_declaration_for_Colon_0,S.getText(n)]))}}let d=gn.ChangeTracker.with(e,h=>MPe(h,t,n,p));return d.length&&g.push(Us(iL,d,[_.Prefix_0_with_an_underscore,p.getText(n)],ofe,_.Prefix_all_unused_declarations_with_where_possible)),g},fixIds:[ofe,cfe,DH,lfe],getAllCodeActions:e=>{let{sourceFile:t,program:n,cancellationToken:i}=e,s=n.getTypeChecker(),o=n.getSourceFiles();return co(e,IPe,(c,p)=>{let u=Ii(t,p.start);switch(e.fixId){case ofe:MPe(c,p.code,t,u);break;case DH:{let g=APe(u);g?c.delete(t,g):ufe(u)&&PH(t,u,c,s,o,n,i,!0);break}case cfe:{if(u.kind===140||ufe(u))break;if(hd(u))c.delete(t,u);else if(u.kind===30)PPe(c,t,u);else if(o_(u.parent)){if(u.parent.parent.initializer)break;(!Gi(u.parent.parent)||RPe(u.parent.parent,s,o))&&c.delete(t,u.parent.parent)}else{if(ov(u.parent.parent)&&u.parent.parent.parent.initializer)break;EPe(t,u)?NPe(c,t,u.parent):Be(u)&&Gc(u.parent)?FPe(c,t,u.parent):PH(t,u,c,s,o,n,i,!0)}break}case lfe:u.kind===140&&DPe(c,t,u);break;default:w.fail(JSON.stringify(e.fixId))}})}});function DPe(e,t,n){e.replaceNode(t,n.parent,A.createKeywordTypeNode(159))}function VE(e,t){return Us(iL,e,t,cfe,_.Delete_all_unused_declarations)}function PPe(e,t,n){e.delete(t,w.checkDefined(Zs(n.parent,hz).typeParameters,"The type parameter to delete should exist"))}function ufe(e){return e.kind===102||e.kind===80&&(e.parent.kind===277||e.parent.kind===274)}function APe(e){return e.kind===102?Hn(e.parent,ac):void 0}function EPe(e,t){return lu(t.parent)&&Ra(t.parent.getChildren(e))===t}function NPe(e,t,n){e.delete(t,n.parent.kind===244?n.parent:n)}function FYe(e,t,n){or(n.elements,i=>e.delete(t,i))}function jYe(e,t,n,{parent:i}){if(li(i)&&i.initializer&&mS(i.initializer))if(lu(i.parent)&&Dr(i.parent.declarations)>1){let s=i.parent.parent,o=s.getStart(n),c=s.end;t.delete(n,i),t.insertNodeAt(n,c,i.initializer,{prefix:py(e.host,e.formatContext.options)+n.text.slice(y5(n.text,o-1),o),suffix:CR(n)?";":""})}else t.replaceNode(n,i.parent,i.initializer);else t.delete(n,i)}function MPe(e,t,n,i){t!==_.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=Zs(i.parent,gk).typeParameter.name),Be(i)&&LYe(i)&&(e.replaceNode(n,i,A.createIdentifier(`_${i.text}`)),Gi(i.parent)&&Pw(i.parent).forEach(s=>{Be(s.name)&&e.replaceNode(n,s.name,A.createIdentifier(`_${s.name.text}`))})))}function LYe(e){switch(e.parent.kind){case 170:case 169:return!0;case 261:switch(e.parent.parent.parent.kind){case 251:case 250:return!0}}return!1}function PH(e,t,n,i,s,o,c,p){WYe(t,n,e,i,s,o,c,p),Be(t)&&jo.Core.eachSymbolReferenceInFile(t,i,e,u=>{Ln(u.parent)&&u.parent.name===u&&(u=u.parent),!p&&JYe(u)&&n.delete(e,u.parent.parent)})}function WYe(e,t,n,i,s,o,c,p){let{parent:u}=e;if(Gi(u))BYe(t,n,u,i,s,o,c,p);else if(!(p&&Be(e)&&jo.Core.isSymbolReferencedInFile(e,i,n))){let g=Ld(u)?e:na(u)?u.parent:u;w.assert(g!==n,"should not delete whole source file"),t.delete(n,g)}}function BYe(e,t,n,i,s,o,c,p=!1){if(zYe(i,t,n,s,o,c,p))if(n.modifiers&&n.modifiers.length>0&&(!Be(n.name)||jo.Core.isSymbolReferencedInFile(n.name,i,t)))for(let u of n.modifiers)la(u)&&e.deleteModifier(t,u);else!n.initializer&&RPe(n,i,s)&&e.delete(t,n)}function RPe(e,t,n){let i=e.parent.parameters.indexOf(e);return!jo.Core.someSignatureUsage(e.parent,n,t,(s,o)=>!o||o.arguments.length>i)}function zYe(e,t,n,i,s,o,c){let{parent:p}=n;switch(p.kind){case 175:case 177:let u=p.parameters.indexOf(n),g=hc(p)?p.name:p,d=jo.Core.getReferencedSymbolsForNode(p.pos,g,s,i,o);if(d){for(let h of d)for(let S of h.references)if(S.kind===jo.EntryKind.Node){let T=WA(S.node)&&Ws(S.node.parent)&&S.node.parent.arguments.length>u,x=Ln(S.node.parent)&&WA(S.node.parent.expression)&&Ws(S.node.parent.parent)&&S.node.parent.parent.arguments.length>u,I=(hc(S.node.parent)||jd(S.node.parent))&&S.node.parent!==n.parent&&S.node.parent.parameters.length>u;if(T||x||I)return!1}}return!0;case 263:return p.name&&GYe(e,t,p.name)?OPe(p,n,c):!0;case 219:case 220:return OPe(p,n,c);case 179:return!1;case 178:return!0;default:return w.failBadSyntaxKind(p)}}function GYe(e,t,n){return!!jo.Core.eachSymbolReferenceInFile(n,e,t,i=>Be(i)&&Ws(i.parent)&&i.parent.arguments.includes(i))}function OPe(e,t,n){let i=e.parameters,s=i.indexOf(t);return w.assert(s!==-1,"The parameter should already be in the list"),n?i.slice(s+1).every(o=>Be(o.name)&&!o.symbol.isReferenced):s===i.length-1}function JYe(e){return(vn(e.parent)&&e.parent.left===e||(gJ(e.parent)||V0(e.parent))&&e.parent.operand===e)&&Ql(e.parent.parent)}function FPe(e,t,n){let i=n.symbol.declarations;if(i)for(let s of i)e.delete(t,s)}var pfe="fixUnreachableCode",jPe=[_.Unreachable_code_detected.code];aa({errorCodes:jPe,getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;let n=gn.ChangeTracker.with(e,i=>LPe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[Us(pfe,n,_.Remove_unreachable_code,pfe,_.Remove_all_unreachable_code)]},fixIds:[pfe],getAllCodeActions:e=>co(e,jPe,(t,n)=>LPe(t,n.file,n.start,n.length,n.code))});function LPe(e,t,n,i,s){let o=Ii(t,n),c=vr(o,Ei);if(c.getStart(t)!==o.getStart(t)){let u=JSON.stringify({statementKind:w.formatSyntaxKind(c.kind),tokenKind:w.formatSyntaxKind(o.kind),errorCode:s,start:n,length:i});w.fail("Token and statement should start at the same point. "+u)}let p=(Bs(c.parent)?c.parent:c).parent;if(!Bs(c.parent)||c===Ra(c.parent.statements))switch(p.kind){case 246:if(p.elseStatement){if(Bs(c.parent))break;e.replaceNode(t,c,A.createBlock(Ke));return}case 248:case 249:e.delete(t,p);return}if(Bs(c.parent)){let u=n+i,g=w.checkDefined(UYe(FG(c.parent.statements,c),d=>d.pos<u),"Some statement should be last");e.deleteNodeRange(t,c,g)}else e.delete(t,c)}function UYe(e,t){let n;for(let i of e){if(!t(i))break;n=i}return n}var ffe="fixUnusedLabel",WPe=[_.Unused_label.code];aa({errorCodes:WPe,getCodeActions(e){let t=gn.ChangeTracker.with(e,n=>BPe(n,e.sourceFile,e.span.start));return[Us(ffe,t,_.Remove_unused_label,ffe,_.Remove_all_unused_labels)]},fixIds:[ffe],getAllCodeActions:e=>co(e,WPe,(t,n)=>BPe(t,n.file,n.start))});function BPe(e,t,n){let i=Ii(t,n),s=Zs(i.parent,Eb),o=i.getStart(t),c=s.statement.getStart(t),p=F_(o,c,t)?c:ha(t.text,lo(s,59,t).end,!0);e.deleteRange(t,{pos:o,end:p})}var zPe="fixJSDocTypes_plain",_fe="fixJSDocTypes_nullable",GPe=[_.JSDoc_types_can_only_be_used_inside_documentation_comments.code,_._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,_._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code];aa({errorCodes:GPe,getCodeActions(e){let{sourceFile:t}=e,n=e.program.getTypeChecker(),i=UPe(t,e.span.start,n);if(!i)return;let{typeNode:s,type:o}=i,c=s.getText(t),p=[u(o,zPe,_.Change_all_jsdoc_style_types_to_TypeScript)];return s.kind===315&&p.push(u(o,_fe,_.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),p;function u(g,d,h){let S=gn.ChangeTracker.with(e,T=>JPe(T,t,s,g,n));return Us("jdocTypes",S,[_.Change_0_to_1,c,n.typeToString(g)],d,h)}},fixIds:[zPe,_fe],getAllCodeActions(e){let{fixId:t,program:n,sourceFile:i}=e,s=n.getTypeChecker();return co(e,GPe,(o,c)=>{let p=UPe(c.file,c.start,s);if(!p)return;let{typeNode:u,type:g}=p,d=u.kind===315&&t===_fe?s.getNullableType(g,32768):g;JPe(o,i,u,d,s)})}});function JPe(e,t,n,i,s){e.replaceNode(t,n,s.typeToTypeNode(i,n,void 0))}function UPe(e,t,n){let i=vr(Ii(e,t),VYe),s=i&&i.type;return s&&{typeNode:s,type:qYe(n,s)}}function VYe(e){switch(e.kind){case 235:case 180:case 181:case 263:case 178:case 182:case 201:case 175:case 174:case 170:case 173:case 172:case 179:case 266:case 217:case 261:return!0;default:return!1}}function qYe(e,t){if(bI(t)){let n=e.getTypeFromTypeNode(t.type);return n===e.getNeverType()||n===e.getVoidType()?n:e.getUnionType(Fr([n,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var dfe="fixMissingCallParentheses",VPe=[_.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];aa({errorCodes:VPe,fixIds:[dfe],getCodeActions(e){let{sourceFile:t,span:n}=e,i=$Pe(t,n.start);if(!i)return;let s=gn.ChangeTracker.with(e,o=>qPe(o,e.sourceFile,i));return[Us(dfe,s,_.Add_missing_call_parentheses,dfe,_.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>co(e,VPe,(t,n)=>{let i=$Pe(n.file,n.start);i&&qPe(t,n.file,i)})});function qPe(e,t,n){e.replaceNodeWithText(t,n,`${n.text}()`)}function $Pe(e,t){let n=Ii(e,t);if(Ln(n.parent)){let i=n.parent;for(;Ln(i.parent);)i=i.parent;return i.name}if(Be(n))return n}var HPe="fixMissingTypeAnnotationOnExports",mfe="add-annotation",gfe="add-type-assertion",$Ye="extract-expression",QPe=[_.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,_.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,_.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,_.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,_.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,_.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,_.Expression_type_can_t_be_inferred_with_isolatedDeclarations.code,_.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations.code,_.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations.code,_.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations.code,_.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations.code,_.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations.code,_.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations.code,_.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations.code,_.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations.code,_.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,_.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,_.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code,_.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations.code,_.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code,_.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code],HYe=new Set([178,175,173,263,219,220,261,170,278,264,207,208]),KPe=531469,XPe=1;aa({errorCodes:QPe,fixIds:[HPe],getCodeActions(e){let t=[];return qE(mfe,t,e,0,n=>n.addTypeAnnotation(e.span)),qE(mfe,t,e,1,n=>n.addTypeAnnotation(e.span)),qE(mfe,t,e,2,n=>n.addTypeAnnotation(e.span)),qE(gfe,t,e,0,n=>n.addInlineAssertion(e.span)),qE(gfe,t,e,1,n=>n.addInlineAssertion(e.span)),qE(gfe,t,e,2,n=>n.addInlineAssertion(e.span)),qE($Ye,t,e,0,n=>n.extractAsVariable(e.span)),t},getAllCodeActions:e=>{let t=YPe(e,0,n=>{gC(e,QPe,i=>{n.addTypeAnnotation(i)})});return mC(t.textChanges)}});function qE(e,t,n,i,s){let o=YPe(n,i,s);o.result&&o.textChanges.length&&t.push(Us(e,o.textChanges,o.result,HPe,_.Add_all_missing_type_annotations))}function YPe(e,t,n){let i={typeNode:void 0,mutatedTarget:!1},s=gn.ChangeTracker.fromContext(e),o=e.sourceFile,c=e.program,p=c.getTypeChecker(),u=xa(c.getCompilerOptions()),g=iT(e.sourceFile,e.program,e.preferences,e.host),d=new Set,h=new Set,S=jb({preserveSourceNewlines:!1}),T=n({addTypeAnnotation:x,addInlineAssertion:O,extractAsVariable:W});return g.writeFixes(s),{result:T,textChanges:s.getChanges()};function x(te){e.cancellationToken.throwIfCancellationRequested();let Ne=Ii(o,te.start),Ie=z(Ne);if(Ie)return Gc(Ie)?I(Ie):$(Ie);let xe=ae(Ne);if(xe)return $(xe)}function I(te){var Ne;if(h?.has(te))return;h?.add(te);let Ie=p.getTypeAtLocation(te),xe=p.getPropertiesOfType(Ie);if(!te.name||xe.length===0)return;let Qe=[];for(let fr of xe)af(fr.name,xa(c.getCompilerOptions()))&&(fr.valueDeclaration&&li(fr.valueDeclaration)||Qe.push(A.createVariableStatement([A.createModifier(95)],A.createVariableDeclarationList([A.createVariableDeclaration(fr.name,void 0,ge(p.getTypeOfSymbol(fr),te),void 0)]))));if(Qe.length===0)return;let St=[];(Ne=te.modifiers)!=null&&Ne.some(fr=>fr.kind===95)&&St.push(A.createModifier(95)),St.push(A.createModifier(138));let Bt=A.createModuleDeclaration(St,te.name,A.createModuleBlock(Qe),101441696);return s.insertNodeAfter(o,te,Bt),[_.Annotate_types_of_properties_expando_function_in_a_namespace]}function P(te){return!mo(te)&&!Ws(te)&&!Sa(te)&&!Tu(te)}function E(te,Ne){return P(te)&&(te=A.createParenthesizedExpression(te)),A.createAsExpression(te,Ne)}function F(te,Ne){return P(te)&&(te=A.createParenthesizedExpression(te)),A.createAsExpression(A.createSatisfiesExpression(te,to(Ne)),Ne)}function O(te){e.cancellationToken.throwIfCancellationRequested();let Ne=Ii(o,te.start);if(z(Ne))return;let xe=Ue(Ne,te);if(!xe||ak(xe)||ak(xe.parent))return;let Qe=ht(xe),St=Fu(xe);if(!St&&ql(xe)||vr(xe,Ls)||vr(xe,oy)||Qe&&(vr(xe,Af)||vr(xe,yi))||z_(xe))return;let Bt=vr(xe,li),fr=Bt&&p.getTypeAtLocation(Bt);if(fr&&fr.flags&8192||!(Qe||St))return;let{typeNode:Mr,mutatedTarget:ft}=de(xe,fr);if(!(!Mr||ft))return St?s.insertNodeAt(o,xe.end,E(to(xe.name),Mr),{prefix:": "}):Qe?s.replaceNode(o,xe,F(to(xe),Mr)):w.assertNever(xe),[_.Add_satisfies_and_an_inline_type_assertion_with_0,nt(Mr)]}function W(te){e.cancellationToken.throwIfCancellationRequested();let Ne=Ii(o,te.start),Ie=Ue(Ne,te);if(!Ie||ak(Ie)||ak(Ie.parent)||!ht(Ie))return;if(Tu(Ie))return s.replaceNode(o,Ie,E(Ie,A.createTypeReferenceNode("const"))),[_.Mark_array_literal_as_const];let Qe=vr(Ie,yl);if(Qe){if(Qe===Ie.parent&&mo(Ie))return;let St=A.createUniqueName(hue(Ie,o,p,o),16),Bt=Ie,fr=Ie;if(z_(Bt)&&(Bt=Od(Bt.parent),ye(Bt.parent)?fr=Bt=Bt.parent:fr=E(Bt,A.createTypeReferenceNode("const"))),mo(Bt))return;let Mr=A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(St,void 0,void 0,fr)],2)),ft=vr(Ie,Ei);return s.insertNodeBefore(o,ft,Mr),s.replaceNode(o,Bt,A.createAsExpression(A.cloneNode(St),A.createTypeQueryNode(A.cloneNode(St)))),[_.Extract_to_variable_and_replace_with_0_as_typeof_0,nt(St)]}}function z(te){let Ne=vr(te,Ie=>Ei(Ie)?"quit":M2(Ie));if(Ne&&M2(Ne)){let Ie=Ne;if(vn(Ie)&&(Ie=Ie.left,!M2(Ie)))return;let xe=p.getTypeAtLocation(Ie.expression);if(!xe)return;let Qe=p.getPropertiesOfType(xe);if(_t(Qe,St=>St.valueDeclaration===Ne||St.valueDeclaration===Ne.parent)){let St=xe.symbol.valueDeclaration;if(St){if(Cb(St)&&li(St.parent))return St.parent;if(Gc(St))return St}}}}function $(te){if(!d?.has(te))switch(d?.add(te),te.kind){case 170:case 173:case 261:return Oe(te);case 220:case 219:case 263:case 175:case 178:return X(te,o);case 278:return U(te);case 264:return _e(te);case 207:case 208:return V(te);default:throw new Error(`Cannot find a fix for the given node ${te.kind}`)}}function X(te,Ne){if(te.type)return;let{typeNode:Ie}=de(te);if(Ie)return s.tryInsertTypeAnnotation(Ne,te,Ie),[_.Add_return_type_0,nt(Ie)]}function U(te){if(te.isExportEquals)return;let{typeNode:Ne}=de(te.expression);if(!Ne)return;let Ie=A.createUniqueName("_default");return s.replaceNodeWithNodes(o,te,[A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(Ie,void 0,Ne,te.expression)],2)),A.updateExportAssignment(te,te?.modifiers,Ie)]),[_.Extract_default_export_to_variable]}function _e(te){var Ne,Ie;let xe=(Ne=te.heritageClauses)==null?void 0:Ne.find(qt=>qt.token===96),Qe=xe?.types[0];if(!Qe)return;let{typeNode:St}=de(Qe.expression);if(!St)return;let Bt=A.createUniqueName(te.name?te.name.text+"Base":"Anonymous",16),fr=A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(Bt,void 0,St,Qe.expression)],2));s.insertNodeBefore(o,te,fr);let Mr=sb(o.text,Qe.end),ft=((Ie=Mr?.[Mr.length-1])==null?void 0:Ie.end)??Qe.end;return s.replaceRange(o,{pos:Qe.getFullStart(),end:ft},Bt,{prefix:" "}),[_.Extract_base_class_to_variable]}let re;(te=>{te[te.Text=0]="Text",te[te.Computed=1]="Computed",te[te.ArrayAccess=2]="ArrayAccess",te[te.Identifier=3]="Identifier"})(re||(re={}));function V(te){var Ne;let Ie=te.parent,xe=te.parent.parent.parent;if(!Ie.initializer)return;let Qe,St=[];if(Be(Ie.initializer))Qe={expression:{kind:3,identifier:Ie.initializer}};else{let Mr=A.createUniqueName("dest",16);Qe={expression:{kind:3,identifier:Mr}},St.push(A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(Mr,void 0,void 0,Ie.initializer)],2)))}let Bt=[];ov(te)?ce(te,Bt,Qe):oe(te,Bt,Qe);let fr=new Map;for(let Mr of Bt){if(Mr.element.propertyName&&na(Mr.element.propertyName)){let qt=Mr.element.propertyName.expression,Hr=A.getGeneratedNameForNode(qt),bi=A.createVariableDeclaration(Hr,void 0,void 0,qt),us=A.createVariableDeclarationList([bi],2),At=A.createVariableStatement(void 0,us);St.push(At),fr.set(qt,Hr)}let ft=Mr.element.name;if(ov(ft))ce(ft,Bt,Mr);else if(o_(ft))oe(ft,Bt,Mr);else{let{typeNode:qt}=de(ft),Hr=le(Mr,fr);if(Mr.element.initializer){let us=(Ne=Mr.element)==null?void 0:Ne.propertyName,At=A.createUniqueName(us&&Be(us)?us.text:"temp",16);St.push(A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(At,void 0,void 0,Hr)],2))),Hr=A.createConditionalExpression(A.createBinaryExpression(At,A.createToken(37),A.createIdentifier("undefined")),A.createToken(58),Mr.element.initializer,A.createToken(59),Hr)}let bi=ri(xe,32)?[A.createToken(95)]:void 0;St.push(A.createVariableStatement(bi,A.createVariableDeclarationList([A.createVariableDeclaration(ft,void 0,qt,Hr)],2)))}}return xe.declarationList.declarations.length>1&&St.push(A.updateVariableStatement(xe,xe.modifiers,A.updateVariableDeclarationList(xe.declarationList,xe.declarationList.declarations.filter(Mr=>Mr!==te.parent)))),s.replaceNodeWithNodes(o,xe,St),[_.Extract_binding_expressions_to_variable]}function ce(te,Ne,Ie){for(let xe=0;xe<te.elements.length;++xe){let Qe=te.elements[xe];Fl(Qe)||Ne.push({element:Qe,parent:Ie,expression:{kind:2,arrayIndex:xe}})}}function oe(te,Ne,Ie){for(let xe of te.elements){let Qe;if(xe.propertyName)if(na(xe.propertyName)){Ne.push({element:xe,parent:Ie,expression:{kind:1,computed:xe.propertyName.expression}});continue}else Qe=xe.propertyName.text;else Qe=xe.name.text;Ne.push({element:xe,parent:Ie,expression:{kind:0,text:Qe}})}}function le(te,Ne){let Ie=[te];for(;te.parent;)te=te.parent,Ie.push(te);let xe=Ie[Ie.length-1].expression.identifier;for(let Qe=Ie.length-2;Qe>=0;--Qe){let St=Ie[Qe].expression;St.kind===0?xe=A.createPropertyAccessChain(xe,void 0,A.createIdentifier(St.text)):St.kind===1?xe=A.createElementAccessExpression(xe,Ne.get(St.computed)):St.kind===2&&(xe=A.createElementAccessExpression(xe,St.arrayIndex))}return xe}function de(te,Ne){if(t===1)return ee(te);let Ie;if(ak(te)){let St=p.getSignatureFromDeclaration(te);if(St){let Bt=p.getTypePredicateOfSignature(St);if(Bt)return Bt.type?{typeNode:ke(Bt,vr(te,ql)??o,Qe(Bt.type)),mutatedTarget:!1}:i;Ie=p.getReturnTypeOfSignature(St)}}else Ie=p.getTypeAtLocation(te);if(!Ie)return i;if(t===2){Ne&&(Ie=Ne);let St=p.getWidenedLiteralType(Ie);if(p.isTypeAssignableTo(St,Ie))return i;Ie=St}let xe=vr(te,ql)??o;return Gi(te)&&p.requiresAddingImplicitUndefined(te,xe)&&(Ie=p.getUnionType([p.getUndefinedType(),Ie],0)),{typeNode:ge(Ie,xe,Qe(Ie)),mutatedTarget:!1};function Qe(St){return(li(te)||hs(te)&&ri(te,264))&&St.flags&8192?1048576:0}}function ve(te){return A.createTypeQueryNode(to(te))}function H(te,Ne="temp"){let Ie=!!vr(te,ye);return Ie?Je(te,Ne,Ie,xe=>xe.elements,z_,A.createSpreadElement,xe=>A.createArrayLiteralExpression(xe,!0),xe=>A.createTupleTypeNode(xe.map(A.createRestTypeNode))):i}function Se(te,Ne="temp"){let Ie=!!vr(te,ye);return Je(te,Ne,Ie,xe=>xe.properties,Sh,A.createSpreadAssignment,xe=>A.createObjectLiteralExpression(xe,!0),A.createIntersectionTypeNode)}function Je(te,Ne,Ie,xe,Qe,St,Bt,fr){let Mr=[],ft=[],qt,Hr=vr(te,Ei);for(let At of xe(te))Qe(At)?(us(),mo(At.expression)?(Mr.push(ve(At.expression)),ft.push(At)):bi(At.expression)):(qt??(qt=[])).push(At);if(ft.length===0)return i;return us(),s.replaceNode(o,te,Bt(ft)),{typeNode:fr(Mr),mutatedTarget:!0};function bi(At){let Un=A.createUniqueName(Ne+"_Part"+(ft.length+1),16),rs=Ie?A.createAsExpression(At,A.createTypeReferenceNode("const")):At,zn=A.createVariableStatement(void 0,A.createVariableDeclarationList([A.createVariableDeclaration(Un,void 0,void 0,rs)],2));s.insertNodeBefore(o,Hr,zn),Mr.push(ve(Un)),ft.push(St(Un))}function us(){qt&&(bi(Bt(qt)),qt=void 0)}}function ye(te){return gS(te)&&Nd(te.type)}function ee(te){if(Gi(te))return i;if(Fu(te))return{typeNode:ve(te.name),mutatedTarget:!1};if(mo(te))return{typeNode:ve(te),mutatedTarget:!1};if(ye(te))return ee(te.expression);if(Tu(te)){let Ne=vr(te,li),Ie=Ne&&Be(Ne.name)?Ne.name.text:void 0;return H(te,Ie)}if(Sa(te)){let Ne=vr(te,li),Ie=Ne&&Be(Ne.name)?Ne.name.text:void 0;return Se(te,Ie)}if(li(te)&&te.initializer)return ee(te.initializer);if(vk(te)){let{typeNode:Ne,mutatedTarget:Ie}=ee(te.whenTrue);if(!Ne)return i;let{typeNode:xe,mutatedTarget:Qe}=ee(te.whenFalse);return xe?{typeNode:A.createUnionTypeNode([Ne,xe]),mutatedTarget:Ie||Qe}:i}return i}function ge(te,Ne,Ie=0){let xe=!1,Qe=bAe(p,te,Ne,KPe|Ie,XPe,{moduleResolverHost:c,trackSymbol(){return!0},reportTruncationError(){xe=!0}});if(!Qe)return;let St=Cfe(Qe,g,u);return xe?A.createKeywordTypeNode(133):St}function ke(te,Ne,Ie=0){let xe=!1,Qe=SAe(p,g,te,Ne,u,KPe|Ie,XPe,{moduleResolverHost:c,trackSymbol(){return!0},reportTruncationError(){xe=!0}});return xe?A.createKeywordTypeNode(133):Qe}function Oe(te){let{typeNode:Ne}=de(te);if(Ne)return te.type?s.replaceNode(Nr(te),te.type,Ne):s.tryInsertTypeAnnotation(Nr(te),te,Ne),[_.Add_annotation_of_type_0,nt(Ne)]}function nt(te){yn(te,1);let Ne=S.printNode(4,te,o);return Ne.length>zP?Ne.substring(0,zP-3)+"...":(yn(te,0),Ne)}function ae(te){return vr(te,Ne=>HYe.has(Ne.kind)&&(!o_(Ne)&&!ov(Ne)||li(Ne.parent)))}function Ue(te,Ne){for(;te&&te.end<Ne.start+Ne.length;)te=te.parent;for(;te.parent.pos===te.pos&&te.parent.end===te.end;)te=te.parent;return Be(te)&&Hy(te.parent)&&te.parent.initializer?te.parent.initializer:te}}var hfe="fixAwaitInSyncFunction",ZPe=[_.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code];aa({errorCodes:ZPe,getCodeActions(e){let{sourceFile:t,span:n}=e,i=eAe(t,n.start);if(!i)return;let s=gn.ChangeTracker.with(e,o=>tAe(o,t,i));return[Us(hfe,s,_.Add_async_modifier_to_containing_function,hfe,_.Add_all_missing_async_modifiers)]},fixIds:[hfe],getAllCodeActions:function(t){let n=new Set;return co(t,ZPe,(i,s)=>{let o=eAe(s.file,s.start);!o||!dd(n,qa(o.insertBefore))||tAe(i,t.sourceFile,o)})}});function QYe(e){if(e.type)return e.type;if(li(e.parent)&&e.parent.type&&Pg(e.parent.type))return e.parent.type.type}function eAe(e,t){let n=Ii(e,t),i=i_(n);if(!i)return;let s;switch(i.kind){case 175:s=i.name;break;case 263:case 219:s=lo(i,100,e);break;case 220:let o=i.typeParameters?30:21;s=lo(i,o,e)||Ra(i.parameters);break;default:return}return s&&{insertBefore:s,returnType:QYe(i)}}function tAe(e,t,{insertBefore:n,returnType:i}){if(i){let s=n6(i);(!s||s.kind!==80||s.text!=="Promise")&&e.replaceNode(t,i,A.createTypeReferenceNode("Promise",A.createNodeArray([i])))}e.insertModifierBefore(t,134,n)}var rAe=[_._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,_._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],yfe="fixPropertyOverrideAccessor";aa({errorCodes:rAe,getCodeActions(e){let t=nAe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[Us(yfe,t,_.Generate_get_and_set_accessors,yfe,_.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[yfe],getAllCodeActions:e=>co(e,rAe,(t,n)=>{let i=nAe(n.file,n.start,n.length,n.code,e);if(i)for(let s of i)t.pushRaw(e.sourceFile,s)})});function nAe(e,t,n,i,s){let o,c;if(i===_._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)o=t,c=t+n;else if(i===_._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){let p=s.program.getTypeChecker(),u=Ii(e,t).parent;if(na(u))return;w.assert(pb(u),"error span of fixPropertyOverrideAccessor should only be on an accessor");let g=u.parent;w.assert(ni(g),"erroneous accessors should only be inside classes");let d=im(g);if(!d)return;let h=Qa(d.expression),S=Zc(h)?h.symbol:p.getSymbolAtLocation(h);if(!S)return;let T=p.getDeclaredTypeOfSymbol(S),x=p.getPropertyOfType(T,Ai(p2(u.name)));if(!x||!x.valueDeclaration)return;o=x.valueDeclaration.pos,c=x.valueDeclaration.end,e=Nr(x.valueDeclaration)}else w.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return wAe(e,s.program,o,c,s,_.Generate_get_and_set_accessors.message)}var vfe="inferFromUsage",iAe=[_.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,_.Variable_0_implicitly_has_an_1_type.code,_.Parameter_0_implicitly_has_an_1_type.code,_.Rest_parameter_0_implicitly_has_an_any_type.code,_.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,_._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,_.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,_.Member_0_implicitly_has_an_1_type.code,_.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,_.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,_.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,_.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,_.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,_._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,_.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,_.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,_.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];aa({errorCodes:iAe,getCodeActions(e){let{sourceFile:t,program:n,span:{start:i},errorCode:s,cancellationToken:o,host:c,preferences:p}=e,u=Ii(t,i),g,d=gn.ChangeTracker.with(e,S=>{g=sAe(S,t,u,s,n,o,cS,c,p)}),h=g&&Ss(g);return!h||d.length===0?void 0:[Us(vfe,d,[KYe(s,u),pc(h)],vfe,_.Infer_all_types_from_usage)]},fixIds:[vfe],getAllCodeActions(e){let{sourceFile:t,program:n,cancellationToken:i,host:s,preferences:o}=e,c=HI();return co(e,iAe,(p,u)=>{sAe(p,t,Ii(u.file,u.start),u.code,n,i,c,s,o)})}});function KYe(e,t){switch(e){case _.Parameter_0_implicitly_has_an_1_type.code:case _.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return uf(i_(t))?_.Infer_type_of_0_from_usage:_.Infer_parameter_types_from_usage;case _.Rest_parameter_0_implicitly_has_an_any_type.code:case _.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return _.Infer_parameter_types_from_usage;case _.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return _.Infer_this_type_of_0_from_usage;default:return _.Infer_type_of_0_from_usage}}function XYe(e){switch(e){case _.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return _.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case _.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return _.Variable_0_implicitly_has_an_1_type.code;case _.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return _.Parameter_0_implicitly_has_an_1_type.code;case _.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return _.Rest_parameter_0_implicitly_has_an_any_type.code;case _.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return _.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case _._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return _._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case _.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return _.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case _.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return _.Member_0_implicitly_has_an_1_type.code}return e}function sAe(e,t,n,i,s,o,c,p,u){if(!jP(n.kind)&&n.kind!==80&&n.kind!==26&&n.kind!==110)return;let{parent:g}=n,d=iT(t,s,u,p);switch(i=XYe(i),i){case _.Member_0_implicitly_has_an_1_type.code:case _.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(li(g)&&c(g)||hs(g)||mp(g))return aAe(e,d,t,g,s,p,o),d.writeFixes(e),g;if(Ln(g)){let T=VR(g.name,s,o),x=FE(T,g,s,p);if(x){let I=A.createJSDocTypeTag(void 0,A.createJSDocTypeExpression(x),void 0);e.addJSDocTags(t,Zs(g.parent.parent,Ql),[I])}return d.writeFixes(e),g}return;case _.Variable_0_implicitly_has_an_1_type.code:{let T=s.getTypeChecker().getSymbolAtLocation(n);return T&&T.valueDeclaration&&li(T.valueDeclaration)&&c(T.valueDeclaration)?(aAe(e,d,Nr(T.valueDeclaration),T.valueDeclaration,s,p,o),d.writeFixes(e),T.valueDeclaration):void 0}}let h=i_(n);if(h===void 0)return;let S;switch(i){case _.Parameter_0_implicitly_has_an_1_type.code:if(uf(h)){oAe(e,d,t,h,s,p,o),S=h;break}case _.Rest_parameter_0_implicitly_has_an_any_type.code:if(c(h)){let T=Zs(g,Gi);YYe(e,d,t,T,h,s,p,o),S=T}break;case _.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case _._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:B_(h)&&Be(h.name)&&(AH(e,d,t,h,VR(h.name,s,o),s,p),S=h);break;case _.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:uf(h)&&(oAe(e,d,t,h,s,p,o),S=h);break;case _.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:gn.isThisTypeAnnotatable(h)&&c(h)&&(ZYe(e,t,h,s,p,o),S=h);break;default:return w.fail(String(i))}return d.writeFixes(e),S}function aAe(e,t,n,i,s,o,c){Be(i.name)&&AH(e,t,n,i,VR(i.name,s,c),s,o)}function YYe(e,t,n,i,s,o,c,p){if(!Be(i.name))return;let u=rZe(s,n,o,p);if(w.assert(s.parameters.length===u.length,"Parameter count and inference count should match"),dn(s))cAe(e,n,u,o,c);else{let g=Fo(s)&&!lo(s,21,n);g&&e.insertNodeBefore(n,Ra(s.parameters),A.createToken(21));for(let{declaration:d,type:h}of u)d&&!d.type&&!d.initializer&&AH(e,t,n,d,h,o,c);g&&e.insertNodeAfter(n,ka(s.parameters),A.createToken(22))}}function ZYe(e,t,n,i,s,o){let c=lAe(n,t,i,o);if(!c||!c.length)return;let p=Sfe(i,c,o).thisParameter(),u=FE(p,n,i,s);u&&(dn(n)?eZe(e,t,n,u):e.tryInsertThisTypeAnnotation(t,n,u))}function eZe(e,t,n,i){e.addJSDocTags(t,n,[A.createJSDocThisTag(void 0,A.createJSDocTypeExpression(i))])}function oAe(e,t,n,i,s,o,c){let p=_l(i.parameters);if(p&&Be(i.name)&&Be(p.name)){let u=VR(i.name,s,c);u===s.getTypeChecker().getAnyType()&&(u=VR(p.name,s,c)),dn(i)?cAe(e,n,[{declaration:p,type:u}],s,o):AH(e,t,n,p,u,s,o)}}function AH(e,t,n,i,s,o,c){let p=FE(s,i,o,c);if(p)if(dn(n)&&i.kind!==172){let u=li(i)?Hn(i.parent.parent,Qc):i;if(!u)return;let g=A.createJSDocTypeExpression(p),d=B_(i)?A.createJSDocReturnTag(void 0,g,void 0):A.createJSDocTypeTag(void 0,g,void 0);e.addJSDocTags(n,u,[d])}else tZe(p,i,n,e,t,xa(o.getCompilerOptions()))||e.tryInsertTypeAnnotation(n,i,p)}function tZe(e,t,n,i,s,o){let c=sT(e,o);return c&&i.tryInsertTypeAnnotation(n,t,c.typeNode)?(or(c.symbols,p=>s.addImportFromExportedSymbol(p,!0)),!0):!1}function cAe(e,t,n,i,s){let o=n.length&&n[0].declaration.parent;if(!o)return;let c=Ji(n,p=>{let u=p.declaration;if(u.initializer||qy(u)||!Be(u.name))return;let g=p.type&&FE(p.type,u,i,s);if(g){let d=A.cloneNode(u.name);return yn(d,7168),{name:A.cloneNode(u.name),param:u,isOptional:!!p.isOptional,typeNode:g}}});if(c.length)if(Fo(o)||Ao(o)){let p=Fo(o)&&!lo(o,21,t);p&&e.insertNodeBefore(t,Ra(o.parameters),A.createToken(21)),or(c,({typeNode:u,param:g})=>{let d=A.createJSDocTypeTag(void 0,A.createJSDocTypeExpression(u)),h=A.createJSDocComment(void 0,[d]);e.insertNodeAt(t,g.getStart(t),h,{suffix:" "})}),p&&e.insertNodeAfter(t,ka(o.parameters),A.createToken(22))}else{let p=kr(c,({name:u,typeNode:g,isOptional:d})=>A.createJSDocParameterTag(void 0,u,!!d,A.createJSDocTypeExpression(g),!1,void 0));e.addJSDocTags(t,o,p)}}function bfe(e,t,n){return Ji(jo.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n),i=>i.kind!==jo.EntryKind.Span?Hn(i.node,Be):void 0)}function VR(e,t,n){let i=bfe(e,t,n);return Sfe(t,i,n).single()}function rZe(e,t,n,i){let s=lAe(e,t,n,i);return s&&Sfe(n,s,i).parameters(e)||e.parameters.map(o=>({declaration:o,type:Be(o.name)?VR(o.name,n,i):n.getTypeChecker().getAnyType()}))}function lAe(e,t,n,i){let s;switch(e.kind){case 177:s=lo(e,137,t);break;case 220:case 219:let o=e.parent;s=(li(o)||hs(o))&&Be(o.name)?o.name:e.name;break;case 263:case 175:case 174:s=e.name;break}if(s)return bfe(s,n,i)}function Sfe(e,t,n){let i=e.getTypeChecker(),s={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:ge=>i.createArrayType(ge),Promise:ge=>i.createPromiseType(ge)},o=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:u,parameters:g,thisParameter:d};function c(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function p(ge){let ke=new Map;for(let nt of ge)nt.properties&&nt.properties.forEach((ae,Ue)=>{ke.has(Ue)||ke.set(Ue,[]),ke.get(Ue).push(ae)});let Oe=new Map;return ke.forEach((nt,ae)=>{Oe.set(ae,p(nt))}),{isNumber:ge.some(nt=>nt.isNumber),isString:ge.some(nt=>nt.isString),isNumberOrString:ge.some(nt=>nt.isNumberOrString),candidateTypes:Ma(ge,nt=>nt.candidateTypes),properties:Oe,calls:Ma(ge,nt=>nt.calls),constructs:Ma(ge,nt=>nt.constructs),numberIndex:or(ge,nt=>nt.numberIndex),stringIndex:or(ge,nt=>nt.stringIndex),candidateThisTypes:Ma(ge,nt=>nt.candidateThisTypes),inferredTypes:void 0}}function u(){return _e(h(t))}function g(ge){if(t.length===0||!ge.parameters)return;let ke=c();for(let nt of t)n.throwIfCancellationRequested(),S(nt,ke);let Oe=[...ke.constructs||[],...ke.calls||[]];return ge.parameters.map((nt,ae)=>{let Ue=[],te=kg(nt),Ne=!1;for(let xe of Oe)if(xe.argumentTypes.length<=ae)Ne=dn(ge),Ue.push(i.getUndefinedType());else if(te)for(let Qe=ae;Qe<xe.argumentTypes.length;Qe++)Ue.push(i.getBaseTypeOfLiteralType(xe.argumentTypes[Qe]));else Ue.push(i.getBaseTypeOfLiteralType(xe.argumentTypes[ae]));if(Be(nt.name)){let xe=h(bfe(nt.name,e,n));Ue.push(...te?Ji(xe,i.getElementTypeOfArrayType):xe)}let Ie=_e(Ue);return{type:te?i.createArrayType(Ie):Ie,isOptional:Ne&&!te,declaration:nt}})}function d(){let ge=c();for(let ke of t)n.throwIfCancellationRequested(),S(ke,ge);return _e(ge.candidateThisTypes||Ke)}function h(ge){let ke=c();for(let Oe of ge)n.throwIfCancellationRequested(),S(Oe,ke);return V(ke)}function S(ge,ke){for(;_A(ge);)ge=ge.parent;switch(ge.parent.kind){case 245:x(ge,ke);break;case 226:ke.isNumber=!0;break;case 225:I(ge.parent,ke);break;case 227:P(ge,ge.parent,ke);break;case 297:case 298:E(ge.parent,ke);break;case 214:case 215:ge.parent.expression===ge?F(ge.parent,ke):T(ge,ke);break;case 212:O(ge.parent,ke);break;case 213:W(ge.parent,ge,ke);break;case 304:case 305:z(ge.parent,ke);break;case 173:$(ge.parent,ke);break;case 261:{let{name:Oe,initializer:nt}=ge.parent;if(ge===Oe){nt&&ye(ke,i.getTypeAtLocation(nt));break}}default:return T(ge,ke)}}function T(ge,ke){wg(ge)&&ye(ke,i.getContextualType(ge))}function x(ge,ke){ye(ke,Ws(ge)?i.getVoidType():i.getAnyType())}function I(ge,ke){switch(ge.operator){case 46:case 47:case 41:case 55:ke.isNumber=!0;break;case 40:ke.isNumberOrString=!0;break}}function P(ge,ke,Oe){switch(ke.operatorToken.kind){case 43:case 42:case 44:case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 66:case 68:case 67:case 69:case 70:case 74:case 75:case 79:case 71:case 73:case 72:case 41:case 30:case 33:case 32:case 34:let nt=i.getTypeAtLocation(ke.left===ge?ke.right:ke.left);nt.flags&1056?ye(Oe,nt):Oe.isNumber=!0;break;case 65:case 40:let ae=i.getTypeAtLocation(ke.left===ge?ke.right:ke.left);ae.flags&1056?ye(Oe,ae):ae.flags&296?Oe.isNumber=!0:ae.flags&402653316?Oe.isString=!0:ae.flags&1||(Oe.isNumberOrString=!0);break;case 64:case 35:case 37:case 38:case 36:case 77:case 78:case 76:ye(Oe,i.getTypeAtLocation(ke.left===ge?ke.right:ke.left));break;case 103:ge===ke.left&&(Oe.isString=!0);break;case 57:case 61:ge===ke.left&&(ge.parent.parent.kind===261||Hl(ge.parent.parent,!0))&&ye(Oe,i.getTypeAtLocation(ke.right));break;case 56:case 28:case 104:break}}function E(ge,ke){ye(ke,i.getTypeAtLocation(ge.parent.parent.expression))}function F(ge,ke){let Oe={argumentTypes:[],return_:c()};if(ge.arguments)for(let nt of ge.arguments)Oe.argumentTypes.push(i.getTypeAtLocation(nt));S(ge,Oe.return_),ge.kind===214?(ke.calls||(ke.calls=[])).push(Oe):(ke.constructs||(ke.constructs=[])).push(Oe)}function O(ge,ke){let Oe=gc(ge.name.text);ke.properties||(ke.properties=new Map);let nt=ke.properties.get(Oe)||c();S(ge,nt),ke.properties.set(Oe,nt)}function W(ge,ke,Oe){if(ke===ge.argumentExpression){Oe.isNumberOrString=!0;return}else{let nt=i.getTypeAtLocation(ge.argumentExpression),ae=c();S(ge,ae),nt.flags&296?Oe.numberIndex=ae:Oe.stringIndex=ae}}function z(ge,ke){let Oe=li(ge.parent.parent)?ge.parent.parent:ge.parent;ee(ke,i.getTypeAtLocation(Oe))}function $(ge,ke){ee(ke,i.getTypeAtLocation(ge.parent))}function X(ge,ke){let Oe=[];for(let nt of ge)for(let{high:ae,low:Ue}of ke)ae(nt)&&(w.assert(!Ue(nt),"Priority can't have both low and high"),Oe.push(Ue));return ge.filter(nt=>Oe.every(ae=>!ae(nt)))}function U(ge){return _e(V(ge))}function _e(ge){if(!ge.length)return i.getAnyType();let ke=i.getUnionType([i.getStringType(),i.getNumberType()]),nt=X(ge,[{high:Ue=>Ue===i.getStringType()||Ue===i.getNumberType(),low:Ue=>Ue===ke},{high:Ue=>!(Ue.flags&16385),low:Ue=>!!(Ue.flags&16385)},{high:Ue=>!(Ue.flags&114689)&&!(jn(Ue)&16),low:Ue=>!!(jn(Ue)&16)}]),ae=nt.filter(Ue=>jn(Ue)&16);return ae.length&&(nt=nt.filter(Ue=>!(jn(Ue)&16)),nt.push(re(ae))),i.getWidenedType(i.getUnionType(nt.map(i.getBaseTypeOfLiteralType),2))}function re(ge){if(ge.length===1)return ge[0];let ke=[],Oe=[],nt=[],ae=[],Ue=!1,te=!1,Ne=od();for(let Qe of ge){for(let fr of i.getPropertiesOfType(Qe))Ne.add(fr.escapedName,fr.valueDeclaration?i.getTypeOfSymbolAtLocation(fr,fr.valueDeclaration):i.getAnyType());ke.push(...i.getSignaturesOfType(Qe,0)),Oe.push(...i.getSignaturesOfType(Qe,1));let St=i.getIndexInfoOfType(Qe,0);St&&(nt.push(St.type),Ue=Ue||St.isReadonly);let Bt=i.getIndexInfoOfType(Qe,1);Bt&&(ae.push(Bt.type),te=te||Bt.isReadonly)}let Ie=RY(Ne,(Qe,St)=>{let Bt=St.length<ge.length?16777216:0,fr=i.createSymbol(4|Bt,Qe);return fr.links.type=i.getUnionType(St),[Qe,fr]}),xe=[];return nt.length&&xe.push(i.createIndexInfo(i.getStringType(),i.getUnionType(nt),Ue)),ae.length&&xe.push(i.createIndexInfo(i.getNumberType(),i.getUnionType(ae),te)),i.createAnonymousType(ge[0].symbol,Ie,ke,Oe,xe)}function V(ge){var ke,Oe,nt;let ae=[];ge.isNumber&&ae.push(i.getNumberType()),ge.isString&&ae.push(i.getStringType()),ge.isNumberOrString&&ae.push(i.getUnionType([i.getStringType(),i.getNumberType()])),ge.numberIndex&&ae.push(i.createArrayType(U(ge.numberIndex))),((ke=ge.properties)!=null&&ke.size||(Oe=ge.constructs)!=null&&Oe.length||ge.stringIndex)&&ae.push(ce(ge));let Ue=(ge.candidateTypes||[]).map(Ne=>i.getBaseTypeOfLiteralType(Ne)),te=(nt=ge.calls)!=null&&nt.length?ce(ge):void 0;return te&&Ue?ae.push(i.getUnionType([te,...Ue],2)):(te&&ae.push(te),Dr(Ue)&&ae.push(...Ue)),ae.push(...oe(ge)),ae}function ce(ge){let ke=new Map;ge.properties&&ge.properties.forEach((Ue,te)=>{let Ne=i.createSymbol(4,te);Ne.links.type=U(Ue),ke.set(te,Ne)});let Oe=ge.calls?[Je(ge.calls)]:[],nt=ge.constructs?[Je(ge.constructs)]:[],ae=ge.stringIndex?[i.createIndexInfo(i.getStringType(),U(ge.stringIndex),!1)]:[];return i.createAnonymousType(void 0,ke,Oe,nt,ae)}function oe(ge){if(!ge.properties||!ge.properties.size)return[];let ke=o.filter(Oe=>le(Oe,ge));return 0<ke.length&&ke.length<3?ke.map(Oe=>de(Oe,ge)):[]}function le(ge,ke){return ke.properties?!Rl(ke.properties,(Oe,nt)=>{let ae=i.getTypeOfPropertyOfType(ge,nt);return ae?Oe.calls?!i.getSignaturesOfType(ae,0).length||!i.isTypeAssignableTo(ae,Se(Oe.calls)):!i.isTypeAssignableTo(ae,U(Oe)):!0}):!1}function de(ge,ke){if(!(jn(ge)&4)||!ke.properties)return ge;let Oe=ge.target,nt=eh(Oe.typeParameters);if(!nt)return ge;let ae=[];return ke.properties.forEach((Ue,te)=>{let Ne=i.getTypeOfPropertyOfType(Oe,te);w.assert(!!Ne,"generic should have all the properties of its reference."),ae.push(...ve(Ne,U(Ue),nt))}),s[ge.symbol.escapedName](_e(ae))}function ve(ge,ke,Oe){if(ge===Oe)return[ke];if(ge.flags&3145728)return Ma(ge.types,Ue=>ve(Ue,ke,Oe));if(jn(ge)&4&&jn(ke)&4){let Ue=i.getTypeArguments(ge),te=i.getTypeArguments(ke),Ne=[];if(Ue&&te)for(let Ie=0;Ie<Ue.length;Ie++)te[Ie]&&Ne.push(...ve(Ue[Ie],te[Ie],Oe));return Ne}let nt=i.getSignaturesOfType(ge,0),ae=i.getSignaturesOfType(ke,0);return nt.length===1&&ae.length===1?H(nt[0],ae[0],Oe):[]}function H(ge,ke,Oe){var nt;let ae=[];for(let Ne=0;Ne<ge.parameters.length;Ne++){let Ie=ge.parameters[Ne],xe=ke.parameters[Ne],Qe=ge.declaration&&kg(ge.declaration.parameters[Ne]);if(!xe)break;let St=Ie.valueDeclaration?i.getTypeOfSymbolAtLocation(Ie,Ie.valueDeclaration):i.getAnyType(),Bt=Qe&&i.getElementTypeOfArrayType(St);Bt&&(St=Bt);let fr=((nt=Hn(xe,oh))==null?void 0:nt.links.type)||(xe.valueDeclaration?i.getTypeOfSymbolAtLocation(xe,xe.valueDeclaration):i.getAnyType());ae.push(...ve(St,fr,Oe))}let Ue=i.getReturnTypeOfSignature(ge),te=i.getReturnTypeOfSignature(ke);return ae.push(...ve(Ue,te,Oe)),ae}function Se(ge){return i.createAnonymousType(void 0,Qs(),[Je(ge)],Ke,Ke)}function Je(ge){let ke=[],Oe=Math.max(...ge.map(ae=>ae.argumentTypes.length));for(let ae=0;ae<Oe;ae++){let Ue=i.createSymbol(1,gc(`arg${ae}`));Ue.links.type=_e(ge.map(te=>te.argumentTypes[ae]||i.getUndefinedType())),ge.some(te=>te.argumentTypes[ae]===void 0)&&(Ue.flags|=16777216),ke.push(Ue)}let nt=U(p(ge.map(ae=>ae.return_)));return i.createSignature(void 0,void 0,void 0,ke,nt,void 0,Oe,0)}function ye(ge,ke){ke&&!(ke.flags&1)&&!(ke.flags&131072)&&(ge.candidateTypes||(ge.candidateTypes=[])).push(ke)}function ee(ge,ke){ke&&!(ke.flags&1)&&!(ke.flags&131072)&&(ge.candidateThisTypes||(ge.candidateThisTypes=[])).push(ke)}}var Tfe="fixReturnTypeInAsyncFunction",uAe=[_.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];aa({errorCodes:uAe,fixIds:[Tfe],getCodeActions:function(t){let{sourceFile:n,program:i,span:s}=t,o=i.getTypeChecker(),c=pAe(n,i.getTypeChecker(),s.start);if(!c)return;let{returnTypeNode:p,returnType:u,promisedTypeNode:g,promisedType:d}=c,h=gn.ChangeTracker.with(t,S=>fAe(S,n,p,g));return[Us(Tfe,h,[_.Replace_0_with_Promise_1,o.typeToString(u),o.typeToString(d)],Tfe,_.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>co(e,uAe,(t,n)=>{let i=pAe(n.file,e.program.getTypeChecker(),n.start);i&&fAe(t,n.file,i.returnTypeNode,i.promisedTypeNode)})});function pAe(e,t,n){if(dn(e))return;let i=Ii(e,n),s=vr(i,yo),o=s?.type;if(!o)return;let c=t.getTypeFromTypeNode(o),p=t.getAwaitedType(c)||t.getVoidType(),u=t.typeToTypeNode(p,o,void 0);if(u)return{returnTypeNode:o,returnType:c,promisedTypeNode:u,promisedType:p}}function fAe(e,t,n,i){e.replaceNode(t,n,A.createTypeReferenceNode("Promise",[i]))}var _Ae="disableJsDiagnostics",dAe="disableJsDiagnostics",mAe=Ji(Object.keys(_),e=>{let t=_[e];return t.category===1?t.code:void 0});aa({errorCodes:mAe,getCodeActions:function(t){let{sourceFile:n,program:i,span:s,host:o,formatContext:c}=t;if(!dn(n)||!CA(n,i.getCompilerOptions()))return;let p=n.checkJsDirective?"":py(o,c.options),u=[dm(_Ae,[iwe(n.fileName,[hR(n.checkJsDirective?$c(n.checkJsDirective.pos,n.checkJsDirective.end):yu(0,0),`// @ts-nocheck${p}`)])],_.Disable_checking_for_this_file)];return gn.isValidLocationToAddComment(n,s.start)&&u.unshift(Us(_Ae,gn.ChangeTracker.with(t,g=>gAe(g,n,s.start)),_.Ignore_this_error_message,dAe,_.Add_ts_ignore_to_all_error_messages)),u},fixIds:[dAe],getAllCodeActions:e=>{let t=new Set;return co(e,mAe,(n,i)=>{gn.isValidLocationToAddComment(i.file,i.start)&&gAe(n,i.file,i.start,t)})}});function gAe(e,t,n,i){let{line:s}=Hs(t,n);(!i||Uy(i,s))&&e.insertCommentBeforeLine(t,s,n," @ts-ignore")}function kfe(e,t,n,i,s,o,c){let p=e.symbol.members;for(let u of t)p.has(u.escapedName)||yAe(u,e,n,i,s,o,c,void 0)}function sD(e){return{trackSymbol:()=>!1,moduleResolverHost:Jq(e.program,e.host)}}var hAe=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(hAe||{});function yAe(e,t,n,i,s,o,c,p,u=3,g=!1){let d=e.getDeclarations(),h=_l(d),S=i.program.getTypeChecker(),T=xa(i.program.getCompilerOptions()),x=h?.kind??172,I=le(e,h),P=h?Mu(h):0,E=P&256;E|=P&1?1:P&4?4:0,h&&Gp(h)&&(E|=512);let F=_e(),O=S.getWidenedType(S.getTypeOfSymbolAtLocation(e,t)),W=!!(e.flags&16777216),z=!!(t.flags&33554432)||g,$=Mf(n,s),X=1|($===0?268435456:0);switch(x){case 172:case 173:let de=S.typeToTypeNode(O,t,X,8,sD(i));if(o){let H=sT(de,T);H&&(de=H.typeNode,Wk(o,H.symbols))}c(A.createPropertyDeclaration(F,h?V(I):e.getName(),W&&u&2?A.createToken(58):void 0,de,void 0));break;case 178:case 179:{w.assertIsDefined(d);let H=S.typeToTypeNode(O,t,X,void 0,sD(i)),Se=PS(d,h),Je=Se.secondAccessor?[Se.firstAccessor,Se.secondAccessor]:[Se.firstAccessor];if(o){let ye=sT(H,T);ye&&(H=ye.typeNode,Wk(o,ye.symbols))}for(let ye of Je)if(B_(ye))c(A.createGetAccessorDeclaration(F,V(I),Ke,oe(H),ce(p,$,z)));else{w.assertNode(ye,uf,"The counterpart to a getter should be a setter");let ee=pA(ye),ge=ee&&Be(ee.name)?Fn(ee.name):void 0;c(A.createSetAccessorDeclaration(F,V(I),wfe(1,[ge],[oe(H)],1,!1),ce(p,$,z)))}break}case 174:case 175:w.assertIsDefined(d);let ve=O.isUnion()?Ma(O.types,H=>H.getCallSignatures()):O.getCallSignatures();if(!_t(ve))break;if(d.length===1){w.assert(ve.length===1,"One declaration implies one signature");let H=ve[0];U($,H,F,V(I),ce(p,$,z));break}for(let H of ve)H.declaration&&H.declaration.flags&33554432||U($,H,F,V(I));if(!z)if(d.length>ve.length){let H=S.getSignatureFromDeclaration(d[d.length-1]);U($,H,F,V(I),ce(p,$))}else w.assert(d.length===ve.length,"Declarations and signatures should match count"),c(oZe(S,i,t,ve,V(I),W&&!!(u&1),F,$,p));break}function U(de,ve,H,Se,Je){let ye=EH(175,i,de,ve,Je,Se,H,W&&!!(u&1),t,o);ye&&c(ye)}function _e(){let de;return E&&(de=Ux(de,A.createModifiersFromModifierFlags(E))),re()&&(de=Fr(de,A.createToken(164))),de&&A.createNodeArray(de)}function re(){return!!(i.program.getCompilerOptions().noImplicitOverride&&h&&AS(h))}function V(de){return Be(de)&&de.escapedText==="constructor"?A.createComputedPropertyName(A.createStringLiteral(Fn(de),$===0)):to(de,!1)}function ce(de,ve,H){return H?void 0:to(de,!1)||Ife(ve)}function oe(de){return to(de,!1)}function le(de,ve){if(Cc(de)&262144){let H=de.links.nameType;if(H&&L_(H))return A.createIdentifier(Ai(W_(H)))}return to(Ss(ve),!1)}}function EH(e,t,n,i,s,o,c,p,u,g){let d=t.program,h=d.getTypeChecker(),S=xa(d.getCompilerOptions()),T=dn(u),x=524545|(n===0?268435456:0),I=h.signatureToSignatureDeclaration(i,e,u,x,8,sD(t));if(!I)return;let P=T?void 0:I.typeParameters,E=I.parameters,F=T?void 0:to(I.type);if(g){if(P){let $=fl(P,X=>{let U=X.constraint,_e=X.default;if(U){let re=sT(U,S);re&&(U=re.typeNode,Wk(g,re.symbols))}if(_e){let re=sT(_e,S);re&&(_e=re.typeNode,Wk(g,re.symbols))}return A.updateTypeParameterDeclaration(X,X.modifiers,X.name,U,_e)});P!==$&&(P=mt(A.createNodeArray($,P.hasTrailingComma),P))}let z=fl(E,$=>{let X=T?void 0:$.type;if(X){let U=sT(X,S);U&&(X=U.typeNode,Wk(g,U.symbols))}return A.updateParameterDeclaration($,$.modifiers,$.dotDotDotToken,$.name,T?void 0:$.questionToken,X,$.initializer)});if(E!==z&&(E=mt(A.createNodeArray(z,E.hasTrailingComma),E)),F){let $=sT(F,S);$&&(F=$.typeNode,Wk(g,$.symbols))}}let O=p?A.createToken(58):void 0,W=I.asteriskToken;if(Ao(I))return A.updateFunctionExpression(I,c,I.asteriskToken,Hn(o,Be),P,E,F,s??I.body);if(Fo(I))return A.updateArrowFunction(I,c,P,E,F,I.equalsGreaterThanToken,s??I.body);if(hc(I))return A.updateMethodDeclaration(I,c,W,o??A.createIdentifier(""),O,P,E,F,s);if(Gc(I))return A.updateFunctionDeclaration(I,c,I.asteriskToken,Hn(o,Be),P,E,F,s??I.body)}function xfe(e,t,n,i,s,o,c){let p=Mf(t.sourceFile,t.preferences),u=xa(t.program.getCompilerOptions()),g=sD(t),d=t.program.getTypeChecker(),h=dn(c),{typeArguments:S,arguments:T,parent:x}=i,I=h?void 0:d.getContextualType(i),P=kr(T,_e=>Be(_e)?_e.text:Ln(_e)&&Be(_e.name)?_e.name.text:void 0),E=h?[]:kr(T,_e=>d.getTypeAtLocation(_e)),{argumentTypeNodes:F,argumentTypeParameters:O}=sZe(d,n,E,c,u,1,8,g),W=o?A.createNodeArray(A.createModifiersFromModifierFlags(o)):void 0,z=u4(x)?A.createToken(42):void 0,$=h?void 0:nZe(d,O,S),X=wfe(T.length,P,F,void 0,h),U=h||I===void 0?void 0:d.typeToTypeNode(I,c,void 0,void 0,g);switch(e){case 175:return A.createMethodDeclaration(W,z,s,void 0,$,X,U,Ife(p));case 174:return A.createMethodSignature(W,s,void 0,$,X,U===void 0?A.createKeywordTypeNode(159):U);case 263:return w.assert(typeof s=="string"||Be(s),"Unexpected name"),A.createFunctionDeclaration(W,z,s,$,X,U,sL(_.Function_not_implemented.message,p));default:w.fail("Unexpected kind")}}function nZe(e,t,n){let i=new Set(t.map(o=>o[0])),s=new Map(t);if(n){let o=n.filter(p=>!t.some(u=>{var g;return e.getTypeAtLocation(p)===((g=u[1])==null?void 0:g.argumentType)})),c=i.size+o.length;for(let p=0;i.size<c;p+=1)i.add(vAe(p))}return ds(i.values(),o=>{var c;return A.createTypeParameterDeclaration(void 0,o,(c=s.get(o))==null?void 0:c.constraint)})}function vAe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function NH(e,t,n,i,s,o,c,p){let u=e.typeToTypeNode(n,i,o,c,p);if(u)return Cfe(u,t,s)}function Cfe(e,t,n){let i=sT(e,n);return i&&(Wk(t,i.symbols),e=i.typeNode),to(e)}function iZe(e,t){var n;w.assert(t.typeArguments);let i=t.typeArguments,s=t.target;for(let o=0;o<i.length;o++){if(((n=s.localTypeParameters)==null?void 0:n[o].constraint)===void 0)continue;let c=i.slice(0,o);if(e.fillMissingTypeArguments(c,s.typeParameters,o,!1).every((u,g)=>u===i[g]))return o}return i.length}function bAe(e,t,n,i,s,o){let c=e.typeToTypeNode(t,n,i,s,o);if(c){if(Pf(c)){let p=t;if(p.typeArguments&&c.typeArguments){let u=iZe(e,p);if(u<c.typeArguments.length){let g=A.createNodeArray(c.typeArguments.slice(0,u));c=A.updateTypeReferenceNode(c,c.typeName,g)}}}return c}}function SAe(e,t,n,i,s,o,c,p){let u=e.typePredicateToTypePredicateNode(n,i,o,c,p);if(u?.type&&Hm(u.type)){let g=sT(u.type,s);g&&(Wk(t,g.symbols),u=A.updateTypePredicateNode(u,u.assertsModifier,u.parameterName,g.typeNode))}return to(u)}function TAe(e){return e.isUnionOrIntersection()?e.types.some(TAe):e.flags&262144}function sZe(e,t,n,i,s,o,c,p){let u=[],g=new Map;for(let d=0;d<n.length;d+=1){let h=n[d];if(h.isUnionOrIntersection()&&h.types.some(TAe)){let P=vAe(d);u.push(A.createTypeReferenceNode(P)),g.set(P,void 0);continue}let S=e.getBaseTypeOfLiteralType(h),T=NH(e,t,S,i,s,o,c,p);if(!T)continue;u.push(T);let x=kAe(h),I=h.isTypeParameter()&&h.constraint&&!aZe(h.constraint)?NH(e,t,h.constraint,i,s,o,c,p):void 0;x&&g.set(x,{argumentType:h,constraint:I})}return{argumentTypeNodes:u,argumentTypeParameters:ds(g.entries())}}function aZe(e){return e.flags&524288&&e.objectFlags===16}function kAe(e){var t;if(e.flags&3145728)for(let n of e.types){let i=kAe(n);if(i)return i}return e.flags&262144?(t=e.getSymbol())==null?void 0:t.getName():void 0}function wfe(e,t,n,i,s){let o=[],c=new Map;for(let p=0;p<e;p++){let u=t?.[p]||`arg${p}`,g=c.get(u);c.set(u,(g||0)+1);let d=A.createParameterDeclaration(void 0,void 0,u+(g||""),i!==void 0&&p>=i?A.createToken(58):void 0,s?void 0:n?.[p]||A.createKeywordTypeNode(159),void 0);o.push(d)}return o}function oZe(e,t,n,i,s,o,c,p,u){let g=i[0],d=i[0].minArgumentCount,h=!1;for(let I of i)d=Math.min(I.minArgumentCount,d),Zu(I)&&(h=!0),I.parameters.length>=g.parameters.length&&(!Zu(I)||Zu(g))&&(g=I);let S=g.parameters.length-(Zu(g)?1:0),T=g.parameters.map(I=>I.name),x=wfe(S,T,void 0,d,!1);if(h){let I=A.createParameterDeclaration(void 0,A.createToken(26),T[S]||"rest",S>=d?A.createToken(58):void 0,A.createArrayTypeNode(A.createKeywordTypeNode(159)),void 0);x.push(I)}return lZe(c,s,o,void 0,x,cZe(i,e,t,n),p,u)}function cZe(e,t,n,i){if(Dr(e)){let s=t.getUnionType(kr(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(s,i,1,8,sD(n))}}function lZe(e,t,n,i,s,o,c,p){return A.createMethodDeclaration(e,void 0,t,n?A.createToken(58):void 0,i,s,o,p||Ife(c))}function Ife(e){return sL(_.Method_not_implemented.message,e)}function sL(e,t){return A.createBlock([A.createThrowStatement(A.createNewExpression(A.createIdentifier("Error"),void 0,[A.createStringLiteral(e,t===0)]))],!0)}function Dfe(e,t,n){let i=$P(t);if(!i)return;let s=xAe(i,"compilerOptions");if(s===void 0){e.insertNodeAtObjectStart(t,i,Afe("compilerOptions",A.createObjectLiteralExpression(n.map(([c,p])=>Afe(c,p)),!0)));return}let o=s.initializer;if(Sa(o))for(let[c,p]of n){let u=xAe(o,c);u===void 0?e.insertNodeAtObjectStart(t,o,Afe(c,p)):e.replaceNode(t,u.initializer,p)}}function Pfe(e,t,n,i){Dfe(e,t,[[n,i]])}function Afe(e,t){return A.createPropertyAssignment(A.createStringLiteral(e),t)}function xAe(e,t){return Bn(e.properties,n=>yl(n)&&!!n.name&&ya(n.name)&&n.name.text===t)}function sT(e,t){let n,i=rt(e,s,yi);if(n&&i)return{typeNode:i,symbols:n};function s(o){if(Yh(o)&&o.qualifier){let c=wp(o.qualifier);if(!c.symbol)return Pr(o,s,void 0);let p=I5(c.symbol,t),u=p!==c.text?CAe(o.qualifier,A.createIdentifier(p)):o.qualifier;n=Fr(n,c.symbol);let g=Br(o.typeArguments,s,yi);return A.createTypeReferenceNode(u,g)}return Pr(o,s,void 0)}}function CAe(e,t){return e.kind===80?t:A.createQualifiedName(CAe(e.left,t),e.right)}function Wk(e,t){t.forEach(n=>e.addImportFromExportedSymbol(n,!0))}function Efe(e,t){let n=mc(t),i=Ii(e,t.start);for(;i.end<n;)i=i.parent;return i}function wAe(e,t,n,i,s,o){let c=PAe(e,t,n,i);if(!c||_C.isRefactorErrorInfo(c))return;let p=gn.ChangeTracker.fromContext(s),{isStatic:u,isReadonly:g,fieldName:d,accessorName:h,originalName:S,type:T,container:x,declaration:I}=c;Df(d),Df(h),Df(I),Df(x);let P,E;if(ni(x)){let O=Mu(I);if(Cp(e)){let W=A.createModifiersFromModifierFlags(O);P=W,E=W}else P=A.createModifiersFromModifierFlags(fZe(O)),E=A.createModifiersFromModifierFlags(_Ze(O));US(I)&&(E=Qi(ab(I),E))}yZe(p,e,I,T,d,E);let F=dZe(d,h,T,P,u,x);if(Df(F),AAe(p,e,F,I,x),g){let O=_h(x);O&&vZe(p,e,O,d.text,S)}else{let O=mZe(d,h,T,P,u,x);Df(O),AAe(p,e,O,I,x)}return p.getChanges()}function uZe(e){return Be(e)||ya(e)}function pZe(e){return Tf(e,e.parent)||hs(e)||yl(e)}function IAe(e,t){return Be(t)?A.createIdentifier(e):A.createStringLiteral(e)}function DAe(e,t,n){let i=t?n.name:A.createThis();return Be(e)?A.createPropertyAccessExpression(i,e):A.createElementAccessExpression(i,A.createStringLiteralFromNode(e))}function fZe(e){return e&=-9,e&=-3,e&4||(e|=1),e}function _Ze(e){return e&=-2,e&=-5,e|=2,e}function PAe(e,t,n,i,s=!0){let o=Ii(e,n),c=n===i&&s,p=vr(o.parent,pZe),u=271;if(!p||!(t5(p.name,e,n,i)||c))return{error:Es(_.Could_not_find_property_for_which_to_generate_accessor)};if(!uZe(p.name))return{error:Es(_.Name_is_not_valid)};if((Mu(p)&98303|u)!==u)return{error:Es(_.Can_only_convert_property_with_modifier)};let g=p.name.text,d=d$(g),h=IAe(d?g:Lk(`_${g}`,e),p.name),S=IAe(d?Lk(g.substring(1),e):g,p.name);return{isStatic:Cl(p),isReadonly:lk(p),type:bZe(p,t),container:p.kind===170?p.parent.parent:p.parent,originalName:p.name.text,declaration:p,fieldName:h,accessorName:S,renameAccessor:d}}function dZe(e,t,n,i,s,o){return A.createGetAccessorDeclaration(i,t,[],n,A.createBlock([A.createReturnStatement(DAe(e,s,o))],!0))}function mZe(e,t,n,i,s,o){return A.createSetAccessorDeclaration(i,t,[A.createParameterDeclaration(void 0,void 0,A.createIdentifier("value"),void 0,n)],A.createBlock([A.createExpressionStatement(A.createAssignment(DAe(e,s,o),A.createIdentifier("value")))],!0))}function gZe(e,t,n,i,s,o){let c=A.updatePropertyDeclaration(n,o,s,n.questionToken||n.exclamationToken,i,n.initializer);e.replaceNode(t,n,c)}function hZe(e,t,n,i){let s=A.updatePropertyAssignment(n,i,n.initializer);(s.modifiers||s.questionToken||s.exclamationToken)&&(s===n&&(s=A.cloneNode(s)),s.modifiers=void 0,s.questionToken=void 0,s.exclamationToken=void 0),e.replacePropertyAssignment(t,n,s)}function yZe(e,t,n,i,s,o){hs(n)?gZe(e,t,n,i,s,o):yl(n)?hZe(e,t,n,s):e.replaceNode(t,n,A.updateParameterDeclaration(n,o,n.dotDotDotToken,Zs(s,Be),n.questionToken,n.type,n.initializer))}function AAe(e,t,n,i,s){Tf(i,i.parent)?e.insertMemberAtStart(t,s,n):yl(i)?e.insertNodeAfterComma(t,i,n):e.insertNodeAfter(t,i,n)}function vZe(e,t,n,i,s){n.body&&n.body.forEachChild(function o(c){xo(c)&&c.expression.kind===110&&ya(c.argumentExpression)&&c.argumentExpression.text===s&&k2(c)&&e.replaceNode(t,c.argumentExpression,A.createStringLiteral(i)),Ln(c)&&c.expression.kind===110&&c.name.text===s&&k2(c)&&e.replaceNode(t,c.name,A.createIdentifier(i)),!Fs(c)&&!ni(c)&&c.forEachChild(o)})}function bZe(e,t){let n=Dre(e);if(hs(e)&&n&&e.questionToken){let i=t.getTypeChecker(),s=i.getTypeFromTypeNode(n);if(!i.isTypeAssignableTo(i.getUndefinedType(),s)){let o=sv(n)?n.types:[n];return A.createUnionTypeNode([...o,A.createKeywordTypeNode(157)])}}return n}var EAe="invalidImportSyntax";function SZe(e,t){let n=Nr(t),i=qw(t),s=e.program.getCompilerOptions(),o=[];return o.push(NAe(e,n,t,Bb(i.name,void 0,t.moduleSpecifier,Mf(n,e.preferences)))),_p(s)===1&&o.push(NAe(e,n,t,A.createImportEqualsDeclaration(void 0,!1,i.name,A.createExternalModuleReference(t.moduleSpecifier)))),o}function NAe(e,t,n,i){let s=gn.ChangeTracker.with(e,o=>o.replaceNode(t,n,i));return dm(EAe,s,[_.Replace_import_with_0,s[0].textChanges[0].newText])}aa({errorCodes:[_.This_expression_is_not_callable.code,_.This_expression_is_not_constructable.code],getCodeActions:TZe});function TZe(e){let t=e.sourceFile,n=_.This_expression_is_not_callable.code===e.errorCode?214:215,i=vr(Ii(t,e.span.start),o=>o.kind===n);if(!i)return[];let s=i.expression;return MAe(e,s)}aa({errorCodes:[_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_.Type_0_does_not_satisfy_the_constraint_1.code,_.Type_0_is_not_assignable_to_type_1.code,_.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,_.Type_predicate_0_is_not_assignable_to_1.code,_.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,_._0_index_type_1_is_not_assignable_to_2_index_type_3.code,_.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,_.Property_0_in_type_1_is_not_assignable_to_type_2.code,_.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,_.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:kZe});function kZe(e){let t=e.sourceFile,n=vr(Ii(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return n?MAe(e,n):[]}function MAe(e,t){let n=e.program.getTypeChecker().getTypeAtLocation(t);if(!(n.symbol&&oh(n.symbol)&&n.symbol.links.originatingImport))return[];let i=[],s=n.symbol.links.originatingImport;if(Up(s)||Gn(i,SZe(e,s)),ht(t)&&!(Vl(t.parent)&&t.parent.name===t)){let o=e.sourceFile,c=gn.ChangeTracker.with(e,p=>p.replaceNode(o,t,A.createPropertyAccessExpression(t,"default"),{}));i.push(dm(EAe,c,_.Use_synthetic_default_member))}return i}var Nfe="strictClassInitialization",Mfe="addMissingPropertyDefiniteAssignmentAssertions",Rfe="addMissingPropertyUndefinedType",Ofe="addMissingPropertyInitializer",RAe=[_.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];aa({errorCodes:RAe,getCodeActions:function(t){let n=OAe(t.sourceFile,t.span.start);if(!n)return;let i=[];return Fr(i,CZe(t,n)),Fr(i,xZe(t,n)),Fr(i,wZe(t,n)),i},fixIds:[Mfe,Rfe,Ofe],getAllCodeActions:e=>co(e,RAe,(t,n)=>{let i=OAe(n.file,n.start);if(i)switch(e.fixId){case Mfe:FAe(t,n.file,i.prop);break;case Rfe:jAe(t,n.file,i);break;case Ofe:let s=e.program.getTypeChecker(),o=WAe(s,i.prop);if(!o)return;LAe(t,n.file,i.prop,o);break;default:w.fail(JSON.stringify(e.fixId))}})});function OAe(e,t){let n=Ii(e,t);if(Be(n)&&hs(n.parent)){let i=ml(n.parent);if(i)return{type:i,prop:n.parent,isJs:dn(n.parent)}}}function xZe(e,t){if(t.isJs)return;let n=gn.ChangeTracker.with(e,i=>FAe(i,e.sourceFile,t.prop));return Us(Nfe,n,[_.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],Mfe,_.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function FAe(e,t,n){Df(n);let i=A.updatePropertyDeclaration(n,n.modifiers,n.name,A.createToken(54),n.type,n.initializer);e.replaceNode(t,n,i)}function CZe(e,t){let n=gn.ChangeTracker.with(e,i=>jAe(i,e.sourceFile,t));return Us(Nfe,n,[_.Add_undefined_type_to_property_0,t.prop.name.getText()],Rfe,_.Add_undefined_type_to_all_uninitialized_properties)}function jAe(e,t,n){let i=A.createKeywordTypeNode(157),s=sv(n.type)?n.type.types.concat(i):[n.type,i],o=A.createUnionTypeNode(s);n.isJs?e.addJSDocTags(t,n.prop,[A.createJSDocTypeTag(void 0,A.createJSDocTypeExpression(o))]):e.replaceNode(t,n.type,o)}function wZe(e,t){if(t.isJs)return;let n=e.program.getTypeChecker(),i=WAe(n,t.prop);if(!i)return;let s=gn.ChangeTracker.with(e,o=>LAe(o,e.sourceFile,t.prop,i));return Us(Nfe,s,[_.Add_initializer_to_property_0,t.prop.name.getText()],Ofe,_.Add_initializers_to_all_uninitialized_properties)}function LAe(e,t,n,i){Df(n);let s=A.updatePropertyDeclaration(n,n.modifiers,n.name,n.questionToken,n.type,i);e.replaceNode(t,n,s)}function WAe(e,t){return BAe(e,e.getTypeFromTypeNode(t.type))}function BAe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?A.createFalse():A.createTrue();if(t.isStringLiteral())return A.createStringLiteral(t.value);if(t.isNumberLiteral())return A.createNumericLiteral(t.value);if(t.flags&2048)return A.createBigIntLiteral(t.value);if(t.isUnion())return fo(t.types,n=>BAe(e,n));if(t.isClass()){let n=iy(t.symbol);if(!n||ri(n,64))return;let i=_h(n);return i&&i.parameters.length?void 0:A.createNewExpression(A.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return A.createArrayLiteralExpression()}var Ffe="requireInTs",zAe=[_.require_call_may_be_converted_to_an_import.code];aa({errorCodes:zAe,getCodeActions(e){let t=JAe(e.sourceFile,e.program,e.span.start,e.preferences);if(!t)return;let n=gn.ChangeTracker.with(e,i=>GAe(i,e.sourceFile,t));return[Us(Ffe,n,_.Convert_require_to_import,Ffe,_.Convert_all_require_to_import)]},fixIds:[Ffe],getAllCodeActions:e=>co(e,zAe,(t,n)=>{let i=JAe(n.file,e.program,n.start,e.preferences);i&&GAe(t,e.sourceFile,i)})});function GAe(e,t,n){let{allowSyntheticDefaults:i,defaultImportName:s,namedImports:o,statement:c,moduleSpecifier:p}=n;e.replaceNode(t,c,s&&!i?A.createImportEqualsDeclaration(void 0,!1,s,A.createExternalModuleReference(p)):A.createImportDeclaration(void 0,A.createImportClause(void 0,s,o),p,void 0))}function JAe(e,t,n,i){let{parent:s}=Ii(e,n);Vp(s,!0)||w.failBadSyntaxKind(s);let o=Zs(s.parent,li),c=Mf(e,i),p=Hn(o.name,Be),u=o_(o.name)?IZe(o.name):void 0;if(p||u){let g=Ra(s.arguments);return{allowSyntheticDefaults:D2(t.getCompilerOptions()),defaultImportName:p,namedImports:u,statement:Zs(o.parent.parent,Qc),moduleSpecifier:mk(g)?A.createStringLiteral(g.text,c===0):g}}}function IZe(e){let t=[];for(let n of e.elements){if(!Be(n.name)||n.initializer)return;t.push(A.createImportSpecifier(!1,Hn(n.propertyName,Be),n.name))}if(t.length)return A.createNamedImports(t)}var jfe="useDefaultImport",UAe=[_.Import_may_be_converted_to_a_default_import.code];aa({errorCodes:UAe,getCodeActions(e){let{sourceFile:t,span:{start:n}}=e,i=VAe(t,n);if(!i)return;let s=gn.ChangeTracker.with(e,o=>qAe(o,t,i,e.preferences));return[Us(jfe,s,_.Convert_to_default_import,jfe,_.Convert_all_to_default_imports)]},fixIds:[jfe],getAllCodeActions:e=>co(e,UAe,(t,n)=>{let i=VAe(n.file,n.start);i&&qAe(t,n.file,i,e.preferences)})});function VAe(e,t){let n=Ii(e,t);if(!Be(n))return;let{parent:i}=n;if(Dl(i)&&ay(i.moduleReference))return{importNode:i,name:n,moduleSpecifier:i.moduleReference.expression};if(bh(i)&&ac(i.parent.parent)){let s=i.parent.parent;return{importNode:s,name:n,moduleSpecifier:s.moduleSpecifier}}}function qAe(e,t,n,i){e.replaceNode(t,n.importNode,Bb(n.name,void 0,n.moduleSpecifier,Mf(t,i)))}var Lfe="useBigintLiteral",$Ae=[_.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];aa({errorCodes:$Ae,getCodeActions:function(t){let n=gn.ChangeTracker.with(t,i=>HAe(i,t.sourceFile,t.span));if(n.length>0)return[Us(Lfe,n,_.Convert_to_a_bigint_numeric_literal,Lfe,_.Convert_all_to_bigint_numeric_literals)]},fixIds:[Lfe],getAllCodeActions:e=>co(e,$Ae,(t,n)=>HAe(t,n.file,n))});function HAe(e,t,n){let i=Hn(Ii(t,n.start),Hp);if(!i)return;let s=i.getText(t)+"n";e.replaceNode(t,i,A.createBigIntLiteral(s))}var DZe="fixAddModuleReferTypeMissingTypeof",Wfe=DZe,QAe=[_.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];aa({errorCodes:QAe,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=KAe(n,i.start),o=gn.ChangeTracker.with(t,c=>XAe(c,n,s));return[Us(Wfe,o,_.Add_missing_typeof,Wfe,_.Add_missing_typeof)]},fixIds:[Wfe],getAllCodeActions:e=>co(e,QAe,(t,n)=>XAe(t,e.sourceFile,KAe(n.file,n.start)))});function KAe(e,t){let n=Ii(e,t);return w.assert(n.kind===102,"This token should be an ImportKeyword"),w.assert(n.parent.kind===206,"Token parent should be an ImportType"),n.parent}function XAe(e,t,n){let i=A.updateImportTypeNode(n,n.argument,n.attributes,n.qualifier,n.typeArguments,!0);e.replaceNode(t,n,i)}var Bfe="wrapJsxInFragment",YAe=[_.JSX_expressions_must_have_one_parent_element.code];aa({errorCodes:YAe,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=ZAe(n,i.start);if(!s)return;let o=gn.ChangeTracker.with(t,c=>eEe(c,n,s));return[Us(Bfe,o,_.Wrap_in_JSX_fragment,Bfe,_.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[Bfe],getAllCodeActions:e=>co(e,YAe,(t,n)=>{let i=ZAe(e.sourceFile,n.start);i&&eEe(t,e.sourceFile,i)})});function ZAe(e,t){let s=Ii(e,t).parent.parent;if(!(!vn(s)&&(s=s.parent,!vn(s)))&&xc(s.operatorToken))return s}function eEe(e,t,n){let i=PZe(n);i&&e.replaceNode(t,n,A.createJsxFragment(A.createJsxOpeningFragment(),i,A.createJsxJsxClosingFragment()))}function PZe(e){let t=[],n=e;for(;;)if(vn(n)&&xc(n.operatorToken)&&n.operatorToken.kind===28){if(t.push(n.left),zM(n.right))return t.push(n.right),t;if(vn(n.right)){n=n.right;continue}else return}else return}var zfe="wrapDecoratorInParentheses",tEe=[_.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code];aa({errorCodes:tEe,getCodeActions:function(t){let n=gn.ChangeTracker.with(t,i=>rEe(i,t.sourceFile,t.span.start));return[Us(zfe,n,_.Wrap_in_parentheses,zfe,_.Wrap_all_invalid_decorator_expressions_in_parentheses)]},fixIds:[zfe],getAllCodeActions:e=>co(e,tEe,(t,n)=>rEe(t,n.file,n.start))});function rEe(e,t,n){let i=Ii(t,n),s=vr(i,Il);w.assert(!!s,"Expected position to be owned by a decorator.");let o=A.createParenthesizedExpression(s.expression);e.replaceNode(t,s.expression,o)}var Gfe="fixConvertToMappedObjectType",nEe=[_.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];aa({errorCodes:nEe,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=iEe(n,i.start);if(!s)return;let o=gn.ChangeTracker.with(t,p=>sEe(p,n,s)),c=Fn(s.container.name);return[Us(Gfe,o,[_.Convert_0_to_mapped_object_type,c],Gfe,[_.Convert_0_to_mapped_object_type,c])]},fixIds:[Gfe],getAllCodeActions:e=>co(e,nEe,(t,n)=>{let i=iEe(n.file,n.start);i&&sEe(t,n.file,i)})});function iEe(e,t){let n=Ii(e,t),i=Hn(n.parent.parent,Pb);if(!i)return;let s=uu(i.parent)?i.parent:Hn(i.parent.parent,gd);if(s)return{indexSignature:i,container:s}}function AZe(e,t){return A.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function sEe(e,t,{indexSignature:n,container:i}){let o=(uu(i)?i.members:i.type.members).filter(d=>!Pb(d)),c=Ra(n.parameters),p=A.createTypeParameterDeclaration(void 0,Zs(c.name,Be),c.type),u=A.createMappedTypeNode(lk(n)?A.createModifier(148):void 0,p,void 0,n.questionToken,n.type,void 0),g=A.createIntersectionTypeNode([...nA(i),u,...o.length?[A.createTypeLiteralNode(o)]:Ke]);e.replaceNode(t,i,AZe(i,g))}var aEe="removeAccidentalCallParentheses",EZe=[_.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];aa({errorCodes:EZe,getCodeActions(e){let t=vr(Ii(e.sourceFile,e.span.start),Ws);if(!t)return;let n=gn.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[dm(aEe,n,_.Remove_parentheses)]},fixIds:[aEe]});var Jfe="removeUnnecessaryAwait",oEe=[_.await_has_no_effect_on_the_type_of_this_expression.code];aa({errorCodes:oEe,getCodeActions:function(t){let n=gn.ChangeTracker.with(t,i=>cEe(i,t.sourceFile,t.span));if(n.length>0)return[Us(Jfe,n,_.Remove_unnecessary_await,Jfe,_.Remove_all_unnecessary_uses_of_await)]},fixIds:[Jfe],getAllCodeActions:e=>co(e,oEe,(t,n)=>cEe(t,n.file,n))});function cEe(e,t,n){let i=Hn(Ii(t,n.start),p=>p.kind===135),s=i&&Hn(i.parent,Ab);if(!s)return;let o=s;if(Pp(s.parent)){let p=iI(s.expression,!1);if(Be(p)){let u=Al(s.parent.pos,t);u&&u.kind!==105&&(o=s.parent)}}e.replaceNode(t,o,s.expression)}var lEe=[_.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],Ufe="splitTypeOnlyImport";aa({errorCodes:lEe,fixIds:[Ufe],getCodeActions:function(t){let n=gn.ChangeTracker.with(t,i=>pEe(i,uEe(t.sourceFile,t.span),t));if(n.length)return[Us(Ufe,n,_.Split_into_two_separate_import_declarations,Ufe,_.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>co(e,lEe,(t,n)=>{pEe(t,uEe(e.sourceFile,n),e)})});function uEe(e,t){return vr(Ii(e,t.start),ac)}function pEe(e,t,n){if(!t)return;let i=w.checkDefined(t.importClause);e.replaceNode(n.sourceFile,t,A.updateImportDeclaration(t,t.modifiers,A.updateImportClause(i,i.phaseModifier,i.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(n.sourceFile,t,A.createImportDeclaration(void 0,A.updateImportClause(i,i.phaseModifier,void 0,i.namedBindings),t.moduleSpecifier,t.attributes))}var Vfe="fixConvertConstToLet",fEe=[_.Cannot_assign_to_0_because_it_is_a_constant.code];aa({errorCodes:fEe,getCodeActions:function(t){let{sourceFile:n,span:i,program:s}=t,o=_Ee(n,i.start,s);if(o===void 0)return;let c=gn.ChangeTracker.with(t,p=>dEe(p,n,o.token));return[rpe(Vfe,c,_.Convert_const_to_let,Vfe,_.Convert_all_const_to_let)]},getAllCodeActions:e=>{let{program:t}=e,n=new Set;return mC(gn.ChangeTracker.with(e,i=>{gC(e,fEe,s=>{let o=_Ee(s.file,s.start,t);if(o&&dd(n,sa(o.symbol)))return dEe(i,s.file,o.token)})}))},fixIds:[Vfe]});function _Ee(e,t,n){var i;let o=n.getTypeChecker().getSymbolAtLocation(Ii(e,t));if(o===void 0)return;let c=Hn((i=o?.valueDeclaration)==null?void 0:i.parent,lu);if(c===void 0)return;let p=lo(c,87,e);if(p!==void 0)return{symbol:o,token:p}}function dEe(e,t,n){e.replaceNode(t,n,A.createToken(121))}var qfe="fixExpectedComma",NZe=_._0_expected.code,mEe=[NZe];aa({errorCodes:mEe,getCodeActions(e){let{sourceFile:t}=e,n=gEe(t,e.span.start,e.errorCode);if(!n)return;let i=gn.ChangeTracker.with(e,s=>hEe(s,t,n));return[Us(qfe,i,[_.Change_0_to_1,";",","],qfe,[_.Change_0_to_1,";",","])]},fixIds:[qfe],getAllCodeActions:e=>co(e,mEe,(t,n)=>{let i=gEe(n.file,n.start,n.code);i&&hEe(t,e.sourceFile,i)})});function gEe(e,t,n){let i=Ii(e,t);return i.kind===27&&i.parent&&(Sa(i.parent)||Tu(i.parent))?{node:i}:void 0}function hEe(e,t,{node:n}){let i=A.createToken(28);e.replaceNode(t,n,i)}var MZe="addVoidToPromise",yEe="addVoidToPromise",vEe=[_.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,_.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];aa({errorCodes:vEe,fixIds:[yEe],getCodeActions(e){let t=gn.ChangeTracker.with(e,n=>bEe(n,e.sourceFile,e.span,e.program));if(t.length>0)return[Us(MZe,t,_.Add_void_to_Promise_resolved_without_a_value,yEe,_.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return co(e,vEe,(t,n)=>bEe(t,n.file,n,e.program,new Set))}});function bEe(e,t,n,i,s){let o=Ii(t,n.start);if(!Be(o)||!Ws(o.parent)||o.parent.expression!==o||o.parent.arguments.length!==0)return;let c=i.getTypeChecker(),p=c.getSymbolAtLocation(o),u=p?.valueDeclaration;if(!u||!Gi(u)||!WS(u.parent.parent)||s?.has(u))return;s?.add(u);let g=RZe(u.parent.parent);if(_t(g)){let d=g[0],h=!sv(d)&&!hk(d)&&hk(A.createUnionTypeNode([d,A.createKeywordTypeNode(116)]).types[0]);h&&e.insertText(t,d.pos,"("),e.insertText(t,d.end,h?") | void":" | void")}else{let d=c.getResolvedSignature(o.parent),h=d?.parameters[0],S=h&&c.getTypeOfSymbolAtLocation(h,u.parent.parent);dn(u)?(!S||S.flags&3)&&(e.insertText(t,u.parent.parent.end,")"),e.insertText(t,ha(t.text,u.parent.parent.pos),"/** @type {Promise<void>} */(")):(!S||S.flags&2)&&e.insertText(t,u.parent.parent.expression.end,"<void>")}}function RZe(e){var t;if(dn(e)){if(Pp(e.parent)){let n=(t=D0(e.parent))==null?void 0:t.typeExpression.type;if(n&&Pf(n)&&Be(n.typeName)&&Fn(n.typeName)==="Promise")return n.typeArguments}}else return e.typeArguments}var vC={};it(vC,{CompletionKind:()=>jEe,CompletionSource:()=>TEe,SortText:()=>ju,StringCompletions:()=>UH,SymbolOriginInfoKind:()=>kEe,createCompletionDetails:()=>cL,createCompletionDetailsForSymbol:()=>t_e,getCompletionEntriesFromSymbols:()=>Zfe,getCompletionEntryDetails:()=>fet,getCompletionEntrySymbol:()=>det,getCompletionsAtPosition:()=>GZe,getDefaultCommitCharacters:()=>Bk,getPropertiesForObjectExpression:()=>zH,moduleSpecifierResolutionCacheAttemptLimit:()=>SEe,moduleSpecifierResolutionLimit:()=>$fe});var $fe=100,SEe=1e3,ju={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated(e){return"z"+e},ObjectLiteralProperty(e,t){return`${e}\0${t}\0`},SortBelow(e){return e+"1"}},ng=[".",",",";"],MH=[".",";"],TEe=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(TEe||{}),kEe=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(kEe||{});function OZe(e){return!!(e.kind&1)}function FZe(e){return!!(e.kind&2)}function aL(e){return!!(e&&e.kind&4)}function $E(e){return!!(e&&e.kind===32)}function jZe(e){return aL(e)||$E(e)||Hfe(e)}function LZe(e){return(aL(e)||$E(e))&&!!e.isFromPackageJson}function WZe(e){return!!(e.kind&8)}function BZe(e){return!!(e.kind&16)}function xEe(e){return!!(e&&e.kind&64)}function CEe(e){return!!(e&&e.kind&128)}function zZe(e){return!!(e&&e.kind&256)}function Hfe(e){return!!(e&&e.kind&512)}function wEe(e,t,n,i,s,o,c,p,u){var g,d,h,S;let T=bo(),x=c||W6(i.getCompilerOptions())||((g=o.autoImportSpecifierExcludeRegexes)==null?void 0:g.length),I=!1,P=0,E=0,F=0,O=0,W=u({tryResolve:$,skippedAny:()=>I,resolvedAny:()=>E>0,resolvedBeyondLimit:()=>E>$fe}),z=O?` (${(F/O*100).toFixed(1)}% hit rate)`:"";return(d=t.log)==null||d.call(t,`${e}: resolved ${E} module specifiers, plus ${P} ambient and ${F} from cache${z}`),(h=t.log)==null||h.call(t,`${e}: response is ${I?"incomplete":"complete"}`),(S=t.log)==null||S.call(t,`${e}: ${bo()-T}`),W;function $(X,U){if(U){let ce=n.getModuleSpecifierForBestExportInfo(X,s,p);return ce&&P++,ce||"failed"}let _e=x||o.allowIncompleteCompletions&&E<$fe,re=!_e&&o.allowIncompleteCompletions&&O<SEe,V=_e||re?n.getModuleSpecifierForBestExportInfo(X,s,p,re):void 0;return(!_e&&!re||re&&!V)&&(I=!0),E+=V?.computedWithoutCacheCount||0,F+=X.length-(V?.computedWithoutCacheCount||0),re&&O++,V||(x?"failed":"skipped")}}function Bk(e){return e?[]:ng}function GZe(e,t,n,i,s,o,c,p,u,g,d=!1){var h;let{previousToken:S}=jH(s,i);if(c&&!cC(i,s,S)&&!wet(i,c,S,s))return;if(c===" ")return o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[],defaultCommitCharacters:Bk(!0)}:void 0;let T=t.getCompilerOptions(),x=t.getTypeChecker(),I=o.allowIncompleteCompletions?(h=e.getIncompleteCompletionsCache)==null?void 0:h.call(e):void 0;if(I&&p===3&&S&&Be(S)){let F=JZe(I,i,S,t,e,o,u,s);if(F)return F}else I?.clear();let P=UH.getStringLiteralCompletions(i,s,S,T,e,t,n,o,d);if(P)return P;if(S&&RP(S.parent)&&(S.kind===83||S.kind===88||S.kind===80))return uet(S.parent);let E=LEe(t,n,i,T,s,o,void 0,e,g,u);if(E)switch(E.kind){case 0:let F=HZe(i,e,t,T,n,E,o,g,s,d);return F?.isIncomplete&&I?.set(F),F;case 1:return Qfe([..._1.getJSDocTagNameCompletions(),...DEe(i,s,x,T,o,!0)]);case 2:return Qfe([..._1.getJSDocTagCompletions(),...DEe(i,s,x,T,o,!1)]);case 3:return Qfe(_1.getJSDocParameterNameCompletions(E.tag));case 4:return qZe(E.keywordCompletions,E.isNewIdentifierLocation);default:return w.assertNever(E)}}function oL(e,t){var n,i;let s=_M(e.sortText,t.sortText);return s===0&&(s=_M(e.name,t.name)),s===0&&((n=e.data)!=null&&n.moduleSpecifier)&&((i=t.data)!=null&&i.moduleSpecifier)&&(s=q6(e.data.moduleSpecifier,t.data.moduleSpecifier)),s===0?-1:s}function IEe(e){return!!e?.moduleSpecifier}function JZe(e,t,n,i,s,o,c,p){let u=e.get();if(!u)return;let g=Kp(t,p),d=n.text.toLowerCase(),h=AR(t,s,i,o,c),S=wEe("continuePreviousIncompleteResponse",s,tp.createImportSpecifierResolver(t,i,s,o),i,n.getStart(),o,!1,B0(n),T=>{let x=Ji(u.entries,I=>{var P;if(!I.hasAction||!I.source||!I.data||IEe(I.data))return I;if(!ZEe(I.name,d))return;let{origin:E}=w.checkDefined(WEe(I.name,I.data,i,s)),F=h.get(t.path,I.data.exportMapKey),O=F&&T.tryResolve(F,!Ul(_d(E.moduleSymbol.name)));if(O==="skipped")return I;if(!O||O==="failed"){(P=s.log)==null||P.call(s,`Unexpected failure resolving auto import for '${I.name}' from '${I.source}'`);return}let W={...E,kind:32,moduleSpecifier:O.moduleSpecifier};return I.data=OEe(W),I.source=Yfe(W),I.sourceDisplay=[f_(W.moduleSpecifier)],I});return T.skippedAny()||(u.isIncomplete=void 0),x});return u.entries=S,u.flags=(u.flags||0)|4,u.optionalReplacementSpan=EEe(g),u}function Qfe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e,defaultCommitCharacters:Bk(!1)}}function DEe(e,t,n,i,s,o){let c=Ii(e,t);if(!Ow(c)&&!um(c))return[];let p=um(c)?c:c.parent;if(!um(p))return[];let u=p.parent;if(!Fs(u))return[];let g=Cp(e),d=s.includeCompletionsWithSnippetText||void 0,h=Jy(p.tags,S=>c_(S)&&S.getEnd()<=t);return Ji(u.parameters,S=>{if(!Pw(S).length){if(Be(S.name)){let T={tabstop:1},x=S.name.text,I=qR(x,S.initializer,S.dotDotDotToken,g,!1,!1,n,i,s),P=d?qR(x,S.initializer,S.dotDotDotToken,g,!1,!0,n,i,s,T):void 0;return o&&(I=I.slice(1),P&&(P=P.slice(1))),{name:I,kind:"parameter",sortText:ju.LocationPriority,insertText:d?P:void 0,isSnippet:d}}else if(S.parent.parameters.indexOf(S)===h){let T=`param${h}`,x=PEe(T,S.name,S.initializer,S.dotDotDotToken,g,!1,n,i,s),I=d?PEe(T,S.name,S.initializer,S.dotDotDotToken,g,!0,n,i,s):void 0,P=x.join(Zy(i)+"* "),E=I?.join(Zy(i)+"* ");return o&&(P=P.slice(1),E&&(E=E.slice(1))),{name:P,kind:"parameter",sortText:ju.LocationPriority,insertText:d?E:void 0,isSnippet:d}}}})}function PEe(e,t,n,i,s,o,c,p,u){if(!s)return[qR(e,n,i,s,!1,o,c,p,u,{tabstop:1})];return g(e,t,n,i,{tabstop:1});function g(h,S,T,x,I){if(o_(S)&&!x){let E={tabstop:I.tabstop},F=qR(h,T,x,s,!0,o,c,p,u,E),O=[];for(let W of S.elements){let z=d(h,W,E);if(z)O.push(...z);else{O=void 0;break}}if(O)return I.tabstop=E.tabstop,[F,...O]}return[qR(h,T,x,s,!1,o,c,p,u,I)]}function d(h,S,T){if(!S.propertyName&&Be(S.name)||Be(S.name)){let x=S.propertyName?UP(S.propertyName):S.name.text;if(!x)return;let I=`${h}.${x}`;return[qR(I,S.initializer,S.dotDotDotToken,s,!1,o,c,p,u,T)]}else if(S.propertyName){let x=UP(S.propertyName);return x&&g(`${h}.${x}`,S.name,S.initializer,S.dotDotDotToken,T)}}}function qR(e,t,n,i,s,o,c,p,u,g){if(o&&w.assertIsDefined(g),t&&(e=UZe(e,t)),o&&(e=RS(e)),i){let d="*";if(s)w.assert(!n,"Cannot annotate a rest parameter with type 'Object'."),d="Object";else{if(t){let T=c.getTypeAtLocation(t.parent);if(!(T.flags&16385)){let x=t.getSourceFile(),P=Mf(x,u)===0?268435456:0,E=c.typeToTypeNode(T,vr(t,Fs),P);if(E){let F=o?FH({removeComments:!0,module:p.module,moduleResolution:p.moduleResolution,target:p.target}):jb({removeComments:!0,module:p.module,moduleResolution:p.moduleResolution,target:p.target});yn(E,1),d=F.printNode(4,E,x)}}}o&&d==="*"&&(d=`\${${g.tabstop++}:${d}}`)}let h=!s&&n?"...":"",S=o?`\${${g.tabstop++}}`:"";return`@param {${h}${d}} ${e} ${S}`}else{let d=o?`\${${g.tabstop++}}`:"";return`@param ${e} ${d}`}}function UZe(e,t){let n=t.getText().trim();return n.includes(`
|
|
`)||n.length>80?`[${e}]`:`[${e}=${n}]`}function VZe(e){return{name:ta(e),kind:"keyword",kindModifiers:"",sortText:ju.GlobalsOrKeywords}}function qZe(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice(),defaultCommitCharacters:Bk(t)}}function AEe(e,t,n){return{kind:4,keywordCompletions:zEe(e,t),isNewIdentifierLocation:n}}function $Ze(e){if(e===156)return 8;w.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}function EEe(e){return e?.kind===80?Np(e):void 0}function HZe(e,t,n,i,s,o,c,p,u,g){let{symbols:d,contextToken:h,completionKind:S,isInSnippetScope:T,isNewIdentifierLocation:x,location:I,propertyAccessToConvert:P,keywordFilters:E,symbolToOriginInfoMap:F,recommendedCompletion:O,isJsxInitializer:W,isTypeOnlyLocation:z,isJsxIdentifierExpected:$,isRightOfOpenTag:X,isRightOfDotOrQuestionDot:U,importStatementCompletion:_e,insideJsDocTagTypeExpression:re,symbolToSortTextMap:V,hasUnresolvedAutoImports:ce,defaultCommitCharacters:oe}=o,le=o.literals,de=n.getTypeChecker();if(j6(e.scriptKind)===1){let ee=KZe(I,e);if(ee)return ee}let ve=vr(h,vI);if(ve&&(die(h)||xS(h,ve.expression))){let ee=E5(de,ve.parent.clauses);le=le.filter(ge=>!ee.hasValue(ge)),d.forEach((ge,ke)=>{if(ge.valueDeclaration&&oy(ge.valueDeclaration)){let Oe=de.getConstantValue(ge.valueDeclaration);Oe!==void 0&&ee.hasValue(Oe)&&(F[ke]={kind:256})}})}let H=PW(),Se=NEe(e,i);if(Se&&!x&&(!d||d.length===0)&&E===0)return;let Je=Zfe(d,H,void 0,h,I,u,e,t,n,xa(i),s,S,c,i,p,z,P,$,W,_e,O,F,V,$,X,g);if(E!==0)for(let ee of zEe(E,!re&&Cp(e)))(z&&PE(JT(ee.name))||!z&&Oet(ee.name)||!Je.has(ee.name))&&(Je.add(ee.name),Qv(H,ee,oL,void 0,!0));for(let ee of bet(h,u))Je.has(ee.name)||(Je.add(ee.name),Qv(H,ee,oL,void 0,!0));for(let ee of le){let ge=YZe(e,c,ee);Je.add(ge.name),Qv(H,ge,oL,void 0,!0)}Se||XZe(e,I.pos,Je,xa(i),H);let ye;if(c.includeCompletionsWithInsertText&&h&&!X&&!U&&(ye=vr(h,VA))){let ee=MEe(ye,e,c,i,t,n,p);ee&&H.push(ee.entry)}return{flags:o.flags,isGlobalCompletion:T,isIncomplete:c.allowIncompleteCompletions&&ce?!0:void 0,isMemberCompletion:QZe(S),isNewIdentifierLocation:x,optionalReplacementSpan:EEe(I),entries:H,defaultCommitCharacters:oe??Bk(x)}}function NEe(e,t){return!Cp(e)||!!CA(e,t)}function MEe(e,t,n,i,s,o,c){let p=e.clauses,u=o.getTypeChecker(),g=u.getTypeAtLocation(e.parent.expression);if(g&&g.isUnion()&&Fi(g.types,d=>d.isLiteral())){let d=E5(u,p),h=xa(i),S=Mf(t,n),T=tp.createImportAdder(t,o,n,s),x=[];for(let z of g.types)if(z.flags&1024){w.assert(z.symbol,"An enum member type should have a symbol"),w.assert(z.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");let $=z.symbol.valueDeclaration&&u.getConstantValue(z.symbol.valueDeclaration);if($!==void 0){if(d.hasValue($))continue;d.addValue($)}let X=tp.typeToAutoImportableTypeNode(u,T,z,e,h);if(!X)return;let U=RH(X,h,S);if(!U)return;x.push(U)}else if(!d.hasValue(z.value))switch(typeof z.value){case"object":x.push(z.value.negative?A.createPrefixUnaryExpression(41,A.createBigIntLiteral({negative:!1,base10Value:z.value.base10Value})):A.createBigIntLiteral(z.value));break;case"number":x.push(z.value<0?A.createPrefixUnaryExpression(41,A.createNumericLiteral(-z.value)):A.createNumericLiteral(z.value));break;case"string":x.push(A.createStringLiteral(z.value,S===0));break}if(x.length===0)return;let I=kr(x,z=>A.createCaseClause(z,[])),P=py(s,c?.options),E=FH({removeComments:!0,module:i.module,moduleResolution:i.moduleResolution,target:i.target,newLine:PR(P)}),F=c?z=>E.printAndFormatNode(4,z,t,c):z=>E.printNode(4,z,t),O=kr(I,(z,$)=>n.includeCompletionsWithSnippetText?`${F(z)}$${$+1}`:`${F(z)}`).join(P);return{entry:{name:`${E.printNode(4,I[0],t)} ...`,kind:"",sortText:ju.GlobalsOrKeywords,insertText:O,hasAction:T.hasFixes()||void 0,source:"SwitchCases/",isSnippet:n.includeCompletionsWithSnippetText?!0:void 0},importAdder:T}}}function RH(e,t,n){switch(e.kind){case 184:let i=e.typeName;return OH(i,t,n);case 200:let s=RH(e.objectType,t,n),o=RH(e.indexType,t,n);return s&&o&&A.createElementAccessExpression(s,o);case 202:let c=e.literal;switch(c.kind){case 11:return A.createStringLiteral(c.text,n===0);case 9:return A.createNumericLiteral(c.text,c.numericLiteralFlags)}return;case 197:let p=RH(e.type,t,n);return p&&(Be(p)?p:A.createParenthesizedExpression(p));case 187:return OH(e.exprName,t,n);case 206:w.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function OH(e,t,n){if(Be(e))return e;let i=Ai(e.right.escapedText);return GG(i,t)?A.createPropertyAccessExpression(OH(e.left,t,n),i):A.createElementAccessExpression(OH(e.left,t,n),A.createStringLiteral(i,n===0))}function QZe(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function KZe(e,t){let n=vr(e,i=>{switch(i.kind){case 288:return!0;case 44:case 32:case 80:case 212:return!1;default:return"quit"}});if(n){let i=!!lo(n,32,t),c=n.parent.openingElement.tagName.getText(t)+(i?"":">"),p=Np(n.tagName),u={name:c,kind:"class",kindModifiers:void 0,sortText:ju.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:p,entries:[u],defaultCommitCharacters:Bk(!1)}}}function XZe(e,t,n,i,s){nH(e).forEach((o,c)=>{if(o===t)return;let p=Ai(c);!n.has(p)&&af(p,i)&&(n.add(p),Qv(s,{name:p,kind:"warning",kindModifiers:"",sortText:ju.JavascriptIdentifiers,isFromUncheckedFile:!0,commitCharacters:[]},oL))})}function Kfe(e,t,n){return typeof n=="object"?MS(n)+"n":Is(n)?OE(e,t,n):JSON.stringify(n)}function YZe(e,t,n){return{name:Kfe(e,t,n),kind:"string",kindModifiers:"",sortText:ju.LocationPriority,commitCharacters:[]}}function ZZe(e,t,n,i,s,o,c,p,u,g,d,h,S,T,x,I,P,E,F,O,W,z,$,X){var U,_e;let re,V,ce=jq(n,o),oe,le,de=Yfe(h),ve,H,Se,Je=u.getTypeChecker(),ye=h&&BZe(h),ee=h&&FZe(h)||d;if(h&&OZe(h))re=d?`this${ye?"?.":""}[${Xfe(c,F,g)}]`:`this${ye?"?.":"."}${g}`;else if((ee||ye)&&T){re=ee?d?`[${Xfe(c,F,g)}]`:`[${g}]`:g,(ye||T.questionDotToken)&&(re=`?.${re}`);let nt=lo(T,25,c)||lo(T,29,c);if(!nt)return;let ae=Zi(g,T.name.text)?T.name.end:nt.end;ce=$c(nt.getStart(c),ae)}if(x&&(re===void 0&&(re=g),re=`{${re}}`,typeof x!="boolean"&&(ce=Np(x,c))),h&&WZe(h)&&T){re===void 0&&(re=g);let nt=Al(T.pos,c),ae="";nt&&T5(nt.end,nt.parent,c)&&(ae=";"),ae+=`(await ${T.expression.getText()})`,re=d?`${ae}${re}`:`${ae}${ye?"?.":"."}${re}`;let te=Hn(T.parent,Ab)?T.parent:T.expression;ce=$c(te.getStart(c),T.end)}if($E(h)&&(ve=[f_(h.moduleSpecifier)],I&&({insertText:re,replacementSpan:ce}=oet(g,I,h,P,c,u,F),le=F.includeCompletionsWithSnippetText?!0:void 0)),h?.kind===64&&(H=!0),O===0&&i&&((U=Al(i.pos,c,i))==null?void 0:U.kind)!==28&&(hc(i.parent.parent)||B_(i.parent.parent)||uf(i.parent.parent)||Sh(i.parent)||((_e=vr(i.parent,yl))==null?void 0:_e.getLastToken(c))===i||Fu(i.parent)&&Hs(c,i.getEnd()).line!==Hs(c,o).line)&&(de="ObjectLiteralMemberWithComma/",H=!0),F.includeCompletionsWithClassMemberSnippets&&F.includeCompletionsWithInsertText&&O===3&&tet(e,s,c)){let nt,ae=REe(p,u,E,F,g,e,s,o,i,W);if(ae)({insertText:re,filterText:V,isSnippet:le,importAdder:nt}=ae),(nt?.hasFixes()||ae.eraseRange)&&(H=!0,de="ClassMemberSnippet/");else return}if(h&&CEe(h)&&({insertText:re,isSnippet:le,labelDetails:Se}=h,F.useLabelDetailsInCompletionEntries||(g=g+Se.detail,Se=void 0),de="ObjectLiteralMethodSnippet/",t=ju.SortBelow(t)),z&&!$&&F.includeCompletionsWithSnippetText&&F.jsxAttributeCompletionStyle&&F.jsxAttributeCompletionStyle!=="none"&&!(Ym(s.parent)&&s.parent.initializer)){let nt=F.jsxAttributeCompletionStyle==="braces",ae=Je.getTypeOfSymbolAtLocation(e,s);F.jsxAttributeCompletionStyle==="auto"&&!(ae.flags&528)&&!(ae.flags&1048576&&Bn(ae.types,Ue=>!!(Ue.flags&528)))&&(ae.flags&402653316||ae.flags&1048576&&Fi(ae.types,Ue=>!!(Ue.flags&402686084||Gce(Ue)))?(re=`${RS(g)}=${OE(c,F,"$1")}`,le=!0):nt=!0),nt&&(re=`${RS(g)}={$1}`,le=!0)}if(re!==void 0&&!F.includeCompletionsWithInsertText)return;(aL(h)||$E(h))&&(oe=OEe(h),H=!I);let ge=vr(s,k8);if(ge){let nt=xa(p.getCompilationSettings());if(!af(g,nt))re=Xfe(c,F,g),ge.kind===276&&(pu.setText(c.text),pu.resetTokenState(o),pu.scan()===130&&pu.scan()===80||(re+=" as "+eet(g,nt)));else if(ge.kind===276){let ae=JT(g);ae&&(ae===135||Lz(ae))&&(re=`${g} as ${g}_`)}}let ke=dv.getSymbolKind(Je,e,s),Oe=ke==="warning"||ke==="string"?[]:void 0;return{name:g,kind:ke,kindModifiers:dv.getSymbolModifiers(Je,e),sortText:t,source:de,hasAction:H?!0:void 0,isRecommended:cet(e,S,Je)||void 0,insertText:re,filterText:V,replacementSpan:ce,sourceDisplay:ve,labelDetails:Se,isSnippet:le,isPackageJsonImport:LZe(h)||void 0,isImportStatementCompletion:!!I||void 0,data:oe,commitCharacters:Oe,...X?{symbol:e}:void 0}}function eet(e,t){let n=!1,i="",s;for(let o=0;o<e.length;o+=s!==void 0&&s>=65536?2:1)s=e.codePointAt(o),s!==void 0&&(o===0?Sg(s,t):Qh(s,t))?(n&&(i+="_"),i+=String.fromCodePoint(s),n=!1):n=!0;return n&&(i+="_"),i||"_"}function tet(e,t,n){return dn(t)?!1:!!(e.flags&106500)&&(ni(t)||t.parent&&t.parent.parent&&cl(t.parent)&&t===t.parent.name&&t.parent.getLastToken(n)===t.parent.name&&ni(t.parent.parent)||t.parent&&kI(t)&&ni(t.parent))}function REe(e,t,n,i,s,o,c,p,u,g){let d=vr(c,ni);if(!d)return;let h,S=s,T=s,x=t.getTypeChecker(),I=c.getSourceFile(),P=FH({removeComments:!0,module:n.module,moduleResolution:n.moduleResolution,target:n.target,omitTrailingSemicolon:!1,newLine:PR(py(e,g?.options))}),E=tp.createImportAdder(I,t,i,e),F;if(i.includeCompletionsWithSnippetText){h=!0;let _e=A.createEmptyStatement();F=A.createBlock([_e],!0),oJ(_e,{kind:0,order:0})}else F=A.createBlock([],!0);let O=0,{modifiers:W,range:z,decorators:$}=ret(u,I,p),X=W&64&&d.modifierFlagsCache&64,U=[];if(tp.addNewNodeForMemberSymbol(o,d,I,{program:t,host:e},i,E,_e=>{let re=0;X&&(re|=64),cl(_e)&&x.getMemberOverrideModifierStatus(d,_e,o)===1&&(re|=16),U.length||(O=_e.modifierFlagsCache|re),_e=A.replaceModifiers(_e,O),U.push(_e)},F,tp.PreserveOptionalFlags.Property,!!X),U.length){let _e=o.flags&8192,re=O|16|1;_e?re|=1024:re|=136;let V=W&re;if(W&~re)return;if(O&4&&V&1&&(O&=-5),V!==0&&!(V&1)&&(O&=-2),O|=V,U=U.map(oe=>A.replaceModifiers(oe,O)),$?.length){let oe=U[U.length-1];US(oe)&&(U[U.length-1]=A.replaceDecoratorsAndModifiers(oe,$.concat(fS(oe)||[])))}let ce=131073;g?S=P.printAndFormatSnippetList(ce,A.createNodeArray(U),I,g):S=P.printSnippetList(ce,A.createNodeArray(U),I)}return{insertText:S,filterText:T,isSnippet:h,importAdder:E,eraseRange:z}}function ret(e,t,n){if(!e||Hs(t,n).line>Hs(t,e.getEnd()).line)return{modifiers:0};let i=0,s,o,c={pos:n,end:n};if(hs(e.parent)&&(o=net(e))){e.parent.modifiers&&(i|=Jm(e.parent.modifiers)&98303,s=e.parent.modifiers.filter(Il)||[],c.pos=Math.min(...e.parent.modifiers.map(u=>u.getStart(t))));let p=S2(o);i&p||(i|=p,c.pos=Math.min(c.pos,e.getStart(t))),e.parent.name!==e&&(c.end=e.parent.name.getStart(t))}return{modifiers:i,decorators:s,range:c.pos<c.end?c:void 0}}function net(e){if(la(e))return e.kind;if(Be(e)){let t=VT(e);if(t&&ub(t))return t}}function iet(e,t,n,i,s,o,c,p){let u=c.includeCompletionsWithSnippetText||void 0,g=t,d=n.getSourceFile(),h=set(e,n,d,i,s,c);if(!h)return;let S=FH({removeComments:!0,module:o.module,moduleResolution:o.moduleResolution,target:o.target,omitTrailingSemicolon:!1,newLine:PR(py(s,p?.options))});p?g=S.printAndFormatSnippetList(80,A.createNodeArray([h],!0),d,p):g=S.printSnippetList(80,A.createNodeArray([h],!0),d);let T=jb({removeComments:!0,module:o.module,moduleResolution:o.moduleResolution,target:o.target,omitTrailingSemicolon:!0}),x=A.createMethodSignature(void 0,"",h.questionToken,h.typeParameters,h.parameters,h.type),I={detail:T.printNode(4,x,d)};return{isSnippet:u,insertText:g,labelDetails:I}}function set(e,t,n,i,s,o){let c=e.getDeclarations();if(!(c&&c.length))return;let p=i.getTypeChecker(),u=c[0],g=to(Ss(u),!1),d=p.getWidenedType(p.getTypeOfSymbolAtLocation(e,t)),S=33554432|(Mf(n,o)===0?268435456:0);switch(u.kind){case 172:case 173:case 174:case 175:{let T=d.flags&1048576&&d.types.length<10?p.getUnionType(d.types,2):d;if(T.flags&1048576){let F=Mn(T.types,O=>p.getSignaturesOfType(O,0).length>0);if(F.length===1)T=F[0];else return}if(p.getSignaturesOfType(T,0).length!==1)return;let I=p.typeToTypeNode(T,t,S,void 0,tp.getNoopSymbolTrackerWithResolver({program:i,host:s}));if(!I||!Pg(I))return;let P;if(o.includeCompletionsWithSnippetText){let F=A.createEmptyStatement();P=A.createBlock([F],!0),oJ(F,{kind:0,order:0})}else P=A.createBlock([],!0);let E=I.parameters.map(F=>A.createParameterDeclaration(void 0,F.dotDotDotToken,F.name,void 0,void 0,F.initializer));return A.createMethodDeclaration(void 0,void 0,g,void 0,void 0,E,void 0,P)}default:return}}function FH(e){let t,n=gn.createWriter(Zy(e)),i=jb(e,n),s={...n,write:S=>o(S,()=>n.write(S)),nonEscapingWrite:n.write,writeLiteral:S=>o(S,()=>n.writeLiteral(S)),writeStringLiteral:S=>o(S,()=>n.writeStringLiteral(S)),writeSymbol:(S,T)=>o(S,()=>n.writeSymbol(S,T)),writeParameter:S=>o(S,()=>n.writeParameter(S)),writeComment:S=>o(S,()=>n.writeComment(S)),writeProperty:S=>o(S,()=>n.writeProperty(S))};return{printSnippetList:c,printAndFormatSnippetList:u,printNode:g,printAndFormatNode:h};function o(S,T){let x=RS(S);if(x!==S){let I=n.getTextPos();T();let P=n.getTextPos();t=Fr(t||(t=[]),{newText:x,span:{start:I,length:P-I}})}else T()}function c(S,T,x){let I=p(S,T,x);return t?gn.applyChanges(I,t):I}function p(S,T,x){return t=void 0,s.clear(),i.writeList(S,T,x,s),s.getText()}function u(S,T,x,I){let P={text:p(S,T,x),getLineAndCharacterOfPosition(W){return Hs(this,W)}},E=A5(I,x),F=Ma(T,W=>{let z=gn.assignPositionsToNode(W);return vl.formatNodeGivenIndentation(z,P,x.languageVariant,0,0,{...I,options:E})}),O=t?yf(Qi(F,t),(W,z)=>RO(W.span,z.span)):F;return gn.applyChanges(P.text,O)}function g(S,T,x){let I=d(S,T,x);return t?gn.applyChanges(I,t):I}function d(S,T,x){return t=void 0,s.clear(),i.writeNode(S,T,x,s),s.getText()}function h(S,T,x,I){let P={text:d(S,T,x),getLineAndCharacterOfPosition(z){return Hs(this,z)}},E=A5(I,x),F=gn.assignPositionsToNode(T),O=vl.formatNodeGivenIndentation(F,P,x.languageVariant,0,0,{...I,options:E}),W=t?yf(Qi(O,t),(z,$)=>RO(z.span,$.span)):O;return gn.applyChanges(P.text,W)}}function OEe(e){let t=e.fileName?void 0:_d(e.moduleSymbol.name),n=e.isFromPackageJson?!0:void 0;return $E(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:n}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:_d(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function aet(e,t,n){let i=e.exportName==="default",s=!!e.isPackageJsonImport;return IEe(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:i,isFromPackageJson:s}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:i,isFromPackageJson:s}}function oet(e,t,n,i,s,o,c){let p=t.replacementSpan,u=RS(OE(s,c,n.moduleSpecifier)),g=n.isDefaultExport?1:n.exportName==="export="?2:0,d=c.includeCompletionsWithSnippetText?"$1":"",h=tp.getImportKind(s,g,o,!0),S=t.couldBeTypeOnlyImportSpecifier,T=t.isTopLevelTypeOnly?` ${ta(156)} `:" ",x=S?`${ta(156)} `:"",I=i?";":"";switch(h){case 3:return{replacementSpan:p,insertText:`import${T}${RS(e)}${d} = require(${u})${I}`};case 1:return{replacementSpan:p,insertText:`import${T}${RS(e)}${d} from ${u}${I}`};case 2:return{replacementSpan:p,insertText:`import${T}* as ${RS(e)} from ${u}${I}`};case 0:return{replacementSpan:p,insertText:`import${T}{ ${x}${RS(e)}${d} } from ${u}${I}`}}}function Xfe(e,t,n){return/^\d+$/.test(n)?n:OE(e,t,n)}function cet(e,t,n){return e===t||!!(e.flags&1048576)&&n.getExportSymbolOfSymbol(e)===t}function Yfe(e){if(aL(e))return _d(e.moduleSymbol.name);if($E(e))return e.moduleSpecifier;if(e?.kind===1)return"ThisProperty/";if(e?.kind===64)return"TypeOnlyAlias/"}function Zfe(e,t,n,i,s,o,c,p,u,g,d,h,S,T,x,I,P,E,F,O,W,z,$,X,U,_e=!1){let re=bo(),V=Eet(i,s),ce=CR(c),oe=u.getTypeChecker(),le=new Map;for(let H=0;H<e.length;H++){let Se=e[H],Je=z?.[H],ye=LH(Se,g,Je,h,!!E);if(!ye||le.get(ye.name)&&(!Je||!CEe(Je))||h===1&&$&&!de(Se,$)||!I&&dn(c)&&ve(Se))continue;let{name:ee,needsConvertPropertyAccess:ge}=ye,ke=$?.[sa(Se)]??ju.LocationPriority,Oe=Met(Se,oe)?ju.Deprecated(ke):ke,nt=ZZe(Se,Oe,n,i,s,o,c,p,u,ee,ge,Je,W,P,F,O,ce,T,S,h,x,X,U,_e);if(!nt)continue;let ae=(!Je||xEe(Je))&&!(Se.parent===void 0&&!_t(Se.declarations,Ue=>Ue.getSourceFile()===s.getSourceFile()));le.set(ee,ae),Qv(t,nt,oL,void 0,!0)}return d("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(bo()-re)),{has:H=>le.has(H),add:H=>le.set(H,!0)};function de(H,Se){var Je;let ye=H.flags;if(s.parent&&Qo(s.parent))return!0;if(V&&Hn(V,li)&&(H.valueDeclaration===V||Ls(V.name)&&V.name.elements.some(ke=>ke===H.valueDeclaration)))return!1;let ee=H.valueDeclaration??((Je=H.declarations)==null?void 0:Je[0]);if(V&&ee){if(Gi(V)&&Gi(ee)){let ke=V.parent.parameters;if(ee.pos>=V.pos&&ee.pos<ke.end)return!1}else if(Ho(V)&&Ho(ee)){if(V===ee&&i?.kind===96)return!1;if(Net(i)&&!gk(V.parent)){let ke=V.parent.typeParameters;if(ke&&ee.pos>=V.pos&&ee.pos<ke.end)return!1}}}let ge=vu(H,oe);return c.externalModuleIndicator&&!T.allowUmdGlobalAccess&&Se[sa(H)]===ju.GlobalsOrKeywords&&(Se[sa(ge)]===ju.AutoImportSuggestions||Se[sa(ge)]===ju.LocationPriority)?!1:(ye|=rI(ge),Xj(s)?!!(ye&1920):I?i_e(H,oe):!!(ye&111551))}function ve(H){var Se;let Je=rI(vu(H,oe));return!(Je&111551)&&(!dn((Se=H.declarations)==null?void 0:Se[0])||!!(Je&788968))}}function uet(e){let t=pet(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t,defaultCommitCharacters:Bk(!1)}}function pet(e){let t=[],n=new Map,i=e;for(;i&&!Fs(i);){if(Eb(i)){let s=i.label.text;n.has(s)||(n.set(s,!0),t.push({name:s,kindModifiers:"",kind:"label",sortText:ju.LocationPriority}))}i=i.parent}return t}function FEe(e,t,n,i,s,o,c){if(s.source==="SwitchCases/")return{type:"cases"};if(s.data){let O=WEe(s.name,s.data,e,o);if(O){let{contextToken:W,previousToken:z}=jH(i,n);return{type:"symbol",symbol:O.symbol,location:Kp(n,i),previousToken:z,contextToken:W,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:O.origin}}}let p=e.getCompilerOptions(),u=LEe(e,t,n,p,i,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},s,o,void 0);if(!u)return{type:"none"};if(u.kind!==0)return{type:"request",request:u};let{symbols:g,literals:d,location:h,completionKind:S,symbolToOriginInfoMap:T,contextToken:x,previousToken:I,isJsxInitializer:P,isTypeOnlyLocation:E}=u,F=Bn(d,O=>Kfe(n,c,O)===s.name);return F!==void 0?{type:"literal",literal:F}:fo(g,(O,W)=>{let z=T[W],$=LH(O,xa(p),z,S,u.isJsxIdentifierExpected);return $&&$.name===s.name&&(s.source==="ClassMemberSnippet/"&&O.flags&106500||s.source==="ObjectLiteralMethodSnippet/"&&O.flags&8196||Yfe(z)===s.source||s.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:O,location:h,origin:z,contextToken:x,previousToken:I,isJsxInitializer:P,isTypeOnlyLocation:E}:void 0})||{type:"none"}}function fet(e,t,n,i,s,o,c,p,u){let g=e.getTypeChecker(),d=e.getCompilerOptions(),{name:h,source:S,data:T}=s,{previousToken:x,contextToken:I}=jH(i,n);if(cC(n,i,x))return UH.getStringLiteralCompletionDetails(h,n,i,x,e,o,u,p);let P=FEe(e,t,n,i,s,o,p);switch(P.type){case"request":{let{request:E}=P;switch(E.kind){case 1:return _1.getJSDocTagNameCompletionDetails(h);case 2:return _1.getJSDocTagCompletionDetails(h);case 3:return _1.getJSDocParameterNameCompletionDetails(h);case 4:return _t(E.keywordCompletions,F=>F.name===h)?e_e(h,"keyword",5):void 0;default:return w.assertNever(E)}}case"symbol":{let{symbol:E,location:F,contextToken:O,origin:W,previousToken:z}=P,{codeActions:$,sourceDisplay:X}=_et(h,F,O,W,E,e,o,d,n,i,z,c,p,T,S,u),U=Hfe(W)?W.symbolName:E.name;return t_e(E,U,g,n,F,u,$,X)}case"literal":{let{literal:E}=P;return e_e(Kfe(n,p,E),"string",typeof E=="string"?8:7)}case"cases":{let E=MEe(I.parent,n,p,e.getCompilerOptions(),o,e,void 0);if(E?.importAdder.hasFixes()){let{entry:F,importAdder:O}=E,W=gn.ChangeTracker.with({host:o,formatContext:c,preferences:p},O.writeFixes);return{name:F.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:W,description:ZS([_.Includes_imports_of_types_referenced_by_0,h])}]}}return{name:h,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return BEe().some(E=>E.name===h)?e_e(h,"keyword",5):void 0;default:w.assertNever(P)}}function e_e(e,t,n){return cL(e,"",t,[pf(e,n)])}function t_e(e,t,n,i,s,o,c,p){let{displayParts:u,documentation:g,symbolKind:d,tags:h}=n.runWithCancellationToken(o,S=>dv.getSymbolDisplayPartsDocumentationAndSymbolKind(S,e,i,s,s,7));return cL(t,dv.getSymbolModifiers(n,e),d,u,g,h,c,p)}function cL(e,t,n,i,s,o,c,p){return{name:e,kindModifiers:t,kind:n,displayParts:i,documentation:s,tags:o,codeActions:c,source:p,sourceDisplay:p}}function _et(e,t,n,i,s,o,c,p,u,g,d,h,S,T,x,I){if(T?.moduleSpecifier&&d&&HEe(n||d,u).replacementSpan)return{codeActions:void 0,sourceDisplay:[f_(T.moduleSpecifier)]};if(x==="ClassMemberSnippet/"){let{importAdder:$,eraseRange:X}=REe(c,o,p,S,e,s,t,g,n,h);if($?.hasFixes()||X)return{sourceDisplay:void 0,codeActions:[{changes:gn.ChangeTracker.with({host:c,formatContext:h,preferences:S},_e=>{$&&$.writeFixes(_e),X&&_e.deleteRange(u,X)}),description:$?.hasFixes()?ZS([_.Includes_imports_of_types_referenced_by_0,e]):ZS([_.Update_modifiers_of_0,e])}]}}if(xEe(i)){let $=tp.getPromoteTypeOnlyCompletionAction(u,i.declaration.name,o,c,h,S);return w.assertIsDefined($,"Expected to have a code action for promoting type-only alias"),{codeActions:[$],sourceDisplay:void 0}}if(x==="ObjectLiteralMemberWithComma/"&&n){let $=gn.ChangeTracker.with({host:c,formatContext:h,preferences:S},X=>X.insertText(u,n.end,","));if($)return{sourceDisplay:void 0,codeActions:[{changes:$,description:ZS([_.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(aL(i)||$E(i)))return{codeActions:void 0,sourceDisplay:void 0};let P=i.isFromPackageJson?c.getPackageJsonAutoImportProvider().getTypeChecker():o.getTypeChecker(),{moduleSymbol:E}=i,F=P.getMergedSymbol(vu(s.exportSymbol||s,P)),O=n?.kind===30&&Qu(n.parent),{moduleSpecifier:W,codeAction:z}=tp.getImportCompletionAction(F,E,T?.exportMapKey,u,e,O,c,o,h,d&&Be(d)?d.getStart(u):g,S,I);return w.assert(!T?.moduleSpecifier||W===T.moduleSpecifier),{sourceDisplay:[f_(W)],codeActions:[z]}}function det(e,t,n,i,s,o,c){let p=FEe(e,t,n,i,s,o,c);return p.type==="symbol"?p.symbol:void 0}var jEe=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(jEe||{});function met(e,t,n){return fo(t&&(t.isUnion()?t.types:[t]),i=>{let s=i&&i.symbol;return s&&s.flags&424&&!Hre(s)?r_e(s,e,n):void 0})}function get(e,t,n,i){let{parent:s}=e;switch(e.kind){case 80:return b5(e,i);case 64:switch(s.kind){case 261:return i.getContextualType(s.initializer);case 227:return i.getTypeAtLocation(s.left);case 292:return i.getContextualTypeForJsxAttribute(s);default:return}case 105:return i.getContextualType(s);case 84:let o=Hn(s,vI);return o?s$(o,i):void 0;case 19:return yI(s)&&!Xm(s.parent)&&!Q0(s.parent)?i.getContextualTypeForJsxAttribute(s.parent):void 0;default:let c=ZR.getArgumentInfoForCompletions(e,t,n,i);return c?i.getContextualTypeForArgumentAtIndex(c.invocation,c.argumentIndex):S5(e.kind)&&vn(s)&&S5(s.operatorToken.kind)?i.getTypeAtLocation(s.left):i.getContextualType(e,4)||i.getContextualType(e)}}function r_e(e,t,n){let i=n.getAccessibleSymbolChain(e,t,-1,!1);return i?Ra(i):e.parent&&(het(e.parent)?e:r_e(e.parent,t,n))}function het(e){var t;return!!((t=e.declarations)!=null&&t.some(n=>n.kind===308))}function LEe(e,t,n,i,s,o,c,p,u,g){let d=e.getTypeChecker(),h=NEe(n,i),S=bo(),T=Ii(n,s);t("getCompletionData: Get current token: "+(bo()-S)),S=bo();let x=lv(n,s,T);t("getCompletionData: Is inside comment: "+(bo()-S));let I=!1,P=!1,E=!1;if(x){if(Wce(n,s)){if(n.text.charCodeAt(s-1)===64)return{kind:1};{let ut=bd(s,n);if(!/[^*|\s(/)]/.test(n.text.substring(ut,s)))return{kind:2}}}let Ce=Tet(T,s);if(Ce){if(Ce.tagName.pos<=s&&s<=Ce.tagName.end)return{kind:1};if(Zm(Ce))P=!0;else{let ut=fr(Ce);if(ut&&(T=Ii(n,s),(!T||!Ig(T)&&(T.parent.kind!==349||T.parent.name!==T))&&(I=jt(ut))),!I&&c_(Ce)&&(xc(Ce.name)||Ce.name.pos<=s&&s<=Ce.name.end))return{kind:3,tag:Ce}}}if(!I&&!P){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}S=bo();let F=!I&&!P&&Cp(n),O=jH(s,n),W=O.previousToken,z=O.contextToken;t("getCompletionData: Get previous token: "+(bo()-S));let $=T,X,U=!1,_e=!1,re=!1,V=!1,ce=!1,oe=!1,le,de=Kp(n,s),ve=0,H=!1,Se=0,Je;if(z){let Ce=HEe(z,n);if(Ce.keywordCompletion){if(Ce.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[VZe(Ce.keywordCompletion)],isNewIdentifierLocation:Ce.isNewIdentifierLocation};ve=$Ze(Ce.keywordCompletion)}if(Ce.replacementSpan&&o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText&&(Se|=2,le=Ce,H=Ce.isNewIdentifierLocation),!Ce.replacementSpan&&js(z))return t("Returning an empty list because completion was requested in an invalid position."),ve?AEe(ve,F,wr().isNewIdentifierLocation):void 0;let ut=z.parent;if(z.kind===25||z.kind===29)switch(U=z.kind===25,_e=z.kind===29,ut.kind){case 212:X=ut,$=X.expression;let Qt=nI(X);if(xc(Qt)||(Ws($)||Fs($))&&$.end===z.pos&&$.getChildCount(n)&&ka($.getChildren(n)).kind!==22)return;break;case 167:$=ut.left;break;case 268:$=ut.name;break;case 206:$=ut;break;case 237:$=ut.getFirstToken(n),w.assert($.kind===102||$.kind===105);break;default:return}else if(!le){if(ut&&ut.kind===212&&(z=ut,ut=ut.parent),T.parent===de)switch(T.kind){case 32:(T.parent.kind===285||T.parent.kind===287)&&(de=T);break;case 44:T.parent.kind===286&&(de=T);break}switch(ut.kind){case 288:z.kind===44&&(V=!0,de=z);break;case 227:if(!$Ee(ut))break;case 286:case 285:case 287:oe=!0,z.kind===30&&(re=!0,de=z);break;case 295:case 294:(W.kind===20||W.kind===80&&W.parent.kind===292)&&(oe=!0);break;case 292:if(ut.initializer===W&&W.end<s){oe=!0;break}switch(W.kind){case 64:ce=!0;break;case 80:oe=!0,ut!==W.parent&&!ut.initializer&&lo(ut,64,n)&&(ce=W)}break}}}let ye=bo(),ee=5,ge=!1,ke=[],Oe,nt=[],ae=[],Ue=new Set,te=_i(),Ne=Mm(Ce=>o1(Ce?p.getPackageJsonAutoImportProvider():e,p));if(U||_e)Mr();else if(re)ke=d.getJsxIntrinsicTagNamesAt(de),w.assertEachIsDefined(ke,"getJsxIntrinsicTagNames() should all be defined"),bi(),ee=1,ve=0;else if(V){let Ce=z.parent.parent.openingElement.tagName,ut=d.getSymbolAtLocation(Ce);ut&&(ke=[ut]),ee=1,ve=0}else if(!bi())return ve?AEe(ve,F,H):void 0;t("getCompletionData: Semantic work: "+(bo()-ye));let Ie=W&&get(W,s,n,d),Qe=!Hn(W,Ha)&&!oe?Ji(Ie&&(Ie.isUnion()?Ie.types:[Ie]),Ce=>Ce.isLiteral()&&!(Ce.flags&1024)?Ce.value:void 0):[],St=W&&Ie&&met(W,Ie,d);return{kind:0,symbols:ke,completionKind:ee,isInSnippetScope:E,propertyAccessToConvert:X,isNewIdentifierLocation:H,location:de,keywordFilters:ve,literals:Qe,symbolToOriginInfoMap:nt,recommendedCompletion:St,previousToken:W,contextToken:z,isJsxInitializer:ce,insideJsDocTagTypeExpression:I,symbolToSortTextMap:ae,isTypeOnlyLocation:te,isJsxIdentifierExpected:oe,isRightOfOpenTag:re,isRightOfDotOrQuestionDot:U||_e,importStatementCompletion:le,hasUnresolvedAutoImports:ge,flags:Se,defaultCommitCharacters:Je};function Bt(Ce){switch(Ce.kind){case 342:case 349:case 343:case 345:case 347:case 350:case 351:return!0;case 346:return!!Ce.constraint;default:return!1}}function fr(Ce){if(Bt(Ce)){let ut=hd(Ce)?Ce.constraint:Ce.typeExpression;return ut&&ut.kind===310?ut:void 0}if(H2(Ce)||v7(Ce))return Ce.class}function Mr(){ee=2;let Ce=Yh($),ut=Ce&&!$.isTypeOf||Wm($.parent)||mR(z,n,d),Qt=Xj($);if(xp($)||Ce||Ln($)){let Zr=el($.parent);Zr&&(H=!0,Je=[]);let jr=d.getSymbolAtLocation($);if(jr&&(jr=vu(jr,d),jr.flags&1920)){let Jr=d.getExportsOfModule(jr);w.assertEachIsDefined(Jr,"getExportsOfModule() should all be defined");let ct=Ht=>d.isValidPropertyAccess(Ce?$:$.parent,Ht.name),It=Ht=>i_e(Ht,d),Ot=Zr?Ht=>{var hr;return!!(Ht.flags&1920)&&!((hr=Ht.declarations)!=null&&hr.every(ur=>ur.parent===$.parent))}:Qt?(Ht=>It(Ht)||ct(Ht)):ut||I?It:ct;for(let Ht of Jr)Ot(Ht)&&ke.push(Ht);if(!ut&&!I&&jr.declarations&&jr.declarations.some(Ht=>Ht.kind!==308&&Ht.kind!==268&&Ht.kind!==267)){let Ht=d.getTypeOfSymbolAtLocation(jr,$).getNonOptionalType(),hr=!1;if(Ht.isNullableType()){let ur=U&&!_e&&o.includeAutomaticOptionalChainCompletions!==!1;(ur||_e)&&(Ht=Ht.getNonNullableType(),ur&&(hr=!0))}ft(Ht,!!($.flags&65536),hr)}return}}if(!ut||v2($)){d.tryGetThisTypeAt($,!1);let Zr=d.getTypeAtLocation($).getNonOptionalType();if(ut)ft(Zr.getNonNullableType(),!1,!1);else{let jr=!1;if(Zr.isNullableType()){let Jr=U&&!_e&&o.includeAutomaticOptionalChainCompletions!==!1;(Jr||_e)&&(Zr=Zr.getNonNullableType(),Jr&&(jr=!0))}ft(Zr,!!($.flags&65536),jr)}}}function ft(Ce,ut,Qt){Ce.getStringIndexType()&&(H=!0,Je=[]),_e&&_t(Ce.getCallSignatures())&&(H=!0,Je??(Je=ng));let Zr=$.kind===206?$:$.parent;if(h)for(let jr of Ce.getApparentProperties())d.isValidPropertyAccessForCompletions(Zr,Ce,jr)&&qt(jr,!1,Qt);else ke.push(...Mn(GH(Ce,d),jr=>d.isValidPropertyAccessForCompletions(Zr,Ce,jr)));if(ut&&o.includeCompletionsWithInsertText){let jr=d.getPromisedTypeOfPromise(Ce);if(jr)for(let Jr of jr.getApparentProperties())d.isValidPropertyAccessForCompletions(Zr,jr,Jr)&&qt(Jr,!0,Qt)}}function qt(Ce,ut,Qt){var Zr;let jr=fo(Ce.declarations,Ot=>Hn(Ss(Ot),na));if(jr){let Ot=Hr(jr.expression),Ht=Ot&&d.getSymbolAtLocation(Ot),hr=Ht&&r_e(Ht,z,d),ur=hr&&sa(hr);if(ur&&dd(Ue,ur)){let Nt=ke.length;ke.push(hr),ae[sa(hr)]=ju.GlobalsOrKeywords;let mr=hr.parent;if(!mr||!a2(mr)||d.tryGetMemberInModuleExportsAndProperties(hr.name,mr)!==hr)nt[Nt]={kind:It(2)};else{let Tr=Ul(_d(mr.name))?(Zr=JM(mr))==null?void 0:Zr.fileName:void 0,{moduleSpecifier:Cr}=(Oe||(Oe=tp.createImportSpecifierResolver(n,e,p,o))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Tr,isFromPackageJson:!1,moduleSymbol:mr,symbol:hr,targetFlags:vu(hr,d).flags}],s,B0(de))||{};if(Cr){let rr={kind:It(6),moduleSymbol:mr,isDefaultExport:!1,symbolName:hr.name,exportName:hr.name,fileName:Tr,moduleSpecifier:Cr};nt[Nt]=rr}}}else if(o.includeCompletionsWithInsertText){if(ur&&Ue.has(ur))return;ct(Ce),Jr(Ce),ke.push(Ce)}}else ct(Ce),Jr(Ce),ke.push(Ce);function Jr(Ot){Det(Ot)&&(ae[sa(Ot)]=ju.LocalDeclarationPriority)}function ct(Ot){o.includeCompletionsWithInsertText&&(ut&&dd(Ue,sa(Ot))?nt[ke.length]={kind:It(8)}:Qt&&(nt[ke.length]={kind:16}))}function It(Ot){return Qt?Ot|16:Ot}}function Hr(Ce){return Be(Ce)?Ce:Ln(Ce)?Hr(Ce.expression):void 0}function bi(){return(tt()||Mt()||Un()||se()||pt()||Z()||us()||Ee()||At()||(rs(),1))===1}function us(){return at(z)?(ee=5,H=!0,ve=4,1):0}function At(){let Ce=Le(z),ut=Ce&&d.getContextualType(Ce.attributes);if(!ut)return 0;let Qt=Ce&&d.getContextualType(Ce.attributes,4);return ke=Qi(ke,vt(zH(ut,Qt,Ce.attributes,d),Ce.attributes.properties)),fe(),ee=3,H=!1,1}function Un(){return le?(H=!0,ar(),1):0}function rs(){ve=Pt(z)?5:1,ee=1,{isNewIdentifierLocation:H,defaultCommitCharacters:Je}=wr(),W!==z&&w.assert(!!W,"Expected 'contextToken' to be defined when different from 'previousToken'.");let Ce=W!==z?W.getStart():s,ut=Mi(z,Ce,n)||n;E=Sn(ut);let Qt=(te?0:111551)|788968|1920|2097152,Zr=W&&!B0(W);ke=Qi(ke,d.getSymbolsInScope(ut,Qt)),w.assertEachIsDefined(ke,"getSymbolsInScope() should all be defined");for(let jr=0;jr<ke.length;jr++){let Jr=ke[jr];if(!d.isArgumentsSymbol(Jr)&&!_t(Jr.declarations,ct=>ct.getSourceFile()===n)&&(ae[sa(Jr)]=ju.GlobalsOrKeywords),Zr&&!(Jr.flags&111551)){let ct=Jr.declarations&&Bn(Jr.declarations,Ew);if(ct){let It={kind:64,declaration:ct};nt[jr]=It}}}if(o.includeCompletionsWithInsertText&&ut.kind!==308){let jr=d.tryGetThisTypeAt(ut,!1,ni(ut.parent)?ut:void 0);if(jr&&!Iet(jr,n,d))for(let Jr of GH(jr,d))nt[ke.length]={kind:1},ke.push(Jr),ae[sa(Jr)]=ju.SuggestedClassMembers}ar(),te&&(ve=z&&gS(z.parent)?6:7)}function zn(){var Ce;return le?!0:o.includeCompletionsForModuleExports?n.externalModuleIndicator||n.commonJsModuleIndicator||Gq(e.getCompilerOptions())?!0:((Ce=e.getSymlinkCache)==null?void 0:Ce.call(e).hasAnySymlinks())||!!e.getCompilerOptions().paths||Vce(e):!1}function Sn(Ce){switch(Ce.kind){case 308:case 229:case 295:case 242:return!0;default:return Ei(Ce)}}function _i(){return I||P||!!le&&$y(de.parent)||!qe(z)&&(mR(z,n,d)||Wm(de)||bt(z))}function qe(Ce){return Ce&&(Ce.kind===114&&(Ce.parent.kind===187||dI(Ce.parent))||Ce.kind===131&&Ce.parent.kind===183)}function bt(Ce){if(Ce){let ut=Ce.parent.kind;switch(Ce.kind){case 59:return ut===173||ut===172||ut===170||ut===261||r2(ut);case 64:return ut===266||ut===169;case 130:return ut===235;case 30:return ut===184||ut===217;case 96:return ut===169;case 152:return ut===239}}return!1}function ar(){var Ce,ut;if(!zn()||(w.assert(!c?.data,"Should not run 'collectAutoImports' when faster path is available via `data`"),c&&!c.source))return;Se|=1;let Zr=W===z&&le?"":W&&Be(W)?W.text.toLowerCase():"",jr=(Ce=p.getModuleSpecifierCache)==null?void 0:Ce.call(p),Jr=AR(n,p,e,o,g),ct=(ut=p.getPackageJsonAutoImportProvider)==null?void 0:ut.call(p),It=c?void 0:ZI(n,o,p);wEe("collectAutoImports",p,Oe||(Oe=tp.createImportSpecifierResolver(n,e,p,o)),e,s,o,!!le,B0(de),Ht=>{Jr.search(n.path,re,(hr,ur)=>{if(!af(hr,xa(p.getCompilationSettings()))||!c&&y2(hr)||!te&&!le&&!(ur&111551)||te&&!(ur&790504))return!1;let Nt=hr.charCodeAt(0);return re&&(Nt<65||Nt>90)?!1:c?!0:ZEe(hr,Zr)},(hr,ur,Nt,mr)=>{if(c&&!_t(hr,qs=>c.source===_d(qs.moduleSymbol.name))||(hr=Mn(hr,Ot),!hr.length))return;let Tr=Ht.tryResolve(hr,Nt)||{};if(Tr==="failed")return;let Cr=hr[0],rr;Tr!=="skipped"&&({exportInfo:Cr=hr[0],moduleSpecifier:rr}=Tr);let di=Cr.exportKind===1,Vs=di&&dA(w.checkDefined(Cr.symbol))||w.checkDefined(Cr.symbol);tn(Vs,{kind:rr?32:4,moduleSpecifier:rr,symbolName:ur,exportMapKey:mr,exportName:Cr.exportKind===2?"export=":w.checkDefined(Cr.symbol).name,fileName:Cr.moduleFileName,isDefaultExport:di,moduleSymbol:Cr.moduleSymbol,isFromPackageJson:Cr.isFromPackageJson})}),ge=Ht.skippedAny(),Se|=Ht.resolvedAny()?8:0,Se|=Ht.resolvedBeyondLimit()?16:0});function Ot(Ht){return y$(Ht.isFromPackageJson?ct:e,n,Hn(Ht.moduleSymbol.valueDeclaration,Li),Ht.moduleSymbol,o,It,Ne(Ht.isFromPackageJson),jr)}}function tn(Ce,ut){let Qt=sa(Ce);ae[Qt]!==ju.GlobalsOrKeywords&&(nt[ke.length]=ut,ae[Qt]=le?ju.LocationPriority:ju.AutoImportSuggestions,ke.push(Ce))}function Xn(Ce,ut){dn(de)||Ce.forEach(Qt=>{if(!ei(Qt))return;let Zr=LH(Qt,xa(i),void 0,0,!1);if(!Zr)return;let{name:jr}=Zr,Jr=iet(Qt,jr,ut,e,p,i,o,u);if(!Jr)return;let ct={kind:128,...Jr};Se|=32,nt[ke.length]=ct,ke.push(Qt)})}function ei(Ce){return!!(Ce.flags&8196)}function Mi(Ce,ut,Qt){let Zr=Ce;for(;Zr&&!Iq(Zr,ut,Qt);)Zr=Zr.parent;return Zr}function js(Ce){let ut=bo(),Qt=Ds(Ce)||Tt(Ce)||Gt(Ce)||oa(Ce)||pI(Ce);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(bo()-ut)),Qt}function oa(Ce){if(Ce.kind===12)return!0;if(Ce.kind===32&&Ce.parent){if(de===Ce.parent&&(de.kind===287||de.kind===286))return!1;if(Ce.parent.kind===287)return de.parent.kind!==287;if(Ce.parent.kind===288||Ce.parent.kind===286)return!!Ce.parent.parent&&Ce.parent.parent.kind===285}return!1}function wr(){if(z){let Ce=z.parent.kind,ut=BH(z);switch(ut){case 28:switch(Ce){case 214:case 215:{let Qt=z.parent.expression;return Hs(n,Qt.end).line!==Hs(n,s).line?{defaultCommitCharacters:MH,isNewIdentifierLocation:!0}:{defaultCommitCharacters:ng,isNewIdentifierLocation:!0}}case 227:return{defaultCommitCharacters:MH,isNewIdentifierLocation:!0};case 177:case 185:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 210:return{defaultCommitCharacters:ng,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:ng,isNewIdentifierLocation:!1}}case 21:switch(Ce){case 214:case 215:{let Qt=z.parent.expression;return Hs(n,Qt.end).line!==Hs(n,s).line?{defaultCommitCharacters:MH,isNewIdentifierLocation:!0}:{defaultCommitCharacters:ng,isNewIdentifierLocation:!0}}case 218:return{defaultCommitCharacters:MH,isNewIdentifierLocation:!0};case 177:case 197:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:ng,isNewIdentifierLocation:!1}}case 23:switch(Ce){case 210:case 182:case 190:case 168:return{defaultCommitCharacters:ng,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:ng,isNewIdentifierLocation:!1}}case 144:case 145:case 102:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 25:return Ce===268?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:ng,isNewIdentifierLocation:!1};case 19:switch(Ce){case 264:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:ng,isNewIdentifierLocation:!1}}case 64:switch(Ce){case 261:case 227:return{defaultCommitCharacters:ng,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:ng,isNewIdentifierLocation:!1}}case 16:return{defaultCommitCharacters:ng,isNewIdentifierLocation:Ce===229};case 17:return{defaultCommitCharacters:ng,isNewIdentifierLocation:Ce===240};case 134:return Ce===175||Ce===305?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:ng,isNewIdentifierLocation:!1};case 42:return Ce===175?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:ng,isNewIdentifierLocation:!1}}if(lL(ut))return{defaultCommitCharacters:[],isNewIdentifierLocation:!0}}return{defaultCommitCharacters:ng,isNewIdentifierLocation:!1}}function Ds(Ce){return(lJ(Ce)||GB(Ce))&&(_R(Ce,s)||s===Ce.end&&(!!Ce.isUnterminated||lJ(Ce)))}function tt(){let Ce=Cet(z);if(!Ce)return 0;let Qt=(J2(Ce.parent)?Ce.parent:void 0)||Ce,Zr=qEe(Qt,d);if(!Zr)return 0;let jr=d.getTypeFromTypeNode(Qt),Jr=GH(Zr,d),ct=GH(jr,d),It=new Set;return ct.forEach(Ot=>It.add(Ot.escapedName)),ke=Qi(ke,Mn(Jr,Ot=>!It.has(Ot.escapedName))),ee=0,H=!0,1}function Mt(){if(z?.kind===26)return 0;let Ce=ke.length,ut=yet(z,s,n);if(!ut)return 0;ee=0;let Qt,Zr;if(ut.kind===211){let jr=Pet(ut,d);if(jr===void 0)return ut.flags&67108864?2:0;let Jr=d.getContextualType(ut,4),ct=(Jr||jr).getStringIndexType(),It=(Jr||jr).getNumberIndexType();if(H=!!ct||!!It,Qt=zH(jr,Jr,ut,d),Zr=ut.properties,Qt.length===0&&!It)return 0}else{w.assert(ut.kind===207),H=!1;let jr=zm(ut.parent);if(!VP(jr))return w.fail("Root declaration is not variable-like.");let Jr=Hy(jr)||!!ml(jr)||jr.parent.parent.kind===251;if(!Jr&&jr.kind===170&&(ht(jr.parent)?Jr=!!d.getContextualType(jr.parent):(jr.parent.kind===175||jr.parent.kind===179)&&(Jr=ht(jr.parent.parent)&&!!d.getContextualType(jr.parent.parent))),Jr){let ct=d.getTypeAtLocation(ut);if(!ct)return 2;Qt=d.getPropertiesOfType(ct).filter(It=>d.isPropertyAccessible(ut,!1,!1,ct,It)),Zr=ut.elements}}if(Qt&&Qt.length>0){let jr=Ae(Qt,w.checkDefined(Zr));ke=Qi(ke,jr),fe(),ut.kind===211&&o.includeCompletionsWithObjectLiteralMethodSnippets&&o.includeCompletionsWithInsertText&&(je(Ce),Xn(jr,ut))}return 1}function se(){if(!z)return 0;let Ce=z.kind===19||z.kind===28?Hn(z.parent,k8):f5(z)?Hn(z.parent.parent,k8):void 0;if(!Ce)return 0;f5(z)||(ve=8);let{moduleSpecifier:ut}=Ce.kind===276?Ce.parent.parent:Ce.parent;if(!ut)return H=!0,Ce.kind===276?2:0;let Qt=d.getSymbolAtLocation(ut);if(!Qt)return H=!0,2;ee=3,H=!1;let Zr=d.getExportsAndPropertiesOfModule(Qt),jr=new Set(Ce.elements.filter(ct=>!jt(ct)).map(ct=>yS(ct.propertyName||ct.name))),Jr=Zr.filter(ct=>ct.escapedName!=="default"&&!jr.has(ct.escapedName));return ke=Qi(ke,Jr),Jr.length||(ve=0),1}function pt(){if(z===void 0)return 0;let Ce=z.kind===19||z.kind===28?Hn(z.parent,Tk):z.kind===59?Hn(z.parent.parent,Tk):void 0;if(Ce===void 0)return 0;let ut=new Set(Ce.elements.map(H8));return ke=Mn(d.getTypeAtLocation(Ce).getApparentProperties(),Qt=>!ut.has(Qt.escapedName)),1}function Z(){var Ce;let ut=z&&(z.kind===19||z.kind===28)?Hn(z.parent,G_):void 0;if(!ut)return 0;let Qt=vr(ut,vf(Li,el));return ee=5,H=!1,(Ce=Qt.locals)==null||Ce.forEach((Zr,jr)=>{var Jr,ct;ke.push(Zr),(ct=(Jr=Qt.symbol)==null?void 0:Jr.exports)!=null&&ct.has(jr)&&(ae[sa(Zr)]=ju.OptionalMember)}),1}function Ee(){let Ce=xet(n,z,de,s);if(!Ce)return 0;if(ee=3,H=!0,ve=z.kind===42?0:ni(Ce)?2:3,!ni(Ce))return 1;let ut=z.kind===27?z.parent.parent:z.parent,Qt=cl(ut)?Mu(ut):0;if(z.kind===80&&!jt(z))switch(z.getText()){case"private":Qt=Qt|2;break;case"static":Qt=Qt|256;break;case"override":Qt=Qt|16;break}if(zc(ut)&&(Qt|=256),!(Qt&2)){let Zr=ni(Ce)&&Qt&16?Qx(im(Ce)):nA(Ce),jr=Ma(Zr,Jr=>{let ct=d.getTypeAtLocation(Jr);return Qt&256?ct?.symbol&&d.getPropertiesOfType(d.getTypeOfSymbolAtLocation(ct.symbol,Ce)):ct&&d.getPropertiesOfType(ct)});ke=Qi(ke,q(jr,Ce.members,Qt)),or(ke,(Jr,ct)=>{let It=Jr?.valueDeclaration;if(It&&cl(It)&&It.name&&na(It.name)){let Ot={kind:512,symbolName:d.symbolToString(Jr)};nt[ct]=Ot}})}return 1}function et(Ce){return!!Ce.parent&&Gi(Ce.parent)&&yc(Ce.parent.parent)&&(jP(Ce.kind)||Ig(Ce))}function at(Ce){if(Ce){let ut=Ce.parent;switch(Ce.kind){case 21:case 28:return yc(Ce.parent)?Ce.parent:void 0;default:if(et(Ce))return ut.parent}}}function Pt(Ce){if(Ce){let ut,Qt=vr(Ce.parent,Zr=>ni(Zr)?"quit":yo(Zr)&&ut===Zr.body?!0:(ut=Zr,!1));return Qt&&Qt}}function Le(Ce){if(Ce){let ut=Ce.parent;switch(Ce.kind){case 32:case 31:case 44:case 80:case 212:case 293:case 292:case 294:if(ut&&(ut.kind===286||ut.kind===287)){if(Ce.kind===32){let Qt=Al(Ce.pos,n,void 0);if(!ut.typeArguments||Qt&&Qt.kind===44)break}return ut}else if(ut.kind===292)return ut.parent.parent;break;case 11:if(ut&&(ut.kind===292||ut.kind===294))return ut.parent.parent;break;case 20:if(ut&&ut.kind===295&&ut.parent&&ut.parent.kind===292)return ut.parent.parent.parent;if(ut&&ut.kind===294)return ut.parent.parent;break}}}function kt(Ce,ut){return n.getLineEndOfPosition(Ce.getEnd())<ut}function Tt(Ce){let ut=Ce.parent,Qt=ut.kind;switch(Ce.kind){case 28:return Qt===261||ln(Ce)||Qt===244||Qt===267||Ye(Qt)||Qt===265||Qt===208||Qt===266||ni(ut)&&!!ut.typeParameters&&ut.typeParameters.end>=Ce.pos;case 25:return Qt===208;case 59:return Qt===209;case 23:return Qt===208;case 21:return Qt===300||Ye(Qt);case 19:return Qt===267;case 30:return Qt===264||Qt===232||Qt===265||Qt===266||r2(Qt);case 126:return Qt===173&&!ni(ut.parent);case 26:return Qt===170||!!ut.parent&&ut.parent.kind===208;case 125:case 123:case 124:return Qt===170&&!yc(ut.parent);case 130:return Qt===277||Qt===282||Qt===275;case 139:case 153:return!JH(Ce);case 80:{if((Qt===277||Qt===282)&&Ce===ut.name&&Ce.text==="type"||vr(Ce.parent,li)&&kt(Ce,s))return!1;break}case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return Qt!==277;case 42:return Fs(Ce.parent)&&!hc(Ce.parent)}if(lL(BH(Ce))&&JH(Ce)||et(Ce)&&(!Be(Ce)||jP(BH(Ce))||jt(Ce)))return!1;switch(BH(Ce)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return hs(Ce.parent)}if(vr(Ce.parent,ni)&&Ce===W&&Rt(Ce,s))return!1;let jr=j0(Ce.parent,173);if(jr&&Ce!==W&&ni(W.parent.parent)&&s<=W.end){if(Rt(Ce,W.end))return!1;if(Ce.kind!==64&&(B4(jr)||yF(jr)))return!0}return Ig(Ce)&&!Fu(Ce.parent)&&!Ym(Ce.parent)&&!((ni(Ce.parent)||uu(Ce.parent)||Ho(Ce.parent))&&(Ce!==W||s>W.end))}function Rt(Ce,ut){return Ce.kind!==64&&(Ce.kind===27||!F_(Ce.end,ut,n))}function Ye(Ce){return r2(Ce)&&Ce!==177}function Gt(Ce){if(Ce.kind===9){let ut=Ce.getFullText();return ut.charAt(ut.length-1)==="."}return!1}function ln(Ce){return Ce.parent.kind===262&&!mR(Ce,n,d)}function Ae(Ce,ut){if(ut.length===0)return Ce;let Qt=new Set,Zr=new Set;for(let Jr of ut){if(Jr.kind!==304&&Jr.kind!==305&&Jr.kind!==209&&Jr.kind!==175&&Jr.kind!==178&&Jr.kind!==179&&Jr.kind!==306||jt(Jr))continue;let ct;if(Sh(Jr))wt(Jr,Qt);else if(Da(Jr)&&Jr.propertyName)Jr.propertyName.kind===80&&(ct=Jr.propertyName.escapedText);else{let It=Ss(Jr);ct=It&&Bm(It)?aA(It):void 0}ct!==void 0&&Zr.add(ct)}let jr=Ce.filter(Jr=>!Zr.has(Jr.escapedName));return j(Qt,jr),jr}function wt(Ce,ut){let Qt=Ce.expression,Zr=d.getSymbolAtLocation(Qt),jr=Zr&&d.getTypeOfSymbolAtLocation(Zr,Qt),Jr=jr&&jr.properties;Jr&&Jr.forEach(ct=>{ut.add(ct.name)})}function fe(){ke.forEach(Ce=>{if(Ce.flags&16777216){let ut=sa(Ce);ae[ut]=ae[ut]??ju.OptionalMember}})}function j(Ce,ut){if(Ce.size!==0)for(let Qt of ut)Ce.has(Qt.name)&&(ae[sa(Qt)]=ju.MemberDeclaredBySpreadAssignment)}function je(Ce){for(let ut=Ce;ut<ke.length;ut++){let Qt=ke[ut],Zr=sa(Qt),jr=nt?.[ut],Jr=xa(i),ct=LH(Qt,Jr,jr,0,!1);if(ct){let It=ae[Zr]??ju.LocationPriority,{name:Ot}=ct;ae[Zr]=ju.ObjectLiteralProperty(It,Ot)}}}function q(Ce,ut,Qt){let Zr=new Set;for(let jr of ut){if(jr.kind!==173&&jr.kind!==175&&jr.kind!==178&&jr.kind!==179||jt(jr)||If(jr,2)||Ks(jr)!==!!(Qt&256))continue;let Jr=ok(jr.name);Jr&&Zr.add(Jr)}return Ce.filter(jr=>!Zr.has(jr.escapedName)&&!!jr.declarations&&!(j_(jr)&2)&&!(jr.valueDeclaration&&Hu(jr.valueDeclaration)))}function vt(Ce,ut){let Qt=new Set,Zr=new Set;for(let Jr of ut)jt(Jr)||(Jr.kind===292?Qt.add(NA(Jr.name)):$2(Jr)&&wt(Jr,Zr));let jr=Ce.filter(Jr=>!Qt.has(Jr.escapedName));return j(Zr,jr),jr}function jt(Ce){return Ce.getStart(n)<=s&&s<=Ce.getEnd()}}function yet(e,t,n){var i;if(e){let{parent:s}=e;switch(e.kind){case 19:case 28:if(Sa(s)||o_(s))return s;break;case 42:return hc(s)?Hn(s.parent,Sa):void 0;case 134:return Hn(s.parent,Sa);case 80:if(e.text==="async"&&Fu(e.parent))return e.parent.parent;{if(Sa(e.parent.parent)&&(Sh(e.parent)||Fu(e.parent)&&Hs(n,e.getEnd()).line!==Hs(n,t).line))return e.parent.parent;let c=vr(s,yl);if(c?.getLastToken(n)===e&&Sa(c.parent))return c.parent}break;default:if((i=s.parent)!=null&&i.parent&&(hc(s.parent)||B_(s.parent)||uf(s.parent))&&Sa(s.parent.parent))return s.parent.parent;if(Sh(s)&&Sa(s.parent))return s.parent;let o=vr(s,yl);if(e.kind!==59&&o?.getLastToken(n)===e&&Sa(o.parent))return o.parent}}}function jH(e,t){let n=Al(e,t);return n&&e<=n.end&&(sh(n)||qp(n.kind))?{contextToken:Al(n.getFullStart(),t,void 0),previousToken:n}:{contextToken:n,previousToken:n}}function WEe(e,t,n,i){let s=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():n,o=s.getTypeChecker(),c=t.ambientModuleName?o.tryFindAmbientModule(t.ambientModuleName):t.fileName?o.getMergedSymbol(w.checkDefined(s.getSourceFile(t.fileName)).symbol):void 0;if(!c)return;let p=t.exportName==="export="?o.resolveExternalModuleSymbol(c):o.tryGetMemberInModuleExportsAndProperties(t.exportName,c);return p?(p=t.exportName==="default"&&dA(p)||p,{symbol:p,origin:aet(t,e,c)}):void 0}function LH(e,t,n,i,s){if(zZe(n))return;let o=jZe(n)?n.symbolName:e.name;if(o===void 0||e.flags&1536&&c6(o.charCodeAt(0))||oA(e))return;let c={name:o,needsConvertPropertyAccess:!1};if(af(o,t,s?1:0)||e.valueDeclaration&&Hu(e.valueDeclaration))return c;if(e.flags&2097152)return{name:o,needsConvertPropertyAccess:!0};switch(i){case 3:return Hfe(n)?{name:n.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return o.charCodeAt(0)===32?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return c;default:w.assertNever(i)}}var WH=[],BEe=up(()=>{let e=[];for(let t=83;t<=166;t++)e.push({name:ta(t),kind:"keyword",kindModifiers:"",sortText:ju.GlobalsOrKeywords});return e});function zEe(e,t){if(!t)return GEe(e);let n=e+8+1;return WH[n]||(WH[n]=GEe(e).filter(i=>!vet(JT(i.name))))}function GEe(e){return WH[e]||(WH[e]=BEe().filter(t=>{let n=JT(t.name);switch(e){case 0:return!1;case 1:return UEe(n)||n===138||n===144||n===156||n===145||n===128||PE(n)&&n!==157;case 5:return UEe(n);case 2:return lL(n);case 3:return JEe(n);case 4:return jP(n);case 6:return PE(n)||n===87;case 7:return PE(n);case 8:return n===156;default:return w.assertNever(e)}}))}function vet(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function JEe(e){return e===148}function lL(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return JB(e)}}function UEe(e){return e===134||e===135||e===160||e===130||e===152||e===156||!t8(e)&&!lL(e)}function BH(e){return Be(e)?VT(e)??0:e.kind}function bet(e,t){let n=[];if(e){let i=e.getSourceFile(),s=e.parent,o=i.getLineAndCharacterOfPosition(e.end).line,c=i.getLineAndCharacterOfPosition(t).line;(ac(s)||tl(s)&&s.moduleSpecifier)&&e===s.moduleSpecifier&&o===c&&n.push({name:ta(132),kind:"keyword",kindModifiers:"",sortText:ju.GlobalsOrKeywords})}return n}function Tet(e,t){return vr(e,n=>Ow(n)&&qI(n,t)?!0:um(n)?"quit":!1)}function zH(e,t,n,i){let s=t&&t!==e,o=i.getUnionType(Mn(e.flags&1048576?e.types:[e],g=>!i.getPromisedTypeOfPromise(g))),c=s&&!(t.flags&3)?i.getUnionType([o,t]):o,p=ket(c,n,i);return c.isClass()&&VEe(p)?[]:s?Mn(p,u):p;function u(g){return Dr(g.declarations)?_t(g.declarations,d=>d.parent!==n):!0}}function ket(e,t,n){return e.isUnion()?n.getAllPossiblePropertiesOfTypes(Mn(e.types,i=>!(i.flags&402784252||n.isArrayLikeType(i)||n.isTypeInvalidDueToUnionDiscriminant(i,t)||n.typeHasCallOrConstructSignatures(i)||i.isClass()&&VEe(i.getApparentProperties())))):e.getApparentProperties()}function VEe(e){return _t(e,t=>!!(j_(t)&6))}function GH(e,t){return e.isUnion()?w.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):w.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function xet(e,t,n,i){switch(n.kind){case 353:return Hn(n.parent,x2);case 1:let s=Hn(Wo(Zs(n.parent,Li).statements),x2);if(s&&!lo(s,20,e))return s;break;case 81:if(Hn(n.parent,hs))return vr(n,ni);break;case 80:{if(VT(n)||hs(n.parent)&&n.parent.initializer===n)return;if(JH(n))return vr(n,x2)}}if(t){if(n.kind===137||Be(t)&&hs(t.parent)&&ni(n))return vr(t,ni);switch(t.kind){case 64:return;case 27:case 20:return JH(n)&&n.parent.name===n?n.parent.parent:Hn(n,x2);case 19:case 28:return Hn(t.parent,x2);default:if(x2(n)){if(Hs(e,t.getEnd()).line!==Hs(e,i).line)return n;let s=ni(t.parent.parent)?lL:JEe;return s(t.kind)||t.kind===42||Be(t)&&s(VT(t)??0)?t.parent.parent:void 0}return}}}function Cet(e){if(!e)return;let t=e.parent;switch(e.kind){case 19:if(Dp(t))return t;break;case 27:case 28:case 80:if(t.kind===172&&Dp(t.parent))return t.parent;break}}function qEe(e,t){if(!e)return;if(yi(e)&&vF(e.parent))return t.getTypeArgumentConstraint(e);let n=qEe(e.parent,t);if(n)switch(e.kind){case 172:return t.getTypeOfPropertyOfContextualType(n,e.symbol.escapedName);case 194:case 188:case 193:return n}}function JH(e){return e.parent&&pF(e.parent)&&x2(e.parent.parent)}function wet(e,t,n,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&ale(n)&&i===n.getStart(e)+1;case"#":return!!n&&zi(n)&&!!cu(n);case"<":return!!n&&n.kind===30&&(!vn(n.parent)||$Ee(n.parent));case"/":return!!n&&(Ha(n)?!!d6(n):n.kind===44&&BS(n.parent));case" ":return!!n&&BA(n)&&n.parent.kind===308;default:return w.assertNever(t)}}function $Ee({left:e}){return xc(e)}function Iet(e,t,n){let i=n.resolveName("self",void 0,111551,!1);if(i&&n.getTypeOfSymbolAtLocation(i,t)===e)return!0;let s=n.resolveName("global",void 0,111551,!1);if(s&&n.getTypeOfSymbolAtLocation(s,t)===e)return!0;let o=n.resolveName("globalThis",void 0,111551,!1);return!!(o&&n.getTypeOfSymbolAtLocation(o,t)===e)}function Det(e){return!!(e.valueDeclaration&&Mu(e.valueDeclaration)&256&&ni(e.valueDeclaration.parent))}function Pet(e,t){let n=t.getContextualType(e);if(n)return n;let i=Od(e.parent);if(vn(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(ht(i))return t.getContextualType(i)}function HEe(e,t){var n,i,s;let o,c=!1,p=u();return{isKeywordOnlyCompletion:c,keywordCompletion:o,isNewIdentifierLocation:!!(p||o===156),isTopLevelTypeOnly:!!((i=(n=Hn(p,ac))==null?void 0:n.importClause)!=null&&i.isTypeOnly)||!!((s=Hn(p,Dl))!=null&&s.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!p&&KEe(p,e),replacementSpan:Aet(p)};function u(){let g=e.parent;if(Dl(g)){let d=g.getLastToken(t);if(Be(e)&&d!==e){o=161,c=!0;return}return o=e.kind===156?void 0:156,n_e(g.moduleReference)?g:void 0}if(KEe(g,e)&&XEe(g.parent))return g;if(Km(g)||bh(g)){if(!g.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(o=156),XEe(g))if(e.kind===20||e.kind===80)c=!0,o=161;else return g.parent.parent;return}if(tl(g)&&e.kind===42||G_(g)&&e.kind===20){c=!0,o=161;return}if(BA(e)&&Li(g))return o=156,e;if(BA(e)&&ac(g))return o=156,n_e(g.moduleSpecifier)?g:void 0}}function Aet(e){var t;if(!e)return;let n=vr(e,vf(ac,Dl,Zm))??e,i=n.getSourceFile();if(uk(n,i))return Np(n,i);w.assert(n.kind!==102&&n.kind!==277);let s=n.kind===273||n.kind===352?QEe((t=n.importClause)==null?void 0:t.namedBindings)??n.moduleSpecifier:n.moduleReference,o={pos:n.getFirstToken().getStart(),end:s.pos};if(uk(o,i))return pv(o)}function QEe(e){var t;return Bn((t=Hn(e,Km))==null?void 0:t.elements,n=>{var i;return!n.propertyName&&y2(n.name.text)&&((i=Al(n.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function KEe(e,t){return gp(e)&&(e.isTypeOnly||t===e.name&&f5(t))}function XEe(e){if(!n_e(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(Km(e)){let t=QEe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function n_e(e){var t;return xc(e)?!0:!((t=Hn(ay(e)?e.expression:e,Ha))!=null&&t.text)}function Eet(e,t){if(!e)return;let n=vr(e,i=>bS(i)||YEe(i)||Ls(i)?"quit":(Gi(i)||Ho(i))&&!Pb(i.parent));return n||(n=vr(t,i=>bS(i)||YEe(i)||Ls(i)?"quit":li(i))),n}function Net(e){if(!e)return!1;let t=e,n=e.parent;for(;n;){if(Ho(n))return n.default===t||t.kind===64;t=n,n=n.parent}return!1}function YEe(e){return e.parent&&Fo(e.parent)&&(e.parent.body===e||e.kind===39)}function i_e(e,t,n=new Set){return i(e)||i(vu(e.exportSymbol||e,t));function i(s){return!!(s.flags&788968)||t.isUnknownSymbol(s)||!!(s.flags&1536)&&dd(n,s)&&t.getExportsOfModule(s).some(o=>i_e(o,t,n))}}function Met(e,t){let n=vu(e,t).declarations;return!!Dr(n)&&Fi(n,D5)}function ZEe(e,t){if(t.length===0)return!0;let n=!1,i,s=0,o=e.length;for(let c=0;c<o;c++){let p=e.charCodeAt(c),u=t.charCodeAt(s);if((p===u||p===Ret(u))&&(n||(n=i===void 0||97<=i&&i<=122&&65<=p&&p<=90||i===95&&p!==95),n&&s++,s===t.length))return!0;i=p}return!1}function Ret(e){return 97<=e&&e<=122?e-32:e}function Oet(e){return e==="abstract"||e==="async"||e==="await"||e==="declare"||e==="module"||e==="namespace"||e==="type"||e==="satisfies"||e==="as"}var UH={};it(UH,{getStringLiteralCompletionDetails:()=>Let,getStringLiteralCompletions:()=>Fet});var eNe={directory:0,script:1,"external module name":2};function s_e(){let e=new Map;function t(n){let i=e.get(n.name);(!i||eNe[i.kind]<eNe[n.kind])&&e.set(n.name,n)}return{add:t,has:e.has.bind(e),values:e.values.bind(e)}}function Fet(e,t,n,i,s,o,c,p,u){if(Jce(e,t)){let g=Yet(e,t,o,s,o1(o,s));return g&&tNe(g)}if(cC(e,t,n)){if(!n||!Ha(n))return;let g=nNe(e,n,t,o,s,p);return jet(g,n,e,s,o,c,i,p,t,u)}}function jet(e,t,n,i,s,o,c,p,u,g){if(e===void 0)return;let d=Lq(t,u);switch(e.kind){case 0:return tNe(e.paths);case 1:{let h=PW();return Zfe(e.symbols,h,t,t,n,u,n,i,s,99,o,4,p,c,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,g),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:d,entries:h,defaultCommitCharacters:Bk(e.hasIndexSignature)}}case 2:{let h=t.kind===15?96:Zi(pc(t),"'")?39:34,S=e.types.map(T=>({name:Dg(T.value,h),kindModifiers:"",kind:"string",sortText:ju.LocationPriority,replacementSpan:jq(t,u),commitCharacters:[]}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:d,entries:S,defaultCommitCharacters:Bk(e.isNewIdentifier)}}default:return w.assertNever(e)}}function Let(e,t,n,i,s,o,c,p){if(!i||!Ha(i))return;let u=nNe(t,i,n,s,o,p);return u&&Wet(e,i,u,t,s.getTypeChecker(),c)}function Wet(e,t,n,i,s,o){switch(n.kind){case 0:{let c=Bn(n.paths,p=>p.name===e);return c&&cL(e,rNe(c.extension),c.kind,[f_(e)])}case 1:{let c=Bn(n.symbols,p=>p.name===e);return c&&t_e(c,c.name,s,i,t,o)}case 2:return Bn(n.types,c=>c.value===e)?cL(e,"","string",[f_(e)]):void 0;default:return w.assertNever(n)}}function tNe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:s,kind:o,span:c,extension:p})=>({name:s,kind:o,kindModifiers:rNe(p),sortText:ju.LocationPriority,replacementSpan:c})),defaultCommitCharacters:Bk(!0)}}function rNe(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return w.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return w.assertNever(e)}}function nNe(e,t,n,i,s,o){let c=i.getTypeChecker(),p=a_e(t.parent);switch(p.kind){case 202:{let W=a_e(p.parent);return W.kind===206?{kind:0,paths:aNe(e,t,i,s,o)}:u(W)}case 304:return Sa(p.parent)&&p.name===t?Get(c,p.parent):g()||g(0);case 213:{let{expression:W,argumentExpression:z}=p;return t===Qa(z)?iNe(c.getTypeAtLocation(W)):void 0}case 214:case 215:case 292:if(!itt(t)&&!Up(p)){let W=ZR.getArgumentInfoForCompletions(p.kind===292?p.parent:t,n,e,c);return W&&zet(W.invocation,t,W,c)||g(0)}case 273:case 279:case 284:case 352:return{kind:0,paths:aNe(e,t,i,s,o)};case 297:let d=E5(c,p.parent.clauses),h=g();return h?{kind:2,types:h.types.filter(W=>!d.hasValue(W.value)),isNewIdentifier:!1}:void 0;case 277:case 282:let T=p;if(T.propertyName&&t!==T.propertyName)return;let x=T.parent,{moduleSpecifier:I}=x.kind===276?x.parent.parent:x.parent;if(!I)return;let P=c.getSymbolAtLocation(I);if(!P)return;let E=c.getExportsAndPropertiesOfModule(P),F=new Set(x.elements.map(W=>yS(W.propertyName||W.name)));return{kind:1,symbols:E.filter(W=>W.escapedName!=="default"&&!F.has(W.escapedName)),hasIndexSignature:!1};case 227:if(p.operatorToken.kind===103){let W=c.getTypeAtLocation(p.right);return{kind:1,symbols:(W.isUnion()?c.getAllPossiblePropertiesOfTypes(W.types):W.getApparentProperties()).filter($=>!$.valueDeclaration||!Hu($.valueDeclaration)),hasIndexSignature:!1}}return g(0);default:return g()||g(0)}function u(d){switch(d.kind){case 234:case 184:{let T=vr(p,x=>x.parent===d);return T?{kind:2,types:VH(c.getTypeArgumentConstraint(T)),isNewIdentifier:!1}:void 0}case 200:let{indexType:h,objectType:S}=d;return qI(h,n)?iNe(c.getTypeFromTypeNode(S)):void 0;case 193:{let T=u(a_e(d.parent));if(!T)return;let x=Bet(d,p);return T.kind===1?{kind:1,symbols:T.symbols.filter(I=>!ws(x,I.name)),hasIndexSignature:T.hasIndexSignature}:{kind:2,types:T.types.filter(I=>!ws(x,I.value)),isNewIdentifier:!1}}default:return}}function g(d=4){let h=VH(b5(t,c,d));if(h.length)return{kind:2,types:h,isNewIdentifier:!1}}}function a_e(e){switch(e.kind){case 197:return v6(e);case 218:return Od(e);default:return e}}function Bet(e,t){return Ji(e.types,n=>n!==t&&av(n)&&ya(n.literal)?n.literal.text:void 0)}function zet(e,t,n,i){let s=!1,o=new Set,c=Qu(e)?w.checkDefined(vr(t.parent,Ym)):t,p=i.getCandidateSignaturesForStringLiteralCompletions(e,c),u=Ma(p,g=>{if(!Zu(g)&&n.argumentCount>g.parameters.length)return;let d=g.getTypeParameterAtPosition(n.argumentIndex);if(Qu(e)){let h=i.getTypeOfPropertyOfType(d,Y6(c.name));h&&(d=h)}return s=s||!!(d.flags&4),VH(d,o)});return Dr(u)?{kind:2,types:u,isNewIdentifier:s}:void 0}function iNe(e){return e&&{kind:1,symbols:Mn(e.getApparentProperties(),t=>!(t.valueDeclaration&&Hu(t.valueDeclaration))),hasIndexSignature:i$(e)}}function Get(e,t){let n=e.getContextualType(t);if(!n)return;let i=e.getContextualType(t,4);return{kind:1,symbols:zH(n,i,t,e),hasIndexSignature:i$(n)}}function VH(e,t=new Set){return e?(e=zq(e),e.isUnion()?Ma(e.types,n=>VH(n,t)):e.isStringLiteral()&&!(e.flags&1024)&&dd(t,e.value)?[e]:Ke):Ke}function HE(e,t,n){return{name:e,kind:t,extension:n}}function o_e(e){return HE(e,"directory",void 0)}function sNe(e,t,n){let i=ett(e,t),s=e.length===0?void 0:yu(t,e.length);return n.map(({name:o,kind:c,extension:p})=>o.includes(Ro)||o.includes(VO)?{name:o,kind:c,extension:p,span:s}:{name:o,kind:c,extension:p,span:i})}function aNe(e,t,n,i,s){return sNe(t.text,t.getStart(e)+1,Jet(e,t,n,i,s))}function Jet(e,t,n,i,s){let o=ou(t.text),c=Ha(t)?n.getModeForUsageLocation(e,t):void 0,p=e.path,u=ti(p),g=n.getCompilerOptions(),d=n.getTypeChecker(),h=o1(n,i),S=c_e(g,1,e,d,s,c);return ttt(o)||!g.baseUrl&&!g.paths&&(Sf(o)||_ee(o))?Uet(o,u,n,i,h,p,S):Het(o,u,c,n,i,h,S)}function c_e(e,t,n,i,s,o){return{extensionsToSearch:ad(Vet(e,i)),referenceKind:t,importingSourceFile:n,endingPreference:s?.importModuleSpecifierEnding,resolutionMode:o}}function Uet(e,t,n,i,s,o,c){let p=n.getCompilerOptions();return p.rootDirs?$et(p.rootDirs,e,t,c,n,i,s,o):ds($R(e,t,c,n,i,s,!0,o).values())}function Vet(e,t){let n=t?Ji(t.getAmbientModules(),o=>{let c=o.name.slice(1,-1);if(!(!c.startsWith("*.")||c.includes("/")))return c.slice(1)}):[],i=[...TA(e),n],s=Ku(e);return _5(s)?V6(e,i):i}function qet(e,t,n,i){e=e.map(o=>Ml(ra(Sf(o)?o:Jn(t,o))));let s=fo(e,o=>A_(o,n,t,i)?n.substr(o.length):void 0);return oS([...e.map(o=>Jn(o,s)),n].map(o=>Vy(o)),uS,Eu)}function $et(e,t,n,i,s,o,c,p){let g=s.getCompilerOptions().project||o.getCurrentDirectory(),d=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()),h=qet(e,g,n,d);return oS(Ma(h,S=>ds($R(t,S,i,s,o,c,!0,p).values())),(S,T)=>S.name===T.name&&S.kind===T.kind&&S.extension===T.extension)}function $R(e,t,n,i,s,o,c,p,u=s_e()){var g;e===void 0&&(e=""),e=ou(e),nb(e)||(e=ti(e)),e===""&&(e="."+Ro),e=Ml(e);let d=ib(t,e),h=nb(d)?d:ti(d);if(!c){let I=ule(h,s);if(I){let E=tI(I,s).typesVersions;if(typeof E=="object"){let F=(g=q7(E))==null?void 0:g.paths;if(F){let O=ti(I),W=d.slice(Ml(O).length);if(cNe(u,W,O,n,i,s,o,F))return u}}}}let S=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames());if(!x5(s,h))return u;let T=o$(s,h,n.extensionsToSearch,void 0,["./*"]);if(T)for(let I of T){if(I=ra(I),p&&Hh(I,p,t,S)===0)continue;let{name:P,extension:E}=oNe(dl(I),i,n,!1);u.add(HE(P,"script",E))}let x=k5(s,h);if(x)for(let I of x){let P=dl(ra(I));P!=="@types"&&u.add(o_e(P))}return u}function oNe(e,t,n,i){let s=uy.tryGetRealFileNameForNonJsDeclarationFileName(e);if(s)return{name:s,extension:hh(s)};if(n.referenceKind===0)return{name:e,extension:hh(e)};let o=uy.getModuleSpecifierPreferences({importModuleSpecifierEnding:n.endingPreference},t,t.getCompilerOptions(),n.importingSourceFile).getAllowedEndingsInPreferredOrder(n.resolutionMode);if(i&&(o=o.filter(p=>p!==0&&p!==1)),o[0]===3){if(Bc(e,U6))return{name:e,extension:hh(e)};let p=uy.tryGetJSExtensionForFile(e,t.getCompilerOptions());return p?{name:tv(e,p),extension:p}:{name:e,extension:hh(e)}}if(!i&&(o[0]===0||o[0]===1)&&Bc(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:dp(e),extension:hh(e)};let c=uy.tryGetJSExtensionForFile(e,t.getCompilerOptions());return c?{name:tv(e,c),extension:c}:{name:e,extension:hh(e)}}function cNe(e,t,n,i,s,o,c,p){let u=d=>p[d],g=(d,h)=>{let S=P2(d),T=P2(h),x=typeof S=="object"?S.prefix.length:d.length,I=typeof T=="object"?T.prefix.length:h.length;return Po(I,x)};return lNe(e,!1,!1,t,n,i,s,o,c,Nm(p),u,g)}function lNe(e,t,n,i,s,o,c,p,u,g,d,h){let S=[],T;for(let x of g){if(x===".")continue;let I=x.replace(/^\.\//,"")+((t||n)&&Bo(x,"/")?"*":""),P=d(x);if(P){let E=P2(I);if(!E)continue;let F=typeof E=="object"&&OO(E,i);F&&(T===void 0||h(I,T)===-1)&&(T=I,S=S.filter(W=>!W.matchedPattern)),(typeof E=="string"||T===void 0||h(I,T)!==1)&&S.push({matchedPattern:F,results:Qet(I,P,i,s,o,t,n,c,p,u).map(({name:W,kind:z,extension:$})=>HE(W,z,$))})}}return S.forEach(x=>x.results.forEach(I=>e.add(I))),T!==void 0}function Het(e,t,n,i,s,o,c){let p=i.getTypeChecker(),u=i.getCompilerOptions(),{baseUrl:g,paths:d}=u,h=s_e(),S=Ku(u);if(g){let I=ra(Jn(s.getCurrentDirectory(),g));$R(e,I,c,i,s,o,!1,void 0,h)}if(d){let I=l8(u,s);cNe(h,e,I,c,i,s,o,d)}let T=pNe(e);for(let I of Xet(e,T,p))h.add(HE(I,"external module name",void 0));if(dNe(i,s,o,t,T,c,h),_5(S)){let I=!1;if(T===void 0)for(let P of Zet(s,t)){let E=HE(P,"external module name",void 0);h.has(E.name)||(I=!0,h.add(E))}if(!I){let P=W6(u),E=B6(u),F=!1,O=z=>{if(E&&!F){let $=Jn(z,"package.json");if(F=jE(s,$)){let X=tI($,s);x(X.imports,e,z,!1,!0)}}},W=z=>{let $=Jn(z,"node_modules");x5(s,$)&&$R(e,$,c,i,s,o,!1,void 0,h),O(z)};if(T&&P){let z=W;W=$=>{let X=Nu(e);X.shift();let U=X.shift();if(!U)return z($);if(Zi(U,"@")){let V=X.shift();if(!V)return z($);U=Jn(U,V)}if(E&&Zi(U,"#"))return O($);let _e=Jn($,"node_modules",U),re=Jn(_e,"package.json");if(jE(s,re)){let V=tI(re,s),ce=X.join("/")+(X.length&&nb(e)?"/":"");x(V.exports,ce,_e,!0,!1);return}return z($)}}Eg(s,t,W)}}return ds(h.values());function x(I,P,E,F,O){if(typeof I!="object"||I===null)return;let W=Nm(I),z=Rb(u,n);lNe(h,F,O,P,E,c,i,s,o,W,$=>{let X=uNe(I[$],z);if(X!==void 0)return Qx(Bo($,"/")&&Bo(X,"/")?X+"*":X)},SU)}}function uNe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!gs(e)){for(let n in e)if(n==="default"||t.includes(n)||O4(t,n)){let i=e[n];return uNe(i,t)}}}function pNe(e){return l_e(e)?nb(e)?e:ti(e):void 0}function Qet(e,t,n,i,s,o,c,p,u,g){let d=P2(e);if(!d)return Ke;if(typeof d=="string")return S(e,"script");let h=VW(n,d.prefix);if(h===void 0)return Bo(e,"/*")?S(d.prefix,"directory"):Ma(t,x=>{var I;return(I=fNe("",i,x,s,o,c,p,u,g))==null?void 0:I.map(({name:P,...E})=>({name:d.prefix+P+d.suffix,...E}))});return Ma(t,T=>fNe(h,i,T,s,o,c,p,u,g));function S(T,x){return Zi(T,n)?[{name:Vy(T),kind:x,extension:void 0}]:Ke}}function fNe(e,t,n,i,s,o,c,p,u){if(!p.readDirectory)return;let g=P2(n);if(g===void 0||Is(g))return;let d=ib(g.prefix),h=nb(g.prefix)?d:ti(d),S=nb(g.prefix)?"":dl(d),T=l_e(e),x=T?nb(e)?e:ti(e):void 0,I=()=>u.getCommonSourceDirectory(),P=!ck(u),E=c.getCompilerOptions().outDir,F=c.getCompilerOptions().declarationDir,O=T?Jn(h,S+x):h,W=ra(Jn(t,O)),z=o&&E&&Yz(W,P,E,I),$=o&&F&&Yz(W,P,F,I),X=ra(g.suffix),U=X&&c8("_"+X),_e=X?Xz("_"+X):void 0,re=[U&&tv(X,U),..._e?_e.map(H=>tv(X,H)):[],X].filter(Is),V=X?re.map(H=>"**/*"+H):["./*"],ce=(s||o)&&Bo(n,"/*"),oe=le(W);return z&&(oe=Qi(oe,le(z))),$&&(oe=Qi(oe,le($))),X||(oe=Qi(oe,de(W)),z&&(oe=Qi(oe,de(z))),$&&(oe=Qi(oe,de($)))),oe;function le(H){let Se=T?H:Ml(H)+S;return Ji(o$(p,H,i.extensionsToSearch,void 0,V),Je=>{let ye=ve(Je,Se);if(ye){if(l_e(ye))return o_e(Nu(_Ne(ye))[1]);let{name:ee,extension:ge}=oNe(ye,c,i,ce);return HE(ee,"script",ge)}})}function de(H){return Ji(k5(p,H),Se=>Se==="node_modules"?void 0:o_e(Se))}function ve(H,Se){return fo(re,Je=>{let ye=Ket(ra(H),Se,Je);return ye===void 0?void 0:_Ne(ye)})}}function Ket(e,t,n){return Zi(e,t)&&Bo(e,n)?e.slice(t.length,e.length-n.length):void 0}function _Ne(e){return e[0]===Ro?e.slice(1):e}function Xet(e,t,n){let s=n.getAmbientModules().map(o=>_d(o.name)).filter(o=>Zi(o,e)&&!o.includes("*"));if(t!==void 0){let o=Ml(t);return s.map(c=>dP(c,o))}return s}function Yet(e,t,n,i,s){let o=n.getCompilerOptions(),c=Ii(e,t),p=nh(e.text,c.pos),u=p&&Bn(p,P=>t>=P.pos&&t<=P.end);if(!u)return;let g=e.text.slice(u.pos,t),d=rtt.exec(g);if(!d)return;let[,h,S,T]=d,x=ti(e.path),I=S==="path"?$R(T,x,c_e(o,0,e),n,i,s,!0,e.path):S==="types"?dNe(n,i,s,x,pNe(T),c_e(o,1,e)):w.fail();return sNe(T,u.pos+h.length,ds(I.values()))}function dNe(e,t,n,i,s,o,c=s_e()){let p=e.getCompilerOptions(),u=new Map,g=C5(()=>rE(p,t))||Ke;for(let h of g)d(h);for(let h of c$(i,t)){let S=Jn(ti(h),"node_modules/@types");d(S)}return c;function d(h){if(x5(t,h))for(let S of k5(t,h)){let T=F4(S);if(!(p.types&&!ws(p.types,T)))if(s===void 0)u.has(T)||(c.add(HE(T,"external module name",void 0)),u.set(T,!0));else{let x=Jn(h,S),I=IG(s,T,ty(t));I!==void 0&&$R(I,x,o,e,t,n,!1,void 0,c)}}}}function Zet(e,t){if(!e.readFile||!e.fileExists)return Ke;let n=[];for(let i of c$(t,e)){let s=tI(i,e);for(let o of ntt){let c=s[o];if(c)for(let p in c)_o(c,p)&&!Zi(p,"@types/")&&n.push(p)}}return n}function ett(e,t){let n=Math.max(e.lastIndexOf(Ro),e.lastIndexOf(VO)),i=n!==-1?n+1:0,s=e.length-i;return s===0||af(e.substr(i,s),99)?void 0:yu(t+i,s)}function ttt(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){let t=e.length>=3&&e.charCodeAt(1)===46?2:1,n=e.charCodeAt(t);return n===47||n===92}return!1}var rtt=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\x03"]*)$/,ntt=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function l_e(e){return e.includes(Ro)}function itt(e){return Ws(e.parent)&&_l(e.parent.arguments)===e&&Be(e.parent.expression)&&e.parent.expression.escapedText==="require"}var jo={};it(jo,{Core:()=>bC,DefinitionKind:()=>SNe,EntryKind:()=>TNe,ExportKind:()=>mNe,FindReferencesUse:()=>kNe,ImportExport:()=>gNe,createImportTracker:()=>u_e,findModuleReferences:()=>hNe,findReferenceOrRenameEntries:()=>ytt,findReferencedSymbols:()=>mtt,getContextNode:()=>zk,getExportInfo:()=>p_e,getImplementationsAtPosition:()=>htt,getImportOrExportSymbol:()=>bNe,getReferenceEntriesForNode:()=>CNe,isContextWithStartAndEndNode:()=>__e,isDeclarationOfSymbol:()=>ANe,isWriteAccessForReference:()=>m_e,toContextSpan:()=>d_e,toHighlightSpan:()=>Ctt,toReferenceEntry:()=>DNe,toRenameLocation:()=>btt});function u_e(e,t,n,i){let s=ctt(e,n,i);return(o,c,p)=>{let{directImports:u,indirectUsers:g}=stt(e,t,s,c,n,i);return{indirectUsers:g,...att(u,o,c.exportKind,n,p)}}}var mNe=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(mNe||{}),gNe=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(gNe||{});function stt(e,t,n,{exportingModuleSymbol:i,exportKind:s},o,c){let p=HI(),u=HI(),g=[],d=!!i.globalExports,h=d?void 0:[];return T(i),{directImports:g,indirectUsers:S()};function S(){if(d)return e;if(i.declarations)for(let O of i.declarations)vS(O)&&t.has(O.getSourceFile().fileName)&&E(O);return h.map(Nr)}function T(O){let W=F(O);if(W){for(let z of W)if(p(z))switch(c&&c.throwIfCancellationRequested(),z.kind){case 214:if(Up(z)){x(z);break}if(!d){let X=z.parent;if(s===2&&X.kind===261){let{name:U}=X;if(U.kind===80){g.push(U);break}}}break;case 80:break;case 272:P(z,z.name,ri(z,32),!1);break;case 273:case 352:g.push(z);let $=z.importClause&&z.importClause.namedBindings;$&&$.kind===275?P(z,$.name,!1,!0):!d&&sk(z)&&E(uL(z));break;case 279:z.exportClause?z.exportClause.kind===281?E(uL(z),!0):g.push(z):T(_tt(z,o));break;case 206:!d&&z.isTypeOf&&!z.qualifier&&I(z)&&E(z.getSourceFile(),!0),g.push(z);break;default:w.failBadSyntaxKind(z,"Unexpected import kind.")}}}function x(O){let W=vr(O,qH)||O.getSourceFile();E(W,!!I(O,!0))}function I(O,W=!1){return vr(O,z=>W&&qH(z)?"quit":yd(z)&&_t(z.modifiers,L2))}function P(O,W,z,$){if(s===2)$||g.push(O);else if(!d){let X=uL(O);w.assert(X.kind===308||X.kind===268),z||ott(X,W,o)?E(X,!0):E(X)}}function E(O,W=!1){if(w.assert(!d),!u(O)||(h.push(O),!W))return;let $=o.getMergedSymbol(O.symbol);if(!$)return;w.assert(!!($.flags&1536));let X=F($);if(X)for(let U of X)Hm(U)||E(uL(U),!0)}function F(O){return n.get(sa(O).toString())}}function att(e,t,n,i,s){let o=[],c=[];function p(S,T){o.push([S,T])}if(e)for(let S of e)u(S);return{importSearches:o,singleReferences:c};function u(S){if(S.kind===272){f_e(S)&&g(S.name);return}if(S.kind===80){g(S);return}if(S.kind===206){if(S.qualifier){let I=wp(S.qualifier);I.escapedText===kc(t)&&c.push(I)}else n===2&&c.push(S.argument.literal);return}if(S.moduleSpecifier.kind!==11)return;if(S.kind===279){S.exportClause&&G_(S.exportClause)&&d(S.exportClause);return}let{name:T,namedBindings:x}=S.importClause||{name:void 0,namedBindings:void 0};if(x)switch(x.kind){case 275:g(x.name);break;case 276:(n===0||n===1)&&d(x);break;default:w.assertNever(x)}if(T&&(n===1||n===2)&&(!s||T.escapedText===d5(t))){let I=i.getSymbolAtLocation(T);p(T,I)}}function g(S){n===2&&(!s||h(S.escapedText))&&p(S,i.getSymbolAtLocation(S))}function d(S){if(S)for(let T of S.elements){let{name:x,propertyName:I}=T;if(h(yS(I||x)))if(I)c.push(I),(!s||yS(x)===t.escapedName)&&p(x,i.getSymbolAtLocation(x));else{let P=T.kind===282&&T.propertyName?i.getExportSpecifierLocalTargetSymbol(T):i.getSymbolAtLocation(x);p(x,P)}}}function h(S){return S===t.escapedName||n!==0&&S==="default"}}function ott(e,t,n){let i=n.getSymbolAtLocation(t);return!!yNe(e,s=>{if(!tl(s))return;let{exportClause:o,moduleSpecifier:c}=s;return!c&&o&&G_(o)&&o.elements.some(p=>n.getExportSpecifierLocalTargetSymbol(p)===i)})}function hNe(e,t,n){var i;let s=[],o=e.getTypeChecker();for(let c of t){let p=n.valueDeclaration;if(p?.kind===308){for(let u of c.referencedFiles)e.getSourceFileFromReference(c,u)===p&&s.push({kind:"reference",referencingFile:c,ref:u});for(let u of c.typeReferenceDirectives){let g=(i=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(u,c))==null?void 0:i.resolvedTypeReferenceDirective;g!==void 0&&g.resolvedFileName===p.fileName&&s.push({kind:"reference",referencingFile:c,ref:u})}}vNe(c,(u,g)=>{o.getSymbolAtLocation(g)===n&&s.push(ko(u)?{kind:"implicit",literal:g,referencingFile:c}:{kind:"import",literal:g})})}return s}function ctt(e,t,n){let i=new Map;for(let s of e)n&&n.throwIfCancellationRequested(),vNe(s,(o,c)=>{let p=t.getSymbolAtLocation(c);if(p){let u=sa(p).toString(),g=i.get(u);g||i.set(u,g=[]),g.push(o)}});return i}function yNe(e,t){return or(e.kind===308?e.statements:e.body.statements,n=>t(n)||qH(n)&&or(n.body&&n.body.statements,t))}function vNe(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(let n of e.imports)t(eA(n),n);else yNe(e,n=>{switch(n.kind){case 279:case 273:{let i=n;i.moduleSpecifier&&ya(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 272:{let i=n;f_e(i)&&t(i,i.moduleReference.expression);break}}})}function bNe(e,t,n,i){return i?s():s()||o();function s(){var u;let{parent:g}=e,d=g.parent;if(t.exportSymbol)return g.kind===212?(u=t.declarations)!=null&&u.some(T=>T===g)&&vn(d)?S(d,!1):void 0:c(t.exportSymbol,p(g));{let T=utt(g,e);if(T&&ri(T,32))return Dl(T)&&T.moduleReference===e?i?void 0:{kind:0,symbol:n.getSymbolAtLocation(T.name)}:c(t,p(T));if(Ag(g))return c(t,0);if(Qo(g))return h(g);if(Qo(d))return h(d);if(vn(g))return S(g,!0);if(vn(d))return S(d,!0);if(Ck(g)||SJ(g))return c(t,0)}function h(T){if(!T.symbol.parent)return;let x=T.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:T.symbol.parent,exportKind:x}}}function S(T,x){let I;switch(Hc(T)){case 1:I=0;break;case 2:I=2;break;default:return}let P=x?n.getSymbolAtLocation(vG(Zs(T.left,Oo))):t;return P&&c(P,I)}}function o(){if(!ptt(e))return;let g=n.getImmediateAliasedSymbol(t);if(!g||(g=ftt(g,n),g.escapedName==="export="&&(g=ltt(g,n),g===void 0)))return;let d=d5(g);if(d===void 0||d==="default"||d===t.escapedName)return{kind:0,symbol:g}}function c(u,g){let d=p_e(u,g,n);return d&&{kind:1,symbol:u,exportInfo:d}}function p(u){return ri(u,2048)?1:0}}function ltt(e,t){var n,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);let s=w.checkDefined(e.valueDeclaration);if(Qo(s))return(n=Hn(s.expression,rm))==null?void 0:n.symbol;if(vn(s))return(i=Hn(s.right,rm))==null?void 0:i.symbol;if(Li(s))return s.symbol}function utt(e,t){let n=li(e)?e:Da(e)?UT(e):void 0;return n?e.name!==t||GS(n.parent)?void 0:Qc(n.parent.parent)?n.parent.parent:void 0:e}function ptt(e){let{parent:t}=e;switch(t.kind){case 272:return t.name===e&&f_e(t);case 277:return!t.propertyName;case 274:case 275:return w.assert(t.name===e),!0;case 209:return dn(e)&&SS(t.parent.parent);default:return!1}}function p_e(e,t,n){let i=e.parent;if(!i)return;let s=n.getMergedSymbol(i);return a2(s)?{exportingModuleSymbol:s,exportKind:t}:void 0}function ftt(e,t){if(e.declarations)for(let n of e.declarations){if(Xu(n)&&!n.propertyName&&!n.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(n)||e;if(Ln(n)&&fh(n.expression)&&!zi(n.name))return t.getSymbolAtLocation(n);if(Fu(n)&&vn(n.parent.parent)&&Hc(n.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(n.name)}return e}function _tt(e,t){return t.getMergedSymbol(uL(e).symbol)}function uL(e){if(e.kind===214||e.kind===352)return e.getSourceFile();let{parent:t}=e;return t.kind===308?t:(w.assert(t.kind===269),Zs(t.parent,qH))}function qH(e){return e.kind===268&&e.name.kind===11}function f_e(e){return e.moduleReference.kind===284&&e.moduleReference.expression.kind===11}var SNe=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(SNe||{}),TNe=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(TNe||{});function _y(e,t=1){return{kind:t,node:e.name||e,context:dtt(e)}}function __e(e){return e&&e.kind===void 0}function dtt(e){if(ql(e))return zk(e);if(e.parent){if(!ql(e.parent)&&!Qo(e.parent)){if(dn(e)){let n=vn(e.parent)?e.parent:Oo(e.parent)&&vn(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(n&&Hc(n)!==0)return zk(n)}if(cm(e.parent)||BS(e.parent))return e.parent.parent;if(kk(e.parent)||Eb(e.parent)||RP(e.parent))return e.parent;if(Ha(e)){let n=d6(e);if(n){let i=vr(n,s=>ql(s)||Ei(s)||Ow(s));return ql(i)?zk(i):i}}let t=vr(e,na);return t?zk(t.parent):void 0}if(e.parent.name===e||yc(e.parent)||Qo(e.parent)||(lb(e.parent)||Da(e.parent))&&e.parent.propertyName===e||e.kind===90&&ri(e.parent,2080))return zk(e.parent)}}function zk(e){if(e)switch(e.kind){case 261:return!lu(e.parent)||e.parent.declarations.length!==1?e:Qc(e.parent.parent)?e.parent.parent:KT(e.parent.parent)?zk(e.parent.parent):e.parent;case 209:return zk(e.parent.parent);case 277:return e.parent.parent.parent;case 282:case 275:return e.parent.parent;case 274:case 281:return e.parent;case 227:return Ql(e.parent)?e.parent:e;case 251:case 250:return{start:e.initializer,end:e.expression};case 304:case 305:return uv(e.parent)?zk(vr(e.parent,t=>vn(t)||KT(t))):e;case 256:return{start:Bn(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function d_e(e,t,n){if(!n)return;let i=__e(n)?fL(n.start,t,n.end):fL(n,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}var kNe=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(kNe||{});function mtt(e,t,n,i,s){let o=Kp(i,s),c={use:1},p=bC.getReferencedSymbolsForNode(s,o,e,n,t,c),u=e.getTypeChecker(),g=bC.getAdjustedNode(o,c),d=gtt(g)?u.getSymbolAtLocation(g):void 0;return!p||!p.length?void 0:Ji(p,({definition:h,references:S})=>h&&{definition:u.runWithCancellationToken(t,T=>vtt(h,T,o)),references:S.map(T=>Stt(T,d))})}function gtt(e){return e.kind===90||!!rA(e)||b6(e)||e.kind===137&&yc(e.parent)}function htt(e,t,n,i,s){let o=Kp(i,s),c,p=xNe(e,t,n,o,s);if(o.parent.kind===212||o.parent.kind===209||o.parent.kind===213||o.kind===108)c=p&&[...p];else if(p){let g=pM(p),d=new Set;for(;!g.isEmpty();){let h=g.dequeue();if(!dd(d,qa(h.node)))continue;c=Fr(c,h);let S=xNe(e,t,n,h.node,h.node.pos);S&&g.enqueue(...S)}}let u=e.getTypeChecker();return kr(c,g=>ktt(g,u))}function xNe(e,t,n,i,s){if(i.kind===308)return;let o=e.getTypeChecker();if(i.parent.kind===305){let c=[];return bC.getReferenceEntriesForShorthandPropertyAssignment(i,o,p=>c.push(_y(p))),c}else if(i.kind===108||of(i.parent)){let c=o.getSymbolAtLocation(i);return c.valueDeclaration&&[_y(c.valueDeclaration)]}else return CNe(s,i,e,n,t,{implementations:!0,use:1})}function ytt(e,t,n,i,s,o,c){return kr(wNe(bC.getReferencedSymbolsForNode(s,i,e,n,t,o)),p=>c(p,i,e.getTypeChecker()))}function CNe(e,t,n,i,s,o={},c=new Set(i.map(p=>p.fileName))){return wNe(bC.getReferencedSymbolsForNode(e,t,n,i,s,o,c))}function wNe(e){return e&&Ma(e,t=>t.references)}function vtt(e,t,n){let i=(()=>{switch(e.type){case 0:{let{symbol:d}=e,{displayParts:h,kind:S}=INe(d,t,n),T=h.map(P=>P.text).join(""),x=d.declarations&&_l(d.declarations),I=x?Ss(x)||x:n;return{...pL(I),name:T,kind:S,displayParts:h,context:zk(x)}}case 1:{let{node:d}=e;return{...pL(d),name:d.text,kind:"label",displayParts:[pf(d.text,17)]}}case 2:{let{node:d}=e,h=ta(d.kind);return{...pL(d),name:h,kind:"keyword",displayParts:[{text:h,kind:"keyword"}]}}case 3:{let{node:d}=e,h=t.getSymbolAtLocation(d),S=h&&dv.getSymbolDisplayPartsDocumentationAndSymbolKind(t,h,d.getSourceFile(),Fk(d),d).displayParts||[f_("this")];return{...pL(d),name:"this",kind:"var",displayParts:S}}case 4:{let{node:d}=e;return{...pL(d),name:d.text,kind:"var",displayParts:[pf(pc(d),8)]}}case 5:return{textSpan:pv(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[pf(`"${e.reference.fileName}"`,8)]};default:return w.assertNever(e)}})(),{sourceFile:s,textSpan:o,name:c,kind:p,displayParts:u,context:g}=i;return{containerKind:"",containerName:"",fileName:s.fileName,kind:p,name:c,textSpan:o,displayParts:u,...d_e(o,s,g)}}function pL(e){let t=e.getSourceFile();return{sourceFile:t,textSpan:fL(na(e)?e.expression:e,t)}}function INe(e,t,n){let i=bC.getIntersectingMeaningFromDeclarations(n,e),s=e.declarations&&_l(e.declarations)||n,{displayParts:o,symbolKind:c}=dv.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,s.getSourceFile(),s,s,i);return{displayParts:o,kind:c}}function btt(e,t,n,i,s){return{...$H(e),...i&&Ttt(e,t,n,s)}}function Stt(e,t){let n=DNe(e);return t?{...n,isDefinition:e.kind!==0&&ANe(e.node,t)}:n}function DNe(e){let t=$H(e);if(e.kind===0)return{...t,isWriteAccess:!1};let{kind:n,node:i}=e;return{...t,isWriteAccess:m_e(i),isInString:n===2?!0:void 0}}function $H(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{let t=e.node.getSourceFile(),n=fL(e.node,t);return{textSpan:n,fileName:t.fileName,...d_e(n,t,e.context)}}}function Ttt(e,t,n,i){if(e.kind!==0&&(Be(t)||Ha(t))){let{node:s,kind:o}=e,c=s.parent,p=t.text,u=Fu(c);if(u||bR(c)&&c.name===s&&c.dotDotDotToken===void 0){let g={prefixText:p+": "},d={suffixText:": "+p};if(o===3)return g;if(o===4)return d;if(u){let h=c.parent;return Sa(h)&&vn(h.parent)&&fh(h.parent.left)?g:d}else return g}else if(gp(c)&&!c.propertyName){let g=Xu(t.parent)?n.getExportSpecifierLocalTargetSymbol(t.parent):n.getSymbolAtLocation(t);return ws(g.declarations,c)?{prefixText:p+" as "}:vd}else if(Xu(c)&&!c.propertyName)return t===e.node||n.getSymbolAtLocation(t)===n.getSymbolAtLocation(e.node)?{prefixText:p+" as "}:{suffixText:" as "+p}}if(e.kind!==0&&Hp(e.node)&&Oo(e.node.parent)){let s=Vq(i);return{prefixText:s,suffixText:s}}return vd}function ktt(e,t){let n=$H(e);if(e.kind!==0){let{node:i}=e;return{...n,...xtt(i,t)}}else return{...n,kind:"",displayParts:[]}}function xtt(e,t){let n=t.getSymbolAtLocation(ql(e)&&e.name?e.name:e);return n?INe(n,t,e):e.kind===211?{kind:"interface",displayParts:[ep(21),f_("object literal"),ep(22)]}:e.kind===232?{kind:"local class",displayParts:[ep(21),f_("anonymous local class"),ep(22)]}:{kind:XS(e),displayParts:[]}}function Ctt(e){let t=$H(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};let n=m_e(e.node),i={textSpan:t.textSpan,kind:n?"writtenReference":"reference",isInString:e.kind===2?!0:void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:i}}function fL(e,t,n){let i=e.getStart(t),s=(n||e).getEnd();return Ha(e)&&s-i>2&&(w.assert(n===void 0),i+=1,s-=1),n?.kind===270&&(s=n.getFullStart()),$c(i,s)}function PNe(e){return e.kind===0?e.textSpan:fL(e.node,e.node.getSourceFile())}function m_e(e){let t=rA(e);return!!t&&wtt(t)||e.kind===90||k2(e)}function ANe(e,t){var n;if(!t)return!1;let i=rA(e)||(e.kind===90?e.parent:b6(e)||e.kind===137&&yc(e.parent)?e.parent.parent:void 0),s=i&&vn(i)?i.left:void 0;return!!(i&&((n=t.declarations)!=null&&n.some(o=>o===i||o===s)))}function wtt(e){if(e.flags&33554432)return!0;switch(e.kind){case 227:case 209:case 264:case 232:case 90:case 267:case 307:case 282:case 274:case 272:case 277:case 265:case 339:case 347:case 292:case 268:case 271:case 275:case 281:case 170:case 305:case 266:case 169:return!0;case 304:return!uv(e.parent);case 263:case 219:case 177:case 175:case 178:case 179:return!!e.body;case 261:case 173:return!!e.initializer||GS(e.parent);case 174:case 172:case 349:case 342:return!1;default:return w.failBadSyntaxKind(e)}}var bC;(e=>{function t(tt,Mt,se,pt,Z,Ee={},et=new Set(pt.map(at=>at.fileName))){var at,Pt;if(Mt=n(Mt,Ee),Li(Mt)){let ln=aD.getReferenceAtPosition(Mt,tt,se);if(!ln?.file)return;let Ae=se.getTypeChecker().getMergedSymbol(ln.file.symbol);if(Ae)return g(se,Ae,!1,pt,et);let wt=se.getFileIncludeReasons();return wt?[{definition:{type:5,reference:ln.reference,file:Mt},references:s(ln.file,wt,se)||Ke}]:void 0}if(!Ee.implementations){let ln=h(Mt,pt,Z);if(ln)return ln}let Le=se.getTypeChecker(),kt=Le.getSymbolAtLocation(yc(Mt)&&Mt.parent.name||Mt);if(!kt){if(!Ee.implementations&&Ha(Mt)){if(m5(Mt)){let ln=se.getFileIncludeReasons(),Ae=(Pt=(at=se.getResolvedModuleFromModuleSpecifier(Mt))==null?void 0:at.resolvedModule)==null?void 0:Pt.resolvedFileName,wt=Ae?se.getSourceFile(Ae):void 0;if(wt)return[{definition:{type:4,node:Mt},references:s(wt,ln,se)||Ke}]}return zn(Mt,pt,Le,Z)}return}if(kt.escapedName==="export=")return g(se,kt.parent,!1,pt,et);let Tt=c(kt,se,pt,Z,Ee,et);if(Tt&&!(kt.flags&33554432))return Tt;let Rt=o(Mt,kt,Le),Ye=Rt&&c(Rt,se,pt,Z,Ee,et),Gt=S(kt,Mt,pt,et,Le,Z,Ee);return p(se,Tt,Gt,Ye)}e.getReferencedSymbolsForNode=t;function n(tt,Mt){return Mt.use===1?tt=Aq(tt):Mt.use===2&&(tt=s5(tt)),tt}e.getAdjustedNode=n;function i(tt,Mt,se,pt=new Set(se.map(Z=>Z.fileName))){var Z,Ee;let et=(Z=Mt.getSourceFile(tt))==null?void 0:Z.symbol;if(et)return((Ee=g(Mt,et,!1,se,pt)[0])==null?void 0:Ee.references)||Ke;let at=Mt.getFileIncludeReasons(),Pt=Mt.getSourceFile(tt);return Pt&&at&&s(Pt,at,Mt)||Ke}e.getReferencesForFileName=i;function s(tt,Mt,se){let pt,Z=Mt.get(tt.path)||Ke;for(let Ee of Z)if(s1(Ee)){let et=se.getSourceFileByPath(Ee.file),at=bE(se,Ee);WI(at)&&(pt=Fr(pt,{kind:0,fileName:et.fileName,textSpan:pv(at)}))}return pt}function o(tt,Mt,se){if(tt.parent&&f4(tt.parent)){let pt=se.getAliasedSymbol(Mt),Z=se.getMergedSymbol(pt);if(pt!==Z)return Z}}function c(tt,Mt,se,pt,Z,Ee){let et=tt.flags&1536&&tt.declarations&&Bn(tt.declarations,Li);if(!et)return;let at=tt.exports.get("export="),Pt=g(Mt,tt,!!at,se,Ee);if(!at||!Ee.has(et.fileName))return Pt;let Le=Mt.getTypeChecker();return tt=vu(at,Le),p(Mt,Pt,S(tt,void 0,se,Ee,Le,pt,Z))}function p(tt,...Mt){let se;for(let pt of Mt)if(!(!pt||!pt.length)){if(!se){se=pt;continue}for(let Z of pt){if(!Z.definition||Z.definition.type!==0){se.push(Z);continue}let Ee=Z.definition.symbol,et=Tc(se,Pt=>!!Pt.definition&&Pt.definition.type===0&&Pt.definition.symbol===Ee);if(et===-1){se.push(Z);continue}let at=se[et];se[et]={definition:at.definition,references:at.references.concat(Z.references).sort((Pt,Le)=>{let kt=u(tt,Pt),Tt=u(tt,Le);if(kt!==Tt)return Po(kt,Tt);let Rt=PNe(Pt),Ye=PNe(Le);return Rt.start!==Ye.start?Po(Rt.start,Ye.start):Po(Rt.length,Ye.length)})}}}return se}function u(tt,Mt){let se=Mt.kind===0?tt.getSourceFile(Mt.fileName):Mt.node.getSourceFile();return tt.getSourceFiles().indexOf(se)}function g(tt,Mt,se,pt,Z){w.assert(!!Mt.valueDeclaration);let Ee=Ji(hNe(tt,pt,Mt),at=>{if(at.kind==="import"){let Pt=at.literal.parent;if(av(Pt)){let Le=Zs(Pt.parent,Hm);if(se&&!Le.qualifier)return}return _y(at.literal)}else if(at.kind==="implicit"){let Pt=at.literal.text!==_b&&K2(at.referencingFile,Le=>Le.transformFlags&2?Xm(Le)||kk(Le)||Q0(Le)?Le:void 0:"skip")||at.referencingFile.statements[0]||at.referencingFile;return _y(Pt)}else return{kind:0,fileName:at.referencingFile.fileName,textSpan:pv(at.ref)}});if(Mt.declarations)for(let at of Mt.declarations)switch(at.kind){case 308:break;case 268:Z.has(at.getSourceFile().fileName)&&Ee.push(_y(at.name));break;default:w.assert(!!(Mt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}let et=Mt.exports.get("export=");if(et?.declarations)for(let at of et.declarations){let Pt=at.getSourceFile();if(Z.has(Pt.fileName)){let Le=vn(at)&&Ln(at.left)?at.left.expression:Qo(at)?w.checkDefined(lo(at,95,Pt)):Ss(at)||at;Ee.push(_y(Le))}}return Ee.length?[{definition:{type:0,symbol:Mt},references:Ee}]:Ke}function d(tt){return tt.kind===148&&J0(tt.parent)&&tt.parent.operator===148}function h(tt,Mt,se){if(PE(tt.kind))return tt.kind===116&&U2(tt.parent)||tt.kind===148&&!d(tt)?void 0:Je(Mt,tt.kind,se,tt.kind===148?d:void 0);if(zw(tt.parent)&&tt.parent.name===tt)return Se(Mt,se);if(W2(tt)&&zc(tt.parent))return[{definition:{type:2,node:tt},references:[_y(tt)]}];if(fR(tt)){let pt=Zj(tt.parent,tt.text);return pt&&ve(pt.parent,pt)}else if(Sq(tt))return ve(tt.parent,tt);if(VI(tt))return rs(tt,Mt,se);if(tt.kind===108)return At(tt)}function S(tt,Mt,se,pt,Z,Ee,et){let at=Mt&&I(tt,Mt,Z,!Ds(et))||tt,Pt=Mt&&et.use!==2?Xn(Mt,at):7,Le=[],kt=new F(se,pt,Mt?x(Mt):0,Z,Ee,Pt,et,Le),Tt=!Ds(et)||!at.declarations?void 0:Bn(at.declarations,Xu);if(Tt)nt(Tt.name,at,Tt,kt.createSearch(Mt,tt,void 0),kt,!0,!0);else if(Mt&&Mt.kind===90&&at.escapedName==="default"&&at.parent)Ie(Mt,at,kt),O(Mt,at,{exportingModuleSymbol:at.parent,exportKind:1},kt);else{let Rt=kt.createSearch(Mt,at,void 0,{allSearchSymbols:Mt?_i(at,Mt,Z,et.use===2,!!et.providePrefixAndSuffixTextForRename,!!et.implementations):[at]});T(at,kt,Rt)}return Le}function T(tt,Mt,se){let pt=_e(tt);if(pt)ee(pt,pt.getSourceFile(),se,Mt,!(Li(pt)&&!ws(Mt.sourceFiles,pt)));else for(let Z of Mt.sourceFiles)Mt.cancellationToken.throwIfCancellationRequested(),X(Z,se,Mt)}function x(tt){switch(tt.kind){case 177:case 137:return 1;case 80:if(ni(tt.parent))return w.assert(tt.parent.name===tt),2;default:return 0}}function I(tt,Mt,se,pt){let{parent:Z}=Mt;return Xu(Z)&&pt?ae(Mt,tt,Z,se):fo(tt.declarations,Ee=>{if(!Ee.parent){if(tt.flags&33554432)return;w.fail(`Unexpected symbol at ${w.formatSyntaxKind(Mt.kind)}: ${w.formatSymbol(tt)}`)}return Dp(Ee.parent)&&sv(Ee.parent.parent)?se.getPropertyOfType(se.getTypeFromTypeNode(Ee.parent.parent),tt.name):void 0})}let P;(tt=>{tt[tt.None=0]="None",tt[tt.Constructor=1]="Constructor",tt[tt.Class=2]="Class"})(P||(P={}));function E(tt){if(!(tt.flags&33555968))return;let Mt=tt.declarations&&Bn(tt.declarations,se=>!Li(se)&&!el(se));return Mt&&Mt.symbol}class F{constructor(Mt,se,pt,Z,Ee,et,at,Pt){this.sourceFiles=Mt,this.sourceFilesSet=se,this.specialSearchKind=pt,this.checker=Z,this.cancellationToken=Ee,this.searchMeaning=et,this.options=at,this.result=Pt,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=HI(),this.markSeenReExportRHS=HI(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(Mt){return this.sourceFilesSet.has(Mt.fileName)}getImportSearches(Mt,se){return this.importTracker||(this.importTracker=u_e(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(Mt,se,this.options.use===2)}createSearch(Mt,se,pt,Z={}){let{text:Ee=_d(kc(dA(se)||E(se)||se)),allSearchSymbols:et=[se]}=Z,at=gc(Ee),Pt=this.options.implementations&&Mt?wr(Mt,se,this.checker):void 0;return{symbol:se,comingFrom:pt,text:Ee,escapedText:at,parents:Pt,allSearchSymbols:et,includes:Le=>ws(et,Le)}}referenceAdder(Mt){let se=sa(Mt),pt=this.symbolIdToReferences[se];return pt||(pt=this.symbolIdToReferences[se]=[],this.result.push({definition:{type:0,symbol:Mt},references:pt})),(Z,Ee)=>pt.push(_y(Z,Ee))}addStringOrCommentReference(Mt,se){this.result.push({definition:void 0,references:[{kind:0,fileName:Mt,textSpan:se}]})}markSearchedSymbols(Mt,se){let pt=qa(Mt),Z=this.sourceFileToSeenSymbols[pt]||(this.sourceFileToSeenSymbols[pt]=new Set),Ee=!1;for(let et of se)Ee=Uy(Z,sa(et))||Ee;return Ee}}function O(tt,Mt,se,pt){let{importSearches:Z,singleReferences:Ee,indirectUsers:et}=pt.getImportSearches(Mt,se);if(Ee.length){let at=pt.referenceAdder(Mt);for(let Pt of Ee)z(Pt,pt)&&at(Pt)}for(let[at,Pt]of Z)ye(at.getSourceFile(),pt.createSearch(at,Pt,1),pt);if(et.length){let at;switch(se.exportKind){case 0:at=pt.createSearch(tt,Mt,1);break;case 1:at=pt.options.use===2?void 0:pt.createSearch(tt,Mt,1,{text:"default"});break;case 2:break}if(at)for(let Pt of et)X(Pt,at,pt)}}function W(tt,Mt,se,pt,Z,Ee,et,at){let Pt=u_e(tt,new Set(tt.map(Rt=>Rt.fileName)),Mt,se),{importSearches:Le,indirectUsers:kt,singleReferences:Tt}=Pt(pt,{exportKind:et?1:0,exportingModuleSymbol:Z},!1);for(let[Rt]of Le)at(Rt);for(let Rt of Tt)Be(Rt)&&Hm(Rt.parent)&&at(Rt);for(let Rt of kt)for(let Ye of le(Rt,et?"default":Ee)){let Gt=Mt.getSymbolAtLocation(Ye),ln=_t(Gt?.declarations,Ae=>!!Hn(Ae,Qo));Be(Ye)&&!lb(Ye.parent)&&(Gt===pt||ln)&&at(Ye)}}e.eachExportReference=W;function z(tt,Mt){return ge(tt,Mt)?Mt.options.use!==2?!0:!Be(tt)&&!lb(tt.parent)?!1:!(lb(tt.parent)&&xg(tt)):!1}function $(tt,Mt){if(tt.declarations)for(let se of tt.declarations){let pt=se.getSourceFile();ye(pt,Mt.createSearch(se,tt,0),Mt,Mt.includesSourceFile(pt))}}function X(tt,Mt,se){nH(tt).get(Mt.escapedText)!==void 0&&ye(tt,Mt,se)}function U(tt,Mt){return uv(tt.parent.parent)?Mt.getPropertySymbolOfDestructuringAssignment(tt):void 0}function _e(tt){let{declarations:Mt,flags:se,parent:pt,valueDeclaration:Z}=tt;if(Z&&(Z.kind===219||Z.kind===232))return Z;if(!Mt)return;if(se&8196){let at=Bn(Mt,Pt=>If(Pt,2)||Hu(Pt));return at?j0(at,264):void 0}if(Mt.some(bR))return;let Ee=pt&&!(tt.flags&262144);if(Ee&&!(a2(pt)&&!pt.globalExports))return;let et;for(let at of Mt){let Pt=Fk(at);if(et&&et!==Pt||!Pt||Pt.kind===308&&!xf(Pt))return;if(et=Pt,Ao(et)){let Le;for(;Le=Ez(et);)et=Le}}return Ee?et.getSourceFile():et}function re(tt,Mt,se,pt=se){return V(tt,Mt,se,()=>!0,pt)||!1}e.isSymbolReferencedInFile=re;function V(tt,Mt,se,pt,Z=se){let Ee=Tf(tt.parent,tt.parent.parent)?Ra(Mt.getSymbolsOfParameterPropertyDeclaration(tt.parent,tt.text)):Mt.getSymbolAtLocation(tt);if(Ee)for(let et of le(se,Ee.name,Z)){if(!Be(et)||et===tt||et.escapedText!==tt.escapedText)continue;let at=Mt.getSymbolAtLocation(et);if(at===Ee||Mt.getShorthandAssignmentValueSymbol(et.parent)===Ee||Xu(et.parent)&&ae(et,at,et.parent,Mt)===Ee){let Pt=pt(et);if(Pt)return Pt}}}e.eachSymbolReferenceInFile=V;function ce(tt,Mt){return Mn(le(Mt,tt),Z=>!!rA(Z)).reduce((Z,Ee)=>{let et=pt(Ee);return!_t(Z.declarationNames)||et===Z.depth?(Z.declarationNames.push(Ee),Z.depth=et):et<Z.depth&&(Z.declarationNames=[Ee],Z.depth=et),Z},{depth:1/0,declarationNames:[]}).declarationNames;function pt(Z){let Ee=0;for(;Z;)Z=Fk(Z),Ee++;return Ee}}e.getTopMostDeclarationNamesInFile=ce;function oe(tt,Mt,se,pt){if(!tt.name||!Be(tt.name))return!1;let Z=w.checkDefined(se.getSymbolAtLocation(tt.name));for(let Ee of Mt)for(let et of le(Ee,Z.name)){if(!Be(et)||et===tt.name||et.escapedText!==tt.name.escapedText)continue;let at=Yj(et),Pt=Ws(at.parent)&&at.parent.expression===at?at.parent:void 0,Le=se.getSymbolAtLocation(et);if(Le&&se.getRootSymbols(Le).some(kt=>kt===Z)&&pt(et,Pt))return!0}return!1}e.someSignatureUsage=oe;function le(tt,Mt,se=tt){return Ji(de(tt,Mt,se),pt=>{let Z=Kp(tt,pt);return Z===tt?void 0:Z})}function de(tt,Mt,se=tt){let pt=[];if(!Mt||!Mt.length)return pt;let Z=tt.text,Ee=Z.length,et=Mt.length,at=Z.indexOf(Mt,se.pos);for(;at>=0&&!(at>se.end);){let Pt=at+et;(at===0||!Qh(Z.charCodeAt(at-1),99))&&(Pt===Ee||!Qh(Z.charCodeAt(Pt),99))&&pt.push(at),at=Z.indexOf(Mt,at+et+1)}return pt}function ve(tt,Mt){let se=tt.getSourceFile(),pt=Mt.text,Z=Ji(le(se,pt,tt),Ee=>Ee===Mt||fR(Ee)&&Zj(Ee,pt)===Mt?_y(Ee):void 0);return[{definition:{type:1,node:Mt},references:Z}]}function H(tt,Mt){switch(tt.kind){case 81:if(X0(tt.parent))return!0;case 80:return tt.text.length===Mt.length;case 15:case 11:{let se=tt;return se.text.length===Mt.length&&(e5(se)||Cq(tt)||Ece(tt)||Ws(tt.parent)&&nk(tt.parent)&&tt.parent.arguments[1]===tt||lb(tt.parent))}case 9:return e5(tt)&&tt.text.length===Mt.length;case 90:return Mt.length===7;default:return!1}}function Se(tt,Mt){let se=Ma(tt,pt=>(Mt.throwIfCancellationRequested(),Ji(le(pt,"meta",pt),Z=>{let Ee=Z.parent;if(zw(Ee))return _y(Ee)})));return se.length?[{definition:{type:2,node:se[0].node},references:se}]:void 0}function Je(tt,Mt,se,pt){let Z=Ma(tt,Ee=>(se.throwIfCancellationRequested(),Ji(le(Ee,ta(Mt),Ee),et=>{if(et.kind===Mt&&(!pt||pt(et)))return _y(et)})));return Z.length?[{definition:{type:2,node:Z[0].node},references:Z}]:void 0}function ye(tt,Mt,se,pt=!0){return se.cancellationToken.throwIfCancellationRequested(),ee(tt,tt,Mt,se,pt)}function ee(tt,Mt,se,pt,Z){if(pt.markSearchedSymbols(Mt,se.allSearchSymbols))for(let Ee of de(Mt,se.text,tt))ke(Mt,Ee,se,pt,Z)}function ge(tt,Mt){return!!(Ok(tt)&Mt.searchMeaning)}function ke(tt,Mt,se,pt,Z){let Ee=Kp(tt,Mt);if(!H(Ee,se.text)){!pt.options.implementations&&(pt.options.findInStrings&&cC(tt,Mt)||pt.options.findInComments&&Uce(tt,Mt))&&pt.addStringOrCommentReference(tt.fileName,yu(Mt,se.text.length));return}if(!ge(Ee,pt))return;let et=pt.checker.getSymbolAtLocation(Ee);if(!et)return;let at=Ee.parent;if(gp(at)&&at.propertyName===Ee)return;if(Xu(at)){w.assert(Ee.kind===80||Ee.kind===11),nt(Ee,et,at,se,pt,Z);return}if(OP(at)&&at.isNameFirst&&at.typeExpression&&xk(at.typeExpression.type)&&at.typeExpression.type.jsDocPropertyTags&&Dr(at.typeExpression.type.jsDocPropertyTags)){Oe(at.typeExpression.type.jsDocPropertyTags,Ee,se,pt);return}let Pt=tn(se,et,Ee,pt);if(!Pt){Ne(et,se,pt);return}switch(pt.specialSearchKind){case 0:Z&&Ie(Ee,Pt,pt);break;case 1:xe(Ee,tt,se,pt);break;case 2:Qe(Ee,se,pt);break;default:w.assertNever(pt.specialSearchKind)}dn(Ee)&&Da(Ee.parent)&&SS(Ee.parent.parent.parent)&&(et=Ee.parent.symbol,!et)||te(Ee,et,se,pt)}function Oe(tt,Mt,se,pt){let Z=pt.referenceAdder(se.symbol);Ie(Mt,se.symbol,pt),or(tt,Ee=>{Ip(Ee.name)&&Z(Ee.name.left)})}function nt(tt,Mt,se,pt,Z,Ee,et){w.assert(!et||!!Z.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");let{parent:at,propertyName:Pt,name:Le}=se,kt=at.parent,Tt=ae(tt,Mt,se,Z.checker);if(!et&&!pt.includes(Tt))return;if(Pt?tt===Pt?(kt.moduleSpecifier||Rt(),Ee&&Z.options.use!==2&&Z.markSeenReExportRHS(Le)&&Ie(Le,w.checkDefined(se.symbol),Z)):Z.markSeenReExportRHS(tt)&&Rt():Z.options.use===2&&xg(Le)||Rt(),!Ds(Z.options)||et){let Gt=xg(tt)||xg(se.name)?1:0,ln=w.checkDefined(se.symbol),Ae=p_e(ln,Gt,Z.checker);Ae&&O(tt,ln,Ae,Z)}if(pt.comingFrom!==1&&kt.moduleSpecifier&&!Pt&&!Ds(Z.options)){let Ye=Z.checker.getExportSpecifierLocalTargetSymbol(se);Ye&&$(Ye,Z)}function Rt(){Ee&&Ie(tt,Tt,Z)}}function ae(tt,Mt,se,pt){return Ue(tt,se)&&pt.getExportSpecifierLocalTargetSymbol(se)||Mt}function Ue(tt,Mt){let{parent:se,propertyName:pt,name:Z}=Mt;return w.assert(pt===tt||Z===tt),pt?pt===tt:!se.parent.moduleSpecifier}function te(tt,Mt,se,pt){let Z=bNe(tt,Mt,pt.checker,se.comingFrom===1);if(!Z)return;let{symbol:Ee}=Z;Z.kind===0?Ds(pt.options)||$(Ee,pt):O(tt,Ee,Z.exportInfo,pt)}function Ne({flags:tt,valueDeclaration:Mt},se,pt){let Z=pt.checker.getShorthandAssignmentValueSymbol(Mt),Ee=Mt&&Ss(Mt);!(tt&33554432)&&Ee&&se.includes(Z)&&Ie(Ee,Z,pt)}function Ie(tt,Mt,se){let{kind:pt,symbol:Z}="kind"in Mt?Mt:{kind:void 0,symbol:Mt};if(se.options.use===2&&tt.kind===90)return;let Ee=se.referenceAdder(Z);se.options.implementations?qt(tt,Ee,se):Ee(tt,pt)}function xe(tt,Mt,se,pt){CE(tt)&&Ie(tt,se.symbol,pt);let Z=()=>pt.referenceAdder(se.symbol);if(ni(tt.parent))w.assert(tt.kind===90||tt.parent.name===tt),St(se.symbol,Mt,Z());else{let Ee=oa(tt);Ee&&(fr(Ee,Z()),ft(Ee,pt))}}function Qe(tt,Mt,se){Ie(tt,Mt.symbol,se);let pt=tt.parent;if(se.options.use===2||!ni(pt))return;w.assert(pt.name===tt);let Z=se.referenceAdder(Mt.symbol);for(let Ee of pt.members)n2(Ee)&&Ks(Ee)&&Ee.body&&Ee.body.forEachChild(function et(at){at.kind===110?Z(at):!Fs(at)&&!ni(at)&&at.forEachChild(et)})}function St(tt,Mt,se){let pt=Bt(tt);if(pt&&pt.declarations)for(let Z of pt.declarations){let Ee=lo(Z,137,Mt);w.assert(Z.kind===177&&!!Ee),se(Ee)}tt.exports&&tt.exports.forEach(Z=>{let Ee=Z.valueDeclaration;if(Ee&&Ee.kind===175){let et=Ee.body;et&&js(et,110,at=>{CE(at)&&se(at)})}})}function Bt(tt){return tt.members&&tt.members.get("__constructor")}function fr(tt,Mt){let se=Bt(tt.symbol);if(se&&se.declarations)for(let pt of se.declarations){w.assert(pt.kind===177);let Z=pt.body;Z&&js(Z,108,Ee=>{yq(Ee)&&Mt(Ee)})}}function Mr(tt){return!!Bt(tt.symbol)}function ft(tt,Mt){if(Mr(tt))return;let se=tt.symbol,pt=Mt.createSearch(void 0,se,void 0);T(se,Mt,pt)}function qt(tt,Mt,se){if(Ig(tt)&&ei(tt.parent)){Mt(tt);return}if(tt.kind!==80)return;tt.parent.kind===305&&Mi(tt,se.checker,Mt);let pt=Hr(tt);if(pt){Mt(pt);return}let Z=vr(tt,at=>!Ip(at.parent)&&!yi(at.parent)&&!dS(at.parent)),Ee=Z.parent;if(yF(Ee)&&Ee.type===Z&&se.markSeenContainingTypeReference(Ee))if(Hy(Ee))et(Ee.initializer);else if(Fs(Ee)&&Ee.body){let at=Ee.body;at.kind===242?hb(at,Pt=>{Pt.expression&&et(Pt.expression)}):et(at)}else(gS(Ee)||gI(Ee))&&et(Ee.expression);function et(at){bi(at)&&Mt(at)}}function Hr(tt){return Be(tt)||Ln(tt)?Hr(tt.parent):sy(tt)?Hn(tt.parent.parent,vf(ni,uu)):void 0}function bi(tt){switch(tt.kind){case 218:return bi(tt.expression);case 220:case 219:case 211:case 232:case 210:return!0;default:return!1}}function us(tt,Mt,se,pt){if(tt===Mt)return!0;let Z=sa(tt)+","+sa(Mt),Ee=se.get(Z);if(Ee!==void 0)return Ee;se.set(Z,!1);let et=!!tt.declarations&&tt.declarations.some(at=>nA(at).some(Pt=>{let Le=pt.getTypeAtLocation(Pt);return!!Le&&!!Le.symbol&&us(Le.symbol,Mt,se,pt)}));return se.set(Z,et),et}function At(tt){let Mt=t6(tt,!1);if(!Mt)return;let se=256;switch(Mt.kind){case 173:case 172:case 175:case 174:case 177:case 178:case 179:se&=Xy(Mt),Mt=Mt.parent;break;default:return}let pt=Mt.getSourceFile(),Z=Ji(le(pt,"super",Mt),Ee=>{if(Ee.kind!==108)return;let et=t6(Ee,!1);return et&&Ks(et)===!!se&&et.parent.symbol===Mt.symbol?_y(Ee):void 0});return[{definition:{type:0,symbol:Mt.symbol},references:Z}]}function Un(tt){return tt.kind===80&&tt.parent.kind===170&&tt.parent.name===tt}function rs(tt,Mt,se){let pt=fp(tt,!1,!1),Z=256;switch(pt.kind){case 175:case 174:if(pd(pt)){Z&=Xy(pt),pt=pt.parent;break}case 173:case 172:case 177:case 178:case 179:Z&=Xy(pt),pt=pt.parent;break;case 308:if(Pl(pt)||Un(tt))return;case 263:case 219:break;default:return}let Ee=Ma(pt.kind===308?Mt:[pt.getSourceFile()],at=>(se.throwIfCancellationRequested(),le(at,"this",Li(pt)?at:pt).filter(Pt=>{if(!VI(Pt))return!1;let Le=fp(Pt,!1,!1);if(!rm(Le))return!1;switch(pt.kind){case 219:case 263:return pt.symbol===Le.symbol;case 175:case 174:return pd(pt)&&pt.symbol===Le.symbol;case 232:case 264:case 211:return Le.parent&&rm(Le.parent)&&pt.symbol===Le.parent.symbol&&Ks(Le)===!!Z;case 308:return Le.kind===308&&!Pl(Le)&&!Un(Pt)}}))).map(at=>_y(at));return[{definition:{type:3,node:fo(Ee,at=>Gi(at.node.parent)?at.node:void 0)||tt},references:Ee}]}function zn(tt,Mt,se,pt){let Z=i5(tt,se),Ee=Ma(Mt,et=>(pt.throwIfCancellationRequested(),Ji(le(et,tt.text),at=>{if(Ha(at)&&at.text===tt.text)if(Z){let Pt=i5(at,se);if(Z!==se.getStringType()&&(Z===Pt||Sn(at,se)))return _y(at,2)}else return mk(at)&&!uk(at,et)?void 0:_y(at,2)})));return[{definition:{type:4,node:tt},references:Ee}]}function Sn(tt,Mt){if(mp(tt.parent))return Mt.getPropertyOfType(Mt.getTypeAtLocation(tt.parent.parent),tt.text)}function _i(tt,Mt,se,pt,Z,Ee){let et=[];return qe(tt,Mt,se,pt,!(pt&&Z),(at,Pt,Le)=>{Le&&ar(tt)!==ar(Le)&&(Le=void 0),et.push(Le||Pt||at)},()=>!Ee),et}function qe(tt,Mt,se,pt,Z,Ee,et){let at=LR(Mt);if(at){let Gt=se.getShorthandAssignmentValueSymbol(Mt.parent);if(Gt&&pt)return Ee(Gt,void 0,void 0,3);let ln=se.getContextualType(at.parent),Ae=ln&&fo(Y5(at,se,ln,!0),je=>Rt(je,4));if(Ae)return Ae;let wt=U(Mt,se),fe=wt&&Ee(wt,void 0,void 0,4);if(fe)return fe;let j=Gt&&Ee(Gt,void 0,void 0,3);if(j)return j}let Pt=o(Mt,tt,se);if(Pt){let Gt=Ee(Pt,void 0,void 0,1);if(Gt)return Gt}let Le=Rt(tt);if(Le)return Le;if(tt.valueDeclaration&&Tf(tt.valueDeclaration,tt.valueDeclaration.parent)){let Gt=se.getSymbolsOfParameterPropertyDeclaration(Zs(tt.valueDeclaration,Gi),tt.name);return w.assert(Gt.length===2&&!!(Gt[0].flags&1)&&!!(Gt[1].flags&4)),Rt(tt.flags&1?Gt[1]:Gt[0])}let kt=$o(tt,282);if(!pt||kt&&!kt.propertyName){let Gt=kt&&se.getExportSpecifierLocalTargetSymbol(kt);if(Gt){let ln=Ee(Gt,void 0,void 0,1);if(ln)return ln}}if(!pt){let Gt;return Z?Gt=bR(Mt.parent)?g5(se,Mt.parent):void 0:Gt=Ye(tt,se),Gt&&Rt(Gt,4)}if(w.assert(pt),Z){let Gt=Ye(tt,se);return Gt&&Rt(Gt,4)}function Rt(Gt,ln){return fo(se.getRootSymbols(Gt),Ae=>Ee(Gt,Ae,void 0,ln)||(Ae.parent&&Ae.parent.flags&96&&et(Ae)?bt(Ae.parent,Ae.name,se,wt=>Ee(Gt,Ae,wt,ln)):void 0))}function Ye(Gt,ln){let Ae=$o(Gt,209);if(Ae&&bR(Ae))return g5(ln,Ae)}}function bt(tt,Mt,se,pt){let Z=new Set;return Ee(tt);function Ee(et){if(!(!(et.flags&96)||!dd(Z,et)))return fo(et.declarations,at=>fo(nA(at),Pt=>{let Le=se.getTypeAtLocation(Pt),kt=Le.symbol&&se.getPropertyOfType(Le,Mt);return kt&&fo(se.getRootSymbols(kt),pt)||Le.symbol&&Ee(Le.symbol)}))}}function ar(tt){return tt.valueDeclaration?!!(Mu(tt.valueDeclaration)&256):!1}function tn(tt,Mt,se,pt){let{checker:Z}=pt;return qe(Mt,se,Z,!1,pt.options.use!==2||!!pt.options.providePrefixAndSuffixTextForRename,(Ee,et,at,Pt)=>(at&&ar(Mt)!==ar(at)&&(at=void 0),tt.includes(at||et||Ee)?{symbol:et&&!(Cc(Ee)&6)?et:Ee,kind:Pt}:void 0),Ee=>!(tt.parents&&!tt.parents.some(et=>us(Ee.parent,et,pt.inheritsFromCache,Z))))}function Xn(tt,Mt){let se=Ok(tt),{declarations:pt}=Mt;if(pt){let Z;do{Z=se;for(let Ee of pt){let et=Kj(Ee);et&se&&(se|=et)}}while(se!==Z)}return se}e.getIntersectingMeaningFromDeclarations=Xn;function ei(tt){return tt.flags&33554432?!(uu(tt)||gd(tt)):VP(tt)?Hy(tt):yo(tt)?!!tt.body:ni(tt)||WM(tt)}function Mi(tt,Mt,se){let pt=Mt.getSymbolAtLocation(tt),Z=Mt.getShorthandAssignmentValueSymbol(pt.valueDeclaration);if(Z)for(let Ee of Z.getDeclarations())Kj(Ee)&1&&se(Ee)}e.getReferenceEntriesForShorthandPropertyAssignment=Mi;function js(tt,Mt,se){Ms(tt,pt=>{pt.kind===Mt&&se(pt),js(pt,Mt,se)})}function oa(tt){return aG(Yj(tt).parent)}function wr(tt,Mt,se){let pt=UI(tt)?tt.parent:void 0,Z=pt&&se.getTypeAtLocation(pt.expression),Ee=Ji(Z&&(Z.isUnionOrIntersection()?Z.types:Z.symbol===Mt.parent?void 0:[Z]),et=>et.symbol&&et.symbol.flags&96?et.symbol:void 0);return Ee.length===0?void 0:Ee}function Ds(tt){return tt.use===2&&tt.providePrefixAndSuffixTextForRename}})(bC||(bC={}));var aD={};it(aD,{createDefinitionInfo:()=>QR,getDefinitionAndBoundSpan:()=>Mtt,getDefinitionAtPosition:()=>ENe,getReferenceAtPosition:()=>MNe,getTypeDefinitionAtPosition:()=>Ett});function ENe(e,t,n,i,s){var o;let c=MNe(t,n,e),p=c&&[Ltt(c.reference.fileName,c.fileName,c.unverified)]||Ke;if(c?.file)return p;let u=Kp(t,n);if(u===t)return;let{parent:g}=u,d=e.getTypeChecker();if(u.kind===164||Be(u)&&h7(g)&&g.tagName===u){let E=Dtt(d,u);if(E!==void 0||u.kind!==164)return E||Ke}if(fR(u)){let E=Zj(u.parent,u.text);return E?[g_e(d,E,"label",u.text,void 0)]:void 0}switch(u.kind){case 90:if(!qA(u.parent))break;case 84:let E=vr(u.parent,UA);if(E)return[jtt(E,t)];break}let h;switch(u.kind){case 107:case 135:case 127:h=yo;let E=vr(u,h);return E?[y_e(d,E)]:void 0}if(W2(u)&&zc(u.parent)){let E=u.parent.parent,{symbol:F,failedAliasResolution:O}=HH(E,d,s),W=Mn(E.members,zc),z=F?d.symbolToString(F,E):"",$=u.getSourceFile();return kr(W,X=>{let{pos:U}=Um(X);return U=ha($.text,U),g_e(d,X,"constructor","static {}",z,!1,O,{start:U,length:6})})}let{symbol:S,failedAliasResolution:T}=HH(u,d,s),x=u;if(i&&T){let E=or([u,...S?.declarations||Ke],O=>vr(O,Rte)),F=E&&_2(E);F&&({symbol:S,failedAliasResolution:T}=HH(F,d,s),x=F)}if(!S&&m5(x)){let E=(o=e.getResolvedModuleFromModuleSpecifier(x,t))==null?void 0:o.resolvedModule;if(E)return[{name:x.text,fileName:E.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:yu(0,0),failedAliasResolution:T,isAmbient:Kl(E.resolvedFileName),unverified:x!==u}]}if(la(u)&&(cl(g)||Vl(g))&&(S=g.symbol),!S)return Qi(p,Rtt(u,d));if(i&&Fi(S.declarations,E=>E.getSourceFile().fileName===t.fileName))return;let I=Btt(d,u);if(I&&!(Qu(u.parent)&&ztt(I))){let E=y_e(d,I,T),F=W=>W!==I;if(d.getRootSymbols(S).some(W=>Itt(W,I))){if(!yc(I))return[E];F=W=>W!==I&&(hl(W)||Zc(W))}let O=QE(d,S,u,T,F)||Ke;return u.kind===108?[E,...O]:[...O,E]}if(u.parent.kind===305){let E=d.getShorthandAssignmentValueSymbol(S.valueDeclaration),F=E?.declarations?E.declarations.map(O=>QR(O,d,E,u,!1,T)):Ke;return Qi(F,NNe(d,u))}if(ol(u)&&Da(g)&&o_(g.parent)&&u===(g.propertyName||g.name)){let E=vR(u),F=d.getTypeAtLocation(g.parent);return E===void 0?Ke:Ma(F.isUnion()?F.types:[F],O=>{let W=O.getProperty(E);return W&&QE(d,W,u)})}let P=NNe(d,u);return Qi(p,P.length?P:QE(d,S,u,T))}function Itt(e,t){var n;return e===t.symbol||e===t.symbol.parent||Hl(t.parent)||!mS(t.parent)&&e===((n=Hn(t.parent,rm))==null?void 0:n.symbol)}function NNe(e,t){let n=LR(t);if(n){let i=n&&e.getContextualType(n.parent);if(i)return Ma(Y5(n,e,i,!1),s=>QE(e,s,t))}return Ke}function Dtt(e,t){let n=vr(t,cl);if(!(n&&n.name))return;let i=vr(n,ni);if(!i)return;let s=im(i);if(!s)return;let o=Qa(s.expression),c=Zc(o)?o.symbol:e.getSymbolAtLocation(o);if(!c)return;let p=Cl(n)?e.getTypeOfSymbol(c):e.getDeclaredTypeOfSymbol(c),u;if(na(n.name)){let g=e.getSymbolAtLocation(n.name);if(!g)return;oA(g)?u=Bn(e.getPropertiesOfType(p),d=>d.escapedName===g.escapedName):u=e.getPropertyOfType(p,Ai(g.escapedName))}else u=e.getPropertyOfType(p,Ai(p2(n.name)));if(u)return QE(e,u,t)}function MNe(e,t,n){var i,s;let o=KR(e.referencedFiles,t);if(o){let u=n.getSourceFileFromReference(e,o);return u&&{reference:o,fileName:u.fileName,file:u,unverified:!1}}let c=KR(e.typeReferenceDirectives,t);if(c){let u=(i=n.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(c,e))==null?void 0:i.resolvedTypeReferenceDirective,g=u&&n.getSourceFile(u.resolvedFileName);return g&&{reference:c,fileName:g.fileName,file:g,unverified:!1}}let p=KR(e.libReferenceDirectives,t);if(p){let u=n.getLibFileFromReference(p);return u&&{reference:p,fileName:u.fileName,file:u,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){let u=$I(e,t),g;if(m5(u)&&Ul(u.text)&&(g=n.getResolvedModuleFromModuleSpecifier(u,e))){let d=(s=g.resolvedModule)==null?void 0:s.resolvedFileName,h=d||ib(ti(e.fileName),u.text);return{file:n.getSourceFile(h),fileName:h,reference:{pos:u.getStart(),end:u.getEnd(),fileName:u.text},unverified:!d}}}}var RNe=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"]);function Ptt(e,t){let n=t.symbol.name;if(!RNe.has(n))return!1;let i=e.resolveName(n,void 0,788968,!1);return!!i&&i===t.target.symbol}function ONe(e,t){if(!t.aliasSymbol)return!1;let n=t.aliasSymbol.name;if(!RNe.has(n))return!1;let i=e.resolveName(n,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function Att(e,t,n,i){var s,o;if(jn(t)&4&&Ptt(e,t))return HR(e.getTypeArguments(t)[0],e,n,i);if(ONe(e,t)&&t.aliasTypeArguments)return HR(t.aliasTypeArguments[0],e,n,i);if(jn(t)&32&&t.target&&ONe(e,t.target)){let c=(o=(s=t.aliasSymbol)==null?void 0:s.declarations)==null?void 0:o[0];if(c&&gd(c)&&Pf(c.type)&&c.type.typeArguments)return HR(e.getTypeAtLocation(c.type.typeArguments[0]),e,n,i)}return[]}function Ett(e,t,n){let i=Kp(t,n);if(i===t)return;if(zw(i.parent)&&i.parent.name===i)return HR(e.getTypeAtLocation(i.parent),e,i.parent,!1);let{symbol:s,failedAliasResolution:o}=HH(i,e,!1);if(la(i)&&(cl(i.parent)||Vl(i.parent))&&(s=i.parent.symbol,o=!1),!s)return;let c=e.getTypeOfSymbolAtLocation(s,i),p=Ntt(s,c,e),u=p&&HR(p,e,i,o),[g,d]=u&&u.length!==0?[p,u]:[c,HR(c,e,i,o)];return d.length?[...Att(e,g,i,o),...d]:!(s.flags&111551)&&s.flags&788968?QE(e,vu(s,e),i,o):void 0}function HR(e,t,n,i){return Ma(e.isUnion()&&!(e.flags&32)?e.types:[e],s=>s.symbol&&QE(t,s.symbol,n,i))}function Ntt(e,t,n){if(t.symbol===e||e.valueDeclaration&&t.symbol&&li(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){let i=t.getCallSignatures();if(i.length===1)return n.getReturnTypeOfSignature(Ra(i))}}function Mtt(e,t,n){let i=ENe(e,t,n);if(!i||i.length===0)return;let s=KR(t.referencedFiles,n)||KR(t.typeReferenceDirectives,n)||KR(t.libReferenceDirectives,n);if(s)return{definitions:i,textSpan:pv(s)};let o=Kp(t,n),c=yu(o.getStart(),o.getWidth());return{definitions:i,textSpan:c}}function Rtt(e,t){return Ji(t.getIndexInfosAtLocation(e),n=>n.declaration&&y_e(t,n.declaration))}function HH(e,t,n){let i=t.getSymbolAtLocation(e),s=!1;if(i?.declarations&&i.flags&2097152&&!n&&Ott(e,i.declarations[0])){let o=t.getAliasedSymbol(i);if(o.declarations)return{symbol:o};s=!0}return{symbol:i,failedAliasResolution:s}}function Ott(e,t){return e.kind!==80&&(e.kind!==11||!lb(e.parent))?!1:e.parent===t?!0:t.kind!==275}function Ftt(e){if(!XP(e))return!1;let t=vr(e,n=>Hl(n)?!0:XP(n)?!1:"quit");return!!t&&Hc(t)===5}function QE(e,t,n,i,s){let o=s!==void 0?Mn(t.declarations,s):t.declarations,c=!s&&(g()||d());if(c)return c;let p=Mn(o,S=>!Ftt(S)),u=_t(p)?p:o;return kr(u,S=>QR(S,e,t,n,!1,i));function g(){if(t.flags&32&&!(t.flags&19)&&(CE(n)||n.kind===137)){let S=Bn(o,ni);return S&&h(S.members,!0)}}function d(){return vq(n)||wq(n)?h(o,!1):void 0}function h(S,T){if(!S)return;let x=S.filter(T?yc:Fs),I=x.filter(P=>!!P.body);return x.length?I.length!==0?I.map(P=>QR(P,e,t,n)):[QR(ka(x),e,t,n,!1,i)]:void 0}}function QR(e,t,n,i,s,o){let c=t.symbolToString(n),p=dv.getSymbolKind(t,n,i),u=n.parent?t.symbolToString(n.parent,i):"";return g_e(t,e,p,c,u,s,o)}function g_e(e,t,n,i,s,o,c,p){let u=t.getSourceFile();if(!p){let g=Ss(t)||t;p=Np(g,u)}return{fileName:u.fileName,textSpan:p,kind:n,name:i,containerKind:void 0,containerName:s,...jo.toContextSpan(p,u,jo.getContextNode(t)),isLocal:!h_e(e,t),isAmbient:!!(t.flags&33554432),unverified:o,failedAliasResolution:c}}function jtt(e,t){let n=jo.getContextNode(e),i=Np(__e(n)?n.start:n,t);return{fileName:t.fileName,textSpan:i,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...jo.toContextSpan(i,t,n),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function h_e(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Hy(t.parent)&&t.parent.initializer===t)return h_e(e,t.parent);switch(t.kind){case 173:case 178:case 179:case 175:if(If(t,2))return!1;case 177:case 304:case 305:case 211:case 232:case 220:case 219:return h_e(e,t.parent);default:return!1}}function y_e(e,t,n){return QR(t,e,t.symbol,t,!1,n)}function KR(e,t){return Bn(e,n=>xM(n,t))}function Ltt(e,t,n){return{fileName:t,textSpan:$c(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:n}}function Wtt(e){let t=vr(e,i=>!UI(i)),n=t?.parent;return n&&mS(n)&&JF(n)===t?n:void 0}function Btt(e,t){let n=Wtt(t),i=n&&e.getResolvedSignature(n);return Hn(i&&i.declaration,s=>Fs(s)&&!Pg(s))}function ztt(e){switch(e.kind){case 177:case 186:case 180:case 181:return!0;default:return!1}}var QH={};it(QH,{provideInlayHints:()=>Vtt});var Gtt=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`);function Jtt(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function Utt(e){return e.includeInlayParameterNameHints==="literals"}function v_e(e){return e.interactiveInlayHints===!0}function Vtt(e){let{file:t,program:n,span:i,cancellationToken:s,preferences:o}=e,c=t.text,p=n.getCompilerOptions(),u=Mf(t,o),g=n.getTypeChecker(),d=[];return h(t),d;function h(ye){if(!(!ye||ye.getFullWidth()===0)){switch(ye.kind){case 268:case 264:case 265:case 263:case 232:case 219:case 175:case 220:s.throwIfCancellationRequested()}if(CM(i,ye.pos,ye.getFullWidth())&&!(yi(ye)&&!sy(ye)))return o.includeInlayVariableTypeHints&&li(ye)||o.includeInlayPropertyDeclarationTypeHints&&hs(ye)?F(ye):o.includeInlayEnumMemberValueHints&&oy(ye)?P(ye):Jtt(o)&&(Ws(ye)||WS(ye))?O(ye):(o.includeInlayFunctionParameterTypeHints&&yo(ye)&&U8(ye)&&_e(ye),o.includeInlayFunctionLikeReturnTypeHints&&S(ye)&&X(ye)),Ms(ye,h)}}function S(ye){return Fo(ye)||Ao(ye)||Gc(ye)||hc(ye)||B_(ye)}function T(ye,ee,ge,ke){let Oe=`${ke?"...":""}${ye}`,nt;v_e(o)?(nt=[Je(Oe,ee),{text:":"}],Oe=""):Oe+=":",d.push({text:Oe,position:ge,kind:"Parameter",whitespaceAfter:!0,displayParts:nt})}function x(ye,ee){d.push({text:typeof ye=="string"?`: ${ye}`:"",displayParts:typeof ye=="string"?void 0:[{text:": "},...ye],position:ee,kind:"Type",whitespaceBefore:!0})}function I(ye,ee){d.push({text:`= ${ye}`,position:ee,kind:"Enum",whitespaceBefore:!0})}function P(ye){if(ye.initializer)return;let ee=g.getConstantValue(ye);ee!==void 0&&I(ee.toString(),ye.end)}function E(ye){return ye.symbol&&ye.symbol.flags&1536}function F(ye){if(ye.initializer===void 0&&!(hs(ye)&&!(g.getTypeAtLocation(ye).flags&1))||Ls(ye.name)||li(ye)&&!Se(ye)||ml(ye))return;let ge=g.getTypeAtLocation(ye);if(E(ge))return;let ke=le(ge);if(ke){let Oe=typeof ke=="string"?ke:ke.map(ae=>ae.text).join("");if(o.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&tb(ye.name.getText(),Oe))return;x(ke,ye.name.end)}}function O(ye){let ee=ye.arguments;if(!ee||!ee.length)return;let ge=g.getResolvedSignature(ye);if(ge===void 0)return;let ke=0;for(let Oe of ee){let nt=Qa(Oe);if(Utt(o)&&!$(nt)){ke++;continue}let ae=0;if(z_(nt)){let te=g.getTypeAtLocation(nt.expression);if(g.isTupleType(te)){let{elementFlags:Ne,fixedLength:Ie}=te.target;if(Ie===0)continue;let xe=Tc(Ne,St=>!(St&1));(xe<0?Ie:xe)>0&&(ae=xe<0?Ie:xe)}}let Ue=g.getParameterIdentifierInfoAtPosition(ge,ke);if(ke=ke+(ae||1),Ue){let{parameter:te,parameterName:Ne,isRestParameter:Ie}=Ue;if(!(o.includeInlayParameterNameHintsWhenArgumentMatchesName||!W(nt,Ne))&&!Ie)continue;let Qe=Ai(Ne);if(z(nt,Qe))continue;T(Qe,te,Oe.getStart(),Ie)}}}function W(ye,ee){return Be(ye)?ye.text===ee:Ln(ye)?ye.name.text===ee:!1}function z(ye,ee){if(!af(ee,xa(p),j6(t.scriptKind)))return!1;let ge=nh(c,ye.pos);if(!ge?.length)return!1;let ke=Gtt(ee);return _t(ge,Oe=>ke.test(c.substring(Oe.pos,Oe.end)))}function $(ye){switch(ye.kind){case 225:{let ee=ye.operand;return $T(ee)||Be(ee)&&AA(ee.escapedText)}case 112:case 97:case 106:case 15:case 229:return!0;case 80:{let ee=ye.escapedText;return H(ee)||AA(ee)}}return $T(ye)}function X(ye){if(Fo(ye)&&!lo(ye,21,t)||wf(ye)||!ye.body)return;let ge=g.getSignatureFromDeclaration(ye);if(!ge)return;let ke=g.getTypePredicateOfSignature(ge);if(ke?.type){let ae=de(ke);if(ae){x(ae,U(ye));return}}let Oe=g.getReturnTypeOfSignature(ge);if(E(Oe))return;let nt=le(Oe);nt&&x(nt,U(ye))}function U(ye){let ee=lo(ye,22,t);return ee?ee.end:ye.parameters.end}function _e(ye){let ee=g.getSignatureFromDeclaration(ye);if(!ee)return;let ge=0;for(let ke of ye.parameters)Se(ke)&&re(ke,bb(ke)?ee.thisParameter:ee.parameters[ge]),!bb(ke)&&ge++}function re(ye,ee){if(ml(ye)||ee===void 0)return;let ke=V(ee);ke!==void 0&&x(ke,ye.questionToken?ye.questionToken.end:ye.name.end)}function V(ye){let ee=ye.valueDeclaration;if(!ee||!Gi(ee))return;let ge=g.getTypeOfSymbolAtLocation(ye,ee);if(!E(ge))return le(ge)}function ce(ye){let ge=HS();return Fw(ke=>{let Oe=g.typeToTypeNode(ye,void 0,71286784);w.assertIsDefined(Oe,"should always get typenode"),ge.writeNode(4,Oe,t,ke)})}function oe(ye){let ge=HS();return Fw(ke=>{let Oe=g.typePredicateToTypePredicateNode(ye,void 0,71286784);w.assertIsDefined(Oe,"should always get typePredicateNode"),ge.writeNode(4,Oe,t,ke)})}function le(ye){if(!v_e(o))return ce(ye);let ge=g.typeToTypeNode(ye,void 0,71286784);return w.assertIsDefined(ge,"should always get typeNode"),ve(ge)}function de(ye){if(!v_e(o))return oe(ye);let ge=g.typePredicateToTypePredicateNode(ye,void 0,71286784);return w.assertIsDefined(ge,"should always get typenode"),ve(ge)}function ve(ye){let ee=[];return ge(ye),ee;function ge(ae){var Ue,te;if(!ae)return;let Ne=ta(ae.kind);if(Ne){ee.push({text:Ne});return}if($T(ae)){ee.push({text:nt(ae)});return}switch(ae.kind){case 80:w.assertNode(ae,Be);let Ie=Fn(ae),xe=ae.symbol&&ae.symbol.declarations&&ae.symbol.declarations.length&&Ss(ae.symbol.declarations[0]);xe?ee.push(Je(Ie,xe)):ee.push({text:Ie});break;case 167:w.assertNode(ae,Ip),ge(ae.left),ee.push({text:"."}),ge(ae.right);break;case 183:w.assertNode(ae,z2),ae.assertsModifier&&ee.push({text:"asserts "}),ge(ae.parameterName),ae.type&&(ee.push({text:" is "}),ge(ae.type));break;case 184:w.assertNode(ae,Pf),ge(ae.typeName),ae.typeArguments&&(ee.push({text:"<"}),Oe(ae.typeArguments,", "),ee.push({text:">"}));break;case 169:w.assertNode(ae,Ho),ae.modifiers&&Oe(ae.modifiers," "),ge(ae.name),ae.constraint&&(ee.push({text:" extends "}),ge(ae.constraint)),ae.default&&(ee.push({text:" = "}),ge(ae.default));break;case 170:w.assertNode(ae,Gi),ae.modifiers&&Oe(ae.modifiers," "),ae.dotDotDotToken&&ee.push({text:"..."}),ge(ae.name),ae.questionToken&&ee.push({text:"?"}),ae.type&&(ee.push({text:": "}),ge(ae.type));break;case 186:w.assertNode(ae,fI),ee.push({text:"new "}),ke(ae),ee.push({text:" => "}),ge(ae.type);break;case 187:w.assertNode(ae,FS),ee.push({text:"typeof "}),ge(ae.exprName),ae.typeArguments&&(ee.push({text:"<"}),Oe(ae.typeArguments,", "),ee.push({text:">"}));break;case 188:w.assertNode(ae,Dp),ee.push({text:"{"}),ae.members.length&&(ee.push({text:" "}),Oe(ae.members,"; "),ee.push({text:" "})),ee.push({text:"}"});break;case 189:w.assertNode(ae,l4),ge(ae.elementType),ee.push({text:"[]"});break;case 190:w.assertNode(ae,G2),ee.push({text:"["}),Oe(ae.elements,", "),ee.push({text:"]"});break;case 203:w.assertNode(ae,_I),ae.dotDotDotToken&&ee.push({text:"..."}),ge(ae.name),ae.questionToken&&ee.push({text:"?"}),ee.push({text:": "}),ge(ae.type);break;case 191:w.assertNode(ae,l7),ge(ae.type),ee.push({text:"?"});break;case 192:w.assertNode(ae,u7),ee.push({text:"..."}),ge(ae.type);break;case 193:w.assertNode(ae,sv),Oe(ae.types," | ");break;case 194:w.assertNode(ae,J2),Oe(ae.types," & ");break;case 195:w.assertNode(ae,jS),ge(ae.checkType),ee.push({text:" extends "}),ge(ae.extendsType),ee.push({text:" ? "}),ge(ae.trueType),ee.push({text:" : "}),ge(ae.falseType);break;case 196:w.assertNode(ae,gk),ee.push({text:"infer "}),ge(ae.typeParameter);break;case 197:w.assertNode(ae,hk),ee.push({text:"("}),ge(ae.type),ee.push({text:")"});break;case 199:w.assertNode(ae,J0),ee.push({text:`${ta(ae.operator)} `}),ge(ae.type);break;case 200:w.assertNode(ae,LS),ge(ae.objectType),ee.push({text:"["}),ge(ae.indexType),ee.push({text:"]"});break;case 201:w.assertNode(ae,yk),ee.push({text:"{ "}),ae.readonlyToken&&(ae.readonlyToken.kind===40?ee.push({text:"+"}):ae.readonlyToken.kind===41&&ee.push({text:"-"}),ee.push({text:"readonly "})),ee.push({text:"["}),ge(ae.typeParameter),ae.nameType&&(ee.push({text:" as "}),ge(ae.nameType)),ee.push({text:"]"}),ae.questionToken&&(ae.questionToken.kind===40?ee.push({text:"+"}):ae.questionToken.kind===41&&ee.push({text:"-"}),ee.push({text:"?"})),ee.push({text:": "}),ae.type&&ge(ae.type),ee.push({text:"; }"});break;case 202:w.assertNode(ae,av),ge(ae.literal);break;case 185:w.assertNode(ae,Pg),ke(ae),ee.push({text:" => "}),ge(ae.type);break;case 206:w.assertNode(ae,Hm),ae.isTypeOf&&ee.push({text:"typeof "}),ee.push({text:"import("}),ge(ae.argument),ae.assertions&&(ee.push({text:", { assert: "}),Oe(ae.assertions.assertClause.elements,", "),ee.push({text:" }"})),ee.push({text:")"}),ae.qualifier&&(ee.push({text:"."}),ge(ae.qualifier)),ae.typeArguments&&(ee.push({text:"<"}),Oe(ae.typeArguments,", "),ee.push({text:">"}));break;case 172:w.assertNode(ae,mp),(Ue=ae.modifiers)!=null&&Ue.length&&(Oe(ae.modifiers," "),ee.push({text:" "})),ge(ae.name),ae.questionToken&&ee.push({text:"?"}),ae.type&&(ee.push({text:": "}),ge(ae.type));break;case 182:w.assertNode(ae,Pb),ee.push({text:"["}),Oe(ae.parameters,", "),ee.push({text:"]"}),ae.type&&(ee.push({text:": "}),ge(ae.type));break;case 174:w.assertNode(ae,jd),(te=ae.modifiers)!=null&&te.length&&(Oe(ae.modifiers," "),ee.push({text:" "})),ge(ae.name),ae.questionToken&&ee.push({text:"?"}),ke(ae),ae.type&&(ee.push({text:": "}),ge(ae.type));break;case 180:w.assertNode(ae,B2),ke(ae),ae.type&&(ee.push({text:": "}),ge(ae.type));break;case 181:w.assertNode(ae,zA),ee.push({text:"new "}),ke(ae),ae.type&&(ee.push({text:": "}),ge(ae.type));break;case 208:w.assertNode(ae,ov),ee.push({text:"["}),Oe(ae.elements,", "),ee.push({text:"]"});break;case 207:w.assertNode(ae,o_),ee.push({text:"{"}),ae.elements.length&&(ee.push({text:" "}),Oe(ae.elements,", "),ee.push({text:" "})),ee.push({text:"}"});break;case 209:w.assertNode(ae,Da),ge(ae.name);break;case 225:w.assertNode(ae,V0),ee.push({text:ta(ae.operator)}),ge(ae.operand);break;case 204:w.assertNode(ae,mie),ge(ae.head),ae.templateSpans.forEach(ge);break;case 16:w.assertNode(ae,j2),ee.push({text:nt(ae)});break;case 205:w.assertNode(ae,mJ),ge(ae.type),ge(ae.literal);break;case 17:w.assertNode(ae,uJ),ee.push({text:nt(ae)});break;case 18:w.assertNode(ae,s7),ee.push({text:nt(ae)});break;case 198:w.assertNode(ae,GA),ee.push({text:"this"});break;case 168:w.assertNode(ae,na),ee.push({text:"["}),ge(ae.expression),ee.push({text:"]"});break;default:w.failBadSyntaxKind(ae)}}function ke(ae){ae.typeParameters&&(ee.push({text:"<"}),Oe(ae.typeParameters,", "),ee.push({text:">"})),ee.push({text:"("}),Oe(ae.parameters,", "),ee.push({text:")"})}function Oe(ae,Ue){ae.forEach((te,Ne)=>{Ne>0&&ee.push({text:Ue}),ge(te)})}function nt(ae){switch(ae.kind){case 11:return u===0?`'${Dg(ae.text,39)}'`:`"${Dg(ae.text,34)}"`;case 16:case 17:case 18:{let Ue=ae.rawText??Vz(Dg(ae.text,96));switch(ae.kind){case 16:return"`"+Ue+"${";case 17:return"}"+Ue+"${";case 18:return"}"+Ue+"`"}}}return ae.text}}function H(ye){return ye==="undefined"}function Se(ye){if((L0(ye)||li(ye)&&Bw(ye))&&ye.initializer){let ee=Qa(ye.initializer);return!($(ee)||WS(ee)||Sa(ee)||gS(ee))}return!0}function Je(ye,ee){let ge=ee.getSourceFile();return{text:ye,span:Np(ee,ge),file:ge.fileName}}}var _1={};it(_1,{getDocCommentTemplateAtPosition:()=>rrt,getJSDocParameterNameCompletionDetails:()=>trt,getJSDocParameterNameCompletions:()=>ert,getJSDocTagCompletionDetails:()=>GNe,getJSDocTagCompletions:()=>Ztt,getJSDocTagNameCompletionDetails:()=>Ytt,getJSDocTagNameCompletions:()=>Xtt,getJsDocCommentsFromDeclarations:()=>qtt,getJsDocTagsFromDeclarations:()=>Qtt});var FNe=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","import","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],jNe,LNe;function qtt(e,t){let n=[];return Xq(e,i=>{for(let s of Htt(i)){let o=um(s)&&s.tags&&Bn(s.tags,p=>p.kind===328&&(p.tagName.escapedText==="inheritDoc"||p.tagName.escapedText==="inheritdoc"));if(s.comment===void 0&&!o||um(s)&&i.kind!==347&&i.kind!==339&&s.tags&&s.tags.some(p=>p.kind===347||p.kind===339)&&!s.tags.some(p=>p.kind===342||p.kind===343))continue;let c=s.comment?oD(s.comment,t):[];o&&o.comment&&(c=c.concat(oD(o.comment,t))),ws(n,c,$tt)||n.push(c)}}),ad(oM(n,[XI()]))}function $tt(e,t){return qf(e,t,(n,i)=>n.kind===i.kind&&n.text===i.text)}function Htt(e){switch(e.kind){case 342:case 349:return[e];case 339:case 347:return[e,e.parent];case 324:if(TI(e.parent))return[e.parent.parent];default:return Az(e)}}function Qtt(e,t){let n=[];return Xq(e,i=>{let s=P0(i);if(!(s.some(o=>o.kind===347||o.kind===339)&&!s.some(o=>o.kind===342||o.kind===343)))for(let o of s)n.push({name:o.tagName.text,text:zNe(o,t)}),n.push(...WNe(BNe(o),t))}),n}function WNe(e,t){return Ma(e,n=>Qi([{name:n.tagName.text,text:zNe(n,t)}],WNe(BNe(n),t)))}function BNe(e){return OP(e)&&e.isNameFirst&&e.typeExpression&&xk(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function oD(e,t){return typeof e=="string"?[f_(e)]:Ma(e,n=>n.kind===322?[f_(n.text)]:tle(n,t))}function zNe(e,t){let{comment:n,kind:i}=e,s=Ktt(i);switch(i){case 350:let p=e.typeExpression;return p?o(p):n===void 0?void 0:oD(n,t);case 330:return o(e.class);case 329:return o(e.class);case 346:let u=e,g=[];if(u.constraint&&g.push(f_(u.constraint.getText())),Dr(u.typeParameters)){Dr(g)&&g.push(Ic());let h=u.typeParameters[u.typeParameters.length-1];or(u.typeParameters,S=>{g.push(s(S.getText())),h!==S&&g.push(ep(28),Ic())})}return n&&g.push(Ic(),...oD(n,t)),g;case 345:case 351:return o(e.typeExpression);case 347:case 339:case 349:case 342:case 348:let{name:d}=e;return d?o(d):n===void 0?void 0:oD(n,t);default:return n===void 0?void 0:oD(n,t)}function o(p){return c(p.getText())}function c(p){return n?p.match(/^https?$/)?[f_(p),...oD(n,t)]:[s(p),Ic(),...oD(n,t)]:[f_(p)]}}function Ktt(e){switch(e){case 342:return Kce;case 349:return Xce;case 346:return Zce;case 347:case 339:return Yce;default:return f_}}function Xtt(){return jNe||(jNe=kr(FNe,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:vC.SortText.LocationPriority})))}var Ytt=GNe;function Ztt(){return LNe||(LNe=kr(FNe,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:vC.SortText.LocationPriority})))}function GNe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[f_(e)],documentation:Ke,tags:void 0,codeActions:void 0}}function ert(e){if(!Be(e.name))return Ke;let t=e.name.text,n=e.parent,i=n.parent;return Fs(i)?Ji(i.parameters,s=>{if(!Be(s.name))return;let o=s.name.text;if(!(n.tags.some(c=>c!==e&&c_(c)&&Be(c.name)&&c.name.escapedText===o)||t!==void 0&&!Zi(o,t)))return{name:o,kind:"parameter",kindModifiers:"",sortText:vC.SortText.LocationPriority}}):[]}function trt(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[f_(e)],documentation:Ke,tags:void 0,codeActions:void 0}}function rrt(e,t,n,i){let s=Ii(t,n),o=vr(s,um);if(o&&(o.comment!==void 0||Dr(o.tags)))return;let c=s.getStart(t);if(!o&&c<n)return;let p=art(s,i);if(!p)return;let{commentOwner:u,parameters:g,hasReturn:d}=p,h=Hf(u)&&u.jsDoc?u.jsDoc:void 0,S=Wo(h);if(u.getStart(t)<n||S&&o&&S!==o)return;let T=nrt(t,n),x=gh(t.fileName),I=(g?irt(g||[],x,T,e):"")+(d?srt(T,e):""),P="/**",E=" */",F=Dr(P0(u))>0;if(I&&!F){let O=P+e+T+" * ",W=c===n?e+T:"";return{newText:O+e+I+T+E+W,caretOffset:O.length}}return{newText:P+E,caretOffset:3}}function nrt(e,t){let{text:n}=e,i=bd(t,e),s=i;for(;s<=t&&Rm(n.charCodeAt(s));s++);return n.slice(i,s)}function irt(e,t,n,i){return e.map(({name:s,dotDotDotToken:o},c)=>{let p=s.kind===80?s.text:"param"+c;return`${n} * @param ${t?o?"{...any} ":"{any} ":""}${p}${i}`}).join("")}function srt(e,t){return`${e} * @returns${t}`}function art(e,t){return Tte(e,n=>b_e(n,t))}function b_e(e,t){switch(e.kind){case 263:case 219:case 175:case 177:case 174:case 220:let n=e;return{commentOwner:e,parameters:n.parameters,hasReturn:_L(n,t)};case 304:return b_e(e.initializer,t);case 264:case 265:case 267:case 307:case 266:return{commentOwner:e};case 172:{let s=e;return s.type&&Pg(s.type)?{commentOwner:e,parameters:s.type.parameters,hasReturn:_L(s.type,t)}:{commentOwner:e}}case 244:{let o=e.declarationList.declarations,c=o.length===1&&o[0].initializer?ort(o[0].initializer):void 0;return c?{commentOwner:e,parameters:c.parameters,hasReturn:_L(c,t)}:{commentOwner:e}}case 308:return"quit";case 268:return e.parent.kind===268?void 0:{commentOwner:e};case 245:return b_e(e.expression,t);case 227:{let s=e;return Hc(s)===0?"quit":Fs(s.right)?{commentOwner:e,parameters:s.right.parameters,hasReturn:_L(s.right,t)}:{commentOwner:e}}case 173:let i=e.initializer;if(i&&(Ao(i)||Fo(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:_L(i,t)}}}function _L(e,t){return!!t?.generateReturnInDocTemplate&&(Pg(e)||Fo(e)&&ht(e.body)||yo(e)&&e.body&&Bs(e.body)&&!!hb(e.body,n=>n))}function ort(e){for(;e.kind===218;)e=e.expression;switch(e.kind){case 219:case 220:return e;case 232:return Bn(e.members,yc)}}var KH={};it(KH,{mapCode:()=>crt});function crt(e,t,n,i,s,o){return gn.ChangeTracker.with({host:i,formatContext:s,preferences:o},c=>{let p=t.map(g=>lrt(e,g)),u=n&&ad(n);for(let g of p)urt(e,c,g,u)})}function lrt(e,t){let n=[{parse:()=>X2("__mapcode_content_nodes.ts",t,e.languageVersion,!0,e.scriptKind),body:o=>o.statements},{parse:()=>X2("__mapcode_class_content_nodes.ts",`class __class {
|
|
${t}
|
|
}`,e.languageVersion,!0,e.scriptKind),body:o=>o.statements[0].members}],i=[];for(let{parse:o,body:c}of n){let p=o(),u=c(p);if(u.length&&p.parseDiagnostics.length===0)return u;u.length&&i.push({sourceFile:p,body:u})}i.sort((o,c)=>o.sourceFile.parseDiagnostics.length-c.sourceFile.parseDiagnostics.length);let{body:s}=i[0];return s}function urt(e,t,n,i){cl(n[0])||dS(n[0])?prt(e,t,n,i):frt(e,t,n,i)}function prt(e,t,n,i){let s;if(!i||!i.length?s=Bn(e.statements,vf(ni,uu)):s=or(i,c=>vr(Ii(e,c.start),vf(ni,uu))),!s)return;let o=s.members.find(c=>n.some(p=>dL(p,c)));if(o){let c=aS(s.members,p=>n.some(u=>dL(u,p)));or(n,XH),t.replaceNodeRangeWithNodes(e,o,c,n);return}or(n,XH),t.insertNodesAfter(e,s.members[s.members.length-1],n)}function frt(e,t,n,i){if(!i?.length){t.insertNodesAtEndOfFile(e,n,!1);return}for(let o of i){let c=vr(Ii(e,o.start),p=>vf(Bs,Li)(p)&&_t(p.statements,u=>n.some(g=>dL(g,u))));if(c){let p=c.statements.find(u=>n.some(g=>dL(g,u)));if(p){let u=aS(c.statements,g=>n.some(d=>dL(d,g)));or(n,XH),t.replaceNodeRangeWithNodes(e,p,u,n);return}}}let s=e.statements;for(let o of i){let c=vr(Ii(e,o.start),Bs);if(c){s=c.statements;break}}or(n,XH),t.insertNodesAfter(e,s[s.length-1],n)}function dL(e,t){var n,i,s,o,c,p;return e.kind!==t.kind?!1:e.kind===177?e.kind===t.kind:Vl(e)&&Vl(t)?e.name.getText()===t.name.getText():q0(e)&&q0(t)||yJ(e)&&yJ(t)?e.expression.getText()===t.expression.getText():$0(e)&&$0(t)?((n=e.initializer)==null?void 0:n.getText())===((i=t.initializer)==null?void 0:i.getText())&&((s=e.incrementor)==null?void 0:s.getText())===((o=t.incrementor)==null?void 0:o.getText())&&((c=e.condition)==null?void 0:c.getText())===((p=t.condition)==null?void 0:p.getText()):KT(e)&&KT(t)?e.expression.getText()===t.expression.getText()&&e.initializer.getText()===t.initializer.getText():Eb(e)&&Eb(t)?e.label.getText()===t.label.getText():e.getText()===t.getText()}function XH(e){JNe(e),e.parent=void 0}function JNe(e){e.pos=-1,e.end=-1,e.forEachChild(JNe)}var d1={};it(d1,{compareImportsOrRequireStatements:()=>D_e,compareModuleSpecifiers:()=>Ert,getImportDeclarationInsertionIndex:()=>Irt,getImportSpecifierInsertionIndex:()=>Drt,getNamedImportSpecifierComparerWithDetection:()=>wrt,getOrganizeImportsStringComparerWithDetection:()=>Crt,organizeImports:()=>_rt,testCoalesceExports:()=>Art,testCoalesceImports:()=>Prt});function _rt(e,t,n,i,s,o){let c=gn.ChangeTracker.fromContext({host:n,formatContext:t,preferences:s}),p=o==="SortAndCombine"||o==="All",u=p,g=o==="RemoveUnused"||o==="All",d=e.statements.filter(ac),h=T_e(e,d),{comparersToTest:S,typeOrdersToTest:T}=S_e(s),x=S[0],I={moduleSpecifierComparer:typeof s.organizeImportsIgnoreCase=="boolean"?x:void 0,namedImportComparer:typeof s.organizeImportsIgnoreCase=="boolean"?x:void 0,typeOrder:s.organizeImportsTypeOrder};if(typeof s.organizeImportsIgnoreCase!="boolean"&&({comparer:I.moduleSpecifierComparer}=qNe(h,S)),!I.typeOrder||typeof s.organizeImportsIgnoreCase!="boolean"){let O=w_e(d,S,T);if(O){let{namedImportComparer:W,typeOrder:z}=O;I.namedImportComparer=I.namedImportComparer??W,I.typeOrder=I.typeOrder??z}}h.forEach(O=>E(O,I)),o!=="RemoveUnused"&&mrt(e).forEach(O=>F(O,I.namedImportComparer));for(let O of e.statements.filter(pp)){if(!O.body)continue;if(T_e(e,O.body.statements.filter(ac)).forEach(z=>E(z,I)),o!=="RemoveUnused"){let z=O.body.statements.filter(tl);F(z,I.namedImportComparer)}}return c.getChanges();function P(O,W){if(Dr(O)===0)return;yn(O[0],1024);let z=u?vw(O,U=>mL(U.moduleSpecifier)):[O],$=p?yf(z,(U,_e)=>x_e(U[0].moduleSpecifier,_e[0].moduleSpecifier,I.moduleSpecifierComparer??x)):z,X=Ma($,U=>mL(U[0].moduleSpecifier)||U[0].moduleSpecifier===void 0?W(U):U);if(X.length===0)c.deleteNodes(e,O,{leadingTriviaOption:gn.LeadingTriviaOption.Exclude,trailingTriviaOption:gn.TrailingTriviaOption.Include},!0);else{let U={leadingTriviaOption:gn.LeadingTriviaOption.Exclude,trailingTriviaOption:gn.TrailingTriviaOption.Include,suffix:py(n,t.options)};c.replaceNodeWithNodes(e,O[0],X,U);let _e=c.nodeHasTrailingComment(e,O[0],U);c.deleteNodes(e,O.slice(1),{trailingTriviaOption:gn.TrailingTriviaOption.Include},_e)}}function E(O,W){let z=W.moduleSpecifierComparer??x,$=W.namedImportComparer??x,X=W.typeOrder??"last",U=YR({organizeImportsTypeOrder:X},$);P(O,re=>(g&&(re=grt(re,e,i)),u&&(re=UNe(re,z,U,e)),p&&(re=yf(re,(V,ce)=>D_e(V,ce,z))),re))}function F(O,W){let z=YR(s,W);P(O,$=>VNe($,z))}}function S_e(e){return{comparersToTest:typeof e.organizeImportsIgnoreCase=="boolean"?[I_e(e,e.organizeImportsIgnoreCase)]:[I_e(e,!0),I_e(e,!1)],typeOrdersToTest:e.organizeImportsTypeOrder?[e.organizeImportsTypeOrder]:["last","inline","first"]}}function T_e(e,t){let n=ih(e.languageVersion,!1,e.languageVariant),i=[],s=0;for(let o of t)i[s]&&drt(e,o,n)&&s++,i[s]||(i[s]=[]),i[s].push(o);return i}function drt(e,t,n){let i=t.getFullStart(),s=t.getStart();n.setText(e.text,i,s-i);let o=0;for(;n.getTokenStart()<s;)if(n.scan()===4&&(o++,o>=2))return!0;return!1}function mrt(e){let t=[],n=e.statements,i=Dr(n),s=0,o=0;for(;s<i;)if(tl(n[s])){t[o]===void 0&&(t[o]=[]);let c=n[s];if(c.moduleSpecifier)t[o].push(c),s++;else{for(;s<i&&tl(n[s]);)t[o].push(n[s++]);o++}}else s++;return Ma(t,c=>T_e(e,c))}function grt(e,t,n){let i=n.getTypeChecker(),s=n.getCompilerOptions(),o=i.getJsxNamespace(t),c=i.getJsxFragmentFactory(t),p=!!(t.transformFlags&2),u=[];for(let d of e){let{importClause:h,moduleSpecifier:S}=d;if(!h){u.push(d);continue}let{name:T,namedBindings:x}=h;if(T&&!g(T)&&(T=void 0),x)if(bh(x))g(x.name)||(x=void 0);else{let I=x.elements.filter(P=>g(P.name));I.length<x.elements.length&&(x=I.length?A.updateNamedImports(x,I):void 0)}T||x?u.push(XR(d,T,x)):vrt(t,S)&&(t.isDeclarationFile?u.push(A.createImportDeclaration(d.modifiers,void 0,S,void 0)):u.push(d))}return u;function g(d){return p&&(d.text===o||c&&d.text===c)&&m$(s.jsx)||jo.Core.isSymbolReferencedInFile(d,i,t)}}function mL(e){return e!==void 0&&Ha(e)?e.text:void 0}function hrt(e){let t,n={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(let s of e){if(s.importClause===void 0){t=t||s;continue}let o=s.importClause.isTypeOnly?n:i,{name:c,namedBindings:p}=s.importClause;c&&o.defaultImports.push(s),p&&(bh(p)?o.namespaceImports.push(s):o.namedImports.push(s))}return{importWithoutClause:t,typeOnlyImports:n,regularImports:i}}function UNe(e,t,n,i){if(e.length===0)return e;let s=OW(e,c=>{if(c.attributes){let p=c.attributes.token+" ";for(let u of yf(c.attributes.elements,(g,d)=>Eu(g.name.text,d.name.text)))p+=u.name.text+":",p+=Ha(u.value)?`"${u.value.text}"`:u.value.getText()+" ";return p}return""}),o=[];for(let c in s){let p=s[c],{importWithoutClause:u,typeOnlyImports:g,regularImports:d}=hrt(p);u&&o.push(u);for(let h of[d,g]){let S=h===g,{defaultImports:T,namespaceImports:x,namedImports:I}=h;if(!S&&T.length===1&&x.length===1&&I.length===0){let U=T[0];o.push(XR(U,U.importClause.name,x[0].importClause.namedBindings));continue}let P=yf(x,(U,_e)=>t(U.importClause.namedBindings.name.text,_e.importClause.namedBindings.name.text));for(let U of P)o.push(XR(U,void 0,U.importClause.namedBindings));let E=_l(T),F=_l(I),O=E??F;if(!O)continue;let W,z=[];if(T.length===1)W=T[0].importClause.name;else for(let U of T)z.push(A.createImportSpecifier(!1,A.createIdentifier("default"),U.importClause.name));z.push(...brt(I));let $=A.createNodeArray(yf(z,n),F?.importClause.namedBindings.elements.hasTrailingComma),X=$.length===0?W?void 0:A.createNamedImports(Ke):F?A.updateNamedImports(F.importClause.namedBindings,$):A.createNamedImports($);i&&X&&F?.importClause.namedBindings&&!uk(F.importClause.namedBindings,i)&&yn(X,2),S&&W&&X?(o.push(XR(O,W,void 0)),o.push(XR(F??O,void 0,X))):o.push(XR(O,W,X))}}return o}function VNe(e,t){if(e.length===0)return e;let{exportWithoutClause:n,namedExports:i,typeOnlyExports:s}=c(e),o=[];n&&o.push(n);for(let p of[i,s]){if(p.length===0)continue;let u=[];u.push(...Ma(p,h=>h.exportClause&&G_(h.exportClause)?h.exportClause.elements:Ke));let g=yf(u,t),d=p[0];o.push(A.updateExportDeclaration(d,d.modifiers,d.isTypeOnly,d.exportClause&&(G_(d.exportClause)?A.updateNamedExports(d.exportClause,g):A.updateNamespaceExport(d.exportClause,d.exportClause.name)),d.moduleSpecifier,d.attributes))}return o;function c(p){let u,g=[],d=[];for(let h of p)h.exportClause===void 0?u=u||h:h.isTypeOnly?d.push(h):g.push(h);return{exportWithoutClause:u,namedExports:g,typeOnlyExports:d}}}function XR(e,t,n){return A.updateImportDeclaration(e,e.modifiers,A.updateImportClause(e.importClause,e.importClause.phaseModifier,t,n),e.moduleSpecifier,e.attributes)}function k_e(e,t,n,i){switch(i?.organizeImportsTypeOrder){case"first":return C0(t.isTypeOnly,e.isTypeOnly)||n(e.name.text,t.name.text);case"inline":return n(e.name.text,t.name.text);default:return C0(e.isTypeOnly,t.isTypeOnly)||n(e.name.text,t.name.text)}}function x_e(e,t,n){let i=e===void 0?void 0:mL(e),s=t===void 0?void 0:mL(t);return C0(i===void 0,s===void 0)||C0(Ul(i),Ul(s))||n(i,s)}function yrt(e){return e.map(t=>mL(C_e(t))||"")}function C_e(e){var t;switch(e.kind){case 272:return(t=Hn(e.moduleReference,ay))==null?void 0:t.expression;case 273:return e.moduleSpecifier;case 244:return e.declarationList.declarations[0].initializer.arguments[0]}}function vrt(e,t){let n=ya(t)&&t.text;return Is(n)&&_t(e.moduleAugmentations,i=>ya(i)&&i.text===n)}function brt(e){return Ma(e,t=>kr(Srt(t),n=>n.name&&n.propertyName&&yS(n.name)===yS(n.propertyName)?A.updateImportSpecifier(n,n.isTypeOnly,void 0,n.name):n))}function Srt(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&Km(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function qNe(e,t){let n=[];return e.forEach(i=>{n.push(yrt(i))}),HNe(n,t)}function w_e(e,t,n){let i=!1,s=e.filter(u=>{var g,d;let h=(d=Hn((g=u.importClause)==null?void 0:g.namedBindings,Km))==null?void 0:d.elements;return h?.length?(!i&&h.some(S=>S.isTypeOnly)&&h.some(S=>!S.isTypeOnly)&&(i=!0),!0):!1});if(s.length===0)return;let o=s.map(u=>{var g,d;return(d=Hn((g=u.importClause)==null?void 0:g.namedBindings,Km))==null?void 0:d.elements}).filter(u=>u!==void 0);if(!i||n.length===0){let u=HNe(o.map(g=>g.map(d=>d.name.text)),t);return{namedImportComparer:u.comparer,typeOrder:n.length===1?n[0]:void 0,isSorted:u.isSorted}}let c={first:1/0,last:1/0,inline:1/0},p={first:t[0],last:t[0],inline:t[0]};for(let u of t){let g={first:0,last:0,inline:0};for(let d of o)for(let h of n)g[h]=(g[h]??0)+$Ne(d,(S,T)=>k_e(S,T,u,{organizeImportsTypeOrder:h}));for(let d of n){let h=d;g[h]<c[h]&&(c[h]=g[h],p[h]=u)}}e:for(let u of n){let g=u;for(let d of n)if(c[d]<c[g])continue e;return{namedImportComparer:p[g],typeOrder:g,isSorted:c[g]===0}}return{namedImportComparer:p.last,typeOrder:"last",isSorted:c.last===0}}function $Ne(e,t){let n=0;for(let i=0;i<e.length-1;i++)t(e[i],e[i+1])>0&&n++;return n}function HNe(e,t){let n,i=1/0;for(let s of t){let o=0;for(let c of e){if(c.length<=1)continue;let p=$Ne(c,s);o+=p}o<i&&(i=o,n=s)}return{comparer:n??t[0],isSorted:i===0}}function Trt(e,t){return Po(QNe(e),QNe(t))}function QNe(e){var t;switch(e.kind){case 273:return e.importClause?e.importClause.isTypeOnly?1:((t=e.importClause.namedBindings)==null?void 0:t.kind)===275?2:e.importClause.name?3:4:0;case 272:return 5;case 244:return 6}}function gL(e){return e?GY:Eu}function krt(e,t){let n=xrt(t),i=t.organizeImportsCaseFirst??!1,s=t.organizeImportsNumericCollation??!1,o=t.organizeImportsAccentCollation??!0,c=e?o?"accent":"base":o?"variant":"case";return new Intl.Collator(n,{usage:"sort",caseFirst:i||"false",sensitivity:c,numeric:s}).compare}function xrt(e){let t=e.organizeImportsLocale;t==="auto"&&(t=JY()),t===void 0&&(t="en");let n=Intl.Collator.supportedLocalesOf(t);return n.length?n[0]:"en"}function I_e(e,t){return(e.organizeImportsCollation??"ordinal")==="unicode"?krt(t,e):gL(t)}function Crt(e,t){return qNe([e],S_e(t).comparersToTest)}function YR(e,t){let n=t??gL(!!e.organizeImportsIgnoreCase);return(i,s)=>k_e(i,s,n,e)}function wrt(e,t,n){let{comparersToTest:i,typeOrdersToTest:s}=S_e(t),o=w_e([e],i,s),c=YR(t,i[0]),p;if(typeof t.organizeImportsIgnoreCase!="boolean"||!t.organizeImportsTypeOrder){if(o){let{namedImportComparer:u,typeOrder:g,isSorted:d}=o;p=d,c=YR({organizeImportsTypeOrder:g},u)}else if(n){let u=w_e(n.statements.filter(ac),i,s);if(u){let{namedImportComparer:g,typeOrder:d,isSorted:h}=u;p=h,c=YR({organizeImportsTypeOrder:d},g)}}}return{specifierComparer:c,isSorted:p}}function Irt(e,t,n){let i=Xv(e,t,Do,(s,o)=>D_e(s,o,n));return i<0?~i:i}function Drt(e,t,n){let i=Xv(e,t,Do,n);return i<0?~i:i}function D_e(e,t,n){return x_e(C_e(e),C_e(t),n)||Trt(e,t)}function Prt(e,t,n,i){let s=gL(t),o=YR({organizeImportsTypeOrder:i?.organizeImportsTypeOrder},s);return UNe(e,s,o,n)}function Art(e,t,n){return VNe(e,(s,o)=>k_e(s,o,gL(t),{organizeImportsTypeOrder:n?.organizeImportsTypeOrder??"last"}))}function Ert(e,t,n){let i=gL(!!n);return x_e(e,t,i)}var YH={};it(YH,{collectElements:()=>Nrt});function Nrt(e,t){let n=[];return Mrt(e,t,n),Rrt(e,n),n.sort((i,s)=>i.textSpan.start-s.textSpan.start),n}function Mrt(e,t,n){let i=40,s=0,o=e.statements,c=o.length;for(;s<c;){for(;s<c&&!u2(o[s]);)p(o[s]),s++;if(s===c)break;let u=s;for(;s<c&&u2(o[s]);)p(o[s]),s++;let g=s-1;g!==u&&n.push(hL(lo(o[u],102,e).getStart(e),o[g].getEnd(),"imports"))}p(e.endOfFileToken);function p(u){var g;if(i===0)return;t.throwIfCancellationRequested(),(ql(u)||Qc(u)||Qf(u)||Om(u)||u.kind===1)&&XNe(u,e,t,n),Fs(u)&&vn(u.parent)&&Ln(u.parent.left)&&XNe(u.parent.left,e,t,n),(Bs(u)||Qm(u))&&P_e(u.statements.end,e,t,n),(ni(u)||uu(u))&&P_e(u.members.end,e,t,n);let d=Frt(u,e);d&&n.push(d),i--,Ws(u)?(i++,p(u.expression),i--,u.arguments.forEach(p),(g=u.typeArguments)==null||g.forEach(p)):q0(u)&&u.elseStatement&&q0(u.elseStatement)?(p(u.expression),p(u.thenStatement),i++,p(u.elseStatement),i--):u.forEachChild(p),i++}}function Rrt(e,t){let n=[],i=e.getLineStarts();for(let s of i){let o=e.getLineEndOfPosition(s),c=e.text.substring(s,o),p=KNe(c);if(!(!p||lv(e,s)))if(p.isStart){let u=$c(e.text.indexOf("//",s),o);n.push(SC(u,"region",u,!1,p.name||"#region"))}else{let u=n.pop();u&&(u.textSpan.length=o-u.textSpan.start,u.hintSpan.length=o-u.textSpan.start,t.push(u))}}}var Ort=/^#(end)?region(.*)\r?$/;function KNe(e){if(e=e.trimStart(),!Zi(e,"//"))return null;e=e.slice(2).trim();let t=Ort.exec(e);if(t)return{isStart:!t[1],name:t[2].trim()}}function P_e(e,t,n,i){let s=nh(t.text,e);if(!s)return;let o=-1,c=-1,p=0,u=t.getFullText();for(let{kind:d,pos:h,end:S}of s)switch(n.throwIfCancellationRequested(),d){case 2:let T=u.slice(h,S);if(KNe(T)){g(),p=0;break}p===0&&(o=h),c=S,p++;break;case 3:g(),i.push(hL(h,S,"comment")),p=0;break;default:w.assertNever(d)}g();function g(){p>1&&i.push(hL(o,c,"comment"))}}function XNe(e,t,n,i){F2(e)||P_e(e.pos,t,n,i)}function hL(e,t,n){return SC($c(e,t),n)}function Frt(e,t){switch(e.kind){case 242:if(Fs(e.parent))return jrt(e.parent,e,t);switch(e.parent.kind){case 247:case 250:case 251:case 249:case 246:case 248:case 255:case 300:return d(e.parent);case 259:let T=e.parent;if(T.tryBlock===e)return d(e.parent);if(T.finallyBlock===e){let x=lo(T,98,t);if(x)return d(x)}default:return SC(Np(e,t),"code")}case 269:return d(e.parent);case 264:case 232:case 265:case 267:case 270:case 188:case 207:return d(e);case 190:return d(e,!1,!G2(e.parent),23);case 297:case 298:return h(e.statements);case 211:return g(e);case 210:return g(e,23);case 285:return o(e);case 289:return c(e);case 286:case 287:return p(e.attributes);case 229:case 15:return u(e);case 208:return d(e,!1,!Da(e.parent),23);case 220:return s(e);case 214:return i(e);case 218:return S(e);case 276:case 280:case 301:return n(e)}function n(T){if(!T.elements.length)return;let x=lo(T,19,t),I=lo(T,20,t);if(!(!x||!I||F_(x.pos,I.pos,t)))return ZH(x,I,T,t,!1,!1)}function i(T){if(!T.arguments.length)return;let x=lo(T,21,t),I=lo(T,22,t);if(!(!x||!I||F_(x.pos,I.pos,t)))return ZH(x,I,T,t,!1,!0)}function s(T){if(Bs(T.body)||Pp(T.body)||F_(T.body.getFullStart(),T.body.getEnd(),t))return;let x=$c(T.body.getFullStart(),T.body.getEnd());return SC(x,"code",Np(T))}function o(T){let x=$c(T.openingElement.getStart(t),T.closingElement.getEnd()),I=T.openingElement.tagName.getText(t),P="<"+I+">...</"+I+">";return SC(x,"code",x,!1,P)}function c(T){let x=$c(T.openingFragment.getStart(t),T.closingFragment.getEnd());return SC(x,"code",x,!1,"<>...</>")}function p(T){if(T.properties.length!==0)return hL(T.getStart(t),T.getEnd(),"code")}function u(T){if(!(T.kind===15&&T.text.length===0))return hL(T.getStart(t),T.getEnd(),"code")}function g(T,x=19){return d(T,!1,!Tu(T.parent)&&!Ws(T.parent),x)}function d(T,x=!1,I=!0,P=19,E=P===19?20:24){let F=lo(e,P,t),O=lo(e,E,t);return F&&O&&ZH(F,O,T,t,x,I)}function h(T){return T.length?SC(pv(T),"code"):void 0}function S(T){if(F_(T.getStart(),T.getEnd(),t))return;let x=$c(T.getStart(),T.getEnd());return SC(x,"code",Np(T))}}function jrt(e,t,n){let i=Lrt(e,t,n),s=lo(t,20,n);return i&&s&&ZH(i,s,e,n,e.kind!==220)}function ZH(e,t,n,i,s=!1,o=!0){let c=$c(o?e.getFullStart():e.getStart(i),t.getEnd());return SC(c,"code",Np(n,i),s)}function SC(e,t,n=e,i=!1,s="..."){return{textSpan:e,kind:t,hintSpan:n,bannerText:s,autoCollapse:i}}function Lrt(e,t,n){if(Vre(e.parameters,n)){let i=lo(e,21,n);if(i)return i}return lo(t,19,n)}var yL={};it(yL,{getRenameInfo:()=>Wrt,nodeIsEligibleForRename:()=>ZNe});function Wrt(e,t,n,i){let s=s5(Kp(t,n));if(ZNe(s)){let o=Brt(s,e.getTypeChecker(),t,e,i);if(o)return o}return eQ(_.You_cannot_rename_this_element)}function Brt(e,t,n,i,s){let o=t.getSymbolAtLocation(e);if(!o){if(Ha(e)){let S=i5(e,t);if(S&&(S.flags&128||S.flags&1048576&&Fi(S.types,T=>!!(T.flags&128))))return A_e(e.text,e.text,"string","",e,n)}else if(Tq(e)){let S=pc(e);return A_e(S,S,"label","",e,n)}return}let{declarations:c}=o;if(!c||c.length===0)return;if(c.some(S=>zrt(i,S)))return eQ(_.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Be(e)&&e.escapedText==="default"&&o.parent&&o.parent.flags&1536)return;if(Ha(e)&&d6(e))return s.allowRenameOfImportPath?Jrt(e,n,o):void 0;let p=Grt(n,o,t,s);if(p)return eQ(p);let u=dv.getSymbolKind(t,o,e),g=rle(e)||s_(e)&&e.parent.kind===168?_d(R_(e)):void 0,d=g||t.symbolToString(o),h=g||t.getFullyQualifiedName(o);return A_e(d,h,u,dv.getSymbolModifiers(t,o),e,n)}function zrt(e,t){let n=t.getSourceFile();return e.isSourceFileDefaultLibrary(n)&&uc(n.fileName,".d.ts")}function Grt(e,t,n,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){let c=t.declarations&&Bn(t.declarations,p=>gp(p));c&&!c.propertyName&&(t=n.getAliasedSymbol(t))}let{declarations:s}=t;if(!s)return;let o=YNe(e.path);if(o===void 0)return _t(s,c=>wR(c.getSourceFile().path))?_.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(let c of s){let p=YNe(c.getSourceFile().path);if(p){let u=Math.min(o.length,p.length);for(let g=0;g<=u;g++)if(Eu(o[g],p[g])!==0)return _.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function YNe(e){let t=Nu(e),n=t.lastIndexOf("node_modules");if(n!==-1)return t.slice(0,n+2)}function Jrt(e,t,n){if(!Ul(e.text))return eQ(_.You_cannot_rename_a_module_via_a_global_import);let i=n.declarations&&Bn(n.declarations,Li);if(!i)return;let s=Bo(e.text,"/index")||Bo(e.text,"/index.js")?void 0:qY(dp(i.fileName),"/index"),o=s===void 0?i.fileName:s,c=s===void 0?"module":"directory",p=e.text.lastIndexOf("/")+1,u=yu(e.getStart(t)+1+p,e.text.length-p);return{canRename:!0,fileToRename:o,kind:c,displayName:o,fullDisplayName:e.text,kindModifiers:"",triggerSpan:u}}function A_e(e,t,n,i,s,o){return{canRename:!0,fileToRename:void 0,kind:n,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:Urt(s,o)}}function eQ(e){return{canRename:!1,localizedErrorMessage:Es(e)}}function Urt(e,t){let n=e.getStart(t),i=e.getWidth(t);return Ha(e)&&(n+=1,i-=2),yu(n,i)}function ZNe(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return e5(e);default:return!1}}var ZR={};it(ZR,{getArgumentInfoForCompletions:()=>Qrt,getSignatureHelpItems:()=>Vrt});function Vrt(e,t,n,i,s){let o=e.getTypeChecker(),c=IE(t,n);if(!c)return;let p=!!i&&i.kind==="characterTyped";if(p&&(cC(t,n,c)||lv(t,n)))return;let u=!!i&&i.kind==="invoked",g=cnt(c,n,t,o,u);if(!g)return;s.throwIfCancellationRequested();let d=qrt(g,o,t,c,p);return s.throwIfCancellationRequested(),d?o.runWithCancellationToken(s,h=>d.kind===0?oMe(d.candidates,d.resolvedSignature,g,t,h):unt(d.symbol,g,t,h)):Cp(t)?Hrt(g,e,s):void 0}function qrt({invocation:e,argumentCount:t},n,i,s,o){switch(e.kind){case 0:{if(o&&!$rt(s,e.node,i))return;let c=[],p=n.getResolvedSignatureForSignatureHelp(e.node,c,t);return c.length===0?void 0:{kind:0,candidates:c,resolvedSignature:p}}case 1:{let{called:c}=e;if(o&&!eMe(s,i,Be(c)?c.parent:c))return;let p=Nq(c,t,n);if(p.length!==0)return{kind:0,candidates:p,resolvedSignature:Ra(p)};let u=n.getSymbolAtLocation(c);return u&&{kind:1,symbol:u}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return w.assertNever(e)}}function $rt(e,t,n){if(!Om(t))return!1;let i=t.getChildren(n);switch(e.kind){case 21:return ws(i,e);case 28:{let s=n5(e);return!!s&&ws(i,s)}case 30:return eMe(e,n,t.expression);default:return!1}}function Hrt(e,t,n){if(e.invocation.kind===2)return;let i=sMe(e.invocation),s=Ln(i)?i.name.text:void 0,o=t.getTypeChecker();return s===void 0?void 0:fo(t.getSourceFiles(),c=>fo(c.getNamedDeclarations().get(s),p=>{let u=p.symbol&&o.getTypeOfSymbolAtLocation(p.symbol,p),g=u&&u.getCallSignatures();if(g&&g.length)return o.runWithCancellationToken(n,d=>oMe(g,g[0],e,c,d,!0))}))}function eMe(e,t,n){let i=e.getFullStart(),s=e.parent;for(;s;){let o=Al(i,t,s,!0);if(o)return $p(n,o);s=s.parent}return w.fail("Could not find preceding token")}function Qrt(e,t,n,i){let s=rMe(e,t,n,i);return!s||s.isTypeParameterList||s.invocation.kind!==0?void 0:{invocation:s.invocation.node,argumentCount:s.argumentCount,argumentIndex:s.argumentIndex}}function tMe(e,t,n,i){let s=Krt(e,n,i);if(!s)return;let{list:o,argumentIndex:c}=s,p=int(i,o),u=ant(o,n);return{list:o,argumentIndex:c,argumentCount:p,argumentsSpan:u}}function Krt(e,t,n){if(e.kind===30||e.kind===21)return{list:lnt(e.parent,e,t),argumentIndex:0};{let i=n5(e);return i&&{list:i,argumentIndex:nnt(n,i,e)}}}function rMe(e,t,n,i){let{parent:s}=e;if(Om(s)){let o=s,c=tMe(e,t,n,i);if(!c)return;let{list:p,argumentIndex:u,argumentCount:g,argumentsSpan:d}=c;return{isTypeParameterList:!!s.typeArguments&&s.typeArguments.pos===p.pos,invocation:{kind:0,node:o},argumentsSpan:d,argumentIndex:u,argumentCount:g}}else{if(mk(e)&&U0(s))return gR(e,t,n)?N_e(s,0,n):void 0;if(j2(e)&&s.parent.kind===216){let o=s,c=o.parent;w.assert(o.kind===229);let p=gR(e,t,n)?0:1;return N_e(c,p,n)}else if(hI(s)&&U0(s.parent.parent)){let o=s,c=s.parent.parent;if(s7(e)&&!gR(e,t,n))return;let p=o.parent.templateSpans.indexOf(o),u=snt(p,e,t,n);return N_e(c,u,n)}else if(Qu(s)){let o=s.attributes.pos,c=ha(n.text,s.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:s},argumentsSpan:yu(o,c-o),argumentIndex:0,argumentCount:1}}else{let o=Mq(e,n);if(o){let{called:c,nTypeArguments:p}=o,u={kind:1,called:c},g=$c(c.getStart(n),e.end);return{isTypeParameterList:!0,invocation:u,argumentsSpan:g,argumentIndex:p,argumentCount:p+1}}return}}}function Xrt(e,t,n,i){return Yrt(e,t,n,i)||rMe(e,t,n,i)}function nMe(e){return vn(e.parent)?nMe(e.parent):e}function E_e(e){return vn(e.left)?E_e(e.left)+1:2}function Yrt(e,t,n,i){let s=Zrt(e);if(s===void 0)return;let o=ent(s,n,t,i);if(o===void 0)return;let{contextualType:c,argumentIndex:p,argumentCount:u,argumentsSpan:g}=o,d=c.getNonNullableType(),h=d.symbol;if(h===void 0)return;let S=Wo(d.getCallSignatures());return S===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:S,node:e,symbol:tnt(h)},argumentsSpan:g,argumentIndex:p,argumentCount:u}}function Zrt(e){switch(e.kind){case 21:case 28:return e;default:return vr(e.parent,t=>Gi(t)?!0:Da(t)||o_(t)||ov(t)?!1:"quit")}}function ent(e,t,n,i){let{parent:s}=e;switch(s.kind){case 218:case 175:case 219:case 220:let o=tMe(e,n,t,i);if(!o)return;let{argumentIndex:c,argumentCount:p,argumentsSpan:u}=o,g=hc(s)?i.getContextualTypeForObjectLiteralElement(s):i.getContextualType(s);return g&&{contextualType:g,argumentIndex:c,argumentCount:p,argumentsSpan:u};case 227:{let d=nMe(s),h=i.getContextualType(d),S=e.kind===21?0:E_e(s)-1,T=E_e(d);return h&&{contextualType:h,argumentIndex:S,argumentCount:T,argumentsSpan:Np(s)}}default:return}}function tnt(e){return e.name==="__type"&&fo(e.declarations,t=>{var n;return Pg(t)?(n=Hn(t.parent,rm))==null?void 0:n.symbol:void 0})||e}function rnt(e,t){let n=t.getTypeAtLocation(e.expression);if(t.isTupleType(n)){let{elementFlags:i,fixedLength:s}=n.target;if(s===0)return 0;let o=Tc(i,c=>!(c&1));return o<0?s:o}return 0}function nnt(e,t,n){return iMe(e,t,n)}function int(e,t){return iMe(e,t,void 0)}function iMe(e,t,n){let i=t.getChildren(),s=0,o=!1;for(let c of i){if(n&&c===n)return!o&&c.kind===28&&s++,s;if(z_(c)){s+=rnt(c,e),o=!0;continue}if(c.kind!==28){s++,o=!0;continue}if(o){o=!1;continue}s++}return n?s:i.length&&ka(i).kind===28?s+1:s}function snt(e,t,n,i){return w.assert(n>=t.getStart(),"Assumed 'position' could not occur before node."),Yee(t)?gR(t,n,i)?0:e+2:e+1}function N_e(e,t,n){let i=mk(e.template)?1:e.template.templateSpans.length+1;return t!==0&&w.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:ont(e,n),argumentIndex:t,argumentCount:i}}function ant(e,t){let n=e.getFullStart(),i=ha(t.text,e.getEnd(),!1);return yu(n,i-n)}function ont(e,t){let n=e.template,i=n.getStart(),s=n.getEnd();return n.kind===229&&ka(n.templateSpans).literal.getFullWidth()===0&&(s=ha(t.text,s,!1)),yu(i,s-i)}function cnt(e,t,n,i,s){for(let o=e;!Li(o)&&(s||!Bs(o));o=o.parent){w.assert($p(o.parent,o),"Not a subspan",()=>`Child: ${w.formatSyntaxKind(o.kind)}, parent: ${w.formatSyntaxKind(o.parent.kind)}`);let c=Xrt(o,t,n,i);if(c)return c}}function lnt(e,t,n){let i=e.getChildren(n),s=i.indexOf(t);return w.assert(s>=0&&i.length>s+1),i[s+1]}function sMe(e){return e.kind===0?JF(e.node):e.called}function aMe(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}var vL=70246400;function oMe(e,t,{isTypeParameterList:n,argumentCount:i,argumentsSpan:s,invocation:o,argumentIndex:c},p,u,g){var d;let h=aMe(o),S=o.kind===2?o.symbol:u.getSymbolAtLocation(sMe(o))||g&&((d=t.declaration)==null?void 0:d.symbol),T=S?ME(u,S,g?p:void 0,void 0):Ke,x=kr(e,O=>fnt(O,T,n,u,h,p)),I=0,P=0;for(let O=0;O<x.length;O++){let W=x[O];if(e[O]===t&&(I=P,W.length>1)){let z=0;for(let $ of W){if($.isVariadic||$.parameters.length>=i){I=P+z;break}z++}}P+=W.length}w.assert(I!==-1);let E={items:uP(x,Do),applicableSpan:s,selectedItemIndex:I,argumentIndex:c,argumentCount:i},F=E.items[I];if(F.isVariadic){let O=Tc(F.parameters,W=>!!W.isRest);-1<O&&O<F.parameters.length-1?E.argumentIndex=F.parameters.length:E.argumentIndex=Math.min(E.argumentIndex,F.parameters.length-1)}return E}function unt(e,{argumentCount:t,argumentsSpan:n,invocation:i,argumentIndex:s},o,c){let p=c.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return p?{items:[pnt(e,p,c,aMe(i),o)],applicableSpan:n,selectedItemIndex:0,argumentIndex:s,argumentCount:t}:void 0}function pnt(e,t,n,i,s){let o=ME(n,e),c=HS(),p=t.map(h=>lMe(h,n,i,s,c)),u=e.getDocumentationComment(n),g=e.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:[...o,ep(30)],suffixDisplayParts:[ep(32)],separatorDisplayParts:cMe,parameters:p,documentation:u,tags:g}}var cMe=[ep(28),Ic()];function fnt(e,t,n,i,s,o){let c=(n?dnt:mnt)(e,i,s,o);return kr(c,({isVariadic:p,parameters:u,prefix:g,suffix:d})=>{let h=[...t,...g],S=[...d,..._nt(e,s,i)],T=e.getDocumentationComment(i),x=e.getJsDocTags();return{isVariadic:p,prefixDisplayParts:h,suffixDisplayParts:S,separatorDisplayParts:cMe,parameters:u,documentation:T,tags:x}})}function _nt(e,t,n){return zb(i=>{i.writePunctuation(":"),i.writeSpace(" ");let s=n.getTypePredicateOfSignature(e);s?n.writeTypePredicate(s,t,void 0,i):n.writeType(n.getReturnTypeOfSignature(e),t,void 0,i)})}function dnt(e,t,n,i){let s=(e.target||e).typeParameters,o=HS(),c=(s||Ke).map(u=>lMe(u,t,n,i,o)),p=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,n,vL)]:[];return t.getExpandedParameters(e).map(u=>{let g=A.createNodeArray([...p,...kr(u,h=>t.symbolToParameterDeclaration(h,n,vL))]),d=zb(h=>{o.writeList(2576,g,i,h)});return{isVariadic:!1,parameters:c,prefix:[ep(30)],suffix:[ep(32),...d]}})}function mnt(e,t,n,i){let s=HS(),o=zb(u=>{if(e.typeParameters&&e.typeParameters.length){let g=A.createNodeArray(e.typeParameters.map(d=>t.typeParameterToDeclaration(d,n,vL)));s.writeList(53776,g,i,u)}}),c=t.getExpandedParameters(e),p=t.hasEffectiveRestParameter(e)?c.length===1?u=>!0:u=>{var g;return!!(u.length&&((g=Hn(u[u.length-1],oh))==null?void 0:g.links.checkFlags)&32768)}:u=>!1;return c.map(u=>({isVariadic:p(u),parameters:u.map(g=>gnt(g,t,n,i,s)),prefix:[...o,ep(21)],suffix:[ep(22)]}))}function gnt(e,t,n,i,s){let o=zb(u=>{let g=t.symbolToParameterDeclaration(e,n,vL);s.writeNode(4,g,i,u)}),c=t.isOptionalParameter(e.valueDeclaration),p=oh(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:o,isOptional:c,isRest:p}}function lMe(e,t,n,i,s){let o=zb(c=>{let p=t.typeParameterToDeclaration(e,n,vL);s.writeNode(4,p,i,c)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1,isRest:!1}}var tQ={};it(tQ,{getSmartSelectionRange:()=>hnt});function hnt(e,t){var n,i;let s={textSpan:$c(t.getFullStart(),t.getEnd())},o=t;e:for(;;){let u=bnt(o);if(!u.length)break;for(let g=0;g<u.length;g++){let d=u[g-1],h=u[g],S=u[g+1];if(mb(h,t,!0)>e)break e;let T=eh(sb(t.text,h.end));if(T&&T.kind===2&&p(T.pos,T.end),ynt(t,e,h)){if(QB(h)&&yo(o)&&!F_(h.getStart(t),h.getEnd(),t)&&c(h.getStart(t),h.getEnd()),Bs(h)||hI(h)||j2(h)||s7(h)||d&&j2(d)||lu(h)&&Qc(o)||kI(h)&&lu(o)||li(h)&&kI(o)&&u.length===1||K0(h)||cv(h)||xk(h)){o=h;break}if(hI(o)&&S&&uF(S)){let E=h.getFullStart()-2,F=S.getStart()+1;c(E,F)}let x=kI(h)&&Snt(d)&&Tnt(S)&&!F_(d.getStart(),S.getStart(),t),I=x?d.getEnd():h.getStart(),P=x?S.getStart():knt(t,h);if(Hf(h)&&((n=h.jsDoc)!=null&&n.length)&&c(Ra(h.jsDoc).getStart(),P),kI(h)){let E=h.getChildren()[0];E&&Hf(E)&&((i=E.jsDoc)!=null&&i.length)&&E.getStart()!==h.pos&&(I=Math.min(I,Ra(E.jsDoc).getStart()))}c(I,P),(ya(h)||i2(h))&&c(I+1,P-1),o=h;break}if(g===u.length-1)break e}}return s;function c(u,g){if(u!==g){let d=$c(u,g);(!s||!KI(d,s.textSpan)&&Pee(d,e))&&(s={textSpan:d,...s&&{parent:s}})}}function p(u,g){c(u,g);let d=u;for(;t.text.charCodeAt(d)===47;)d++;c(d,g)}}function ynt(e,t,n){return w.assert(n.pos<=t),t<n.end?!0:n.getEnd()===t?Kp(e,t).pos<n.end:!1}var vnt=vf(ac,Dl);function bnt(e){var t;if(Li(e))return e3(e.getChildAt(0).getChildren(),vnt);if(yk(e)){let[n,...i]=e.getChildren(),s=w.checkDefined(i.pop());w.assertEqual(n.kind,19),w.assertEqual(s.kind,20);let o=e3(i,p=>p===e.readonlyToken||p.kind===148||p===e.questionToken||p.kind===58),c=e3(o,({kind:p})=>p===23||p===169||p===24);return[n,t3(rQ(c,({kind:p})=>p===59)),s]}if(mp(e)){let n=e3(e.getChildren(),c=>c===e.name||ws(e.modifiers,c)),i=((t=n[0])==null?void 0:t.kind)===321?n[0]:void 0,s=i?n.slice(1):n,o=rQ(s,({kind:c})=>c===59);return i?[i,t3(o)]:o}if(Gi(e)){let n=e3(e.getChildren(),s=>s===e.dotDotDotToken||s===e.name),i=e3(n,s=>s===n[0]||s===e.questionToken);return rQ(i,({kind:s})=>s===64)}return Da(e)?rQ(e.getChildren(),({kind:n})=>n===64):e.getChildren()}function e3(e,t){let n=[],i;for(let s of e)t(s)?(i=i||[],i.push(s)):(i&&(n.push(t3(i)),i=void 0),n.push(s));return i&&n.push(t3(i)),n}function rQ(e,t,n=!0){if(e.length<2)return e;let i=Tc(e,t);if(i===-1)return e;let s=e.slice(0,i),o=e[i],c=ka(e),p=n&&c.kind===27,u=e.slice(i+1,p?e.length-1:void 0),g=cM([s.length?t3(s):void 0,o,u.length?t3(u):void 0]);return p?g.concat(c):g}function t3(e){return w.assertGreaterThanOrEqual(e.length,1),om(Z0.createSyntaxList(e),e[0].pos,ka(e).end)}function Snt(e){let t=e&&e.kind;return t===19||t===23||t===21||t===287}function Tnt(e){let t=e&&e.kind;return t===20||t===24||t===22||t===288}function knt(e,t){switch(t.kind){case 342:case 339:case 349:case 347:case 344:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var dv={};it(dv,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>Cnt,getSymbolKind:()=>pMe,getSymbolModifiers:()=>xnt});var uMe=70246400;function pMe(e,t,n){let i=fMe(e,t,n);if(i!=="")return i;let s=rI(t);return s&32?$o(t,232)?"local class":"class":s&384?"enum":s&524288?"type":s&64?"interface":s&262144?"type parameter":s&8?"enum member":s&2097152?"alias":s&1536?"module":i}function fMe(e,t,n){let i=e.getRootSymbols(t);if(i.length===1&&Ra(i).flags&8192&&e.getTypeOfSymbolAtLocation(t,n).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(n.kind===110&&ht(n)||DS(n))return"parameter";let s=rI(t);if(s&3)return Zq(t)?"parameter":t.valueDeclaration&&Bw(t.valueDeclaration)?"const":t.valueDeclaration&&YM(t.valueDeclaration)?"using":t.valueDeclaration&&XM(t.valueDeclaration)?"await using":or(t.declarations,MF)?"let":mMe(t)?"local var":"var";if(s&16)return mMe(t)?"local function":"function";if(s&32768)return"getter";if(s&65536)return"setter";if(s&8192)return"method";if(s&16384)return"constructor";if(s&131072)return"index";if(s&4){if(s&33554432&&t.links.checkFlags&6){let o=or(e.getRootSymbols(t),c=>{if(c.getFlags()&98311)return"property"});return o||(e.getTypeOfSymbolAtLocation(t,n).getCallSignatures().length?"method":"property")}return"property"}return""}function _Me(e){if(e.declarations&&e.declarations.length){let[t,...n]=e.declarations,i=Dr(n)&&D5(t)&&_t(n,o=>!D5(o))?65536:0,s=DE(t,i);if(s)return s.split(",")}return[]}function xnt(e,t){if(!t)return"";let n=new Set(_Me(t));if(t.flags&2097152){let i=e.getAliasedSymbol(t);i!==t&&or(_Me(i),s=>{n.add(s)})}return t.flags&16777216&&n.add("optional"),n.size>0?ds(n.values()).join(","):""}function dMe(e,t,n,i,s,o,c,p,u,g){var d;let h=[],S=[],T=[],x=rI(t),I=c&1?fMe(e,t,s):"",P=!1,E=s.kind===110&&UF(s)||DS(s),F,O,W=!1,z={canIncreaseExpansionDepth:!1,truncated:!1},$=!1;if(s.kind===110&&!E)return{displayParts:[Rf(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(I!==""||x&32||x&2097152){if(I==="getter"||I==="setter"){let ge=Bn(t.declarations,ke=>ke.name===s&&ke.kind!==212);if(ge)switch(ge.kind){case 178:I="getter";break;case 179:I="setter";break;case 173:I="accessor";break;default:w.assertNever(ge)}else I="property"}let ye;if(o??(o=E?e.getTypeAtLocation(s):e.getTypeOfSymbolAtLocation(t,s)),s.parent&&s.parent.kind===212){let ge=s.parent.name;(ge===s||ge&&ge.getFullWidth()===0)&&(s=s.parent)}let ee;if(Om(s)?ee=s:(yq(s)||CE(s)||s.parent&&(Qu(s.parent)||U0(s.parent))&&Fs(t.valueDeclaration))&&(ee=s.parent),ee){ye=e.getResolvedSignature(ee);let ge=ee.kind===215||Ws(ee)&&ee.expression.kind===108,ke=ge?o.getConstructSignatures():o.getCallSignatures();if(ye&&!ws(ke,ye.target)&&!ws(ke,ye)&&(ye=ke.length?ke[0]:void 0),ye){switch(ge&&x&32?(I="constructor",ve(o.symbol,I)):x&2097152?(I="alias",H(I),h.push(Ic()),ge&&(ye.flags&4&&(h.push(Rf(128)),h.push(Ic())),h.push(Rf(105)),h.push(Ic())),de(t)):ve(t,I),I){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":h.push(ep(59)),h.push(Ic()),!(jn(o)&16)&&o.symbol&&(Gn(h,ME(e,o.symbol,i,void 0,5)),h.push(XI())),ge&&(ye.flags&4&&(h.push(Rf(128)),h.push(Ic())),h.push(Rf(105)),h.push(Ic())),Se(ye,ke,262144);break;default:Se(ye,ke)}P=!0,W=ke.length>1}}else if(wq(s)&&!(x&98304)||s.kind===137&&s.parent.kind===177){let ge=s.parent;if(t.declarations&&Bn(t.declarations,Oe=>Oe===(s.kind===137?ge.parent:ge))){let Oe=ge.kind===177?o.getNonNullableType().getConstructSignatures():o.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(ge)?ye=Oe[0]:ye=e.getSignatureFromDeclaration(ge),ge.kind===177?(I="constructor",ve(o.symbol,I)):ve(ge.kind===180&&!(o.symbol.flags&2048||o.symbol.flags&4096)?o.symbol:t,I),ye&&Se(ye,Oe),P=!0,W=Oe.length>1}}}if(x&32&&!P&&!E){re();let ye=$o(t,232);ye&&(H("local class"),h.push(Ic())),le(t,c)||(ye||(h.push(Rf(86)),h.push(Ic())),de(t),Je(t,n))}if(x&64&&c&2&&(_e(),le(t,c)||(h.push(Rf(120)),h.push(Ic()),de(t),Je(t,n))),x&524288&&c&2&&(_e(),h.push(Rf(156)),h.push(Ic()),de(t),Je(t,n),h.push(Ic()),h.push(NE(64)),h.push(Ic()),Gn(h,TR(e,s.parent&&Nd(s.parent)?e.getTypeAtLocation(s.parent):e.getDeclaredTypeOfSymbol(t),i,8388608,u,g,z))),x&384&&(_e(),le(t,c)||(_t(t.declarations,ye=>H0(ye)&&E0(ye))&&(h.push(Rf(87)),h.push(Ic())),h.push(Rf(94)),h.push(Ic()),de(t,void 0))),x&1536&&!E&&(_e(),!le(t,c))){let ye=$o(t,268),ee=ye&&ye.name&&ye.name.kind===80;h.push(Rf(ee?145:144)),h.push(Ic()),de(t)}if(x&262144&&c&2)if(_e(),h.push(ep(21)),h.push(f_("type parameter")),h.push(ep(22)),h.push(Ic()),de(t),t.parent)V(),de(t.parent,i),Je(t.parent,i);else{let ye=$o(t,169);if(ye===void 0)return w.fail();let ee=ye.parent;if(ee)if(Fs(ee)){V();let ge=e.getSignatureFromDeclaration(ee);ee.kind===181?(h.push(Rf(105)),h.push(Ic())):ee.kind!==180&&ee.name&&de(ee.symbol),Gn(h,t$(e,ge,n,32))}else gd(ee)&&(V(),h.push(Rf(156)),h.push(Ic()),de(ee.symbol),Je(ee.symbol,n))}if(x&8){I="enum member",ve(t,"enum member");let ye=(d=t.declarations)==null?void 0:d[0];if(ye?.kind===307){let ee=e.getConstantValue(ye);ee!==void 0&&(h.push(Ic()),h.push(NE(64)),h.push(Ic()),h.push(pf(Ete(ee),typeof ee=="number"?7:8)))}}if(t.flags&2097152){if(_e(),!P||S.length===0&&T.length===0){let ye=e.getAliasedSymbol(t);if(ye!==t&&ye.declarations&&ye.declarations.length>0){let ee=ye.declarations[0],ge=Ss(ee);if(ge&&!P){let ke=PF(ee)&&ri(ee,128),Oe=t.name!=="default"&&!ke,nt=dMe(e,ye,Nr(ee),i,ge,o,c,Oe?t:ye,u,g);h.push(...nt.displayParts),h.push(XI()),F=nt.documentation,O=nt.tags,z&&nt.canIncreaseVerbosityLevel&&(z.canIncreaseExpansionDepth=!0)}else F=ye.getContextualDocumentationComment(ee,e),O=ye.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 271:h.push(Rf(95)),h.push(Ic()),h.push(Rf(145));break;case 278:h.push(Rf(95)),h.push(Ic()),h.push(Rf(t.declarations[0].isExportEquals?64:90));break;case 282:h.push(Rf(95));break;default:h.push(Rf(102))}h.push(Ic()),de(t),or(t.declarations,ye=>{if(ye.kind===272){let ee=ye;if(M0(ee))h.push(Ic()),h.push(NE(64)),h.push(Ic()),h.push(Rf(149)),h.push(ep(21)),h.push(pf(pc(QP(ee)),8)),h.push(ep(22));else{let ge=e.getSymbolAtLocation(ee.moduleReference);ge&&(h.push(Ic()),h.push(NE(64)),h.push(Ic()),de(ge,i))}return!0}})}if(!P)if(I!==""){if(o){if(E?(_e(),h.push(Rf(110))):ve(t,I),I==="property"||I==="accessor"||I==="getter"||I==="setter"||I==="JSX attribute"||x&3||I==="local var"||I==="index"||I==="using"||I==="await using"||E){if(h.push(ep(59)),h.push(Ic()),o.symbol&&o.symbol.flags&262144&&I!=="index"){let ye=zb(ee=>{let ge=e.typeParameterToDeclaration(o,i,uMe,void 0,void 0,u,g,z);U().writeNode(4,ge,Nr(As(i)),ee)},u);Gn(h,ye)}else Gn(h,TR(e,o,i,void 0,u,g,z));if(oh(t)&&t.links.target&&oh(t.links.target)&&t.links.target.links.tupleLabelDeclaration){let ye=t.links.target.links.tupleLabelDeclaration;w.assertNode(ye.name,Be),h.push(Ic()),h.push(ep(21)),h.push(f_(Fn(ye.name))),h.push(ep(22))}}else if(x&16||x&8192||x&16384||x&131072||x&98304||I==="method"){let ye=o.getNonNullableType().getCallSignatures();ye.length&&(Se(ye[0],ye),W=ye.length>1)}}}else I=pMe(e,t,s);if(S.length===0&&!W&&(S=t.getContextualDocumentationComment(i,e)),S.length===0&&x&4&&t.parent&&t.declarations&&or(t.parent.declarations,ye=>ye.kind===308))for(let ye of t.declarations){if(!ye.parent||ye.parent.kind!==227)continue;let ee=e.getSymbolAtLocation(ye.parent.right);if(ee&&(S=ee.getDocumentationComment(e),T=ee.getJsDocTags(e),S.length>0))break}if(S.length===0&&Be(s)&&t.valueDeclaration&&Da(t.valueDeclaration)){let ye=t.valueDeclaration,ee=ye.parent,ge=ye.propertyName||ye.name;if(Be(ge)&&o_(ee)){let ke=R_(ge),Oe=e.getTypeAtLocation(ee);S=fo(Oe.isUnion()?Oe.types:[Oe],nt=>{let ae=nt.getProperty(ke);return ae?ae.getDocumentationComment(e):void 0})||Ke}}T.length===0&&!W&&!KP(s)&&(T=t.getContextualJsDocTags(i,e)),S.length===0&&F&&(S=F),T.length===0&&O&&(T=O);let X=!z.truncated&&z.canIncreaseExpansionDepth;return{displayParts:h,documentation:S,symbolKind:I,tags:T.length===0?void 0:T,canIncreaseVerbosityLevel:g!==void 0?X:void 0};function U(){return HS()}function _e(){h.length&&h.push(XI()),re()}function re(){p&&(H("alias"),h.push(Ic()))}function V(){h.push(Ic()),h.push(Rf(103)),h.push(Ic())}function ce(ye,ee){if(g===void 0)return!1;let ge=ye.flags&96?e.getDeclaredTypeOfSymbol(ye):e.getTypeOfSymbolAtLocation(ye,s);return!ge||e.isLibType(ge)?!1:0<g?!0:(ee&&(ee.canIncreaseExpansionDepth=!0),!1)}function oe(ye){let ee=0;return ye&1&&(ee|=111551),ye&2&&(ee|=788968),ye&4&&(ee|=1920),ee}function le(ye,ee){if($)return!0;if(ce(ye,z)){let ge=oe(ee),ke=zb(Oe=>{let nt=e.getEmitResolver().symbolToDeclarations(ye,ge,17408,u,g!==void 0?g-1:void 0,z),ae=U(),Ue=ye.valueDeclaration&&Nr(ye.valueDeclaration);nt.forEach((te,Ne)=>{Ne>0&&Oe.writeLine(),ae.writeNode(4,te,Ue,Oe)})},u);return Gn(h,ke),$=!0,!0}return!1}function de(ye,ee){let ge;p&&ye===t&&(ye=p),I==="index"&&(ge=e.getIndexInfosOfIndexSymbol(ye));let ke=[];ye.flags&131072&&ge?(ye.parent&&(ke=ME(e,ye.parent)),ke.push(ep(23)),ge.forEach((Oe,nt)=>{ke.push(...TR(e,Oe.keyType)),nt!==ge.length-1&&(ke.push(Ic()),ke.push(ep(52)),ke.push(Ic()))}),ke.push(ep(24))):ke=ME(e,ye,ee||n,void 0,7),Gn(h,ke),t.flags&16777216&&h.push(ep(58))}function ve(ye,ee){_e(),ee&&(H(ee),ye&&!_t(ye.declarations,ge=>Fo(ge)||(Ao(ge)||Zc(ge))&&!ge.name)&&(h.push(Ic()),de(ye)))}function H(ye){switch(ye){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":h.push(e$(ye));return;default:h.push(ep(21)),h.push(e$(ye)),h.push(ep(22));return}}function Se(ye,ee,ge=0){Gn(h,t$(e,ye,i,ge|32,u,g,z)),ee.length>1&&(h.push(Ic()),h.push(ep(21)),h.push(NE(40)),h.push(pf((ee.length-1).toString(),7)),h.push(Ic()),h.push(f_(ee.length===2?"overload":"overloads")),h.push(ep(22))),S=ye.getDocumentationComment(e),T=ye.getJsDocTags(),ee.length>1&&S.length===0&&T.length===0&&(S=ee[0].getDocumentationComment(e),T=ee[0].getJsDocTags().filter(ke=>ke.name!=="deprecated"))}function Je(ye,ee){let ge=zb(ke=>{let Oe=e.symbolToTypeParameterDeclarations(ye,ee,uMe);U().writeList(53776,Oe,Nr(As(ee)),ke)});Gn(h,ge)}}function Cnt(e,t,n,i,s,o=Ok(s),c,p,u){return dMe(e,t,n,i,s,void 0,o,c,p,u)}function mMe(e){return e.parent?!1:or(e.declarations,t=>{if(t.kind===219)return!0;if(t.kind!==261&&t.kind!==263)return!1;for(let n=t.parent;!bS(n);n=n.parent)if(n.kind===308||n.kind===269)return!1;return!0})}var gn={};it(gn,{ChangeTracker:()=>Dnt,LeadingTriviaOption:()=>yMe,TrailingTriviaOption:()=>vMe,applyChanges:()=>j_e,assignPositionsToNode:()=>aQ,createWriter:()=>SMe,deleteNode:()=>dy,getAdjustedEndPosition:()=>TC,isThisTypeAnnotatable:()=>Int,isValidLocationToAddComment:()=>TMe});function gMe(e){let t=e.__pos;return w.assert(typeof t=="number"),t}function M_e(e,t){w.assert(typeof t=="number"),e.__pos=t}function hMe(e){let t=e.__end;return w.assert(typeof t=="number"),t}function R_e(e,t){w.assert(typeof t=="number"),e.__end=t}var yMe=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(yMe||{}),vMe=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(vMe||{});function bMe(e,t){return ha(e,t,!1,!0)}function wnt(e,t){let n=t;for(;n<e.length;){let i=e.charCodeAt(n);if(Rm(i)){n++;continue}return i===47}return!1}var r3={leadingTriviaOption:0,trailingTriviaOption:0};function n3(e,t,n,i){return{pos:Gk(e,t,i),end:TC(e,n,i)}}function Gk(e,t,n,i=!1){var s,o;let{leadingTriviaOption:c}=n;if(c===0)return t.getStart(e);if(c===3){let T=t.getStart(e),x=bd(T,e);return qI(t,x)?x:T}if(c===2){let T=bz(t,e.text);if(T?.length)return bd(T[0].pos,e)}let p=t.getFullStart(),u=t.getStart(e);if(p===u)return u;let g=bd(p,e);if(bd(u,e)===g)return c===1?p:u;if(i){let T=((s=nh(e.text,p))==null?void 0:s[0])||((o=sb(e.text,p))==null?void 0:o[0]);if(T)return ha(e.text,T.end,!0,!0)}let h=p>0?1:0,S=db(uA(e,g)+h,e);return S=bMe(e.text,S),db(uA(e,S),e)}function O_e(e,t,n){let{end:i}=t,{trailingTriviaOption:s}=n;if(s===2){let o=sb(e.text,i);if(o){let c=uA(e,t.end);for(let p of o){if(p.kind===2||uA(e,p.pos)>c)break;if(uA(e,p.end)>c)return ha(e.text,p.end,!0,!0)}}}}function TC(e,t,n){var i;let{end:s}=t,{trailingTriviaOption:o}=n;if(o===0)return s;if(o===1){let u=Qi(sb(e.text,s),nh(e.text,s)),g=(i=u?.[u.length-1])==null?void 0:i.end;return g||s}let c=O_e(e,t,n);if(c)return c;let p=ha(e.text,s,!0);return p!==s&&(o===2||qu(e.text.charCodeAt(p-1)))?p:s}function nQ(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===211)}function Int(e){return Ao(e)||Gc(e)}var Dnt=class dve{constructor(t,n){this.newLineCharacter=t,this.formatContext=n,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new dve(py(t.host,t.formatContext.options),t.formatContext)}static with(t,n){let i=dve.fromContext(t);return n(i),i.getChanges()}pushRaw(t,n){w.assertEqual(t.fileName,n.fileName);for(let i of n.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:u5(i.span)})}deleteRange(t,n){this.changes.push({kind:0,sourceFile:t,range:n})}delete(t,n){this.deletedNodes.push({sourceFile:t,node:n})}deleteNode(t,n,i={leadingTriviaOption:1}){this.deleteRange(t,n3(t,n,n,i))}deleteNodes(t,n,i={leadingTriviaOption:1},s){for(let o of n){let c=Gk(t,o,i,s),p=TC(t,o,i);this.deleteRange(t,{pos:c,end:p}),s=!!O_e(t,o,i)}}deleteModifier(t,n){this.deleteRange(t,{pos:n.getStart(t),end:ha(t.text,n.end,!0)})}deleteNodeRange(t,n,i,s={leadingTriviaOption:1}){let o=Gk(t,n,s),c=TC(t,i,s);this.deleteRange(t,{pos:o,end:c})}deleteNodeRangeExcludingEnd(t,n,i,s={leadingTriviaOption:1}){let o=Gk(t,n,s),c=i===void 0?t.text.length:Gk(t,i,s);this.deleteRange(t,{pos:o,end:c})}replaceRange(t,n,i,s={}){this.changes.push({kind:1,sourceFile:t,range:n,options:s,node:i})}replaceNode(t,n,i,s=r3){this.replaceRange(t,n3(t,n,n,s),i,s)}replaceNodeRange(t,n,i,s,o=r3){this.replaceRange(t,n3(t,n,i,o),s,o)}replaceRangeWithNodes(t,n,i,s={}){this.changes.push({kind:2,sourceFile:t,range:n,options:s,nodes:i})}replaceNodeWithNodes(t,n,i,s=r3){this.replaceRangeWithNodes(t,n3(t,n,n,s),i,s)}replaceNodeWithText(t,n,i){this.replaceRangeWithText(t,n3(t,n,n,r3),i)}replaceNodeRangeWithNodes(t,n,i,s,o=r3){this.replaceRangeWithNodes(t,n3(t,n,i,o),s,o)}nodeHasTrailingComment(t,n,i=r3){return!!O_e(t,n,i)}nextCommaToken(t,n){let i=YS(n,n.parent,t);return i&&i.kind===28?i:void 0}replacePropertyAssignment(t,n,i){let s=this.nextCommaToken(t,n)?"":","+this.newLineCharacter;this.replaceNode(t,n,i,{suffix:s})}insertNodeAt(t,n,i,s={}){this.replaceRange(t,O_(n),i,s)}insertNodesAt(t,n,i,s={}){this.replaceRangeWithNodes(t,O_(n),i,s)}insertNodeAtTopOfFile(t,n,i){this.insertAtTopOfFile(t,n,i)}insertNodesAtTopOfFile(t,n,i){this.insertAtTopOfFile(t,n,i)}insertAtTopOfFile(t,n,i){let s=Fnt(t),o={prefix:s===0?void 0:this.newLineCharacter,suffix:(qu(t.text.charCodeAt(s))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};gs(n)?this.insertNodesAt(t,s,n,o):this.insertNodeAt(t,s,n,o)}insertNodesAtEndOfFile(t,n,i){this.insertAtEndOfFile(t,n,i)}insertAtEndOfFile(t,n,i){let s=t.end+1,o={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(i?this.newLineCharacter:"")};this.insertNodesAt(t,s,n,o)}insertStatementsInNewFile(t,n,i){this.newFileChanges||(this.newFileChanges=od()),this.newFileChanges.add(t,{oldFile:i,statements:n})}insertFirstParameter(t,n,i){let s=_l(n);s?this.insertNodeBefore(t,s,i):this.insertNodeAt(t,n.pos,i)}insertNodeBefore(t,n,i,s=!1,o={}){this.insertNodeAt(t,Gk(t,n,o),i,this.getOptionsForInsertNodeBefore(n,i,s))}insertNodesBefore(t,n,i,s=!1,o={}){this.insertNodesAt(t,Gk(t,n,o),i,this.getOptionsForInsertNodeBefore(n,Ra(i),s))}insertModifierAt(t,n,i,s={}){this.insertNodeAt(t,n,A.createToken(i),s)}insertModifierBefore(t,n,i){return this.insertModifierAt(t,i.getStart(t),n,{suffix:" "})}insertCommentBeforeLine(t,n,i,s){let o=db(n,t),c=ile(t.text,o),p=TMe(t,c),u=$I(t,p?c:i),g=t.text.slice(o,c),d=`${p?"":this.newLineCharacter}//${s}${this.newLineCharacter}${g}`;this.insertText(t,u.getStart(t),d)}insertJsdocCommentBefore(t,n,i){let s=n.getStart(t);if(n.jsDoc)for(let p of n.jsDoc)this.deleteRange(t,{pos:bd(p.getStart(t),t),end:TC(t,p,{})});let o=y5(t.text,s-1),c=t.text.slice(o,s);this.insertNodeAt(t,s,i,{suffix:this.newLineCharacter+c})}createJSDocText(t,n){let i=Ma(n.jsDoc,o=>Is(o.comment)?A.createJSDocText(o.comment):o.comment),s=eh(n.jsDoc);return s&&F_(s.pos,s.end,t)&&Dr(i)===0?void 0:A.createNodeArray(oM(i,A.createJSDocText(`
|
|
`)))}replaceJSDocComment(t,n,i){this.insertJsdocCommentBefore(t,Pnt(n),A.createJSDocComment(this.createJSDocText(t,n),A.createNodeArray(i)))}addJSDocTags(t,n,i){let s=uP(n.jsDoc,c=>c.tags),o=i.filter(c=>!s.some((p,u)=>{let g=Ant(p,c);return g&&(s[u]=g),!!g}));this.replaceJSDocComment(t,n,[...s,...o])}filterJSDocTags(t,n,i){this.replaceJSDocComment(t,n,Mn(uP(n.jsDoc,s=>s.tags),i))}replaceRangeWithText(t,n,i){this.changes.push({kind:3,sourceFile:t,range:n,text:i})}insertText(t,n,i){this.replaceRangeWithText(t,O_(n),i)}tryInsertTypeAnnotation(t,n,i){let s;if(Fs(n)){if(s=lo(n,22,t),!s){if(!Fo(n))return!1;s=Ra(n.parameters)}}else s=(n.kind===261?n.exclamationToken:n.questionToken)??n.name;return this.insertNodeAt(t,s.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,n,i){let s=lo(n,21,t).getStart(t)+1,o=n.parameters.length?", ":"";this.insertNodeAt(t,s,i,{prefix:"this: ",suffix:o})}insertTypeParameters(t,n,i){let s=(lo(n,21,t)||Ra(n.parameters)).getStart(t);this.insertNodesAt(t,s,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,n,i){return Ei(t)||cl(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:li(t)?{suffix:", "}:Gi(t)?Gi(n)?{suffix:", "}:{}:ya(t)&&ac(t.parent)||Km(t)?{suffix:", "}:gp(t)?{suffix:","+(i?this.newLineCharacter:" ")}:w.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,n,i){let s=_l(n.body.statements);!s||!n.body.multiLine?this.replaceConstructorBody(t,n,[i,...n.body.statements]):this.insertNodeBefore(t,s,i)}insertNodeAtConstructorStartAfterSuperCall(t,n,i){let s=Bn(n.body.statements,o=>Ql(o)&&ek(o.expression));!s||!n.body.multiLine?this.replaceConstructorBody(t,n,[...n.body.statements,i]):this.insertNodeAfter(t,s,i)}insertNodeAtConstructorEnd(t,n,i){let s=Wo(n.body.statements);!s||!n.body.multiLine?this.replaceConstructorBody(t,n,[...n.body.statements,i]):this.insertNodeAfter(t,s,i)}replaceConstructorBody(t,n,i){this.replaceNode(t,n.body,A.createBlock(i,!0))}insertNodeAtEndOfScope(t,n,i){let s=Gk(t,n.getLastToken(),{});this.insertNodeAt(t,s,i,{prefix:qu(t.text.charCodeAt(n.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(t,n,i){this.insertNodeAtStartWorker(t,n,i)}insertNodeAtObjectStart(t,n,i){this.insertNodeAtStartWorker(t,n,i)}insertNodeAtStartWorker(t,n,i){let s=this.guessIndentationFromExistingMembers(t,n)??this.computeIndentationForNewMember(t,n);this.insertNodeAt(t,iQ(n).pos,i,this.getInsertNodeAtStartInsertOptions(t,n,s))}guessIndentationFromExistingMembers(t,n){let i,s=n;for(let o of iQ(n)){if(b8(s,o,t))return;let c=o.getStart(t),p=vl.SmartIndenter.findFirstNonWhitespaceColumn(bd(c,t),c,t,this.formatContext.options);if(i===void 0)i=p;else if(p!==i)return;s=o}return i}computeIndentationForNewMember(t,n){let i=n.getStart(t);return vl.SmartIndenter.findFirstNonWhitespaceColumn(bd(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,n,i){let o=iQ(n).length===0,c=!this.classesWithNodesInsertedAtStart.has(qa(n));c&&this.classesWithNodesInsertedAtStart.set(qa(n),{node:n,sourceFile:t});let p=Sa(n)&&(!M_(t)||!o),u=Sa(n)&&M_(t)&&o&&!c;return{indentation:i,prefix:(u?",":"")+this.newLineCharacter,suffix:p?",":uu(n)&&o?";":""}}insertNodeAfterComma(t,n,i){let s=this.insertNodeAfterWorker(t,this.nextCommaToken(t,n)||n,i);this.insertNodeAt(t,s,i,this.getInsertNodeAfterOptions(t,n))}insertNodeAfter(t,n,i){let s=this.insertNodeAfterWorker(t,n,i);this.insertNodeAt(t,s,i,this.getInsertNodeAfterOptions(t,n))}insertNodeAtEndOfList(t,n,i){this.insertNodeAt(t,n.end,i,{prefix:", "})}insertNodesAfter(t,n,i){let s=this.insertNodeAfterWorker(t,n,Ra(i));this.insertNodesAt(t,s,i,this.getInsertNodeAfterOptions(t,n))}insertNodeAfterWorker(t,n,i){return jnt(n,i)&&t.text.charCodeAt(n.end-1)!==59&&this.replaceRange(t,O_(n.end),A.createToken(27)),TC(t,n,{})}getInsertNodeAfterOptions(t,n){let i=this.getInsertNodeAfterOptionsWorker(n);return{...i,prefix:n.end===t.end&&Ei(n)?i.prefix?`
|
|
${i.prefix}`:`
|
|
`:i.prefix}}getInsertNodeAfterOptionsWorker(t){switch(t.kind){case 264:case 268:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 261:case 11:case 80:return{prefix:", "};case 304:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 170:return{};default:return w.assert(Ei(t)||pF(t)),{suffix:this.newLineCharacter}}}insertName(t,n,i){if(w.assert(!n.name),n.kind===220){let s=lo(n,39,t),o=lo(n,21,t);o?(this.insertNodesAt(t,o.getStart(t),[A.createToken(100),A.createIdentifier(i)],{joiner:" "}),dy(this,t,s)):(this.insertText(t,Ra(n.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,s,A.createToken(22))),n.body.kind!==242&&(this.insertNodesAt(t,n.body.getStart(t),[A.createToken(19),A.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,n.body.end,[A.createToken(27),A.createToken(20)],{joiner:" "}))}else{let s=lo(n,n.kind===219?100:86,t).end;this.insertNodeAt(t,s,A.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,n){this.insertText(t,n.getStart(t),"export ")}insertImportSpecifierAtIndex(t,n,i,s){let o=i.elements[s-1];o?this.insertNodeInListAfter(t,o,n):this.insertNodeBefore(t,i.elements[0],n,!F_(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,n,i,s=vl.SmartIndenter.getContainingList(n,t)){if(!s){w.fail("node is not a list element");return}let o=jw(s,n);if(o<0)return;let c=n.getEnd();if(o!==s.length-1){let p=Ii(t,n.end);if(p&&nQ(n,p)){let u=s[o+1],g=bMe(t.text,u.getFullStart()),d=`${ta(p.kind)}${t.text.substring(p.end,g)}`;this.insertNodesAt(t,g,[i],{suffix:d})}}else{let p=n.getStart(t),u=bd(p,t),g,d=!1;if(s.length===1)g=28;else{let h=Al(n.pos,t);g=nQ(n,h)?h.kind:28,d=bd(s[o-1].getStart(t),t)!==u}if((wnt(t.text,n.end)||!F_(s.pos,s.end,t))&&(d=!0),d){this.replaceRange(t,O_(c),A.createToken(g));let h=vl.SmartIndenter.findFirstNonWhitespaceColumn(u,p,t,this.formatContext.options),S=ha(t.text,c,!0,!1);for(;S!==c&&qu(t.text.charCodeAt(S-1));)S--;this.replaceRange(t,O_(S),i,{indentation:h,prefix:this.newLineCharacter})}else this.replaceRange(t,O_(c),i,{prefix:`${ta(g)} `})}}parenthesizeExpression(t,n){this.replaceRange(t,jG(n),A.createParenthesizedExpression(n))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:n})=>{let[i,s]=Nnt(t,n);if(i!==void 0&&s!==void 0){let o=iQ(t).length===0,c=F_(i,s,n);o&&c&&i!==s-1&&this.deleteRange(n,O_(i,s-1)),c&&this.insertText(n,s-1,this.newLineCharacter)}})}finishDeleteDeclarations(){let t=new Set;for(let{sourceFile:n,node:i}of this.deletedNodes)this.deletedNodes.some(s=>s.sourceFile===n&&Nce(s.node,i))||(gs(i)?this.deleteRange(n,LG(n,i)):L_e.deleteDeclaration(this,t,n,i));t.forEach(n=>{let i=n.getSourceFile(),s=vl.SmartIndenter.getContainingList(n,i);if(n!==ka(s))return;let o=EO(s,c=>!t.has(c),s.length-2);o!==-1&&this.deleteRange(i,{pos:s[o].end,end:F_e(i,s[o+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();let n=sQ.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,s)=>{n.push(sQ.newFileChanges(s,i,this.newLineCharacter,this.formatContext))}),n}createNewFile(t,n,i){this.insertStatementsInNewFile(n,i,t)}};function Pnt(e){if(e.kind!==220)return e;let t=e.parent.kind===173?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function Ant(e,t){if(e.kind===t.kind)switch(e.kind){case 342:{let n=e,i=t;return Be(n.name)&&Be(i.name)&&n.name.escapedText===i.name.escapedText?A.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,n.comment):void 0}case 343:return A.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 345:return A.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function F_e(e,t){return ha(e.text,Gk(e,t,{leadingTriviaOption:1}),!1,!0)}function Ent(e,t,n,i){let s=F_e(e,i);if(n===void 0||F_(TC(e,t,{}),s,e))return s;let o=Al(i.getStart(e),e);if(nQ(t,o)){let c=Al(t.getStart(e),e);if(nQ(n,c)){let p=ha(e.text,o.getEnd(),!0,!0);if(F_(c.getStart(e),o.getStart(e),e))return qu(e.text.charCodeAt(p-1))?p-1:p;if(qu(e.text.charCodeAt(p)))return p}}return s}function Nnt(e,t){let n=lo(e,19,t),i=lo(e,20,t);return[n?.end,i?.end]}function iQ(e){return Sa(e)?e.properties:e.members}var sQ;(e=>{function t(p,u,g,d){return Ji(vw(p,h=>h.sourceFile.path),h=>{let S=h[0].sourceFile,T=yf(h,(I,P)=>I.range.pos-P.range.pos||I.range.end-P.range.end);for(let I=0;I<T.length-1;I++)w.assert(T[I].range.end<=T[I+1].range.pos,"Changes overlap",()=>`${JSON.stringify(T[I].range)} and ${JSON.stringify(T[I+1].range)}`);let x=Ji(T,I=>{let P=pv(I.range),E=I.kind===1?Nr(sc(I.node))??I.sourceFile:I.kind===2?Nr(sc(I.nodes[0]))??I.sourceFile:I.sourceFile,F=s(I,E,S,u,g,d);if(!(P.length===F.length&&_le(E.text,F,P.start)))return hR(P,F)});return x.length>0?{fileName:S.fileName,textChanges:x}:void 0})}e.getTextChangesFromChanges=t;function n(p,u,g,d){let h=i(j8(p),u,g,d);return{fileName:p,textChanges:[hR(yu(0,0),h)],isNewFile:!0}}e.newFileChanges=n;function i(p,u,g,d){let h=Ma(u,x=>x.statements.map(I=>I===4?"":c(I,x.oldFile,g).text)).join(g),S=X2("any file name",h,{languageVersion:99,jsDocParsingMode:1},!0,p),T=vl.formatDocument(S,d);return j_e(h,T)+g}e.newFileChangesWorker=i;function s(p,u,g,d,h,S){var T;if(p.kind===0)return"";if(p.kind===3)return p.text;let{options:x={},range:{pos:I}}=p,P=O=>o(O,u,g,I,x,d,h,S),E=p.kind===2?p.nodes.map(O=>Sw(P(O),d)).join(((T=p.options)==null?void 0:T.joiner)||d):P(p.node),F=x.indentation!==void 0||bd(I,u)===I?E:E.replace(/^\s+/,"");return(x.prefix||"")+F+(!x.suffix||Bo(F,x.suffix)?"":x.suffix)}function o(p,u,g,d,{indentation:h,prefix:S,delta:T},x,I,P){let{node:E,text:F}=c(p,u,x);P&&P(E,F);let O=A5(I,u),W=h!==void 0?h:vl.SmartIndenter.getIndentation(d,g,O,S===x||bd(d,u)===d);T===void 0&&(T=vl.SmartIndenter.shouldIndentChildNode(O,p)&&O.indentSize||0);let z={text:F,getLineAndCharacterOfPosition(X){return Hs(this,X)}},$=vl.formatNodeGivenIndentation(E,z,u.languageVariant,W,T,{...I,options:O});return j_e(F,$)}function c(p,u,g){let d=SMe(g),h=PR(g);return jb({newLine:h,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},d).writeNode(4,p,u,d),{text:d.getText(),node:aQ(p)}}e.getNonformattedText=c})(sQ||(sQ={}));function j_e(e,t){for(let n=t.length-1;n>=0;n--){let{span:i,newText:s}=t[n];e=`${e.substring(0,i.start)}${s}${e.substring(mc(i))}`}return e}function Mnt(e){return ha(e,0)===e.length}var Rnt={...$4,factory:t4($4.factory.flags|1,$4.factory.baseFactory)};function aQ(e){let t=Pr(e,aQ,Rnt,Ont,aQ),n=ko(t)?t:Object.create(t);return om(n,gMe(e),hMe(e)),n}function Ont(e,t,n,i,s){let o=Br(e,t,n,i,s);if(!o)return o;w.assert(e);let c=o===e?A.createNodeArray(o.slice(0)):o;return om(c,gMe(e),hMe(e)),c}function SMe(e){let t=0,n=D6(e),i=H=>{H&&M_e(H,t)},s=H=>{H&&R_e(H,t)},o=H=>{H&&M_e(H,t)},c=H=>{H&&R_e(H,t)},p=H=>{H&&M_e(H,t)},u=H=>{H&&R_e(H,t)};function g(H,Se){if(Se||!Mnt(H)){t=n.getTextPos();let Je=0;for(;rh(H.charCodeAt(H.length-Je-1));)Je++;t-=Je}}function d(H){n.write(H),g(H,!1)}function h(H){n.writeComment(H)}function S(H){n.writeKeyword(H),g(H,!1)}function T(H){n.writeOperator(H),g(H,!1)}function x(H){n.writePunctuation(H),g(H,!1)}function I(H){n.writeTrailingSemicolon(H),g(H,!1)}function P(H){n.writeParameter(H),g(H,!1)}function E(H){n.writeProperty(H),g(H,!1)}function F(H){n.writeSpace(H),g(H,!1)}function O(H){n.writeStringLiteral(H),g(H,!1)}function W(H,Se){n.writeSymbol(H,Se),g(H,!1)}function z(H){n.writeLine(H)}function $(){n.increaseIndent()}function X(){n.decreaseIndent()}function U(){return n.getText()}function _e(H){n.rawWrite(H),g(H,!1)}function re(H){n.writeLiteral(H),g(H,!0)}function V(){return n.getTextPos()}function ce(){return n.getLine()}function oe(){return n.getColumn()}function le(){return n.getIndent()}function de(){return n.isAtStartOfLine()}function ve(){n.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:s,onBeforeEmitNodeArray:o,onAfterEmitNodeArray:c,onBeforeEmitToken:p,onAfterEmitToken:u,write:d,writeComment:h,writeKeyword:S,writeOperator:T,writePunctuation:x,writeTrailingSemicolon:I,writeParameter:P,writeProperty:E,writeSpace:F,writeStringLiteral:O,writeSymbol:W,writeLine:z,increaseIndent:$,decreaseIndent:X,getText:U,rawWrite:_e,writeLiteral:re,getTextPos:V,getLine:ce,getColumn:oe,getIndent:le,isAtStartOfLine:de,hasTrailingComment:()=>n.hasTrailingComment(),hasTrailingWhitespace:()=>n.hasTrailingWhitespace(),clear:ve}}function Fnt(e){let t;for(let g of e.statements)if(Lm(g))t=g;else break;let n=0,i=e.text;if(t)return n=t.end,u(),n;let s=ZO(i);s!==void 0&&(n=s.length,u());let o=nh(i,n);if(!o)return n;let c,p;for(let g of o){if(g.kind===3){if(IF(i,g.pos)){c={range:g,pinnedOrTripleSlash:!0};continue}}else if(sz(i,g.pos,g.end)){c={range:g,pinnedOrTripleSlash:!0};continue}if(c){if(c.pinnedOrTripleSlash)break;let d=e.getLineAndCharacterOfPosition(g.pos).line,h=e.getLineAndCharacterOfPosition(c.range.end).line;if(d>=h+2)break}if(e.statements.length){p===void 0&&(p=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);let d=e.getLineAndCharacterOfPosition(g.end).line;if(p<d+2)break}c={range:g,pinnedOrTripleSlash:!1}}return c&&(n=c.range.end,u()),n;function u(){if(n<i.length){let g=i.charCodeAt(n);qu(g)&&(n++,n<i.length&&g===13&&i.charCodeAt(n)===10&&n++)}}}function TMe(e,t){return!lv(e,t)&&!cC(e,t)&&!Eq(e,t)&&!Lce(e,t)}function jnt(e,t){return(mp(e)||hs(e))&&pF(t)&&t.name.kind===168||BM(e)&&BM(t)}var L_e;(e=>{function t(o,c,p,u){switch(u.kind){case 170:{let T=u.parent;Fo(T)&&T.parameters.length===1&&!lo(T,21,p)?o.replaceNodeWithText(p,u,"()"):i3(o,c,p,u);break}case 273:case 272:let g=p.imports.length&&u===Ra(p.imports).parent||u===Bn(p.statements,u2);dy(o,p,u,{leadingTriviaOption:g?0:Hf(u)?2:3});break;case 209:let d=u.parent;d.kind===208&&u!==ka(d.elements)?dy(o,p,u):i3(o,c,p,u);break;case 261:s(o,c,p,u);break;case 169:i3(o,c,p,u);break;case 277:let S=u.parent;S.elements.length===1?i(o,p,S):i3(o,c,p,u);break;case 275:i(o,p,u);break;case 27:dy(o,p,u,{trailingTriviaOption:0});break;case 100:dy(o,p,u,{leadingTriviaOption:0});break;case 264:case 263:dy(o,p,u,{leadingTriviaOption:Hf(u)?2:3});break;default:u.parent?Ld(u.parent)&&u.parent.name===u?n(o,p,u.parent):Ws(u.parent)&&ws(u.parent.arguments,u)?i3(o,c,p,u):dy(o,p,u):dy(o,p,u)}}e.deleteDeclaration=t;function n(o,c,p){if(!p.namedBindings)dy(o,c,p.parent);else{let u=p.name.getStart(c),g=Ii(c,p.name.end);if(g&&g.kind===28){let d=ha(c.text,g.end,!1,!0);o.deleteRange(c,{pos:u,end:d})}else dy(o,c,p.name)}}function i(o,c,p){if(p.parent.name){let u=w.checkDefined(Ii(c,p.pos-1));o.deleteRange(c,{pos:u.getStart(c),end:p.end})}else{let u=j0(p,273);dy(o,c,u)}}function s(o,c,p,u){let{parent:g}=u;if(g.kind===300){o.deleteNodeRange(p,lo(g,21,p),lo(g,22,p));return}if(g.declarations.length!==1){i3(o,c,p,u);return}let d=g.parent;switch(d.kind){case 251:case 250:o.replaceNode(p,u,A.createObjectLiteralExpression());break;case 249:dy(o,p,g);break;case 244:dy(o,p,d,{leadingTriviaOption:Hf(d)?2:3});break;default:w.assertNever(d)}}})(L_e||(L_e={}));function dy(e,t,n,i={leadingTriviaOption:1}){let s=Gk(t,n,i),o=TC(t,n,i);e.deleteRange(t,{pos:s,end:o})}function i3(e,t,n,i){let s=w.checkDefined(vl.SmartIndenter.getContainingList(i,n)),o=jw(s,i);if(w.assert(o!==-1),s.length===1){dy(e,n,i);return}w.assert(!t.has(i),"Deleting a node twice"),t.add(i),e.deleteRange(n,{pos:F_e(n,i),end:o===s.length-1?TC(n,i,{}):Ent(n,i,s[o-1],s[o+1])})}var vl={};it(vl,{FormattingContext:()=>xMe,FormattingRequestKind:()=>kMe,RuleAction:()=>CMe,RuleFlags:()=>wMe,SmartIndenter:()=>sg,anyContext:()=>oQ,createTextRangeWithKind:()=>pQ,formatDocument:()=>Dit,formatNodeGivenIndentation:()=>Oit,formatOnClosingCurly:()=>Iit,formatOnEnter:()=>xit,formatOnOpeningCurly:()=>wit,formatOnSemicolon:()=>Cit,formatSelection:()=>Pit,getAllRules:()=>IMe,getFormatContext:()=>git,getFormattingScanner:()=>W_e,getIndentationString:()=>Z_e,getRangeOfEnclosingComment:()=>YMe});var kMe=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(kMe||{}),xMe=class{constructor(e,t,n){this.sourceFile=e,this.formattingRequestKind=t,this.options=n}updateContext(e,t,n,i,s){this.currentTokenSpan=w.checkDefined(e),this.currentTokenParent=w.checkDefined(t),this.nextTokenSpan=w.checkDefined(n),this.nextTokenParent=w.checkDefined(i),this.contextNode=w.checkDefined(s),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){let e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){let t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,n=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===n}BlockIsOnOneLine(e){let t=lo(e,19,this.sourceFile),n=lo(e,20,this.sourceFile);if(t&&n){let i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,s=this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line;return i===s}return!1}},Lnt=ih(99,!1,0),Wnt=ih(99,!1,1);function W_e(e,t,n,i,s){let o=t===1?Wnt:Lnt;o.setText(e),o.resetTokenState(n);let c=!0,p,u,g,d,h,S=s({advance:T,readTokenInfo:z,readEOFTokenRange:X,isOnToken:U,isOnEOF:_e,getCurrentLeadingTrivia:()=>p,lastTrailingTriviaWasNewLine:()=>c,skipToEndOf:V,skipToStartOf:ce,getTokenFullStart:()=>h?.token.pos??o.getTokenStart(),getStartPos:()=>h?.token.pos??o.getTokenStart()});return h=void 0,o.setText(void 0),S;function T(){h=void 0,o.getTokenFullStart()!==n?c=!!u&&ka(u).kind===4:o.scan(),p=void 0,u=void 0;let le=o.getTokenFullStart();for(;le<i;){let de=o.getToken();if(!Kw(de))break;o.scan();let ve={pos:le,end:o.getTokenFullStart(),kind:de};le=o.getTokenFullStart(),p=Fr(p,ve)}g=o.getTokenFullStart()}function x(oe){switch(oe.kind){case 34:case 72:case 73:case 50:case 49:return!0}return!1}function I(oe){if(oe.parent)switch(oe.parent.kind){case 292:case 287:case 288:case 286:return qp(oe.kind)||oe.kind===80}return!1}function P(oe){return F2(oe)||Xm(oe)&&h?.token.kind===12}function E(oe){return oe.kind===14}function F(oe){return oe.kind===17||oe.kind===18}function O(oe){return oe.parent&&Ym(oe.parent)&&oe.parent.initializer===oe}function W(oe){return oe===44||oe===69}function z(oe){w.assert(U());let le=x(oe)?1:E(oe)?2:F(oe)?3:I(oe)?4:P(oe)?5:O(oe)?6:0;if(h&&le===d)return re(h,oe);o.getTokenFullStart()!==g&&(w.assert(h!==void 0),o.resetTokenState(g),o.scan());let de=$(oe,le),ve=pQ(o.getTokenFullStart(),o.getTokenEnd(),de);for(u&&(u=void 0);o.getTokenFullStart()<i&&(de=o.scan(),!!Kw(de));){let H=pQ(o.getTokenFullStart(),o.getTokenEnd(),de);if(u||(u=[]),u.push(H),de===4){o.scan();break}}return h={leadingTrivia:p,trailingTrivia:u,token:ve},re(h,oe)}function $(oe,le){let de=o.getToken();switch(d=0,le){case 1:if(de===32){d=1;let ve=o.reScanGreaterToken();return w.assert(oe.kind===ve),ve}break;case 2:if(W(de)){d=2;let ve=o.reScanSlashToken();return w.assert(oe.kind===ve),ve}break;case 3:if(de===20)return d=3,o.reScanTemplateToken(!1);break;case 4:return d=4,o.scanJsxIdentifier();case 5:return d=5,o.reScanJsxToken(!1);case 6:return d=6,o.reScanJsxAttributeValue();case 0:break;default:w.assertNever(le)}return de}function X(){return w.assert(_e()),pQ(o.getTokenFullStart(),o.getTokenEnd(),1)}function U(){let oe=h?h.token.kind:o.getToken();return oe!==1&&!Kw(oe)}function _e(){return(h?h.token.kind:o.getToken())===1}function re(oe,le){return t2(le)&&oe.token.kind!==le.kind&&(oe.token.kind=le.kind),oe}function V(oe){o.resetTokenState(oe.end),g=o.getTokenFullStart(),d=void 0,h=void 0,c=!1,p=void 0,u=void 0}function ce(oe){o.resetTokenState(oe.pos),g=o.getTokenFullStart(),d=void 0,h=void 0,c=!1,p=void 0,u=void 0}}var oQ=Ke,CMe=(e=>(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(CMe||{}),wMe=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(wMe||{});function IMe(){let e=[];for(let $=0;$<=166;$++)$!==1&&e.push($);function t(...$){return{tokens:e.filter(X=>!$.some(U=>U===X)),isSpecific:!1}}let n={tokens:e,isSpecific:!1},i=KE([...e,3]),s=KE([...e,1]),o=PMe(83,166),c=PMe(30,79),p=[103,104,165,130,142,152],u=[46,47,55,54],g=[9,10,80,21,23,19,110,105],d=[80,21,110,105],h=[80,22,24,105],S=[80,21,110,105],T=[80,22,24,105],x=[2,3],I=[80,...Bq],P=i,E=KE([80,32,3,86,95,102]),F=KE([22,3,92,113,98,93,85]),O=[Kn("IgnoreBeforeComment",n,x,oQ,1),Kn("IgnoreAfterLineComment",2,n,oQ,1),Kn("NotSpaceBeforeColon",n,59,[Ui,bL,NMe],16),Kn("SpaceAfterColon",59,n,[Ui,bL,rit],4),Kn("NoSpaceBeforeQuestionMark",n,58,[Ui,bL,NMe],16),Kn("SpaceAfterQuestionMarkInConditionalOperator",58,n,[Ui,Jnt],4),Kn("NoSpaceAfterQuestionMark",58,n,[Ui,Gnt],16),Kn("NoSpaceBeforeDot",n,[25,29],[Ui,mit],16),Kn("NoSpaceAfterDot",[25,29],n,[Ui],16),Kn("NoSpaceBetweenImportParenInImportType",102,21,[Ui,eit],16),Kn("NoSpaceAfterUnaryPrefixOperator",u,g,[Ui,bL],16),Kn("NoSpaceAfterUnaryPreincrementOperator",46,d,[Ui],16),Kn("NoSpaceAfterUnaryPredecrementOperator",47,S,[Ui],16),Kn("NoSpaceBeforeUnaryPostincrementOperator",h,46,[Ui,HMe],16),Kn("NoSpaceBeforeUnaryPostdecrementOperator",T,47,[Ui,HMe],16),Kn("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Ui,Gb],4),Kn("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Ui,Gb],4),Kn("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Ui,Gb],4),Kn("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Ui,Gb],4),Kn("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Ui,Gb],4),Kn("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Ui,Gb],4),Kn("NoSpaceAfterCloseBrace",20,[28,27],[Ui],16),Kn("NewLineBeforeCloseBraceInBlockContext",i,20,[RMe],8),Kn("SpaceAfterCloseBrace",20,t(22),[Ui,qnt],4),Kn("SpaceBetweenCloseBraceAndElse",20,93,[Ui],4),Kn("SpaceBetweenCloseBraceAndWhile",20,117,[Ui],4),Kn("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ui,BMe],16),Kn("SpaceAfterConditionalClosingParen",22,23,[SL],4),Kn("NoSpaceBetweenFunctionKeywordAndStar",100,42,[jMe],16),Kn("SpaceAfterStarInGeneratorDeclaration",42,80,[jMe],4),Kn("SpaceAfterFunctionInFuncDecl",100,n,[Jk],4),Kn("NewLineAfterOpenBraceInBlockContext",19,n,[RMe],8),Kn("SpaceAfterGetSetInMember",[139,153],80,[Jk],4),Kn("NoSpaceBetweenYieldKeywordAndStar",127,42,[Ui,$Me],16),Kn("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],n,[Ui,$Me],4),Kn("NoSpaceBetweenReturnAndSemicolon",107,27,[Ui],16),Kn("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],n,[Ui],4),Kn("SpaceAfterLetConstInVariableDeclaration",[121,87],n,[Ui,sit],4),Kn("NoSpaceBeforeOpenParenInFuncCall",n,21,[Ui,Qnt,Knt],16),Kn("SpaceBeforeBinaryKeywordOperator",n,p,[Ui,Gb],4),Kn("SpaceAfterBinaryKeywordOperator",p,n,[Ui,Gb],4),Kn("SpaceAfterVoidOperator",116,n,[Ui,uit],4),Kn("SpaceBetweenAsyncAndOpenParen",134,21,[Znt,Ui],4),Kn("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Ui],4),Kn("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Ui],16),Kn("SpaceBeforeJsxAttribute",n,80,[tit,Ui],4),Kn("SpaceBeforeSlashInJsxOpeningElement",n,44,[UMe,Ui],4),Kn("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[UMe,Ui],16),Kn("NoSpaceBeforeEqualInJsxAttribute",n,64,[GMe,Ui],16),Kn("NoSpaceAfterEqualInJsxAttribute",64,n,[GMe,Ui],16),Kn("NoSpaceBeforeJsxNamespaceColon",80,59,[JMe],16),Kn("NoSpaceAfterJsxNamespaceColon",59,80,[JMe],16),Kn("NoSpaceAfterModuleImport",[144,149],21,[Ui],16),Kn("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],n,[Ui],4),Kn("SpaceBeforeCertainTypeScriptKeywords",n,[96,119,161],[Ui],4),Kn("SpaceAfterModuleName",11,19,[ait],4),Kn("SpaceBeforeArrow",n,39,[Ui],4),Kn("SpaceAfterArrow",39,n,[Ui],4),Kn("NoSpaceAfterEllipsis",26,80,[Ui],16),Kn("NoSpaceAfterOptionalParameters",58,[22,28],[Ui,bL],16),Kn("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Ui,oit],16),Kn("NoSpaceBeforeOpenAngularBracket",I,30,[Ui,TL],16),Kn("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Ui,TL],16),Kn("NoSpaceAfterOpenAngularBracket",30,n,[Ui,TL],16),Kn("NoSpaceBeforeCloseAngularBracket",n,32,[Ui,TL],16),Kn("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Ui,TL,Vnt,lit],16),Kn("SpaceBeforeAt",[22,80],60,[Ui],4),Kn("NoSpaceAfterAt",60,n,[Ui],16),Kn("SpaceAfterDecorator",n,[128,80,95,90,86,126,125,123,124,139,153,23,42],[iit],4),Kn("NoSpaceBeforeNonNullAssertionOperator",n,54,[Ui,pit],16),Kn("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Ui,cit],16),Kn("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Ui],4)],W=[Kn("SpaceAfterConstructor",137,21,[__("insertSpaceAfterConstructor"),Ui],4),Kn("NoSpaceAfterConstructor",137,21,[ig("insertSpaceAfterConstructor"),Ui],16),Kn("SpaceAfterComma",28,n,[__("insertSpaceAfterCommaDelimiter"),Ui,q_e,Xnt,Ynt],4),Kn("NoSpaceAfterComma",28,n,[ig("insertSpaceAfterCommaDelimiter"),Ui,q_e],16),Kn("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[__("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Jk],4),Kn("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[ig("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Jk],16),Kn("SpaceAfterKeywordInControl",o,21,[__("insertSpaceAfterKeywordsInControlFlowStatements"),SL],4),Kn("NoSpaceAfterKeywordInControl",o,21,[ig("insertSpaceAfterKeywordsInControlFlowStatements"),SL],16),Kn("SpaceAfterOpenParen",21,n,[__("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ui],4),Kn("SpaceBeforeCloseParen",n,22,[__("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ui],4),Kn("SpaceBetweenOpenParens",21,21,[__("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ui],4),Kn("NoSpaceBetweenParens",21,22,[Ui],16),Kn("NoSpaceAfterOpenParen",21,n,[ig("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ui],16),Kn("NoSpaceBeforeCloseParen",n,22,[ig("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ui],16),Kn("SpaceAfterOpenBracket",23,n,[__("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ui],4),Kn("SpaceBeforeCloseBracket",n,24,[__("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ui],4),Kn("NoSpaceBetweenBrackets",23,24,[Ui],16),Kn("NoSpaceAfterOpenBracket",23,n,[ig("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ui],16),Kn("NoSpaceBeforeCloseBracket",n,24,[ig("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ui],16),Kn("SpaceAfterOpenBrace",19,n,[EMe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),MMe],4),Kn("SpaceBeforeCloseBrace",n,20,[EMe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),MMe],4),Kn("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ui,BMe],16),Kn("NoSpaceAfterOpenBrace",19,n,[B_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ui],16),Kn("NoSpaceBeforeCloseBrace",n,20,[B_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ui],16),Kn("SpaceBetweenEmptyBraceBrackets",19,20,[__("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Kn("NoSpaceBetweenEmptyBraceBrackets",19,20,[B_e("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Ui],16),Kn("SpaceAfterTemplateHeadAndMiddle",[16,17],n,[__("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),zMe],4,1),Kn("SpaceBeforeTemplateMiddleAndTail",n,[17,18],[__("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ui],4),Kn("NoSpaceAfterTemplateHeadAndMiddle",[16,17],n,[ig("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),zMe],16,1),Kn("NoSpaceBeforeTemplateMiddleAndTail",n,[17,18],[ig("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ui],16),Kn("SpaceAfterOpenBraceInJsxExpression",19,n,[__("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ui,lQ],4),Kn("SpaceBeforeCloseBraceInJsxExpression",n,20,[__("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ui,lQ],4),Kn("NoSpaceAfterOpenBraceInJsxExpression",19,n,[ig("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ui,lQ],16),Kn("NoSpaceBeforeCloseBraceInJsxExpression",n,20,[ig("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ui,lQ],16),Kn("SpaceAfterSemicolonInFor",27,n,[__("insertSpaceAfterSemicolonInForStatements"),Ui,G_e],4),Kn("NoSpaceAfterSemicolonInFor",27,n,[ig("insertSpaceAfterSemicolonInForStatements"),Ui,G_e],16),Kn("SpaceBeforeBinaryOperator",n,c,[__("insertSpaceBeforeAndAfterBinaryOperators"),Ui,Gb],4),Kn("SpaceAfterBinaryOperator",c,n,[__("insertSpaceBeforeAndAfterBinaryOperators"),Ui,Gb],4),Kn("NoSpaceBeforeBinaryOperator",n,c,[ig("insertSpaceBeforeAndAfterBinaryOperators"),Ui,Gb],16),Kn("NoSpaceAfterBinaryOperator",c,n,[ig("insertSpaceBeforeAndAfterBinaryOperators"),Ui,Gb],16),Kn("SpaceBeforeOpenParenInFuncDecl",n,21,[__("insertSpaceBeforeFunctionParenthesis"),Ui,Jk],4),Kn("NoSpaceBeforeOpenParenInFuncDecl",n,21,[ig("insertSpaceBeforeFunctionParenthesis"),Ui,Jk],16),Kn("NewLineBeforeOpenBraceInControl",F,19,[__("placeOpenBraceOnNewLineForControlBlocks"),SL,V_e],8,1),Kn("NewLineBeforeOpenBraceInFunction",P,19,[__("placeOpenBraceOnNewLineForFunctions"),Jk,V_e],8,1),Kn("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",E,19,[__("placeOpenBraceOnNewLineForFunctions"),LMe,V_e],8,1),Kn("SpaceAfterTypeAssertion",32,n,[__("insertSpaceAfterTypeAssertion"),Ui,H_e],4),Kn("NoSpaceAfterTypeAssertion",32,n,[ig("insertSpaceAfterTypeAssertion"),Ui,H_e],16),Kn("SpaceBeforeTypeAnnotation",n,[58,59],[__("insertSpaceBeforeTypeAnnotation"),Ui,J_e],4),Kn("NoSpaceBeforeTypeAnnotation",n,[58,59],[ig("insertSpaceBeforeTypeAnnotation"),Ui,J_e],16),Kn("NoOptionalSemicolon",27,s,[AMe("semicolons","remove"),_it],32),Kn("OptionalSemicolon",n,s,[AMe("semicolons","insert"),dit],64)],z=[Kn("NoSpaceBeforeSemicolon",n,27,[Ui],16),Kn("SpaceBeforeOpenBraceInControl",F,19,[z_e("placeOpenBraceOnNewLineForControlBlocks"),SL,$_e,U_e],4,1),Kn("SpaceBeforeOpenBraceInFunction",P,19,[z_e("placeOpenBraceOnNewLineForFunctions"),Jk,cQ,$_e,U_e],4,1),Kn("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",E,19,[z_e("placeOpenBraceOnNewLineForFunctions"),LMe,$_e,U_e],4,1),Kn("NoSpaceBeforeComma",n,28,[Ui],16),Kn("NoSpaceBeforeOpenBracket",t(134,84),23,[Ui],16),Kn("NoSpaceAfterCloseBracket",24,n,[Ui,nit],16),Kn("SpaceAfterSemicolon",27,n,[Ui],4),Kn("SpaceBetweenForAndAwaitKeyword",99,135,[Ui],4),Kn("SpaceBetweenDotDotDotAndTypeName",26,I,[Ui],16),Kn("SpaceBetweenStatements",[22,92,93,84],n,[Ui,q_e,Bnt],4),Kn("SpaceAfterTryCatchFinally",[113,85,98],19,[Ui],4)];return[...O,...W,...z]}function Kn(e,t,n,i,s,o=0){return{leftTokenRange:DMe(t),rightTokenRange:DMe(n),rule:{debugName:e,context:i,action:s,flags:o}}}function KE(e){return{tokens:e,isSpecific:!0}}function DMe(e){return typeof e=="number"?KE([e]):gs(e)?KE(e):e}function PMe(e,t,n=[]){let i=[];for(let s=e;s<=t;s++)ws(n,s)||i.push(s);return KE(i)}function AMe(e,t){return n=>n.options&&n.options[e]===t}function __(e){return t=>t.options&&_o(t.options,e)&&!!t.options[e]}function B_e(e){return t=>t.options&&_o(t.options,e)&&!t.options[e]}function ig(e){return t=>!t.options||!_o(t.options,e)||!t.options[e]}function z_e(e){return t=>!t.options||!_o(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function EMe(e){return t=>!t.options||!_o(t.options,e)||!!t.options[e]}function G_e(e){return e.contextNode.kind===249}function Bnt(e){return!G_e(e)}function Gb(e){switch(e.contextNode.kind){case 227:return e.contextNode.operatorToken.kind!==28;case 228:case 195:case 235:case 282:case 277:case 183:case 193:case 194:case 239:return!0;case 209:case 266:case 272:case 278:case 261:case 170:case 307:case 173:case 172:return e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:case 169:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 251:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function bL(e){return!Gb(e)}function NMe(e){return!J_e(e)}function J_e(e){let t=e.contextNode.kind;return t===173||t===172||t===170||t===261||r2(t)}function znt(e){return hs(e.contextNode)&&e.contextNode.questionToken}function Gnt(e){return!znt(e)}function Jnt(e){return e.contextNode.kind===228||e.contextNode.kind===195}function U_e(e){return e.TokensAreOnSameLine()||cQ(e)}function MMe(e){return e.contextNode.kind===207||e.contextNode.kind===201||Unt(e)}function V_e(e){return cQ(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function RMe(e){return OMe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Unt(e){return OMe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function OMe(e){return FMe(e.contextNode)}function cQ(e){return FMe(e.nextTokenParent)}function FMe(e){if(WMe(e))return!0;switch(e.kind){case 242:case 270:case 211:case 269:return!0}return!1}function Jk(e){switch(e.contextNode.kind){case 263:case 175:case 174:case 178:case 179:case 180:case 219:case 177:case 220:case 265:return!0}return!1}function Vnt(e){return!Jk(e)}function jMe(e){return e.contextNode.kind===263||e.contextNode.kind===219}function LMe(e){return WMe(e.contextNode)}function WMe(e){switch(e.kind){case 264:case 232:case 265:case 267:case 188:case 268:case 279:case 280:case 273:case 276:return!0}return!1}function qnt(e){switch(e.currentTokenParent.kind){case 264:case 268:case 267:case 300:case 269:case 256:return!0;case 242:{let t=e.currentTokenParent.parent;if(!t||t.kind!==220&&t.kind!==219)return!0}}return!1}function SL(e){switch(e.contextNode.kind){case 246:case 256:case 249:case 250:case 251:case 248:case 259:case 247:case 255:case 300:return!0;default:return!1}}function BMe(e){return e.contextNode.kind===211}function $nt(e){return e.contextNode.kind===214}function Hnt(e){return e.contextNode.kind===215}function Qnt(e){return $nt(e)||Hnt(e)}function Knt(e){return e.currentTokenSpan.kind!==28}function Xnt(e){return e.nextTokenSpan.kind!==24}function Ynt(e){return e.nextTokenSpan.kind!==22}function Znt(e){return e.contextNode.kind===220}function eit(e){return e.contextNode.kind===206}function Ui(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function zMe(e){return e.contextNode.kind!==12}function q_e(e){return e.contextNode.kind!==285&&e.contextNode.kind!==289}function lQ(e){return e.contextNode.kind===295||e.contextNode.kind===294}function tit(e){return e.nextTokenParent.kind===292||e.nextTokenParent.kind===296&&e.nextTokenParent.parent.kind===292}function GMe(e){return e.contextNode.kind===292}function rit(e){return e.nextTokenParent.kind!==296}function JMe(e){return e.nextTokenParent.kind===296}function UMe(e){return e.contextNode.kind===286}function nit(e){return!Jk(e)&&!cQ(e)}function iit(e){return e.TokensAreOnSameLine()&&a_(e.contextNode)&&VMe(e.currentTokenParent)&&!VMe(e.nextTokenParent)}function VMe(e){for(;e&&ht(e);)e=e.parent;return e&&e.kind===171}function sit(e){return e.currentTokenParent.kind===262&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function $_e(e){return e.formattingRequestKind!==2}function ait(e){return e.contextNode.kind===268}function oit(e){return e.contextNode.kind===188}function cit(e){return e.contextNode.kind===181}function qMe(e,t){if(e.kind!==30&&e.kind!==32)return!1;switch(t.kind){case 184:case 217:case 266:case 264:case 232:case 265:case 263:case 219:case 220:case 175:case 174:case 180:case 181:case 214:case 215:case 234:return!0;default:return!1}}function TL(e){return qMe(e.currentTokenSpan,e.currentTokenParent)||qMe(e.nextTokenSpan,e.nextTokenParent)}function H_e(e){return e.contextNode.kind===217}function lit(e){return!H_e(e)}function uit(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===223}function $Me(e){return e.contextNode.kind===230&&e.contextNode.expression!==void 0}function pit(e){return e.contextNode.kind===236}function HMe(e){return!fit(e)}function fit(e){switch(e.contextNode.kind){case 246:case 249:case 250:case 251:case 247:case 248:return!0;default:return!1}}function _it(e){let t=e.nextTokenSpan.kind,n=e.nextTokenSpan.pos;if(Kw(t)){let o=e.nextTokenParent===e.currentTokenParent?YS(e.currentTokenParent,vr(e.currentTokenParent,c=>!c.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!o)return!0;t=o.kind,n=o.getStart(e.sourceFile)}let i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,s=e.sourceFile.getLineAndCharacterOfPosition(n).line;return i===s?t===20||t===1:t===27&&e.currentTokenSpan.kind===27?!0:t===241||t===27?!1:e.contextNode.kind===265||e.contextNode.kind===266?!mp(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:hs(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==249&&e.currentTokenParent.kind!==243&&e.currentTokenParent.kind!==241&&t!==23&&t!==21&&t!==40&&t!==41&&t!==44&&t!==14&&t!==28&&t!==229&&t!==16&&t!==15&&t!==25}function dit(e){return T5(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function mit(e){return!Ln(e.contextNode)||!Hp(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}function git(e,t){return{options:e,getRules:hit(),host:t}}var Q_e;function hit(){return Q_e===void 0&&(Q_e=vit(IMe())),Q_e}function yit(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function vit(e){let t=bit(e);return n=>{let i=t[QMe(n.currentTokenSpan.kind,n.nextTokenSpan.kind)];if(i){let s=[],o=0;for(let c of i){let p=~yit(o);c.action&p&&Fi(c.context,u=>u(n))&&(s.push(c),o|=c.action)}if(s.length)return s}}}function bit(e){let t=new Array(K_e*K_e),n=new Array(t.length);for(let i of e){let s=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(let o of i.leftTokenRange.tokens)for(let c of i.rightTokenRange.tokens){let p=QMe(o,c),u=t[p];u===void 0&&(u=t[p]=[]),Sit(u,i.rule,s,n,p)}}return t}function QMe(e,t){return w.assert(e<=166&&t<=166,"Must compute formatting context from tokens"),e*K_e+t}var XE=5,uQ=31,K_e=167,s3=(e=>(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=XE*1]="StopRulesAny",e[e.ContextRulesSpecific=XE*2]="ContextRulesSpecific",e[e.ContextRulesAny=XE*3]="ContextRulesAny",e[e.NoContextRulesSpecific=XE*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=XE*5]="NoContextRulesAny",e))(s3||{});function Sit(e,t,n,i,s){let o=t.action&3?n?0:s3.StopRulesAny:t.context!==oQ?n?s3.ContextRulesSpecific:s3.ContextRulesAny:n?s3.NoContextRulesSpecific:s3.NoContextRulesAny,c=i[s]||0;e.splice(Tit(c,o),0,t),i[s]=kit(c,o)}function Tit(e,t){let n=0;for(let i=0;i<=t;i+=XE)n+=e&uQ,e>>=XE;return n}function kit(e,t){let n=(e>>t&uQ)+1;return w.assert((n&uQ)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(uQ<<t)|n<<t}function pQ(e,t,n){let i={pos:e,end:t,kind:n};return w.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>w.formatSyntaxKind(n)}),i}function xit(e,t,n){let i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let s=UM(i,t);for(;Rm(t.text.charCodeAt(s));)s--;qu(t.text.charCodeAt(s))&&s--;let o={pos:db(i-1,t),end:s+1};return kL(o,t,n,2)}function Cit(e,t,n){let i=X_e(e,27,t);return KMe(Y_e(i),t,n,3)}function wit(e,t,n){let i=X_e(e,19,t);if(!i)return[];let s=i.parent,o=Y_e(s),c={pos:bd(o.getStart(t),t),end:e};return kL(c,t,n,4)}function Iit(e,t,n){let i=X_e(e,20,t);return KMe(Y_e(i),t,n,5)}function Dit(e,t){let n={pos:0,end:e.text.length};return kL(n,e,t,0)}function Pit(e,t,n,i){let s={pos:bd(e,n),end:t};return kL(s,n,i,1)}function X_e(e,t,n){let i=Al(e,n);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function Y_e(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!Ait(t.parent,t);)t=t.parent;return t}function Ait(e,t){switch(e.kind){case 264:case 265:return $p(e.members,t);case 268:let n=e.body;return!!n&&n.kind===269&&$p(n.statements,t);case 308:case 242:case 269:return $p(e.statements,t);case 300:return $p(e.block.statements,t)}return!1}function Eit(e,t){return n(t);function n(i){let s=Ms(i,o=>_G(o.getStart(t),o.end,e)&&o);if(s){let o=n(s);if(o)return o}return i}}function Nit(e,t){if(!e.length)return s;let n=e.filter(o=>wE(t,o.start,o.start+o.length)).sort((o,c)=>o.start-c.start);if(!n.length)return s;let i=0;return o=>{for(;;){if(i>=n.length)return!1;let c=n[i];if(o.end<=c.start)return!1;if(r5(o.pos,o.end,c.start,c.start+c.length))return!0;i++}};function s(){return!1}}function Mit(e,t,n){let i=e.getStart(n);if(i===t.pos&&e.end===t.end)return i;let s=Al(t.pos,n);return!s||s.end>=t.pos?e.pos:s.end}function Rit(e,t,n){let i=-1,s;for(;e;){let o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(i!==-1&&o!==i)break;if(sg.shouldIndentChildNode(t,e,s,n))return t.indentSize;i=o,s=e,e=e.parent}return 0}function Oit(e,t,n,i,s,o){let c={pos:e.pos,end:e.end};return W_e(t.text,n,c.pos,c.end,p=>XMe(c,e,i,s,p,o,1,u=>!1,t))}function KMe(e,t,n,i){if(!e)return[];let s={pos:bd(e.getStart(t),t),end:e.end};return kL(s,t,n,i)}function kL(e,t,n,i){let s=Eit(e,t);return W_e(t.text,t.languageVariant,Mit(s,e,t),e.end,o=>XMe(e,s,sg.getIndentationForNode(s,e,t,n.options),Rit(s,n.options,t),o,n,i,Nit(t.parseDiagnostics,e),t))}function XMe(e,t,n,i,s,{options:o,getRules:c,host:p},u,g,d){var h;let S=new xMe(d,u,o),T,x,I,P,E,F=-1,O=[];if(s.advance(),s.isOnToken()){let ae=d.getLineAndCharacterOfPosition(t.getStart(d)).line,Ue=ae;a_(t)&&(Ue=d.getLineAndCharacterOfPosition(az(t,d)).line),_e(t,t,ae,Ue,n,i)}let W=s.getCurrentLeadingTrivia();if(W){let ae=sg.nodeWillIndentChild(o,t,void 0,d,!1)?n+o.indentSize:n;re(W,ae,!0,Ue=>{ce(Ue,d.getLineAndCharacterOfPosition(Ue.pos),t,t,void 0),le(Ue.pos,ae,!1)}),o.trimTrailingWhitespace!==!1&&ye(W)}if(x&&s.getTokenFullStart()>=e.end){let ae=s.isOnEOF()?s.readEOFTokenRange():s.isOnToken()?s.readTokenInfo(t).token:void 0;if(ae&&ae.pos===T){let Ue=((h=Al(ae.end,d,t))==null?void 0:h.parent)||I;oe(ae,d.getLineAndCharacterOfPosition(ae.pos).line,Ue,x,P,I,Ue,void 0)}}return O;function z(ae,Ue,te,Ne,Ie){if(wE(Ne,ae,Ue)||dR(Ne,ae,Ue)){if(Ie!==-1)return Ie}else{let xe=d.getLineAndCharacterOfPosition(ae).line,Qe=bd(ae,d),St=sg.findFirstNonWhitespaceColumn(Qe,ae,d,o);if(xe!==te||ae===St){let Bt=sg.getBaseIndentation(o);return Bt>St?Bt:St}}return-1}function $(ae,Ue,te,Ne,Ie,xe){let Qe=sg.shouldIndentChildNode(o,ae)?o.indentSize:0;return xe===Ue?{indentation:Ue===E?F:Ie.getIndentation(),delta:Math.min(o.indentSize,Ie.getDelta(ae)+Qe)}:te===-1?ae.kind===21&&Ue===E?{indentation:F,delta:Ie.getDelta(ae)}:sg.childStartsOnTheSameLineWithElseInIfStatement(Ne,ae,Ue,d)||sg.childIsUnindentedBranchOfConditionalExpression(Ne,ae,Ue,d)||sg.argumentStartsOnSameLineAsPreviousArgument(Ne,ae,Ue,d)?{indentation:Ie.getIndentation(),delta:Qe}:{indentation:Ie.getIndentation()+Ie.getDelta(ae),delta:Qe}:{indentation:te,delta:Qe}}function X(ae){if(yd(ae)){let Ue=Bn(ae.modifiers,la,Tc(ae.modifiers,Il));if(Ue)return Ue.kind}switch(ae.kind){case 264:return 86;case 265:return 120;case 263:return 100;case 267:return 267;case 178:return 139;case 179:return 153;case 175:if(ae.asteriskToken)return 42;case 173:case 170:let Ue=Ss(ae);if(Ue)return Ue.kind}}function U(ae,Ue,te,Ne){return{getIndentationForComment:(Qe,St,Bt)=>{switch(Qe){case 20:case 24:case 22:return te+xe(Bt)}return St!==-1?St:te},getIndentationForToken:(Qe,St,Bt,fr)=>!fr&&Ie(Qe,St,Bt)?te+xe(Bt):te,getIndentation:()=>te,getDelta:xe,recomputeIndentation:(Qe,St)=>{sg.shouldIndentChildNode(o,St,ae,d)&&(te+=Qe?o.indentSize:-o.indentSize,Ne=sg.shouldIndentChildNode(o,ae)?o.indentSize:0)}};function Ie(Qe,St,Bt){switch(St){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(Bt.kind){case 287:case 288:case 286:return!1}break;case 23:case 24:if(Bt.kind!==201)return!1;break}return Ue!==Qe&&!(a_(ae)&&St===X(ae))}function xe(Qe){return sg.nodeWillIndentChild(o,ae,Qe,d,!0)?Ne:0}}function _e(ae,Ue,te,Ne,Ie,xe){if(!wE(e,ae.getStart(d),ae.getEnd()))return;let Qe=U(ae,te,Ie,xe),St=Ue;for(Ms(ae,ft=>{Bt(ft,-1,ae,Qe,te,Ne,!1)},ft=>{fr(ft,ae,te,Qe)});s.isOnToken()&&s.getTokenFullStart()<e.end;){let ft=s.readTokenInfo(ae);if(ft.token.end>Math.min(ae.end,e.end))break;Mr(ft,ae,Qe,ae)}function Bt(ft,qt,Hr,bi,us,At,Un,rs){if(w.assert(!ko(ft)),xc(ft)||wte(Hr,ft))return qt;let zn=ft.getStart(d),Sn=d.getLineAndCharacterOfPosition(zn).line,_i=Sn;a_(ft)&&(_i=d.getLineAndCharacterOfPosition(az(ft,d)).line);let qe=-1;if(Un&&$p(e,Hr)&&(qe=z(zn,ft.end,us,e,qt),qe!==-1&&(qt=qe)),!wE(e,ft.pos,ft.end))return ft.end<e.pos&&s.skipToEndOf(ft),qt;if(ft.getFullWidth()===0)return qt;for(;s.isOnToken()&&s.getTokenFullStart()<e.end;){let tn=s.readTokenInfo(ae);if(tn.token.end>e.end)return qt;if(tn.token.end>zn){tn.token.pos>zn&&s.skipToStartOf(ft);break}Mr(tn,ae,bi,ae)}if(!s.isOnToken()||s.getTokenFullStart()>=e.end)return qt;if(t2(ft)){let tn=s.readTokenInfo(ft);if(ft.kind!==12)return w.assert(tn.token.end===ft.end,"Token end is child end"),Mr(tn,ae,bi,ft),qt}let bt=ft.kind===171?Sn:At,ar=$(ft,Sn,qe,ae,bi,bt);return _e(ft,St,Sn,_i,ar.indentation,ar.delta),St=ae,rs&&Hr.kind===210&&qt===-1&&(qt=ar.indentation),qt}function fr(ft,qt,Hr,bi){w.assert(_S(ft)),w.assert(!ko(ft));let us=Fit(qt,ft),At=bi,Un=Hr;if(!wE(e,ft.pos,ft.end)){ft.end<e.pos&&s.skipToEndOf(ft);return}if(us!==0)for(;s.isOnToken()&&s.getTokenFullStart()<e.end;){let Sn=s.readTokenInfo(qt);if(Sn.token.end>ft.pos)break;if(Sn.token.kind===us){Un=d.getLineAndCharacterOfPosition(Sn.token.pos).line,Mr(Sn,qt,bi,qt);let _i;if(F!==-1)_i=F;else{let qe=bd(Sn.token.pos,d);_i=sg.findFirstNonWhitespaceColumn(qe,Sn.token.pos,d,o)}At=U(qt,Hr,_i,o.indentSize)}else Mr(Sn,qt,bi,qt)}let rs=-1;for(let Sn=0;Sn<ft.length;Sn++){let _i=ft[Sn];rs=Bt(_i,rs,ae,At,Un,Un,!0,Sn===0)}let zn=jit(us);if(zn!==0&&s.isOnToken()&&s.getTokenFullStart()<e.end){let Sn=s.readTokenInfo(qt);Sn.token.kind===28&&(Mr(Sn,qt,At,qt),Sn=s.isOnToken()?s.readTokenInfo(qt):void 0),Sn&&Sn.token.kind===zn&&$p(qt,Sn.token)&&Mr(Sn,qt,At,qt,!0)}}function Mr(ft,qt,Hr,bi,us){w.assert($p(qt,ft.token));let At=s.lastTrailingTriviaWasNewLine(),Un=!1;ft.leadingTrivia&&V(ft.leadingTrivia,qt,St,Hr);let rs=0,zn=$p(e,ft.token),Sn=d.getLineAndCharacterOfPosition(ft.token.pos);if(zn){let _i=g(ft.token),qe=x;if(rs=ce(ft.token,Sn,qt,St,Hr),!_i)if(rs===0){let bt=qe&&d.getLineAndCharacterOfPosition(qe.end).line;Un=At&&Sn.line!==bt}else Un=rs===1}if(ft.trailingTrivia&&(T=ka(ft.trailingTrivia).end,V(ft.trailingTrivia,qt,St,Hr)),Un){let _i=zn&&!g(ft.token)?Hr.getIndentationForToken(Sn.line,ft.token.kind,bi,!!us):-1,qe=!0;if(ft.leadingTrivia){let bt=Hr.getIndentationForComment(ft.token.kind,_i,bi);qe=re(ft.leadingTrivia,bt,qe,ar=>le(ar.pos,bt,!1))}_i!==-1&&qe&&(le(ft.token.pos,_i,rs===1),E=Sn.line,F=_i)}s.advance(),St=qt}}function re(ae,Ue,te,Ne){for(let Ie of ae){let xe=$p(e,Ie);switch(Ie.kind){case 3:xe&&H(Ie,Ue,!te),te=!1;break;case 2:te&&xe&&Ne(Ie),te=!1;break;case 4:te=!0;break}}return te}function V(ae,Ue,te,Ne){for(let Ie of ae)if(l5(Ie.kind)&&$p(e,Ie)){let xe=d.getLineAndCharacterOfPosition(Ie.pos);ce(Ie,xe,Ue,te,Ne)}}function ce(ae,Ue,te,Ne,Ie){let xe=g(ae),Qe=0;if(!xe)if(x)Qe=oe(ae,Ue.line,te,x,P,I,Ne,Ie);else{let St=d.getLineAndCharacterOfPosition(e.pos);Se(St.line,Ue.line)}return x=ae,T=ae.end,I=te,P=Ue.line,Qe}function oe(ae,Ue,te,Ne,Ie,xe,Qe,St){S.updateContext(Ne,xe,ae,te,Qe);let Bt=c(S),fr=S.options.trimTrailingWhitespace!==!1,Mr=0;return Bt?Zg(Bt,ft=>{if(Mr=nt(ft,Ne,Ie,ae,Ue),St)switch(Mr){case 2:te.getStart(d)===ae.pos&&St.recomputeIndentation(!1,Qe);break;case 1:te.getStart(d)===ae.pos&&St.recomputeIndentation(!0,Qe);break;default:w.assert(Mr===0)}fr=fr&&!(ft.action&16)&&ft.flags!==1}):fr=fr&&ae.kind!==1,Ue!==Ie&&fr&&Se(Ie,Ue,Ne),Mr}function le(ae,Ue,te){let Ne=Z_e(Ue,o);if(te)ke(ae,0,Ne);else{let Ie=d.getLineAndCharacterOfPosition(ae),xe=db(Ie.line,d);(Ue!==de(xe,Ie.character)||ve(Ne,xe))&&ke(xe,Ie.character,Ne)}}function de(ae,Ue){let te=0;for(let Ne=0;Ne<Ue;Ne++)d.text.charCodeAt(ae+Ne)===9?te+=o.tabSize-te%o.tabSize:te++;return te}function ve(ae,Ue){return ae!==d.text.substr(Ue,ae.length)}function H(ae,Ue,te,Ne=!0){let Ie=d.getLineAndCharacterOfPosition(ae.pos).line,xe=d.getLineAndCharacterOfPosition(ae.end).line;if(Ie===xe){te||le(ae.pos,Ue,!1);return}let Qe=[],St=ae.pos;for(let qt=Ie;qt<xe;qt++){let Hr=UM(qt,d);Qe.push({pos:St,end:Hr}),St=db(qt+1,d)}if(Ne&&Qe.push({pos:St,end:ae.end}),Qe.length===0)return;let Bt=db(Ie,d),fr=sg.findFirstNonWhitespaceCharacterAndColumn(Bt,Qe[0].pos,d,o),Mr=0;te&&(Mr=1,Ie++);let ft=Ue-fr.column;for(let qt=Mr;qt<Qe.length;qt++,Ie++){let Hr=db(Ie,d),bi=qt===0?fr:sg.findFirstNonWhitespaceCharacterAndColumn(Qe[qt].pos,Qe[qt].end,d,o),us=bi.column+ft;if(us>0){let At=Z_e(us,o);ke(Hr,bi.character,At)}else ge(Hr,bi.character)}}function Se(ae,Ue,te){for(let Ne=ae;Ne<Ue;Ne++){let Ie=db(Ne,d),xe=UM(Ne,d);if(te&&(l5(te.kind)||Rq(te.kind))&&te.pos<=xe&&te.end>xe)continue;let Qe=Je(Ie,xe);Qe!==-1&&(w.assert(Qe===Ie||!Rm(d.text.charCodeAt(Qe-1))),ge(Qe,xe+1-Qe))}}function Je(ae,Ue){let te=Ue;for(;te>=ae&&Rm(d.text.charCodeAt(te));)te--;return te!==Ue?te+1:-1}function ye(ae){let Ue=x?x.end:e.pos;for(let te of ae)l5(te.kind)&&(Ue<te.pos&&ee(Ue,te.pos-1,x),Ue=te.end+1);Ue<e.end&&ee(Ue,e.end,x)}function ee(ae,Ue,te){let Ne=d.getLineAndCharacterOfPosition(ae).line,Ie=d.getLineAndCharacterOfPosition(Ue).line;Se(Ne,Ie+1,te)}function ge(ae,Ue){Ue&&O.push(p5(ae,Ue,""))}function ke(ae,Ue,te){(Ue||te)&&O.push(p5(ae,Ue,te))}function Oe(ae,Ue){Ue&&O.push(p5(ae,0,Ue))}function nt(ae,Ue,te,Ne,Ie){let xe=Ie!==te;switch(ae.action){case 1:return 0;case 16:if(Ue.end!==Ne.pos)return ge(Ue.end,Ne.pos-Ue.end),xe?2:0;break;case 32:ge(Ue.pos,Ue.end-Ue.pos);break;case 8:if(ae.flags!==1&&te!==Ie)return 0;if(Ie-te!==1)return ke(Ue.end,Ne.pos-Ue.end,py(p,o)),xe?0:1;break;case 4:if(ae.flags!==1&&te!==Ie)return 0;if(Ne.pos-Ue.end!==1||d.text.charCodeAt(Ue.end)!==32)return ke(Ue.end,Ne.pos-Ue.end," "),xe?2:0;break;case 64:Oe(Ue.end,";")}return 0}}function YMe(e,t,n,i=Ii(e,t)){let s=vr(i,um);if(s&&(i=s.parent),i.getStart(e)<=t&&t<i.getEnd())return;n=n===null?void 0:n===void 0?Al(t,e):n;let c=n&&sb(e.text,n.end),p=vz(i,e),u=Qi(c,p);return u&&Bn(u,g=>_R(g,t)||t===g.end&&(g.kind===2||t===e.getFullWidth()))}function Fit(e,t){switch(e.kind){case 177:case 263:case 219:case 175:case 174:case 220:case 180:case 181:case 185:case 186:case 178:case 179:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 214:case 215:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 264:case 232:case 265:case 266:if(e.typeParameters===t)return 30;break;case 184:case 216:case 187:case 234:case 206:if(e.typeArguments===t)return 30;break;case 188:return 19}return 0}function jit(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}var fQ,a3,o3;function Z_e(e,t){if((!fQ||fQ.tabSize!==t.tabSize||fQ.indentSize!==t.indentSize)&&(fQ={tabSize:t.tabSize,indentSize:t.indentSize},a3=o3=void 0),t.convertTabsToSpaces){let i,s=Math.floor(e/t.indentSize),o=e%t.indentSize;return o3||(o3=[]),o3[s]===void 0?(i=yR(" ",t.indentSize*s),o3[s]=i):i=o3[s],o?i+yR(" ",o):i}else{let i=Math.floor(e/t.tabSize),s=e-i*t.tabSize,o;return a3||(a3=[]),a3[i]===void 0?a3[i]=o=yR(" ",i):o=a3[i],s?o+yR(" ",s):o}}var sg;(e=>{let t;(H=>{H[H.Unknown=-1]="Unknown"})(t||(t={}));function n(H,Se,Je,ye=!1){if(H>Se.text.length)return p(Je);if(Je.indentStyle===0)return 0;let ee=Al(H,Se,void 0,!0),ge=YMe(Se,H,ee||null);if(ge&&ge.kind===3)return i(Se,H,Je,ge);if(!ee)return p(Je);if(Rq(ee.kind)&&ee.getStart(Se)<=H&&H<ee.end)return 0;let Oe=Se.getLineAndCharacterOfPosition(H).line,nt=Ii(Se,H),ae=nt.kind===19&&nt.parent.kind===211;if(Je.indentStyle===1||ae)return s(Se,H,Je);if(ee.kind===28&&ee.parent.kind!==227){let te=d(ee,Se,Je);if(te!==-1)return te}let Ue=W(H,ee.parent,Se);if(Ue&&!$p(Ue,ee)){let Ne=[219,220].includes(nt.parent.kind)?0:Je.indentSize;return X(Ue,Se,Je)+Ne}return o(Se,H,ee,Oe,ye,Je)}e.getIndentation=n;function i(H,Se,Je,ye){let ee=Hs(H,Se).line-1,ge=Hs(H,ye.pos).line;if(w.assert(ge>=0),ee<=ge)return ce(db(ge,H),Se,H,Je);let ke=db(ee,H),{column:Oe,character:nt}=V(ke,Se,H,Je);return Oe===0?Oe:H.text.charCodeAt(ke+nt)===42?Oe-1:Oe}function s(H,Se,Je){let ye=Se;for(;ye>0;){let ge=H.text.charCodeAt(ye);if(!rh(ge))break;ye--}let ee=bd(ye,H);return ce(ee,ye,H,Je)}function o(H,Se,Je,ye,ee,ge){let ke,Oe=Je;for(;Oe;){if(Iq(Oe,Se,H)&&de(ge,Oe,ke,H,!0)){let ae=x(Oe,H),Ue=T(Je,Oe,ye,H),te=Ue!==0?ee&&Ue===2?ge.indentSize:0:ye!==ae.line?ge.indentSize:0;return u(Oe,ae,void 0,te,H,!0,ge)}let nt=U(Oe,H,ge,!0);if(nt!==-1)return nt;ke=Oe,Oe=Oe.parent}return p(ge)}function c(H,Se,Je,ye){let ee=Je.getLineAndCharacterOfPosition(H.getStart(Je));return u(H,ee,Se,0,Je,!1,ye)}e.getIndentationForNode=c;function p(H){return H.baseIndentSize||0}e.getBaseIndentation=p;function u(H,Se,Je,ye,ee,ge,ke){var Oe;let nt=H.parent;for(;nt;){let ae=!0;if(Je){let Ie=H.getStart(ee);ae=Ie<Je.pos||Ie>Je.end}let Ue=g(nt,H,ee),te=Ue.line===Se.line||P(nt,H,Se.line,ee);if(ae){let Ie=(Oe=O(H,ee))==null?void 0:Oe[0],xe=!!Ie&&x(Ie,ee).line>Ue.line,Qe=U(H,ee,ke,xe);if(Qe!==-1||(Qe=h(H,nt,Se,te,ee,ke),Qe!==-1))return Qe+ye}de(ke,nt,H,ee,ge)&&!te&&(ye+=ke.indentSize);let Ne=I(nt,H,Se.line,ee);H=nt,nt=H.parent,Se=Ne?ee.getLineAndCharacterOfPosition(H.getStart(ee)):Ue}return ye+p(ke)}function g(H,Se,Je){let ye=O(Se,Je),ee=ye?ye.pos:H.getStart(Je);return Je.getLineAndCharacterOfPosition(ee)}function d(H,Se,Je){let ye=Mce(H);return ye&&ye.listItemIndex>0?_e(ye.list.getChildren(),ye.listItemIndex-1,Se,Je):-1}function h(H,Se,Je,ye,ee,ge){return(ql(H)||BM(H))&&(Se.kind===308||!ye)?re(Je,ee,ge):-1}let S;(H=>{H[H.Unknown=0]="Unknown",H[H.OpenBrace=1]="OpenBrace",H[H.CloseBrace=2]="CloseBrace"})(S||(S={}));function T(H,Se,Je,ye){let ee=YS(H,Se,ye);if(!ee)return 0;if(ee.kind===19)return 1;if(ee.kind===20){let ge=x(ee,ye).line;return Je===ge?2:0}return 0}function x(H,Se){return Se.getLineAndCharacterOfPosition(H.getStart(Se))}function I(H,Se,Je,ye){if(!(Ws(H)&&ws(H.arguments,Se)))return!1;let ee=H.expression.getEnd();return Hs(ye,ee).line===Je}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=I;function P(H,Se,Je,ye){if(H.kind===246&&H.elseStatement===Se){let ee=lo(H,93,ye);return w.assert(ee!==void 0),x(ee,ye).line===Je}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=P;function E(H,Se,Je,ye){if(vk(H)&&(Se===H.whenTrue||Se===H.whenFalse)){let ee=Hs(ye,H.condition.end).line;if(Se===H.whenTrue)return Je===ee;{let ge=x(H.whenTrue,ye).line,ke=Hs(ye,H.whenTrue.end).line;return ee===ge&&ke===Je}}return!1}e.childIsUnindentedBranchOfConditionalExpression=E;function F(H,Se,Je,ye){if(Om(H)){if(!H.arguments)return!1;let ee=Bn(H.arguments,nt=>nt.pos===Se.pos);if(!ee)return!1;let ge=H.arguments.indexOf(ee);if(ge===0)return!1;let ke=H.arguments[ge-1],Oe=Hs(ye,ke.getEnd()).line;if(Je===Oe)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=F;function O(H,Se){return H.parent&&z(H.getStart(Se),H.getEnd(),H.parent,Se)}e.getContainingList=O;function W(H,Se,Je){return Se&&z(H,H,Se,Je)}function z(H,Se,Je,ye){switch(Je.kind){case 184:return ee(Je.typeArguments);case 211:return ee(Je.properties);case 210:return ee(Je.elements);case 188:return ee(Je.members);case 263:case 219:case 220:case 175:case 174:case 180:case 177:case 186:case 181:return ee(Je.typeParameters)||ee(Je.parameters);case 178:return ee(Je.parameters);case 264:case 232:case 265:case 266:case 346:return ee(Je.typeParameters);case 215:case 214:return ee(Je.typeArguments)||ee(Je.arguments);case 262:return ee(Je.declarations);case 276:case 280:return ee(Je.elements);case 207:case 208:return ee(Je.elements)}function ee(ge){return ge&&dR($(Je,ge,ye),H,Se)?ge:void 0}}function $(H,Se,Je){let ye=H.getChildren(Je);for(let ee=1;ee<ye.length-1;ee++)if(ye[ee].pos===Se.pos&&ye[ee].end===Se.end)return{pos:ye[ee-1].end,end:ye[ee+1].getStart(Je)};return Se}function X(H,Se,Je){return H?re(Se.getLineAndCharacterOfPosition(H.pos),Se,Je):-1}function U(H,Se,Je,ye){if(H.parent&&H.parent.kind===262)return-1;let ee=O(H,Se);if(ee){let ge=ee.indexOf(H);if(ge!==-1){let ke=_e(ee,ge,Se,Je);if(ke!==-1)return ke}return X(ee,Se,Je)+(ye?Je.indentSize:0)}return-1}function _e(H,Se,Je,ye){w.assert(Se>=0&&Se<H.length);let ee=H[Se],ge=x(ee,Je);for(let ke=Se-1;ke>=0;ke--){if(H[ke].kind===28)continue;if(Je.getLineAndCharacterOfPosition(H[ke].end).line!==ge.line)return re(ge,Je,ye);ge=x(H[ke],Je)}return-1}function re(H,Se,Je){let ye=Se.getPositionOfLineAndCharacter(H.line,0);return ce(ye,ye+H.character,Se,Je)}function V(H,Se,Je,ye){let ee=0,ge=0;for(let ke=H;ke<Se;ke++){let Oe=Je.text.charCodeAt(ke);if(!Rm(Oe))break;Oe===9?ge+=ye.tabSize+ge%ye.tabSize:ge++,ee++}return{column:ge,character:ee}}e.findFirstNonWhitespaceCharacterAndColumn=V;function ce(H,Se,Je,ye){return V(H,Se,Je,ye).column}e.findFirstNonWhitespaceColumn=ce;function oe(H,Se,Je,ye,ee){let ge=Je?Je.kind:0;switch(Se.kind){case 245:case 264:case 232:case 265:case 267:case 266:case 210:case 242:case 269:case 211:case 188:case 201:case 190:case 218:case 212:case 214:case 215:case 244:case 278:case 254:case 228:case 208:case 207:case 287:case 290:case 286:case 295:case 174:case 180:case 181:case 170:case 185:case 186:case 197:case 216:case 224:case 280:case 276:case 282:case 277:case 173:case 297:case 298:return!0;case 270:return H.indentSwitchCase??!0;case 261:case 304:case 227:if(!H.indentMultiLineObjectLiteralBeginningOnBlankLine&&ye&&ge===211)return ve(ye,Je);if(Se.kind===227&&ye&&Je&&ge===285){let ke=ye.getLineAndCharacterOfPosition(ha(ye.text,Se.pos)).line,Oe=ye.getLineAndCharacterOfPosition(ha(ye.text,Je.pos)).line;return ke!==Oe}if(Se.kind!==227)return!0;break;case 247:case 248:case 250:case 251:case 249:case 246:case 263:case 219:case 175:case 177:case 178:case 179:return ge!==242;case 220:return ye&&ge===218?ve(ye,Je):ge!==242;case 279:return ge!==280;case 273:return ge!==274||!!Je.namedBindings&&Je.namedBindings.kind!==276;case 285:return ge!==288;case 289:return ge!==291;case 194:case 193:case 239:if(ge===188||ge===190||ge===201)return!1;break;case 259:if(ge===242)return!1;break}return ee}e.nodeWillIndentChild=oe;function le(H,Se){switch(H){case 254:case 258:case 252:case 253:return Se.kind!==242;default:return!1}}function de(H,Se,Je,ye,ee=!1){return oe(H,Se,Je,ye,!1)&&!(ee&&Je&&le(Je.kind,Se))}e.shouldIndentChildNode=de;function ve(H,Se){let Je=ha(H.text,Se.pos),ye=H.getLineAndCharacterOfPosition(Je).line,ee=H.getLineAndCharacterOfPosition(Se.end).line;return ye===ee}})(sg||(sg={}));var _Q={};it(_Q,{preparePasteEdits:()=>Lit});function Lit(e,t,n){let i=!1;return t.forEach(s=>{let o=vr(Ii(e,s.pos),c=>$p(c,s));o&&Ms(o,function c(p){var u;if(!i){if(Be(p)&&qI(s,p.getStart(e))){let g=n.resolveName(p.text,p,-1,!1);if(g&&g.declarations){for(let d of g.declarations)if(U$(d)||p.text&&e.symbol&&((u=e.symbol.exports)!=null&&u.has(p.escapedText))){i=!0;return}}}p.forEachChild(c)}})}),i}var dQ={};it(dQ,{pasteEditsProvider:()=>Bit});var Wit="providePostPasteEdits";function Bit(e,t,n,i,s,o,c,p){return{edits:gn.ChangeTracker.with({host:s,formatContext:c,preferences:o},g=>zit(e,t,n,i,s,o,c,p,g)),fixId:Wit}}function zit(e,t,n,i,s,o,c,p,u){let g;t.length!==n.length&&(g=t.length===1?t[0]:t.join(py(c.host,c.options)));let d=[],h=e.text;for(let T=n.length-1;T>=0;T--){let{pos:x,end:I}=n[T];h=g?h.slice(0,x)+g+h.slice(I):h.slice(0,x)+t[T]+h.slice(I)}let S;w.checkDefined(s.runWithTemporaryFileUpdate).call(s,e.fileName,h,(T,x,I)=>{if(S=tp.createImportAdder(I,T,o,s),i?.range){w.assert(i.range.length===t.length),i.range.forEach(W=>{let z=i.file.statements,$=Tc(z,U=>U.end>W.pos);if($===-1)return;let X=Tc(z,U=>U.end>=W.end,$);X!==-1&&W.end<=z[X].getStart()&&X--,d.push(...z.slice($,X===-1?z.length:X+1))}),w.assertIsDefined(x,"no original program found");let P=x.getTypeChecker(),E=Git(i),F=B5(i.file,d,P,gue(I,d,P),E),O=!g$(e.fileName,x,s,!!i.file.commonJsModuleIndicator);cue(i.file,F.targetFileImportsFromOldFile,u,O),yue(i.file,F.oldImportsNeededByTargetFile,F.targetFileImportsFromOldFile,P,T,S)}else{let P={sourceFile:I,program:x,cancellationToken:p,host:s,preferences:o,formatContext:c},E=0;n.forEach((F,O)=>{let W=F.end-F.pos,z=g??t[O],$=F.pos+E,X=$+z.length,U={pos:$,end:X};E+=z.length-W;let _e=vr(Ii(P.sourceFile,U.pos),re=>$p(re,U));_e&&Ms(_e,function re(V){if(Be(V)&&qI(U,V.getStart(I))&&!T?.getTypeChecker().resolveName(V.text,V,-1,!1))return S.addImportForUnresolvedIdentifier(P,V,!0);V.forEachChild(re)})})}S.writeFixes(u,Mf(i?i.file:e,o))}),S.hasFixes()&&n.forEach((T,x)=>{u.replaceRangeWithText(e,{pos:T.pos,end:T.end},g??t[x])})}function Git({file:e,range:t}){let n=t[0].pos,i=t[t.length-1].end,s=Ii(e,n),o=IE(e,n)??Ii(e,i);return{pos:Be(s)&&n<=s.getStart(e)?s.getFullStart():n,end:Be(o)&&i===o.getEnd()?gn.getAdjustedEndPosition(e,o,{}):i}}var ZMe={};it(ZMe,{ANONYMOUS:()=>a$,AccessFlags:()=>EZ,AssertionLevel:()=>zY,AssignmentDeclarationKind:()=>BZ,AssignmentKind:()=>fre,Associativity:()=>bre,BreakpointResolver:()=>iH,BuilderFileEmit:()=>moe,BuilderProgramKind:()=>koe,BuilderState:()=>fm,CallHierarchy:()=>dC,CharacterCodes:()=>XZ,CheckFlags:()=>IZ,CheckMode:()=>PU,ClassificationType:()=>hq,ClassificationTypeNames:()=>Cce,CommentDirectiveType:()=>fZ,Comparison:()=>Va,CompletionInfoFlags:()=>yce,CompletionTriggerKind:()=>mq,Completions:()=>vC,ContainerFlags:()=>Qse,ContextFlags:()=>vZ,Debug:()=>w,DiagnosticCategory:()=>zO,Diagnostics:()=>_,DocumentHighlights:()=>O5,ElementFlags:()=>AZ,EmitFlags:()=>fB,EmitHint:()=>tee,EmitOnly:()=>dZ,EndOfLineState:()=>Sce,ExitStatus:()=>mZ,ExportKind:()=>mle,Extension:()=>YZ,ExternalEmitHelpers:()=>eee,FileIncludeKind:()=>rB,FilePreprocessingDiagnosticsKind:()=>_Z,FileSystemEntryKind:()=>uee,FileWatcherEventKind:()=>oee,FindAllReferences:()=>jo,FlattenLevel:()=>hae,FlowFlags:()=>BO,ForegroundColorEscapeSequences:()=>soe,FunctionFlags:()=>yre,GeneratedIdentifierFlags:()=>tB,GetLiteralTextFlags:()=>Pte,GoToDefinition:()=>aD,HighlightSpanKind:()=>gce,IdentifierNameMap:()=>FI,ImportKind:()=>dle,ImportsNotUsedAsValues:()=>qZ,IndentStyle:()=>hce,IndexFlags:()=>NZ,IndexKind:()=>OZ,InferenceFlags:()=>LZ,InferencePriority:()=>jZ,InlayHintKind:()=>mce,InlayHints:()=>QH,InternalEmitFlags:()=>ZZ,InternalNodeBuilderFlags:()=>SZ,InternalSymbolName:()=>DZ,IntersectionFlags:()=>yZ,InvalidatedProjectKind:()=>qoe,JSDocParsingMode:()=>aee,JsDoc:()=>_1,JsTyping:()=>Wb,JsxEmit:()=>VZ,JsxFlags:()=>cZ,JsxReferenceKind:()=>MZ,LanguageFeatureMinimumTarget:()=>Jl,LanguageServiceMode:()=>_ce,LanguageVariant:()=>QZ,LexicalEnvironmentFlags:()=>nee,ListFormat:()=>iee,LogLevel:()=>XY,MapCode:()=>KH,MemberOverrideStatus:()=>gZ,ModifierFlags:()=>ZW,ModuleDetectionKind:()=>zZ,ModuleInstanceState:()=>$se,ModuleKind:()=>kw,ModuleResolutionKind:()=>Tw,ModuleSpecifierEnding:()=>gne,NavigateTo:()=>Wle,NavigationBar:()=>zle,NewLineKind:()=>$Z,NodeBuilderFlags:()=>bZ,NodeCheckFlags:()=>sB,NodeFactoryFlags:()=>$ne,NodeFlags:()=>YW,NodeResolutionFeatures:()=>jse,ObjectFlags:()=>oB,OperationCanceledException:()=>bP,OperatorPrecedence:()=>Sre,OrganizeImports:()=>d1,OrganizeImportsMode:()=>dq,OuterExpressionKinds:()=>ree,OutliningElementsCollector:()=>YH,OutliningSpanKind:()=>vce,OutputFileType:()=>bce,PackageJsonAutoImportPreference:()=>fce,PackageJsonDependencyGroup:()=>pce,PatternMatchKind:()=>C$,PollingInterval:()=>_B,PollingWatchKind:()=>UZ,PragmaKindFlags:()=>see,PredicateSemantics:()=>lZ,PreparePasteEdits:()=>_Q,PrivateIdentifierKind:()=>nie,ProcessLevel:()=>Sae,ProgramUpdateLevel:()=>eoe,QuotePreference:()=>$ce,RegularExpressionFlags:()=>uZ,RelationComparisonResult:()=>eB,Rename:()=>yL,ScriptElementKind:()=>kce,ScriptElementKindModifier:()=>xce,ScriptKind:()=>lB,ScriptSnapshot:()=>$j,ScriptTarget:()=>HZ,SemanticClassificationFormat:()=>dce,SemanticMeaning:()=>wce,SemicolonPreference:()=>gq,SignatureCheckMode:()=>AU,SignatureFlags:()=>cB,SignatureHelp:()=>ZR,SignatureInfo:()=>doe,SignatureKind:()=>RZ,SmartSelectionRange:()=>tQ,SnippetKind:()=>pB,StatisticType:()=>tce,StructureIsReused:()=>nB,SymbolAccessibility:()=>xZ,SymbolDisplay:()=>dv,SymbolDisplayPartKind:()=>Qj,SymbolFlags:()=>iB,SymbolFormatFlags:()=>kZ,SyntaxKind:()=>XW,Ternary:()=>WZ,ThrottledCancellationToken:()=>Que,TokenClass:()=>Tce,TokenFlags:()=>pZ,TransformFlags:()=>uB,TypeFacts:()=>DU,TypeFlags:()=>aB,TypeFormatFlags:()=>TZ,TypeMapKind:()=>FZ,TypePredicateKind:()=>CZ,TypeReferenceSerializationKind:()=>wZ,UnionReduction:()=>hZ,UpToDateStatusType:()=>Woe,VarianceFlags:()=>PZ,Version:()=>Zd,VersionRange:()=>WO,WatchDirectoryFlags:()=>KZ,WatchDirectoryKind:()=>JZ,WatchFileKind:()=>GZ,WatchLogLevel:()=>roe,WatchType:()=>Xl,accessPrivateIdentifier:()=>gae,addEmitFlags:()=>qm,addEmitHelper:()=>O2,addEmitHelpers:()=>vh,addInternalEmitFlags:()=>_k,addNodeFactoryPatcher:()=>g0e,addObjectAllocatorPatcher:()=>e0e,addRange:()=>Gn,addRelatedInfo:()=>Xs,addSyntheticLeadingComment:()=>Ib,addSyntheticTrailingComment:()=>FA,addToSeen:()=>dd,advancedAsyncSuperHelper:()=>i7,affectsDeclarationPathOptionDeclarations:()=>cse,affectsEmitOptionDeclarations:()=>ose,allKeysStartWithDot:()=>Y7,altDirectorySeparator:()=>VO,and:()=>FO,append:()=>Fr,appendIfUnique:()=>qh,arrayFrom:()=>ds,arrayIsEqualTo:()=>qf,arrayIsHomogeneous:()=>xne,arrayOf:()=>jY,arrayReverseIterator:()=>AW,arrayToMap:()=>yw,arrayToMultiMap:()=>uM,arrayToNumericMap:()=>WY,assertType:()=>Ave,assign:()=>WT,asyncSuperHelper:()=>n7,attachFileToDiagnostics:()=>w2,base64decode:()=>Gre,base64encode:()=>zre,binarySearch:()=>Xv,binarySearchKey:()=>Vx,bindSourceFile:()=>Kse,breakIntoCharacterSpans:()=>Ele,breakIntoWordSpans:()=>Nle,buildLinkParts:()=>tle,buildOpts:()=>w4,buildOverload:()=>r6e,bundlerModuleNameResolver:()=>Lse,canBeConvertedToAsync:()=>E$,canHaveDecorators:()=>US,canHaveExportModifier:()=>K6,canHaveFlowNode:()=>$w,canHaveIllegalDecorators:()=>LJ,canHaveIllegalModifiers:()=>Gie,canHaveIllegalType:()=>G0e,canHaveIllegalTypeParameters:()=>zie,canHaveJSDoc:()=>h6,canHaveLocals:()=>Tg,canHaveModifiers:()=>yd,canHaveModuleSpecifier:()=>lre,canHaveSymbol:()=>rm,canIncludeBindAndCheckDiagnostics:()=>wA,canJsonReportNoInputFiles:()=>N4,canProduceDiagnostics:()=>G4,canUsePropertyAccess:()=>GG,canWatchAffectingLocation:()=>Eoe,canWatchAtTypes:()=>Aoe,canWatchDirectoryOrFile:()=>EV,canWatchDirectoryOrFilePath:()=>nR,cartesianProduct:()=>QY,cast:()=>Zs,chainBundle:()=>pm,chainDiagnosticMessages:()=>Ns,changeAnyExtension:()=>hM,changeCompilerHostLikeToUseCache:()=>yE,changeExtension:()=>tv,changeFullExtension:()=>HO,changesAffectModuleResolution:()=>SF,changesAffectingProgramStructure:()=>Ste,characterCodeToRegularExpressionFlag:()=>xB,childIsDecorated:()=>HP,classElementOrClassElementParameterIsDecorated:()=>kz,classHasClassThisAssignment:()=>VU,classHasDeclaredOrExplicitlyAssignedName:()=>qU,classHasExplicitlyAssignedName:()=>pj,classOrConstructorParameterIsDecorated:()=>Ky,classicNameResolver:()=>Vse,classifier:()=>Zue,cleanExtendedConfigCache:()=>hj,clear:()=>sd,clearMap:()=>cf,clearSharedExtendedConfigFileWatcher:()=>aV,climbPastPropertyAccess:()=>Yj,clone:()=>BY,cloneCompilerOptions:()=>Fq,closeFileWatcher:()=>Fd,closeFileWatcherOf:()=>J_,codefix:()=>tp,collapseTextChangeRangesAcrossMultipleVersions:()=>Mee,collectExternalModuleInfo:()=>zU,combine:()=>Ux,combinePaths:()=>Jn,commandLineOptionOfCustomType:()=>pse,commentPragmas:()=>GO,commonOptionsWithBuild:()=>E7,compact:()=>cM,compareBooleans:()=>C0,compareDataObjects:()=>gG,compareDiagnostics:()=>vA,compareEmitHelpers:()=>sie,compareNumberOfDirectorySeparators:()=>q6,comparePaths:()=>Hh,comparePathsCaseInsensitive:()=>ebe,comparePathsCaseSensitive:()=>Zve,comparePatternKeys:()=>SU,compareProperties:()=>VY,compareStringsCaseInsensitive:()=>fM,compareStringsCaseInsensitiveEslintCompatible:()=>GY,compareStringsCaseSensitive:()=>Eu,compareStringsCaseSensitiveUI:()=>_M,compareTextSpans:()=>RO,compareValues:()=>Po,compilerOptionsAffectDeclarationPath:()=>une,compilerOptionsAffectEmit:()=>lne,compilerOptionsAffectSemanticDiagnostics:()=>cne,compilerOptionsDidYouMeanDiagnostics:()=>O7,compilerOptionsIndicateEsModules:()=>Gq,computeCommonSourceDirectoryOfFilenames:()=>noe,computeLineAndCharacterOfPosition:()=>ww,computeLineOfPosition:()=>CP,computeLineStarts:()=>e2,computePositionOfLineAndCharacter:()=>YO,computeSignatureWithDiagnostics:()=>CV,computeSuggestionDiagnostics:()=>D$,computedOptions:()=>bA,concatenate:()=>Qi,concatenateDiagnosticMessageChains:()=>tne,consumesNodeCoreModules:()=>w5,contains:()=>ws,containsIgnoredPath:()=>PA,containsObjectRestOrSpread:()=>T4,containsParseError:()=>l2,containsPath:()=>A_,convertCompilerOptionsForTelemetry:()=>wse,convertCompilerOptionsFromJson:()=>X1e,convertJsonOption:()=>Dk,convertToBase64:()=>Bre,convertToJson:()=>P4,convertToObject:()=>bse,convertToOptionsWithAbsolutePaths:()=>W7,convertToRelativePath:()=>kP,convertToTSConfig:()=>iU,convertTypeAcquisitionFromJson:()=>Y1e,copyComments:()=>jk,copyEntries:()=>TF,copyLeadingComments:()=>YI,copyProperties:()=>jW,copyTrailingAsLeadingComments:()=>xR,copyTrailingComments:()=>RE,couldStartTrivia:()=>vee,countWhere:()=>Jy,createAbstractBuilder:()=>ike,createAccessorPropertyBackingField:()=>zJ,createAccessorPropertyGetRedirector:()=>Kie,createAccessorPropertySetRedirector:()=>Xie,createBaseNodeFactory:()=>Gne,createBinaryExpressionTrampoline:()=>w7,createBuilderProgram:()=>wV,createBuilderProgramUsingIncrementalBuildInfo:()=>Ioe,createBuilderStatusReporter:()=>Wj,createCacheableExportInfoMap:()=>h$,createCachedDirectoryStructureHost:()=>mj,createClassifier:()=>Rxe,createCommentDirectivesMap:()=>Ite,createCompilerDiagnostic:()=>fc,createCompilerDiagnosticForInvalidCustomType:()=>fse,createCompilerDiagnosticFromMessageChain:()=>C8,createCompilerHost:()=>ioe,createCompilerHostFromProgramHost:()=>qV,createCompilerHostWorker:()=>yj,createDetachedDiagnostic:()=>C2,createDiagnosticCollection:()=>lA,createDiagnosticForFileFromMessageChain:()=>yz,createDiagnosticForNode:()=>_n,createDiagnosticForNodeArray:()=>Ww,createDiagnosticForNodeArrayFromMessageChain:()=>QM,createDiagnosticForNodeFromMessageChain:()=>uh,createDiagnosticForNodeInSourceFile:()=>N_,createDiagnosticForRange:()=>zte,createDiagnosticMessageChainFromDiagnostic:()=>Bte,createDiagnosticReporter:()=>aC,createDocumentPositionMapper:()=>pae,createDocumentRegistry:()=>ble,createDocumentRegistryInternal:()=>T$,createEmitAndSemanticDiagnosticsBuilderProgram:()=>AV,createEmitHelperFactory:()=>iie,createEmptyExports:()=>d4,createEvaluator:()=>Rne,createExpressionForJsxElement:()=>Oie,createExpressionForJsxFragment:()=>Fie,createExpressionForObjectLiteralElementLike:()=>jie,createExpressionForPropertyName:()=>NJ,createExpressionFromEntityName:()=>m4,createExternalHelpersImportDeclarationIfNeeded:()=>OJ,createFileDiagnostic:()=>wl,createFileDiagnosticFromMessageChain:()=>NF,createFlowNode:()=>Ng,createForOfBindingStatement:()=>EJ,createFutureSourceFile:()=>N5,createGetCanonicalFileName:()=>hu,createGetIsolatedDeclarationErrors:()=>Uae,createGetSourceFile:()=>pV,createGetSymbolAccessibilityDiagnosticForNode:()=>n1,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Jae,createGetSymbolWalker:()=>Xse,createIncrementalCompilerHost:()=>Lj,createIncrementalProgram:()=>Loe,createJsxFactoryExpression:()=>AJ,createLanguageService:()=>Kue,createLanguageServiceSourceFile:()=>X5,createMemberAccessForPropertyName:()=>wk,createModeAwareCache:()=>EI,createModeAwareCacheKey:()=>nE,createModeMismatchDetails:()=>rz,createModuleNotFoundChain:()=>xF,createModuleResolutionCache:()=>NI,createModuleResolutionLoader:()=>hV,createModuleResolutionLoaderUsingGlobalCache:()=>Ooe,createModuleSpecifierResolutionHost:()=>o1,createMultiMap:()=>od,createNameResolver:()=>$G,createNodeConverters:()=>Vne,createNodeFactory:()=>t4,createOptionNameMap:()=>M7,createOverload:()=>mQ,createPackageJsonImportFilter:()=>ZI,createPackageJsonInfo:()=>l$,createParenthesizerRules:()=>Jne,createPatternMatcher:()=>Cle,createPrinter:()=>jb,createPrinterWithDefaults:()=>Yae,createPrinterWithRemoveComments:()=>HS,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>Zae,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>sV,createProgram:()=>eR,createProgramDiagnostics:()=>foe,createProgramHost:()=>$V,createPropertyNameNodeForIdentifierOrLiteral:()=>Q6,createQueue:()=>pM,createRange:()=>O_,createRedirectedBuilderProgram:()=>PV,createResolutionCache:()=>MV,createRuntimeTypeSerializer:()=>wae,createScanner:()=>ih,createSemanticDiagnosticsBuilderProgram:()=>nke,createSet:()=>LW,createSolutionBuilder:()=>Joe,createSolutionBuilderHost:()=>zoe,createSolutionBuilderWithWatch:()=>Uoe,createSolutionBuilderWithWatchHost:()=>Goe,createSortedArray:()=>PW,createSourceFile:()=>X2,createSourceMapGenerator:()=>aae,createSourceMapSource:()=>b0e,createSuperAccessVariableStatement:()=>_j,createSymbolTable:()=>Qs,createSymlinkCache:()=>wG,createSyntacticTypeNodeBuilder:()=>cce,createSystemWatchFunctions:()=>pee,createTextChange:()=>hR,createTextChangeFromStartLength:()=>p5,createTextChangeRange:()=>IM,createTextRangeFromNode:()=>Wq,createTextRangeFromSpan:()=>u5,createTextSpan:()=>yu,createTextSpanFromBounds:()=>$c,createTextSpanFromNode:()=>Np,createTextSpanFromRange:()=>pv,createTextSpanFromStringLiteralLikeContent:()=>Lq,createTextWriter:()=>D6,createTokenRange:()=>pG,createTypeChecker:()=>iae,createTypeReferenceDirectiveResolutionCache:()=>Q7,createTypeReferenceResolutionLoader:()=>Sj,createWatchCompilerHost:()=>dke,createWatchCompilerHostOfConfigFile:()=>HV,createWatchCompilerHostOfFilesAndCompilerOptions:()=>QV,createWatchFactory:()=>VV,createWatchHost:()=>UV,createWatchProgram:()=>KV,createWatchStatusReporter:()=>RV,createWriteFileMeasuringIO:()=>fV,declarationNameToString:()=>To,decodeMappings:()=>LU,decodedTextSpanIntersectsWith:()=>wM,deduplicate:()=>oS,defaultHoverMaximumTruncationLength:()=>vte,defaultInitCompilerOptions:()=>h1e,defaultMaximumTruncationLength:()=>zP,diagnosticCategoryName:()=>zT,diagnosticToString:()=>ZS,diagnosticsEqualityComparer:()=>w8,directoryProbablyExists:()=>sm,directorySeparator:()=>Ro,displayPart:()=>pf,displayPartsToString:()=>jR,disposeEmitNodes:()=>iJ,documentSpansEqual:()=>Qq,dumpTracingLegend:()=>oZ,elementAt:()=>Kv,elideNodes:()=>Qie,emitDetachedComments:()=>Are,emitFiles:()=>nV,emitFilesAndReportErrors:()=>Rj,emitFilesAndReportErrorsAndGetExitStatus:()=>JV,emitModuleKindIsNonNodeESM:()=>G6,emitNewLineBeforeLeadingCommentOfPosition:()=>Pre,emitResolverSkipsTypeChecking:()=>rV,emitSkippedWithNoDiagnostics:()=>bV,emptyArray:()=>Ke,emptyFileSystemEntries:()=>RG,emptyMap:()=>Gl,emptyOptions:()=>vd,endsWith:()=>Bo,ensurePathIsNonModuleName:()=>GT,ensureScriptKind:()=>F8,ensureTrailingDirectorySeparator:()=>Ml,entityNameToString:()=>kf,enumerateInsertsAndDeletes:()=>LO,equalOwnProperties:()=>LY,equateStringsCaseInsensitive:()=>tb,equateStringsCaseSensitive:()=>uS,equateValues:()=>eb,escapeJsxAttributeString:()=>$z,escapeLeadingUnderscores:()=>gc,escapeNonAsciiString:()=>s8,escapeSnippetText:()=>RS,escapeString:()=>Dg,escapeTemplateSubstitution:()=>Vz,evaluatorResult:()=>Ol,every:()=>Fi,exclusivelyPrefixedNodeCoreModules:()=>X8,executeCommandLine:()=>$ke,expandPreOrPostfixIncrementOrDecrementExpression:()=>S7,explainFiles:()=>LV,explainIfFileIsRedirectAndImpliedFormat:()=>WV,exportAssignmentIsAlias:()=>S6,expressionResultIsUnused:()=>wne,extend:()=>FW,extensionFromPath:()=>xA,extensionIsTS:()=>z8,extensionsNotSupportingExtensionlessResolution:()=>B8,externalHelpersModuleNameText:()=>_b,factory:()=>A,fileExtensionIs:()=>uc,fileExtensionIsOneOf:()=>Bc,fileIncludeReasonToDiagnostics:()=>GV,fileShouldUseJavaScriptRequire:()=>g$,filter:()=>Mn,filterMutate:()=>xW,filterSemanticDiagnostics:()=>Cj,find:()=>Bn,findAncestor:()=>vr,findBestPatternMatch:()=>UW,findChildOfKind:()=>lo,findComputedPropertyNameCacheAssignment:()=>I7,findConfigFile:()=>lV,findConstructorDeclaration:()=>Z6,findContainingList:()=>n5,findDiagnosticForNode:()=>ple,findFirstNonJsxWhitespaceToken:()=>Rce,findIndex:()=>Tc,findLast:()=>aS,findLastIndex:()=>EO,findListItemInfo:()=>Mce,findModifier:()=>QI,findNextToken:()=>YS,findPackageJson:()=>ule,findPackageJsons:()=>c$,findPrecedingMatchingToken:()=>c5,findPrecedingToken:()=>Al,findSuperStatementIndexPath:()=>oj,findTokenOnLeftOfPosition:()=>IE,findUseStrictPrologue:()=>RJ,first:()=>Ra,firstDefined:()=>fo,firstDefinedIterator:()=>Em,firstIterator:()=>NW,firstOrOnly:()=>f$,firstOrUndefined:()=>_l,firstOrUndefinedIterator:()=>MO,fixupCompilerOptions:()=>N$,flatMap:()=>Ma,flatMapIterator:()=>CW,flatMapToMutable:()=>uP,flatten:()=>ad,flattenCommaList:()=>Yie,flattenDestructuringAssignment:()=>Nk,flattenDestructuringBinding:()=>$S,flattenDiagnosticMessageText:()=>tg,forEach:()=>or,forEachAncestor:()=>Tte,forEachAncestorDirectory:()=>xP,forEachAncestorDirectoryStoppingAtGlobalCache:()=>Eg,forEachChild:()=>Ms,forEachChildRecursively:()=>K2,forEachDynamicImportOrRequireCall:()=>Y8,forEachEmittedFile:()=>YU,forEachEnclosingBlockScopeContainer:()=>jte,forEachEntry:()=>Rl,forEachExternalModuleToImportFrom:()=>v$,forEachImportClauseDeclaration:()=>ure,forEachKey:()=>ch,forEachLeadingCommentRange:()=>bM,forEachNameInAccessChainWalkingLeft:()=>Kre,forEachNameOfDefaultExport:()=>R5,forEachOptionsSyntaxByName:()=>ZG,forEachProjectReference:()=>RA,forEachPropertyAssignment:()=>Gw,forEachResolvedProjectReference:()=>XG,forEachReturnStatement:()=>hb,forEachRight:()=>Zg,forEachTrailingCommentRange:()=>SM,forEachTsConfigPropArray:()=>e6,forEachUnique:()=>Xq,forEachYieldExpression:()=>Vte,formatColorAndReset:()=>QS,formatDiagnostic:()=>_V,formatDiagnostics:()=>ETe,formatDiagnosticsWithColorAndContext:()=>coe,formatGeneratedName:()=>Y0,formatGeneratedNamePart:()=>II,formatLocation:()=>dV,formatMessage:()=>I2,formatStringFromArgs:()=>mh,formatting:()=>vl,generateDjb2Hash:()=>SP,generateTSConfig:()=>Sse,getAdjustedReferenceLocation:()=>Aq,getAdjustedRenameLocation:()=>s5,getAliasDeclarationFromName:()=>Oz,getAllAccessorDeclarations:()=>PS,getAllDecoratorsOfClass:()=>JU,getAllDecoratorsOfClassElement:()=>lj,getAllJSDocTags:()=>sF,getAllJSDocTagsOfKind:()=>kbe,getAllKeys:()=>wve,getAllProjectOutputs:()=>dj,getAllSuperTypeNodes:()=>nA,getAllowImportingTsExtensions:()=>nne,getAllowJSCompilerOption:()=>xb,getAllowSyntheticDefaultImports:()=>D2,getAncestor:()=>j0,getAnyExtensionFromPath:()=>Xx,getAreDeclarationMapsEnabled:()=>I8,getAssignedExpandoInitializer:()=>f2,getAssignedName:()=>rF,getAssignmentDeclarationKind:()=>Hc,getAssignmentDeclarationPropertyAccessKind:()=>f6,getAssignmentTargetKind:()=>yb,getAutomaticTypeDirectiveNames:()=>$7,getBaseFileName:()=>dl,getBinaryOperatorPrecedence:()=>C6,getBuildInfo:()=>iV,getBuildInfoFileVersionMap:()=>DV,getBuildInfoText:()=>Kae,getBuildOrderFromAnyBuildOrder:()=>sR,getBuilderCreationParameters:()=>Pj,getBuilderFileEmit:()=>Lb,getCanonicalDiagnostic:()=>Gte,getCheckFlags:()=>Cc,getClassExtendsHeritageElement:()=>CS,getClassLikeDeclarationOfSymbol:()=>iy,getCombinedLocalAndExportSymbolFlags:()=>rI,getCombinedModifierFlags:()=>I0,getCombinedNodeFlags:()=>Kh,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>AB,getCommentRange:()=>$m,getCommonSourceDirectory:()=>hE,getCommonSourceDirectoryOfConfig:()=>Mk,getCompilerOptionValue:()=>A8,getConditions:()=>Rb,getConfigFileParsingDiagnostics:()=>KS,getConstantValue:()=>Kne,getContainerFlags:()=>kU,getContainerNode:()=>Fk,getContainingClass:()=>cu,getContainingClassExcludingClassDecorators:()=>BF,getContainingClassStaticBlock:()=>Zte,getContainingFunction:()=>i_,getContainingFunctionDeclaration:()=>Yte,getContainingFunctionOrClassStaticBlock:()=>WF,getContainingNodeArray:()=>Ine,getContainingObjectLiteralElement:()=>LR,getContextualTypeFromParent:()=>b5,getContextualTypeFromParentOrAncestorTypeNode:()=>i5,getDeclarationDiagnostics:()=>Vae,getDeclarationEmitExtensionForPath:()=>c8,getDeclarationEmitOutputFilePath:()=>Cre,getDeclarationEmitOutputFilePathWorker:()=>o8,getDeclarationFileExtension:()=>P7,getDeclarationFromName:()=>rA,getDeclarationModifierFlagsFromSymbol:()=>j_,getDeclarationOfKind:()=>$o,getDeclarationsOfKind:()=>bte,getDeclaredExpandoInitializer:()=>YP,getDecorators:()=>ab,getDefaultCompilerOptions:()=>K5,getDefaultFormatCodeSettings:()=>Hj,getDefaultLibFileName:()=>kM,getDefaultLibFilePath:()=>Xue,getDefaultLikeExportInfo:()=>M5,getDefaultLikeExportNameFromDeclaration:()=>_$,getDefaultResolutionModeForFileWorker:()=>xj,getDiagnosticText:()=>Qp,getDiagnosticsWithinSpan:()=>fle,getDirectoryPath:()=>ti,getDirectoryToWatchFailedLookupLocation:()=>NV,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>Moe,getDocumentPositionMapper:()=>I$,getDocumentSpansEqualityComparer:()=>Kq,getESModuleInterop:()=>Vm,getEditsForFileRename:()=>Tle,getEffectiveBaseTypeNode:()=>im,getEffectiveConstraintOfTypeParameter:()=>Aw,getEffectiveContainerForJSDocTemplateTag:()=>YF,getEffectiveImplementsTypeNodes:()=>Qw,getEffectiveInitializer:()=>l6,getEffectiveJSDocHost:()=>F0,getEffectiveModifierFlags:()=>Mu,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Rre,getEffectiveModifierFlagsNoCache:()=>Ore,getEffectiveReturnTypeNode:()=>wf,getEffectiveSetAccessorTypeAnnotationNode:()=>tG,getEffectiveTypeAnnotationNode:()=>ml,getEffectiveTypeParameterDeclarations:()=>ob,getEffectiveTypeRoots:()=>rE,getElementOrPropertyAccessArgumentExpressionOrName:()=>XF,getElementOrPropertyAccessName:()=>Zh,getElementsOfBindingOrAssignmentPattern:()=>wI,getEmitDeclarations:()=>lf,getEmitFlags:()=>Oa,getEmitHelpers:()=>sJ,getEmitModuleDetectionKind:()=>ine,getEmitModuleFormatOfFileWorker:()=>SE,getEmitModuleKind:()=>_p,getEmitModuleResolutionKind:()=>Ku,getEmitScriptTarget:()=>xa,getEmitStandardClassFields:()=>xG,getEnclosingBlockScopeContainer:()=>nm,getEnclosingContainer:()=>EF,getEncodedSemanticClassifications:()=>b$,getEncodedSyntacticClassifications:()=>S$,getEndLinePosition:()=>UM,getEntityNameFromTypeNode:()=>n6,getEntrypointsFromPackageJsonInfo:()=>yU,getErrorCountForSummary:()=>Nj,getErrorSpanForNode:()=>ZT,getErrorSummaryText:()=>FV,getEscapedTextOfIdentifierOrLiteral:()=>aA,getEscapedTextOfJsxAttributeName:()=>NA,getEscapedTextOfJsxNamespacedName:()=>N2,getExpandoInitializer:()=>R0,getExportAssignmentExpression:()=>Fz,getExportInfoMap:()=>AR,getExportNeedsImportStarHelper:()=>fae,getExpressionAssociativity:()=>Jz,getExpressionPrecedence:()=>cA,getExternalHelpersModuleName:()=>h4,getExternalModuleImportEqualsDeclarationExpression:()=>QP,getExternalModuleName:()=>d2,getExternalModuleNameFromDeclaration:()=>kre,getExternalModuleNameFromPath:()=>Kz,getExternalModuleNameLiteral:()=>Q2,getExternalModuleRequireArgument:()=>Cz,getFallbackOptions:()=>X4,getFileEmitOutput:()=>_oe,getFileMatcherPatterns:()=>O8,getFileNamesFromConfigSpecs:()=>eE,getFileWatcherEventKind:()=>gB,getFilesInErrorForSummary:()=>Mj,getFirstConstructorWithBody:()=>_h,getFirstIdentifier:()=>wp,getFirstNonSpaceCharacterPosition:()=>ile,getFirstProjectOutput:()=>tV,getFixableErrorSpanExpression:()=>u$,getFormatCodeSettingsForWriting:()=>A5,getFullWidth:()=>GM,getFunctionFlags:()=>Yc,getHeritageClause:()=>T6,getHostSignatureFromJSDoc:()=>O0,getIdentifierAutoGenerate:()=>k0e,getIdentifierGeneratedImportReference:()=>rie,getIdentifierTypeArguments:()=>dk,getImmediatelyInvokedFunctionExpression:()=>N0,getImpliedNodeFormatForEmitWorker:()=>Rk,getImpliedNodeFormatForFile:()=>Z4,getImpliedNodeFormatForFileWorker:()=>kj,getImportNeedsImportDefaultHelper:()=>BU,getImportNeedsImportStarHelper:()=>sj,getIndentString:()=>a8,getInferredLibraryNameResolveFrom:()=>Tj,getInitializedVariables:()=>gA,getInitializerOfBinaryExpression:()=>Pz,getInitializerOfBindingOrAssignmentElement:()=>v4,getInterfaceBaseTypeNodes:()=>iA,getInternalEmitFlags:()=>Rd,getInvokedExpression:()=>JF,getIsFileExcluded:()=>hle,getIsolatedModules:()=>md,getJSDocAugmentsTag:()=>Jee,getJSDocClassTag:()=>MB,getJSDocCommentRanges:()=>bz,getJSDocCommentsAndTags:()=>Az,getJSDocDeprecatedTag:()=>RB,getJSDocDeprecatedTagNoCache:()=>Kee,getJSDocEnumTag:()=>OB,getJSDocHost:()=>kS,getJSDocImplementsTags:()=>Uee,getJSDocOverloadTags:()=>Nz,getJSDocOverrideTagNoCache:()=>Qee,getJSDocParameterTags:()=>Pw,getJSDocParameterTagsNoCache:()=>Wee,getJSDocPrivateTag:()=>vbe,getJSDocPrivateTagNoCache:()=>qee,getJSDocProtectedTag:()=>bbe,getJSDocProtectedTagNoCache:()=>$ee,getJSDocPublicTag:()=>ybe,getJSDocPublicTagNoCache:()=>Vee,getJSDocReadonlyTag:()=>Sbe,getJSDocReadonlyTagNoCache:()=>Hee,getJSDocReturnTag:()=>Xee,getJSDocReturnType:()=>PM,getJSDocRoot:()=>Hw,getJSDocSatisfiesExpressionType:()=>UG,getJSDocSatisfiesTag:()=>FB,getJSDocTags:()=>P0,getJSDocTemplateTag:()=>Tbe,getJSDocThisTag:()=>nF,getJSDocType:()=>qy,getJSDocTypeAliasName:()=>jJ,getJSDocTypeAssertionType:()=>xI,getJSDocTypeParameterDeclarations:()=>_8,getJSDocTypeParameterTags:()=>Bee,getJSDocTypeParameterTagsNoCache:()=>zee,getJSDocTypeTag:()=>D0,getJSXImplicitImportBase:()=>J6,getJSXRuntimeImport:()=>N8,getJSXTransformEnabled:()=>E8,getKeyForCompilerOptions:()=>_U,getLanguageVariant:()=>j6,getLastChild:()=>hG,getLeadingCommentRanges:()=>nh,getLeadingCommentRangesOfNode:()=>vz,getLeftmostAccessExpression:()=>nI,getLeftmostExpression:()=>iI,getLibFileNameFromLibReference:()=>KG,getLibNameFromLibReference:()=>QG,getLibraryNameFromLibFileName:()=>yV,getLineAndCharacterOfPosition:()=>Hs,getLineInfo:()=>jU,getLineOfLocalPosition:()=>uA,getLineStartPositionForPosition:()=>bd,getLineStarts:()=>th,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>$re,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>qre,getLinesBetweenPositions:()=>wP,getLinesBetweenRangeEndAndRangeStart:()=>fG,getLinesBetweenRangeEndPositions:()=>Ybe,getLiteralText:()=>Ate,getLocalNameForExternalImport:()=>CI,getLocalSymbolForExportDefault:()=>dA,getLocaleSpecificMessage:()=>Es,getLocaleTimeString:()=>iR,getMappedContextSpan:()=>Yq,getMappedDocumentSpan:()=>h5,getMappedLocation:()=>EE,getMatchedFileSpec:()=>BV,getMatchedIncludeSpec:()=>zV,getMeaningFromDeclaration:()=>Kj,getMeaningFromLocation:()=>Ok,getMembersOfDeclaration:()=>qte,getModeForFileReference:()=>loe,getModeForResolutionAtIndex:()=>jTe,getModeForUsageLocation:()=>gV,getModifiedTime:()=>Kx,getModifiers:()=>fS,getModuleInstanceState:()=>ly,getModuleNameStringLiteralAt:()=>tR,getModuleSpecifierEndingPreference:()=>hne,getModuleSpecifierResolverHost:()=>Jq,getNameForExportedSymbol:()=>I5,getNameFromImportAttribute:()=>H8,getNameFromIndexInfo:()=>Lte,getNameFromPropertyName:()=>vR,getNameOfAccessExpression:()=>vG,getNameOfCompilerOptionValue:()=>L7,getNameOfDeclaration:()=>Ss,getNameOfExpando:()=>wz,getNameOfJSDocTypedef:()=>Lee,getNameOfScriptTarget:()=>P8,getNameOrArgument:()=>p6,getNameTable:()=>nH,getNamespaceDeclarationNode:()=>qw,getNewLineCharacter:()=>Zy,getNewLineKind:()=>PR,getNewLineOrDefaultFromHost:()=>py,getNewTargetContainer:()=>tre,getNextJSDocCommentLocation:()=>Ez,getNodeChildren:()=>DJ,getNodeForGeneratedName:()=>S4,getNodeId:()=>qa,getNodeKind:()=>XS,getNodeModifiers:()=>DE,getNodeModulePathParts:()=>V8,getNonAssignedNameOfDeclaration:()=>tF,getNonAssignmentOperatorForCompoundAssignment:()=>uE,getNonAugmentationDeclaration:()=>fz,getNonDecoratorTokenPosOfNode:()=>az,getNonIncrementalBuildInfoRoots:()=>Doe,getNonModifierTokenPosOfNode:()=>Dte,getNormalizedAbsolutePath:()=>as,getNormalizedAbsolutePathWithoutRoot:()=>bB,getNormalizedPathComponents:()=>$O,getObjectFlags:()=>jn,getOperatorAssociativity:()=>Uz,getOperatorPrecedence:()=>x6,getOptionFromName:()=>ZJ,getOptionsForLibraryResolution:()=>dU,getOptionsNameMap:()=>PI,getOptionsSyntaxByArrayElementValue:()=>YG,getOptionsSyntaxByValue:()=>Wne,getOrCreateEmitNode:()=>Ou,getOrUpdate:()=>pP,getOriginalNode:()=>sc,getOriginalNodeId:()=>Ep,getOutputDeclarationFileName:()=>gE,getOutputDeclarationFileNameWorker:()=>ZU,getOutputExtension:()=>H4,getOutputFileNames:()=>PTe,getOutputJSFileNameWorker:()=>eV,getOutputPathsFor:()=>mE,getOwnEmitOutputFilePath:()=>xre,getOwnKeys:()=>Nm,getOwnValues:()=>qx,getPackageJsonTypesVersionsPaths:()=>q7,getPackageNameFromTypesPackageName:()=>aE,getPackageScopeForPath:()=>sE,getParameterSymbolFromJSDoc:()=>y6,getParentNodeInSpan:()=>SR,getParseTreeNode:()=>As,getParsedCommandLineOfConfigFile:()=>I4,getPathComponents:()=>Nu,getPathFromPathComponents:()=>w0,getPathUpdater:()=>x$,getPathsBasePath:()=>l8,getPatternFromSpec:()=>PG,getPendingEmitKindWithSeen:()=>Dj,getPositionOfLineAndCharacter:()=>yM,getPossibleGenericSignatures:()=>Nq,getPossibleOriginalInputExtensionForExtension:()=>Xz,getPossibleOriginalInputPathWithoutChangingExt:()=>Yz,getPossibleTypeArgumentsInfo:()=>Mq,getPreEmitDiagnostics:()=>ATe,getPrecedingNonSpaceCharacterPosition:()=>y5,getPrivateIdentifier:()=>UU,getProperties:()=>GU,getProperty:()=>lM,getPropertyAssignmentAliasLikeExpression:()=>hre,getPropertyNameForPropertyNameNode:()=>ok,getPropertyNameFromType:()=>W_,getPropertyNameOfBindingOrAssignmentElement:()=>FJ,getPropertySymbolFromBindingElement:()=>g5,getPropertySymbolsFromContextualType:()=>Y5,getQuoteFromPreference:()=>Vq,getQuotePreference:()=>Mf,getRangesWhere:()=>DW,getRefactorContextSpan:()=>uC,getReferencedFileLocation:()=>bE,getRegexFromPattern:()=>ev,getRegularExpressionForWildcard:()=>SA,getRegularExpressionsForWildcards:()=>M8,getRelativePathFromDirectory:()=>n_,getRelativePathFromFile:()=>Cw,getRelativePathToDirectoryOrUrl:()=>Zx,getRenameLocation:()=>kR,getReplacementSpanForContextToken:()=>jq,getResolutionDiagnostic:()=>TV,getResolutionModeOverride:()=>LI,getResolveJsonModule:()=>ES,getResolvePackageJsonExports:()=>W6,getResolvePackageJsonImports:()=>B6,getResolvedExternalModuleName:()=>Qz,getResolvedModuleFromResolution:()=>c2,getResolvedTypeReferenceDirectiveFromResolution:()=>kF,getRestIndicatorOfBindingOrAssignmentElement:()=>x7,getRestParameterElementType:()=>Sz,getRightMostAssignedExpression:()=>u6,getRootDeclaration:()=>zm,getRootDirectoryOfResolutionCache:()=>Roe,getRootLength:()=>em,getScriptKind:()=>r$,getScriptKindFromFileName:()=>j8,getScriptTargetFeatures:()=>oz,getSelectedEffectiveModifierFlags:()=>b2,getSelectedSyntacticModifierFlags:()=>Nre,getSemanticClassifications:()=>yle,getSemanticJsxChildren:()=>Xw,getSetAccessorTypeAnnotationNode:()=>Ire,getSetAccessorValueParameter:()=>pA,getSetExternalModuleIndicator:()=>L6,getShebang:()=>ZO,getSingleVariableOfVariableStatement:()=>h2,getSnapshotText:()=>lC,getSnippetElement:()=>aJ,getSourceFileOfModule:()=>JM,getSourceFileOfNode:()=>Nr,getSourceFilePathInNewDir:()=>p8,getSourceFileVersionAsHashFromText:()=>Oj,getSourceFilesToEmit:()=>u8,getSourceMapRange:()=>nv,getSourceMapper:()=>Rle,getSourceTextOfNodeFromSourceFile:()=>hS,getSpanOfTokenAtPosition:()=>jm,getSpellingSuggestion:()=>pS,getStartPositionOfLine:()=>db,getStartPositionOfRange:()=>mA,getStartsOnNewLine:()=>OA,getStaticPropertiesAndClassStaticBlock:()=>cj,getStrictOptionValue:()=>Ru,getStringComparer:()=>bw,getSubPatternFromSpec:()=>R8,getSuperCallFromStatement:()=>aj,getSuperContainer:()=>t6,getSupportedCodeFixes:()=>tH,getSupportedExtensions:()=>TA,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>V6,getSwitchedType:()=>s$,getSymbolId:()=>sa,getSymbolNameForPrivateIdentifier:()=>k6,getSymbolTarget:()=>n$,getSyntacticClassifications:()=>vle,getSyntacticModifierFlags:()=>Xy,getSyntacticModifierFlagsNoCache:()=>iG,getSynthesizedDeepClone:()=>to,getSynthesizedDeepCloneWithReplacements:()=>e4,getSynthesizedDeepClones:()=>OS,getSynthesizedDeepClonesWithReplacements:()=>eJ,getSyntheticLeadingComments:()=>uI,getSyntheticTrailingComments:()=>s4,getTargetLabel:()=>Zj,getTargetOfBindingOrAssignmentElement:()=>Nb,getTemporaryModuleResolutionState:()=>iE,getTextOfConstantValue:()=>Ete,getTextOfIdentifierOrLiteral:()=>R_,getTextOfJSDocComment:()=>AM,getTextOfJsxAttributeName:()=>Y6,getTextOfJsxNamespacedName:()=>MA,getTextOfNode:()=>pc,getTextOfNodeFromSourceText:()=>JP,getTextOfPropertyName:()=>p2,getThisContainer:()=>fp,getThisParameter:()=>IS,getTokenAtPosition:()=>Ii,getTokenPosOfNode:()=>mb,getTokenSourceMapRange:()=>S0e,getTouchingPropertyName:()=>Kp,getTouchingToken:()=>$I,getTrailingCommentRanges:()=>sb,getTrailingSemicolonDeferringWriter:()=>Hz,getTransformers:()=>$ae,getTsBuildInfoEmitOutputFilePath:()=>i1,getTsConfigObjectLiteralExpression:()=>$P,getTsConfigPropArrayElementValue:()=>LF,getTypeAnnotationNode:()=>Dre,getTypeArgumentOrTypeParameterList:()=>zce,getTypeKeywordOfTypeOnlyImport:()=>Hq,getTypeNode:()=>eie,getTypeNodeIfAccessible:()=>FE,getTypeParameterFromJsDoc:()=>pre,getTypeParameterOwner:()=>dbe,getTypesPackageName:()=>Z7,getUILocale:()=>JY,getUniqueName:()=>Lk,getUniqueSymbolId:()=>nle,getUseDefineForClassFields:()=>z6,getWatchErrorSummaryDiagnosticMessage:()=>OV,getWatchFactory:()=>cV,group:()=>vw,groupBy:()=>OW,guessIndentation:()=>hte,handleNoEmitOptions:()=>SV,handleWatchOptionsConfigDirTemplateSubstitution:()=>B7,hasAbstractModifier:()=>AS,hasAccessorModifier:()=>Gm,hasAmbientModifier:()=>nG,hasChangesInResolutions:()=>nz,hasContextSensitiveParameters:()=>U8,hasDecorators:()=>a_,hasDocComment:()=>Wce,hasDynamicName:()=>ey,hasEffectiveModifier:()=>If,hasEffectiveModifiers:()=>rG,hasEffectiveReadonlyModifier:()=>lk,hasExtension:()=>xw,hasImplementationTSFileExtension:()=>mne,hasIndexSignature:()=>i$,hasInferredType:()=>K8,hasInitializer:()=>Hy,hasInvalidEscape:()=>qz,hasJSDocNodes:()=>Hf,hasJSDocParameterTags:()=>Gee,hasJSFileExtension:()=>gh,hasJsonModuleEmitEnabled:()=>D8,hasOnlyExpressionInitializer:()=>XT,hasOverrideModifier:()=>d8,hasPossibleExternalModuleReference:()=>Fte,hasProperty:()=>_o,hasPropertyAccessExpressionWithName:()=>pR,hasQuestionToken:()=>m2,hasRecordedExternalHelpers:()=>Bie,hasResolutionModeOverride:()=>Nne,hasRestParameter:()=>YB,hasScopeMarker:()=>cte,hasStaticModifier:()=>Cl,hasSyntacticModifier:()=>ri,hasSyntacticModifiers:()=>Ere,hasTSFileExtension:()=>pk,hasTabstop:()=>Pne,hasTrailingDirectorySeparator:()=>nb,hasType:()=>yF,hasTypeArguments:()=>Gbe,hasZeroOrOneAsteriskCharacter:()=>CG,hostGetCanonicalFileName:()=>ty,hostUsesCaseSensitiveFileNames:()=>ck,idText:()=>Fn,identifierIsThisKeyword:()=>eG,identifierToKeywordKind:()=>VT,identity:()=>Do,identitySourceMapConsumer:()=>WU,ignoreSourceNewlines:()=>cJ,ignoredPaths:()=>UO,importFromModuleSpecifier:()=>eA,importSyntaxAffectsModuleResolution:()=>kG,indexOfAnyCharCode:()=>EY,indexOfNode:()=>jw,indicesOf:()=>NO,inferredTypesContainingFile:()=>vE,injectClassNamedEvaluationHelperBlockIfMissing:()=>fj,injectClassThisAssignmentIfMissing:()=>bae,insertImports:()=>$q,insertSorted:()=>Qv,insertStatementAfterCustomPrologue:()=>YT,insertStatementAfterStandardPrologue:()=>Obe,insertStatementsAfterCustomPrologue:()=>iz,insertStatementsAfterStandardPrologue:()=>lh,intersperse:()=>oM,intrinsicTagNameToString:()=>VG,introducesArgumentsExoticObject:()=>Qte,inverseJsxOptionMap:()=>C4,isAbstractConstructorSymbol:()=>Hre,isAbstractModifier:()=>fie,isAccessExpression:()=>Oo,isAccessibilityModifier:()=>Oq,isAccessor:()=>pb,isAccessorModifier:()=>dJ,isAliasableExpression:()=>ZF,isAmbientModule:()=>pp,isAmbientPropertyDeclaration:()=>dz,isAnyDirectorySeparator:()=>hB,isAnyImportOrBareOrAccessedRequire:()=>Rte,isAnyImportOrReExport:()=>$M,isAnyImportOrRequireStatement:()=>Ote,isAnyImportSyntax:()=>u2,isAnySupportedFileExtension:()=>f0e,isApplicableVersionedTypesKey:()=>O4,isArgumentExpressionOfElementAccess:()=>xq,isArray:()=>gs,isArrayBindingElement:()=>fF,isArrayBindingOrAssignmentElement:()=>FM,isArrayBindingOrAssignmentPattern:()=>qB,isArrayBindingPattern:()=>ov,isArrayLiteralExpression:()=>Tu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>uv,isArrayTypeNode:()=>l4,isArrowFunction:()=>Fo,isAsExpression:()=>mI,isAssertClause:()=>bie,isAssertEntry:()=>N0e,isAssertionExpression:()=>gS,isAssertsKeyword:()=>uie,isAssignmentDeclaration:()=>XP,isAssignmentExpression:()=>Hl,isAssignmentOperator:()=>ry,isAssignmentPattern:()=>WP,isAssignmentTarget:()=>vb,isAsteriskToken:()=>o4,isAsyncFunction:()=>sA,isAsyncModifier:()=>LA,isAutoAccessorPropertyDeclaration:()=>Gp,isAwaitExpression:()=>Ab,isAwaitKeyword:()=>_J,isBigIntLiteral:()=>pI,isBinaryExpression:()=>vn,isBinaryLogicalOperator:()=>P6,isBinaryOperatorToken:()=>Hie,isBindableObjectDefinePropertyCall:()=>nk,isBindableStaticAccessExpression:()=>TS,isBindableStaticElementAccessExpression:()=>KF,isBindableStaticNameExpression:()=>ik,isBindingElement:()=>Da,isBindingElementOfBareOrAccessedRequire:()=>ire,isBindingName:()=>QT,isBindingOrAssignmentElement:()=>ite,isBindingOrAssignmentPattern:()=>RM,isBindingPattern:()=>Ls,isBlock:()=>Bs,isBlockLike:()=>pC,isBlockOrCatchScoped:()=>cz,isBlockScope:()=>mz,isBlockScopedContainerTopLevel:()=>Mte,isBooleanLiteral:()=>LP,isBreakOrContinueStatement:()=>RP,isBreakStatement:()=>P0e,isBuildCommand:()=>rce,isBuildInfoFile:()=>Hae,isBuilderProgram:()=>jV,isBundle:()=>xie,isCallChain:()=>qT,isCallExpression:()=>Ws,isCallExpressionTarget:()=>yq,isCallLikeExpression:()=>mS,isCallLikeOrFunctionLikeExpression:()=>$B,isCallOrNewExpression:()=>Om,isCallOrNewExpressionTarget:()=>vq,isCallSignatureDeclaration:()=>B2,isCallToHelper:()=>jA,isCaseBlock:()=>VA,isCaseClause:()=>vI,isCaseKeyword:()=>die,isCaseOrDefaultClause:()=>gF,isCatchClause:()=>GS,isCatchClauseVariableDeclaration:()=>Dne,isCatchClauseVariableDeclarationOrBindingElement:()=>lz,isCheckJsEnabledForFile:()=>CA,isCircularBuildOrder:()=>oC,isClassDeclaration:()=>hl,isClassElement:()=>cl,isClassExpression:()=>Zc,isClassInstanceProperty:()=>rte,isClassLike:()=>ni,isClassMemberModifier:()=>JB,isClassNamedEvaluationHelperBlock:()=>iC,isClassOrTypeElement:()=>pF,isClassStaticBlockDeclaration:()=>zc,isClassThisAssignmentBlock:()=>fE,isColonToken:()=>cie,isCommaExpression:()=>g4,isCommaListExpression:()=>JA,isCommaSequence:()=>KA,isCommaToken:()=>oie,isComment:()=>l5,isCommonJsExportPropertyAssignment:()=>FF,isCommonJsExportedExpression:()=>$te,isCompoundAssignment:()=>lE,isComputedNonLiteralName:()=>HM,isComputedPropertyName:()=>na,isConciseBody:()=>dF,isConditionalExpression:()=>vk,isConditionalTypeNode:()=>jS,isConstAssertion:()=>qG,isConstTypeReference:()=>Nd,isConstructSignatureDeclaration:()=>zA,isConstructorDeclaration:()=>yc,isConstructorTypeNode:()=>fI,isContextualKeyword:()=>t8,isContinueStatement:()=>D0e,isCustomPrologue:()=>ZM,isDebuggerStatement:()=>A0e,isDeclaration:()=>ql,isDeclarationBindingElement:()=>MM,isDeclarationFileName:()=>Kl,isDeclarationName:()=>Ig,isDeclarationNameOfEnumOrNamespace:()=>dG,isDeclarationReadonly:()=>KM,isDeclarationStatement:()=>fte,isDeclarationWithTypeParameterChildren:()=>hz,isDeclarationWithTypeParameters:()=>gz,isDecorator:()=>Il,isDecoratorTarget:()=>Dce,isDefaultClause:()=>qA,isDefaultImport:()=>sk,isDefaultModifier:()=>c7,isDefaultedExpandoInitializer:()=>sre,isDeleteExpression:()=>gie,isDeleteTarget:()=>Rz,isDeprecatedDeclaration:()=>D5,isDestructuringAssignment:()=>Yy,isDiskPathRoot:()=>yB,isDoStatement:()=>I0e,isDocumentRegistryEntry:()=>ER,isDotDotDotToken:()=>a7,isDottedName:()=>E6,isDynamicName:()=>n8,isEffectiveExternalModule:()=>Lw,isEffectiveStrictModeSourceFile:()=>_z,isElementAccessChain:()=>jB,isElementAccessExpression:()=>xo,isEmittedFileOfProgram:()=>toe,isEmptyArrayLiteral:()=>Wre,isEmptyBindingElement:()=>Oee,isEmptyBindingPattern:()=>Ree,isEmptyObjectLiteral:()=>lG,isEmptyStatement:()=>hJ,isEmptyStringLiteral:()=>xz,isEntityName:()=>xp,isEntityNameExpression:()=>mo,isEnumConst:()=>E0,isEnumDeclaration:()=>H0,isEnumMember:()=>oy,isEqualityOperatorKind:()=>S5,isEqualsGreaterThanToken:()=>lie,isExclamationToken:()=>c4,isExcludedFile:()=>kse,isExclusivelyTypeOnlyImportOrExport:()=>mV,isExpandoPropertyDeclaration:()=>M2,isExportAssignment:()=>Qo,isExportDeclaration:()=>tl,isExportModifier:()=>L2,isExportName:()=>T7,isExportNamespaceAsDefaultDeclaration:()=>DF,isExportOrDefaultModifier:()=>b4,isExportSpecifier:()=>Xu,isExportsIdentifier:()=>rk,isExportsOrModuleExportsOrAlias:()=>VS,isExpression:()=>ht,isExpressionNode:()=>wg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>Ece,isExpressionOfOptionalChainRoot:()=>oF,isExpressionStatement:()=>Ql,isExpressionWithTypeArguments:()=>sy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>g8,isExternalModule:()=>Pl,isExternalModuleAugmentation:()=>vS,isExternalModuleImportEqualsDeclaration:()=>M0,isExternalModuleIndicator:()=>LM,isExternalModuleNameRelative:()=>Ul,isExternalModuleReference:()=>ay,isExternalModuleSymbol:()=>a2,isExternalOrCommonJsModule:()=>xf,isFileLevelReservedGeneratedIdentifier:()=>NM,isFileLevelUniqueName:()=>wF,isFileProbablyExternalModule:()=>k4,isFirstDeclarationOfSymbolParameter:()=>Zq,isFixablePromiseHandler:()=>A$,isForInOrOfStatement:()=>KT,isForInStatement:()=>_7,isForInitializer:()=>E_,isForOfStatement:()=>p4,isForStatement:()=>$0,isFullSourceFile:()=>ph,isFunctionBlock:()=>bS,isFunctionBody:()=>QB,isFunctionDeclaration:()=>Gc,isFunctionExpression:()=>Ao,isFunctionExpressionOrArrowFunction:()=>Cb,isFunctionLike:()=>Fs,isFunctionLikeDeclaration:()=>yo,isFunctionLikeKind:()=>r2,isFunctionLikeOrClassStaticBlockDeclaration:()=>Mw,isFunctionOrConstructorTypeNode:()=>nte,isFunctionOrModuleBlock:()=>UB,isFunctionSymbol:()=>cre,isFunctionTypeNode:()=>Pg,isGeneratedIdentifier:()=>ec,isGeneratedPrivateIdentifier:()=>HT,isGetAccessor:()=>ah,isGetAccessorDeclaration:()=>B_,isGetOrSetAccessorDeclaration:()=>EM,isGlobalScopeAugmentation:()=>Cg,isGlobalSourceFile:()=>Qy,isGrammarError:()=>wte,isHeritageClause:()=>Af,isHoistedFunction:()=>RF,isHoistedVariableStatement:()=>OF,isIdentifier:()=>Be,isIdentifierANonContextualKeyword:()=>Wz,isIdentifierName:()=>gre,isIdentifierOrThisTypeNode:()=>Uie,isIdentifierPart:()=>Qh,isIdentifierStart:()=>Sg,isIdentifierText:()=>af,isIdentifierTypePredicate:()=>Kte,isIdentifierTypeReference:()=>kne,isIfStatement:()=>q0,isIgnoredFileFromWildCardWatching:()=>K4,isImplicitGlob:()=>DG,isImportAttribute:()=>Sie,isImportAttributeName:()=>tte,isImportAttributes:()=>Tk,isImportCall:()=>Up,isImportClause:()=>Ld,isImportDeclaration:()=>ac,isImportEqualsDeclaration:()=>Dl,isImportKeyword:()=>BA,isImportMeta:()=>zw,isImportOrExportSpecifier:()=>lb,isImportOrExportSpecifierName:()=>rle,isImportSpecifier:()=>gp,isImportTypeAssertionContainer:()=>E0e,isImportTypeNode:()=>Hm,isImportable:()=>y$,isInComment:()=>lv,isInCompoundLikeAssignment:()=>Mz,isInExpressionContext:()=>UF,isInJSDoc:()=>KP,isInJSFile:()=>dn,isInJSXText:()=>Lce,isInJsonFile:()=>qF,isInNonReferenceComment:()=>Uce,isInReferenceComment:()=>Jce,isInRightSideOfInternalImportEqualsDeclaration:()=>Xj,isInString:()=>cC,isInTemplateString:()=>Eq,isInTopLevelContext:()=>zF,isInTypeQuery:()=>v2,isIncrementalBuildInfo:()=>rR,isIncrementalBundleEmitBuildInfo:()=>Toe,isIncrementalCompilation:()=>NS,isIndexSignatureDeclaration:()=>Pb,isIndexedAccessTypeNode:()=>LS,isInferTypeNode:()=>gk,isInfinityOrNaNString:()=>AA,isInitializedProperty:()=>B4,isInitializedVariable:()=>F6,isInsideJsxElement:()=>o5,isInsideJsxElementOrAttribute:()=>jce,isInsideNodeModules:()=>wR,isInsideTemplateLiteral:()=>gR,isInstanceOfExpression:()=>h8,isInstantiatedModule:()=>NU,isInterfaceDeclaration:()=>uu,isInternalDeclaration:()=>yte,isInternalModuleImportEqualsDeclaration:()=>tk,isInternalName:()=>MJ,isIntersectionTypeNode:()=>J2,isIntrinsicJsxName:()=>Yw,isIterationStatement:()=>fb,isJSDoc:()=>um,isJSDocAllType:()=>Iie,isJSDocAugmentsTag:()=>H2,isJSDocAuthorTag:()=>F0e,isJSDocCallbackTag:()=>SJ,isJSDocClassTag:()=>Pie,isJSDocCommentContainingNode:()=>hF,isJSDocConstructSignature:()=>g2,isJSDocDeprecatedTag:()=>wJ,isJSDocEnumTag:()=>_4,isJSDocFunctionType:()=>SI,isJSDocImplementsTag:()=>v7,isJSDocImportTag:()=>Zm,isJSDocIndexSignature:()=>HF,isJSDocLikeText:()=>GJ,isJSDocLink:()=>Cie,isJSDocLinkCode:()=>wie,isJSDocLinkLike:()=>s2,isJSDocLinkPlain:()=>R0e,isJSDocMemberName:()=>X0,isJSDocNameReference:()=>$A,isJSDocNamepathType:()=>O0e,isJSDocNamespaceBody:()=>Dbe,isJSDocNode:()=>Rw,isJSDocNonNullableType:()=>m7,isJSDocNullableType:()=>bI,isJSDocOptionalParameter:()=>q8,isJSDocOptionalType:()=>bJ,isJSDocOverloadTag:()=>TI,isJSDocOverrideTag:()=>h7,isJSDocParameterTag:()=>c_,isJSDocPrivateTag:()=>kJ,isJSDocPropertyLikeTag:()=>OP,isJSDocPropertyTag:()=>Aie,isJSDocProtectedTag:()=>xJ,isJSDocPublicTag:()=>TJ,isJSDocReadonlyTag:()=>CJ,isJSDocReturnTag:()=>y7,isJSDocSatisfiesExpression:()=>JG,isJSDocSatisfiesTag:()=>b7,isJSDocSeeTag:()=>j0e,isJSDocSignature:()=>cv,isJSDocTag:()=>Ow,isJSDocTemplateTag:()=>hd,isJSDocThisTag:()=>IJ,isJSDocThrowsTag:()=>W0e,isJSDocTypeAlias:()=>fd,isJSDocTypeAssertion:()=>JS,isJSDocTypeExpression:()=>K0,isJSDocTypeLiteral:()=>xk,isJSDocTypeTag:()=>HA,isJSDocTypedefTag:()=>Ck,isJSDocUnknownTag:()=>L0e,isJSDocUnknownType:()=>Die,isJSDocVariadicType:()=>g7,isJSXTagName:()=>Uw,isJsonEqual:()=>G8,isJsonSourceFile:()=>M_,isJsxAttribute:()=>Ym,isJsxAttributeLike:()=>mF,isJsxAttributeName:()=>Ene,isJsxAttributes:()=>zS,isJsxCallLike:()=>gte,isJsxChild:()=>zM,isJsxClosingElement:()=>BS,isJsxClosingFragment:()=>kie,isJsxElement:()=>Xm,isJsxExpression:()=>yI,isJsxFragment:()=>Q0,isJsxNamespacedName:()=>lm,isJsxOpeningElement:()=>cm,isJsxOpeningFragment:()=>Wd,isJsxOpeningLikeElement:()=>Qu,isJsxOpeningLikeElementTagName:()=>Pce,isJsxSelfClosingElement:()=>kk,isJsxSpreadAttribute:()=>$2,isJsxTagNameExpression:()=>BP,isJsxText:()=>F2,isJumpStatementTarget:()=>fR,isKeyword:()=>qp,isKeywordOrPunctuation:()=>e8,isKnownSymbol:()=>oA,isLabelName:()=>Tq,isLabelOfLabeledStatement:()=>Sq,isLabeledStatement:()=>Eb,isLateVisibilityPaintedStatement:()=>AF,isLeftHandSideExpression:()=>Jp,isLet:()=>MF,isLineBreak:()=>qu,isLiteralComputedPropertyDeclarationName:()=>b6,isLiteralExpression:()=>$T,isLiteralExpressionOfObject:()=>zB,isLiteralImportTypeNode:()=>Yh,isLiteralKind:()=>FP,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>e5,isLiteralTypeLiteral:()=>ote,isLiteralTypeNode:()=>av,isLocalName:()=>cy,isLogicalOperator:()=>Fre,isLogicalOrCoalescingAssignmentExpression:()=>sG,isLogicalOrCoalescingAssignmentOperator:()=>fA,isLogicalOrCoalescingBinaryExpression:()=>A6,isLogicalOrCoalescingBinaryOperator:()=>m8,isMappedTypeNode:()=>yk,isMemberName:()=>sh,isMetaProperty:()=>bk,isMethodDeclaration:()=>hc,isMethodOrAccessor:()=>n2,isMethodSignature:()=>jd,isMinusToken:()=>fJ,isMissingDeclaration:()=>M0e,isMissingPackageJsonInfo:()=>Rse,isModifier:()=>la,isModifierKind:()=>ub,isModifierLike:()=>tc,isModuleAugmentationExternal:()=>pz,isModuleBlock:()=>Qm,isModuleBody:()=>lte,isModuleDeclaration:()=>el,isModuleExportName:()=>d7,isModuleExportsAccessExpression:()=>fh,isModuleIdentifier:()=>Iz,isModuleName:()=>$ie,isModuleOrEnumDeclaration:()=>WM,isModuleReference:()=>dte,isModuleSpecifierLike:()=>m5,isModuleWithStringLiteralName:()=>PF,isNameOfFunctionDeclaration:()=>wq,isNameOfModuleDeclaration:()=>Cq,isNamedDeclaration:()=>Vl,isNamedEvaluation:()=>Cf,isNamedEvaluationSource:()=>Bz,isNamedExportBindings:()=>WB,isNamedExports:()=>G_,isNamedImportBindings:()=>KB,isNamedImports:()=>Km,isNamedImportsOrExports:()=>k8,isNamedTupleMember:()=>_I,isNamespaceBody:()=>Ibe,isNamespaceExport:()=>Ag,isNamespaceExportDeclaration:()=>f4,isNamespaceImport:()=>bh,isNamespaceReexportDeclaration:()=>nre,isNewExpression:()=>WS,isNewExpressionTarget:()=>CE,isNewScopeNode:()=>Lne,isNoSubstitutionTemplateLiteral:()=>mk,isNodeArray:()=>_S,isNodeArrayMultiLine:()=>Vre,isNodeDescendantOf:()=>xS,isNodeKind:()=>lF,isNodeLikeSystem:()=>$W,isNodeModulesDirectory:()=>QO,isNodeWithPossibleHoistedDeclaration:()=>dre,isNonContextualKeyword:()=>Lz,isNonGlobalAmbientModule:()=>uz,isNonNullAccess:()=>Ane,isNonNullChain:()=>cF,isNonNullExpression:()=>V2,isNonStaticMethodOrAccessorWithPrivateName:()=>_ae,isNotEmittedStatement:()=>Tie,isNullishCoalesce:()=>LB,isNumber:()=>Yv,isNumericLiteral:()=>Hp,isNumericLiteralName:()=>yh,isObjectBindingElementWithoutPropertyName:()=>bR,isObjectBindingOrAssignmentElement:()=>OM,isObjectBindingOrAssignmentPattern:()=>VB,isObjectBindingPattern:()=>o_,isObjectLiteralElement:()=>XB,isObjectLiteralElementLike:()=>Xh,isObjectLiteralExpression:()=>Sa,isObjectLiteralMethod:()=>pd,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>jF,isObjectTypeDeclaration:()=>x2,isOmittedExpression:()=>Fl,isOptionalChain:()=>$u,isOptionalChainRoot:()=>NP,isOptionalDeclaration:()=>E2,isOptionalJSDocPropertyLikeTag:()=>X6,isOptionalTypeNode:()=>l7,isOuterExpression:()=>k7,isOutermostOptionalChain:()=>MP,isOverrideModifier:()=>_ie,isPackageJsonInfo:()=>H7,isPackedArrayLiteral:()=>zG,isParameter:()=>Gi,isParameterPropertyDeclaration:()=>Tf,isParameterPropertyModifier:()=>jP,isParenthesizedExpression:()=>Pp,isParenthesizedTypeNode:()=>hk,isParseTreeNode:()=>EP,isPartOfParameterDeclaration:()=>L0,isPartOfTypeNode:()=>Wm,isPartOfTypeOnlyImportOrExportDeclaration:()=>ete,isPartOfTypeQuery:()=>VF,isPartiallyEmittedExpression:()=>hie,isPatternMatch:()=>OO,isPinnedComment:()=>IF,isPlainJsFile:()=>GP,isPlusToken:()=>pJ,isPossiblyTypeArgumentPosition:()=>mR,isPostfixUnaryExpression:()=>gJ,isPrefixUnaryExpression:()=>V0,isPrimitiveLiteralValue:()=>Q8,isPrivateIdentifier:()=>zi,isPrivateIdentifierClassElementDeclaration:()=>Hu,isPrivateIdentifierPropertyAccessExpression:()=>Nw,isPrivateIdentifierSymbol:()=>vre,isProgramUptoDate:()=>vV,isPrologueDirective:()=>Lm,isPropertyAccessChain:()=>aF,isPropertyAccessEntityNameExpression:()=>N6,isPropertyAccessExpression:()=>Ln,isPropertyAccessOrQualifiedName:()=>jM,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>ste,isPropertyAssignment:()=>yl,isPropertyDeclaration:()=>hs,isPropertyName:()=>ol,isPropertyNameLiteral:()=>Bm,isPropertySignature:()=>mp,isPrototypeAccess:()=>Tb,isPrototypePropertyAssignment:()=>_6,isPunctuation:()=>jz,isPushOrUnshiftIdentifier:()=>zz,isQualifiedName:()=>Ip,isQuestionDotToken:()=>o7,isQuestionOrExclamationToken:()=>Jie,isQuestionOrPlusOrMinusToken:()=>qie,isQuestionToken:()=>Db,isReadonlyKeyword:()=>pie,isReadonlyKeywordOrPlusOrMinusToken:()=>Vie,isRecognizedTripleSlashComment:()=>sz,isReferenceFileLocation:()=>WI,isReferencedFile:()=>s1,isRegularExpressionLiteral:()=>lJ,isRequireCall:()=>Vp,isRequireVariableStatement:()=>o6,isRestParameter:()=>kg,isRestTypeNode:()=>u7,isReturnStatement:()=>Qf,isReturnStatementWithFixablePromiseHandler:()=>F5,isRightSideOfAccessExpression:()=>cG,isRightSideOfInstanceofExpression:()=>Lre,isRightSideOfPropertyAccess:()=>UI,isRightSideOfQualifiedName:()=>Ace,isRightSideOfQualifiedNameOrPropertyAccess:()=>_A,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>jre,isRootedDiskPath:()=>Sf,isSameEntityName:()=>Vw,isSatisfiesExpression:()=>gI,isSemicolonClassElement:()=>yie,isSetAccessor:()=>Fm,isSetAccessorDeclaration:()=>uf,isShiftOperatorOrHigher:()=>WJ,isShorthandAmbientModuleSymbol:()=>qM,isShorthandPropertyAssignment:()=>Fu,isSideEffectImport:()=>HG,isSignedNumericLiteral:()=>r8,isSimpleCopiableExpression:()=>qS,isSimpleInlineableExpression:()=>eg,isSimpleParameterList:()=>z4,isSingleOrDoubleQuote:()=>c6,isSolutionConfig:()=>cU,isSourceElement:()=>Mne,isSourceFile:()=>Li,isSourceFileFromLibrary:()=>eD,isSourceFileJS:()=>Cp,isSourceFileNotJson:()=>$F,isSourceMapping:()=>uae,isSpecialPropertyDeclaration:()=>ore,isSpreadAssignment:()=>Sh,isSpreadElement:()=>z_,isStatement:()=>Ei,isStatementButNotDeclaration:()=>BM,isStatementOrBlock:()=>_te,isStatementWithLocals:()=>Cte,isStatic:()=>Ks,isStaticModifier:()=>W2,isString:()=>Is,isStringANonContextualKeyword:()=>y2,isStringAndEmptyAnonymousObjectIntersection:()=>Gce,isStringDoubleQuoted:()=>QF,isStringLiteral:()=>ya,isStringLiteralLike:()=>Ha,isStringLiteralOrJsxExpression:()=>mte,isStringLiteralOrTemplate:()=>ale,isStringOrNumericLiteralLike:()=>s_,isStringOrRegularExpressionOrTemplateLiteral:()=>Rq,isStringTextContainingNode:()=>GB,isSuperCall:()=>ek,isSuperKeyword:()=>WA,isSuperProperty:()=>of,isSupportedSourceFileName:()=>MG,isSwitchStatement:()=>UA,isSyntaxList:()=>kI,isSyntheticExpression:()=>w0e,isSyntheticReference:()=>q2,isTagName:()=>kq,isTaggedTemplateExpression:()=>U0,isTaggedTemplateTag:()=>Ice,isTemplateExpression:()=>f7,isTemplateHead:()=>j2,isTemplateLiteral:()=>i2,isTemplateLiteralKind:()=>cb,isTemplateLiteralToken:()=>Yee,isTemplateLiteralTypeNode:()=>mie,isTemplateLiteralTypeSpan:()=>mJ,isTemplateMiddle:()=>uJ,isTemplateMiddleOrTemplateTail:()=>uF,isTemplateSpan:()=>hI,isTemplateTail:()=>s7,isTextWhiteSpaceLike:()=>Hce,isThis:()=>VI,isThisContainerOrFunctionBlock:()=>ere,isThisIdentifier:()=>Sb,isThisInTypeQuery:()=>DS,isThisInitializedDeclaration:()=>GF,isThisInitializedObjectBindingExpression:()=>rre,isThisProperty:()=>r6,isThisTypeNode:()=>GA,isThisTypeParameter:()=>EA,isThisTypePredicate:()=>Xte,isThrowStatement:()=>vJ,isToken:()=>t2,isTokenKind:()=>BB,isTraceEnabled:()=>Mb,isTransientSymbol:()=>oh,isTrivia:()=>Kw,isTryStatement:()=>Sk,isTupleTypeNode:()=>G2,isTypeAlias:()=>g6,isTypeAliasDeclaration:()=>gd,isTypeAssertionExpression:()=>p7,isTypeDeclaration:()=>A2,isTypeElement:()=>dS,isTypeKeyword:()=>PE,isTypeKeywordTokenOrIdentifier:()=>f5,isTypeLiteralNode:()=>Dp,isTypeNode:()=>yi,isTypeNodeKind:()=>yG,isTypeOfExpression:()=>dI,isTypeOnlyExportDeclaration:()=>Zee,isTypeOnlyImportDeclaration:()=>Ew,isTypeOnlyImportOrExportDeclaration:()=>$y,isTypeOperatorNode:()=>J0,isTypeParameterDeclaration:()=>Ho,isTypePredicateNode:()=>z2,isTypeQueryNode:()=>FS,isTypeReferenceNode:()=>Pf,isTypeReferenceType:()=>vF,isTypeUsableAsPropertyName:()=>L_,isUMDExportSymbol:()=>T8,isUnaryExpression:()=>HB,isUnaryExpressionWithWrite:()=>ate,isUnicodeIdentifierStart:()=>XO,isUnionTypeNode:()=>sv,isUrl:()=>_ee,isValidBigIntString:()=>J8,isValidESSymbolDeclaration:()=>Hte,isValidTypeOnlyAliasUseSite:()=>B0,isValueSignatureDeclaration:()=>ak,isVarAwaitUsing:()=>XM,isVarConst:()=>Bw,isVarConstLike:()=>Ute,isVarUsing:()=>YM,isVariableDeclaration:()=>li,isVariableDeclarationInVariableStatement:()=>qP,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>SS,isVariableDeclarationInitializedToRequire:()=>a6,isVariableDeclarationList:()=>lu,isVariableLike:()=>VP,isVariableStatement:()=>Qc,isVoidExpression:()=>U2,isWatchSet:()=>mG,isWhileStatement:()=>yJ,isWhiteSpaceLike:()=>rh,isWhiteSpaceSingleLine:()=>Rm,isWithStatement:()=>vie,isWriteAccess:()=>k2,isWriteOnlyAccess:()=>S8,isYieldExpression:()=>u4,jsxModeNeedsExplicitImport:()=>m$,keywordPart:()=>Rf,last:()=>ka,lastOrUndefined:()=>Wo,length:()=>Dr,libMap:()=>$J,libs:()=>A7,lineBreakPart:()=>XI,loadModuleFromGlobalCache:()=>qse,loadWithModeAwareCache:()=>Y4,makeIdentifierFromModuleName:()=>Nte,makeImport:()=>Bb,makeStringLiteral:()=>AE,mangleScopedPackageName:()=>RI,map:()=>kr,mapAllOrFail:()=>wW,mapDefined:()=>Ji,mapDefinedIterator:()=>Hv,mapEntries:()=>RY,mapIterator:()=>lP,mapOneOrMany:()=>p$,mapToDisplayParts:()=>zb,matchFiles:()=>AG,matchPatternOrExact:()=>OG,matchedText:()=>HY,matchesExclude:()=>J7,matchesExcludeWorker:()=>U7,maxBy:()=>WW,maybeBind:()=>Js,maybeSetLocalizedDiagnosticMessages:()=>ene,memoize:()=>up,memoizeOne:()=>Mm,min:()=>BW,minAndMax:()=>bne,missingFileModifiedTime:()=>bf,modifierToFlag:()=>S2,modifiersToFlags:()=>Jm,moduleExportNameIsDefault:()=>xg,moduleExportNameTextEscaped:()=>yS,moduleExportNameTextUnescaped:()=>gb,moduleOptionDeclaration:()=>sse,moduleResolutionIsEqualTo:()=>kte,moduleResolutionNameAndModeGetter:()=>bj,moduleResolutionOptionDeclarations:()=>QJ,moduleResolutionSupportsPackageJsonExportsAndImports:()=>sI,moduleResolutionUsesNodeModules:()=>_5,moduleSpecifierToValidIdentifier:()=>DR,moduleSpecifiers:()=>uy,moduleSupportsImportAttributes:()=>one,moduleSymbolToValidIdentifier:()=>IR,moveEmitHelpers:()=>Yne,moveRangeEnd:()=>v8,moveRangePastDecorators:()=>ny,moveRangePastModifiers:()=>Um,moveRangePos:()=>W0,moveSyntheticComments:()=>Qne,mutateMap:()=>yA,mutateMapSkippingNewValues:()=>dh,needsParentheses:()=>v5,needsScopeMarker:()=>_F,newCaseClauseTracker:()=>E5,newPrivateEnvironment:()=>mae,noEmitNotification:()=>V4,noEmitSubstitution:()=>dE,noTransformers:()=>qae,noTruncationMaximumTruncationLength:()=>ez,nodeCanBeDecorated:()=>i6,nodeCoreModules:()=>lI,nodeHasName:()=>DM,nodeIsDecorated:()=>Jw,nodeIsMissing:()=>xc,nodeIsPresent:()=>ud,nodeIsSynthesized:()=>ko,nodeModuleNameResolver:()=>Wse,nodeModulesPathPart:()=>Th,nodeNextJsonConfigResolver:()=>Bse,nodeOrChildIsDecorated:()=>s6,nodeOverlapsWithStartEnd:()=>t5,nodePosToString:()=>Ebe,nodeSeenTracker:()=>HI,nodeStartsNewLexicalEnvironment:()=>Gz,noop:()=>no,noopFileWatcher:()=>GI,normalizePath:()=>ra,normalizeSlashes:()=>ou,normalizeSpans:()=>PB,not:()=>jO,notImplemented:()=>ea,notImplementedResolver:()=>Xae,nullNodeConverters:()=>qne,nullParenthesizerRules:()=>Une,nullTransformationContext:()=>$4,objectAllocator:()=>bu,operatorPart:()=>NE,optionDeclarations:()=>Bd,optionMapToObject:()=>j7,optionsAffectingProgramStructure:()=>lse,optionsForBuild:()=>XJ,optionsForWatch:()=>Z2,optionsHaveChanges:()=>o2,or:()=>vf,orderedRemoveItem:()=>_P,orderedRemoveItemAt:()=>rb,packageIdToPackageName:()=>CF,packageIdToString:()=>A0,parameterIsThisKeyword:()=>bb,parameterNamePart:()=>Kce,parseBaseNodeFactory:()=>Zie,parseBigInt:()=>Tne,parseBuildCommand:()=>hse,parseCommandLine:()=>mse,parseCommandLineWorker:()=>YJ,parseConfigFileTextToJson:()=>eU,parseConfigFileWithSystem:()=>Foe,parseConfigHostFromCompilerHostLike:()=>wj,parseCustomTypeOption:()=>R7,parseIsolatedEntityName:()=>Y2,parseIsolatedJSDocComment:()=>tse,parseJSDocTypeExpressionForTests:()=>l1e,parseJsonConfigFileContent:()=>W1e,parseJsonSourceFileConfigFileContent:()=>A4,parseJsonText:()=>x4,parseListTypeOption:()=>_se,parseNodeFactory:()=>Z0,parseNodeModuleFromPath:()=>R4,parsePackageName:()=>X7,parsePseudoBigInt:()=>IA,parseValidBigInt:()=>WG,pasteEdits:()=>dQ,patchWriteFileEnsuringDirectory:()=>fee,pathContainsNodeModules:()=>Ob,pathIsAbsolute:()=>TP,pathIsBareSpecifier:()=>vB,pathIsRelative:()=>$f,patternText:()=>$Y,performIncrementalCompilation:()=>joe,performance:()=>rZ,positionBelongsToNode:()=>Iq,positionIsASICandidate:()=>T5,positionIsSynthesized:()=>am,positionsAreOnSameLine:()=>F_,preProcessFile:()=>Hxe,probablyUsesSemicolons:()=>CR,processCommentPragmas:()=>VJ,processPragmasIntoFields:()=>qJ,processTaggedTemplateExpression:()=>$U,programContainsEsModules:()=>qce,programContainsModules:()=>Vce,projectReferenceIsEqualTo:()=>tz,propertyNamePart:()=>Xce,pseudoBigIntToString:()=>MS,punctuationPart:()=>ep,pushIfUnique:()=>D_,quote:()=>OE,quotePreferenceFromString:()=>Uq,rangeContainsPosition:()=>qI,rangeContainsPositionExclusive:()=>_R,rangeContainsRange:()=>$p,rangeContainsRangeExclusive:()=>Nce,rangeContainsStartEnd:()=>dR,rangeEndIsOnSameLineAsRangeStart:()=>O6,rangeEndPositionsAreOnSameLine:()=>Jre,rangeEquals:()=>EW,rangeIsOnSingleLine:()=>uk,rangeOfNode:()=>jG,rangeOfTypeParameters:()=>LG,rangeOverlapsWithStartEnd:()=>wE,rangeStartIsOnSameLineAsRangeEnd:()=>Ure,rangeStartPositionsAreOnSameLine:()=>b8,readBuilderProgram:()=>jj,readConfigFile:()=>D4,readJson:()=>tI,readJsonConfigFile:()=>yse,readJsonOrUndefined:()=>uG,reduceEachLeadingCommentRange:()=>See,reduceEachTrailingCommentRange:()=>Tee,reduceLeft:()=>lp,reduceLeftIterator:()=>hw,reducePathComponents:()=>Yx,refactor:()=>_C,regExpEscape:()=>a0e,regularExpressionFlagToCharacterCode:()=>sbe,relativeComplement:()=>OY,removeAllComments:()=>n4,removeEmitHelper:()=>T0e,removeExtension:()=>$6,removeFileExtension:()=>dp,removeIgnoredPath:()=>Aj,removeMinAndVersionNumbers:()=>JW,removePrefix:()=>dP,removeSuffix:()=>Sw,removeTrailingDirectorySeparator:()=>Vy,repeatString:()=>yR,replaceElement:()=>RW,replaceFirstStar:()=>fk,resolutionExtensionIsTSOrJson:()=>kA,resolveConfigFileProjectName:()=>XV,resolveJSModule:()=>Fse,resolveLibrary:()=>K7,resolveModuleName:()=>Pk,resolveModuleNameFromCache:()=>mSe,resolvePackageNameToPackageJson:()=>fU,resolvePath:()=>ib,resolveProjectReferencePath:()=>sC,resolveTripleslashReference:()=>uV,resolveTypeReferenceDirective:()=>Nse,resolvingEmptyArray:()=>ZB,returnFalse:()=>$h,returnNoopFileWatcher:()=>TE,returnTrue:()=>cS,returnUndefined:()=>lS,returnsPromise:()=>P$,rewriteModuleSpecifier:()=>rC,sameFlatMap:()=>NY,sameMap:()=>fl,sameMapping:()=>sTe,scanTokenAtPosition:()=>Jte,scanner:()=>pu,semanticDiagnosticsOptionDeclarations:()=>ase,serializeCompilerOptions:()=>sU,server:()=>n6e,servicesVersion:()=>jCe,setCommentRange:()=>gl,setConfigFileInOptions:()=>aU,setConstantValue:()=>Xne,setEmitFlags:()=>yn,setGetSourceFileAsHashVersioned:()=>Fj,setIdentifierAutoGenerate:()=>a4,setIdentifierGeneratedImportReference:()=>tie,setIdentifierTypeArguments:()=>iv,setInternalEmitFlags:()=>i4,setLocalizedDiagnosticMessages:()=>Zre,setNodeChildren:()=>Eie,setNodeFlags:()=>Cne,setObjectAllocator:()=>Yre,setOriginalNode:()=>Rn,setParent:()=>Ka,setParentRecursive:()=>z0,setPrivateIdentifier:()=>Ek,setSnippetElement:()=>oJ,setSourceMapRange:()=>Ia,setStackTraceLimit:()=>Gve,setStartsOnNewLine:()=>t7,setSyntheticLeadingComments:()=>G0,setSyntheticTrailingComments:()=>R2,setSys:()=>Hve,setSysLog:()=>lee,setTextRange:()=>mt,setTextRangeEnd:()=>cI,setTextRangePos:()=>DA,setTextRangePosEnd:()=>om,setTextRangePosWidth:()=>BG,setTokenSourceMapRange:()=>Hne,setTypeNode:()=>Zne,setUILocale:()=>UY,setValueDeclaration:()=>ZP,shouldAllowImportingTsExtension:()=>OI,shouldPreserveConstEnums:()=>kb,shouldRewriteModuleSpecifier:()=>m6,shouldUseUriStyleNodeCoreModules:()=>P5,showModuleSpecifier:()=>Qre,signatureHasRestParameter:()=>Zu,signatureToDisplayParts:()=>t$,single:()=>MW,singleElementArray:()=>Qx,singleIterator:()=>MY,singleOrMany:()=>vg,singleOrUndefined:()=>eh,skipAlias:()=>vu,skipConstraint:()=>zq,skipOuterExpressions:()=>Nc,skipParentheses:()=>Qa,skipPartiallyEmittedExpressions:()=>Md,skipTrivia:()=>ha,skipTypeChecking:()=>oI,skipTypeCheckingIgnoringNoCheck:()=>Sne,skipTypeParentheses:()=>tA,skipWhile:()=>KY,sliceAfter:()=>FG,some:()=>_t,sortAndDeduplicate:()=>fP,sortAndDeduplicateDiagnostics:()=>Dw,sourceFileAffectingCompilerOptions:()=>KJ,sourceFileMayBeEmitted:()=>wS,sourceMapCommentRegExp:()=>OU,sourceMapCommentRegExpDontCareLineStart:()=>oae,spacePart:()=>Ic,spanMap:()=>IW,startEndContainsRange:()=>_G,startEndOverlapsWithStartEnd:()=>r5,startOnNewLine:()=>Yu,startTracing:()=>aZ,startsWith:()=>Zi,startsWithDirectory:()=>TB,startsWithUnderscore:()=>d$,startsWithUseStrict:()=>Lie,stringContainsAt:()=>_le,stringToToken:()=>JT,stripQuotes:()=>_d,supportedDeclarationExtensions:()=>W8,supportedJSExtensionsFlat:()=>aI,supportedLocaleDirectories:()=>jee,supportedTSExtensionsFlat:()=>EG,supportedTSImplementationExtensions:()=>U6,suppressLeadingAndTrailingTrivia:()=>Df,suppressLeadingTrivia:()=>tJ,suppressTrailingTrivia:()=>Bne,symbolEscapedNameNoDefault:()=>d5,symbolName:()=>kc,symbolNameNoDefault:()=>qq,symbolToDisplayParts:()=>ME,sys:()=>Nl,sysLog:()=>gM,tagNamesAreEquivalent:()=>t1,takeWhile:()=>qW,targetOptionDeclaration:()=>HJ,targetToLibMap:()=>kee,testFormatSettings:()=>gxe,textChangeRangeIsUnchanged:()=>Nee,textChangeRangeNewSpan:()=>AP,textChanges:()=>gn,textOrKeywordPart:()=>e$,textPart:()=>f_,textRangeContainsPositionInclusive:()=>xM,textRangeContainsTextSpan:()=>wee,textRangeIntersectsWithTextSpan:()=>Aee,textSpanContainsPosition:()=>IB,textSpanContainsTextRange:()=>DB,textSpanContainsTextSpan:()=>Cee,textSpanEnd:()=>mc,textSpanIntersection:()=>Eee,textSpanIntersectsWith:()=>CM,textSpanIntersectsWithPosition:()=>Pee,textSpanIntersectsWithTextSpan:()=>Dee,textSpanIsEmpty:()=>xee,textSpanOverlap:()=>Iee,textSpanOverlapsWith:()=>_be,textSpansEqual:()=>KI,textToKeywordObj:()=>KO,timestamp:()=>bo,toArray:()=>$x,toBuilderFileEmit:()=>Coe,toBuilderStateFileInfoForMultiEmit:()=>xoe,toEditorSettings:()=>FR,toFileNameLowerCase:()=>Zv,toPath:()=>So,toProgramEmitPending:()=>woe,toSorted:()=>yf,tokenIsIdentifierOrKeyword:()=>zp,tokenIsIdentifierOrKeywordOrGreaterThan:()=>mee,tokenToString:()=>ta,trace:()=>ls,tracing:()=>mn,tracingEnabled:()=>mM,transferSourceFileChildren:()=>Nie,transform:()=>$Ce,transformClassFields:()=>Cae,transformDeclarations:()=>XU,transformECMAScriptModule:()=>KU,transformES2015:()=>Wae,transformES2016:()=>Lae,transformES2017:()=>Pae,transformES2018:()=>Aae,transformES2019:()=>Eae,transformES2020:()=>Nae,transformES2021:()=>Mae,transformESDecorators:()=>Dae,transformESNext:()=>Rae,transformGenerators:()=>Bae,transformImpliedNodeFormatDependentModule:()=>Gae,transformJsx:()=>jae,transformLegacyDecorators:()=>Iae,transformModule:()=>QU,transformNamedEvaluation:()=>Ef,transformNodes:()=>q4,transformSystemModule:()=>zae,transformTypeScript:()=>xae,transpile:()=>n2e,transpileDeclaration:()=>t2e,transpileModule:()=>Fle,transpileOptionValueCompilerOptions:()=>use,tryAddToSet:()=>Uy,tryAndIgnoreErrors:()=>C5,tryCast:()=>Hn,tryDirectoryExists:()=>x5,tryExtractTSExtension:()=>y8,tryFileExists:()=>jE,tryGetClassExtendingExpressionWithTypeArguments:()=>aG,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>oG,tryGetDirectories:()=>k5,tryGetExtensionFromPath:()=>hh,tryGetImportFromModuleSpecifier:()=>d6,tryGetJSDocSatisfiesTypeNode:()=>$8,tryGetModuleNameFromFile:()=>y4,tryGetModuleSpecifierFromDeclaration:()=>_2,tryGetNativePerformanceHooks:()=>tZ,tryGetPropertyAccessOrIdentifierToString:()=>M6,tryGetPropertyNameOfBindingOrAssignmentElement:()=>C7,tryGetSourceMappingURL:()=>cae,tryGetTextOfPropertyName:()=>UP,tryParseJson:()=>R6,tryParsePattern:()=>P2,tryParsePatterns:()=>H6,tryParseRawSourceMap:()=>lae,tryReadDirectory:()=>o$,tryReadFile:()=>ZA,tryRemoveDirectoryPrefix:()=>IG,tryRemoveExtension:()=>vne,tryRemovePrefix:()=>VW,tryRemoveSuffix:()=>qY,tscBuildOption:()=>Ik,typeAcquisitionDeclarations:()=>N7,typeAliasNamePart:()=>Yce,typeDirectiveIsEqualTo:()=>xte,typeKeywords:()=>Bq,typeParameterNamePart:()=>Zce,typeToDisplayParts:()=>TR,unchangedPollThresholds:()=>JO,unchangedTextChangeRange:()=>eF,unescapeLeadingUnderscores:()=>Ai,unmangleScopedPackageName:()=>F4,unorderedRemoveItem:()=>Hx,unprefixedNodeCoreModules:()=>jne,unreachableCodeIsError:()=>sne,unsetNodeChildren:()=>PJ,unusedLabelIsError:()=>ane,unwrapInnermostStatementOfLabel:()=>Tz,unwrapParenthesizedExpression:()=>One,updateErrorForNoInputFiles:()=>G7,updateLanguageServiceSourceFile:()=>rH,updateMissingFilePathsWatch:()=>oV,updateResolutionField:()=>AI,updateSharedExtendedConfigFileWatcher:()=>gj,updateSourceFile:()=>JJ,updateWatchingWildcardDirectories:()=>Q4,usingSingleLineStringWriter:()=>Fw,utf16EncodeAsString:()=>PP,validateLocaleAndSetLanguage:()=>EB,version:()=>Vi,versionMajorMinor:()=>Yi,visitArray:()=>oE,visitCommaListElements:()=>W4,visitEachChild:()=>Pr,visitFunctionBody:()=>p_,visitIterationBody:()=>Ap,visitLexicalEnvironment:()=>RU,visitNode:()=>rt,visitNodes:()=>Br,visitParameterList:()=>wc,walkUpBindingElementsAndPatterns:()=>UT,walkUpOuterExpressions:()=>Wie,walkUpParenthesizedExpressions:()=>Od,walkUpParenthesizedTypes:()=>v6,walkUpParenthesizedTypesAndGetParentAndChild:()=>mre,whitespaceOrMapCommentRegExp:()=>FU,writeCommentRange:()=>eI,writeFile:()=>f8,writeFileEnsuringDirectories:()=>Zz,zipWith:()=>LT});var Jit=!0,e6e;function Uit(){return e6e??(e6e=new Zd(Vi))}function t6e(e,t,n,i,s){let o=t?"DeprecationError: ":"DeprecationWarning: ";return o+=`'${e}' `,o+=i?`has been deprecated since v${i}`:"is deprecated",o+=t?" and can no longer be used.":n?` and will no longer be usable after v${n}.`:".",o+=s?` ${mh(s,[e])}`:"",o}function Vit(e,t,n,i){let s=t6e(e,!0,t,n,i);return()=>{throw new TypeError(s)}}function qit(e,t,n,i){let s=!1;return()=>{Jit&&!s&&(w.log.warn(t6e(e,!1,t,n,i)),s=!0)}}function $it(e,t={}){let n=typeof t.typeScriptVersion=="string"?new Zd(t.typeScriptVersion):t.typeScriptVersion??Uit(),i=typeof t.errorAfter=="string"?new Zd(t.errorAfter):t.errorAfter,s=typeof t.warnAfter=="string"?new Zd(t.warnAfter):t.warnAfter,o=typeof t.since=="string"?new Zd(t.since):t.since??s,c=t.error||i&&n.compareTo(i)>=0,p=!s||n.compareTo(s)>=0;return c?Vit(e,i,o,t.message):p?qit(e,i,o,t.message):no}function Hit(e,t){return function(){return e(),t.apply(this,arguments)}}function Qit(e,t){let n=$it(t?.name??w.getFunctionName(e),t);return Hit(n,e)}function mQ(e,t,n,i){if(Object.defineProperty(o,"name",{...Object.getOwnPropertyDescriptor(o,"name"),value:e}),i)for(let c of Object.keys(i)){let p=+c;!isNaN(p)&&_o(t,`${p}`)&&(t[p]=Qit(t[p],{...i[p],name:e}))}let s=Kit(t,n);return o;function o(...c){let p=s(c),u=p!==void 0?t[p]:void 0;if(typeof u=="function")return u(...c);throw new TypeError("Invalid arguments")}}function Kit(e,t){return n=>{for(let i=0;_o(e,`${i}`)&&_o(t,`${i}`);i++){let s=t[i];if(s(n))return i}}}function r6e(e){return{overload:t=>({bind:n=>({finish:()=>mQ(e,t,n),deprecate:i=>({finish:()=>mQ(e,t,n,i)})})})}}var n6e={};it(n6e,{ActionInvalidate:()=>Vj,ActionPackageInstalled:()=>qj,ActionSet:()=>Uj,ActionWatchTypingLocations:()=>lR,Arguments:()=>_q,AutoImportProviderProject:()=>xde,AuxiliaryProject:()=>Tde,CharRangeSection:()=>Kde,CloseFileWatcherEvent:()=>DQ,CommandNames:()=>O6e,ConfigFileDiagEvent:()=>kQ,ConfiguredProject:()=>Cde,ConfiguredProjectLoadKind:()=>Ede,CreateDirectoryWatcherEvent:()=>IQ,CreateFileWatcherEvent:()=>wQ,Errors:()=>my,EventBeginInstallTypes:()=>pq,EventEndInstallTypes:()=>fq,EventInitializationFailed:()=>lce,EventTypesRegistry:()=>uq,ExternalProject:()=>hQ,GcTimer:()=>ude,InferredProject:()=>Sde,LargeFileReferencedEvent:()=>TQ,LineIndex:()=>d3,LineLeaf:()=>IL,LineNode:()=>_D,LogLevel:()=>tde,Msg:()=>rde,OpenFileInfoTelemetryEvent:()=>wde,Project:()=>kC,ProjectInfoTelemetryEvent:()=>CQ,ProjectKind:()=>ZE,ProjectLanguageServiceStateEvent:()=>xQ,ProjectLoadingFinishEvent:()=>SQ,ProjectLoadingStartEvent:()=>bQ,ProjectService:()=>Bde,ProjectsUpdatedInBackgroundEvent:()=>xL,ScriptInfo:()=>dde,ScriptVersionCache:()=>BQ,Session:()=>J6e,TextStorage:()=>_de,ThrottledOperations:()=>lde,TypingsInstallerAdapter:()=>Q6e,allFilesAreJsOrDts:()=>yde,allRootFilesAreJsOrDts:()=>hde,asNormalizedPath:()=>o6e,convertCompilerOptions:()=>CL,convertFormatOptions:()=>uD,convertScriptKindName:()=>AQ,convertTypeAcquisition:()=>Dde,convertUserPreferences:()=>Pde,convertWatchOptions:()=>f3,countEachFileTypes:()=>c3,createInstallTypingsRequest:()=>nde,createModuleSpecifierCache:()=>Jde,createNormalizedPathMap:()=>c6e,createPackageJsonCache:()=>Ude,createSortedArray:()=>cde,emptyArray:()=>jl,findArgument:()=>cxe,formatDiagnosticToProtocol:()=>_3,formatMessage:()=>Vde,getBaseConfigFileName:()=>gQ,getDetailWatchInfo:()=>RQ,getLocationInNewDocument:()=>Qde,hasArgument:()=>oxe,hasNoTypeScriptSource:()=>vde,indent:()=>xE,isBackgroundProject:()=>u3,isConfigFile:()=>zde,isConfiguredProject:()=>mv,isDynamicFileName:()=>YE,isExternalProject:()=>l3,isInferredProject:()=>lD,isInferredProjectName:()=>ide,isProjectDeferredClose:()=>p3,makeAutoImportProviderProjectName:()=>ade,makeAuxiliaryProjectName:()=>ode,makeInferredProjectName:()=>sde,maxFileSize:()=>vQ,maxProgramSizeForNonTsFiles:()=>yQ,normalizedPathToPath:()=>cD,nowString:()=>lxe,nullCancellationToken:()=>N6e,nullTypingsInstaller:()=>wL,protocol:()=>pde,scriptInfoIsContainedByBackgroundProject:()=>mde,scriptInfoIsContainedByDeferredClosedProject:()=>gde,stringifyIndented:()=>a1,toEvent:()=>qde,toNormalizedPath:()=>go,tryConvertScriptKindName:()=>PQ,typingsInstaller:()=>ede,updateProjectIfDirty:()=>Sd});var ede={};it(ede,{TypingsInstaller:()=>Zit,getNpmCommandForInstallation:()=>s6e,installNpmPackages:()=>Yit,typingsName:()=>a6e});var Xit={isEnabled:()=>!1,writeLine:no};function i6e(e,t,n,i){try{let s=Pk(t,Jn(e,"index.d.ts"),{moduleResolution:2},n);return s.resolvedModule&&s.resolvedModule.resolvedFileName}catch(s){i.isEnabled()&&i.writeLine(`Failed to resolve ${t} in folder '${e}': ${s.message}`);return}}function Yit(e,t,n,i){let s=!1;for(let o=n.length;o>0;){let c=s6e(e,t,n,o);o=c.remaining,s=i(c.command)||s}return s}function s6e(e,t,n,i){let s=n.length-i,o,c=i;for(;o=`${e} install --ignore-scripts ${(c===n.length?n:n.slice(s,s+c)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(o.length<8e3);)c=c-Math.floor(c/2);return{command:o,remaining:i-c}}var Zit=class{constructor(e,t,n,i,s,o=Xit){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=n,this.typesMapLocation=i,this.throttleLimit=s,this.log=o,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${n}', types map path ${i}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{let t={};this.typesRegistry.forEach((i,s)=>{t[s]=i});let n={kind:uq,typesRegistry:t};this.sendResponse(n);break}case"installPackage":{this.installPackage(e);break}default:w.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),!this.projectWatchers.get(e)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`);return}this.projectWatchers.delete(e),this.sendResponse({kind:lR,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${a1(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),this.safeList===void 0&&this.initializeSafeList();let t=Wb.discoverTypings(this.installTypingHost,this.log.isEnabled()?n=>this.log.writeLine(n):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){let{fileName:t,packageName:n,projectName:i,projectRootPath:s,id:o}=e,c=xP(ti(t),p=>{if(this.installTypingHost.fileExists(Jn(p,"package.json")))return p})||s;if(c)this.installWorker(-1,[n],c,p=>{let u=p?`Package ${n} installed.`:`There was an error installing ${n}.`,g={kind:qj,projectName:i,id:o,success:p,message:u};this.sendResponse(g)});else{let p={kind:qj,projectName:i,id:o,success:!1,message:"Could not determine a project root path."};this.sendResponse(p)}}initializeSafeList(){if(this.typesMapLocation){let e=Wb.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=e;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=Wb.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}let t=Jn(e,"package.json"),n=Jn(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(n)){let i=JSON.parse(this.installTypingHost.readFile(t)),s=JSON.parse(this.installTypingHost.readFile(n));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${a1(i)}`),this.log.writeLine(`Loaded content of '${n}':${a1(s)}`)),i.devDependencies&&(s.packages||s.dependencies))for(let o in i.devDependencies){if(s.packages&&!_o(s.packages,`node_modules/${o}`)||s.dependencies&&!_o(s.dependencies,o))continue;let c=dl(o);if(!c)continue;let p=i6e(e,c,this.installTypingHost,this.log);if(!p){this.missingTypingsSet.add(c);continue}let u=this.packageNameToTypingLocation.get(c);if(u){if(u.typingLocation===p)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${c} from '${p}' conflicts with existing typing file '${u}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${c}' => '${p}'`);let g=s.packages&&lM(s.packages,`node_modules/${o}`)||lM(s.dependencies,o),d=g&&g.version;if(!d)continue;let h={typingLocation:p,version:new Zd(d)};this.packageNameToTypingLocation.set(c,h)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return Ji(e,t=>{let n=RI(t);if(this.missingTypingsSet.has(n)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${n}' is in missingTypingsSet - skipping...`);return}let i=Wb.validatePackageName(t);if(i!==Wb.NameValidationResult.Ok){this.missingTypingsSet.add(n),this.log.isEnabled()&&this.log.writeLine(Wb.renderPackageNameValidationFailure(i,t));return}if(!this.typesRegistry.has(n)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: Entry for package '${n}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(n)&&Wb.isTypingUpToDate(this.packageNameToTypingLocation.get(n),this.typesRegistry.get(n))){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${n}' already has an up-to-date typing - skipping...`);return}return n})}ensurePackageDirectoryExists(e){let t=Jn(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,n,i){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(i)}`);let s=this.filterTypings(i);if(s.length===0){this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),this.sendResponse(this.createSetTypings(e,n));return}this.ensurePackageDirectoryExists(t);let o=this.installRunCount;this.installRunCount++,this.sendResponse({kind:pq,eventId:o,typingsInstallerVersion:Vi,projectName:e.projectName});let c=s.map(a6e);this.installTypingsAsync(o,c,t,p=>{try{if(!p){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(s)}`);for(let g of s)this.missingTypingsSet.add(g);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(c)}`);let u=[];for(let g of s){let d=i6e(t,g,this.installTypingHost,this.log);if(!d){this.missingTypingsSet.add(g);continue}let h=this.typesRegistry.get(g),S=new Zd(h[`ts${Yi}`]||h[this.latestDistTag]),T={typingLocation:d,version:S};this.packageNameToTypingLocation.set(g,T),u.push(d)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(u)}`),this.sendResponse(this.createSetTypings(e,n.concat(u)))}finally{let u={kind:fq,eventId:o,projectName:e.projectName,packagesToInstall:c,installSuccess:p,typingsInstallerVersion:Vi};this.sendResponse(u)}})}ensureDirectoryExists(e,t){let n=ti(e);t.directoryExists(n)||this.ensureDirectoryExists(n,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length){this.closeWatchers(e);return}let n=this.projectWatchers.get(e),i=new Set(t);!n||ch(i,s=>!n.has(s))||ch(n,s=>!i.has(s))?(this.projectWatchers.set(e,i),this.sendResponse({kind:lR,projectName:e,files:t})):this.sendResponse({kind:lR,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:Uj}}installTypingsAsync(e,t,n,i){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:n,onRequestCompleted:i}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount<this.throttleLimit&&this.pendingRunRequests.length;){this.inFlightRequestCount++;let e=this.pendingRunRequests.pop();this.installWorker(e.requestId,e.packageNames,e.cwd,t=>{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}};function a6e(e){return`@types/${e}@ts${Yi}`}var tde=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(tde||{}),jl=cde(),rde=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(rde||{});function nde(e,t,n,i){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:n,projectRootPath:e.getCurrentDirectory(),cachePath:i,kind:"discover"}}var my;(e=>{function t(){throw new Error("No Project.")}e.ThrowNoProject=t;function n(){throw new Error("The project's language service is disabled.")}e.ThrowProjectLanguageServiceDisabled=n;function i(s,o){throw new Error(`Project '${o.getProjectName()}' does not contain document '${s}'`)}e.ThrowProjectDoesNotContainDocument=i})(my||(my={}));function go(e){return ra(e)}function cD(e,t,n){let i=Sf(e)?e:as(e,t);return n(i)}function o6e(e){return e}function c6e(){let e=new Map;return{get(t){return e.get(t)},set(t,n){e.set(t,n)},contains(t){return e.has(t)},remove(t){e.delete(t)}}}function ide(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function sde(e){return`/dev/null/inferredProject${e}*`}function ade(e){return`/dev/null/autoImportProviderProject${e}*`}function ode(e){return`/dev/null/auxiliaryProject${e}*`}function cde(){return[]}var lde=class y5e{constructor(t,n){this.host=t,this.pendingTimeouts=new Map,this.logger=n.hasLevel(3)?n:void 0}schedule(t,n,i){let s=this.pendingTimeouts.get(t);s&&this.host.clearTimeout(s),this.pendingTimeouts.set(t,this.host.setTimeout(y5e.run,n,t,this,i)),this.logger&&this.logger.info(`Scheduled: ${t}${s?", Cancelled earlier one":""}`)}cancel(t){let n=this.pendingTimeouts.get(t);return n?(this.host.clearTimeout(n),this.pendingTimeouts.delete(t)):!1}static run(t,n,i){n.pendingTimeouts.delete(t),n.logger&&n.logger.info(`Running: ${t}`),i()}},ude=class v5e{constructor(t,n,i){this.host=t,this.delay=n,this.logger=i}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(v5e.run,this.delay,this))}static run(t){t.timerId=void 0;let n=t.logger.hasLevel(2),i=n&&t.host.getMemoryUsage();if(t.host.gc(),n){let s=t.host.getMemoryUsage();t.logger.perftrc(`GC::before ${i}, after ${s}`)}}};function gQ(e){let t=dl(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}var pde={};it(pde,{ClassificationType:()=>hq,CommandTypes:()=>fde,CompletionTriggerKind:()=>mq,IndentStyle:()=>f6e,JsxEmit:()=>_6e,ModuleKind:()=>d6e,ModuleResolutionKind:()=>m6e,NewLineKind:()=>g6e,OrganizeImportsMode:()=>dq,PollingWatchKind:()=>p6e,ScriptTarget:()=>h6e,SemicolonPreference:()=>gq,WatchDirectoryKind:()=>u6e,WatchFileKind:()=>l6e});var fde=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.PreparePasteEdits="preparePasteEdits",e.GetPasteEdits="getPasteEdits",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e.MapCode="mapCode",e.CopilotRelated="copilotRelated",e))(fde||{}),l6e=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(l6e||{}),u6e=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(u6e||{}),p6e=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(p6e||{}),f6e=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(f6e||{}),_6e=(e=>(e.None="none",e.Preserve="preserve",e.ReactNative="react-native",e.React="react",e.ReactJSX="react-jsx",e.ReactJSXDev="react-jsxdev",e))(_6e||{}),d6e=(e=>(e.None="none",e.CommonJS="commonjs",e.AMD="amd",e.UMD="umd",e.System="system",e.ES6="es6",e.ES2015="es2015",e.ES2020="es2020",e.ES2022="es2022",e.ESNext="esnext",e.Node16="node16",e.Node18="node18",e.Node20="node20",e.NodeNext="nodenext",e.Preserve="preserve",e))(d6e||{}),m6e=(e=>(e.Classic="classic",e.Node="node",e.NodeJs="node",e.Node10="node10",e.Node16="node16",e.NodeNext="nodenext",e.Bundler="bundler",e))(m6e||{}),g6e=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(g6e||{}),h6e=(e=>(e.ES3="es3",e.ES5="es5",e.ES6="es6",e.ES2015="es2015",e.ES2016="es2016",e.ES2017="es2017",e.ES2018="es2018",e.ES2019="es2019",e.ES2020="es2020",e.ES2021="es2021",e.ES2022="es2022",e.ES2023="es2023",e.ES2024="es2024",e.ESNext="esnext",e.JSON="json",e.Latest="esnext",e))(h6e||{}),_de=class{constructor(e,t,n){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=n||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,n){this.switchToScriptVersionCache().edit(e,t-e,n),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return w.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=lC(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){let{text:t,fileSize:n}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},i=this.reload(t);return this.fileSize=n,this.ownFileText=!e||e===this.info.fileName,this.ownFileText&&this.info.mTime===bf.getTime()&&(this.info.mTime=(this.host.getModifiedTime(this.info.fileName)||bf).getTime()),i}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return((e=this.tryUseScriptVersionCache())==null?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=$j.fromString(w.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){let t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);let n=this.getLineMap();return e<=n.length?{absolutePosition:n[e-1],lineText:this.text.substring(n[e-1],n[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){let t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);let n=this.getLineMap(),i=n[e],s=e+1<n.length?n[e+1]:this.text.length;return $c(i,s)}lineOffsetToPosition(e,t,n){let i=this.tryUseScriptVersionCache();return i?i.lineOffsetToPosition(e,t):YO(this.getLineMap(),e-1,t-1,this.text,n)}positionToLineOffset(e){let t=this.tryUseScriptVersionCache();if(t)return t.positionToLineOffset(e);let{line:n,character:i}=ww(this.getLineMap(),e);return{line:n+1,offset:i+1}}getFileTextAndSize(e){let t,n=e||this.info.fileName,i=()=>t===void 0?t=this.host.readFile(n)||"":t;if(!pk(this.info.fileName)){let s=this.host.getFileSize?this.host.getFileSize(n):i().length;if(s>vQ)return w.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${n} for info ${this.info.fileName}: fileSize: ${s}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(n,s),{text:"",fileSize:s}}return{text:i()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=BQ.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&this.getOrLoadText(),this.isOpen?(!this.svc&&!this.textSnapshot&&(this.svc=BQ.fromString(w.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(w.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return w.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=e2(w.checkDefined(this.text)))}getLineInfo(){let e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:n=>e.getAbsolutePositionAndLineText(n+1).lineText};let t=this.getLineMap();return jU(this.text,t)}};function YE(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&dl(e)[0]==="^"||e.includes(":^")&&!e.includes(Ro)}var dde=class{constructor(e,t,n,i,s,o){this.host=e,this.fileName=t,this.scriptKind=n,this.hasMixedContent=i,this.path=s,this.containingProjects=[],this.isDynamic=YE(t),this.textStorage=new _de(e,this,o),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=n||j8(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,e!==void 0&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){w.assert(!!this.containingProjects.length);let e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){let t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return ws(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:_P(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(let e of this.containingProjects){mv(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);let t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!lD(e)&&e.addMissingFileRoot(t.fileName)}sd(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return my.ThrowNoProject();case 1:return p3(this.containingProjects[0])||u3(this.containingProjects[0])?my.ThrowNoProject():this.containingProjects[0];default:let e,t,n,i;for(let s=0;s<this.containingProjects.length;s++){let o=this.containingProjects[s];if(mv(o)){if(o.deferredClose)continue;if(!o.isSourceOfProjectReferenceRedirect(this.fileName)){if(i===void 0&&s!==this.containingProjects.length-1&&(i=o.projectService.findDefaultConfiguredProject(this)||!1),i===o)return o;n||(n=o)}e||(e=o)}else{if(l3(o))return o;!t&&lD(o)&&(t=o)}}return(i||n||e||t)??my.ThrowNoProject()}}registerFileUpdate(){for(let e of this.containingProjects)e.registerFileUpdate(this.path)}setOptions(e,t){e&&(this.formatSettings?this.formatSettings={...this.formatSettings,...e}:(this.formatSettings=Hj(this.host.newLine),WT(this.formatSettings,e))),t&&(this.preferences||(this.preferences=vd),this.preferences={...this.preferences,...t})}getLatestVersion(){return this.textStorage.getSnapshot(),this.textStorage.getVersion()}saveTo(e){this.host.writeFile(e,lC(this.textStorage.getSnapshot()))}delayReloadNonMixedContentFile(){w.assert(!this.isDynamicOrHasMixedContent()),this.textStorage.delayReloadFromFileIntoText(),this.markContainingProjectsAsDirty()}reloadFromFile(e){return this.textStorage.reloadWithFileText(e)?(this.markContainingProjectsAsDirty(),!0):!1}editContent(e,t,n){this.textStorage.edit(e,t,n),this.markContainingProjectsAsDirty()}markContainingProjectsAsDirty(){for(let e of this.containingProjects)e.markFileAsDirty(this.path)}isOrphan(){return this.deferredDelete||!or(this.containingProjects,e=>!e.isOrphan())}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,n){return this.textStorage.lineOffsetToPosition(e,t,n)}positionToLineOffset(e){est(e);let t=this.textStorage.positionToLineOffset(e);return tst(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Is(this.sourceMapFilePath)&&(J_(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}};function est(e){w.assert(typeof e=="number",`Expected position ${e} to be a number.`),w.assert(e>=0,"Expected position to be non-negative.")}function tst(e){w.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),w.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),w.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),w.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}function mde(e){return _t(e.containingProjects,u3)}function gde(e){return _t(e.containingProjects,p3)}var ZE=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(ZE||{});function c3(e,t=!1){let n={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(let i of e){let s=t?i.textStorage.getTelemetryFileSize():0;switch(i.scriptKind){case 1:n.js+=1,n.jsSize+=s;break;case 2:n.jsx+=1,n.jsxSize+=s;break;case 3:Kl(i.fileName)?(n.dts+=1,n.dtsSize+=s):(n.ts+=1,n.tsSize+=s);break;case 4:n.tsx+=1,n.tsxSize+=s;break;case 7:n.deferred+=1,n.deferredSize+=s;break}}return n}function rst(e){let t=c3(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function hde(e){let t=c3(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function yde(e){let t=c3(e.getScriptInfos());return t.ts===0&&t.tsx===0}function vde(e){return!e.some(t=>uc(t,".ts")&&!Kl(t)||uc(t,".tsx"))}function bde(e){return e.generatedFilePath!==void 0}function y6e(e,t){if(e===t||(e||jl).length===0&&(t||jl).length===0)return!0;let n=new Map,i=0;for(let s of e)n.get(s)!==!0&&(n.set(s,!0),i++);for(let s of t){let o=n.get(s);if(o===void 0)return!1;o===!0&&(n.set(s,!1),i--)}return i===0}function nst(e,t){return e.enable!==t.enable||!y6e(e.include,t.include)||!y6e(e.exclude,t.exclude)}function ist(e,t){return xb(e)!==xb(t)}function sst(e,t){return e===t?!1:!qf(e,t)}var kC=class b5e{constructor(t,n,i,s,o,c,p,u,g,d){switch(this.projectKind=n,this.projectService=i,this.compilerOptions=c,this.compileOnSaveEnabled=p,this.watchOptions=u,this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.initialLoadPending=!1,this.dirty=!1,this.typingFiles=jl,this.moduleSpecifierCache=Jde(this),this.createHash=Js(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=Wb.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,i.logger.info(`Creating ${ZE[n]}Project: ${t}, currentDirectory: ${d}`),this.projectName=t,this.directoryStructureHost=g,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(d),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new Que(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(s||xb(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=K5(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),i.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:w.assertNever(i.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();let h=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=S=>this.writeLog(S):h.trace&&(this.trace=S=>h.trace(S)),this.realpath=Js(h,h.realpath),this.preferNonRecursiveWatch=this.projectService.canUseWatchEvents||h.preferNonRecursiveWatch,this.resolutionCache=MV(this,this.currentDirectory,!0),this.languageService=Kue(this,this.projectService.documentRegistry,this.projectService.serverMode),o&&this.disableLanguageService(o),this.markAsDirty(),u3(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getRedirectFromSourceFile(t){}isNonTsProject(){return Sd(this),yde(this)}isJsOnlyProject(){return Sd(this),rst(this)}static resolveModule(t,n,i,s){return b5e.importServicePluginSync({name:t},[n],i,s).resolvedModule}static importServicePluginSync(t,n,i,s){w.assertIsDefined(i.require);let o,c;for(let p of n){let u=ou(i.resolvePath(Jn(p,"node_modules")));s(`Loading ${t.name} from ${p} (resolved to ${u})`);let g=i.require(u,t.name);if(!g.error){c=g.module;break}let d=g.error.stack||g.error.message||JSON.stringify(g.error);(o??(o=[])).push(`Failed to load module '${t.name}' from ${u}: ${d}`)}return{pluginConfigEntry:t,resolvedModule:c,errorLogs:o}}static async importServicePluginAsync(t,n,i,s){w.assertIsDefined(i.importPlugin);let o,c;for(let p of n){let u=Jn(p,"node_modules");s(`Dynamically importing ${t.name} from ${p} (resolved to ${u})`);let g;try{g=await i.importPlugin(u,t.name)}catch(h){g={module:void 0,error:h}}if(!g.error){c=g.module;break}let d=g.error.stack||g.error.message||JSON.stringify(g.error);(o??(o=[])).push(`Failed to dynamically import module '${t.name}' from ${u}: ${d}`)}return{pluginConfigEntry:t,resolvedModule:c,errorLogs:o}}isKnownTypesPackageName(t){return this.projectService.typingsInstaller.isKnownTypesPackageName(t)}installPackage(t){return this.projectService.typingsInstaller.installPackage({...t,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}getSymlinkCache(){return this.symlinks||(this.symlinks=wG(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFilesMap.size)return Ke;let t;return this.rootFilesMap.forEach(n=>{(this.languageServiceEnabled||n.info&&n.info.isScriptOpen())&&(t||(t=[])).push(n.fileName)}),Gn(t,this.typingFiles)||Ke}getOrCreateScriptInfoAndAttachToProject(t){let n=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost,!1);if(n){let i=this.rootFilesMap.get(n.path);i&&i.info!==n&&(i.info=n),n.attachToProject(this)}return n}getScriptKind(t){let n=this.projectService.getScriptInfoForPath(this.toPath(t));return n&&n.scriptKind}getScriptVersion(t){let n=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost,!1);return n&&n.getLatestVersion()}getScriptSnapshot(t){let n=this.getOrCreateScriptInfoAndAttachToProject(t);if(n)return n.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){let t=ti(ra(this.projectService.getExecutingFilePath()));return Jn(t,kM(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(t,n,i,s,o){return this.directoryStructureHost.readDirectory(t,n,i,s,o)}readFile(t){return this.projectService.host.readFile(t)}writeFile(t,n){return this.projectService.host.writeFile(t,n)}fileExists(t){let n=this.toPath(t);return!!this.projectService.getScriptInfoForPath(n)||!this.isWatchedMissingFile(n)&&this.directoryStructureHost.fileExists(t)}resolveModuleNameLiterals(t,n,i,s,o,c){return this.resolutionCache.resolveModuleNameLiterals(t,n,i,s,o,c)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(t,n,i,s,o,c){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(t,n,i,s,o,c)}resolveLibrary(t,n,i,s){return this.resolutionCache.resolveLibrary(t,n,i,s)}directoryExists(t){return this.directoryStructureHost.directoryExists(t)}getDirectories(t){return this.directoryStructureHost.getDirectories(t)}getCachedDirectoryStructureHost(){}toPath(t){return So(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,n,i){return this.projectService.watchFactory.watchDirectory(t,n,i,this.projectService.getWatchOptions(this),Xl.FailedLookupLocations,this)}watchAffectingFileLocation(t,n){return this.projectService.watchFactory.watchFile(t,n,2e3,this.projectService.getWatchOptions(this),Xl.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(t,n,i){return this.projectService.watchFactory.watchDirectory(t,n,i,this.projectService.getWatchOptions(this),Xl.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}fileIsOpen(t){return this.projectService.openFiles.has(t)}writeLog(t){this.projectService.logger.info(t)}log(t){this.writeLog(t)}error(t){this.projectService.logger.msg(t,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return Mn(this.projectErrors,t=>!t.file)||jl}getAllProjectErrors(){return this.projectErrors||jl}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&Sd(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(t,n){return this.projectService.getDocumentPositionMapper(this,t,n)}getSourceFileLike(t){return this.projectService.getSourceFileLike(t,this)}shouldEmitFile(t){return t&&!t.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(t.path)}getCompileOnSaveAffectedFileList(t){return this.languageServiceEnabled?(Sd(this),this.builderState=fm.create(this.program,this.builderState,!0),Ji(fm.getFilesAffectedBy(this.builderState,this.program,t.path,this.cancellationToken,this.projectService.host),n=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(n.path))?n.fileName:void 0)):[]}emitFile(t,n){if(!this.languageServiceEnabled||!this.shouldEmitFile(t))return{emitSkipped:!0,diagnostics:jl};let{emitSkipped:i,diagnostics:s,outputFiles:o}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(let c of o){let p=as(c.name,this.currentDirectory);n(p,c.text,c.writeByteOrderMark)}if(this.builderState&&lf(this.compilerOptions)){let c=o.filter(p=>Kl(p.name));if(c.length===1){let p=this.program.getSourceFile(t.fileName),u=this.projectService.host.createHash?this.projectService.host.createHash(c[0].text):SP(c[0].text);fm.updateSignatureOfFile(this.builderState,u,p.resolvedPath)}}}return{emitSkipped:i,diagnostics:s}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(let t of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(t.fileName);this.program.forEachResolvedProjectReference(t=>this.detachScriptInfoFromProject(t.sourceFile.fileName)),this.program=void 0}}disableLanguageService(t){this.languageServiceEnabled&&(w.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=t,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(t){return!t.enable||!t.include?t:{...t,include:this.removeExistingTypings(t.include)}}getExternalFiles(t){return yf(Ma(this.plugins,n=>{if(typeof n.module.getExternalFiles=="function")try{return n.module.getExternalFiles(this,t||0)}catch(i){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${i}`),i.stack&&this.projectService.logger.info(i.stack)}}))}getSourceFile(t){if(this.program)return this.program.getSourceFileByPath(t)}getSourceFileOrConfigFile(t){let n=this.program.getCompilerOptions();return t===n.configFilePath?n.configFile:this.getSourceFile(t)}close(){var t;this.typingsCache&&this.projectService.typingsInstaller.onProjectClosed(this),this.typingsCache=void 0,this.closeWatchingTypingLocations(),this.cleanupProgram(),or(this.externalFiles,n=>this.detachScriptInfoIfNotRoot(n)),this.rootFilesMap.forEach(n=>{var i;return(i=n.info)==null?void 0:i.detachFromProject(this)}),this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,(t=this.packageJsonWatches)==null||t.forEach(n=>{n.projects.delete(this),n.close()}),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(cf(this.missingFilesMap,Fd),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(t){let n=this.projectService.getScriptInfo(t);n&&!this.isRoot(n)&&n.detachFromProject(this)}isClosed(){return this.rootFilesMap===void 0}hasRoots(){var t;return!!((t=this.rootFilesMap)!=null&&t.size)}isOrphan(){return!1}getRootFiles(){return this.rootFilesMap&&ds(Hv(this.rootFilesMap.values(),t=>{var n;return(n=t.info)==null?void 0:n.fileName}))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return ds(Hv(this.rootFilesMap.values(),t=>t.info))}getScriptInfos(){return this.languageServiceEnabled?kr(this.program.getSourceFiles(),t=>{let n=this.projectService.getScriptInfoForPath(t.resolvedPath);return w.assert(!!n,"getScriptInfo",()=>`scriptInfo for a file '${t.fileName}' Path: '${t.path}' / '${t.resolvedPath}' is missing.`),n}):this.getRootScriptInfos()}getExcludedFiles(){return jl}getFileNames(t,n){if(!this.program)return[];if(!this.languageServiceEnabled){let s=this.getRootFiles();if(this.compilerOptions){let o=Xue(this.compilerOptions);o&&(s||(s=[])).push(o)}return s}let i=[];for(let s of this.program.getSourceFiles())t&&this.program.isSourceFileFromExternalLibrary(s)||i.push(s.fileName);if(!n){let s=this.program.getCompilerOptions().configFile;if(s&&(i.push(s.fileName),s.extendedSourceFiles))for(let o of s.extendedSourceFiles)i.push(o)}return i}getFileNamesWithRedirectInfo(t){return this.getFileNames().map(n=>({fileName:n,isSourceOfProjectReferenceRedirect:t&&this.isSourceOfProjectReferenceRedirect(n)}))}hasConfigFile(t){if(this.program&&this.languageServiceEnabled){let n=this.program.getCompilerOptions().configFile;if(n){if(t===n.fileName)return!0;if(n.extendedSourceFiles){for(let i of n.extendedSourceFiles)if(t===i)return!0}}}return!1}containsScriptInfo(t){if(this.isRoot(t))return!0;if(!this.program)return!1;let n=this.program.getSourceFileByPath(t.path);return!!n&&n.resolvedPath===t.path}containsFile(t,n){let i=this.projectService.getScriptInfoForNormalizedPath(t);return i&&(i.isScriptOpen()||!n)?this.containsScriptInfo(i):!1}isRoot(t){var n,i;return((i=(n=this.rootFilesMap)==null?void 0:n.get(t.path))==null?void 0:i.info)===t}addRoot(t,n){w.assert(!this.isRoot(t)),this.rootFilesMap.set(t.path,{fileName:n||t.fileName,info:t}),t.attachToProject(this),this.markAsDirty()}addMissingFileRoot(t){let n=this.projectService.toPath(t);this.rootFilesMap.set(n,{fileName:t}),this.markAsDirty()}removeFile(t,n,i){this.isRoot(t)&&this.removeRoot(t),n?this.resolutionCache.removeResolutionsOfFile(t.path):this.resolutionCache.invalidateResolutionOfFile(t.path),this.cachedUnresolvedImportsPerFile.delete(t.path),i&&t.detachFromProject(this),this.markAsDirty()}registerFileUpdate(t){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(t)}markFileAsDirty(t){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(t)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}markAutoImportProviderAsDirty(){var t;this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(t=this.autoImportProviderHost)==null||t.markAsDirty()}onAutoImportProviderSettingsChanged(){this.markAutoImportProviderAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.markAutoImportProviderAsDirty()}onFileAddedOrRemoved(t){this.hasAddedorRemovedFiles=!0,t&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}onReleaseOldSourceFile(t,n,i,s){(!s||t.resolvedPath===t.path&&s.resolvedPath!==t.path)&&this.detachScriptInfoFromProject(t.fileName,i)}updateFromProject(){Sd(this)}updateGraph(){var t,n;(t=mn)==null||t.push(mn.Phase.Session,"updateGraph",{name:this.projectName,kind:ZE[this.projectKind]}),this.resolutionCache.startRecordingFilesWithChangedResolutions();let i=this.updateGraphWorker(),s=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;let o=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||jl;for(let p of o)this.cachedUnresolvedImportsPerFile.delete(p);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((i||o.length)&&(this.lastCachedUnresolvedImportsList=ast(this.program,this.cachedUnresolvedImportsPerFile)),this.enqueueInstallTypingsForProject(s)):this.lastCachedUnresolvedImportsList=void 0;let c=this.projectProgramVersion===0&&i;return i&&this.projectProgramVersion++,s&&this.markAutoImportProviderAsDirty(),c&&this.getPackageJsonAutoImportProvider(),(n=mn)==null||n.pop(),!i}enqueueInstallTypingsForProject(t){let n=this.getTypeAcquisition();if(!n||!n.enable||this.projectService.typingsInstaller===wL)return;let i=this.typingsCache;(t||!i||nst(n,i.typeAcquisition)||ist(this.getCompilationSettings(),i.compilerOptions)||sst(this.lastCachedUnresolvedImportsList,i.unresolvedImports))&&(this.typingsCache={compilerOptions:this.getCompilationSettings(),typeAcquisition:n,unresolvedImports:this.lastCachedUnresolvedImportsList},this.projectService.typingsInstaller.enqueueInstallTypingsRequest(this,n,this.lastCachedUnresolvedImportsList))}updateTypingFiles(t,n,i,s){this.typingsCache={compilerOptions:t,typeAcquisition:n,unresolvedImports:i};let o=!n||!n.enable?jl:yf(s);LO(o,this.typingFiles,bw(!this.useCaseSensitiveFileNames()),no,c=>this.detachScriptInfoFromProject(c))&&(this.typingFiles=o,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&cf(this.typingWatchers,Fd),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:Vj})}watchTypingLocations(t){if(!t){this.typingWatchers.isInvoked=!1;return}if(!t.length){this.closeWatchingTypingLocations();return}let n=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;let i=(s,o)=>{let c=this.toPath(s);if(n.delete(c),!this.typingWatchers.has(c)){let p=o==="FileWatcher"?Xl.TypingInstallerLocationFile:Xl.TypingInstallerLocationDirectory;this.typingWatchers.set(c,nR(c)?o==="FileWatcher"?this.projectService.watchFactory.watchFile(s,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),p,this):this.projectService.watchFactory.watchDirectory(s,u=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!uc(u,".json"))return this.writeLog("Ignoring files that are not *.json");if(Hh(u,Jn(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),p,this):(this.writeLog(`Skipping watcher creation at ${s}:: ${RQ(p,this)}`),GI))}};for(let s of t){let o=dl(s);if(o==="package.json"||o==="bower.json"){i(s,"FileWatcher");continue}if(A_(this.currentDirectory,s,this.currentDirectory,!this.useCaseSensitiveFileNames())){let c=s.indexOf(Ro,this.currentDirectory.length+1);i(c!==-1?s.substr(0,c):s,"DirectoryWatcher");continue}if(A_(this.projectService.typingsInstaller.globalTypingsCacheLocation,s,this.currentDirectory,!this.useCaseSensitiveFileNames())){i(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}i(s,"DirectoryWatcher")}n.forEach((s,o)=>{s.close(),this.typingWatchers.delete(o)})}getCurrentProgram(){return this.program}removeExistingTypings(t){if(!t.length)return t;let n=$7(this.getCompilerOptions(),this);return Mn(t,i=>!n.includes(i))}updateGraphWorker(){var t,n;let i=this.languageService.getCurrentProgram();w.assert(i===this.program),w.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);let s=bo(),{hasInvalidatedResolutions:o,hasInvalidatedLibResolutions:c}=this.resolutionCache.createHasInvalidatedResolutions($h,$h);this.hasInvalidatedResolutions=o,this.hasInvalidatedLibResolutions=c,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=mn)==null||t.push(mn.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(n=mn)==null||n.pop(),w.assert(i===void 0||this.program!==void 0);let p=!1;if(this.program&&(!i||this.program!==i&&this.program.structureIsReused!==2)){if(p=!0,this.rootFilesMap.forEach((d,h)=>{var S;let T=this.program.getSourceFileByPath(h),x=d.info;!T||((S=d.info)==null?void 0:S.path)===T.resolvedPath||(d.info=this.projectService.getScriptInfo(T.fileName),w.assert(d.info.isAttached(this)),x?.detachFromProject(this))}),oV(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(d,h)=>this.addMissingFileWatcher(d,h)),this.generatedFilesMap){let d=this.compilerOptions.outFile;bde(this.generatedFilesMap)?(!d||!this.isValidGeneratedFileWatcher(dp(d)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():d?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((h,S)=>{let T=this.program.getSourceFileByPath(S);(!T||T.resolvedPath!==S||!this.isValidGeneratedFileWatcher(o8(T.fileName,this.compilerOptions,this.program),h))&&(J_(h),this.generatedFilesMap.delete(S))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||i&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&i&&this.program&&ch(this.changedFilesForExportMapCache,d=>{let h=i.getSourceFileByPath(d),S=this.program.getSourceFileByPath(d);return!h||!S?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(h,S,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());let u=this.externalFiles||jl;this.externalFiles=this.getExternalFiles(),LO(this.externalFiles,u,bw(!this.useCaseSensitiveFileNames()),d=>{let h=this.projectService.getOrCreateScriptInfoNotOpenedByClient(d,this.currentDirectory,this.directoryStructureHost,!1);h?.attachToProject(this)},d=>this.detachScriptInfoFromProject(d));let g=bo()-s;return this.sendPerformanceEvent("UpdateGraph",g),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${p}${this.program?` structureIsReused:: ${nB[this.program.structureIsReused]}`:""} Elapsed: ${g}ms`),this.projectService.logger.isTestLogger?this.program!==i?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==i&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),p}sendPerformanceEvent(t,n){this.projectService.sendPerformanceEvent(t,n)}detachScriptInfoFromProject(t,n){let i=this.projectService.getScriptInfo(t);i&&(i.detachFromProject(this),n||this.resolutionCache.removeResolutionsOfFile(i.path))}addMissingFileWatcher(t,n){var i;if(mv(this)){let o=this.projectService.configFileExistenceInfoCache.get(t);if((i=o?.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return GI}let s=this.projectService.watchFactory.watchFile(as(n,this.currentDirectory),(o,c)=>{mv(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(o,t,c),c===0&&this.missingFilesMap.has(t)&&(this.missingFilesMap.delete(t),s.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),Xl.MissingFile,this);return s}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,n){if(this.compilerOptions.outFile)this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{let i=this.toPath(n);if(this.generatedFilesMap){if(bde(this.generatedFilesMap)){w.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(i))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(i,this.createGeneratedFileWatcher(t))}}createGeneratedFileWatcher(t){return{generatedFilePath:this.toPath(t),watcher:this.projectService.watchFactory.watchFile(t,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),Xl.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,n){return this.toPath(t)===n.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(bde(this.generatedFilesMap)?J_(this.generatedFilesMap):cf(this.generatedFilesMap,J_),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){let n=this.projectService.getScriptInfoForPath(this.toPath(t));return n&&!n.isAttached(this)?my.ThrowProjectDoesNotContainDocument(t,this):n}getScriptInfo(t){return this.projectService.getScriptInfo(t)}filesToString(t){return this.filesToStringWorker(t,!0,!1)}filesToStringWorker(t,n,i){if(this.initialLoadPending)return` Files (0) InitialLoadPending
|
|
`;if(!this.program)return` Files (0) NoProgram
|
|
`;let s=this.program.getSourceFiles(),o=` Files (${s.length})
|
|
`;if(t){for(let c of s)o+=` ${c.fileName}${i?` ${c.version} ${JSON.stringify(c.text)}`:""}
|
|
`;n&&(o+=`
|
|
|
|
`,LV(this.program,c=>o+=` ${c}
|
|
`))}return o}print(t,n,i){var s;this.writeLog(`Project '${this.projectName}' (${ZE[this.projectKind]})`),this.writeLog(this.filesToStringWorker(t&&this.projectService.logger.hasLevel(3),n&&this.projectService.logger.hasLevel(3),i&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),(s=this.noDtsResolutionProject)==null||s.print(!1,!1,!1)}setCompilerOptions(t){var n;if(t){t.allowNonTsExtensions=!0;let i=this.compilerOptions;this.compilerOptions=t,this.setInternalCompilerOptionsForEmittingJsFiles(),(n=this.noDtsResolutionProject)==null||n.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),SF(i,t)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(t){this.watchOptions=t}getWatchOptions(){return this.watchOptions}setTypeAcquisition(t){t&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(t))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(t,n){var i,s;let o=n?u=>ds(u.entries(),([g,d])=>({fileName:g,isSourceOfProjectReferenceRedirect:d})):u=>ds(u.keys());this.initialLoadPending||Sd(this);let c={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:lD(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},p=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&t===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!p)return{info:c,projectErrors:this.getGlobalProjectErrors()};let u=this.lastReportedFileNames,g=((i=this.externalFiles)==null?void 0:i.map(I=>({fileName:go(I),isSourceOfProjectReferenceRedirect:!1})))||jl,d=yw(this.getFileNamesWithRedirectInfo(!!n).concat(g),I=>I.fileName,I=>I.isSourceOfProjectReferenceRedirect),h=new Map,S=new Map,T=p?ds(p.keys()):[],x=[];return Rl(d,(I,P)=>{u.has(P)?n&&I!==u.get(P)&&x.push({fileName:P,isSourceOfProjectReferenceRedirect:I}):h.set(P,I)}),Rl(u,(I,P)=>{d.has(P)||S.set(P,I)}),this.lastReportedFileNames=d,this.lastReportedVersion=this.projectProgramVersion,{info:c,changes:{added:o(h),removed:o(S),updated:n?T.map(I=>({fileName:I,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(I)})):T,updatedRedirects:n?x:void 0},projectErrors:this.getGlobalProjectErrors()}}else{let u=this.getFileNamesWithRedirectInfo(!!n),g=((s=this.externalFiles)==null?void 0:s.map(h=>({fileName:go(h),isSourceOfProjectReferenceRedirect:!1})))||jl,d=u.concat(g);return this.lastReportedFileNames=yw(d,h=>h.fileName,h=>h.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:c,files:n?d:d.map(h=>h.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(t){this.rootFilesMap.delete(t.path)}isSourceOfProjectReferenceRedirect(t){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(t)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,Jn(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(t){if(!this.projectService.globalPlugins.length)return;let n=this.projectService.host;if(!n.require&&!n.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let i=this.getGlobalPluginSearchPaths();for(let s of this.projectService.globalPlugins)s&&(t.plugins&&t.plugins.some(o=>o.name===s)||(this.projectService.logger.info(`Loading global plugin ${s}`),this.enablePlugin({name:s,global:!0},i)))}enablePlugin(t,n){this.projectService.requestEnablePlugin(this,t,n)}enableProxy(t,n){try{if(typeof t!="function"){this.projectService.logger.info(`Skipped loading plugin ${n.name} because it did not expose a proper factory function`);return}let i={config:n,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},s=t({typescript:ZMe}),o=s.create(i);for(let c of Object.keys(this.languageService))c in o||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${c} in created LS. Patching.`),o[c]=this.languageService[c]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=o,this.plugins.push({name:n.name,module:s})}catch(i){this.projectService.logger.info(`Plugin activation failed: ${i}`)}}onPluginConfigurationChanged(t,n){this.plugins.filter(i=>i.name===t).forEach(i=>{i.module.onConfigurationChanged&&i.module.onConfigurationChanged(n)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(t,n){return this.projectService.serverMode!==0?jl:this.projectService.getPackageJsonsVisibleToFile(t,this,n)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t,this)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile(Jn(this.currentDirectory,vE),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=h$(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||wR(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var t,n;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((t=this.projectService.host.realpath)==null?void 0:t.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:(n=this.projectService.host.trace)==null?void 0:n.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var t,n,i;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(Sd(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}let s=this.includePackageJsonAutoImports();if(s){(t=mn)==null||t.push(mn.Phase.Session,"getPackageJsonAutoImportProvider");let o=bo();if(this.autoImportProviderHost=xde.create(s,this,this.getHostForAutoImportProvider())??!1,this.autoImportProviderHost)return Sd(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",bo()-o),(n=mn)==null||n.pop(),this.autoImportProviderHost.getCurrentProgram();(i=mn)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!Rl(this.projectService.openFiles,(t,n)=>this.projectService.tryGetDefaultProjectForFile(this.projectService.getScriptInfoForPath(n))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return w.assert(this.projectService.serverMode===0),this.noDtsResolutionProject??(this.noDtsResolutionProject=new Tde(this)),this.noDtsResolutionProject.rootFile!==t&&(this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[t]),this.noDtsResolutionProject.rootFile=t),this.noDtsResolutionProject}runWithTemporaryFileUpdate(t,n,i){var s,o,c,p;let u=this.program,g=w.checkDefined((s=this.program)==null?void 0:s.getSourceFile(t),"Expected file to be part of program"),d=w.checkDefined(g.getFullText());(o=this.getScriptInfo(t))==null||o.editContent(0,d.length,n),this.updateGraph();try{i(this.program,u,(c=this.program)==null?void 0:c.getSourceFile(t))}finally{(p=this.getScriptInfo(t))==null||p.editContent(0,n.length,d)}}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:Ke,lib:Ke,noLib:!0}}};function ast(e,t){var n,i;let s=e.getSourceFiles();(n=mn)==null||n.push(mn.Phase.Session,"getUnresolvedImports",{count:s.length});let o=e.getTypeChecker().getAmbientModules().map(p=>_d(p.getName())),c=fP(Ma(s,p=>ost(e,p,o,t)));return(i=mn)==null||i.pop(),c}function ost(e,t,n,i){return pP(i,t.path,()=>{let s;return e.forEachResolvedModule(({resolvedModule:o},c)=>{(!o||!kA(o.extension))&&!Ul(c)&&!n.some(p=>p===c)&&(s=Fr(s,X7(c).packageName))},t),s||jl})}var Sde=class extends kC{constructor(e,t,n,i,s,o){super(e.newInferredProjectName(),0,e,!1,void 0,t,!1,n,e.host,s),this._isJsInferredProject=!1,this.typeAcquisition=o,this.projectRootPath=i&&e.toCanonicalFileName(i),!i&&!e.useSingleInferredProject&&(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;let t=Fq(e||this.getCompilationSettings());this._isJsInferredProject&&typeof t.maxNodeModuleJsDepth!="number"?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){w.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForScriptInfo(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&Fi(this.getRootScriptInfos(),t=>!t.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){or(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForScriptInfo(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:hde(this),include:Ke,exclude:Ke}}},Tde=class extends kC{constructor(e){super(e.projectService.newAuxiliaryProjectName(),4,e.projectService,!1,void 0,e.getCompilerOptionsForNoDtsResolutionProject(),!1,void 0,e.projectService.host,e.currentDirectory)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},kde=class mve extends kC{constructor(t,n,i){super(t.projectService.newAutoImportProviderProjectName(),3,t.projectService,!1,void 0,i,!1,t.getWatchOptions(),t.projectService.host,t.currentDirectory),this.hostProject=t,this.rootFileNames=n,this.useSourceOfProjectReferenceRedirect=Js(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=Js(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(t,n,i,s){var o,c;if(!t)return Ke;let p=n.getCurrentProgram();if(!p)return Ke;let u=bo(),g,d,h=Jn(n.currentDirectory,vE),S=n.getPackageJsonsForAutoImport(Jn(n.currentDirectory,h));for(let W of S)(o=W.dependencies)==null||o.forEach((z,$)=>E($)),(c=W.peerDependencies)==null||c.forEach((z,$)=>E($));let T=0;if(g){let W=n.getSymlinkCache();for(let z of ds(g.keys())){if(t===2&&T>=this.maxDependencies)return n.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),Ke;let $=fU(z,n.currentDirectory,s,i,p.getModuleResolutionCache());if($){let U=F($,p,W);if(U){T+=P(U);continue}}if(!or([n.currentDirectory,n.getGlobalTypingsCacheLocation()],U=>{if(U){let _e=fU(`@types/${z}`,U,s,i,p.getModuleResolutionCache());if(_e){let re=F(_e,p,W);return T+=P(re),!0}}})&&$&&s.allowJs&&s.maxNodeModuleJsDepth){let U=F($,p,W,!0);T+=P(U)}}}let x=p.getResolvedProjectReferences(),I=0;return x?.length&&n.projectService.getHostPreferences().includeCompletionsForModuleExports&&x.forEach(W=>{if(W?.commandLine.options.outFile)I+=P(O([tv(W.commandLine.options.outFile,".d.ts")]));else if(W){let z=up(()=>Mk(W.commandLine,!n.useCaseSensitiveFileNames()));I+=P(O(Ji(W.commandLine.fileNames,$=>!Kl($)&&!uc($,".json")&&!p.getSourceFile($)?gE($,W.commandLine,!n.useCaseSensitiveFileNames(),z):void 0)))}}),d?.size&&n.log(`AutoImportProviderProject: found ${d.size} root files in ${T} dependencies ${I} referenced projects in ${bo()-u} ms`),d?ds(d.values()):Ke;function P(W){return W?.length?(d??(d=new Set),W.forEach(z=>d.add(z)),1):0}function E(W){Zi(W,"@types/")||(g||(g=new Set)).add(W)}function F(W,z,$,X){var U;let _e=yU(W,s,i,z.getModuleResolutionCache(),X);if(_e){let re=(U=i.realpath)==null?void 0:U.call(i,W.packageDirectory),V=re?n.toPath(re):void 0,ce=V&&V!==n.toPath(W.packageDirectory);return ce&&$.setSymlinkedDirectory(W.packageDirectory,{real:Ml(re),realPath:Ml(V)}),O(_e,ce?oe=>oe.replace(W.packageDirectory,re):void 0)}}function O(W,z){return Ji(W,$=>{let X=z?z($):$;if(!p.getSourceFile(X)&&!(z&&p.getSourceFile($)))return X})}}static create(t,n,i){if(t===0)return;let s={...n.getCompilerOptions(),...this.compilerOptionsOverrides},o=this.getRootFileNames(t,n,i,s);if(o.length)return new mve(n,o,s)}isEmpty(){return!_t(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=mve.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;let n=this.getCurrentProgram(),i=super.updateGraph();return n&&n!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),i}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var t;return!!((t=this.rootFileNames)!=null&&t.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||Ke}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var t;return(t=this.hostProject.getCurrentProgram())==null?void 0:t.getModuleResolutionCache()}};kde.maxDependencies=10,kde.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:Ke,lib:Ke,noLib:!0};var xde=kde,Cde=class extends kC{constructor(e,t,n,i,s){super(e,1,n,!1,void 0,{},!1,void 0,i,ti(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.initialLoadPending=!0,this.sendLoadingProjectFinish=!1,this.pendingUpdateLevel=2,this.pendingUpdateReason=s}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){let t=go(e),n=this.projectService.toCanonicalFileName(t),i=this.projectService.configFileExistenceInfoCache.get(n);return i||this.projectService.configFileExistenceInfoCache.set(n,i={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,n,i,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(t,i,this),i.exists?i.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(go(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){if(this.deferredClose)return!1;let e=this.dirty;this.initialLoadPending=!1;let t=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let n;switch(t){case 1:this.openFileWatchTriggered.clear(),n=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();let i=w.checkDefined(this.pendingUpdateReason);this.projectService.reloadConfiguredProject(this,i),n=!0;break;default:n=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),t===2||n&&(!e||!this.triggerFileForConfigFileDiag||this.getCurrentProgram().structureIsReused===2)?this.triggerFileForConfigFileDiag=void 0:this.triggerFileForConfigFileDiag||this.projectService.sendConfigFileDiagEvent(this,void 0,!1),n}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){w.assert(this.initialLoadPending),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getRedirectFromSourceFile(e){let t=this.getCurrentProgram();return t&&t.getRedirectFromSourceFile(e)}forEachResolvedProjectReference(e){var t;return(t=this.getCurrentProgram())==null?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!((t=e.plugins)!=null&&t.length)&&!this.projectService.globalPlugins.length)return;let n=this.projectService.host;if(!n.require&&!n.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let i=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){let s=ti(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${s} to search paths`),i.unshift(s)}if(e.plugins)for(let s of e.plugins)this.enablePlugin(s,i);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return Mn(this.projectErrors,e=>!e.file)||jl}getAllProjectErrors(){return this.projectErrors||jl}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach((e,t)=>this.releaseParsedConfig(t)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}markAsDirty(){this.deferredClose||super.markAsDirty()}isOrphan(){return!!this.deferredClose}getEffectiveTypeRoots(){return rE(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){this.parsedCommandLine=e,G7(e.fileNames,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,N4(e.raw))}},hQ=class extends kC{constructor(e,t,n,i,s,o,c){super(e,2,t,!0,i,n,s,c,t.host,ti(o||ou(e))),this.externalProjectName=e,this.compileOnSaveEnabled=s,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){let e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}};function lD(e){return e.projectKind===0}function mv(e){return e.projectKind===1}function l3(e){return e.projectKind===2}function u3(e){return e.projectKind===3||e.projectKind===4}function p3(e){return mv(e)&&!!e.deferredClose}var yQ=20*1024*1024,vQ=4*1024*1024,xL="projectsUpdatedInBackground",bQ="projectLoadingStart",SQ="projectLoadingFinish",TQ="largeFileReferenced",kQ="configFileDiag",xQ="projectLanguageServiceState",CQ="projectInfo",wde="openFileInfo",wQ="createFileWatcher",IQ="createDirectoryWatcher",DQ="closeFileWatcher",v6e="*ensureProjectForOpenFiles*";function b6e(e){let t=new Map;for(let n of e)if(typeof n.type=="object"){let i=n.type;i.forEach(s=>{w.assert(typeof s=="number")}),t.set(n.name,i)}return t}var cst=b6e(Bd),lst=b6e(Z2),ust=new Map(Object.entries({none:0,block:1,smart:2})),Ide={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}};function uD(e){return Is(e.indentStyle)&&(e.indentStyle=ust.get(e.indentStyle.toLowerCase()),w.assert(e.indentStyle!==void 0)),e}function CL(e){return cst.forEach((t,n)=>{let i=e[n];Is(i)&&(e[n]=t.get(i.toLowerCase()))}),e}function f3(e,t){let n,i;return Z2.forEach(s=>{let o=e[s.name];if(o===void 0)return;let c=lst.get(s.name);(n||(n={}))[s.name]=c?Is(o)?c.get(o.toLowerCase()):o:Dk(s,o,t||"",i||(i=[]))}),n&&{watchOptions:n,errors:i}}function Dde(e){let t;return N7.forEach(n=>{let i=e[n.name];i!==void 0&&((t||(t={}))[n.name]=i)}),t}function PQ(e){return Is(e)?AQ(e):e}function AQ(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function Pde(e){let{lazyConfiguredProjectsFromExternalProject:t,...n}=e;return n}var EQ={getFileName:e=>e,getScriptKind:(e,t)=>{let n;if(t){let i=Xx(e);i&&_t(t,s=>s.extension===i?(n=s.scriptKind,!0):!1)}return n},hasMixedContent:(e,t)=>_t(t,n=>n.isMixedContent&&uc(e,n.extension))},NQ={getFileName:e=>e.fileName,getScriptKind:e=>PQ(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent};function S6e(e,t){for(let n of t)if(n.getProjectName()===e)return n}var wL={isKnownTypesPackageName:$h,installPackage:ea,enqueueInstallTypingsRequest:no,attach:no,onProjectClosed:no,globalTypingsCacheLocation:void 0},Ade={close:no};function T6e(e,t){if(!t)return;let n=t.get(e.path);if(n!==void 0)return MQ(e)?n&&!Is(n)?n.get(e.fileName):void 0:Is(n)||!n?n:n.get(!1)}function k6e(e){return!!e.containingProjects}function MQ(e){return!!e.configFileInfo}var Ede=(e=>(e[e.FindOptimized=0]="FindOptimized",e[e.Find=1]="Find",e[e.CreateReplayOptimized=2]="CreateReplayOptimized",e[e.CreateReplay=3]="CreateReplay",e[e.CreateOptimized=4]="CreateOptimized",e[e.Create=5]="Create",e[e.ReloadOptimized=6]="ReloadOptimized",e[e.Reload=7]="Reload",e))(Ede||{});function x6e(e){return e-1}function C6e(e,t,n,i,s,o,c,p,u){for(var g;;){if(t.parsedCommandLine&&(p&&!t.parsedCommandLine.options.composite||t.parsedCommandLine.options.disableSolutionSearching))return;let d=t.projectService.getConfigFileNameForFile({fileName:t.getConfigFilePath(),path:e.path,configFileInfo:!0,isForDefaultProject:!p},i<=3);if(!d)return;let h=t.projectService.findCreateOrReloadConfiguredProject(d,i,s,o,p?void 0:e.fileName,c,p,u);if(!h)return;!h.project.parsedCommandLine&&((g=t.parsedCommandLine)!=null&&g.options.composite)&&h.project.setPotentialProjectReference(t.canonicalConfigFilePath);let S=n(h);if(S)return S;t=h.project}}function w6e(e,t,n,i,s,o,c,p){let u=t.options.disableReferencedProjectLoad?0:i,g;return or(t.projectReferences,d=>{var h;let S=go(sC(d)),T=e.projectService.toCanonicalFileName(S),x=p?.get(T);if(x!==void 0&&x>=u)return;let I=e.projectService.configFileExistenceInfoCache.get(T),P=u===0?I?.exists||(h=e.resolvedChildConfigs)!=null&&h.has(T)?I.config.parsedCommandLine:void 0:e.getParsedCommandLine(S);if(P&&u!==i&&u>2&&(P=e.getParsedCommandLine(S)),!P)return;let E=e.projectService.findConfiguredProjectByProjectName(S,o);if(!(u===2&&!I&&!E)){switch(u){case 6:E&&E.projectService.reloadConfiguredProjectOptimized(E,s,c);case 4:(e.resolvedChildConfigs??(e.resolvedChildConfigs=new Set)).add(T);case 2:case 0:if(E||u!==0){let F=n(I??e.projectService.configFileExistenceInfoCache.get(T),E,S,s,e,T);if(F)return F}break;default:w.assertNever(u)}(p??(p=new Map)).set(T,u),(g??(g=[])).push(P)}})||or(g,d=>d.projectReferences&&w6e(e,d,n,u,s,o,c,p))}function Nde(e,t,n,i,s){let o=!1,c;switch(t){case 2:case 3:Fde(e)&&(c=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath));break;case 4:if(c=Ode(e),c)break;case 5:o=fst(e,n);break;case 6:if(e.projectService.reloadConfiguredProjectOptimized(e,i,s),c=Ode(e),c)break;case 7:o=e.projectService.reloadConfiguredProjectClearingSemanticCache(e,i,s);break;case 0:case 1:break;default:w.assertNever(t)}return{project:e,sentConfigFileDiag:o,configFileExistenceInfo:c,reason:i}}function I6e(e,t){return e.initialLoadPending?(e.potentialProjectReferences&&ch(e.potentialProjectReferences,t))??(e.resolvedChildConfigs&&ch(e.resolvedChildConfigs,t)):void 0}function pst(e,t,n,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.initialLoadPending?I6e(e,i):or(e.getProjectReferences(),n)}function Mde(e,t,n){let i=n&&e.projectService.configuredProjects.get(n);return i&&t(i)}function D6e(e,t){return pst(e,n=>Mde(e,t,n.sourceFile.path),n=>Mde(e,t,e.toPath(sC(n))),n=>Mde(e,t,n))}function RQ(e,t){return`${Is(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function Rde(e){return!e.isScriptOpen()&&e.mTime!==void 0}function Sd(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&!e.updateGraph()}function P6e(e,t,n){if(!n&&(e.invalidateResolutionsOfFailedLookupLocations(),!e.dirty))return!1;e.triggerFileForConfigFileDiag=t;let i=e.pendingUpdateLevel;if(e.updateGraph(),!e.triggerFileForConfigFileDiag&&!n)return i===2;let s=e.projectService.sendConfigFileDiagEvent(e,t,n);return e.triggerFileForConfigFileDiag=void 0,s}function fst(e,t){if(t){if(P6e(e,t,!1))return!0}else Sd(e);return!1}function Ode(e){let t=go(e.getConfigFilePath()),n=e.projectService.ensureParsedConfigUptoDate(t,e.canonicalConfigFilePath,e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),i=n.config.parsedCommandLine;if(e.parsedCommandLine=i,e.resolvedChildConfigs=void 0,e.updateReferences(i.projectReferences),Fde(e))return n}function Fde(e){return!!e.parsedCommandLine&&(!!e.parsedCommandLine.options.composite||!!cU(e.parsedCommandLine))}function _st(e){return Fde(e)?e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath):void 0}function dst(e){return`Creating possible configured project for ${e.fileName} to open`}function OQ(e){return`User requested reload projects: ${e}`}function jde(e){mv(e)&&(e.projectOptions=!0)}function Lde(e){let t=1;return()=>e(t++)}function Wde(){return{idToCallbacks:new Map,pathToId:new Map}}function A6e(e,t){return!!t&&!!e.eventHandler&&!!e.session}function mst(e,t){if(!A6e(e,t))return;let n=Wde(),i=Wde(),s=Wde(),o=1;return e.session.addProtocolHandler("watchChange",T=>(g(T.arguments),{responseRequired:!1})),{watchFile:c,watchDirectory:p,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function c(T,x){return u(n,T,x,I=>({eventName:wQ,data:{id:I,path:T}}))}function p(T,x,I){return u(I?s:i,T,x,P=>({eventName:IQ,data:{id:P,path:T,recursive:!!I,ignoreUpdate:T.endsWith("/node_modules")?void 0:!0}}))}function u({pathToId:T,idToCallbacks:x},I,P,E){let F=e.toPath(I),O=T.get(F);O||T.set(F,O=o++);let W=x.get(O);return W||(x.set(O,W=new Set),e.eventHandler(E(O))),W.add(P),{close(){let z=x.get(O);z?.delete(P)&&(z.size||(x.delete(O),T.delete(F),e.eventHandler({eventName:DQ,data:{id:O}})))}}}function g(T){gs(T)?T.forEach(d):d(T)}function d({id:T,created:x,deleted:I,updated:P}){h(T,x,0),h(T,I,2),h(T,P,1)}function h(T,x,I){x?.length&&(S(n,T,x,(P,E)=>P(E,I)),S(i,T,x,(P,E)=>P(E)),S(s,T,x,(P,E)=>P(E)))}function S(T,x,I,P){var E;(E=T.idToCallbacks.get(x))==null||E.forEach(F=>{I.forEach(O=>P(F,ou(O)))})}}var E6e=class gve{constructor(t){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Set,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=Lde(sde),this.newAutoImportProviderProjectName=Lde(ade),this.newAuxiliaryProjectName=Lde(ode),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.rootOfInferredProjects=new Set,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=Ide,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=no,this.verifyDocumentRegistry=no,this.verifyProgram=no,this.onProjectCreation=no;var n;this.host=t.host,this.logger=t.logger,this.cancellationToken=t.cancellationToken,this.useSingleInferredProject=t.useSingleInferredProject,this.useInferredProjectPerProjectRoot=t.useInferredProjectPerProjectRoot,this.typingsInstaller=t.typingsInstaller||wL,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||jl,this.pluginProbeLocations=t.pluginProbeLocations||jl,this.allowLocalPluginLoads=!!t.allowLocalPluginLoads,this.typesMapLocation=t.typesMapLocation===void 0?Jn(ti(this.getExecutingFilePath()),"typesMap.json"):t.typesMapLocation,this.session=t.session,this.jsDocParsingMode=t.jsDocParsingMode,t.serverMode!==void 0?this.serverMode=t.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=od()),this.currentDirectory=go(this.host.getCurrentDirectory()),this.toCanonicalFileName=hu(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Ml(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new lde(this.host,this.logger),this.logger.info(`currentDirectory:: ${this.host.getCurrentDirectory()} useCaseSensitiveFileNames:: ${this.host.useCaseSensitiveFileNames}`),this.logger.info(`libs Location:: ${ti(this.host.getExecutingFilePath())}`),this.logger.info(`globalTypingsCacheLocation:: ${this.typingsInstaller.globalTypingsCacheLocation}`),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.hostConfiguration={formatCodeOptions:Hj(this.host.newLine),preferences:vd,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=T$(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);let i=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,s=i!==0?o=>this.logger.info(o):no;this.packageJsonCache=Ude(this),this.watchFactory=this.serverMode!==0?{watchFile:TE,watchDirectory:TE}:cV(mst(this,t.canUseWatchEvents)||this.host,i,s,RQ),this.canUseWatchEvents=A6e(this,t.canUseWatchEvents),(n=t.incrementalVerifier)==null||n.call(t,this)}toPath(t){return So(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return as(t,this.host.getCurrentDirectory())}setDocument(t,n,i){let s=w.checkDefined(this.getScriptInfoForPath(n));s.cacheSourceFile={key:t,sourceFile:i}}getDocument(t,n){let i=this.getScriptInfoForPath(n);return i&&i.cacheSourceFile&&i.cacheSourceFile.key===t?i.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(t,n){if(!this.eventHandler)return;let i={eventName:xQ,data:{project:t,languageServiceEnabled:n}};this.eventHandler(i)}loadTypesMap(){try{let t=this.host.readFile(this.typesMapLocation);if(t===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}let n=JSON.parse(t);for(let i of Object.keys(n.typesMap))n.typesMap[i].match=new RegExp(n.typesMap[i].match,"i");this.safelist=n.typesMap;for(let i in n.simpleMap)_o(n.simpleMap,i)&&this.legacySafelist.set(i,n.simpleMap[i].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=Ide,this.legacySafelist.clear()}}updateTypingsForProject(t){let n=this.findProject(t.projectName);if(n)switch(t.kind){case Uj:n.updateTypingFiles(t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings);return;case Vj:n.enqueueInstallTypingsForProject(!0);return}}watchTypingLocations(t){var n;(n=this.findProject(t.projectName))==null||n.watchTypingLocations(t.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(v6e,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(p3(t)||(t.markAsDirty(),u3(t)))return;let n=t.getProjectName();this.pendingProjectUpdates.set(n,t),this.throttledOperations.schedule(n,250,()=>{this.pendingProjectUpdates.delete(n)&&Sd(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;let t={eventName:xL,data:{openFiles:ds(this.openFiles.keys(),n=>this.getScriptInfoForPath(n).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,n){if(!this.eventHandler)return;let i={eventName:TQ,data:{file:t,fileSize:n,maxFileSize:vQ}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,n){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;let i={eventName:bQ,data:{project:t,reason:n}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;let n={eventName:SQ,data:{project:t}};this.eventHandler(n)}sendPerformanceEvent(t,n){this.performanceEventHandler&&this.performanceEventHandler({kind:t,durationMs:n})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(t){this.delayUpdateProjectGraph(t),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(t,n){if(t.length){for(let i of t)n&&i.clearSourceMapperCache(),this.delayUpdateProjectGraph(i);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(t,n){w.assert(n===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");let i=CL(t),s=f3(t,n),o=Dde(t);i.allowNonTsExtensions=!0;let c=n&&this.toCanonicalFileName(n);c?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(c,i),this.watchOptionsForInferredProjectsPerProjectRoot.set(c,s||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(c,o)):(this.compilerOptionsForInferredProjects=i,this.watchOptionsForInferredProjects=s,this.typeAcquisitionForInferredProjects=o);for(let p of this.inferredProjects)(c?p.projectRootPath===c:!p.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(p.projectRootPath))&&(p.setCompilerOptions(i),p.setTypeAcquisition(o),p.setWatchOptions(s?.watchOptions),p.setProjectErrors(s?.errors),p.compileOnSaveEnabled=i.compileOnSave,p.markAsDirty(),this.delayUpdateProjectGraph(p));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return ide(t)?S6e(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(go(t))}forEachProject(t){this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t)}forEachEnabledProject(t){this.forEachProject(n=>{!n.isOrphan()&&n.languageServiceEnabled&&t(n)})}getDefaultProjectForFile(t,n){return n?this.ensureDefaultProjectForFile(t):this.tryGetDefaultProjectForFile(t)}tryGetDefaultProjectForFile(t){let n=Is(t)?this.getScriptInfoForNormalizedPath(t):t;return n&&!n.isOrphan()?n.getDefaultProject():void 0}tryGetDefaultProjectForEnsuringConfiguredProjectForFile(t){var n;let i=Is(t)?this.getScriptInfoForNormalizedPath(t):t;if(i)return(n=this.pendingOpenFileProjectUpdates)!=null&&n.delete(i.path)&&(this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(i,5),i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,this.openFiles.get(i.path))),this.tryGetDefaultProjectForFile(i)}ensureDefaultProjectForFile(t){return this.tryGetDefaultProjectForEnsuringConfiguredProjectForFile(t)||this.doEnsureDefaultProjectForFile(t)}doEnsureDefaultProjectForFile(t){this.ensureProjectStructuresUptoDate();let n=Is(t)?this.getScriptInfoForNormalizedPath(t):t;return n?n.getDefaultProject():(this.logErrorForScriptInfoNotFound(Is(t)?t:t.fileName),my.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();let n=i=>{t=Sd(i)||t};this.externalProjects.forEach(n),this.configuredProjects.forEach(n),this.inferredProjects.forEach(n),t&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(t){let n=this.getScriptInfoForNormalizedPath(t);return n&&n.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(t){let n=this.getScriptInfoForNormalizedPath(t);return{...this.hostConfiguration.preferences,...n&&n.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(t,n){w.assert(!t.isScriptOpen()),n===2?this.handleDeletedFile(t,!0):(t.deferredDelete&&(t.deferredDelete=void 0),t.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t))}handleSourceMapProjects(t){if(t.sourceMapFilePath)if(Is(t.sourceMapFilePath)){let n=this.getScriptInfoForPath(t.sourceMapFilePath);this.delayUpdateSourceInfoProjects(n?.sourceInfos)}else this.delayUpdateSourceInfoProjects(t.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(t.sourceInfos),t.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(t.declarationInfoPath)}delayUpdateSourceInfoProjects(t){t&&t.forEach((n,i)=>this.delayUpdateProjectsOfScriptInfoPath(i))}delayUpdateProjectsOfScriptInfoPath(t){let n=this.getScriptInfoForPath(t);n&&this.delayUpdateProjectGraphs(n.containingProjects,!0)}handleDeletedFile(t,n){w.assert(!t.isScriptOpen()),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t),t.detachAllProjects(),n?(t.delayReloadNonMixedContentFile(),t.deferredDelete=!0):this.deleteScriptInfo(t)}watchWildcardDirectory(t,n,i,s){let o=this.watchFactory.watchDirectory(t,p=>this.onWildCardDirectoryWatcherInvoke(t,i,s,c,p),n,this.getWatchOptionsFromProjectWatchOptions(s.parsedCommandLine.watchOptions,ti(i)),Xl.WildcardDirectory,i),c={packageJsonWatches:void 0,close(){var p;o&&(o.close(),o=void 0,(p=c.packageJsonWatches)==null||p.forEach(u=>{u.projects.delete(c),u.close()}),c.packageJsonWatches=void 0)}};return c}onWildCardDirectoryWatcherInvoke(t,n,i,s,o){let c=this.toPath(o),p=i.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(o,c);if(dl(c)==="package.json"&&!wR(c)&&(p&&p.fileExists||!p&&this.host.fileExists(o))){let g=this.getNormalizedAbsolutePath(o);this.logger.info(`Config: ${n} Detected new package.json: ${g}`),this.packageJsonCache.addOrUpdate(g,c),this.watchPackageJsonFile(g,c,s)}p?.fileExists||this.sendSourceFileChange(c);let u=this.findConfiguredProjectByProjectName(n);K4({watchedDirPath:this.toPath(t),fileOrDirectory:o,fileOrDirectoryPath:c,configFileName:n,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:i.parsedCommandLine.options,program:u?.getCurrentProgram()||i.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:g=>this.logger.info(g),toPath:g=>this.toPath(g),getScriptKind:u?g=>u.getScriptKind(g):void 0})||(i.updateLevel!==2&&(i.updateLevel=1),i.projects.forEach((g,d)=>{var h;if(!g)return;let S=this.getConfiguredProjectByCanonicalConfigFilePath(d);if(!S)return;if(u!==S&&this.getHostPreferences().includeCompletionsForModuleExports){let x=this.toPath(n);Bn((h=S.getCurrentProgram())==null?void 0:h.getResolvedProjectReferences(),I=>I?.sourceFile.path===x)&&S.markAutoImportProviderAsDirty()}let T=u===S?1:0;if(!(S.pendingUpdateLevel>T))if(this.openFiles.has(c))if(w.checkDefined(this.getScriptInfoForPath(c)).isAttached(S)){let I=Math.max(T,S.openFileWatchTriggered.get(c)||0);S.openFileWatchTriggered.set(c,I)}else S.pendingUpdateLevel=T,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(S);else S.pendingUpdateLevel=T,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(S)}))}delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,n){let i=this.configFileExistenceInfoCache.get(t);if(!i?.config)return!1;let s=!1;return i.config.updateLevel=2,i.config.cachedDirectoryStructureHost.clearCache(),i.config.projects.forEach((o,c)=>{var p,u,g;let d=this.getConfiguredProjectByCanonicalConfigFilePath(c);if(d)if(s=!0,c===t){if(d.initialLoadPending)return;d.pendingUpdateLevel=2,d.pendingUpdateReason=n,this.delayUpdateProjectGraph(d),d.markAutoImportProviderAsDirty()}else{if(d.initialLoadPending){(u=(p=this.configFileExistenceInfoCache.get(c))==null?void 0:p.openFilesImpactedByConfigFile)==null||u.forEach(S=>{var T;(T=this.pendingOpenFileProjectUpdates)!=null&&T.has(S)||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(S,this.configFileForOpenFiles.get(S))});return}let h=this.toPath(t);d.resolutionCache.removeResolutionsFromProjectReferenceRedirects(h),this.delayUpdateProjectGraph(d),this.getHostPreferences().includeCompletionsForModuleExports&&Bn((g=d.getCurrentProgram())==null?void 0:g.getResolvedProjectReferences(),S=>S?.sourceFile.path===h)&&d.markAutoImportProviderAsDirty()}}),s}onConfigFileChanged(t,n,i){let s=this.configFileExistenceInfoCache.get(n),o=this.getConfiguredProjectByCanonicalConfigFilePath(n),c=o?.deferredClose;i===2?(s.exists=!1,o&&(o.deferredClose=!0)):(s.exists=!0,c&&(o.deferredClose=void 0,o.markAsDirty())),this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(n,"Change in config file detected"),this.openFiles.forEach((p,u)=>{var g,d;let h=this.configFileForOpenFiles.get(u);if(!((g=s.openFilesImpactedByConfigFile)!=null&&g.has(u)))return;this.configFileForOpenFiles.delete(u);let S=this.getScriptInfoForPath(u);this.getConfigFileNameForFile(S,!1)&&((d=this.pendingOpenFileProjectUpdates)!=null&&d.has(u)||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(u,h))}),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),w.shouldAssert(1)&&this.filenameToScriptInfo.forEach(n=>w.assert(!n.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(ds(Hv(this.filenameToScriptInfo.values(),i=>i.isAttached(t)?{fileName:i.fileName,projects:i.containingProjects.map(s=>s.projectName),hasMixedContent:i.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(t.getProjectName()),t.projectKind){case 2:Hx(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:Hx(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,n){w.assert(t.isOrphan());let i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,n)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?n||this.currentDirectory:ti(Sf(t.fileName)?t.fileName:as(t.fileName,n?this.getNormalizedAbsolutePath(n):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(_P(t.containingProjects,i),t.containingProjects.unshift(i)),i.updateGraph(),!this.useSingleInferredProject&&!i.projectRootPath)for(let s of this.inferredProjects){if(s===i||s.isOrphan())continue;let o=s.getRootScriptInfos();w.assert(o.length===1||!!s.projectRootPath),o.length===1&&or(o[0].containingProjects,c=>c!==o[0].containingProjects[0]&&!c.isOrphan())&&s.removeFile(o[0],!0,!0)}return i}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((t,n)=>{let i=this.getScriptInfoForPath(n);i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,t)})}closeOpenFile(t,n){var i;let s=t.isDynamic?!1:this.host.fileExists(t.fileName);t.close(s),this.stopWatchingConfigFilesForScriptInfo(t);let o=this.toCanonicalFileName(t.fileName);this.openFilesWithNonRootedDiskPath.get(o)===t&&this.openFilesWithNonRootedDiskPath.delete(o);let c=!1;for(let p of t.containingProjects){if(mv(p)){t.hasMixedContent&&t.registerFileUpdate();let u=p.openFileWatchTriggered.get(t.path);u!==void 0&&(p.openFileWatchTriggered.delete(t.path),p.pendingUpdateLevel<u&&(p.pendingUpdateLevel=u,p.markFileAsDirty(t.path)))}else lD(p)&&p.isRoot(t)&&(p.isProjectWithSingleRoot()&&(c=!0),p.removeFile(t,s,!0));p.languageServiceEnabled||p.markAsDirty()}return this.openFiles.delete(t.path),this.configFileForOpenFiles.delete(t.path),(i=this.pendingOpenFileProjectUpdates)==null||i.delete(t.path),w.assert(!this.rootOfInferredProjects.has(t)),!n&&c&&this.assignOrphanScriptInfosToInferredProject(),s?this.watchClosedScriptInfo(t):this.handleDeletedFile(t,!1),c}deleteScriptInfo(t){w.assert(!t.isScriptOpen()),this.filenameToScriptInfo.delete(t.path),this.filenameToScriptInfoVersion.set(t.path,t.textStorage.version),this.stopWatchingScriptInfo(t);let n=t.getRealpathIfDifferent();n&&this.realpathToScriptInfos.remove(n,t),t.closeSourceMapFileWatcher()}configFileExists(t,n,i){let s=this.configFileExistenceInfoCache.get(n),o;if(this.openFiles.has(i.path)&&(!MQ(i)||i.isForDefaultProject)&&(s?(s.openFilesImpactedByConfigFile??(s.openFilesImpactedByConfigFile=new Set)).add(i.path):(o=new Set).add(i.path)),s)return s.exists;let c=this.host.fileExists(t);return this.configFileExistenceInfoCache.set(n,{exists:c,openFilesImpactedByConfigFile:o}),c}createConfigFileWatcherForParsedConfig(t,n,i){var s,o;let c=this.configFileExistenceInfoCache.get(n);(!c.watcher||c.watcher===Ade)&&(c.watcher=this.watchFactory.watchFile(t,(p,u)=>this.onConfigFileChanged(t,n,u),2e3,this.getWatchOptionsFromProjectWatchOptions((o=(s=c?.config)==null?void 0:s.parsedCommandLine)==null?void 0:o.watchOptions,ti(t)),Xl.ConfigFile,i)),this.ensureConfigFileWatcherForProject(c,i)}ensureConfigFileWatcherForProject(t,n){let i=t.config.projects;i.set(n.canonicalConfigFilePath,i.get(n.canonicalConfigFilePath)||!1)}releaseParsedConfig(t,n){var i,s,o;let c=this.configFileExistenceInfoCache.get(t);(i=c.config)!=null&&i.projects.delete(n.canonicalConfigFilePath)&&((s=c.config)!=null&&s.projects.size||(c.config=void 0,aV(t,this.sharedExtendedConfigFileWatchers),w.checkDefined(c.watcher),(o=c.openFilesImpactedByConfigFile)!=null&&o.size?c.inferredProjectRoots?nR(ti(t))||(c.watcher.close(),c.watcher=Ade):(c.watcher.close(),c.watcher=void 0):(c.watcher.close(),this.configFileExistenceInfoCache.delete(t))))}stopWatchingConfigFilesForScriptInfo(t){if(this.serverMode!==0)return;let n=this.rootOfInferredProjects.delete(t),i=t.isScriptOpen();i&&!n||this.forEachConfigFileLocation(t,s=>{var o,c,p;let u=this.configFileExistenceInfoCache.get(s);if(u){if(i){if(!((o=u?.openFilesImpactedByConfigFile)!=null&&o.has(t.path)))return}else if(!((c=u.openFilesImpactedByConfigFile)!=null&&c.delete(t.path)))return;n&&(u.inferredProjectRoots--,u.watcher&&!u.config&&!u.inferredProjectRoots&&(u.watcher.close(),u.watcher=void 0)),!((p=u.openFilesImpactedByConfigFile)!=null&&p.size)&&!u.config&&(w.assert(!u.watcher),this.configFileExistenceInfoCache.delete(s))}})}startWatchingConfigFilesForInferredProjectRoot(t){this.serverMode===0&&(w.assert(t.isScriptOpen()),this.rootOfInferredProjects.add(t),this.forEachConfigFileLocation(t,(n,i)=>{let s=this.configFileExistenceInfoCache.get(n);s?s.inferredProjectRoots=(s.inferredProjectRoots??0)+1:(s={exists:this.host.fileExists(i),inferredProjectRoots:1},this.configFileExistenceInfoCache.set(n,s)),(s.openFilesImpactedByConfigFile??(s.openFilesImpactedByConfigFile=new Set)).add(t.path),s.watcher||(s.watcher=nR(ti(n))?this.watchFactory.watchFile(i,(o,c)=>this.onConfigFileChanged(i,n,c),2e3,this.hostConfiguration.watchOptions,Xl.ConfigFileForInferredRoot):Ade)}))}forEachConfigFileLocation(t,n){if(this.serverMode!==0)return;w.assert(!k6e(t)||this.openFiles.has(t.path));let i=this.openFiles.get(t.path);if(w.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let o=ti(t.fileName),c=()=>A_(i,o,this.currentDirectory,!this.host.useCaseSensitiveFileNames),p=!i||!c(),u=!0,g=!0;MQ(t)&&(Bo(t.fileName,"tsconfig.json")?u=!1:u=g=!1);do{let d=cD(o,this.currentDirectory,this.toCanonicalFileName);if(u){let S=Jn(o,"tsconfig.json");if(n(Jn(d,"tsconfig.json"),S))return S}if(g){let S=Jn(o,"jsconfig.json");if(n(Jn(d,"jsconfig.json"),S))return S}if(QO(d))break;let h=ti(o);if(h===o)break;o=h,u=g=!0}while(p||c())}findDefaultConfiguredProject(t){var n;return(n=this.findDefaultConfiguredProjectWorker(t,1))==null?void 0:n.defaultProject}findDefaultConfiguredProjectWorker(t,n){return t.isScriptOpen()?this.tryFindDefaultConfiguredProjectForOpenScriptInfo(t,n):void 0}getConfigFileNameForFileFromCache(t,n){if(n){let i=T6e(t,this.pendingOpenFileProjectUpdates);if(i!==void 0)return i}return T6e(t,this.configFileForOpenFiles)}setConfigFileNameForFileInCache(t,n){if(!this.openFiles.has(t.path))return;let i=n||!1;if(!MQ(t))this.configFileForOpenFiles.set(t.path,i);else{let s=this.configFileForOpenFiles.get(t.path);(!s||Is(s))&&this.configFileForOpenFiles.set(t.path,s=new Map().set(!1,s)),s.set(t.fileName,i)}}getConfigFileNameForFile(t,n){let i=this.getConfigFileNameForFileFromCache(t,n);if(i!==void 0)return i||void 0;if(n)return;let s=this.forEachConfigFileLocation(t,(o,c)=>this.configFileExists(c,o,t));return this.logger.info(`getConfigFileNameForFile:: File: ${t.fileName} ProjectRootPath: ${this.openFiles.get(t.path)}:: Result: ${s}`),this.setConfigFileNameForFileInCache(t,s),s}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(Gde),this.configuredProjects.forEach(Gde),this.inferredProjects.forEach(Gde),this.logger.info("Open files: "),this.openFiles.forEach((t,n)=>{let i=this.getScriptInfoForPath(n);this.logger.info(` FileName: ${i.fileName} ProjectRootPath: ${t}`),this.logger.info(` Projects: ${i.containingProjects.map(s=>s.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(t,n){let i=this.toCanonicalFileName(t),s=this.getConfiguredProjectByCanonicalConfigFilePath(i);return n?s:s?.deferredClose?void 0:s}getConfiguredProjectByCanonicalConfigFilePath(t){return this.configuredProjects.get(t)}findExternalProjectByProjectName(t){return S6e(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,n,i,s){if(n&&n.disableSizeLimit||!this.host.getFileSize)return;let o=yQ;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(p=>o-=p||0);let c=0;for(let p of i){let u=s.getFileName(p);if(!pk(u)&&(c+=this.host.getFileSize(u),c>yQ||c>o)){let g=i.map(d=>s.getFileName(d)).filter(d=>!pk(d)).map(d=>({name:d,size:this.host.getFileSize(d)})).sort((d,h)=>h.size-d.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${c}). Largest files: ${g.map(d=>`${d.name}:${d.size}`).join(", ")}`),u}}this.projectToSizeMap.set(t,c)}createExternalProject(t,n,i,s,o){let c=CL(i),p=f3(i,ti(ou(t))),u=new hQ(t,this,c,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,c,n,NQ),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,p?.watchOptions);return u.setProjectErrors(p?.errors),u.excludedFiles=o,this.addFilesToNonInferredProject(u,n,NQ,s),this.externalProjects.push(u),u}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){jde(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){jde(t);return}let n=mv(t)?t.projectOptions:void 0;jde(t);let i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:c3(t.getScriptInfos(),!0),compilerOptions:wse(t.getCompilationSettings()),typeAcquisition:o(t.getTypeAcquisition()),extends:n&&n.configHasExtendsProperty,files:n&&n.configHasFilesProperty,include:n&&n.configHasIncludeProperty,exclude:n&&n.configHasExcludeProperty,compileOnSave:t.compileOnSaveEnabled,configFileName:s(),projectType:t instanceof hQ?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:Vi};this.eventHandler({eventName:CQ,data:i});function s(){return mv(t)&&gQ(t.getConfigFilePath())||"other"}function o({enable:c,include:p,exclude:u}){return{enable:c,include:p!==void 0&&p.length!==0,exclude:u!==void 0&&u.length!==0}}}addFilesToNonInferredProject(t,n,i,s){this.updateNonInferredProjectFiles(t,n,i),t.setTypeAcquisition(s),t.markAsDirty()}createConfiguredProject(t,n){var i;(i=mn)==null||i.instant(mn.Phase.Session,"createConfiguredProject",{configFilePath:t});let s=this.toCanonicalFileName(t),o=this.configFileExistenceInfoCache.get(s);o?o.exists=!0:this.configFileExistenceInfoCache.set(s,o={exists:!0}),o.config||(o.config={cachedDirectoryStructureHost:mj(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});let c=new Cde(t,s,this,o.config.cachedDirectoryStructureHost,n);return w.assert(!this.configuredProjects.has(s)),this.configuredProjects.set(s,c),this.createConfigFileWatcherForParsedConfig(t,s,c),c}loadConfiguredProject(t,n){var i,s;(i=mn)==null||i.push(mn.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,n);let o=go(t.getConfigFilePath()),c=this.ensureParsedConfigUptoDate(o,t.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),p=c.config.parsedCommandLine;w.assert(!!p.fileNames);let u=p.options;t.projectOptions||(t.projectOptions={configHasExtendsProperty:p.raw.extends!==void 0,configHasFilesProperty:p.raw.files!==void 0,configHasIncludeProperty:p.raw.include!==void 0,configHasExcludeProperty:p.raw.exclude!==void 0}),t.parsedCommandLine=p,t.setProjectErrors(p.options.configFile.parseDiagnostics),t.updateReferences(p.projectReferences);let g=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,u,p.fileNames,EQ);g?(t.disableLanguageService(g),this.configFileExistenceInfoCache.forEach((h,S)=>this.stopWatchingWildCards(S,t))):(t.setCompilerOptions(u),t.setWatchOptions(p.watchOptions),t.enableLanguageService(),this.watchWildcards(o,c,t)),t.enablePluginsWithOptions(u);let d=p.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,d,EQ,u,p.typeAcquisition,p.compileOnSave,p.watchOptions),(s=mn)==null||s.pop()}ensureParsedConfigUptoDate(t,n,i,s){var o,c,p;if(i.config&&(i.config.updateLevel===1&&this.reloadFileNamesOfParsedConfig(t,i.config),!i.config.updateLevel))return this.ensureConfigFileWatcherForProject(i,s),i;if(!i.exists&&i.config)return i.config.updateLevel=void 0,this.ensureConfigFileWatcherForProject(i,s),i;let u=((o=i.config)==null?void 0:o.cachedDirectoryStructureHost)||mj(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),g=ZA(t,I=>this.host.readFile(I)),d=x4(t,Is(g)?g:""),h=d.parseDiagnostics;Is(g)||h.push(g);let S=ti(t),T=A4(d,u,S,void 0,t,void 0,this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);T.errors.length&&h.push(...T.errors),this.logger.info(`Config: ${t} : ${JSON.stringify({rootNames:T.fileNames,options:T.options,watchOptions:T.watchOptions,projectReferences:T.projectReferences},void 0," ")}`);let x=(c=i.config)==null?void 0:c.parsedCommandLine;return i.config?(i.config.parsedCommandLine=T,i.config.watchedDirectoriesStale=!0,i.config.updateLevel=void 0):i.config={parsedCommandLine:T,cachedDirectoryStructureHost:u,projects:new Map},!x&&!G8(this.getWatchOptionsFromProjectWatchOptions(void 0,S),this.getWatchOptionsFromProjectWatchOptions(T.watchOptions,S))&&((p=i.watcher)==null||p.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,n,s),gj(n,T.options,this.sharedExtendedConfigFileWatchers,(I,P)=>this.watchFactory.watchFile(I,()=>{var E;hj(this.extendedConfigCache,P,O=>this.toPath(O));let F=!1;(E=this.sharedExtendedConfigFileWatchers.get(P))==null||E.projects.forEach(O=>{F=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(O,`Change in extended config file ${I} detected`)||F}),F&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,Xl.ExtendedConfigFile,t),I=>this.toPath(I)),i}watchWildcards(t,{exists:n,config:i},s){if(i.projects.set(s.canonicalConfigFilePath,!0),n){if(i.watchedDirectories&&!i.watchedDirectoriesStale)return;i.watchedDirectoriesStale=!1,Q4(i.watchedDirectories||(i.watchedDirectories=new Map),i.parsedCommandLine.wildcardDirectories,(o,c)=>this.watchWildcardDirectory(o,c,t,i))}else{if(i.watchedDirectoriesStale=!1,!i.watchedDirectories)return;cf(i.watchedDirectories,J_),i.watchedDirectories=void 0}}stopWatchingWildCards(t,n){let i=this.configFileExistenceInfoCache.get(t);!i.config||!i.config.projects.get(n.canonicalConfigFilePath)||(i.config.projects.set(n.canonicalConfigFilePath,!1),!Rl(i.config.projects,Do)&&(i.config.watchedDirectories&&(cf(i.config.watchedDirectories,J_),i.config.watchedDirectories=void 0),i.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(t,n,i){var s;let o=t.getRootFilesMap(),c=new Map;for(let p of n){let u=i.getFileName(p),g=go(u),d=YE(g),h;if(!d&&!t.fileExists(u)){h=cD(g,this.currentDirectory,this.toCanonicalFileName);let S=o.get(h);S?(((s=S.info)==null?void 0:s.path)===h&&(t.removeFile(S.info,!1,!0),S.info=void 0),S.fileName=g):o.set(h,{fileName:g})}else{let S=i.getScriptKind(p,this.hostConfiguration.extraFileExtensions),T=i.hasMixedContent(p,this.hostConfiguration.extraFileExtensions),x=w.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(g,t.currentDirectory,S,T,t.directoryStructureHost,!1));h=x.path;let I=o.get(h);!I||I.info!==x?(t.addRoot(x,g),x.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(x)):I.fileName=g}c.set(h,!0)}o.size>c.size&&o.forEach((p,u)=>{c.has(u)||(p.info?t.removeFile(p.info,t.fileExists(p.info.fileName),!0):o.delete(u))})}updateRootAndOptionsOfNonInferredProject(t,n,i,s,o,c,p){t.setCompilerOptions(s),t.setWatchOptions(p),c!==void 0&&(t.compileOnSaveEnabled=c),this.addFilesToNonInferredProject(t,n,i,o)}reloadFileNamesOfConfiguredProject(t){let n=this.reloadFileNamesOfParsedConfig(t.getConfigFilePath(),this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath).config);return t.updateErrorOnNoInputFiles(n),this.updateNonInferredProjectFiles(t,n.fileNames.concat(t.getExternalFiles(1)),EQ),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,n){if(n.updateLevel===void 0)return n.parsedCommandLine;w.assert(n.updateLevel===1);let i=n.parsedCommandLine.options.configFile.configFileSpecs,s=eE(i,ti(t),n.parsedCommandLine.options,n.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return n.parsedCommandLine={...n.parsedCommandLine,fileNames:s},n.updateLevel=void 0,n.parsedCommandLine}setFileNamesOfAutoImportProviderOrAuxillaryProject(t,n){this.updateNonInferredProjectFiles(t,n,EQ)}reloadConfiguredProjectOptimized(t,n,i){i.has(t)||(i.set(t,6),t.initialLoadPending||this.setProjectForReload(t,2,n))}reloadConfiguredProjectClearingSemanticCache(t,n,i){return i.get(t)===7?!1:(i.set(t,7),this.clearSemanticCache(t),this.reloadConfiguredProject(t,OQ(n)),!0)}setProjectForReload(t,n,i){n===2&&this.clearSemanticCache(t),t.pendingUpdateReason=i&&OQ(i),t.pendingUpdateLevel=n}reloadConfiguredProject(t,n){t.initialLoadPending=!1,this.setProjectForReload(t,0),this.loadConfiguredProject(t,n),P6e(t,t.triggerFileForConfigFileDiag??t.getConfigFilePath(),!0)}clearSemanticCache(t){t.originalConfiguredProjects=void 0,t.resolutionCache.clear(),t.getLanguageService(!1).cleanupSemanticCache(),t.cleanupProgram(),t.markAsDirty()}sendConfigFileDiagEvent(t,n,i){if(!this.eventHandler||this.suppressDiagnosticEvents)return!1;let s=t.getLanguageService().getCompilerOptionsDiagnostics();return s.push(...t.getAllProjectErrors()),!i&&s.length===(t.configDiagDiagnosticsReported??0)?!1:(t.configDiagDiagnosticsReported=s.length,this.eventHandler({eventName:kQ,data:{configFileName:t.getConfigFilePath(),diagnostics:s,triggerFile:n??t.getConfigFilePath()}}),!0)}getOrCreateInferredProjectForProjectRootPathIfEnabled(t,n){if(!this.useInferredProjectPerProjectRoot||t.isDynamic&&n===void 0)return;if(n){let s=this.toCanonicalFileName(n);for(let o of this.inferredProjects)if(o.projectRootPath===s)return o;return this.createInferredProject(n,!1,n)}let i;for(let s of this.inferredProjects)s.projectRootPath&&A_(s.projectRootPath,t.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(i&&i.projectRootPath.length>s.projectRootPath.length||(i=s));return i}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject(this.currentDirectory,!0,void 0)}getOrCreateSingleInferredWithoutProjectRoot(t){w.assert(!this.useSingleInferredProject);let n=this.toCanonicalFileName(this.getNormalizedAbsolutePath(t));for(let i of this.inferredProjects)if(!i.projectRootPath&&i.isOrphan()&&i.canonicalCurrentDirectory===n)return i;return this.createInferredProject(t,!1,void 0)}createInferredProject(t,n,i){let s=i&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(i)||this.compilerOptionsForInferredProjects,o,c;i&&(o=this.watchOptionsForInferredProjectsPerProjectRoot.get(i),c=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(i)),o===void 0&&(o=this.watchOptionsForInferredProjects),c===void 0&&(c=this.typeAcquisitionForInferredProjects),o=o||void 0;let p=new Sde(this,s,o?.watchOptions,i,t,c);return p.setProjectErrors(o?.errors),n?this.inferredProjects.unshift(p):this.inferredProjects.push(p),p}getOrCreateScriptInfoNotOpenedByClient(t,n,i,s){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(go(t),n,void 0,void 0,i,s)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(go(t))}getScriptInfoOrConfig(t){let n=go(t),i=this.getScriptInfoForNormalizedPath(n);if(i)return i;let s=this.configuredProjects.get(this.toPath(t));return s&&s.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(t){let n=ds(Hv(this.filenameToScriptInfo.entries(),i=>i[1].deferredDelete?void 0:i),([i,s])=>({path:i,fileName:s.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(t)}.
|
|
All files are: ${JSON.stringify(n)}`,"Err")}getSymlinkedProjects(t){let n;if(this.realpathToScriptInfos){let s=t.getRealpathIfDifferent();s&&or(this.realpathToScriptInfos.get(s),i),or(this.realpathToScriptInfos.get(t.path),i)}return n;function i(s){if(s!==t)for(let o of s.containingProjects)o.languageServiceEnabled&&!o.isOrphan()&&!o.getCompilerOptions().preserveSymlinks&&!t.isAttached(o)&&(n?Rl(n,(c,p)=>p===s.path?!1:ws(c,o))||n.add(s.path,o):(n=od(),n.add(s.path,o)))}}watchClosedScriptInfo(t){if(w.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!Zi(t.path,this.globalCacheLocationDirectoryPath))){let n=t.fileName.indexOf("/node_modules/");!this.host.getModifiedTime||n===-1?t.fileWatcher=this.watchFactory.watchFile(t.fileName,(i,s)=>this.onSourceFileChanged(t,s),500,this.hostConfiguration.watchOptions,Xl.ClosedScriptInfo):(t.mTime=this.getModifiedTime(t),t.fileWatcher=this.watchClosedScriptInfoInNodeModules(t.fileName.substring(0,n)))}}createNodeModulesWatcher(t,n){let i=this.watchFactory.watchDirectory(t,o=>{var c;let p=Aj(this.toPath(o));if(!p)return;let u=dl(p);if((c=s.affectedModuleSpecifierCacheProjects)!=null&&c.size&&(u==="package.json"||u==="node_modules")&&s.affectedModuleSpecifierCacheProjects.forEach(g=>{var d;(d=g.getModuleSpecifierCache())==null||d.clear()}),s.refreshScriptInfoRefCount)if(n===p)this.refreshScriptInfosInDirectory(n);else{let g=this.filenameToScriptInfo.get(p);g?Rde(g)&&this.refreshScriptInfo(g):xw(p)||this.refreshScriptInfosInDirectory(p)}},1,this.hostConfiguration.watchOptions,Xl.NodeModules),s={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var o;i&&!s.refreshScriptInfoRefCount&&!((o=s.affectedModuleSpecifierCacheProjects)!=null&&o.size)&&(i.close(),i=void 0,this.nodeModulesWatchers.delete(n))}};return this.nodeModulesWatchers.set(n,s),s}watchPackageJsonsInNodeModules(t,n){var i;let s=this.toPath(t),o=this.nodeModulesWatchers.get(s)||this.createNodeModulesWatcher(t,s);return w.assert(!((i=o.affectedModuleSpecifierCacheProjects)!=null&&i.has(n))),(o.affectedModuleSpecifierCacheProjects||(o.affectedModuleSpecifierCacheProjects=new Set)).add(n),{close:()=>{var c;(c=o.affectedModuleSpecifierCacheProjects)==null||c.delete(n),o.close()}}}watchClosedScriptInfoInNodeModules(t){let n=t+"/node_modules",i=this.toPath(n),s=this.nodeModulesWatchers.get(i)||this.createNodeModulesWatcher(n,i);return s.refreshScriptInfoRefCount++,{close:()=>{s.refreshScriptInfoRefCount--,s.close()}}}getModifiedTime(t){return(this.host.getModifiedTime(t.fileName)||bf).getTime()}refreshScriptInfo(t){let n=this.getModifiedTime(t);if(n!==t.mTime){let i=gB(t.mTime,n);t.mTime=n,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+Ro,this.filenameToScriptInfo.forEach(n=>{Rde(n)&&Zi(n.path,t)&&this.refreshScriptInfo(n)})}stopWatchingScriptInfo(t){t.fileWatcher&&(t.fileWatcher.close(),t.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(t,n,i,s,o,c){if(Sf(t)||YE(t))return this.getOrCreateScriptInfoWorker(t,n,!1,void 0,i,!!s,o,c);let p=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t));if(p)return p}getOrCreateScriptInfoForNormalizedPath(t,n,i,s,o,c){return this.getOrCreateScriptInfoWorker(t,this.currentDirectory,n,i,s,!!o,c,!1)}getOrCreateScriptInfoWorker(t,n,i,s,o,c,p,u){w.assert(s===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");let g=cD(t,n,this.toCanonicalFileName),d=this.filenameToScriptInfo.get(g);if(d){if(d.deferredDelete){if(w.assert(!d.isDynamic),!i&&!(p||this.host).fileExists(t))return u?d:void 0;d.deferredDelete=void 0}}else{let h=YE(t);if(w.assert(Sf(t)||h||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:n,hostCurrentDirectory:this.currentDirectory,openKeys:ds(this.openFilesWithNonRootedDiskPath.keys())})}
|
|
Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),w.assert(!Sf(t)||this.currentDirectory===n||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:n,hostCurrentDirectory:this.currentDirectory,openKeys:ds(this.openFilesWithNonRootedDiskPath.keys())})}
|
|
Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),w.assert(!h||this.currentDirectory===n||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:t,currentDirectory:n,hostCurrentDirectory:this.currentDirectory,openKeys:ds(this.openFilesWithNonRootedDiskPath.keys())})}
|
|
Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!i&&!h&&!(p||this.host).fileExists(t))return;d=new dde(this.host,t,o,c,g,this.filenameToScriptInfoVersion.get(g)),this.filenameToScriptInfo.set(d.path,d),this.filenameToScriptInfoVersion.delete(d.path),i?!Sf(t)&&(!h||this.currentDirectory!==n)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(t),d):this.watchClosedScriptInfo(d)}return i&&(this.stopWatchingScriptInfo(d),d.open(s),c&&d.registerFileUpdate()),d}getScriptInfoForNormalizedPath(t){return!Sf(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(cD(t,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(t){let n=this.filenameToScriptInfo.get(t);return!n||!n.deferredDelete?n:void 0}getDocumentPositionMapper(t,n,i){let s=this.getOrCreateScriptInfoNotOpenedByClient(n,t.currentDirectory,this.host,!1);if(!s){i&&t.addGeneratedFileWatch(n,i);return}if(s.getSnapshot(),Is(s.sourceMapFilePath)){let g=this.getScriptInfoForPath(s.sourceMapFilePath);if(g&&(g.getSnapshot(),g.documentPositionMapper!==void 0))return g.sourceInfos=this.addSourceInfoToSourceMap(i,t,g.sourceInfos),g.documentPositionMapper?g.documentPositionMapper:void 0;s.sourceMapFilePath=void 0}else if(s.sourceMapFilePath){s.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(i,t,s.sourceMapFilePath.sourceInfos);return}else if(s.sourceMapFilePath!==void 0)return;let o,c=(g,d)=>{let h=this.getOrCreateScriptInfoNotOpenedByClient(g,t.currentDirectory,this.host,!0);if(o=h||d,!h||h.deferredDelete)return;let S=h.getSnapshot();return h.documentPositionMapper!==void 0?h.documentPositionMapper:lC(S)},p=t.projectName,u=I$({getCanonicalFileName:this.toCanonicalFileName,log:g=>this.logger.info(g),getSourceFileLike:g=>this.getSourceFileLike(g,p,s)},s.fileName,s.textStorage.getLineInfo(),c);return c=void 0,o?Is(o)?s.sourceMapFilePath={watcher:this.addMissingSourceMapFile(t.currentDirectory===this.currentDirectory?o:as(o,t.currentDirectory),s.path),sourceInfos:this.addSourceInfoToSourceMap(i,t)}:(s.sourceMapFilePath=o.path,o.declarationInfoPath=s.path,o.deferredDelete||(o.documentPositionMapper=u||!1),o.sourceInfos=this.addSourceInfoToSourceMap(i,t,o.sourceInfos)):s.sourceMapFilePath=!1,u}addSourceInfoToSourceMap(t,n,i){if(t){let s=this.getOrCreateScriptInfoNotOpenedByClient(t,n.currentDirectory,n.directoryStructureHost,!1);(i||(i=new Set)).add(s.path)}return i}addMissingSourceMapFile(t,n){return this.watchFactory.watchFile(t,()=>{let s=this.getScriptInfoForPath(n);s&&s.sourceMapFilePath&&!Is(s.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(s.containingProjects,!0),this.delayUpdateSourceInfoProjects(s.sourceMapFilePath.sourceInfos),s.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,Xl.MissingSourceMapFile)}getSourceFileLike(t,n,i){let s=n.projectName?n:this.findProject(n);if(s){let c=s.toPath(t),p=s.getSourceFile(c);if(p&&p.resolvedPath===c)return p}let o=this.getOrCreateScriptInfoNotOpenedByClient(t,(s||this).currentDirectory,s?s.directoryStructureHost:this.host,!1);if(o){if(i&&Is(i.sourceMapFilePath)&&o!==i){let c=this.getScriptInfoForPath(i.sourceMapFilePath);c&&(c.sourceInfos??(c.sourceInfos=new Set)).add(o.path)}return o.cacheSourceFile?o.cacheSourceFile.sourceFile:(o.sourceFileLike||(o.sourceFileLike={get text(){return w.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:c=>{let p=o.positionToLineOffset(c);return{line:p.line-1,character:p.offset-1}},getPositionOfLineAndCharacter:(c,p,u)=>o.lineOffsetToPosition(c+1,p+1,u)}),o.sourceFileLike)}}setPerformanceEventHandler(t){this.performanceEventHandler=t}setHostConfiguration(t){var n;if(t.file){let i=this.getScriptInfoForNormalizedPath(go(t.file));i&&(i.setOptions(uD(t.formatOptions),t.preferences),this.logger.info(`Host configuration update for file ${t.file}`))}else{if(t.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=t.hostInfo,this.logger.info(`Host information ${t.hostInfo}`)),t.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...uD(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){let{lazyConfiguredProjectsFromExternalProject:i,includePackageJsonAutoImports:s,includeCompletionsForModuleExports:o}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...t.preferences},i&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(c=>c.forEach(p=>{!p.deferredClose&&!p.isClosed()&&p.pendingUpdateLevel===2&&!this.hasPendingProjectUpdate(p)&&p.updateGraph()})),(s!==t.preferences.includePackageJsonAutoImports||!!o!=!!t.preferences.includeCompletionsForModuleExports)&&this.forEachProject(c=>{c.onAutoImportProviderSettingsChanged()})}if(t.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=t.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),t.watchOptions){let i=(n=f3(t.watchOptions))==null?void 0:n.watchOptions,s=B7(i,this.currentDirectory);this.hostConfiguration.watchOptions=s,this.hostConfiguration.beforeSubstitution=s===i?void 0:i,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`)}}}getWatchOptions(t){return this.getWatchOptionsFromProjectWatchOptions(t.getWatchOptions(),t.getCurrentDirectory())}getWatchOptionsFromProjectWatchOptions(t,n){let i=this.hostConfiguration.beforeSubstitution?B7(this.hostConfiguration.beforeSubstitution,n):this.hostConfiguration.watchOptions;return t&&i?{...i,...t}:t||i}closeLog(){this.logger.close()}sendSourceFileChange(t){this.filenameToScriptInfo.forEach(n=>{if(this.openFiles.has(n.path)||!n.fileWatcher)return;let i=up(()=>this.host.fileExists(n.fileName)?n.deferredDelete?0:1:2);if(t){if(Rde(n)||!n.path.startsWith(t)||i()===2&&n.deferredDelete)return;this.logger.info(`Invoking sourceFileChange on ${n.fileName}:: ${i()}`)}this.onSourceFileChanged(n,i())})}reloadProjects(){this.logger.info("reload projects."),this.sendSourceFileChange(void 0),this.pendingProjectUpdates.forEach((i,s)=>{this.throttledOperations.cancel(s),this.pendingProjectUpdates.delete(s)}),this.throttledOperations.cancel(v6e),this.pendingOpenFileProjectUpdates=void 0,this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(i=>{i.config&&(i.config.updateLevel=2,i.config.cachedDirectoryStructureHost.clearCache())}),this.configFileForOpenFiles.clear(),this.externalProjects.forEach(i=>{this.clearSemanticCache(i),i.updateGraph()});let t=new Map,n=new Set;this.externalProjectToConfiguredProjectMap.forEach((i,s)=>{let o=`Reloading configured project in external project: ${s}`;i.forEach(c=>{this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.reloadConfiguredProjectOptimized(c,o,t):this.reloadConfiguredProjectClearingSemanticCache(c,o,t)})}),this.openFiles.forEach((i,s)=>{let o=this.getScriptInfoForPath(s);Bn(o.containingProjects,l3)||this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(o,7,t,n)}),n.forEach(i=>t.set(i,7)),this.inferredProjects.forEach(i=>this.clearSemanticCache(i)),this.ensureProjectForOpenFiles(),this.cleanupProjectsAndScriptInfos(t,new Set(this.openFiles.keys()),new Set(this.externalProjectToConfiguredProjectMap.keys())),this.logger.info("After reloading projects.."),this.printProjects()}removeRootOfInferredProjectIfNowPartOfOtherProject(t){w.assert(t.containingProjects.length>0);let n=t.containingProjects[0];!n.isOrphan()&&lD(n)&&n.isRoot(t)&&or(t.containingProjects,i=>i!==n&&!i.isOrphan())&&n.removeFile(t,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects();let t=this.pendingOpenFileProjectUpdates;this.pendingOpenFileProjectUpdates=void 0,t?.forEach((n,i)=>this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(this.getScriptInfoForPath(i),5)),this.openFiles.forEach((n,i)=>{let s=this.getScriptInfoForPath(i);s.isOrphan()?this.assignOrphanScriptInfoToInferredProject(s,n):this.removeRootOfInferredProjectIfNowPartOfOtherProject(s)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(Sd),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,n,i,s){return this.openClientFileWithNormalizedPath(go(t),n,i,!1,s?go(s):void 0)}getOriginalLocationEnsuringConfiguredProject(t,n){let i=t.isSourceOfProjectReferenceRedirect(n.fileName),s=i?n:t.getSourceMapper().tryGetSourcePosition(n);if(!s)return;let{fileName:o}=s,c=this.getScriptInfo(o);if(!c&&!this.host.fileExists(o))return;let p={fileName:go(o),path:this.toPath(o)},u=this.getConfigFileNameForFile(p,!1);if(!u)return;let g=this.findConfiguredProjectByProjectName(u);if(!g){if(t.getCompilerOptions().disableReferencedProjectLoad)return i?n:c?.containingProjects.length?s:n;g=this.createConfiguredProject(u,`Creating project for original file: ${p.fileName}${n!==s?" for location: "+n.fileName:""}`)}let d=this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(p,5,Nde(g,4),T=>`Creating project referenced in solution ${T.projectName} to find possible configured project for original file: ${p.fileName}${n!==s?" for location: "+n.fileName:""}`);if(!d.defaultProject)return;if(d.defaultProject===t)return s;S(d.defaultProject);let h=this.getScriptInfo(o);if(!h||!h.containingProjects.length)return;return h.containingProjects.forEach(T=>{mv(T)&&S(T)}),s;function S(T){(t.originalConfiguredProjects??(t.originalConfiguredProjects=new Set)).add(T.canonicalConfigFilePath)}}fileExists(t){return!!this.getScriptInfoForNormalizedPath(t)||this.host.fileExists(t)}findExternalProjectContainingOpenScriptInfo(t){return Bn(this.externalProjects,n=>(Sd(n),n.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(t,n,i,s,o){let c=this.getOrCreateScriptInfoWorker(t,o?this.getNormalizedAbsolutePath(o):this.currentDirectory,!0,n,i,!!s,void 0,!0);return this.openFiles.set(c.path,o),c}assignProjectToOpenedScriptInfo(t){let n,i,s=this.findExternalProjectContainingOpenScriptInfo(t),o,c;if(!s&&this.serverMode===0){let p=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(t,5);p&&(o=p.seenProjects,c=p.sentConfigDiag,p.defaultProject&&(n=p.defaultProject.getConfigFilePath(),i=p.defaultProject.getAllProjectErrors()))}return t.containingProjects.forEach(Sd),t.isOrphan()&&(o?.forEach((p,u)=>{p!==4&&!c.has(u)&&this.sendConfigFileDiagEvent(u,t.fileName,!0)}),w.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),w.assert(!t.isOrphan()),{configFileName:n,configFileErrors:i,retainProjects:o}}findCreateOrReloadConfiguredProject(t,n,i,s,o,c,p,u,g){let d=g??this.findConfiguredProjectByProjectName(t,s),h=!1,S;switch(n){case 0:case 1:case 3:if(!d)return;break;case 2:if(!d)return;S=_st(d);break;case 4:case 5:d??(d=this.createConfiguredProject(t,i)),p||({sentConfigFileDiag:h,configFileExistenceInfo:S}=Nde(d,n,o));break;case 6:if(d??(d=this.createConfiguredProject(t,OQ(i))),d.projectService.reloadConfiguredProjectOptimized(d,i,c),S=Ode(d),S)break;case 7:d??(d=this.createConfiguredProject(t,OQ(i))),h=!u&&this.reloadConfiguredProjectClearingSemanticCache(d,i,c),u&&!u.has(d)&&!c.has(d)&&(this.setProjectForReload(d,2,i),u.add(d));break;default:w.assertNever(n)}return{project:d,sentConfigFileDiag:h,configFileExistenceInfo:S,reason:i}}tryFindDefaultConfiguredProjectForOpenScriptInfo(t,n,i,s){let o=this.getConfigFileNameForFile(t,n<=3);if(!o)return;let c=x6e(n),p=this.findCreateOrReloadConfiguredProject(o,c,dst(t),i,t.fileName,s);return p&&this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(t,n,p,u=>`Creating project referenced in solution ${u.projectName} to find possible configured project for ${t.fileName} to open`,i,s)}isMatchedByConfig(t,n,i){if(n.fileNames.some(u=>this.toPath(u)===i.path))return!0;if(MG(i.fileName,n.options,this.hostConfiguration.extraFileExtensions))return!1;let{validatedFilesSpec:s,validatedIncludeSpecs:o,validatedExcludeSpecs:c}=n.options.configFile.configFileSpecs,p=go(as(ti(t),this.currentDirectory));return s?.some(u=>this.toPath(as(u,p))===i.path)?!0:!o?.length||U7(i.fileName,c,this.host.useCaseSensitiveFileNames,this.currentDirectory,p)?!1:o?.some(u=>{let g=PG(u,p,"files");return!!g&&ev(`(${g})$`,this.host.useCaseSensitiveFileNames).test(i.fileName)})}tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(t,n,i,s,o,c){let p=k6e(t),u=x6e(n),g=new Map,d,h=new Set,S,T,x,I;return P(i),{defaultProject:S??T,tsconfigProject:x??I,sentConfigDiag:h,seenProjects:g,seenConfigs:d};function P($){return O($,$.project)??W($.project)??z($.project)}function E($,X,U,_e,re,V){if(X){if(g.has(X))return;g.set(X,u)}else{if(d?.has(V))return;(d??(d=new Set)).add(V)}if(!re.projectService.isMatchedByConfig(U,$.config.parsedCommandLine,t)){re.languageServiceEnabled&&re.projectService.watchWildcards(U,$,re);return}let ce=X?Nde(X,n,t.fileName,_e,c):re.projectService.findCreateOrReloadConfiguredProject(U,n,_e,o,t.fileName,c);if(!ce){w.assert(n===3);return}return g.set(ce.project,u),ce.sentConfigFileDiag&&h.add(ce.project),F(ce.project,re)}function F($,X){if(g.get($)===n)return;g.set($,n);let U=p?t:$.projectService.getScriptInfo(t.fileName),_e=U&&$.containsScriptInfo(U);if(_e&&!$.isSourceOfProjectReferenceRedirect(U.path))return x=X,S=$;!T&&p&&_e&&(I=X,T=$)}function O($,X){return $.sentConfigFileDiag&&h.add($.project),$.configFileExistenceInfo?E($.configFileExistenceInfo,$.project,go($.project.getConfigFilePath()),$.reason,$.project,$.project.canonicalConfigFilePath):F($.project,X)}function W($){return $.parsedCommandLine&&w6e($,$.parsedCommandLine,E,u,s($),o,c)}function z($){return p?C6e(t,$,P,u,`Creating possible configured project for ${t.fileName} to open`,o,c,!1):void 0}}tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(t,n,i,s){let o=n===1,c=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(t,n,o,i);if(!c)return;let{defaultProject:p,tsconfigProject:u,seenProjects:g}=c;return p&&C6e(t,u,d=>{g.set(d.project,n)},n,`Creating project possibly referencing default composite project ${p.getProjectName()} of open file ${t.fileName}`,o,i,!0,s),c}loadAncestorProjectTree(t){t??(t=new Set(Hv(this.configuredProjects.entries(),([s,o])=>o.initialLoadPending?void 0:s)));let n=new Set,i=ds(this.configuredProjects.values());for(let s of i)I6e(s,o=>t.has(o))&&Sd(s),this.ensureProjectChildren(s,t,n)}ensureProjectChildren(t,n,i){var s;if(!Uy(i,t.canonicalConfigFilePath)||t.getCompilerOptions().disableReferencedProjectLoad)return;let o=(s=t.getCurrentProgram())==null?void 0:s.getResolvedProjectReferences();if(o)for(let c of o){if(!c)continue;let p=XG(c.references,d=>n.has(d.sourceFile.path)?d:void 0);if(!p)continue;let u=go(c.sourceFile.fileName),g=this.findConfiguredProjectByProjectName(u)??this.createConfiguredProject(u,`Creating project referenced by : ${t.projectName} as it references project ${p.sourceFile.fileName}`);Sd(g),this.ensureProjectChildren(g,n,i)}}cleanupConfiguredProjects(t,n,i){this.getOrphanConfiguredProjects(t,i,n).forEach(s=>this.removeProject(s))}cleanupProjectsAndScriptInfos(t,n,i){this.cleanupConfiguredProjects(t,i,n);for(let s of this.inferredProjects.slice())s.isOrphan()&&this.removeProject(s);this.removeOrphanScriptInfos()}tryInvokeWildCardDirectories(t){this.configFileExistenceInfoCache.forEach((n,i)=>{var s,o;!((s=n.config)!=null&&s.parsedCommandLine)||ws(n.config.parsedCommandLine.fileNames,t.fileName,this.host.useCaseSensitiveFileNames?uS:tb)||(o=n.config.watchedDirectories)==null||o.forEach((c,p)=>{A_(p,t.fileName,!this.host.useCaseSensitiveFileNames)&&(this.logger.info(`Invoking ${i}:: wildcard for open scriptInfo:: ${t.fileName}`),this.onWildCardDirectoryWatcherInvoke(p,i,n.config,c.watcher,t.fileName))})})}openClientFileWithNormalizedPath(t,n,i,s,o){let c=this.getScriptInfoForPath(cD(t,o?this.getNormalizedAbsolutePath(o):this.currentDirectory,this.toCanonicalFileName)),p=this.getOrCreateOpenScriptInfo(t,n,i,s,o);!c&&p&&!p.isDynamic&&this.tryInvokeWildCardDirectories(p);let{retainProjects:u,...g}=this.assignProjectToOpenedScriptInfo(p);return this.cleanupProjectsAndScriptInfos(u,new Set([p.path]),void 0),this.telemetryOnOpenFile(p),this.printProjects(),g}getOrphanConfiguredProjects(t,n,i){let s=new Set(this.configuredProjects.values()),o=g=>{g.originalConfiguredProjects&&(mv(g)||!g.isOrphan())&&g.originalConfiguredProjects.forEach((d,h)=>{let S=this.getConfiguredProjectByCanonicalConfigFilePath(h);return S&&u(S)})};if(t?.forEach((g,d)=>u(d)),!s.size||(this.inferredProjects.forEach(o),this.externalProjects.forEach(o),this.externalProjectToConfiguredProjectMap.forEach((g,d)=>{i?.has(d)||g.forEach(u)}),!s.size)||(Rl(this.openFiles,(g,d)=>{if(n?.has(d))return;let h=this.getScriptInfoForPath(d);if(Bn(h.containingProjects,l3))return;let S=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(h,1);if(S?.defaultProject&&(S?.seenProjects.forEach((T,x)=>u(x)),!s.size))return s}),!s.size))return s;return Rl(this.configuredProjects,g=>{if(s.has(g)&&(p(g)||D6e(g,c))&&(u(g),!s.size))return s}),s;function c(g){return!s.has(g)||p(g)}function p(g){var d,h;return(g.deferredClose||g.projectService.hasPendingProjectUpdate(g))&&!!((h=(d=g.projectService.configFileExistenceInfoCache.get(g.canonicalConfigFilePath))==null?void 0:d.openFilesImpactedByConfigFile)!=null&&h.size)}function u(g){s.delete(g)&&(o(g),D6e(g,u))}}removeOrphanScriptInfos(){let t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(n=>{if(!n.deferredDelete){if(!n.isScriptOpen()&&n.isOrphan()&&!gde(n)&&!mde(n)){if(!n.sourceMapFilePath)return;let i;if(Is(n.sourceMapFilePath)){let s=this.filenameToScriptInfo.get(n.sourceMapFilePath);i=s?.sourceInfos}else i=n.sourceMapFilePath.sourceInfos;if(!i||!ch(i,s=>{let o=this.getScriptInfoForPath(s);return!!o&&(o.isScriptOpen()||!o.isOrphan())}))return}if(t.delete(n.path),n.sourceMapFilePath){let i;if(Is(n.sourceMapFilePath)){let s=this.filenameToScriptInfo.get(n.sourceMapFilePath);s?.deferredDelete?n.sourceMapFilePath={watcher:this.addMissingSourceMapFile(s.fileName,n.path),sourceInfos:s.sourceInfos}:t.delete(n.sourceMapFilePath),i=s?.sourceInfos}else i=n.sourceMapFilePath.sourceInfos;i&&i.forEach((s,o)=>t.delete(o))}}}),t.forEach(n=>this.deleteScriptInfo(n))}telemetryOnOpenFile(t){if(this.serverMode!==0||!this.eventHandler||!t.isJavaScript()||!dd(this.allJsFilesForOpenFileTelemetry,t.path))return;let n=this.ensureDefaultProjectForFile(t);if(!n.languageServiceEnabled)return;let i=n.getSourceFile(t.path),s=!!i&&!!i.checkJsDirective;this.eventHandler({eventName:wde,data:{info:{checkJs:s}}})}closeClientFile(t,n){let i=this.getScriptInfoForNormalizedPath(go(t)),s=i?this.closeOpenFile(i,n):!1;return n||this.printProjects(),s}collectChanges(t,n,i,s){for(let o of n){let c=Bn(t,p=>p.projectName===o.getProjectName());s.push(o.getChangesSinceVersion(c&&c.version,i))}}synchronizeProjectList(t,n){let i=[];return this.collectChanges(t,this.externalProjects,n,i),this.collectChanges(t,Hv(this.configuredProjects.values(),s=>s.deferredClose?void 0:s),n,i),this.collectChanges(t,this.inferredProjects,n,i),i}applyChangesInOpenFiles(t,n,i){let s,o,c=!1;if(t)for(let u of t){(s??(s=[])).push(this.getScriptInfoForPath(cD(go(u.fileName),u.projectRootPath?this.getNormalizedAbsolutePath(u.projectRootPath):this.currentDirectory,this.toCanonicalFileName)));let g=this.getOrCreateOpenScriptInfo(go(u.fileName),u.content,PQ(u.scriptKind),u.hasMixedContent,u.projectRootPath?go(u.projectRootPath):void 0);(o||(o=[])).push(g)}if(n)for(let u of n){let g=this.getScriptInfo(u.fileName);w.assert(!!g),this.applyChangesToFile(g,u.changes)}if(i)for(let u of i)c=this.closeClientFile(u,!0)||c;let p;or(s,(u,g)=>!u&&o[g]&&!o[g].isDynamic?this.tryInvokeWildCardDirectories(o[g]):void 0),o?.forEach(u=>{var g;return(g=this.assignProjectToOpenedScriptInfo(u).retainProjects)==null?void 0:g.forEach((d,h)=>(p??(p=new Map)).set(h,d))}),c&&this.assignOrphanScriptInfosToInferredProject(),o?(this.cleanupProjectsAndScriptInfos(p,new Set(o.map(u=>u.path)),void 0),o.forEach(u=>this.telemetryOnOpenFile(u)),this.printProjects()):Dr(i)&&this.printProjects()}applyChangesToFile(t,n){for(let i of n)t.editContent(i.span.start,i.span.start+i.span.length,i.newText)}closeExternalProject(t,n){let i=go(t);if(this.externalProjectToConfiguredProjectMap.get(i))this.externalProjectToConfiguredProjectMap.delete(i);else{let o=this.findExternalProjectByProjectName(t);o&&this.removeProject(o)}n&&(this.cleanupConfiguredProjects(),this.printProjects())}openExternalProjects(t){let n=new Set(this.externalProjects.map(i=>i.getProjectName()));this.externalProjectToConfiguredProjectMap.forEach((i,s)=>n.add(s));for(let i of t)this.openExternalProject(i,!1),n.delete(i.projectFileName);n.forEach(i=>this.closeExternalProject(i,!1)),this.cleanupConfiguredProjects(),this.printProjects()}static escapeFilenameForRegex(t){return t.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=Ide}applySafeList(t){let n=t.typeAcquisition;w.assert(!!n,"proj.typeAcquisition should be set by now");let i=this.applySafeListWorker(t,t.rootFiles,n);return i?.excludedFiles??[]}applySafeListWorker(t,n,i){if(i.enable===!1||i.disableFilenameBasedTypeAcquisition)return;let s=i.include||(i.include=[]),o=[],c=n.map(h=>ou(h.fileName));for(let h of Object.keys(this.safelist)){let S=this.safelist[h];for(let T of c)if(S.match.test(T)){if(this.logger.info(`Excluding files based on rule ${h} matching file '${T}'`),S.types)for(let x of S.types)s.includes(x)||s.push(x);if(S.exclude)for(let x of S.exclude){let I=T.replace(S.match,(...P)=>x.map(E=>typeof E=="number"?Is(P[E])?gve.escapeFilenameForRegex(P[E]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${h} - not enough groups`),"\\*"):E).join(""));o.includes(I)||o.push(I)}else{let x=gve.escapeFilenameForRegex(T);o.includes(x)||o.push(x)}}}let p=o.map(h=>new RegExp(h,"i")),u,g;for(let h=0;h<n.length;h++)if(p.some(S=>S.test(c[h])))d(h);else{if(i.enable){let S=dl(Zv(c[h]));if(uc(S,"js")){let T=dp(S),x=JW(T),I=this.legacySafelist.get(x);if(I!==void 0){this.logger.info(`Excluded '${c[h]}' because it matched ${x} from the legacy safelist`),d(h),s.includes(I)||s.push(I);continue}}}/^.+[.-]min\.js$/.test(c[h])?d(h):u?.push(n[h])}return g?{rootFiles:u,excludedFiles:g}:void 0;function d(h){g||(w.assert(!u),u=n.slice(0,h),g=[]),g.push(c[h])}}openExternalProject(t,n){let i=this.findExternalProjectByProjectName(t.projectFileName),s,o=[];for(let c of t.rootFiles){let p=go(c.fileName);if(gQ(p)){if(this.serverMode===0&&this.host.fileExists(p)){let u=this.findConfiguredProjectByProjectName(p);u||(u=this.createConfiguredProject(p,`Creating configured project in external project: ${t.projectFileName}`),this.getHostPreferences().lazyConfiguredProjectsFromExternalProject||u.updateGraph()),(s??(s=new Set)).add(u),w.assert(!u.isClosed())}}else o.push(c)}if(s)this.externalProjectToConfiguredProjectMap.set(t.projectFileName,s),i&&this.removeProject(i);else{this.externalProjectToConfiguredProjectMap.delete(t.projectFileName);let c=t.typeAcquisition||{};c.include=c.include||[],c.exclude=c.exclude||[],c.enable===void 0&&(c.enable=vde(o.map(g=>g.fileName)));let p=this.applySafeListWorker(t,o,c),u=p?.excludedFiles??[];if(o=p?.rootFiles??o,i){i.excludedFiles=u;let g=CL(t.options),d=f3(t.options,i.getCurrentDirectory()),h=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,g,o,NQ);h?i.disableLanguageService(h):i.enableLanguageService(),i.setProjectErrors(d?.errors),this.updateRootAndOptionsOfNonInferredProject(i,o,NQ,g,c,t.options.compileOnSave,d?.watchOptions),i.updateGraph()}else this.createExternalProject(t.projectFileName,o,t.options,c,u).updateGraph()}n&&(this.cleanupConfiguredProjects(s,new Set([t.projectFileName])),this.printProjects())}hasDeferredExtension(){for(let t of this.hostConfiguration.extraFileExtensions)if(t.scriptKind===7)return!0;return!1}requestEnablePlugin(t,n,i){if(!this.host.importPlugin&&!this.host.require){this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}if(this.logger.info(`Enabling plugin ${n.name} from candidate paths: ${i.join(",")}`),!n.name||Ul(n.name)||/[\\/]\.\.?(?:$|[\\/])/.test(n.name)){this.logger.info(`Skipped loading plugin ${n.name||JSON.stringify(n)} because only package name is allowed plugin name`);return}if(this.host.importPlugin){let s=kC.importServicePluginAsync(n,i,this.host,c=>this.logger.info(c));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let o=this.pendingPluginEnablements.get(t);o||this.pendingPluginEnablements.set(t,o=[]),o.push(s);return}this.endEnablePlugin(t,kC.importServicePluginSync(n,i,this.host,s=>this.logger.info(s)))}endEnablePlugin(t,{pluginConfigEntry:n,resolvedModule:i,errorLogs:s}){var o;if(i){let c=(o=this.currentPluginConfigOverrides)==null?void 0:o.get(n.name);if(c){let p=n.name;n=c,n.name=p}t.enableProxy(i,n)}else or(s,c=>this.logger.info(c)),this.logger.info(`Couldn't find ${n.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;let t=ds(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){w.assert(this.currentPluginEnablementPromise===void 0);let n=!1;await Promise.all(kr(t,async([i,s])=>{let o=await Promise.all(s);if(i.isClosed()||p3(i)){this.logger.info(`Cancelling plugin enabling for ${i.getProjectName()} as it is ${i.isClosed()?"closed":"deferred close"}`);return}n=!0;for(let c of o)this.endEnablePlugin(i,c);this.delayUpdateProjectGraph(i)})),this.currentPluginEnablementPromise=void 0,n&&this.sendProjectsUpdatedInBackgroundEvent()}configurePlugin(t){this.forEachEnabledProject(n=>n.onPluginConfigurationChanged(t.pluginName,t.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(t.pluginName,t.configuration)}getPackageJsonsVisibleToFile(t,n,i){let s=this.packageJsonCache,o=i&&this.toPath(i),c=[],p=u=>{switch(s.directoryHasPackageJson(u)){case 3:return s.searchDirectoryAndAncestors(u,n),p(u);case-1:let g=Jn(u,"package.json");this.watchPackageJsonFile(g,this.toPath(g),n);let d=s.getInDirectory(u);d&&c.push(d)}if(o&&o===u)return!0};return Eg(n,ti(t),p),c}getNearestAncestorDirectoryWithPackageJson(t,n){return Eg(n,t,i=>{switch(this.packageJsonCache.directoryHasPackageJson(i)){case-1:return i;case 0:return;case 3:return this.host.fileExists(Jn(i,"package.json"))?i:void 0}})}watchPackageJsonFile(t,n,i){w.assert(i!==void 0);let s=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(n);if(!s){let o=this.watchFactory.watchFile(t,(c,p)=>{switch(p){case 0:case 1:this.packageJsonCache.addOrUpdate(c,n),this.onPackageJsonChange(s);break;case 2:this.packageJsonCache.delete(n),this.onPackageJsonChange(s),s.projects.clear(),s.close()}},250,this.hostConfiguration.watchOptions,Xl.PackageJson);s={projects:new Set,close:()=>{var c;s.projects.size||!o||(o.close(),o=void 0,(c=this.packageJsonFilesMap)==null||c.delete(n),this.packageJsonCache.invalidate(n))}},this.packageJsonFilesMap.set(n,s)}s.projects.add(i),(i.packageJsonWatches??(i.packageJsonWatches=new Set)).add(s)}onPackageJsonChange(t){t.projects.forEach(n=>{var i;return(i=n.onPackageJsonChange)==null?void 0:i.call(n)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=gst())}};E6e.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g;var Bde=E6e;function gst(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function zde(e){return e.kind!==void 0}function Gde(e){e.print(!1,!1,!1)}function Jde(e){let t,n,i,s={get(u,g,d,h){if(!(!n||i!==c(u,d,h)))return n.get(g)},set(u,g,d,h,S,T,x){if(o(u,d,h).set(g,p(S,T,x,void 0,!1)),x){for(let I of T)if(I.isInNodeModules){let P=I.path.substring(0,I.path.indexOf(Th)+Th.length-1),E=e.toPath(P);t?.has(E)||(t||(t=new Map)).set(E,e.watchNodeModulesForPackageJsonChanges(P))}}},setModulePaths(u,g,d,h,S){let T=o(u,d,h),x=T.get(g);x?x.modulePaths=S:T.set(g,p(void 0,S,void 0,void 0,void 0))},setBlockedByPackageJsonDependencies(u,g,d,h,S,T){let x=o(u,d,h),I=x.get(g);I?(I.isBlockedByPackageJsonDependencies=T,I.packageName=S):x.set(g,p(void 0,void 0,void 0,S,T))},clear(){t?.forEach(Fd),n?.clear(),t?.clear(),i=void 0},count(){return n?n.size:0}};return w.isDebugging&&Object.defineProperty(s,"__cache",{get:()=>n}),s;function o(u,g,d){let h=c(u,g,d);return n&&i!==h&&s.clear(),i=h,n||(n=new Map)}function c(u,g,d){return`${u},${g.importModuleSpecifierEnding},${g.importModuleSpecifierPreference},${d.overrideImportMode}`}function p(u,g,d,h,S){return{kind:u,modulePaths:g,moduleSpecifiers:d,packageName:h,isBlockedByPackageJsonDependencies:S}}}function Ude(e){let t=new Map,n=new Map;return{addOrUpdate:i,invalidate:s,delete:c=>{t.delete(c),n.set(ti(c),!0)},getInDirectory:c=>t.get(e.toPath(Jn(c,"package.json")))||void 0,directoryHasPackageJson:c=>o(e.toPath(c)),searchDirectoryAndAncestors:(c,p)=>{Eg(p,c,u=>{let g=e.toPath(u);if(o(g)!==3)return!0;let d=Jn(u,"package.json");jE(e,d)?i(d,Jn(g,"package.json")):n.set(g,!0)})}};function i(c,p){let u=w.checkDefined(l$(c,e.host));t.set(p,u),n.delete(ti(p))}function s(c){t.delete(c),n.delete(ti(c))}function o(c){return t.has(Jn(c,"package.json"))?-1:n.has(c)?0:3}}var N6e={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}};function hst(e){let t=e[0],n=e[1];return(1e9*t+n)/1e6}function M6e(e,t){if((lD(e)||l3(e))&&e.isJsOnlyProject()){let n=e.getScriptInfoForNormalizedPath(t);return n&&!n.isJavaScript()}return!1}function yst(e){return lf(e)||!!e.emitDecoratorMetadata}function R6e(e,t,n){let i=t.getScriptInfoForNormalizedPath(e);return{start:i.positionToLineOffset(n.start),end:i.positionToLineOffset(n.start+n.length),text:tg(n.messageText,`
|
|
`),code:n.code,category:zT(n),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,source:n.source,relatedInformation:kr(n.relatedInformation,FQ)}}function FQ(e){return e.file?{span:{start:pD(Hs(e.file,e.start)),end:pD(Hs(e.file,e.start+e.length)),file:e.file.fileName},message:tg(e.messageText,`
|
|
`),category:zT(e),code:e.code}:{message:tg(e.messageText,`
|
|
`),category:zT(e),code:e.code}}function pD(e){return{line:e.line+1,offset:e.character+1}}function _3(e,t){let n=e.file&&pD(Hs(e.file,e.start)),i=e.file&&pD(Hs(e.file,e.start+e.length)),s=tg(e.messageText,`
|
|
`),{code:o,source:c}=e,p=zT(e),u={start:n,end:i,text:s,code:o,category:p,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:c,relatedInformation:kr(e.relatedInformation,FQ)};return t?{...u,fileName:e.file&&e.file.fileName}:u}function vst(e,t){return e.every(n=>mc(n.span)<t)}var O6e=fde;function Vde(e,t,n,i){let s=t.hasLevel(3),o=JSON.stringify(e);return s&&t.info(`${e.type}:${a1(e)}`),`Content-Length: ${1+n(o,"utf8")}\r
|
|
\r
|
|
${o}${i}`}var bst=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){this.requestId!==void 0&&(this.operationHost.sendRequestCompletedEvent(this.requestId,this.performanceData),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0),this.performanceData=void 0}immediate(e,t){let n=this.requestId;w.assert(n===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(n,()=>this.executeAction(t),this.performanceData)},e))}delay(e,t,n){let i=this.requestId;w.assert(i===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(i,()=>this.executeAction(n),this.performanceData)},t,e))}executeAction(e){var t,n,i,s,o,c;let p=!1;try{this.operationHost.isCancellationRequested()?(p=!0,(t=mn)==null||t.instant(mn.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((n=mn)==null||n.push(mn.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=mn)==null||i.pop())}catch(u){(s=mn)==null||s.popAll(),p=!0,u instanceof bP?(o=mn)==null||o.instant(mn.Phase.Session,"stepCanceled",{seq:this.requestId}):((c=mn)==null||c.instant(mn.Phase.Session,"stepError",{seq:this.requestId,message:u.message}),this.operationHost.logError(u,`delayed processing of request ${this.requestId}`))}this.performanceData=this.operationHost.getPerformanceData(),(p||!this.hasPendingWork())&&this.complete()}setTimerHandle(e){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}};function qde(e,t){return{seq:0,type:"event",event:e,body:t}}function Sst(e,t,n,i){let s=uP(gs(n)?n:n.projects,o=>i(o,e));return!gs(n)&&n.symLinkedProjects&&n.symLinkedProjects.forEach((o,c)=>{let p=t(c);s.push(...Ma(o,u=>i(u,p)))}),oS(s,eb)}function jQ(e){return LW(({textSpan:t})=>t.start+100003*t.length,Kq(e))}function Tst(e,t,n,i,s,o,c){let p=$de(e,t,n,F6e(t,n,!0),W6e,(d,h)=>d.getLanguageService().findRenameLocations(h.fileName,h.pos,i,s,o),(d,h)=>h(eN(d)));if(gs(p))return p;let u=[],g=jQ(c);return p.forEach((d,h)=>{for(let S of d)!g.has(S)&&!LQ(eN(S),h)&&(u.push(S),g.add(S))}),u}function F6e(e,t,n){let i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,n),s=i&&_l(i);return s&&!s.isLocal?{fileName:s.fileName,pos:s.textSpan.start}:void 0}function kst(e,t,n,i,s){var o,c;let p=$de(e,t,n,F6e(t,n,!1),W6e,(h,S)=>(s.info(`Finding references to ${S.fileName} position ${S.pos} in project ${h.getProjectName()}`),h.getLanguageService().findReferences(S.fileName,S.pos)),(h,S)=>{S(eN(h.definition));for(let T of h.references)S(eN(T))});if(gs(p))return p;let u=p.get(t);if(((c=(o=u?.[0])==null?void 0:o.references[0])==null?void 0:c.isDefinition)===void 0)p.forEach(h=>{for(let S of h)for(let T of S.references)delete T.isDefinition});else{let h=jQ(i);for(let T of u)for(let x of T.references)if(x.isDefinition){h.add(x);break}let S=new Set;for(;;){let T=!1;if(p.forEach((x,I)=>{if(S.has(I))return;I.getLanguageService().updateIsDefinitionOfReferencedSymbols(x,h)&&(S.add(I),T=!0)}),!T)break}p.forEach((T,x)=>{if(!S.has(x))for(let I of T)for(let P of I.references)P.isDefinition=!1})}let g=[],d=jQ(i);return p.forEach((h,S)=>{for(let T of h){let x=LQ(eN(T.definition),S),I=x===void 0?T.definition:{...T.definition,textSpan:yu(x.pos,T.definition.textSpan.length),fileName:x.fileName,contextSpan:Cst(T.definition,S)},P=Bn(g,E=>Qq(E.definition,I,i));P||(P={definition:I,references:[]},g.push(P));for(let E of T.references)!d.has(E)&&!LQ(eN(E),S)&&(d.add(E),P.references.push(E))}}),g.filter(h=>h.references.length!==0)}function j6e(e,t,n){for(let i of gs(e)?e:e.projects)n(i,t);!gs(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,s)=>{for(let o of i)n(o,s)})}function $de(e,t,n,i,s,o,c){let p=new Map,u=pM();u.enqueue({project:t,location:n}),j6e(e,n.fileName,(I,P)=>{let E={fileName:P,pos:n.pos};u.enqueue({project:I,location:E})});let g=t.projectService,d=t.getCancellationToken(),h=up(()=>t.isSourceOfProjectReferenceRedirect(i.fileName)?i:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(i)),S=up(()=>t.isSourceOfProjectReferenceRedirect(i.fileName)?i:t.getLanguageService().getSourceMapper().tryGetSourcePosition(i)),T=new Set;e:for(;!u.isEmpty();){for(;!u.isEmpty();){if(d.isCancellationRequested())break e;let{project:I,location:P}=u.dequeue();if(p.has(I)||B6e(I,P)||(Sd(I),!I.containsFile(go(P.fileName))))continue;let E=x(I,P);p.set(I,E??jl),T.add(xst(I))}i&&(g.loadAncestorProjectTree(T),g.forEachEnabledProject(I=>{if(d.isCancellationRequested()||p.has(I))return;let P=s(i,I,h,S);P&&u.enqueue({project:I,location:P})}))}if(p.size===1)return NW(p.values());return p;function x(I,P){let E=o(I,P);if(!E||!c)return E;for(let F of E)c(F,O=>{let W=g.getOriginalLocationEnsuringConfiguredProject(I,O);if(!W)return;let z=g.getScriptInfo(W.fileName);for(let X of z.containingProjects)!X.isOrphan()&&!p.has(X)&&u.enqueue({project:X,location:W});let $=g.getSymlinkedProjects(z);$&&$.forEach((X,U)=>{for(let _e of X)!_e.isOrphan()&&!p.has(_e)&&u.enqueue({project:_e,location:{fileName:U,pos:W.pos}})})});return E}}function L6e(e,t){if(t.containsFile(go(e.fileName))&&!B6e(t,e))return e}function W6e(e,t,n,i){let s=L6e(e,t);if(s)return s;let o=n();if(o&&t.containsFile(go(o.fileName)))return o;let c=i();return c&&t.containsFile(go(c.fileName))?c:void 0}function B6e(e,t){if(!t)return!1;let n=e.getLanguageService().getProgram();if(!n)return!1;let i=n.getSourceFile(t.fileName);return!!i&&i.resolvedPath!==i.path&&i.resolvedPath!==e.toPath(t.fileName)}function xst(e){return mv(e)?e.canonicalConfigFilePath:e.getProjectName()}function eN({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function LQ(e,t){return EE(e,t.getSourceMapper(),n=>t.projectService.fileExists(n))}function z6e(e,t){return h5(e,t.getSourceMapper(),n=>t.projectService.fileExists(n))}function Cst(e,t){return Yq(e,t.getSourceMapper(),n=>t.projectService.fileExists(n))}var G6e=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","getPasteEdits","copilotRelated"],wst=[...G6e,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full","preparePasteEdits"],J6e=class xY{constructor(t){this.changeSeq=0,this.regionDiagLineCountThreshold=500,this.handlers=new Map(Object.entries({status:()=>{let o={version:Vi};return this.requiredResponse(o)},openExternalProject:o=>(this.projectService.openExternalProject(o.arguments,!0),this.requiredResponse(!0)),openExternalProjects:o=>(this.projectService.openExternalProjects(o.arguments.projects),this.requiredResponse(!0)),closeExternalProject:o=>(this.projectService.closeExternalProject(o.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:o=>{let c=this.projectService.synchronizeProjectList(o.arguments.knownProjects,o.arguments.includeProjectReferenceRedirectInfo);if(!c.some(u=>u.projectErrors&&u.projectErrors.length!==0))return this.requiredResponse(c);let p=kr(c,u=>!u.projectErrors||u.projectErrors.length===0?u:{info:u.info,changes:u.changes,files:u.files,projectErrors:this.convertToDiagnosticsWithLinePosition(u.projectErrors,void 0)});return this.requiredResponse(p)},updateOpen:o=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(o.arguments.openFiles&&lP(o.arguments.openFiles,c=>({fileName:c.file,content:c.fileContent,scriptKind:c.scriptKindName,projectRootPath:c.projectRootPath})),o.arguments.changedFiles&&lP(o.arguments.changedFiles,c=>({fileName:c.fileName,changes:Hv(AW(c.textChanges),p=>{let u=w.checkDefined(this.projectService.getScriptInfo(c.fileName)),g=u.lineOffsetToPosition(p.start.line,p.start.offset),d=u.lineOffsetToPosition(p.end.line,p.end.offset);return g>=0?{span:{start:g,length:d-g},newText:p.newText}:void 0})})),o.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:o=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(o.arguments.openFiles,o.arguments.changedFiles&&lP(o.arguments.changedFiles,c=>({fileName:c.fileName,changes:AW(c.changes)})),o.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired(void 0)),definition:o=>this.requiredResponse(this.getDefinition(o.arguments,!0)),"definition-full":o=>this.requiredResponse(this.getDefinition(o.arguments,!1)),definitionAndBoundSpan:o=>this.requiredResponse(this.getDefinitionAndBoundSpan(o.arguments,!0)),"definitionAndBoundSpan-full":o=>this.requiredResponse(this.getDefinitionAndBoundSpan(o.arguments,!1)),findSourceDefinition:o=>this.requiredResponse(this.findSourceDefinition(o.arguments)),"emit-output":o=>this.requiredResponse(this.getEmitOutput(o.arguments)),typeDefinition:o=>this.requiredResponse(this.getTypeDefinition(o.arguments)),implementation:o=>this.requiredResponse(this.getImplementation(o.arguments,!0)),"implementation-full":o=>this.requiredResponse(this.getImplementation(o.arguments,!1)),references:o=>this.requiredResponse(this.getReferences(o.arguments,!0)),"references-full":o=>this.requiredResponse(this.getReferences(o.arguments,!1)),rename:o=>this.requiredResponse(this.getRenameLocations(o.arguments,!0)),"renameLocations-full":o=>this.requiredResponse(this.getRenameLocations(o.arguments,!1)),"rename-full":o=>this.requiredResponse(this.getRenameInfo(o.arguments)),open:o=>(this.openClientFile(go(o.arguments.file),o.arguments.fileContent,AQ(o.arguments.scriptKindName),o.arguments.projectRootPath?go(o.arguments.projectRootPath):void 0),this.notRequired(o)),quickinfo:o=>this.requiredResponse(this.getQuickInfoWorker(o.arguments,!0)),"quickinfo-full":o=>this.requiredResponse(this.getQuickInfoWorker(o.arguments,!1)),getOutliningSpans:o=>this.requiredResponse(this.getOutliningSpans(o.arguments,!0)),outliningSpans:o=>this.requiredResponse(this.getOutliningSpans(o.arguments,!1)),todoComments:o=>this.requiredResponse(this.getTodoComments(o.arguments)),indentation:o=>this.requiredResponse(this.getIndentation(o.arguments)),nameOrDottedNameSpan:o=>this.requiredResponse(this.getNameOrDottedNameSpan(o.arguments)),breakpointStatement:o=>this.requiredResponse(this.getBreakpointStatement(o.arguments)),braceCompletion:o=>this.requiredResponse(this.isValidBraceCompletion(o.arguments)),docCommentTemplate:o=>this.requiredResponse(this.getDocCommentTemplate(o.arguments)),getSpanOfEnclosingComment:o=>this.requiredResponse(this.getSpanOfEnclosingComment(o.arguments)),fileReferences:o=>this.requiredResponse(this.getFileReferences(o.arguments,!0)),"fileReferences-full":o=>this.requiredResponse(this.getFileReferences(o.arguments,!1)),format:o=>this.requiredResponse(this.getFormattingEditsForRange(o.arguments)),formatonkey:o=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(o.arguments)),"format-full":o=>this.requiredResponse(this.getFormattingEditsForDocumentFull(o.arguments)),"formatonkey-full":o=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(o.arguments)),"formatRange-full":o=>this.requiredResponse(this.getFormattingEditsForRangeFull(o.arguments)),completionInfo:o=>this.requiredResponse(this.getCompletions(o.arguments,"completionInfo")),completions:o=>this.requiredResponse(this.getCompletions(o.arguments,"completions")),"completions-full":o=>this.requiredResponse(this.getCompletions(o.arguments,"completions-full")),completionEntryDetails:o=>this.requiredResponse(this.getCompletionEntryDetails(o.arguments,!1)),"completionEntryDetails-full":o=>this.requiredResponse(this.getCompletionEntryDetails(o.arguments,!0)),compileOnSaveAffectedFileList:o=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(o.arguments)),compileOnSaveEmitFile:o=>this.requiredResponse(this.emitFile(o.arguments)),signatureHelp:o=>this.requiredResponse(this.getSignatureHelpItems(o.arguments,!0)),"signatureHelp-full":o=>this.requiredResponse(this.getSignatureHelpItems(o.arguments,!1)),"compilerOptionsDiagnostics-full":o=>this.requiredResponse(this.getCompilerOptionsDiagnostics(o.arguments)),"encodedSyntacticClassifications-full":o=>this.requiredResponse(this.getEncodedSyntacticClassifications(o.arguments)),"encodedSemanticClassifications-full":o=>this.requiredResponse(this.getEncodedSemanticClassifications(o.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:o=>this.requiredResponse(this.getSemanticDiagnosticsSync(o.arguments)),syntacticDiagnosticsSync:o=>this.requiredResponse(this.getSyntacticDiagnosticsSync(o.arguments)),suggestionDiagnosticsSync:o=>this.requiredResponse(this.getSuggestionDiagnosticsSync(o.arguments)),geterr:o=>(this.errorCheck.startNew(c=>this.getDiagnostics(c,o.arguments.delay,o.arguments.files)),this.notRequired(void 0)),geterrForProject:o=>(this.errorCheck.startNew(c=>this.getDiagnosticsForProject(c,o.arguments.delay,o.arguments.file)),this.notRequired(void 0)),change:o=>(this.change(o.arguments),this.notRequired(o)),configure:o=>(this.projectService.setHostConfiguration(o.arguments),this.notRequired(o)),reload:o=>(this.reload(o.arguments),this.requiredResponse({reloadFinished:!0})),saveto:o=>{let c=o.arguments;return this.saveToTmp(c.file,c.tmpfile),this.notRequired(o)},close:o=>{let c=o.arguments;return this.closeClientFile(c.file),this.notRequired(o)},navto:o=>this.requiredResponse(this.getNavigateToItems(o.arguments,!0)),"navto-full":o=>this.requiredResponse(this.getNavigateToItems(o.arguments,!1)),brace:o=>this.requiredResponse(this.getBraceMatching(o.arguments,!0)),"brace-full":o=>this.requiredResponse(this.getBraceMatching(o.arguments,!1)),navbar:o=>this.requiredResponse(this.getNavigationBarItems(o.arguments,!0)),"navbar-full":o=>this.requiredResponse(this.getNavigationBarItems(o.arguments,!1)),navtree:o=>this.requiredResponse(this.getNavigationTree(o.arguments,!0)),"navtree-full":o=>this.requiredResponse(this.getNavigationTree(o.arguments,!1)),documentHighlights:o=>this.requiredResponse(this.getDocumentHighlights(o.arguments,!0)),"documentHighlights-full":o=>this.requiredResponse(this.getDocumentHighlights(o.arguments,!1)),compilerOptionsForInferredProjects:o=>(this.setCompilerOptionsForInferredProjects(o.arguments),this.requiredResponse(!0)),projectInfo:o=>this.requiredResponse(this.getProjectInfo(o.arguments)),reloadProjects:o=>(this.projectService.reloadProjects(),this.notRequired(o)),jsxClosingTag:o=>this.requiredResponse(this.getJsxClosingTag(o.arguments)),linkedEditingRange:o=>this.requiredResponse(this.getLinkedEditingRange(o.arguments)),getCodeFixes:o=>this.requiredResponse(this.getCodeFixes(o.arguments,!0)),"getCodeFixes-full":o=>this.requiredResponse(this.getCodeFixes(o.arguments,!1)),getCombinedCodeFix:o=>this.requiredResponse(this.getCombinedCodeFix(o.arguments,!0)),"getCombinedCodeFix-full":o=>this.requiredResponse(this.getCombinedCodeFix(o.arguments,!1)),applyCodeActionCommand:o=>this.requiredResponse(this.applyCodeActionCommand(o.arguments)),getSupportedCodeFixes:o=>this.requiredResponse(this.getSupportedCodeFixes(o.arguments)),getApplicableRefactors:o=>this.requiredResponse(this.getApplicableRefactors(o.arguments)),getEditsForRefactor:o=>this.requiredResponse(this.getEditsForRefactor(o.arguments,!0)),getMoveToRefactoringFileSuggestions:o=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(o.arguments)),preparePasteEdits:o=>this.requiredResponse(this.preparePasteEdits(o.arguments)),getPasteEdits:o=>this.requiredResponse(this.getPasteEdits(o.arguments)),"getEditsForRefactor-full":o=>this.requiredResponse(this.getEditsForRefactor(o.arguments,!1)),organizeImports:o=>this.requiredResponse(this.organizeImports(o.arguments,!0)),"organizeImports-full":o=>this.requiredResponse(this.organizeImports(o.arguments,!1)),getEditsForFileRename:o=>this.requiredResponse(this.getEditsForFileRename(o.arguments,!0)),"getEditsForFileRename-full":o=>this.requiredResponse(this.getEditsForFileRename(o.arguments,!1)),configurePlugin:o=>(this.configurePlugin(o.arguments),this.notRequired(o)),selectionRange:o=>this.requiredResponse(this.getSmartSelectionRange(o.arguments,!0)),"selectionRange-full":o=>this.requiredResponse(this.getSmartSelectionRange(o.arguments,!1)),prepareCallHierarchy:o=>this.requiredResponse(this.prepareCallHierarchy(o.arguments)),provideCallHierarchyIncomingCalls:o=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(o.arguments)),provideCallHierarchyOutgoingCalls:o=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(o.arguments)),toggleLineComment:o=>this.requiredResponse(this.toggleLineComment(o.arguments,!0)),"toggleLineComment-full":o=>this.requiredResponse(this.toggleLineComment(o.arguments,!1)),toggleMultilineComment:o=>this.requiredResponse(this.toggleMultilineComment(o.arguments,!0)),"toggleMultilineComment-full":o=>this.requiredResponse(this.toggleMultilineComment(o.arguments,!1)),commentSelection:o=>this.requiredResponse(this.commentSelection(o.arguments,!0)),"commentSelection-full":o=>this.requiredResponse(this.commentSelection(o.arguments,!1)),uncommentSelection:o=>this.requiredResponse(this.uncommentSelection(o.arguments,!0)),"uncommentSelection-full":o=>this.requiredResponse(this.uncommentSelection(o.arguments,!1)),provideInlayHints:o=>this.requiredResponse(this.provideInlayHints(o.arguments)),mapCode:o=>this.requiredResponse(this.mapCode(o.arguments)),copilotRelated:()=>this.requiredResponse(this.getCopilotRelatedInfo())})),this.host=t.host,this.cancellationToken=t.cancellationToken,this.typingsInstaller=t.typingsInstaller||wL,this.byteLength=t.byteLength,this.hrtime=t.hrtime,this.logger=t.logger,this.canUseEvents=t.canUseEvents,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=t.noGetErrOnBackgroundUpdate;let{throttleWaitMilliseconds:n}=t;this.eventHandler=this.canUseEvents?t.eventHandler||(o=>this.defaultEventHandler(o)):void 0;let i={executeWithRequestId:(o,c,p)=>this.executeWithRequestId(o,c,p),getCurrentRequestId:()=>this.currentRequestId,getPerformanceData:()=>this.performanceData,getServerHost:()=>this.host,logError:(o,c)=>this.logError(o,c),sendRequestCompletedEvent:(o,c)=>this.sendRequestCompletedEvent(o,c),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new bst(i);let s={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:t.useSingleInferredProject,useInferredProjectPerProjectRoot:t.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:n,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:t.globalPlugins,pluginProbeLocations:t.pluginProbeLocations,allowLocalPluginLoads:t.allowLocalPluginLoads,typesMapLocation:t.typesMapLocation,serverMode:t.serverMode,session:this,canUseWatchEvents:t.canUseWatchEvents,incrementalVerifier:t.incrementalVerifier};switch(this.projectService=new Bde(s),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new ude(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:G6e.forEach(o=>this.handlers.set(o,c=>{throw new Error(`Request: ${c.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:wst.forEach(o=>this.handlers.set(o,c=>{throw new Error(`Request: ${c.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:w.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(t,n){this.event({request_seq:t,performanceData:n&&U6e(n)},"requestCompleted")}addPerformanceData(t,n){this.performanceData||(this.performanceData={}),this.performanceData[t]=(this.performanceData[t]??0)+n}addDiagnosticsPerformanceData(t,n,i){var s,o;this.performanceData||(this.performanceData={});let c=(s=this.performanceData.diagnosticsDuration)==null?void 0:s.get(t);c||((o=this.performanceData).diagnosticsDuration??(o.diagnosticsDuration=new Map)).set(t,c={}),c[n]=i}performanceEventHandler(t){switch(t.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",t.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",t.durationMs);break}}defaultEventHandler(t){switch(t.eventName){case xL:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case bQ:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case SQ:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case TQ:case wQ:case IQ:case DQ:this.event(t.data,t.eventName);break;case kQ:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:kr(t.data.diagnostics,n=>_3(n,!0))},t.eventName);break;case xQ:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case CQ:{this.event({telemetryEventName:t.eventName,payload:t.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(t){this.projectService.logger.info(`got projects updated in background ${t}`),t.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&(this.projectService.logger.info(`Queueing diagnostics update for ${t}`),this.errorCheck.startNew(n=>this.updateErrorCheck(n,t,100,!0))),this.event({openFiles:t},xL))}logError(t,n){this.logErrorWorker(t,n)}logErrorWorker(t,n,i){let s="Exception on executing command "+n;if(t.message&&(s+=`:
|
|
`+xE(t.message),t.stack&&(s+=`
|
|
`+xE(t.stack))),this.logger.hasLevel(3)){if(i)try{let{file:o,project:c}=this.getFileAndProject(i),p=c.getScriptInfoForNormalizedPath(o);if(p){let u=lC(p.getSnapshot());s+=`
|
|
|
|
File text of ${i.file}:${xE(u)}
|
|
`}}catch{}if(t.ProgramFiles){s+=`
|
|
|
|
Program files: ${JSON.stringify(t.ProgramFiles)}
|
|
`,s+=`
|
|
|
|
Projects::
|
|
`;let o=0,c=p=>{s+=`
|
|
Project '${p.projectName}' (${ZE[p.projectKind]}) ${o}
|
|
`,s+=p.filesToString(!0),s+=`
|
|
-----------------------------------------------
|
|
`,o++};this.projectService.externalProjects.forEach(c),this.projectService.configuredProjects.forEach(c),this.projectService.inferredProjects.forEach(c)}}this.logger.msg(s,"Err")}send(t){if(t.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${a1(t)}`);return}this.writeMessage(t)}writeMessage(t){let n=Vde(t,this.logger,this.byteLength,this.host.newLine);this.host.write(n)}event(t,n){this.send(qde(n,t))}doOutput(t,n,i,s,o,c){let p={seq:0,type:"response",command:n,request_seq:i,success:s,performanceData:o&&U6e(o)};if(s){let u;if(gs(t))p.body=t,u=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){let{metadata:g,...d}=t;p.body=d,u=g}else p.body=t;else p.body=t;u&&(p.metadata=u)}else w.assert(t===void 0);c&&(p.message=c),this.send(p)}semanticCheck(t,n){var i,s;let o=bo();(i=mn)==null||i.push(mn.Phase.Session,"semanticCheck",{file:t,configFilePath:n.canonicalConfigFilePath});let c=M6e(n,t)?jl:n.getLanguageService().getSemanticDiagnostics(t).filter(p=>!!p.file);this.sendDiagnosticsEvent(t,n,c,"semanticDiag",o),(s=mn)==null||s.pop()}syntacticCheck(t,n){var i,s;let o=bo();(i=mn)==null||i.push(mn.Phase.Session,"syntacticCheck",{file:t,configFilePath:n.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,n,n.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag",o),(s=mn)==null||s.pop()}suggestionCheck(t,n){var i,s;let o=bo();(i=mn)==null||i.push(mn.Phase.Session,"suggestionCheck",{file:t,configFilePath:n.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,n,n.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag",o),(s=mn)==null||s.pop()}regionSemanticCheck(t,n,i){var s,o,c;let p=bo();(s=mn)==null||s.push(mn.Phase.Session,"regionSemanticCheck",{file:t,configFilePath:n.canonicalConfigFilePath});let u;if(!this.shouldDoRegionCheck(t)||!(u=n.getLanguageService().getRegionSemanticDiagnostics(t,i))){(o=mn)==null||o.pop();return}this.sendDiagnosticsEvent(t,n,u.diagnostics,"regionSemanticDiag",p,u.spans),(c=mn)==null||c.pop()}shouldDoRegionCheck(t){var n;let i=(n=this.projectService.getScriptInfoForNormalizedPath(t))==null?void 0:n.textStorage.getLineInfo().getLineCount();return!!(i&&i>=this.regionDiagLineCountThreshold)}sendDiagnosticsEvent(t,n,i,s,o,c){try{let p=w.checkDefined(n.getScriptInfo(t)),u=bo()-o,g={file:t,diagnostics:i.map(d=>R6e(t,n,d)),spans:c?.map(d=>ag(d,p))};this.event(g,s),this.addDiagnosticsPerformanceData(t,s,u)}catch(p){this.logError(p,s)}}updateErrorCheck(t,n,i,s=!0){if(n.length===0)return;w.assert(!this.suppressDiagnosticEvents);let o=this.changeSeq,c=Math.min(i,200),p=0,u=()=>{if(p++,n.length>p)return t.delay("checkOne",c,d)},g=(h,S)=>{if(this.semanticCheck(h,S),this.changeSeq===o){if(this.getPreferences(h).disableSuggestions)return u();t.immediate("suggestionCheck",()=>{this.suggestionCheck(h,S),u()})}},d=()=>{if(this.changeSeq!==o)return;let h,S=n[p];if(Is(S)?S=this.toPendingErrorCheck(S):"ranges"in S&&(h=S.ranges,S=this.toPendingErrorCheck(S.file)),!S)return u();let{fileName:T,project:x}=S;if(Sd(x),!!x.containsFile(T,s)&&(this.syntacticCheck(T,x),this.changeSeq===o)){if(x.projectService.serverMode!==0)return u();if(h)return t.immediate("regionSemanticCheck",()=>{let I=this.projectService.getScriptInfoForNormalizedPath(T);I&&this.regionSemanticCheck(T,x,h.map(P=>this.getRange({file:T,...P},I))),this.changeSeq===o&&t.immediate("semanticCheck",()=>g(T,x))});t.immediate("semanticCheck",()=>g(T,x))}};n.length>p&&this.changeSeq===o&&t.delay("checkOne",i,d)}cleanProjects(t,n){if(n){this.logger.info(`cleaning ${t}`);for(let i of n)i.getLanguageService(!1).cleanupSemanticCache(),i.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",ds(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t);return i.getEncodedSyntacticClassifications(n,t)}getEncodedSemanticClassifications(t){let{file:n,project:i}=this.getFileAndProject(t),s=t.format==="2020"?"2020":"original";return i.getLanguageService().getEncodedSemanticClassifications(n,t,s)}getProject(t){return t===void 0?void 0:this.projectService.findProject(t)}getConfigFileAndProject(t){let n=this.getProject(t.projectFileName),i=go(t.file);return{configFile:n&&n.hasConfigFile(i)?i:void 0,project:n}}getConfigFileDiagnostics(t,n,i){let s=n.getAllProjectErrors(),o=n.getLanguageService().getCompilerOptionsDiagnostics(),c=Mn(Qi(s,o),p=>!!p.file&&p.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(c):kr(c,p=>_3(p,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(n=>({message:tg(n.messageText,this.host.newLine),start:n.start,length:n.length,category:zT(n),code:n.code,source:n.source,startLocation:n.file&&pD(Hs(n.file,n.start)),endLocation:n.file&&pD(Hs(n.file,n.start+n.length)),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,relatedInformation:kr(n.relatedInformation,FQ)}))}getCompilerOptionsDiagnostics(t){let n=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(Mn(n.getLanguageService().getCompilerOptionsDiagnostics(),i=>!i.file),void 0)}convertToDiagnosticsWithLinePosition(t,n){return t.map(i=>({message:tg(i.messageText,this.host.newLine),start:i.start,length:i.length,category:zT(i),code:i.code,source:i.source,startLocation:n&&n.positionToLineOffset(i.start),endLocation:n&&n.positionToLineOffset(i.start+i.length),reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated,relatedInformation:kr(i.relatedInformation,FQ)}))}getDiagnosticsWorker(t,n,i,s){let{project:o,file:c}=this.getFileAndProject(t);if(n&&M6e(o,c))return jl;let p=o.getScriptInfoForNormalizedPath(c),u=i(o,c);return s?this.convertToDiagnosticsWithLinePosition(u,p):u.map(g=>R6e(c,o,g))}getDefinition(t,n){let{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=this.mapDefinitionInfoLocations(s.getLanguageService().getDefinitionAtPosition(i,o)||jl,s);return n?this.mapDefinitionInfo(c,s):c.map(xY.mapToOriginalLocation)}mapDefinitionInfoLocations(t,n){return t.map(i=>{let s=z6e(i,n);return s?{...s,containerKind:i.containerKind,containerName:i.containerName,kind:i.kind,name:i.name,failedAliasResolution:i.failedAliasResolution,...i.unverified&&{unverified:i.unverified}}:i})}getDefinitionAndBoundSpan(t,n){let{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=w.checkDefined(s.getScriptInfo(i)),p=s.getLanguageService().getDefinitionAndBoundSpan(i,o);if(!p||!p.definitions)return{definitions:jl,textSpan:void 0};let u=this.mapDefinitionInfoLocations(p.definitions,s),{textSpan:g}=p;return n?{definitions:this.mapDefinitionInfo(u,s),textSpan:ag(g,c)}:{definitions:u.map(xY.mapToOriginalLocation),textSpan:g}}findSourceDefinition(t){var n;let{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=s.getLanguageService().getDefinitionAtPosition(i,o),p=this.mapDefinitionInfoLocations(c||jl,s).slice();if(this.projectService.serverMode===0&&(!_t(p,T=>go(T.fileName)!==i&&!T.isAmbient)||_t(p,T=>!!T.failedAliasResolution))){let T=LW(E=>E.textSpan.start,Kq(this.host.useCaseSensitiveFileNames));p?.forEach(E=>T.add(E));let x=s.getNoDtsResolutionProject(i),I=x.getLanguageService(),P=(n=I.getDefinitionAtPosition(i,o,!0,!1))==null?void 0:n.filter(E=>go(E.fileName)!==i);if(_t(P))for(let E of P){if(E.unverified){let F=h(E,s.getLanguageService().getProgram(),I.getProgram());if(_t(F)){for(let O of F)T.add(O);continue}}T.add(E)}else{let E=p.filter(F=>go(F.fileName)!==i&&F.isAmbient);for(let F of _t(E)?E:d()){let O=g(F.fileName,i,x);if(!O)continue;let W=this.projectService.getOrCreateScriptInfoNotOpenedByClient(O,x.currentDirectory,x.directoryStructureHost,!1);if(!W)continue;x.containsScriptInfo(W)||(x.addRoot(W),x.updateGraph());let z=I.getProgram(),$=w.checkDefined(z.getSourceFile(O));for(let X of S(F.name,$,z))T.add(X)}}p=ds(T.values())}return p=p.filter(T=>!T.isAmbient&&!T.failedAliasResolution),this.mapDefinitionInfo(p,s);function g(T,x,I){var P,E,F;let O=V8(T);if(O&&T.lastIndexOf(Th)===O.topLevelNodeModulesIndex){let W=T.substring(0,O.packageRootIndex),z=(P=s.getModuleResolutionCache())==null?void 0:P.getPackageJsonInfoCache(),$=s.getCompilationSettings(),X=sE(as(W,s.getCurrentDirectory()),iE(z,s,$));if(!X)return;let U=yU(X,{moduleResolution:2},s,s.getModuleResolutionCache()),_e=T.substring(O.topLevelPackageNameIndex+1,O.packageRootIndex),re=aE(F4(_e)),V=s.toPath(T);if(U&&_t(U,ce=>s.toPath(ce)===V))return(E=I.resolutionCache.resolveSingleModuleNameWithoutWatching(re,x).resolvedModule)==null?void 0:E.resolvedFileName;{let ce=T.substring(O.packageRootIndex+1),oe=`${re}/${dp(ce)}`;return(F=I.resolutionCache.resolveSingleModuleNameWithoutWatching(oe,x).resolvedModule)==null?void 0:F.resolvedFileName}}}function d(){let T=s.getLanguageService(),x=T.getProgram(),I=Kp(x.getSourceFile(i),o);return(Ha(I)||Be(I))&&Oo(I.parent)&&Kre(I,P=>{var E;if(P===I)return;let F=(E=T.getDefinitionAtPosition(i,P.getStart(),!0,!1))==null?void 0:E.filter(O=>go(O.fileName)!==i&&O.isAmbient).map(O=>({fileName:O.fileName,name:R_(I)}));if(_t(F))return F})||jl}function h(T,x,I){var P;let E=I.getSourceFile(T.fileName);if(!E)return;let F=Kp(x.getSourceFile(i),o),O=x.getTypeChecker().getSymbolAtLocation(F),W=O&&$o(O,277);if(!W)return;let z=((P=W.propertyName)==null?void 0:P.text)||W.name.text;return S(z,E,I)}function S(T,x,I){let P=jo.Core.getTopMostDeclarationNamesInFile(T,x);return Ji(P,E=>{let F=I.getTypeChecker().getSymbolAtLocation(E),O=rA(E);if(F&&O)return aD.createDefinitionInfo(O,I.getTypeChecker(),F,O,!0)})}}getEmitOutput(t){let{file:n,project:i}=this.getFileAndProject(t);if(!i.shouldEmitFile(i.getScriptInfo(n)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};let s=i.getLanguageService().getEmitOutput(n);return t.richResponse?{...s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(s.diagnostics):s.diagnostics.map(o=>_3(o,!0))}:s}mapJSDocTagInfo(t,n,i){return t?t.map(s=>{var o;return{...s,text:i?this.mapDisplayParts(s.text,n):(o=s.text)==null?void 0:o.map(c=>c.text).join("")}}):[]}mapDisplayParts(t,n){return t?t.map(i=>i.kind!=="linkName"?i:{...i,target:this.toFileSpan(i.target.fileName,i.target.textSpan,n)}):[]}mapSignatureHelpItems(t,n,i){return t.map(s=>({...s,documentation:this.mapDisplayParts(s.documentation,n),parameters:s.parameters.map(o=>({...o,documentation:this.mapDisplayParts(o.documentation,n)})),tags:this.mapJSDocTagInfo(s.tags,n,i)}))}mapDefinitionInfo(t,n){return t.map(i=>({...this.toFileSpanWithContext(i.fileName,i.textSpan,i.contextSpan,n),...i.unverified&&{unverified:i.unverified}}))}static mapToOriginalLocation(t){return t.originalFileName?(w.assert(t.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...t,fileName:t.originalFileName,textSpan:t.originalTextSpan,targetFileName:t.fileName,targetTextSpan:t.textSpan,contextSpan:t.originalContextSpan,targetContextSpan:t.contextSpan}):t}toFileSpan(t,n,i){let s=i.getLanguageService(),o=s.toLineColumnOffset(t,n.start),c=s.toLineColumnOffset(t,mc(n));return{file:t,start:{line:o.line+1,offset:o.character+1},end:{line:c.line+1,offset:c.character+1}}}toFileSpanWithContext(t,n,i,s){let o=this.toFileSpan(t,n,s),c=i&&this.toFileSpan(t,i,s);return c?{...o,contextStart:c.start,contextEnd:c.end}:o}getTypeDefinition(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.getPositionInFile(t,n),o=this.mapDefinitionInfoLocations(i.getLanguageService().getTypeDefinitionAtPosition(n,s)||jl,i);return this.mapDefinitionInfo(o,i)}mapImplementationLocations(t,n){return t.map(i=>{let s=z6e(i,n);return s?{...s,kind:i.kind,displayParts:i.displayParts}:i})}getImplementation(t,n){let{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=this.mapImplementationLocations(s.getLanguageService().getImplementationAtPosition(i,o)||jl,s);return n?c.map(({fileName:p,textSpan:u,contextSpan:g})=>this.toFileSpanWithContext(p,u,g,s)):c.map(xY.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){let{configFile:n}=this.getConfigFileAndProject(t);return n?jl:this.getDiagnosticsWorker(t,!1,(i,s)=>i.getLanguageService().getSyntacticDiagnostics(s),!!t.includeLinePosition)}getSemanticDiagnosticsSync(t){let{configFile:n,project:i}=this.getConfigFileAndProject(t);return n?this.getConfigFileDiagnostics(n,i,!!t.includeLinePosition):this.getDiagnosticsWorker(t,!0,(s,o)=>s.getLanguageService().getSemanticDiagnostics(o).filter(c=>!!c.file),!!t.includeLinePosition)}getSuggestionDiagnosticsSync(t){let{configFile:n}=this.getConfigFileAndProject(t);return n?jl:this.getDiagnosticsWorker(t,!0,(i,s)=>i.getLanguageService().getSuggestionDiagnostics(s),!!t.includeLinePosition)}getJsxClosingTag(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n),o=i.getJsxClosingTagAtPosition(n,s);return o===void 0?void 0:{newText:o.newText,caretOffset:0}}getLinkedEditingRange(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n),o=i.getLinkedEditingRangeAtPosition(n,s),c=this.projectService.getScriptInfoForNormalizedPath(n);if(!(c===void 0||o===void 0))return Dst(o,c)}getDocumentHighlights(t,n){let{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=s.getLanguageService().getDocumentHighlights(i,o,t.filesToSearch);return c?n?c.map(({fileName:p,highlightSpans:u})=>{let g=s.getScriptInfo(p);return{file:p,highlightSpans:u.map(({textSpan:d,kind:h,contextSpan:S})=>({...Hde(d,S,g),kind:h}))}}):c:jl}provideInlayHints(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(n);return i.getLanguageService().provideInlayHints(n,t,this.getPreferences(n)).map(c=>{let{position:p,displayParts:u}=c;return{...c,position:s.positionToLineOffset(p),displayParts:u?.map(({text:g,span:d,file:h})=>{if(d){w.assertIsDefined(h,"Target file should be defined together with its span.");let S=this.projectService.getScriptInfo(h);return{text:g,span:{start:S.positionToLineOffset(d.start),end:S.positionToLineOffset(d.start+d.length),file:h}}}else return{text:g}})}})}mapCode(t){var n;let i=this.getHostFormatOptions(),s=this.getHostPreferences(),{file:o,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(t),p=this.projectService.getScriptInfoForNormalizedPath(o),u=(n=t.mapping.focusLocations)==null?void 0:n.map(d=>d.map(h=>{let S=p.lineOffsetToPosition(h.start.line,h.start.offset),T=p.lineOffsetToPosition(h.end.line,h.end.offset);return{start:S,length:T-S}})),g=c.mapCode(o,t.mapping.contents,u,i,s);return this.mapTextChangesToCodeEdits(g)}getCopilotRelatedInfo(){return{relatedFiles:[]}}setCompilerOptionsForInferredProjects(t){this.projectService.setCompilerOptionsForInferredProjects(t.options,t.projectRootPath)}getProjectInfo(t){return this.getProjectInfoWorker(t.file,t.projectFileName,t.needFileNameList,t.needDefaultConfiguredProjectInfo,!1)}getProjectInfoWorker(t,n,i,s,o){let{project:c}=this.getFileAndProjectWorker(t,n);return Sd(c),{configFileName:c.getProjectName(),languageServiceDisabled:!c.languageServiceEnabled,fileNames:i?c.getFileNames(!1,o):void 0,configuredProjectInfo:s?this.getDefaultConfiguredProjectInfo(t):void 0}}getDefaultConfiguredProjectInfo(t){var n;let i=this.projectService.getScriptInfo(t);if(!i)return;let s=this.projectService.findDefaultConfiguredProjectWorker(i,3);if(!s)return;let o,c;return s.seenProjects.forEach((p,u)=>{u!==s.defaultProject&&(p!==3?(o??(o=[])).push(go(u.getConfigFilePath())):(c??(c=[])).push(go(u.getConfigFilePath())))}),(n=s.seenConfigs)==null||n.forEach(p=>(o??(o=[])).push(p)),{notMatchedByConfig:o,notInProject:c,defaultProject:s.defaultProject&&go(s.defaultProject.getConfigFilePath())}}getRenameInfo(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.getPositionInFile(t,n),o=this.getPreferences(n);return i.getLanguageService().getRenameInfo(n,s,o)}getProjects(t,n,i){let s,o;if(t.projectFileName){let c=this.getProject(t.projectFileName);c&&(s=[c])}else{let c=n?this.projectService.getScriptInfoEnsuringProjectsUptoDate(t.file):this.projectService.getScriptInfo(t.file);if(c)n||this.projectService.ensureDefaultProjectForFile(c);else return i?jl:(this.projectService.logErrorForScriptInfoNotFound(t.file),my.ThrowNoProject());s=c.containingProjects,o=this.projectService.getSymlinkedProjects(c)}return s=Mn(s,c=>c.languageServiceEnabled&&!c.isOrphan()),!i&&(!s||!s.length)&&!o?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),my.ThrowNoProject()):o?{projects:s,symLinkedProjects:o}:s}getDefaultProject(t){if(t.projectFileName){let i=this.getProject(t.projectFileName);if(i)return i;if(!t.file)return my.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,n){let i=go(t.file),s=this.getPositionInFile(t,i),o=this.getProjects(t),c=this.getDefaultProject(t),p=this.getPreferences(i),u=this.mapRenameInfo(c.getLanguageService().getRenameInfo(i,s,p),w.checkDefined(this.projectService.getScriptInfo(i)));if(!u.canRename)return n?{info:u,locs:[]}:[];let g=Tst(o,c,{fileName:t.file,pos:s},!!t.findInStrings,!!t.findInComments,p,this.host.useCaseSensitiveFileNames);return n?{info:u,locs:this.toSpanGroups(g)}:g}mapRenameInfo(t,n){if(t.canRename){let{canRename:i,fileToRename:s,displayName:o,fullDisplayName:c,kind:p,kindModifiers:u,triggerSpan:g}=t;return{canRename:i,fileToRename:s,displayName:o,fullDisplayName:c,kind:p,kindModifiers:u,triggerSpan:ag(g,n)}}else return t}toSpanGroups(t){let n=new Map;for(let{fileName:i,textSpan:s,contextSpan:o,originalContextSpan:c,originalTextSpan:p,originalFileName:u,...g}of t){let d=n.get(i);d||n.set(i,d={file:i,locs:[]});let h=w.checkDefined(this.projectService.getScriptInfo(i));d.locs.push({...Hde(s,o,h),...g})}return ds(n.values())}getReferences(t,n){let i=go(t.file),s=this.getProjects(t),o=this.getPositionInFile(t,i),c=kst(s,this.getDefaultProject(t),{fileName:t.file,pos:o},this.host.useCaseSensitiveFileNames,this.logger);if(!n)return c;let p=this.getPreferences(i),u=this.getDefaultProject(t),g=u.getScriptInfoForNormalizedPath(i),d=u.getLanguageService().getQuickInfoAtPosition(i,o),h=d?jR(d.displayParts):"",S=d&&d.textSpan,T=S?g.positionToLineOffset(S.start).offset:0,x=S?g.getSnapshot().getText(S.start,mc(S)):"";return{refs:Ma(c,P=>P.references.map(E=>q6e(this.projectService,E,p))),symbolName:x,symbolStartOffset:T,symbolDisplayString:h}}getFileReferences(t,n){let i=this.getProjects(t),s=go(t.file),o=this.getPreferences(s),c={fileName:s,pos:0},p=$de(i,this.getDefaultProject(t),c,c,L6e,d=>(this.logger.info(`Finding references to file ${s} in project ${d.getProjectName()}`),d.getLanguageService().getFileReferences(s))),u;if(gs(p))u=p;else{u=[];let d=jQ(this.host.useCaseSensitiveFileNames);p.forEach(h=>{for(let S of h)d.has(S)||(u.push(S),d.add(S))})}return n?{refs:u.map(d=>q6e(this.projectService,d,o)),symbolName:`"${t.file}"`}:u}openClientFile(t,n,i,s){this.projectService.openClientFileWithNormalizedPath(t,n,i,!1,s)}getPosition(t,n){return t.position!==void 0?t.position:n.lineOffsetToPosition(t.line,t.offset)}getPositionInFile(t,n){let i=this.projectService.getScriptInfoForNormalizedPath(n);return this.getPosition(t,i)}getFileAndProject(t){return this.getFileAndProjectWorker(t.file,t.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(t){let{file:n,project:i}=this.getFileAndProject(t);return{file:n,languageService:i.getLanguageService(!1)}}getFileAndProjectWorker(t,n){let i=go(t),s=this.getProject(n)||this.projectService.ensureDefaultProjectForFile(i);return{file:i,project:s}}getOutliningSpans(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=s.getOutliningSpans(i);if(n){let c=this.projectService.getScriptInfoForNormalizedPath(i);return o.map(p=>({textSpan:ag(p.textSpan,c),hintSpan:ag(p.hintSpan,c),bannerText:p.bannerText,autoCollapse:p.autoCollapse,kind:p.kind}))}else return o}getTodoComments(t){let{file:n,project:i}=this.getFileAndProject(t);return i.getLanguageService().getTodoComments(n,t.descriptors)}getDocCommentTemplate(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.getDocCommentTemplateAtPosition(n,s,this.getPreferences(n),this.getFormatOptions(n))}getSpanOfEnclosingComment(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.onlyMultiLine,o=this.getPositionInFile(t,n);return i.getSpanOfEnclosingComment(n,o,s)}getIndentation(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n),o=t.options?uD(t.options):this.getFormatOptions(n),c=i.getIndentationAtPosition(n,s,o);return{position:s,indentation:c}}getBreakpointStatement(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.getBreakpointStatementAtPosition(n,s)}getNameOrDottedNameSpan(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.getNameOrDottedNameSpan(n,s,s)}isValidBraceCompletion(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.isValidBraceCompletionAtPosition(n,s,t.openingBrace.charCodeAt(0))}getQuickInfoWorker(t,n){let{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPreferences(i),p=s.getLanguageService().getQuickInfoAtPosition(i,this.getPosition(t,o),c.maximumHoverLength,t.verbosityLevel);if(!p)return;let u=!!c.displayPartsForJSDoc;if(n){let g=jR(p.displayParts);return{kind:p.kind,kindModifiers:p.kindModifiers,start:o.positionToLineOffset(p.textSpan.start),end:o.positionToLineOffset(mc(p.textSpan)),displayString:g,documentation:u?this.mapDisplayParts(p.documentation,s):jR(p.documentation),tags:this.mapJSDocTagInfo(p.tags,s,u),canIncreaseVerbosityLevel:p.canIncreaseVerbosityLevel}}else return u?p:{...p,tags:this.mapJSDocTagInfo(p.tags,s,!1)}}getFormattingEditsForRange(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(n),o=s.lineOffsetToPosition(t.line,t.offset),c=s.lineOffsetToPosition(t.endLine,t.endOffset),p=i.getFormattingEditsForRange(n,o,c,this.getFormatOptions(n));if(p)return p.map(u=>this.convertTextChangeToCodeEdit(u,s))}getFormattingEditsForRangeFull(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.options?uD(t.options):this.getFormatOptions(n);return i.getFormattingEditsForRange(n,t.position,t.endPosition,s)}getFormattingEditsForDocumentFull(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.options?uD(t.options):this.getFormatOptions(n);return i.getFormattingEditsForDocument(n,s)}getFormattingEditsAfterKeystrokeFull(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.options?uD(t.options):this.getFormatOptions(n);return i.getFormattingEditsAfterKeystroke(n,t.position,t.key,s)}getFormattingEditsAfterKeystroke(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(n),o=s.lineOffsetToPosition(t.line,t.offset),c=this.getFormatOptions(n),p=i.getFormattingEditsAfterKeystroke(n,o,t.key,c);if(t.key===`
|
|
`&&(!p||p.length===0||vst(p,o))){let{lineText:u,absolutePosition:g}=s.textStorage.getAbsolutePositionAndLineText(t.line);if(u&&u.search("\\S")<0){let d=i.getIndentationAtPosition(n,o,c),h=0,S,T;for(S=0,T=u.length;S<T;S++)if(u.charAt(S)===" ")h++;else if(u.charAt(S)===" ")h+=c.tabSize;else break;if(d!==h){let x=g+S;p.push({span:$c(g,x),newText:vl.getIndentationString(d,c)})}}}if(p)return p.map(u=>({start:s.positionToLineOffset(u.span.start),end:s.positionToLineOffset(mc(u.span)),newText:u.newText?u.newText:""}))}getCompletions(t,n){let{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),p=s.getLanguageService().getCompletionsAtPosition(i,c,{...Pde(this.getPreferences(i)),triggerCharacter:t.triggerCharacter,triggerKind:t.triggerKind,includeExternalModuleExports:t.includeExternalModuleExports,includeInsertTextCompletions:t.includeInsertTextCompletions},s.projectService.getFormatCodeOptions(i));if(p===void 0)return;if(n==="completions-full")return p;let u=t.prefix||"",g=Ji(p.entries,h=>{if(p.isMemberCompletion||Zi(h.name.toLowerCase(),u.toLowerCase())){let S=h.replacementSpan?ag(h.replacementSpan,o):void 0;return{...h,replacementSpan:S,hasAction:h.hasAction||void 0,symbol:void 0}}});return n==="completions"?(p.metadata&&(g.metadata=p.metadata),g):{...p,optionalReplacementSpan:p.optionalReplacementSpan&&ag(p.optionalReplacementSpan,o),entries:g}}getCompletionEntryDetails(t,n){let{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),p=s.projectService.getFormatCodeOptions(i),u=!!this.getPreferences(i).displayPartsForJSDoc,g=Ji(t.entryNames,d=>{let{name:h,source:S,data:T}=typeof d=="string"?{name:d,source:void 0,data:void 0}:d;return s.getLanguageService().getCompletionEntryDetails(i,c,h,p,S,this.getPreferences(i),T?Zs(T,Mst):void 0)});return n?u?g:g.map(d=>({...d,tags:this.mapJSDocTagInfo(d.tags,s,!1)})):g.map(d=>({...d,codeActions:kr(d.codeActions,h=>this.mapCodeAction(h)),documentation:this.mapDisplayParts(d.documentation,s),tags:this.mapJSDocTagInfo(d.tags,s,u)}))}getCompileOnSaveAffectedFileList(t){let n=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?Sst(i,s=>this.projectService.getScriptInfoForPath(s),n,(s,o)=>{if(!s.compileOnSaveEnabled||!s.languageServiceEnabled||s.isOrphan())return;let c=s.getCompilationSettings();if(!(c.noEmit||Kl(o.fileName)&&!yst(c)))return{projectFileName:s.getProjectName(),fileNames:s.getCompileOnSaveAffectedFileList(o),projectUsesOutFile:!!c.outFile}}):jl}emitFile(t){let{file:n,project:i}=this.getFileAndProject(t);if(i||my.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;let s=i.getScriptInfo(n),{emitSkipped:o,diagnostics:c}=i.emitFile(s,(p,u,g)=>this.host.writeFile(p,u,g));return t.richResponse?{emitSkipped:o,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(c):c.map(p=>_3(p,!0))}:!o}getSignatureHelpItems(t,n){let{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),p=s.getLanguageService().getSignatureHelpItems(i,c,t),u=!!this.getPreferences(i).displayPartsForJSDoc;if(p&&n){let g=p.applicableSpan;return{...p,applicableSpan:{start:o.positionToLineOffset(g.start),end:o.positionToLineOffset(g.start+g.length)},items:this.mapSignatureHelpItems(p.items,s,u)}}else return u||!p?p:{...p,items:p.items.map(g=>({...g,tags:this.mapJSDocTagInfo(g.tags,s,!1)}))}}toPendingErrorCheck(t){let n=go(t),i=this.projectService.tryGetDefaultProjectForFile(n);return i&&{fileName:n,project:i}}getDiagnostics(t,n,i){this.suppressDiagnosticEvents||i.length>0&&this.updateErrorCheck(t,i,n)}change(t){let n=this.projectService.getScriptInfo(t.file);w.assert(!!n),n.textStorage.switchToScriptVersionCache();let i=n.lineOffsetToPosition(t.line,t.offset),s=n.lineOffsetToPosition(t.endLine,t.endOffset);i>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(n,MY({span:{start:i,length:s-i},newText:t.insertString})))}reload(t){let n=go(t.file),i=t.tmpfile===void 0?void 0:go(t.tmpfile),s=this.projectService.getScriptInfoForNormalizedPath(n);s&&(this.changeSeq++,s.reloadFromFile(i))}saveToTmp(t,n){let i=this.projectService.getScriptInfo(t);i&&i.saveTo(n)}closeClientFile(t){if(!t)return;let n=ra(t);this.projectService.closeClientFile(n)}mapLocationNavigationBarItems(t,n){return kr(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(s=>ag(s,n)),childItems:this.mapLocationNavigationBarItems(i.childItems,n),indent:i.indent}))}getNavigationBarItems(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=s.getNavigationBarItems(i);return o?n?this.mapLocationNavigationBarItems(o,this.projectService.getScriptInfoForNormalizedPath(i)):o:void 0}toLocationNavigationTree(t,n){return{text:t.text,kind:t.kind,kindModifiers:t.kindModifiers,spans:t.spans.map(i=>ag(i,n)),nameSpan:t.nameSpan&&ag(t.nameSpan,n),childItems:kr(t.childItems,i=>this.toLocationNavigationTree(i,n))}}getNavigationTree(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=s.getNavigationTree(i);return o?n?this.toLocationNavigationTree(o,this.projectService.getScriptInfoForNormalizedPath(i)):o:void 0}getNavigateToItems(t,n){let i=this.getFullNavigateToItems(t);return n?Ma(i,({project:s,navigateToItems:o})=>o.map(c=>{let p=s.getScriptInfo(c.fileName),u={name:c.name,kind:c.kind,kindModifiers:c.kindModifiers,isCaseSensitive:c.isCaseSensitive,matchKind:c.matchKind,file:c.fileName,start:p.positionToLineOffset(c.textSpan.start),end:p.positionToLineOffset(mc(c.textSpan))};return c.kindModifiers&&c.kindModifiers!==""&&(u.kindModifiers=c.kindModifiers),c.containerName&&c.containerName.length>0&&(u.containerName=c.containerName),c.containerKind&&c.containerKind.length>0&&(u.containerKind=c.containerKind),u})):Ma(i,({navigateToItems:s})=>s)}getFullNavigateToItems(t){let{currentFileOnly:n,searchValue:i,maxResultCount:s,projectFileName:o}=t;if(n){w.assertIsDefined(t.file);let{file:S,project:T}=this.getFileAndProject(t);return[{project:T,navigateToItems:T.getLanguageService().getNavigateToItems(i,s,S)}]}let c=this.getHostPreferences(),p=[],u=new Map;if(!t.file&&!o)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(S=>g(S));else{let S=this.getProjects(t);j6e(S,void 0,T=>g(T))}return p;function g(S){let T=S.getLanguageService().getNavigateToItems(i,s,void 0,S.isNonTsProject(),c.excludeLibrarySymbolsInNavTo),x=Mn(T,I=>d(I)&&!LQ(eN(I),S));x.length&&p.push({project:S,navigateToItems:x})}function d(S){let T=S.name;if(!u.has(T))return u.set(T,[S]),!0;let x=u.get(T);for(let I of x)if(h(I,S))return!1;return x.push(S),!0}function h(S,T){return S===T?!0:!S||!T?!1:S.containerKind===T.containerKind&&S.containerName===T.containerName&&S.fileName===T.fileName&&S.isCaseSensitive===T.isCaseSensitive&&S.kind===T.kind&&S.kindModifiers===T.kindModifiers&&S.matchKind===T.matchKind&&S.name===T.name&&S.textSpan.start===T.textSpan.start&&S.textSpan.length===T.textSpan.length}}getSupportedCodeFixes(t){if(!t)return tH();if(t.file){let{file:i,project:s}=this.getFileAndProject(t);return s.getLanguageService().getSupportedCodeFixes(i)}let n=this.getProject(t.projectFileName);return n||my.ThrowNoProject(),n.getLanguageService().getSupportedCodeFixes()}isLocation(t){return t.line!==void 0}extractPositionOrRange(t,n){let i,s;return this.isLocation(t)?i=o(t):s=this.getRange(t,n),w.checkDefined(i===void 0?s:i);function o(c){return c.position!==void 0?c.position:n.lineOffsetToPosition(c.line,c.offset)}}getRange(t,n){let{startPosition:i,endPosition:s}=this.getStartAndEndPosition(t,n);return{pos:i,end:s}}getApplicableRefactors(t){let{file:n,project:i}=this.getFileAndProject(t),s=i.getScriptInfoForNormalizedPath(n);return i.getLanguageService().getApplicableRefactors(n,this.extractPositionOrRange(t,s),this.getPreferences(n),t.triggerReason,t.kind,t.includeInteractiveActions).map(c=>({...c,actions:c.actions.map(p=>({...p,range:p.range?{start:pD({line:p.range.start.line,character:p.range.start.offset}),end:pD({line:p.range.end.line,character:p.range.end.offset})}:void 0}))}))}getEditsForRefactor(t,n){let{file:i,project:s}=this.getFileAndProject(t),o=s.getScriptInfoForNormalizedPath(i),c=s.getLanguageService().getEditsForRefactor(i,this.getFormatOptions(i),this.extractPositionOrRange(t,o),t.refactor,t.action,this.getPreferences(i),t.interactiveRefactorArguments);if(c===void 0)return{edits:[]};if(n){let{renameFilename:p,renameLocation:u,edits:g}=c,d;if(p!==void 0&&u!==void 0){let h=s.getScriptInfoForNormalizedPath(go(p));d=Qde(lC(h.getSnapshot()),p,u,g)}return{renameLocation:d,renameFilename:p,edits:this.mapTextChangesToCodeEdits(g),notApplicableReason:c.notApplicableReason}}return c}getMoveToRefactoringFileSuggestions(t){let{file:n,project:i}=this.getFileAndProject(t),s=i.getScriptInfoForNormalizedPath(n);return i.getLanguageService().getMoveToRefactoringFileSuggestions(n,this.extractPositionOrRange(t,s),this.getPreferences(n))}preparePasteEdits(t){let{file:n,project:i}=this.getFileAndProject(t);return i.getLanguageService().preparePasteEditsForFile(n,t.copiedTextSpan.map(s=>this.getRange({file:n,startLine:s.start.line,startOffset:s.start.offset,endLine:s.end.line,endOffset:s.end.offset},this.projectService.getScriptInfoForNormalizedPath(n))))}getPasteEdits(t){let{file:n,project:i}=this.getFileAndProject(t);if(YE(n))return;let s=t.copiedFrom?{file:t.copiedFrom.file,range:t.copiedFrom.spans.map(c=>this.getRange({file:t.copiedFrom.file,startLine:c.start.line,startOffset:c.start.offset,endLine:c.end.line,endOffset:c.end.offset},i.getScriptInfoForNormalizedPath(go(t.copiedFrom.file))))}:void 0,o=i.getLanguageService().getPasteEdits({targetFile:n,pastedText:t.pastedText,pasteLocations:t.pasteLocations.map(c=>this.getRange({file:n,startLine:c.start.line,startOffset:c.start.offset,endLine:c.end.line,endOffset:c.end.offset},i.getScriptInfoForNormalizedPath(n))),copiedFrom:s,preferences:this.getPreferences(n)},this.getFormatOptions(n));return o&&this.mapPasteEditsAction(o)}organizeImports(t,n){w.assert(t.scope.type==="file");let{file:i,project:s}=this.getFileAndProject(t.scope.args),o=s.getLanguageService().organizeImports({fileName:i,mode:t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(i),this.getPreferences(i));return n?this.mapTextChangesToCodeEdits(o):o}getEditsForFileRename(t,n){let i=go(t.oldFilePath),s=go(t.newFilePath),o=this.getHostFormatOptions(),c=this.getHostPreferences(),p=new Set,u=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(g=>{let d=g.getLanguageService().getEditsForFileRename(i,s,o,c),h=[];for(let S of d)p.has(S.fileName)||(u.push(S),h.push(S.fileName));for(let S of h)p.add(S)}),n?u.map(g=>this.mapTextChangeToCodeEdit(g)):u}getCodeFixes(t,n){let{file:i,project:s}=this.getFileAndProject(t),o=s.getScriptInfoForNormalizedPath(i),{startPosition:c,endPosition:p}=this.getStartAndEndPosition(t,o),u;try{u=s.getLanguageService().getCodeFixesAtPosition(i,c,p,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(g){let d=g instanceof Error?g:new Error(g),h=s.getLanguageService(),S=[...h.getSyntacticDiagnostics(i),...h.getSemanticDiagnostics(i),...h.getSuggestionDiagnostics(i)].filter(x=>wM(c,p-c,x.start,x.length)).map(x=>x.code),T=t.errorCodes.find(x=>!S.includes(x));throw T!==void 0&&(d.message+=`
|
|
Additional information: BADCLIENT: Bad error code, ${T} not found in range ${c}..${p} (found: ${S.join(", ")})`),d}return n?u.map(g=>this.mapCodeFixAction(g)):u}getCombinedCodeFix({scope:t,fixId:n},i){w.assert(t.type==="file");let{file:s,project:o}=this.getFileAndProject(t.args),c=o.getLanguageService().getCombinedCodeFix({type:"file",fileName:s},n,this.getFormatOptions(s),this.getPreferences(s));return i?{changes:this.mapTextChangesToCodeEdits(c.changes),commands:c.commands}:c}applyCodeActionCommand(t){let n=t.command;for(let i of $x(n)){let{file:s,project:o}=this.getFileAndProject(i);o.getLanguageService().applyCodeActionCommand(i,this.getFormatOptions(s)).then(c=>{},c=>{})}return{}}getStartAndEndPosition(t,n){let i,s;return t.startPosition!==void 0?i=t.startPosition:(i=n.lineOffsetToPosition(t.startLine,t.startOffset),t.startPosition=i),t.endPosition!==void 0?s=t.endPosition:(s=n.lineOffsetToPosition(t.endLine,t.endOffset),t.endPosition=s),{startPosition:i,endPosition:s}}mapCodeAction({description:t,changes:n,commands:i}){return{description:t,changes:this.mapTextChangesToCodeEdits(n),commands:i}}mapCodeFixAction({fixName:t,description:n,changes:i,commands:s,fixId:o,fixAllDescription:c}){return{fixName:t,description:n,changes:this.mapTextChangesToCodeEdits(i),commands:s,fixId:o,fixAllDescription:c}}mapPasteEditsAction({edits:t,fixId:n}){return{edits:this.mapTextChangesToCodeEdits(t),fixId:n}}mapTextChangesToCodeEdits(t){return t.map(n=>this.mapTextChangeToCodeEdit(n))}mapTextChangeToCodeEdit(t){let n=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!n&&(n||this.projectService.logErrorForScriptInfoNotFound(t.fileName),w.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!n}))),n?{fileName:t.fileName,textChanges:t.textChanges.map(i=>Ist(i,n))}:Ast(t)}convertTextChangeToCodeEdit(t,n){return{start:n.positionToLineOffset(t.span.start),end:n.positionToLineOffset(t.span.start+t.span.length),newText:t.newText?t.newText:""}}getBraceMatching(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),p=s.getBraceMatchingAtPosition(i,c);return p?n?p.map(u=>ag(u,o)):p:void 0}getDiagnosticsForProject(t,n,i){if(this.suppressDiagnosticEvents)return;let{fileNames:s,languageServiceDisabled:o}=this.getProjectInfoWorker(i,void 0,!0,void 0,!0);if(o)return;let c=s.filter(I=>!I.includes("lib.d.ts"));if(c.length===0)return;let p=[],u=[],g=[],d=[],h=go(i),S=this.projectService.ensureDefaultProjectForFile(h);for(let I of c)this.getCanonicalFileName(I)===this.getCanonicalFileName(i)?p.push(I):this.projectService.getScriptInfo(I).isScriptOpen()?u.push(I):Kl(I)?d.push(I):g.push(I);let x=[...p,...u,...g,...d].map(I=>({fileName:I,project:S}));this.updateErrorCheck(t,x,n,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,n){let{locations:i}=t,{file:s,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),c=w.checkDefined(this.projectService.getScriptInfo(s));return kr(i,p=>{let u=this.getPosition(p,c),g=o.getSmartSelectionRange(s,u);return n?this.mapSelectionRange(g,c):g})}toggleLineComment(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfo(i),c=this.getRange(t,o),p=s.toggleLineComment(i,c);if(n){let u=this.projectService.getScriptInfoForNormalizedPath(i);return p.map(g=>this.convertTextChangeToCodeEdit(g,u))}return p}toggleMultilineComment(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,o),p=s.toggleMultilineComment(i,c);if(n){let u=this.projectService.getScriptInfoForNormalizedPath(i);return p.map(g=>this.convertTextChangeToCodeEdit(g,u))}return p}commentSelection(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,o),p=s.commentSelection(i,c);if(n){let u=this.projectService.getScriptInfoForNormalizedPath(i);return p.map(g=>this.convertTextChangeToCodeEdit(g,u))}return p}uncommentSelection(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,o),p=s.uncommentSelection(i,c);if(n){let u=this.projectService.getScriptInfoForNormalizedPath(i);return p.map(g=>this.convertTextChangeToCodeEdit(g,u))}return p}mapSelectionRange(t,n){let i={textSpan:ag(t.textSpan,n)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,n)),i}getScriptInfoFromProjectService(t){let n=go(t),i=this.projectService.getScriptInfoForNormalizedPath(n);return i||(this.projectService.logErrorForScriptInfoNotFound(n),my.ThrowNoProject())}toProtocolCallHierarchyItem(t){let n=this.getScriptInfoFromProjectService(t.file);return{name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,file:t.file,containerName:t.containerName,span:ag(t.span,n),selectionSpan:ag(t.selectionSpan,n)}}toProtocolCallHierarchyIncomingCall(t){let n=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>ag(i,n))}}toProtocolCallHierarchyOutgoingCall(t,n){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>ag(i,n))}}prepareCallHierarchy(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(n);if(s){let o=this.getPosition(t,s),c=i.getLanguageService().prepareCallHierarchy(n,o);return c&&p$(c,p=>this.toProtocolCallHierarchyItem(p))}}provideCallHierarchyIncomingCalls(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.getScriptInfoFromProjectService(n);return i.getLanguageService().provideCallHierarchyIncomingCalls(n,this.getPosition(t,s)).map(c=>this.toProtocolCallHierarchyIncomingCall(c))}provideCallHierarchyOutgoingCalls(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.getScriptInfoFromProjectService(n);return i.getLanguageService().provideCallHierarchyOutgoingCalls(n,this.getPosition(t,s)).map(c=>this.toProtocolCallHierarchyOutgoingCall(c,s))}getCanonicalFileName(t){let n=this.host.useCaseSensitiveFileNames?t:Zv(t);return ra(n)}exit(){}notRequired(t){return t&&this.doOutput(void 0,t.command,t.seq,!0,this.performanceData),{responseRequired:!1,performanceData:this.performanceData}}requiredResponse(t){return{response:t,responseRequired:!0,performanceData:this.performanceData}}addProtocolHandler(t,n){if(this.handlers.has(t))throw new Error(`Protocol handler already exists for command "${t}"`);this.handlers.set(t,n)}setCurrentRequest(t){w.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){w.assert(this.currentRequestId===t),this.currentRequestId=void 0,this.cancellationToken.resetRequest(t)}executeWithRequestId(t,n,i){let s=this.performanceData;try{return this.performanceData=i,this.setCurrentRequest(t),n()}finally{this.resetCurrentRequest(t),this.performanceData=s}}executeCommand(t){let n=this.handlers.get(t.command);if(n){let i=this.executeWithRequestId(t.seq,()=>n(t),void 0);return this.projectService.enableRequestedPlugins(),i}else return this.logger.msg(`Unrecognized JSON command:${a1(t)}`,"Err"),this.doOutput(void 0,"unknown",t.seq,!1,void 0,`Unrecognized JSON command: ${t.command}`),{responseRequired:!1}}onMessage(t){var n,i,s,o,c,p,u;this.gcTimer.scheduleCollect();let g,d=this.performanceData;this.logger.hasLevel(2)&&(g=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${xE(this.toStringMessage(t))}`));let h,S;try{h=this.parseMessage(t),S=h.arguments&&h.arguments.file?h.arguments:void 0,(n=mn)==null||n.instant(mn.Phase.Session,"request",{seq:h.seq,command:h.command}),(i=mn)==null||i.push(mn.Phase.Session,"executeCommand",{seq:h.seq,command:h.command},!0);let{response:T,responseRequired:x,performanceData:I}=this.executeCommand(h);if((s=mn)==null||s.pop(),this.logger.hasLevel(2)){let P=hst(this.hrtime(g)).toFixed(4);x?this.logger.perftrc(`${h.seq}::${h.command}: elapsed time (in milliseconds) ${P}`):this.logger.perftrc(`${h.seq}::${h.command}: async elapsed time (in milliseconds) ${P}`)}(o=mn)==null||o.instant(mn.Phase.Session,"response",{seq:h.seq,command:h.command,success:!!T}),T?this.doOutput(T,h.command,h.seq,!0,I):x&&this.doOutput(void 0,h.command,h.seq,!1,I,"No content available.")}catch(T){if((c=mn)==null||c.popAll(),T instanceof bP){(p=mn)==null||p.instant(mn.Phase.Session,"commandCanceled",{seq:h?.seq,command:h?.command}),this.doOutput({canceled:!0},h.command,h.seq,!0,this.performanceData);return}this.logErrorWorker(T,this.toStringMessage(t),S),(u=mn)==null||u.instant(mn.Phase.Session,"commandError",{seq:h?.seq,command:h?.command,message:T.message}),this.doOutput(void 0,h?h.command:"unknown",h?h.seq:0,!1,this.performanceData,"Error processing request. "+T.message+`
|
|
`+T.stack)}finally{this.performanceData=d}}parseMessage(t){return JSON.parse(t)}toStringMessage(t){return t}getFormatOptions(t){return this.projectService.getFormatCodeOptions(t)}getPreferences(t){return this.projectService.getPreferences(t)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function U6e(e){let t=e.diagnosticsDuration&&ds(e.diagnosticsDuration,([n,i])=>({...i,file:n}));return{...e,diagnosticsDuration:t}}function ag(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(mc(e))}}function Hde(e,t,n){let i=ag(e,n),s=t&&ag(t,n);return s?{...i,contextStart:s.start,contextEnd:s.end}:i}function Ist(e,t){return{start:V6e(t,e.span.start),end:V6e(t,mc(e.span)),newText:e.newText}}function V6e(e,t){return zde(e)?Pst(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function Dst(e,t){let n=e.ranges.map(i=>({start:t.positionToLineOffset(i.start),end:t.positionToLineOffset(i.start+i.length)}));return e.wordPattern?{ranges:n,wordPattern:e.wordPattern}:{ranges:n}}function Pst(e){return{line:e.line+1,offset:e.character+1}}function Ast(e){w.assert(e.textChanges.length===1);let t=Ra(e.textChanges);return w.assert(t.span.start===0&&t.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}function Qde(e,t,n,i){let s=Est(e,t,i),{line:o,character:c}=ww(e2(s),n);return{line:o+1,offset:c+1}}function Est(e,t,n){for(let{fileName:i,textChanges:s}of n)if(i===t)for(let o=s.length-1;o>=0;o--){let{newText:c,span:{start:p,length:u}}=s[o];e=e.slice(0,p)+c+e.slice(p+u)}return e}function q6e(e,{fileName:t,textSpan:n,contextSpan:i,isWriteAccess:s,isDefinition:o},{disableLineTextInReferences:c}){let p=w.checkDefined(e.getScriptInfo(t)),u=Hde(n,i,p),g=c?void 0:Nst(p,u);return{file:t,...u,lineText:g,isWriteAccess:s,isDefinition:o}}function Nst(e,t){let n=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(n.start,mc(n)).replace(/\r|\n/g,"")}function Mst(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}var fD=4,Kde=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(Kde||{}),Rst=class{constructor(){this.goSubtree=!0,this.lineIndex=new d3,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new _D,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;let i=d3.linesFromText(e).lines;i.length>1&&i[i.length-1]===""&&i.pop();let s,o;for(let p=this.endBranch.length-1;p>=0;p--)this.endBranch[p].updateCounts(),this.endBranch[p].charCount()===0&&(o=this.endBranch[p],p>0?s=this.endBranch[p-1]:s=this.branchNode);o&&s.remove(o);let c=this.startPath[this.startPath.length-1];if(i.length>0)if(c.text=i[0],i.length>1){let p=new Array(i.length-1),u=c;for(let h=1;h<i.length;h++)p[h-1]=new IL(i[h]);let g=this.startPath.length-2;for(;g>=0;){let h=this.startPath[g];p=h.insertAt(u,p),g--,u=h}let d=p.length;for(;d>0;){let h=new _D;h.add(this.lineIndex.root),p=h.insertAt(this.lineIndex.root,p),d=p.length,this.lineIndex.root=h}this.lineIndex.root.updateCounts()}else for(let p=this.startPath.length-2;p>=0;p--)this.startPath[p].updateCounts();else{this.startPath[this.startPath.length-2].remove(c);for(let u=this.startPath.length-2;u>=0;u--)this.startPath[u].updateCounts()}return this.lineIndex}post(e,t,n){n===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,n,i,s){let o=this.stack[this.stack.length-1];this.state===2&&s===1&&(this.state=1,this.branchNode=o,this.lineCollectionAtBranch=n);let c;function p(u){return u.isLeaf()?new IL(""):new _D}switch(s){case 0:this.goSubtree=!1,this.state!==4&&o.add(n);break;case 1:this.state===4?this.goSubtree=!1:(c=p(n),o.add(c),this.startPath.push(c));break;case 2:this.state!==4?(c=p(n),o.add(c),this.startPath.push(c)):n.isLeaf()||(c=p(n),o.add(c),this.endBranch.push(c));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:n.isLeaf()||(c=p(n),o.add(c),this.endBranch.push(c));break;case 5:this.goSubtree=!1,this.state!==1&&o.add(n);break}this.goSubtree&&this.stack.push(c)}leaf(e,t,n){this.state===1?this.initialText=n.text.substring(0,e):this.state===2?(this.initialText=n.text.substring(0,e),this.trailingText=n.text.substring(e+t)):this.trailingText=n.text.substring(e+t)}},Ost=class{constructor(e,t,n){this.pos=e,this.deleteLen=t,this.insertedText=n}getTextChangeRange(){return IM(yu(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},WQ=class Bx{constructor(){this.changes=[],this.versions=new Array(Bx.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(t<this.minVersion||t>this.currentVersion))return t%Bx.maxVersions}currentVersionToIndex(){return this.currentVersion%Bx.maxVersions}edit(t,n,i){this.changes.push(new Ost(t,n,i)),(this.changes.length>Bx.changeNumberThreshold||n>Bx.changeLengthThreshold||i&&i.length>Bx.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let n=t.index;for(let i of this.changes)n=n.edit(i.pos,i.deleteLen,i.insertedText);t=new $6e(this.currentVersion+1,this,n,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=Bx.maxVersions&&(this.minVersion=this.currentVersion-Bx.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(t){return this._getSnapshot().index.lineNumberToInfo(t)}lineOffsetToPosition(t,n){return this._getSnapshot().index.absolutePositionOfStartOfLine(t)+(n-1)}positionToLineOffset(t){return this._getSnapshot().index.positionToLineOffset(t)}lineToTextSpan(t){let n=this._getSnapshot().index,{lineText:i,absolutePosition:s}=n.lineNumberToInfo(t+1),o=i!==void 0?i.length:n.absolutePositionOfStartOfLine(t+2)-s;return yu(s,o)}getTextChangesBetweenVersions(t,n){if(t<n)if(t>=this.minVersion){let i=[];for(let s=t+1;s<=n;s++){let o=this.versions[this.versionToIndex(s)];for(let c of o.changesSincePreviousVersion)i.push(c.getTextChangeRange())}return Mee(i)}else return;else return eF}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){let n=new Bx,i=new $6e(0,n,new d3);n.versions[n.currentVersion]=i;let s=d3.linesFromText(t);return i.index.load(s.lines),n}};WQ.changeNumberThreshold=8,WQ.changeLengthThreshold=256,WQ.maxVersions=8;var BQ=WQ,$6e=class S5e{constructor(t,n,i,s=jl){this.version=t,this.cache=n,this.index=i,this.changesSincePreviousVersion=s}getText(t,n){return this.index.getText(t,n-t)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof S5e&&this.cache===t.cache)return this.version<=t.version?eF:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},d3=class hve{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(t){return this.lineNumberToInfo(t).absolutePosition}positionToLineOffset(t){let{oneBasedLine:n,zeroBasedColumn:i}=this.root.charOffsetToLineInfo(1,t);return{line:n,offset:i+1}}positionToColumnAndLineText(t){return this.root.charOffsetToLineInfo(1,t)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(t){let n=this.getLineCount();if(t<=n){let{position:i,leaf:s}=this.root.lineNumberToInfo(t,0);return{absolutePosition:i,lineText:s&&s.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){let n=[];for(let i=0;i<t.length;i++)n[i]=new IL(t[i]);this.root=hve.buildTreeFromBottom(n)}else this.root=new _D}walk(t,n,i){this.root.walk(t,n,i)}getText(t,n){let i="";return n>0&&t<this.root.charCount()&&this.walk(t,n,{goSubtree:!0,done:!1,leaf:(s,o,c)=>{i=i.concat(c.text.substring(s,s+o))}}),i}getLength(){return this.root.charCount()}every(t,n,i){i||(i=this.root.charCount());let s={goSubtree:!0,done:!1,leaf(o,c,p){t(p,o,c)||(this.done=!0)}};return this.walk(n,i-n,s),!s.done}edit(t,n,i){if(this.root.charCount()===0)return w.assert(n===0),i!==void 0?(this.load(hve.linesFromText(i).lines),this):void 0;{let s;if(this.checkEdits){let p=this.getText(0,this.root.charCount());s=p.slice(0,t)+i+p.slice(t+n)}let o=new Rst,c=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;let p=this.getText(t,1);i?i=p+i:i=p,n=0,c=!0}else if(n>0){let p=t+n,{zeroBasedColumn:u,lineText:g}=this.positionToColumnAndLineText(p);u===0&&(n+=g.length,i=i?i+g:g)}if(this.root.walk(t,n,o),o.insertLines(i,c),this.checkEdits){let p=o.lineIndex.getText(0,o.lineIndex.getLength());w.assert(s===p,"buffer edit mismatch")}return o.lineIndex}}static buildTreeFromBottom(t){if(t.length<fD)return new _D(t);let n=new Array(Math.ceil(t.length/fD)),i=0;for(let s=0;s<n.length;s++){let o=Math.min(i+fD,t.length);n[s]=new _D(t.slice(i,o)),i=o}return this.buildTreeFromBottom(n)}static linesFromText(t){let n=e2(t);if(n.length===0)return{lines:[],lineMap:n};let i=new Array(n.length),s=n.length-1;for(let c=0;c<s;c++)i[c]=t.substring(n[c],n[c+1]);let o=t.substring(n[s]);return o.length>0?i[s]=o:i.pop(),{lines:i,lineMap:n}}},_D=class yve{constructor(t=[]){this.children=t,this.totalChars=0,this.totalLines=0,t.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(let t of this.children)this.totalChars+=t.charCount(),this.totalLines+=t.lineCount()}execWalk(t,n,i,s,o){return i.pre&&i.pre(t,n,this.children[s],this,o),i.goSubtree?(this.children[s].walk(t,n,i),i.post&&i.post(t,n,this.children[s],this,o)):i.goSubtree=!0,i.done}skipChild(t,n,i,s,o){s.pre&&!s.done&&(s.pre(t,n,this.children[i],this,o),s.goSubtree=!0)}walk(t,n,i){if(this.children.length===0)return;let s=0,o=this.children[s].charCount(),c=t;for(;c>=o;)this.skipChild(c,n,s,i,0),c-=o,s++,o=this.children[s].charCount();if(c+n<=o){if(this.execWalk(c,n,i,s,2))return}else{if(this.execWalk(c,o-c,i,s,1))return;let p=n-(o-c);for(s++,o=this.children[s].charCount();p>o;){if(this.execWalk(0,o,i,s,3))return;p-=o,s++,o=this.children[s].charCount()}if(p>0&&this.execWalk(0,p,i,s,4))return}if(i.pre){let p=this.children.length;if(s<p-1)for(let u=s+1;u<p;u++)this.skipChild(0,0,u,i,5)}}charOffsetToLineInfo(t,n){if(this.children.length===0)return{oneBasedLine:t,zeroBasedColumn:n,lineText:void 0};for(let o of this.children){if(o.charCount()>n)return o.isLeaf()?{oneBasedLine:t,zeroBasedColumn:n,lineText:o.text}:o.charOffsetToLineInfo(t,n);n-=o.charCount(),t+=o.lineCount()}let i=this.lineCount();if(i===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};let s=w.checkDefined(this.lineNumberToInfo(i,0).leaf);return{oneBasedLine:i,zeroBasedColumn:s.charCount(),lineText:void 0}}lineNumberToInfo(t,n){for(let i of this.children){let s=i.lineCount();if(s>=t)return i.isLeaf()?{position:n,leaf:i}:i.lineNumberToInfo(t,n);t-=s,n+=i.charCount()}return{position:n,leaf:void 0}}splitAfter(t){let n,i=this.children.length;t++;let s=t;if(t<i){for(n=new yve;t<i;)n.add(this.children[t]),t++;n.updateCounts()}return this.children.length=s,n}remove(t){let n=this.findChildIndex(t),i=this.children.length;if(n<i-1)for(let s=n;s<i-1;s++)this.children[s]=this.children[s+1];this.children.pop()}findChildIndex(t){let n=this.children.indexOf(t);return w.assert(n!==-1),n}insertAt(t,n){let i=this.findChildIndex(t),s=this.children.length,o=n.length;if(s<fD&&i===s-1&&o===1)return this.add(n[0]),this.updateCounts(),[];{let c=this.splitAfter(i),p=0;for(i++;i<fD&&p<o;)this.children[i]=n[p],i++,p++;let u=[],g=0;if(p<o){g=Math.ceil((o-p)/fD),u=new Array(g);let d=0;for(let S=0;S<g;S++)u[S]=new yve;let h=u[0];for(;p<o;)h.add(n[p]),p++,h.children.length===fD&&(d++,h=u[d]);for(let S=u.length-1;S>=0;S--)u[S].children.length===0&&u.pop()}c&&u.push(c),this.updateCounts();for(let d=0;d<g;d++)u[d].updateCounts();return u}}add(t){this.children.push(t),w.assert(this.children.length<=fD)}charCount(){return this.totalChars}lineCount(){return this.totalLines}},IL=class{constructor(e){this.text=e}isLeaf(){return!0}walk(e,t,n){n.leaf(e,t,this)}charCount(){return this.text.length}lineCount(){return 1}},H6e=class T5e{constructor(t,n,i,s,o,c){this.telemetryEnabled=t,this.logger=n,this.host=i,this.globalTypingsCacheLocation=s,this.event=o,this.maxActiveRequestCount=c,this.activeRequestCount=0,this.requestQueue=pM(),this.requestMap=new Map,this.requestedRegistry=!1,this.packageInstallId=0}isKnownTypesPackageName(t){var n;return Wb.validatePackageName(t)!==Wb.NameValidationResult.Ok?!1:(this.requestedRegistry||(this.requestedRegistry=!0,this.installer.send({kind:"typesRegistry"})),!!((n=this.typesRegistryCache)!=null&&n.has(t)))}installPackage(t){this.packageInstallId++;let n={kind:"installPackage",...t,id:this.packageInstallId},i=new Promise((s,o)=>{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:s,reject:o})});return this.installer.send(n),i}attach(t){this.projectService=t,this.installer=this.createInstallerProcess()}onProjectClosed(t){this.installer.send({projectName:t.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(t,n,i){let s=nde(t,n,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${a1(s)}`),this.activeRequestCount<this.maxActiveRequestCount?this.scheduleRequest(s):(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Deferring request for: ${s.projectName}`),this.requestQueue.enqueue(s),this.requestMap.set(s.projectName,s))}handleMessage(t){var n,i;switch(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Received response:${a1(t)}`),t.kind){case uq:this.typesRegistryCache=new Map(Object.entries(t.typesRegistry));break;case qj:{let s=(n=this.packageInstalledPromise)==null?void 0:n.get(t.id);w.assertIsDefined(s,"Should find the promise for package install"),(i=this.packageInstalledPromise)==null||i.delete(t.id),t.success?s.resolve({successMessage:t.message}):s.reject(t.message),this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case lce:{let s={message:t.message};this.event(s,"typesInstallerInitializationFailed");break}case pq:{let s={eventId:t.eventId,packages:t.packagesToInstall};this.event(s,"beginInstallTypes");break}case fq:{if(this.telemetryEnabled){let c={telemetryEventName:"typingsInstalled",payload:{installedPackages:t.packagesToInstall.join(","),installSuccess:t.installSuccess,typingsInstallerVersion:t.typingsInstallerVersion}};this.event(c,"telemetry")}let s={eventId:t.eventId,packages:t.packagesToInstall,success:t.installSuccess};this.event(s,"endInstallTypes");break}case Vj:{this.projectService.updateTypingsForProject(t);break}case Uj:{for(this.activeRequestCount>0?this.activeRequestCount--:w.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){let s=this.requestQueue.dequeue();if(this.requestMap.get(s.projectName)===s){this.requestMap.delete(s.projectName),this.scheduleRequest(s);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${s.projectName}`)}this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case lR:this.projectService.watchTypingLocations(t);break;default:}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${a1(t)}`),this.installer.send(t)},T5e.requestDelayMillis,`${t.projectName}::${t.kind}`)}};H6e.requestDelayMillis=100;var Q6e=H6e,K6e={};it(K6e,{ActionInvalidate:()=>Vj,ActionPackageInstalled:()=>qj,ActionSet:()=>Uj,ActionWatchTypingLocations:()=>lR,Arguments:()=>_q,AutoImportProviderProject:()=>xde,AuxiliaryProject:()=>Tde,CharRangeSection:()=>Kde,CloseFileWatcherEvent:()=>DQ,CommandNames:()=>O6e,ConfigFileDiagEvent:()=>kQ,ConfiguredProject:()=>Cde,ConfiguredProjectLoadKind:()=>Ede,CreateDirectoryWatcherEvent:()=>IQ,CreateFileWatcherEvent:()=>wQ,Errors:()=>my,EventBeginInstallTypes:()=>pq,EventEndInstallTypes:()=>fq,EventInitializationFailed:()=>lce,EventTypesRegistry:()=>uq,ExternalProject:()=>hQ,GcTimer:()=>ude,InferredProject:()=>Sde,LargeFileReferencedEvent:()=>TQ,LineIndex:()=>d3,LineLeaf:()=>IL,LineNode:()=>_D,LogLevel:()=>tde,Msg:()=>rde,OpenFileInfoTelemetryEvent:()=>wde,Project:()=>kC,ProjectInfoTelemetryEvent:()=>CQ,ProjectKind:()=>ZE,ProjectLanguageServiceStateEvent:()=>xQ,ProjectLoadingFinishEvent:()=>SQ,ProjectLoadingStartEvent:()=>bQ,ProjectService:()=>Bde,ProjectsUpdatedInBackgroundEvent:()=>xL,ScriptInfo:()=>dde,ScriptVersionCache:()=>BQ,Session:()=>J6e,TextStorage:()=>_de,ThrottledOperations:()=>lde,TypingsInstallerAdapter:()=>Q6e,allFilesAreJsOrDts:()=>yde,allRootFilesAreJsOrDts:()=>hde,asNormalizedPath:()=>o6e,convertCompilerOptions:()=>CL,convertFormatOptions:()=>uD,convertScriptKindName:()=>AQ,convertTypeAcquisition:()=>Dde,convertUserPreferences:()=>Pde,convertWatchOptions:()=>f3,countEachFileTypes:()=>c3,createInstallTypingsRequest:()=>nde,createModuleSpecifierCache:()=>Jde,createNormalizedPathMap:()=>c6e,createPackageJsonCache:()=>Ude,createSortedArray:()=>cde,emptyArray:()=>jl,findArgument:()=>cxe,formatDiagnosticToProtocol:()=>_3,formatMessage:()=>Vde,getBaseConfigFileName:()=>gQ,getDetailWatchInfo:()=>RQ,getLocationInNewDocument:()=>Qde,hasArgument:()=>oxe,hasNoTypeScriptSource:()=>vde,indent:()=>xE,isBackgroundProject:()=>u3,isConfigFile:()=>zde,isConfiguredProject:()=>mv,isDynamicFileName:()=>YE,isExternalProject:()=>l3,isInferredProject:()=>lD,isInferredProjectName:()=>ide,isProjectDeferredClose:()=>p3,makeAutoImportProviderProjectName:()=>ade,makeAuxiliaryProjectName:()=>ode,makeInferredProjectName:()=>sde,maxFileSize:()=>vQ,maxProgramSizeForNonTsFiles:()=>yQ,normalizedPathToPath:()=>cD,nowString:()=>lxe,nullCancellationToken:()=>N6e,nullTypingsInstaller:()=>wL,protocol:()=>pde,scriptInfoIsContainedByBackgroundProject:()=>mde,scriptInfoIsContainedByDeferredClosedProject:()=>gde,stringifyIndented:()=>a1,toEvent:()=>qde,toNormalizedPath:()=>go,tryConvertScriptKindName:()=>PQ,typingsInstaller:()=>ede,updateProjectIfDirty:()=>Sd}),typeof console<"u"&&(w.loggingHost={log(e,t){switch(e){case 1:return console.error(t);case 2:return console.warn(t);case 3:return console.log(t);case 4:return console.log(t)}}})})({get exports(){return m5e},set exports(Q){m5e=Q,typeof CY<"u"&&CY.exports&&(CY.exports=Q)}})});var ro=(Q=>(Q[Q.VOID=0]="VOID",Q[Q.BIT=1]="BIT",Q[Q.BYTE=2]="BYTE",Q[Q.BYTE_2=3]="BYTE_2",Q[Q.BYTE_4=4]="BYTE_4",Q[Q.BYTE_8=5]="BYTE_8",Q[Q.POINTER=6]="POINTER",Q[Q.COMPOSITE=7]="COMPOSITE",Q))(ro||{}),J7e=new DataView(new ArrayBuffer(8));new Uint16Array(J7e.buffer)[0]=258;var cW=4096,lW=64<<20,U7e=7,Dyt=8192,Pyt=2147483647,Ayt=4294967295,zye=4096,Wc=J7e.getUint8(0)===2,V7e=2,Eyt=4,q7e=3,ZX=Pyt,Gye=Ayt,eY="CAPNP-TS000 Unreachable code detected.";function uW(Q){throw new Error(eY+` (never block hit with: ${Q})`)}var Jye="CAPNP-TS001 Attempted to parse an invalid message frame header; are you sure this is a Cap'n Proto message?",$7e="CAPNP-TS003 Attempted to pack a message that was not word-aligned.",Uye="CAPNP-TS004 Segment ID %X is out of bounds for message %s.",Vye="CAPNP-TS005 First segment must have at least enough room to hold the root pointer (8 bytes).";var Nyt="CAPNP-TS008 Attempted to adopt %s into a pointer in a different message %s.",Myt="CAPNP-TS009 Attempted to adopt %s more than once.",Ryt="CAPNP-TS010 Attempted to set a composite list without providing a composite element size.",qye="CAPNP-TS011 Nesting depth limit exceeded for %s.",Oyt="CAPNP-TS013 Attempted to initialize a struct member from a composite list (%s).",Fyt="CAPNP-TS015 Target of a far pointer (%s) is another far pointer.",HX="CAPNP-TS016 Invalid list element size: %x.",QX="CAPNP-TS017 Invalid pointer type: %x.",jyt="CAPNP-TS018 Attempted to access getter on %s for union field %s that is not currently set (wanted: %d, found: %d).",Lyt="CAPNP-TS019 Pointer offset %a is out of bounds for underlying buffer.",Wyt="CAPNP-TS020 Attempted to access out-of-bounds struct data (struct: %s, %d bytes at %a, data words: %d).",Byt="CAPNP-TS021 Attempted to access out-of-bounds struct pointer (%s, index: %d, length: %d).",zyt="CAPNP-TS022 Traversal limit exceeded! Slow down! %s",Gyt="CAPNP-TS023 Cannot convert %s to a %s list.",Jyt="CAPNP-TS024 Attempted to convert pointer %s to a %s type.",H7e="CAPNP-TS035 Attempted to get a segment other than 0 (%d) from a single segment arena.",Q7e="CAPNP-TS036 Attempted to get an out-of-bounds segment (%d).",$ye="CAPNP-TS037 Segment buffer length %d is not a multiple of 8.",K7e="CAPNP-TS038 Attempted to replace a segment buffer with one that is smaller than the allocated space.",X7e=`CAPNP-TS039 Requested size %x exceeds maximum value (${Gye}).`,Uyt="CAPNP-TS040 Must provide a composite element size for composite list pointers.",$N="CAPNP-TS045: Cannot call mutative methods on an immutable list.",nW="CAPNP-TS046: Search is not supported for list.",Hye="CAPNP-TS100 Call on null client.";function Vyt(Q){let R=new Uint8Array(Q),me=[];for(let Te=0;Te<R.byteLength;Te++)me.push(KX(R[Te].toString(16),2));return`[${me.join(" ")}]`}function Y7e(Q){let R=Q instanceof ArrayBuffer?new Uint8Array(Q):new Uint8Array(Q.buffer,Q.byteOffset,Q.byteLength),me=Math.min(R.byteLength,Dyt),Te=xl(`
|
|
=== buffer[%d] ===`,me);for(let ze=0;ze<me;ze+=16){Te+=`
|
|
${KX(ze.toString(16),8)}: `;let it="",xr;for(xr=0;xr<16&&ze+xr<R.byteLength;xr++){let Ir=R[ze+xr];Te+=`${KX(Ir.toString(16),2)} `,it+=Ir>31&&Ir<255?String.fromCharCode(Ir):"\xB7",xr===7&&(Te+=" ")}Te+=`${" ".repeat((17-xr)*3)}${it}`}return Te+=`
|
|
`,me!==R.byteLength&&(Te+=xl(`=== (truncated %d bytes) ===
|
|
`,R.byteLength-me)),Te}function xl(Q,...R){let me=Q.length,Te,ze=0,it,xr=!1,Ir=0,vi=!1,Yi,Vi="";function Va(){return R[ze++]}function Ke(){let Gl="";for(;/\d/.test(Q[Ir]);)Gl+=Q[Ir++],it=Q[Ir];return Gl.length>0?Number.parseInt(Gl,10):null}for(;Ir<me;++Ir)if(it=Q[Ir],xr)switch(xr=!1,it==="."?(vi=!1,it=Q[++Ir]):it==="0"&&Q[Ir+1]==="."?(vi=!0,Ir+=2,it=Q[Ir]):vi=!0,Yi=Ke(),it){case"a":{Vi+="0x"+KX(Number.parseInt(String(Va()),10).toString(16),8);break}case"b":{Vi+=Number.parseInt(String(Va()),10).toString(2);break}case"c":{Te=Va(),Vi+=typeof Te=="string"||Te instanceof String?Te:String.fromCharCode(Number.parseInt(String(Te),10));break}case"d":{Vi+=Number.parseInt(String(Va()),10);break}case"f":{let Gl=Number.parseFloat(String(Va())).toFixed(Yi||6);Vi+=vi?Gl:Gl.replace(/^0/,"");break}case"j":{Vi+=JSON.stringify(Va());break}case"o":{Vi+="0"+Number.parseInt(String(Va()),10).toString(8);break}case"s":{Vi+=Va();break}case"x":{Vi+="0x"+Number.parseInt(String(Va()),10).toString(16);break}case"X":{Vi+="0x"+Number.parseInt(String(Va()),10).toString(16).toUpperCase();break}default:{Vi+=it;break}}else it==="%"?xr=!0:Vi+=it;return Vi}function KX(Q,R,me="0"){return Q.length>=R?Q:Array.from({length:R-Q.length+1}).join(me)+Q}function Uv(Q){return Q+7&-8}var Au=class{constructor(R,me){this.dataByteLength=R,this.pointerLength=me}toString(){return xl("ObjectSize_dw:%d,pc:%d",sW(this),this.pointerLength)}};function rS(Q){return Q.dataByteLength+Q.pointerLength*8}function sW(Q){return Q.dataByteLength/8}function yO(Q){return Q.dataByteLength/8+Q.pointerLength}function Qye(Q){return new Au(Uv(Q.dataByteLength),Q.pointerLength)}var Wye=class{_capnp;byteOffset;segment;constructor(R){let me=qo(R);switch(this.segment=me.segment,this.byteOffset=me.byteOffset,this._capnp={},this._capnp.type=S0(R),this._capnp.type){case $l.STRUCT:{this._capnp.size=dw(R);break}case $l.LIST:{this._capnp.length=YN(R),this._capnp.elementSize=ZD(R),this._capnp.elementSize===ro.COMPOSITE&&(this._capnp.size=_W(R));break}case $l.OTHER:{this._capnp.capId=Yye(R);break}default:throw new Error(QX)}pW(R)}_moveTo(R){if(this._capnp===void 0)throw new Error(xl(Myt,this));if(this.segment.message!==R.segment.message)throw new Error(xl(Nyt,this,R));nS(R);let me=iS(this.segment,this.byteOffset,R);switch(this._capnp.type){case $l.STRUCT:{eP(me.offsetWords,this._capnp.size,me.pointer);break}case $l.LIST:{let{offsetWords:Te}=me;this._capnp.elementSize===ro.COMPOSITE&&Te--,KN(Te,this._capnp.elementSize,this._capnp.length,me.pointer,this._capnp.size);break}case $l.OTHER:{nY(this._capnp.capId,me.pointer);break}default:throw new Error(QX)}this._capnp=void 0}dispose(){if(this._capnp!==void 0){switch(this._capnp.type){case $l.STRUCT:{this.segment.fillZeroWords(this.byteOffset,yO(this._capnp.size));break}case $l.LIST:{let R=Xye(this._capnp.elementSize,this._capnp.length,this._capnp.size);this.segment.fillZeroWords(this.byteOffset,R);break}}this._capnp=void 0}}[Symbol.for("nodejs.util.inspect.custom")](){return xl("Orphan_%d@%a,type:%s",this.segment.id,this.byteOffset,this._capnp&&this._capnp.type)}};function Z7e(Q,R){Q._moveTo(R)}function eje(Q){return new Wye(Q)}function Kye(Q){return Vyt(Q.segment.buffer.slice(Q.byteOffset,Q.byteOffset+8))}function Xye(Q,R,me){switch(Q){case ro.BIT:return Uv(R+7>>>3);case ro.BYTE:case ro.BYTE_2:case ro.BYTE_4:case ro.BYTE_8:case ro.POINTER:case ro.VOID:return Uv(bO(Q)*R);case ro.COMPOSITE:{if(me===void 0)throw new Error(xl(HX,Number.NaN));return R*Uv(rS(me))}default:throw new Error(HX)}}function bO(Q){switch(Q){case ro.BIT:return Number.NaN;case ro.BYTE:return 1;case ro.BYTE_2:return 2;case ro.BYTE_4:return 4;case ro.BYTE_8:case ro.POINTER:return 8;case ro.COMPOSITE:return Number.NaN;case ro.VOID:return 0;default:throw new Error(xl(HX,Q))}}function XX(Q,R){return new kp(R.segment,R.byteOffset+Q,R._capnp.depthLimit)}function Vv(Q,R){if(!(R.segment===Q.segment&&R.byteOffset===Q.byteOffset)&&(nS(R),!sS(Q)))switch(S0(Q)){case $l.STRUCT:{sve(Q,R);break}case $l.LIST:{ive(Q,R);break}case $l.OTHER:{nve(Q,R);break}default:throw new Error(xl(QX,S0(R)))}}function nS(Q){if(sS(Q))return;let R;switch(S0(Q)){case $l.STRUCT:{let me=dw(Q);R=qo(Q),R.segment.fillZeroWords(R.byteOffset,me.dataByteLength/8);for(let Te=0;Te<me.pointerLength;Te++)nS(XX(Te*8,R));break}case $l.LIST:{let me=ZD(Q),Te=YN(Q),ze=Uv(Te*bO(me));if(R=qo(Q),me===ro.POINTER){for(let it=0;it<Te;it++)nS(new kp(R.segment,R.byteOffset+it*8,Q._capnp.depthLimit-1));break}else if(me===ro.COMPOSITE){let it=XX(-8,R),xr=XN(it),Ir=rS(xr);ze=QN(it),R.segment.setWordZero(R.byteOffset-8);for(let vi=0;vi<Te;vi++)for(let Yi=0;Yi<xr.pointerLength;Yi++)nS(new kp(R.segment,R.byteOffset+vi*Ir+Yi*8,Q._capnp.depthLimit-1))}R.segment.fillZeroWords(R.byteOffset,ze);break}case $l.OTHER:break;default:throw new Error(xl(QX,S0(Q)))}pW(Q)}function pW(Q){if(SO(Q)===$l.FAR){let R=fW(Q);dW(Q)&&R.segment.setWordZero(R.byteOffset+8),R.segment.setWordZero(R.byteOffset)}Q.segment.setWordZero(Q.byteOffset)}function fW(Q){let R=Q.segment.message.getSegment(Q.segment.getUint32(Q.byteOffset+4)),me=Q.segment.getUint32(Q.byteOffset)>>>3;return new kp(R,me*8,Q._capnp.depthLimit-1)}function OT(Q){if(SO(Q)===$l.FAR){let R=fW(Q);return dW(Q)&&(R.byteOffset+=8),R}return Q}function Yye(Q){return Q.segment.getUint32(Q.byteOffset+4)}function qyt(Q){return S0(Q)===$l.LIST&&ZD(Q)===ro.COMPOSITE}function qo(Q,R){let me;if(dW(Q)){let Te=fW(Q);me=new kp(Q.segment.message.getSegment(Zye(Te)),QN(Te)*8)}else{let Te=OT(Q);me=new kp(Te.segment,Te.byteOffset+8+QN(Te)*8)}return qyt(Q)&&(me.byteOffset+=8),!R&&Q._capnp.compositeIndex!==void 0&&(me.byteOffset-=8,me.byteOffset+=8+Q._capnp.compositeIndex*rS(Qye(XN(me)))),me}function Zye(Q){return Q.segment.getUint32(Q.byteOffset+4)}function tY(Q){return Q.segment.getUint32(Q.byteOffset+4)&U7e}function eve(Q){return Q.segment.getUint32(Q.byteOffset+4)>>>3}function QN(Q){let R=Q.segment.getInt32(Q.byteOffset);return R&2?R>>3:R>>2}function SO(Q){return Q.segment.getUint32(Q.byteOffset)&q7e}function tve(Q){return Q.segment.getUint16(Q.byteOffset+4)}function rve(Q){return Q.segment.getUint16(Q.byteOffset+6)}function XN(Q){return new Au(tve(Q)*8,rve(Q))}function rY(Q){let R=qo(Q);return R.byteOffset-=8,R}function _W(Q){return XN(rY(Q))}function ZD(Q){return tY(OT(Q))}function YN(Q){let R=OT(Q);return tY(R)===ro.COMPOSITE?QN(rY(Q)):eve(R)}function S0(Q){let R=SO(OT(Q));if(R===$l.FAR)throw new Error(xl(Fyt,Q));return R}function dw(Q){return XN(OT(Q))}function iS(Q,R,me){if(me.segment!==Q){if(!Q.hasCapacity(8)){let ze=me.segment.allocate(16);return iW(!0,ze.byteOffset/8,ze.segment.id,me),iW(!1,R/8,Q.id,ze),ze.byteOffset+=8,new HN(ze,0)}let Te=Q.allocate(8);if(Te.segment.id!==Q.id)throw new Error(eY);return iW(!1,Te.byteOffset/8,Te.segment.id,me),new HN(Te,(R-Te.byteOffset-8)/8)}return new HN(me,(R-me.byteOffset-8)/8)}function dW(Q){return SO(Q)===$l.FAR&&(Q.segment.getUint32(Q.byteOffset)&Eyt)!==0}function sS(Q){return Q.segment.isWordZero(Q.byteOffset)}function tje(Q,R){let me=OT(R),Te=me.segment.getUint8(me.byteOffset)&3,ze=me.segment.getUint32(me.byteOffset+4);nS(Q);let it=iS(me.segment,me.byteOffset+8+QN(me)*8,Q);it.pointer.segment.setUint32(it.pointer.byteOffset,Te|it.offsetWords<<2),it.pointer.segment.setUint32(it.pointer.byteOffset+4,ze),pW(R)}function iW(Q,R,me,Te){let ze=$l.FAR,it=Q?1:0,xr=R,Ir=me;Te.segment.setUint32(Te.byteOffset,ze|it<<2|xr<<3),Te.segment.setUint32(Te.byteOffset+4,Ir)}function nY(Q,R){R.segment.setUint32(R.byteOffset,$l.OTHER),R.segment.setUint32(R.byteOffset+4,Q)}function iY(Q){return Q.segment.getUint32(Q.byteOffset+4)}function KN(Q,R,me,Te,ze){let it=$l.LIST,xr=Q,Ir=R,vi=me;if(R===ro.COMPOSITE){if(ze===void 0)throw new TypeError(Uyt);vi*=yO(ze)}Te.segment.setUint32(Te.byteOffset,it|xr<<2),Te.segment.setUint32(Te.byteOffset+4,Ir|vi<<3)}function eP(Q,R,me){let Te=$l.STRUCT,ze=Q,it=sW(R),xr=R.pointerLength;me.segment.setUint32(me.byteOffset,Te|ze<<2),me.segment.setUint16(me.byteOffset+4,it),me.segment.setUint16(me.byteOffset+6,xr)}function ZN(Q,R,me){if(sS(R))return;let Te=OT(R);if((Te.segment.getUint32(Te.byteOffset)&q7e)!==Q)throw new Error(xl(Jyt,R,Q));if(me!==void 0&&(Te.segment.getUint32(Te.byteOffset+4)&U7e)!==me)throw new Error(xl(Gyt,R,ro[me]))}function nve(Q,R){let me=iY(Q);if(me<0)return;let Te=Q.segment.message._capnp.capTable;if(!Te)return;let ze=Te[me];if(!ze)return;let it=R.segment.message.addCap(ze);nY(it,R)}function ive(Q,R){if(R._capnp.depthLimit<=0)throw new Error(qye);let me=qo(Q),Te=ZD(Q),ze=YN(Q),it,xr,Ir;if(Te===ro.POINTER){Ir=R.segment.allocate(ze<<3);for(let Yi=0;Yi<ze;Yi++){let Vi=new kp(me.segment,me.byteOffset+(Yi<<3),Q._capnp.depthLimit-1),Va=new kp(Ir.segment,Ir.byteOffset+(Yi<<3),R._capnp.depthLimit-1);Vv(Vi,Va)}}else if(Te===ro.COMPOSITE){if(it=Qye(_W(Q)),xr=rS(it),Ir=R.segment.allocate(rS(it)*ze+8),Ir.segment.copyWord(Ir.byteOffset,me.segment,me.byteOffset-8),it.dataByteLength>0){let Yi=yO(it)*ze;Ir.segment.copyWords(Ir.byteOffset+8,me.segment,me.byteOffset,Yi)}for(let Yi=0;Yi<ze;Yi++)for(let Vi=0;Vi<it.pointerLength;Vi++){let Va=Yi*xr+it.dataByteLength+(Vi<<3),Ke=new kp(me.segment,me.byteOffset+Va,Q._capnp.depthLimit-1),Gl=new kp(Ir.segment,Ir.byteOffset+Va+8,R._capnp.depthLimit-1);Vv(Ke,Gl)}}else{let Yi=Uv(Te===ro.BIT?ze+7>>>3:bO(Te)*ze),Vi=Yi>>>3;Ir=R.segment.allocate(Yi),Ir.segment.copyWords(Ir.byteOffset,me.segment,me.byteOffset,Vi)}let vi=iS(Ir.segment,Ir.byteOffset,R);KN(vi.offsetWords,Te,ze,vi.pointer,it)}function sve(Q,R){if(R._capnp.depthLimit<=0)throw new Error(qye);let me=qo(Q),Te=dw(Q),ze=sW(Te),it=R.segment.allocate(rS(Te));it.segment.copyWords(it.byteOffset,me.segment,me.byteOffset,ze);for(let Ir=0;Ir<Te.pointerLength;Ir++){let vi=Te.dataByteLength+Ir*8,Yi=new kp(me.segment,me.byteOffset+vi,Q._capnp.depthLimit-1),Vi=new kp(it.segment,it.byteOffset+vi,R._capnp.depthLimit-1);Vv(Yi,Vi)}if(R._capnp.compositeList)return;let xr=iS(it.segment,it.byteOffset,R);eP(xr.offsetWords,Te,xr.pointer)}function ave(Q,R){if(Q._capnp.traversalLimit-=8,Q._capnp.traversalLimit<=0)throw new Error(xl(zyt,R))}var HN=class{constructor(R,me){this.pointer=R,this.offsetWords=me}},$l=(Q=>(Q[Q.STRUCT=0]="STRUCT",Q[Q.LIST=1]="LIST",Q[Q.FAR=2]="FAR",Q[Q.OTHER=3]="OTHER",Q))($l||{}),kp=class{static _capnp={displayName:"Pointer"};_capnp;byteOffset;segment;constructor(R,me,Te=ZX){if(this._capnp={compositeList:!1,depthLimit:Te},this.segment=R,this.byteOffset=me,Te<1)throw new Error(xl(qye,this));if(ave(R.message,this),me<0||me>R.byteLength)throw new Error(xl(Lyt,me))}[Symbol.toStringTag](){return xl("Pointer_%d",this.segment.id)}toString(){return xl("->%d@%a%s",this.segment.id,this.byteOffset,Kye(this))}},Yd=class Q extends kp{static _capnp={displayName:"List<Generic>",size:ro.VOID};constructor(R,me,Te){return super(R,me,Te),new Proxy(this,Q.#e)}static#e={get(R,me,Te){let ze=Reflect.get(R,me,Te);if(ze!==void 0)return ze;if(typeof me=="string")return R.get(+me)}};get length(){return YN(this)}toArray(){let{length:R}=this,me=Array.from({length:R});for(let Te=0;Te<R;Te++)me[Te]=this.at(Te);return me}get(R){throw new TypeError("Cannot get from a generic list.")}set(R,me){throw new TypeError("Cannot set on a generic list.")}at(R){return this.get(R<0?this.length+R:R)}concat(R){let{length:me}=this,Te=R.length,ze=Array.from({length:me+Te});for(let it=0;it<me;it++)ze[it]=this.at(it);for(let it=0;it<Te;it++)ze[it+me]=R.at(it);return ze}some(R,me){for(let Te=0;Te<this.length;Te++)if(R.call(me,this.at(Te),Te,this))return!0;return!1}filter(R,me){let Te=[];for(let ze=0;ze<this.length;ze++){let it=this.at(ze);R.call(me,it,ze,this)&&Te.push(it)}return Te}find(R,me){for(let Te=0;Te<this.length;Te++){let ze=this.at(Te);if(R.call(me,ze,Te,this))return ze}}findIndex(R,me){for(let Te=0;Te<this.length;Te++){let ze=this.at(Te);if(R.call(me,ze,Te,this))return Te}return-1}forEach(R,me){for(let Te=0;Te<this.length;Te++)R.call(me,this.at(Te),Te,this)}map(R,me){let{length:Te}=this,ze=Array.from({length:Te});for(let it=0;it<Te;it++)ze[it]=R.call(me,this.at(it),it,this);return ze}flatMap(R,me){let Te=[];for(let ze=0;ze<this.length;ze++){let it=R.call(me,this.at(ze),ze,this);Te.push(...Array.isArray(it)?it:[it])}return Te}every(R,me){for(let Te=0;Te<this.length;Te++)if(!R.call(me,this.at(Te),Te,this))return!1;return!0}reduce(R,me){let Te=0,ze;for(me===void 0?(ze=this.at(0),Te++):ze=me;Te<this.length;Te++)ze=R(ze,this.at(Te),Te,this);return ze}reduceRight(R,me){let Te=this.length-1,ze;for(me===void 0?(ze=this.at(Te),Te--):ze=me;Te>=0;Te--)ze=R(ze,this.at(Te),Te,this);return ze}slice(R=0,me){let Te=me?Math.min(this.length,me):this.length,ze=Array.from({length:Te-R});for(let it=R;it<Te;it++)ze[it]=this.at(it);return ze}join(R){return this.toArray().join(R)}toReversed(){return this.toArray().reverse()}toSorted(R){return this.toArray().sort(R)}toSpliced(R,me,...Te){return this.toArray().splice(R,me,...Te)}fill(R,me,Te){let{length:ze}=this,it=Math.max(me??0,0),xr=Math.min(Te??ze,ze);for(let Ir=it;Ir<xr;Ir++)this.set(Ir,R);return this}copyWithin(R,me,Te){let{length:ze}=this,it=Te??ze,xr=me<0?Math.max(ze+me,0):me,Ir=R<0?Math.max(ze+R,0):R,vi=Math.min(it-xr,ze-Ir);for(let Yi=0;Yi<vi;Yi++)this.set(Ir+Yi,this.at(xr+Yi));return this}keys(){return Array.from({length:this.length},(R,me)=>me)[Symbol.iterator]()}values(){return this.toArray().values()}entries(){return this.toArray().entries()}flat(R){return this.toArray().flat(R)}with(R,me){return this.toArray().with(R,me)}includes(R,me){throw new Error(nW)}findLast(R,me){throw new Error(nW)}findLastIndex(R,me){throw new Error(nW)}indexOf(R,me){throw new Error(nW)}lastIndexOf(R,me){throw new Error(nW)}pop(){throw new Error($N)}push(...R){throw new Error($N)}reverse(){throw new Error($N)}shift(){throw new Error($N)}unshift(...R){throw new Error($N)}splice(R,me,...Te){throw new Error($N)}sort(R){throw new Error($N)}get[Symbol.unscopables](){return Array.prototype[Symbol.unscopables]}[Symbol.iterator](){return this.values()}toJSON(){return this.toArray()}toString(){return this.join(",")}toLocaleString(R,me){return this.toString()}[Symbol.toStringTag](){return"[object Array]"}static[Symbol.toStringTag](){return this._capnp.displayName}};function mW(Q,R,me,Te){let ze;switch(Q){case ro.BIT:{ze=me.segment.allocate(Math.ceil(R/8));break}case ro.BYTE:case ro.BYTE_2:case ro.BYTE_4:case ro.BYTE_8:case ro.POINTER:{ze=me.segment.allocate(R*bO(Q));break}case ro.COMPOSITE:{if(Te===void 0)throw new Error(xl(Ryt));Te=Qye(Te);let xr=rS(Te)*R;ze=me.segment.allocate(xr+8),eP(R,Te,ze);break}case ro.VOID:{KN(0,Q,R,me);return}default:throw new Error(xl(HX,Q))}let it=iS(ze.segment,ze.byteOffset,me);KN(it.offsetWords,Q,R,it.pointer,Te)}var vO=class extends Yd{static fromPointer(R){return ZN($l.LIST,R,ro.BYTE),this._fromPointerUnchecked(R)}static _fromPointerUnchecked(R){return new this(R.segment,R.byteOffset,R._capnp.depthLimit)}copyBuffer(R){let me=qo(this),Te=this.length,ze=R.byteLength,it=R instanceof ArrayBuffer?new Uint8Array(R):new Uint8Array(R.buffer,R.byteOffset,Math.min(Te,ze)),xr=new Uint8Array(me.segment.buffer,me.byteOffset,this.length);xr.set(it),Te>ze&&xr.fill(0,ze,Te)}get(R){let me=qo(this);return me.segment.getUint8(me.byteOffset+R)}set(R,me){let Te=qo(this);Te.segment.setUint8(Te.byteOffset+R,me)}toArrayBuffer(){let R=qo(this);return R.segment.buffer.slice(R.byteOffset,R.byteOffset+this.length)}toDataView(){let R=qo(this);return new DataView(R.segment.buffer,R.byteOffset,this.length)}[Symbol.toStringTag](){return`Data_${super.toString()}`}toUint8Array(){let R=qo(this);return new Uint8Array(R.segment.buffer,R.byteOffset,this.length)}},$yt=new TextEncoder,Hyt=new TextDecoder,YD=class extends Yd{static fromPointer(R){return ZN($l.LIST,R,ro.BYTE),Qyt(R)}get(R=0){if(sS(this))return"";let me=qo(this);return Hyt.decode(new Uint8Array(me.segment.buffer,me.byteOffset+R,this.length-R))}get length(){return super.length-1}set(R,me){let Te=$yt.encode(me),ze=Te.byteLength+R,it,xr;if(!sS(this)){it=qo(this);let vi=Math.min(this.length,R);xr=new Uint8Array(it.segment.buffer.slice(it.byteOffset,it.byteOffset+vi)),nS(this)}mW(ro.BYTE,ze+1,this),it=qo(this);let Ir=new Uint8Array(it.segment.buffer,it.byteOffset,ze);xr&&Ir.set(xr),Ir.set(Te,R)}toString(){return this.get()}toJSON(){return this.get()}[Symbol.toPrimitive](){return this.get()}[Symbol.toStringTag](){return`Text_${super.toString()}`}};function Qyt(Q){return new YD(Q.segment,Q.byteOffset,Q._capnp.depthLimit)}var Vu=class extends kp{static _capnp={displayName:"Struct"};constructor(R,me,Te=ZX,ze){super(R,me,Te),this._capnp.compositeIndex=ze,this._capnp.compositeList=ze!==void 0}static[Symbol.toStringTag](){return this._capnp.displayName}[Symbol.toStringTag](){return`Struct_${super.toString()}${this._capnp.compositeIndex===void 0?"":`,ci:${this._capnp.compositeIndex}`} > ${qo(this).toString()}`}},Bye=class extends Vu{static _capnp={displayName:"AnyStruct",id:"0",size:new Au(0,0)}},aW=class{struct(){return Promise.resolve(this.structSync())}},oW=class extends aW{constructor(R){super(),this.err=R}structSync(){throw this.err}pipelineCall(R,me){return this}pipelineClose(R){throw this.err}},YX=class{constructor(R){this.err=R}call(R){return new oW(this.err)}close(){throw this.err}};function Kyt(Q){return Q??new YX(new Error(Hye))}var au=new DataView(new ArrayBuffer(8));function eM(Q,R){if(R._capnp.compositeIndex!==void 0)throw new Error(xl(Oyt,R));nS(R);let me=R.segment.allocate(rS(Q)),Te=iS(me.segment,me.byteOffset,R);eP(Te.offsetWords,Q,Te.pointer)}function rje(Q,R,me){let Te=aY(Q,R,me);return eM(R._capnp.size,Te),Te}function tP(Q,R){let{pointerLength:me}=kO(R);if(Q<0||Q>=me)throw new Error(xl(Byt,R,Q,me))}function nje(Q,R){return sY(TO(Q,R))}function sY(Q){let R=null,me=iY(Q),{capTable:Te}=Q.segment.message._capnp;return Te&&me>=0&&me<Te.length&&(R=Te[me]),Kyt(R)}function gW(Q,R){let me=kO(R),Te=qo(R),ze=R.segment.allocate(rS(Q));ze.segment.copyWords(ze.byteOffset,Te.segment,Te.byteOffset,Math.min(sW(me),sW(Q)));let it=iS(ze.segment,ze.byteOffset,R);eP(it.offsetWords,Q,it.pointer);for(let xr=0;xr<Math.min(me.pointerLength,Q.pointerLength);xr++){let Ir=new kp(Te.segment,Te.byteOffset+me.dataByteLength+xr*8);if(sS(Ir))continue;let vi=OT(Ir),Yi=qo(Ir),Vi=new kp(ze.segment,ze.byteOffset+Q.dataByteLength+xr*8);S0(Ir)===$l.LIST&&ZD(Ir)===ro.COMPOSITE&&(Yi.byteOffset-=8);let Va=iS(Yi.segment,Yi.byteOffset,Vi),Ke=vi.segment.getUint8(vi.byteOffset)&3,Gl=vi.segment.getUint32(vi.byteOffset+4);Va.pointer.segment.setUint32(Va.pointer.byteOffset,Ke|Va.offsetWords<<2),Va.pointer.segment.setUint32(Va.pointer.byteOffset+4,Gl)}Te.segment.fillZeroWords(Te.byteOffset,yO(me))}function ove(Q,R){return new Q(R.segment,R.byteOffset,R._capnp.depthLimit,R._capnp.compositeIndex)}function ije(Q,R,me){let Te=Math.floor(Q/8),ze=1<<Q%8;t_(Te,1,R);let it=e_(R),xr=it.segment.getUint8(it.byteOffset+Te);if(me===void 0)return(xr&ze)!==0;let Ir=me.getUint8(0);return((xr^Ir)&ze)!==0}function sje(Q,R,me){tP(Q,R);let Te=rP(R);Te.byteOffset+=Q*8;let ze=new vO(Te.segment,Te.byteOffset,R._capnp.depthLimit-1);return sS(ze)&&(me?Vv(me,ze):mW(ro.BYTE,0,ze)),ze}function e_(Q){return qo(Q)}function aje(Q,R,me){t_(Q,4,R);let Te=e_(R);if(me===void 0)return Te.segment.getFloat32(Te.byteOffset+Q);let ze=Te.segment.getUint32(Te.byteOffset+Q)^me.getUint32(0,!0);return au.setUint32(0,ze,Wc),au.getFloat32(0,Wc)}function oje(Q,R,me){t_(Q,8,R);let Te=e_(R);if(me!==void 0){let ze=Te.segment.getUint32(Te.byteOffset+Q)^me.getUint32(0,!0),it=Te.segment.getUint32(Te.byteOffset+Q+4)^me.getUint32(4,!0);return au.setUint32(0,ze,Wc),au.setUint32(4,it,Wc),au.getFloat64(0,Wc)}return Te.segment.getFloat64(Te.byteOffset+Q)}function cje(Q,R,me){t_(Q,2,R);let Te=e_(R);if(me===void 0)return Te.segment.getInt16(Te.byteOffset+Q);let ze=Te.segment.getUint16(Te.byteOffset+Q)^me.getUint16(0,!0);return au.setUint16(0,ze,Wc),au.getInt16(0,Wc)}function lje(Q,R,me){t_(Q,4,R);let Te=e_(R);if(me===void 0)return Te.segment.getInt32(Te.byteOffset+Q);let ze=Te.segment.getUint32(Te.byteOffset+Q)^me.getUint16(0,!0);return au.setUint32(0,ze,Wc),au.getInt32(0,Wc)}function uje(Q,R,me){t_(Q,8,R);let Te=e_(R);if(me!==void 0){let ze=Te.segment.getUint32(Te.byteOffset+Q)^me.getUint32(0,!0),it=Te.segment.getUint32(Te.byteOffset+Q+4)^me.getUint32(4,!0);return au.setUint32(Wc?0:4,ze,Wc),au.setUint32(Wc?4:0,it,Wc),au.getBigInt64(0,Wc)}return Te.segment.getInt64(Te.byteOffset+Q)}function pje(Q,R,me){t_(Q,1,R);let Te=e_(R);if(me===void 0)return Te.segment.getInt8(Te.byteOffset+Q);let ze=Te.segment.getUint8(Te.byteOffset+Q)^me.getUint8(0);return au.setUint8(0,ze),au.getInt8(0)}function fje(Q,R,me,Te){tP(Q,me);let ze=rP(me);ze.byteOffset+=Q*8;let it=new R(ze.segment,ze.byteOffset,me._capnp.depthLimit-1);if(sS(it))Te?Vv(Te,it):mW(R._capnp.size,0,it,R._capnp.compositeSize);else if(R._capnp.compositeSize!==void 0){let xr=_W(it),Ir=R._capnp.compositeSize;if(Ir.dataByteLength>xr.dataByteLength||Ir.pointerLength>xr.pointerLength){let vi=qo(it),Yi=YN(it),Vi=it.segment.allocate(rS(Ir)*Yi+8),Va=iS(Vi.segment,Vi.byteOffset,it);KN(Va.offsetWords,R._capnp.size,Yi,Va.pointer,Ir),eP(Yi,Ir,Vi),Vi.byteOffset+=8;for(let Ke=0;Ke<Yi;Ke++){let Gl=vi.byteOffset+Ke*rS(xr),Dr=Vi.byteOffset+Ke*rS(Ir);Vi.segment.copyWords(Dr,vi.segment,Gl,yO(xr));for(let or=0;or<xr.pointerLength;or++){let Zg=new kp(vi.segment,Gl+xr.dataByteLength+or*8),fo=new kp(Vi.segment,Dr+Ir.dataByteLength+or*8),Em=OT(Zg),hw=qo(Zg);S0(Zg)===$l.LIST&&ZD(Zg)===ro.COMPOSITE&&(hw.byteOffset-=8);let LT=iS(hw.segment,hw.byteOffset,fo),oM=Em.segment.getUint8(Em.byteOffset)&3,Fi=Em.segment.getUint32(Em.byteOffset+4);LT.pointer.segment.setUint32(LT.pointer.byteOffset,oM|LT.offsetWords<<2),LT.pointer.segment.setUint32(LT.pointer.byteOffset+4,Fi)}}vi.segment.fillZeroWords(vi.byteOffset,yO(xr)*Yi)}}return it}function TO(Q,R){tP(Q,R);let me=rP(R);return me.byteOffset+=Q*8,new kp(me.segment,me.byteOffset,R._capnp.depthLimit-1)}function aY(Q,R,me){tP(Q,me);let Te=rP(me);return Te.byteOffset+=Q*8,new R(Te.segment,Te.byteOffset,me._capnp.depthLimit-1)}function rP(Q){let R=qo(Q);return R.byteOffset+=Uv(kO(Q).dataByteLength),R}function kO(Q){if(Q._capnp.compositeIndex!==void 0){let R=qo(Q,!0);return R.byteOffset-=8,XN(R)}return dw(Q)}function _je(Q,R,me,Te){let ze=aY(Q,R,me);if(sS(ze))Te?Vv(Te,ze):eM(R._capnp.size,ze);else{ZN($l.STRUCT,ze);let it=dw(ze);(it.dataByteLength<R._capnp.size.dataByteLength||it.pointerLength<R._capnp.size.pointerLength)&&gW(R._capnp.size,ze)}return ze}function dje(Q,R,me){let Te=YD.fromPointer(TO(Q,R));return sS(Te)&&me&&Te.set(0,me),Te.get(0)}function mje(Q,R,me){t_(Q,2,R);let Te=e_(R);return me===void 0?Te.segment.getUint16(Te.byteOffset+Q):Te.segment.getUint16(Te.byteOffset+Q)^me.getUint16(0,!0)}function gje(Q,R,me){t_(Q,4,R);let Te=e_(R);return me===void 0?Te.segment.getUint32(Te.byteOffset+Q):Te.segment.getUint32(Te.byteOffset+Q)^me.getUint32(0,!0)}function hje(Q,R,me){t_(Q,8,R);let Te=e_(R);if(me!==void 0){let ze=Te.segment.getUint32(Te.byteOffset+Q)^me.getUint32(0,!0),it=Te.segment.getUint32(Te.byteOffset+Q+4)^me.getUint32(4,!0);return au.setUint32(Wc?0:4,ze,Wc),au.setUint32(Wc?4:0,it,Wc),au.getBigUint64(0,Wc)}return Te.segment.getUint64(Te.byteOffset+Q)}function yje(Q,R,me){t_(Q,1,R);let Te=e_(R);return me===void 0?Te.segment.getUint8(Te.byteOffset+Q):Te.segment.getUint8(Te.byteOffset+Q)^me.getUint8(0)}function vje(Q,R,me){tP(Q,me);let Te=rP(me);Te.byteOffset+=Q*8;let ze=new vO(Te.segment,Te.byteOffset,me._capnp.depthLimit-1);return nS(ze),mW(ro.BYTE,R,ze),ze}function bje(Q,R,me,Te){tP(Q,Te);let ze=rP(Te);ze.byteOffset+=Q*8;let it=new R(ze.segment,ze.byteOffset,Te._capnp.depthLimit-1);return nS(it),mW(R._capnp.size,me,it,R._capnp.compositeSize),it}function Sje(Q,R,me,Te){let ze=Math.floor(Q/8),it=1<<Q%8;t_(ze,1,me);let xr=e_(me),Ir=xr.segment.getUint8(xr.byteOffset+ze);Te!==void 0&&(R=(Te.getUint8(0)&it)===0?R:!R),xr.segment.setUint8(xr.byteOffset+ze,R?Ir|it:Ir&~it)}function Tje(Q,R,me,Te){t_(Q,4,me);let ze=e_(me);if(Te!==void 0){au.setFloat32(0,R,Wc);let it=au.getUint32(0,Wc)^Te.getUint32(0,!0);ze.segment.setUint32(ze.byteOffset+Q,it);return}ze.segment.setFloat32(ze.byteOffset+Q,R)}function kje(Q,R,me,Te){t_(Q,8,me);let ze=e_(me);if(Te!==void 0){au.setFloat64(0,R,Wc);let it=au.getUint32(0,Wc)^Te.getUint32(0,!0),xr=au.getUint32(4,Wc)^Te.getUint32(4,!0);ze.segment.setUint32(ze.byteOffset+Q,it),ze.segment.setUint32(ze.byteOffset+Q+4,xr);return}ze.segment.setFloat64(ze.byteOffset+Q,R)}function xje(Q,R,me,Te){t_(Q,2,me);let ze=e_(me);if(Te!==void 0){au.setInt16(0,R,Wc);let it=au.getUint16(0,Wc)^Te.getUint16(0,!0);ze.segment.setUint16(ze.byteOffset+Q,it);return}ze.segment.setInt16(ze.byteOffset+Q,R)}function Cje(Q,R,me,Te){t_(Q,4,me);let ze=e_(me);if(Te!==void 0){au.setInt32(0,R,Wc);let it=au.getUint32(0,Wc)^Te.getUint32(0,!0);ze.segment.setUint32(ze.byteOffset+Q,it);return}ze.segment.setInt32(ze.byteOffset+Q,R)}function wje(Q,R,me,Te){t_(Q,8,me);let ze=e_(me);if(Te!==void 0){au.setBigInt64(0,R,Wc);let it=au.getUint32(Wc?0:4,Wc)^Te.getUint32(0,!0),xr=au.getUint32(Wc?4:0,Wc)^Te.getUint32(4,!0);ze.segment.setUint32(ze.byteOffset+Q,it),ze.segment.setUint32(ze.byteOffset+Q+4,xr);return}ze.segment.setInt64(ze.byteOffset+Q,R)}function Ije(Q,R,me,Te){t_(Q,1,me);let ze=e_(me);if(Te!==void 0){au.setInt8(0,R);let it=au.getUint8(0)^Te.getUint8(0);ze.segment.setUint8(ze.byteOffset+Q,it);return}ze.segment.setInt8(ze.byteOffset+Q,R)}function Dje(Q,R,me){YD.fromPointer(TO(Q,me)).set(0,R)}function Pje(Q,R,me,Te){t_(Q,2,me);let ze=e_(me);Te!==void 0&&(R^=Te.getUint16(0,!0)),ze.segment.setUint16(ze.byteOffset+Q,R)}function Aje(Q,R,me,Te){t_(Q,4,me);let ze=e_(me);Te!==void 0&&(R^=Te.getUint32(0,!0)),ze.segment.setUint32(ze.byteOffset+Q,R)}function Eje(Q,R,me,Te){t_(Q,8,me);let ze=e_(me);if(Te!==void 0){au.setBigUint64(0,R,Wc);let it=au.getUint32(Wc?0:4,Wc)^Te.getUint32(0,!0),xr=au.getUint32(Wc?4:0,Wc)^Te.getUint32(4,!0);ze.segment.setUint32(ze.byteOffset+Q,it),ze.segment.setUint32(ze.byteOffset+Q+4,xr);return}ze.segment.setUint64(ze.byteOffset+Q,R)}function Nje(Q,R,me,Te){t_(Q,1,me);let ze=e_(me);Te!==void 0&&(R^=Te.getUint8(0)),ze.segment.setUint8(ze.byteOffset+Q,R)}function Mje(Q,R,me,Te){if(R!==me)throw new Error(xl(jyt,Te,Q,R,me))}function t_(Q,R,me){let{dataByteLength:Te}=kO(me);if(Q<0||R<0||Q+R>Te)throw new Error(xl(Wyt,me,R,Q,Te))}var FT=(Q=>(Q[Q.SINGLE_SEGMENT=0]="SINGLE_SEGMENT",Q[Q.MULTI_SEGMENT=1]="MULTI_SEGMENT",Q))(FT||{}),oY=class{buffer;id;constructor(R,me){this.id=R,this.buffer=me}},tM=class{constructor(R=[new ArrayBuffer(cW)]){this.buffers=R;let me=R.length;for(;--me>=0;)if((R[me].byteLength&7)!==0)throw new Error(xl($ye,R[me].byteLength))}static allocate=Xyt;static getBuffer=Yyt;static getNumSegments=Rje;kind=FT.MULTI_SEGMENT;toString(){return xl("MultiSegmentArena_segments:%d",Rje(this))}};function Xyt(Q,R){let me=new ArrayBuffer(Uv(Math.max(Q,cW)));return R.buffers.push(me),new oY(R.buffers.length-1,me)}function Yyt(Q,R){if(Q<0||Q>=R.buffers.length)throw new Error(xl(Q7e,Q));return R.buffers[Q]}function Rje(Q){return Q.buffers.length}var nP=class{static allocate=Zyt;static getBuffer=evt;static getNumSegments=tvt;buffer;kind=FT.SINGLE_SEGMENT;constructor(R=new ArrayBuffer(cW)){if((R.byteLength&7)!==0)throw new Error(xl($ye,R.byteLength));this.buffer=R}toString(){return xl("SingleSegmentArena_len:%x",this.buffer.byteLength)}};function Zyt(Q,R,me){let Te=R.length>0?R[0].buffer:me.buffer;return Q=Q<zye?zye:Uv(Q),me.buffer=new ArrayBuffer(Te.byteLength+Q),new Float64Array(me.buffer).set(new Float64Array(Te)),new oY(0,me.buffer)}function evt(Q,R){if(Q!==0)throw new Error(xl(H7e,Q));return R.buffer}function tvt(){return 1}var mw=class{static allocate=rvt;static copy=nvt;static getBuffer=ivt;static getNumSegments=svt};function rvt(Q,R,me){switch(me.kind){case FT.MULTI_SEGMENT:return tM.allocate(Q,me);case FT.SINGLE_SEGMENT:return nP.allocate(Q,R,me);default:return uW(me)}}function nvt(Q){switch(Q.kind){case FT.MULTI_SEGMENT:{let R=Q.buffers.length,me=Array.from({length:R});for(;--R>=0;)me[R]=Q.buffers[R].slice(0);return new tM(me)}case FT.SINGLE_SEGMENT:return new nP(Q.buffer.slice(0));default:return uW(Q)}}function ivt(Q,R){switch(R.kind){case FT.MULTI_SEGMENT:return tM.getBuffer(Q,R);case FT.SINGLE_SEGMENT:return nP.getBuffer(Q,R);default:return uW(R)}}function svt(Q){switch(Q.kind){case FT.MULTI_SEGMENT:return tM.getNumSegments(Q);case FT.SINGLE_SEGMENT:return nP.getNumSegments();default:return uW(Q)}}function avt(Q){let R=Q-(Q>>1&1431655765);return R=(R&858993459)+(R>>2&858993459),(R+(R>>4)&252645135)*16843009>>24}function ovt(Q,R,me,Te,ze,it,xr,Ir){return(Q===0?0:1)|(R===0?0:2)|(me===0?0:4)|(Te===0?0:8)|(ze===0?0:16)|(it===0?0:32)|(xr===0?0:64)|(Ir===0?0:128)}function cvt(Q){let R=new Uint8Array(Q),me=0,Te=119;for(let ze=0;ze<R.byteLength;){let it=R[ze];Te===0?(me+=it,ze++,Te=119):Te===255?(me+=it,ze+=it*8+1,Te=119):(me++,ze+=avt(it)+1,Te=it)}return me*8}function lvt(Q,R,me,Te,ze,it,xr,Ir){return(Q===0?1:0)+(R===0?1:0)+(me===0?1:0)+(Te===0?1:0)+(ze===0?1:0)+(it===0?1:0)+(xr===0?1:0)+(Ir===0?1:0)}function Oje(Q,R=0,me){if(Q.byteLength%8!==0)throw new Error($7e);let Te=new Uint8Array(Q,R,me),ze=[],it=119,xr=0,Ir=0;for(let vi=0;vi<Te.byteLength;vi+=8){let Yi=Te[vi],Vi=Te[vi+1],Va=Te[vi+2],Ke=Te[vi+3],Gl=Te[vi+4],Dr=Te[vi+5],or=Te[vi+6],Zg=Te[vi+7],fo=ovt(Yi,Vi,Va,Ke,Gl,Dr,or,Zg),Em=!0;switch(it){case 0:{fo!==0||Ir>=255?(ze.push(Ir),Ir=0,Em=!1):Ir++;break}case 255:{lvt(Yi,Vi,Va,Ke,Gl,Dr,or,Zg)>=V7e||Ir>=255?(ze[xr]=Ir,Ir=0,Em=!1):(ze.push(Yi,Vi,Va,Ke,Gl,Dr,or,Zg),Ir++);break}default:{Em=!1;break}}Em||(ze.push(fo),it=fo,Yi!==0&&ze.push(Yi),Vi!==0&&ze.push(Vi),Va!==0&&ze.push(Va),Ke!==0&&ze.push(Ke),Gl!==0&&ze.push(Gl),Dr!==0&&ze.push(Dr),or!==0&&ze.push(or),Zg!==0&&ze.push(Zg),fo===255&&(xr=ze.length,ze.push(0)))}return it===0?ze.push(Ir):it===255&&(ze[xr]=Ir),new Uint8Array(ze).buffer}function uvt(Q){let R=new Uint8Array(Q),me=new Uint8Array(new ArrayBuffer(cvt(Q))),Te=119;for(let ze=0,it=0;ze<R.byteLength;){let xr=R[ze];if(Te===0)it+=xr*8,ze++,Te=119;else if(Te===255){let Ir=xr*8;me.set(R.subarray(ze+1,ze+1+Ir),it),it+=Ir,ze+=1+Ir,Te=119}else{ze++;for(let Ir=1;Ir<=128;Ir<<=1)(xr&Ir)!==0&&(me[it]=R[ze++]),it++;Te=xr}}return me.buffer}var hW=class{constructor(R,me,Te,ze=0){this.id=R,this.message=me,this.message=me,this.buffer=Te,this._dv=new DataView(Te),this.byteOffset=0,this.byteLength=ze}buffer;byteLength;byteOffset;[Symbol.toStringTag]="Segment";_dv;allocate(R){let me=this;if(R=Uv(R),R>Gye-8)throw new Error(xl(X7e,R));me.hasCapacity(R)||(me=me.message.allocateSegment(R));let Te=me.byteLength;return me.byteLength+=R,new kp(me,Te)}copyWord(R,me,Te){let ze=me._dv.getFloat64(Te,Wc);this._dv.setFloat64(R,ze,Wc)}copyWords(R,me,Te,ze){let it=new Float64Array(this.buffer,R,ze),xr=new Float64Array(me.buffer,Te,ze);it.set(xr)}fillZeroWords(R,me){new Float64Array(this.buffer,R,me).fill(0)}getBigInt64(R,me){return this._dv.getBigInt64(R,me)}getBigUint64(R,me){return this._dv.getBigUint64(R,me)}getCapacity(){return this.buffer.byteLength}getFloat16(R){throw new Error("Not implemented")}getFloat32(R){return this._dv.getFloat32(R,!0)}getFloat64(R){return this._dv.getFloat64(R,!0)}getInt16(R){return this._dv.getInt16(R,!0)}getInt32(R){return this._dv.getInt32(R,!0)}getInt64(R){return this._dv.getBigInt64(R,!0)}getInt8(R){return this._dv.getInt8(R)}getUint16(R){return this._dv.getUint16(R,!0)}getUint32(R){return this._dv.getUint32(R,!0)}getUint64(R){return this._dv.getBigUint64(R,!0)}getUint8(R){return this._dv.getUint8(R)}hasCapacity(R){return this.buffer.byteLength-this.byteLength>=R}isWordZero(R){return this._dv.getFloat64(R,Wc)===0}replaceBuffer(R){if(this.buffer!==R){if(R.byteLength<this.byteLength)throw new Error(K7e);this._dv=new DataView(R),this.buffer=R}}setBigInt64(R,me,Te){this._dv.setBigInt64(R,me,Te)}setBigUint64(R,me,Te){this._dv.setBigUint64(R,me,Te)}setFloat16(R,me){throw new Error("Not implemented")}setFloat32(R,me){this._dv.setFloat32(R,me,!0)}setFloat64(R,me){this._dv.setFloat64(R,me,!0)}setInt16(R,me){this._dv.setInt16(R,me,!0)}setInt32(R,me){this._dv.setInt32(R,me,!0)}setInt8(R,me){this._dv.setInt8(R,me)}setInt64(R,me){this._dv.setBigInt64(R,me,!0)}setUint16(R,me){this._dv.setUint16(R,me,!0)}setUint32(R,me){this._dv.setUint32(R,me,!0)}setUint64(R,me){this._dv.setBigUint64(R,me,!0)}setUint8(R,me){this._dv.setUint8(R,me)}setWordZero(R){this._dv.setFloat64(R,0,Wc)}toString(){return xl("Segment_id:%d,off:%a,len:%a,cap:%a",this.id,this.byteLength,this.byteOffset,this.buffer.byteLength)}},rM=class{static allocateSegment=cve;static dump=Fje;static getRoot=jje;static getSegment=lve;static initRoot=Lje;static readRawPointer=gvt;static toArrayBuffer=Wje;static toPackedArrayBuffer=Bje;_capnp;constructor(R,me=!0,Te=!1){this._capnp=pvt(R,me,Te),R&&_vt(this)}allocateSegment(R){return cve(R,this)}copy(){return yvt(this)}dump(){return Fje(this)}getRoot(R){return jje(R,this)}getSegment(R){return lve(R,this)}initRoot(R){return Lje(R,this)}setRoot(R){hvt(R,this)}toArrayBuffer(){return Wje(this)}toPackedArrayBuffer(){return Bje(this)}addCap(R){this._capnp.capTable||(this._capnp.capTable=[]);let me=this._capnp.capTable.length;return this._capnp.capTable.push(R),me}toString(){return`Message_arena:${this._capnp.arena}`}};function pvt(Q,R=!0,me=!1){if(Q===void 0)return{arena:new nP,segments:[],traversalLimit:lW};if(mvt(Q))return{arena:Q,segments:[],traversalLimit:lW};let Te=Q;return dvt(Te)&&(Te=Te.buffer.slice(Te.byteOffset,Te.byteOffset+Te.byteLength)),R&&(Te=uvt(Te)),me?{arena:new nP(Te),segments:[],traversalLimit:lW}:{arena:new tM(fvt(Te)),segments:[],traversalLimit:lW}}function fvt(Q){let R=new DataView(Q),me=R.getUint32(0,!0)+1,Te=Array.from({length:me}),ze=4+me*4;if(ze+=ze%8,ze+me*4>Q.byteLength)throw new Error(Jye);for(let it=0;it<me;it++){let xr=R.getUint32(4+it*4,!0)*8;if(ze+xr>Q.byteLength)throw new Error(Jye);Te[it]=Q.slice(ze,ze+xr),ze+=xr}return Te}function _vt(Q){let R=mw.getNumSegments(Q._capnp.arena);Q._capnp.segments=Array.from({length:R});for(let me=0;me<R;me++){if(me===0&&mw.getBuffer(me,Q._capnp.arena).byteLength<8)throw new Error(Vye);let Te=mw.getBuffer(me,Q._capnp.arena),ze=new hW(me,Q,Te,Te.byteLength);Q._capnp.segments[me]=ze}}function dvt(Q){return Q.byteOffset!==void 0}function mvt(Q){return Q.kind!==void 0}function cve(Q,R){let me=mw.allocate(Q,R._capnp.segments,R._capnp.arena),Te;if(me.id===R._capnp.segments.length)Te=new hW(me.id,R,me.buffer),R._capnp.segments.push(Te);else{if(me.id<0||me.id>R._capnp.segments.length)throw new Error(xl(Uye,me.id,R));Te=R._capnp.segments[me.id],Te.replaceBuffer(me.buffer)}return Te}function Fje(Q){let R="";if(Q._capnp.segments.length===0)return`================
|
|
No Segments
|
|
================
|
|
`;for(let me=0;me<Q._capnp.segments.length;me++){R+=`================
|
|
Segment #${me}
|
|
================
|
|
`;let{buffer:Te,byteLength:ze}=Q._capnp.segments[me],it=new Uint8Array(Te,0,ze);R+=Y7e(it)}return R}function jje(Q,R){let me=new Q(R.getSegment(0),0);ZN($l.STRUCT,me);let Te=dw(me);return(Te.dataByteLength<Q._capnp.size.dataByteLength||Te.pointerLength<Q._capnp.size.pointerLength)&&gW(Q._capnp.size,me),me}function lve(Q,R){let me=R._capnp.segments.length;if(Q===0&&me===0){if(mw.getNumSegments(R._capnp.arena)===0?cve(cW,R):R._capnp.segments[0]=new hW(0,R,mw.getBuffer(0,R._capnp.arena)),!R._capnp.segments[0].hasCapacity(8))throw new Error(Vye);return R._capnp.segments[0].allocate(8),R._capnp.segments[0]}if(Q<0||Q>=me)throw new Error(xl(Uye,Q,R));return R._capnp.segments[Q]}function Lje(Q,R){let me=new Q(R.getSegment(0),0);return eM(Q._capnp.size,me),me}function gvt(Q){return new kp(new rM(Q).getSegment(0),0)}function hvt(Q,R){Vv(Q,new kp(R.getSegment(0),0))}function Wje(Q){let R=zje(Q);Q._capnp.segments.length===0&&lve(0,Q);let{segments:me}=Q._capnp,Te=R.byteLength+me.reduce((xr,Ir)=>xr+Uv(Ir.byteLength),0),ze=new Uint8Array(new ArrayBuffer(Te)),it=R.byteLength;ze.set(new Uint8Array(R));for(let xr of me){let Ir=Uv(xr.byteLength);ze.set(new Uint8Array(xr.buffer,0,Ir),it),it+=Ir}return ze.buffer}function Bje(Q){let R=Oje(zje(Q));Q._capnp.segments.length===0&&Q.getSegment(0);let me=Q._capnp.segments.map(xr=>Oje(xr.buffer,0,Uv(xr.byteLength))),Te=R.byteLength+me.reduce((xr,Ir)=>xr+Ir.byteLength,0),ze=new Uint8Array(new ArrayBuffer(Te)),it=R.byteLength;ze.set(new Uint8Array(R));for(let xr of me)ze.set(new Uint8Array(xr),it),it+=xr.byteLength;return ze.buffer}function zje(Q){let{length:R}=Q._capnp.segments;if(R===0)return new Float64Array(1).buffer;let me=4+R*4+(1-R%2)*4,Te=new DataView(new ArrayBuffer(me));Te.setUint32(0,R-1,!0);for(let[ze,it]of Q._capnp.segments.entries())Te.setUint32(ze*4+4,it.byteLength/8,!0);return Te.buffer}function yvt(Q){return new rM(mw.copy(Q._capnp.arena))}function jT(Q){return class extends Yd{static _capnp={compositeSize:Q._capnp.size,displayName:`List<${Q._capnp.displayName}>`,size:ro.COMPOSITE};get(R){return new Q(this.segment,this.byteOffset,this._capnp.depthLimit-1,R)}set(R,me){Vv(me,this.get(R))}[Symbol.toStringTag](){return`Composite_${super.toString()},cls:${Q.toString()}`}}}function Wx(Q,R){return me=>{let Te=new DataView(new ArrayBuffer(Q));return R.call(Te,0,me,!0),Te}}var vvt=Wx(4,DataView.prototype.setFloat32),bvt=Wx(8,DataView.prototype.setFloat64),Svt=Wx(2,DataView.prototype.setInt16),Tvt=Wx(4,DataView.prototype.setInt32),kvt=Wx(8,DataView.prototype.setBigInt64),xvt=Wx(1,DataView.prototype.setInt8),Cvt=Wx(2,DataView.prototype.setUint16),wvt=Wx(4,DataView.prototype.setUint32),Ivt=Wx(8,DataView.prototype.setBigUint64),Dvt=Wx(1,DataView.prototype.setUint8);var yW=class extends kp{static _capnp={displayName:"Interface"};static getCapID=uve;static getAsInterface=Gje;static isInterface=Avt;static getClient=Jje;constructor(R,me,Te=ZX){super(R,me,Te)}static fromPointer(R){return Gje(R)}getCapId(){return uve(this)}getClient(){return Jje(this)}[Symbol.for("nodejs.util.inspect.custom")](){return xl("Interface_%d@%a,%d,limit:%x",this.segment.id,this.byteOffset,this.getCapId(),this._capnp.depthLimit)}};function Gje(Q){return S0(Q)===$l.OTHER?new yW(Q.segment,Q.byteOffset,Q._capnp.depthLimit):null}function Avt(Q){return S0(Q)===$l.OTHER}function uve(Q){return Q.segment.getUint32(Q.byteOffset)!==$l.OTHER?-1:Q.segment.getUint32(Q.byteOffset+4)}function Jje(Q){let R=uve(Q),{capTable:me}=Q.segment.message._capnp;return me?me[R]:null}var pve=class extends Vu{static _capnp={displayName:"Void",id:"0",size:new Au(0,0)}},Me={__proto__:null,PointerAllocationResult:HN,add:XX,adopt:Z7e,checkDataBounds:t_,checkPointerBounds:tP,copyFrom:Vv,copyFromInterface:nve,copyFromList:ive,copyFromStruct:sve,disown:eje,dump:Kye,erase:nS,erasePointer:pW,followFar:fW,followFars:OT,getAs:ove,getBit:ije,getCapabilityId:Yye,getContent:qo,getData:sje,getDataSection:e_,getFarSegmentId:Zye,getFloat32:aje,getFloat64:oje,getInt16:cje,getInt32:lje,getInt64:uje,getInt8:pje,getInterfaceClientOrNull:sY,getInterfaceClientOrNullAt:nje,getInterfacePointer:iY,getList:fje,getListByteLength:Xye,getListElementByteLength:bO,getListElementSize:tY,getListLength:eve,getOffsetWords:QN,getPointer:TO,getPointerAs:aY,getPointerSection:rP,getPointerType:SO,getSize:kO,getStruct:_je,getStructDataWords:tve,getStructPointerLength:rve,getStructSize:XN,getTargetCompositeListSize:_W,getTargetCompositeListTag:rY,getTargetListElementSize:ZD,getTargetListLength:YN,getTargetPointerType:S0,getTargetStructSize:dw,getText:dje,getUint16:mje,getUint32:gje,getUint64:hje,getUint8:yje,initData:vje,initList:bje,initPointer:iS,initStruct:eM,initStructAt:rje,isDoubleFar:dW,isNull:sS,relocateTo:tje,resize:gW,setBit:Sje,setFarPointer:iW,setFloat32:Tje,setFloat64:kje,setInt16:xje,setInt32:Cje,setInt64:wje,setInt8:Ije,setInterfacePointer:nY,setListPointer:KN,setStructPointer:eP,setText:Dje,setUint16:Pje,setUint32:Aje,setUint64:Eje,setUint8:Nje,testWhich:Mje,trackPointerAllocation:ave,validate:ZN};function cY(Q){return class extends Yd{static _capnp={displayName:`List<${Q._capnp.displayName}>`,size:ro.POINTER};get(R){let me=qo(this);return new Q(me.segment,me.byteOffset+R*8,this._capnp.depthLimit-1)}set(R,me){Vv(me,this.get(R))}[Symbol.toStringTag](){return`Pointer_${super.toString()},cls:${Q.toString()}`}}}var d0t=cY(kp),Uje=class extends Yd{static _capnp={displayName:"List<boolean>",size:ro.BIT};get(R){let me=1<<R%8,Te=R>>>3,ze=qo(this);return(ze.segment.getUint8(ze.byteOffset+Te)&me)!==0}set(R,me){let Te=1<<R%8,ze=qo(this),it=ze.byteOffset+(R>>>3),xr=ze.segment.getUint8(it);ze.segment.setUint8(it,me?xr|Te:xr&~Te)}[Symbol.toStringTag](){return`Bool_${super.toString()}`}},m0t=cY(vO),Vje=class extends Yd{static _capnp={displayName:"List<Float32>",size:ro.BYTE_4};get(R){let me=qo(this);return me.segment.getFloat32(me.byteOffset+R*4)}set(R,me){let Te=qo(this);Te.segment.setFloat32(Te.byteOffset+R*4,me)}[Symbol.toStringTag](){return`Float32_${super.toString()}`}},qje=class extends Yd{static _capnp={displayName:"List<Float64>",size:ro.BYTE_8};get(R){let me=qo(this);return me.segment.getFloat64(me.byteOffset+R*8)}set(R,me){let Te=qo(this);Te.segment.setFloat64(Te.byteOffset+R*8,me)}[Symbol.toStringTag](){return`Float64_${super.toString()}`}},$je=class extends Yd{static _capnp={displayName:"List<Int8>",size:ro.BYTE};get(R){let me=qo(this);return me.segment.getInt8(me.byteOffset+R)}set(R,me){let Te=qo(this);Te.segment.setInt8(Te.byteOffset+R,me)}[Symbol.toStringTag](){return`Int8_${super.toString()}`}},Hje=class extends Yd{static _capnp={displayName:"List<Int16>",size:ro.BYTE_2};get(R){let me=qo(this);return me.segment.getInt16(me.byteOffset+R*2)}set(R,me){let Te=qo(this);Te.segment.setInt16(Te.byteOffset+R*2,me)}[Symbol.toStringTag](){return`Int16_${super.toString()}`}},Qje=class extends Yd{static _capnp={displayName:"List<Int32>",size:ro.BYTE_4};get(R){let me=qo(this);return me.segment.getInt32(me.byteOffset+R*4)}set(R,me){let Te=qo(this);Te.segment.setInt32(Te.byteOffset+R*4,me)}[Symbol.toStringTag](){return`Int32_${super.toString()}`}},Kje=class extends Yd{static _capnp={displayName:"List<Int64>",size:ro.BYTE_8};get(R){let me=qo(this);return me.segment.getInt64(me.byteOffset+R*8)}set(R,me){let Te=qo(this);Te.segment.setInt64(Te.byteOffset+R*8,me)}[Symbol.toStringTag](){return`Int64_${super.toString()}`}},g0t=cY(yW),Xje=class extends Yd{static _capnp={displayName:"List<Text>",size:ro.POINTER};get(R){let me=qo(this);return me.byteOffset+=R*8,YD.fromPointer(me).get(0)}set(R,me){let Te=qo(this);Te.byteOffset+=R*8,YD.fromPointer(Te).set(0,me)}[Symbol.toStringTag](){return`Text_${super.toString()}`}},Yje=class extends Yd{static _capnp={displayName:"List<Uint8>",size:ro.BYTE};get(R){let me=qo(this);return me.segment.getUint8(me.byteOffset+R)}set(R,me){let Te=qo(this);Te.segment.setUint8(Te.byteOffset+R,me)}[Symbol.toStringTag](){return`Uint8_${super.toString()}`}},Zje=class extends Yd{static _capnp={displayName:"List<Uint16>",size:ro.BYTE_2};get(R){let me=qo(this);return me.segment.getUint16(me.byteOffset+R*2)}set(R,me){let Te=qo(this);Te.segment.setUint16(Te.byteOffset+R*2,me)}[Symbol.toStringTag](){return`Uint16_${super.toString()}`}},e5e=class extends Yd{static _capnp={displayName:"List<Uint32>",size:ro.BYTE_4};get(R){let me=qo(this);return me.segment.getUint32(me.byteOffset+R*4)}set(R,me){let Te=qo(this);Te.segment.setUint32(Te.byteOffset+R*4,me)}[Symbol.toStringTag](){return`Uint32_${super.toString()}`}},t5e=class extends Yd{static _capnp={displayName:"List<Uint64>",size:ro.BYTE_8};get(R){let me=qo(this);return me.segment.getUint64(me.byteOffset+R*8)}set(R,me){let Te=qo(this);Te.segment.setUint64(Te.byteOffset+R*8,me)}[Symbol.toStringTag](){return`Uint64_${super.toString()}`}},h0t=cY(pve);var y0t=globalThis.FinalizationRegistry?new FinalizationRegistry(Q=>Q()):void 0;var _c={UNKNOWN:0,VOIDT:1,BOOLT:2,NUMBER:3,PROMISE:4,STRUCTURE:5,STRING:6,OBJECT:7,ARRAY:8,MAYBE:9,DICT:10,ONE_OF:11,BUILTIN:12,INTRINSIC:13,FUNCTION:14,JSG_IMPL:15,JS_BUILTIN:16},r_=class extends Vu{static UNKNOWN=_c.UNKNOWN;static VOIDT=_c.VOIDT;static BOOLT=_c.BOOLT;static NUMBER=_c.NUMBER;static PROMISE=_c.PROMISE;static STRUCTURE=_c.STRUCTURE;static STRING=_c.STRING;static OBJECT=_c.OBJECT;static ARRAY=_c.ARRAY;static MAYBE=_c.MAYBE;static DICT=_c.DICT;static ONE_OF=_c.ONE_OF;static BUILTIN=_c.BUILTIN;static INTRINSIC=_c.INTRINSIC;static FUNCTION=_c.FUNCTION;static JSG_IMPL=_c.JSG_IMPL;static JS_BUILTIN=_c.JS_BUILTIN;static _capnp={displayName:"Type",id:"d2347ab301451a8c",size:new Au(8,1)};get _isUnknown(){return Me.getUint16(0,this)===0}set unknown(R){Me.setUint16(0,0,this)}get _isVoidt(){return Me.getUint16(0,this)===1}set voidt(R){Me.setUint16(0,1,this)}get _isBoolt(){return Me.getUint16(0,this)===2}set boolt(R){Me.setUint16(0,2,this)}_adoptNumber(R){Me.setUint16(0,3,this),Me.adopt(R,Me.getPointer(0,this))}_disownNumber(){return Me.disown(this.number)}get number(){return Me.testWhich("number",Me.getUint16(0,this),3,this),Me.getStruct(0,lY,this)}_hasNumber(){return!Me.isNull(Me.getPointer(0,this))}_initNumber(){return Me.setUint16(0,3,this),Me.initStructAt(0,lY,this)}get _isNumber(){return Me.getUint16(0,this)===3}set number(R){Me.setUint16(0,3,this),Me.copyFrom(R,Me.getPointer(0,this))}_adoptPromise(R){Me.setUint16(0,4,this),Me.adopt(R,Me.getPointer(0,this))}_disownPromise(){return Me.disown(this.promise)}get promise(){return Me.testWhich("promise",Me.getUint16(0,this),4,this),Me.getStruct(0,uY,this)}_hasPromise(){return!Me.isNull(Me.getPointer(0,this))}_initPromise(){return Me.setUint16(0,4,this),Me.initStructAt(0,uY,this)}get _isPromise(){return Me.getUint16(0,this)===4}set promise(R){Me.setUint16(0,4,this),Me.copyFrom(R,Me.getPointer(0,this))}_adoptStructure(R){Me.setUint16(0,5,this),Me.adopt(R,Me.getPointer(0,this))}_disownStructure(){return Me.disown(this.structure)}get structure(){return Me.testWhich("structure",Me.getUint16(0,this),5,this),Me.getStruct(0,pY,this)}_hasStructure(){return!Me.isNull(Me.getPointer(0,this))}_initStructure(){return Me.setUint16(0,5,this),Me.initStructAt(0,pY,this)}get _isStructure(){return Me.getUint16(0,this)===5}set structure(R){Me.setUint16(0,5,this),Me.copyFrom(R,Me.getPointer(0,this))}_adoptString(R){Me.setUint16(0,6,this),Me.adopt(R,Me.getPointer(0,this))}_disownString(){return Me.disown(this.string)}get string(){return Me.testWhich("string",Me.getUint16(0,this),6,this),Me.getStruct(0,fY,this)}_hasString(){return!Me.isNull(Me.getPointer(0,this))}_initString(){return Me.setUint16(0,6,this),Me.initStructAt(0,fY,this)}get _isString(){return Me.getUint16(0,this)===6}set string(R){Me.setUint16(0,6,this),Me.copyFrom(R,Me.getPointer(0,this))}get _isObject(){return Me.getUint16(0,this)===7}set object(R){Me.setUint16(0,7,this)}_adoptArray(R){Me.setUint16(0,8,this),Me.adopt(R,Me.getPointer(0,this))}_disownArray(){return Me.disown(this.array)}get array(){return Me.testWhich("array",Me.getUint16(0,this),8,this),Me.getStruct(0,dY,this)}_hasArray(){return!Me.isNull(Me.getPointer(0,this))}_initArray(){return Me.setUint16(0,8,this),Me.initStructAt(0,dY,this)}get _isArray(){return Me.getUint16(0,this)===8}set array(R){Me.setUint16(0,8,this),Me.copyFrom(R,Me.getPointer(0,this))}_adoptMaybe(R){Me.setUint16(0,9,this),Me.adopt(R,Me.getPointer(0,this))}_disownMaybe(){return Me.disown(this.maybe)}get maybe(){return Me.testWhich("maybe",Me.getUint16(0,this),9,this),Me.getStruct(0,mY,this)}_hasMaybe(){return!Me.isNull(Me.getPointer(0,this))}_initMaybe(){return Me.setUint16(0,9,this),Me.initStructAt(0,mY,this)}get _isMaybe(){return Me.getUint16(0,this)===9}set maybe(R){Me.setUint16(0,9,this),Me.copyFrom(R,Me.getPointer(0,this))}_adoptDict(R){Me.setUint16(0,10,this),Me.adopt(R,Me.getPointer(0,this))}_disownDict(){return Me.disown(this.dict)}get dict(){return Me.testWhich("dict",Me.getUint16(0,this),10,this),Me.getStruct(0,gY,this)}_hasDict(){return!Me.isNull(Me.getPointer(0,this))}_initDict(){return Me.setUint16(0,10,this),Me.initStructAt(0,gY,this)}get _isDict(){return Me.getUint16(0,this)===10}set dict(R){Me.setUint16(0,10,this),Me.copyFrom(R,Me.getPointer(0,this))}_adoptOneOf(R){Me.setUint16(0,11,this),Me.adopt(R,Me.getPointer(0,this))}_disownOneOf(){return Me.disown(this.oneOf)}get oneOf(){return Me.testWhich("oneOf",Me.getUint16(0,this),11,this),Me.getStruct(0,vW,this)}_hasOneOf(){return!Me.isNull(Me.getPointer(0,this))}_initOneOf(){return Me.setUint16(0,11,this),Me.initStructAt(0,vW,this)}get _isOneOf(){return Me.getUint16(0,this)===11}set oneOf(R){Me.setUint16(0,11,this),Me.copyFrom(R,Me.getPointer(0,this))}_adoptBuiltin(R){Me.setUint16(0,12,this),Me.adopt(R,Me.getPointer(0,this))}_disownBuiltin(){return Me.disown(this.builtin)}get builtin(){return Me.testWhich("builtin",Me.getUint16(0,this),12,this),Me.getStruct(0,hY,this)}_hasBuiltin(){return!Me.isNull(Me.getPointer(0,this))}_initBuiltin(){return Me.setUint16(0,12,this),Me.initStructAt(0,hY,this)}get _isBuiltin(){return Me.getUint16(0,this)===12}set builtin(R){Me.setUint16(0,12,this),Me.copyFrom(R,Me.getPointer(0,this))}_adoptIntrinsic(R){Me.setUint16(0,13,this),Me.adopt(R,Me.getPointer(0,this))}_disownIntrinsic(){return Me.disown(this.intrinsic)}get intrinsic(){return Me.testWhich("intrinsic",Me.getUint16(0,this),13,this),Me.getStruct(0,_Y,this)}_hasIntrinsic(){return!Me.isNull(Me.getPointer(0,this))}_initIntrinsic(){return Me.setUint16(0,13,this),Me.initStructAt(0,_Y,this)}get _isIntrinsic(){return Me.getUint16(0,this)===13}set intrinsic(R){Me.setUint16(0,13,this),Me.copyFrom(R,Me.getPointer(0,this))}_adoptFunction(R){Me.setUint16(0,14,this),Me.adopt(R,Me.getPointer(0,this))}_disownFunction(){return Me.disown(this.function)}get function(){return Me.testWhich("function",Me.getUint16(0,this),14,this),Me.getStruct(0,nM,this)}_hasFunction(){return!Me.isNull(Me.getPointer(0,this))}_initFunction(){return Me.setUint16(0,14,this),Me.initStructAt(0,nM,this)}get _isFunction(){return Me.getUint16(0,this)===14}set function(R){Me.setUint16(0,14,this),Me.copyFrom(R,Me.getPointer(0,this))}_adoptJsgImpl(R){Me.setUint16(0,15,this),Me.adopt(R,Me.getPointer(0,this))}_disownJsgImpl(){return Me.disown(this.jsgImpl)}get jsgImpl(){return Me.testWhich("jsgImpl",Me.getUint16(0,this),15,this),Me.getStruct(0,yY,this)}_hasJsgImpl(){return!Me.isNull(Me.getPointer(0,this))}_initJsgImpl(){return Me.setUint16(0,15,this),Me.initStructAt(0,yY,this)}get _isJsgImpl(){return Me.getUint16(0,this)===15}set jsgImpl(R){Me.setUint16(0,15,this),Me.copyFrom(R,Me.getPointer(0,this))}_adoptJsBuiltin(R){Me.setUint16(0,16,this),Me.adopt(R,Me.getPointer(0,this))}_disownJsBuiltin(){return Me.disown(this.jsBuiltin)}get jsBuiltin(){return Me.testWhich("jsBuiltin",Me.getUint16(0,this),16,this),Me.getStruct(0,kY,this)}_hasJsBuiltin(){return!Me.isNull(Me.getPointer(0,this))}_initJsBuiltin(){return Me.setUint16(0,16,this),Me.initStructAt(0,kY,this)}get _isJsBuiltin(){return Me.getUint16(0,this)===16}set jsBuiltin(R){Me.setUint16(0,16,this),Me.copyFrom(R,Me.getPointer(0,this))}toString(){return"Type_"+super.toString()}which(){return Me.getUint16(0,this)}},lY=class extends Vu{static _capnp={displayName:"NumberType",id:"afd4316863bdd80a",size:new Au(0,1)};get name(){return Me.getText(0,this)}set name(R){Me.setText(0,R,this)}toString(){return"NumberType_"+super.toString()}},uY=class extends Vu{static _capnp={displayName:"PromiseType",id:"977eaa74d24bb2dc",size:new Au(0,1)};_adoptValue(R){Me.adopt(R,Me.getPointer(0,this))}_disownValue(){return Me.disown(this.value)}get value(){return Me.getStruct(0,r_,this)}_hasValue(){return!Me.isNull(Me.getPointer(0,this))}_initValue(){return Me.initStructAt(0,r_,this)}set value(R){Me.copyFrom(R,Me.getPointer(0,this))}toString(){return"PromiseType_"+super.toString()}},pY=class extends Vu{static _capnp={displayName:"StructureType",id:"9001b3522132305a",size:new Au(0,2)};get name(){return Me.getText(0,this)}set name(R){Me.setText(0,R,this)}get fullyQualifiedName(){return Me.getText(1,this)}set fullyQualifiedName(R){Me.setText(1,R,this)}toString(){return"StructureType_"+super.toString()}},fY=class extends Vu{static _capnp={displayName:"StringType",id:"913621db0713d640",size:new Au(0,1)};get name(){return Me.getText(0,this)}set name(R){Me.setText(0,R,this)}toString(){return"StringType_"+super.toString()}},_Y=class extends Vu{static _capnp={displayName:"IntrinsicType",id:"87c24648e89ccc02",size:new Au(0,1)};get name(){return Me.getText(0,this)}set name(R){Me.setText(0,R,this)}toString(){return"IntrinsicType_"+super.toString()}},dY=class extends Vu{static _capnp={displayName:"ArrayType",id:"f6d86da0d225932b",size:new Au(0,2)};_adoptElement(R){Me.adopt(R,Me.getPointer(0,this))}_disownElement(){return Me.disown(this.element)}get element(){return Me.getStruct(0,r_,this)}_hasElement(){return!Me.isNull(Me.getPointer(0,this))}_initElement(){return Me.initStructAt(0,r_,this)}set element(R){Me.copyFrom(R,Me.getPointer(0,this))}get name(){return Me.getText(1,this)}set name(R){Me.setText(1,R,this)}toString(){return"ArrayType_"+super.toString()}},mY=class extends Vu{static _capnp={displayName:"MaybeType",id:"9d64649bff8a5cee",size:new Au(0,2)};_adoptValue(R){Me.adopt(R,Me.getPointer(0,this))}_disownValue(){return Me.disown(this.value)}get value(){return Me.getStruct(0,r_,this)}_hasValue(){return!Me.isNull(Me.getPointer(0,this))}_initValue(){return Me.initStructAt(0,r_,this)}set value(R){Me.copyFrom(R,Me.getPointer(0,this))}get name(){return Me.getText(1,this)}set name(R){Me.setText(1,R,this)}toString(){return"MaybeType_"+super.toString()}},gY=class extends Vu{static _capnp={displayName:"DictType",id:"b7d8e1ee6205d554",size:new Au(0,2)};_adoptKey(R){Me.adopt(R,Me.getPointer(0,this))}_disownKey(){return Me.disown(this.key)}get key(){return Me.getStruct(0,r_,this)}_hasKey(){return!Me.isNull(Me.getPointer(0,this))}_initKey(){return Me.initStructAt(0,r_,this)}set key(R){Me.copyFrom(R,Me.getPointer(0,this))}_adoptValue(R){Me.adopt(R,Me.getPointer(1,this))}_disownValue(){return Me.disown(this.value)}get value(){return Me.getStruct(1,r_,this)}_hasValue(){return!Me.isNull(Me.getPointer(1,this))}_initValue(){return Me.initStructAt(1,r_,this)}set value(R){Me.copyFrom(R,Me.getPointer(1,this))}toString(){return"DictType_"+super.toString()}},vW=class Q extends Vu{static _capnp={displayName:"OneOfType",id:"95216521d1f195ae",size:new Au(0,1)};static _Variants;_adoptVariants(R){Me.adopt(R,Me.getPointer(0,this))}_disownVariants(){return Me.disown(this.variants)}get variants(){return Me.getList(0,Q._Variants,this)}_hasVariants(){return!Me.isNull(Me.getPointer(0,this))}_initVariants(R){return Me.initList(0,Q._Variants,R,this)}set variants(R){Me.copyFrom(R,Me.getPointer(0,this))}toString(){return"OneOfType_"+super.toString()}},iP={V8UINT8ARRAY:0,V8ARRAY_BUFFER_VIEW:1,JSG_BUFFER_SOURCE:2,KJ_DATE:3,V8FUNCTION:4,V8ARRAY_BUFFER:5},hY=class extends Vu{static Type=iP;static _capnp={displayName:"BuiltinType",id:"96dfb79b276b3379",size:new Au(8,0)};get type(){return Me.getUint16(0,this)}set type(R){Me.setUint16(0,R,this)}toString(){return"BuiltinType_"+super.toString()}},nM=class Q extends Vu{static _capnp={displayName:"FunctionType",id:"d7c3505ac05e5fad",size:new Au(0,2)};static _Args;_adoptReturnType(R){Me.adopt(R,Me.getPointer(0,this))}_disownReturnType(){return Me.disown(this.returnType)}get returnType(){return Me.getStruct(0,r_,this)}_hasReturnType(){return!Me.isNull(Me.getPointer(0,this))}_initReturnType(){return Me.initStructAt(0,r_,this)}set returnType(R){Me.copyFrom(R,Me.getPointer(0,this))}_adoptArgs(R){Me.adopt(R,Me.getPointer(1,this))}_disownArgs(){return Me.disown(this.args)}get args(){return Me.getList(1,Q._Args,this)}_hasArgs(){return!Me.isNull(Me.getPointer(1,this))}_initArgs(R){return Me.initList(1,Q._Args,R,this)}set args(R){Me.copyFrom(R,Me.getPointer(1,this))}toString(){return"FunctionType_"+super.toString()}},k0={CONFIGURATION:0,V8ISOLATE:1,JSG_LOCK:2,JSG_TYPE_HANDLER:3,JSG_UNIMPLEMENTED:4,JSG_VARARGS:5,JSG_SELF_REF:6,V8FUNCTION_CALLBACK_INFO:7,V8PROPERTY_CALLBACK_INFO:8,JSG_NAME:9},yY=class extends Vu{static Type=k0;static _capnp={displayName:"JsgImplType",id:"e0dfbe1216e6985e",size:new Au(8,0)};get type(){return Me.getUint16(0,this)}set type(R){Me.setUint16(0,R,this)}toString(){return"JsgImplType_"+super.toString()}},iM=class Q extends Vu{static _capnp={displayName:"Structure",id:"c9aee5d3d27484f2",size:new Au(8,12)};static _Members;static _BuiltinModules;get name(){return Me.getText(0,this)}set name(R){Me.setText(0,R,this)}get fullyQualifiedName(){return Me.getText(3,this)}set fullyQualifiedName(R){Me.setText(3,R,this)}_adoptMembers(R){Me.adopt(R,Me.getPointer(1,this))}_disownMembers(){return Me.disown(this.members)}get members(){return Me.getList(1,Q._Members,this)}_hasMembers(){return!Me.isNull(Me.getPointer(1,this))}_initMembers(R){return Me.initList(1,Q._Members,R,this)}set members(R){Me.copyFrom(R,Me.getPointer(1,this))}_adoptExtends(R){Me.adopt(R,Me.getPointer(2,this))}_disownExtends(){return Me.disown(this.extends)}get extends(){return Me.getStruct(2,r_,this)}_hasExtends(){return!Me.isNull(Me.getPointer(2,this))}_initExtends(){return Me.initStructAt(2,r_,this)}set extends(R){Me.copyFrom(R,Me.getPointer(2,this))}get iterable(){return Me.getBit(0,this)}set iterable(R){Me.setBit(0,R,this)}_adoptIterator(R){Me.adopt(R,Me.getPointer(4,this))}_disownIterator(){return Me.disown(this.iterator)}get iterator(){return Me.getStruct(4,T0,this)}_hasIterator(){return!Me.isNull(Me.getPointer(4,this))}_initIterator(){return Me.initStructAt(4,T0,this)}set iterator(R){Me.copyFrom(R,Me.getPointer(4,this))}get asyncIterable(){return Me.getBit(1,this)}set asyncIterable(R){Me.setBit(1,R,this)}_adoptAsyncIterator(R){Me.adopt(R,Me.getPointer(5,this))}_disownAsyncIterator(){return Me.disown(this.asyncIterator)}get asyncIterator(){return Me.getStruct(5,T0,this)}_hasAsyncIterator(){return!Me.isNull(Me.getPointer(5,this))}_initAsyncIterator(){return Me.initStructAt(5,T0,this)}set asyncIterator(R){Me.copyFrom(R,Me.getPointer(5,this))}get disposable(){return Me.getBit(3,this)}set disposable(R){Me.setBit(3,R,this)}_adoptDispose(R){Me.adopt(R,Me.getPointer(10,this))}_disownDispose(){return Me.disown(this.dispose)}get dispose(){return Me.getStruct(10,T0,this)}_hasDispose(){return!Me.isNull(Me.getPointer(10,this))}_initDispose(){return Me.initStructAt(10,T0,this)}set dispose(R){Me.copyFrom(R,Me.getPointer(10,this))}get asyncDisposable(){return Me.getBit(4,this)}set asyncDisposable(R){Me.setBit(4,R,this)}_adoptAsyncDispose(R){Me.adopt(R,Me.getPointer(11,this))}_disownAsyncDispose(){return Me.disown(this.asyncDispose)}get asyncDispose(){return Me.getStruct(11,T0,this)}_hasAsyncDispose(){return!Me.isNull(Me.getPointer(11,this))}_initAsyncDispose(){return Me.initStructAt(11,T0,this)}set asyncDispose(R){Me.copyFrom(R,Me.getPointer(11,this))}get tsRoot(){return Me.getBit(2,this)}set tsRoot(R){Me.setBit(2,R,this)}get tsOverride(){return Me.getText(6,this)}set tsOverride(R){Me.setText(6,R,this)}get tsDefine(){return Me.getText(7,this)}set tsDefine(R){Me.setText(7,R,this)}_adoptCallable(R){Me.adopt(R,Me.getPointer(8,this))}_disownCallable(){return Me.disown(this.callable)}get callable(){return Me.getStruct(8,nM,this)}_hasCallable(){return!Me.isNull(Me.getPointer(8,this))}_initCallable(){return Me.initStructAt(8,nM,this)}set callable(R){Me.copyFrom(R,Me.getPointer(8,this))}_adoptBuiltinModules(R){Me.adopt(R,Me.getPointer(9,this))}_disownBuiltinModules(){return Me.disown(this.builtinModules)}get builtinModules(){return Me.getList(9,Q._BuiltinModules,this)}_hasBuiltinModules(){return!Me.isNull(Me.getPointer(9,this))}_initBuiltinModules(R){return Me.initList(9,Q._BuiltinModules,R,this)}set builtinModules(R){Me.copyFrom(R,Me.getPointer(9,this))}toString(){return"Structure_"+super.toString()}},vY=class extends Vu{static _capnp={displayName:"nested",id:"cc1920702876b1f6",size:new Au(8,2)};_adoptStructure(R){Me.adopt(R,Me.getPointer(0,this))}_disownStructure(){return Me.disown(this.structure)}get structure(){return Me.getStruct(0,iM,this)}_hasStructure(){return!Me.isNull(Me.getPointer(0,this))}_initStructure(){return Me.initStructAt(0,iM,this)}set structure(R){Me.copyFrom(R,Me.getPointer(0,this))}get name(){return Me.getText(1,this)}set name(R){Me.setText(1,R,this)}toString(){return"Member_Nested_"+super.toString()}},Ed={METHOD:0,PROPERTY:1,NESTED:2,CONSTANT:3,CONSTRUCTOR:4},fve=class extends Vu{static METHOD=Ed.METHOD;static PROPERTY=Ed.PROPERTY;static NESTED=Ed.NESTED;static CONSTANT=Ed.CONSTANT;static CONSTRUCTOR=Ed.CONSTRUCTOR;static _capnp={displayName:"Member",id:"85c316fd4114aba7",size:new Au(8,2)};_adoptMethod(R){Me.setUint16(0,0,this),Me.adopt(R,Me.getPointer(0,this))}_disownMethod(){return Me.disown(this.method)}get method(){return Me.testWhich("method",Me.getUint16(0,this),0,this),Me.getStruct(0,T0,this)}_hasMethod(){return!Me.isNull(Me.getPointer(0,this))}_initMethod(){return Me.setUint16(0,0,this),Me.initStructAt(0,T0,this)}get _isMethod(){return Me.getUint16(0,this)===0}set method(R){Me.setUint16(0,0,this),Me.copyFrom(R,Me.getPointer(0,this))}_adoptProperty(R){Me.setUint16(0,1,this),Me.adopt(R,Me.getPointer(0,this))}_disownProperty(){return Me.disown(this.property)}get property(){return Me.testWhich("property",Me.getUint16(0,this),1,this),Me.getStruct(0,bY,this)}_hasProperty(){return!Me.isNull(Me.getPointer(0,this))}_initProperty(){return Me.setUint16(0,1,this),Me.initStructAt(0,bY,this)}get _isProperty(){return Me.getUint16(0,this)===1}set property(R){Me.setUint16(0,1,this),Me.copyFrom(R,Me.getPointer(0,this))}get nested(){return Me.testWhich("nested",Me.getUint16(0,this),2,this),Me.getAs(vY,this)}_initNested(){return Me.setUint16(0,2,this),Me.getAs(vY,this)}get _isNested(){return Me.getUint16(0,this)===2}set nested(R){Me.setUint16(0,2,this)}_adoptConstant(R){Me.setUint16(0,3,this),Me.adopt(R,Me.getPointer(0,this))}_disownConstant(){return Me.disown(this.constant)}get constant(){return Me.testWhich("constant",Me.getUint16(0,this),3,this),Me.getStruct(0,SY,this)}_hasConstant(){return!Me.isNull(Me.getPointer(0,this))}_initConstant(){return Me.setUint16(0,3,this),Me.initStructAt(0,SY,this)}get _isConstant(){return Me.getUint16(0,this)===3}set constant(R){Me.setUint16(0,3,this),Me.copyFrom(R,Me.getPointer(0,this))}_adoptConstructor(R){Me.setUint16(0,4,this),Me.adopt(R,Me.getPointer(0,this))}_disownConstructor(){return Me.disown(this.$constructor)}get $constructor(){return Me.testWhich("constructor",Me.getUint16(0,this),4,this),Me.getStruct(0,bW,this)}_hasConstructor(){return!Me.isNull(Me.getPointer(0,this))}_initConstructor(){return Me.setUint16(0,4,this),Me.initStructAt(0,bW,this)}get _isConstructor(){return Me.getUint16(0,this)===4}set $constructor(R){Me.setUint16(0,4,this),Me.copyFrom(R,Me.getPointer(0,this))}toString(){return"Member_"+super.toString()}which(){return Me.getUint16(0,this)}},T0=class Q extends Vu{static _capnp={displayName:"Method",id:"a0a20f19ed7321e8",size:new Au(8,3)};static _Args;get name(){return Me.getText(0,this)}set name(R){Me.setText(0,R,this)}_adoptReturnType(R){Me.adopt(R,Me.getPointer(1,this))}_disownReturnType(){return Me.disown(this.returnType)}get returnType(){return Me.getStruct(1,r_,this)}_hasReturnType(){return!Me.isNull(Me.getPointer(1,this))}_initReturnType(){return Me.initStructAt(1,r_,this)}set returnType(R){Me.copyFrom(R,Me.getPointer(1,this))}_adoptArgs(R){Me.adopt(R,Me.getPointer(2,this))}_disownArgs(){return Me.disown(this.args)}get args(){return Me.getList(2,Q._Args,this)}_hasArgs(){return!Me.isNull(Me.getPointer(2,this))}_initArgs(R){return Me.initList(2,Q._Args,R,this)}set args(R){Me.copyFrom(R,Me.getPointer(2,this))}get static(){return Me.getBit(0,this)}set static(R){Me.setBit(0,R,this)}get fastApiCompatible(){return Me.getBit(1,this)}set fastApiCompatible(R){Me.setBit(1,R,this)}toString(){return"Method_"+super.toString()}},bY=class extends Vu{static _capnp={displayName:"Property",id:"e1d238e9fecd3757",size:new Au(8,2)};get name(){return Me.getText(0,this)}set name(R){Me.setText(0,R,this)}_adoptType(R){Me.adopt(R,Me.getPointer(1,this))}_disownType(){return Me.disown(this.type)}get type(){return Me.getStruct(1,r_,this)}_hasType(){return!Me.isNull(Me.getPointer(1,this))}_initType(){return Me.initStructAt(1,r_,this)}set type(R){Me.copyFrom(R,Me.getPointer(1,this))}get readonly(){return Me.getBit(0,this)}set readonly(R){Me.setBit(0,R,this)}get lazy(){return Me.getBit(1,this)}set lazy(R){Me.setBit(1,R,this)}get prototype(){return Me.getBit(2,this)}set prototype(R){Me.setBit(2,R,this)}get getterFastApiCompatible(){return Me.getBit(3,this)}set getterFastApiCompatible(R){Me.setBit(3,R,this)}get setterFastApiCompatible(){return Me.getBit(4,this)}set setterFastApiCompatible(R){Me.setBit(4,R,this)}toString(){return"Property_"+super.toString()}},SY=class extends Vu{static _capnp={displayName:"Constant",id:"e354a1a55c4cfc59",size:new Au(8,1)};get name(){return Me.getText(0,this)}set name(R){Me.setText(0,R,this)}get value(){return Me.getInt64(0,this)}set value(R){Me.setInt64(0,R,this)}toString(){return"Constant_"+super.toString()}},bW=class Q extends Vu{static _capnp={displayName:"Constructor",id:"f4610fdb47099d17",size:new Au(0,1)};static _Args;_adoptArgs(R){Me.adopt(R,Me.getPointer(0,this))}_disownArgs(){return Me.disown(this.args)}get args(){return Me.getList(0,Q._Args,this)}_hasArgs(){return!Me.isNull(Me.getPointer(0,this))}_initArgs(R){return Me.initList(0,Q._Args,R,this)}set args(R){Me.copyFrom(R,Me.getPointer(0,this))}toString(){return"Constructor_"+super.toString()}},r5e={STRUCTURE_NAME:0,TS_DECLARATIONS:1},TY=class extends Vu{static STRUCTURE_NAME=r5e.STRUCTURE_NAME;static TS_DECLARATIONS=r5e.TS_DECLARATIONS;static _capnp={displayName:"Module",id:"cd4221e3248069bd",size:new Au(8,2)};get specifier(){return Me.getText(0,this)}set specifier(R){Me.setText(0,R,this)}get structureName(){return Me.testWhich("structureName",Me.getUint16(0,this),0,this),Me.getText(1,this)}get _isStructureName(){return Me.getUint16(0,this)===0}set structureName(R){Me.setUint16(0,0,this),Me.setText(1,R,this)}get tsDeclarations(){return Me.testWhich("tsDeclarations",Me.getUint16(0,this),1,this),Me.getText(1,this)}get _isTsDeclarations(){return Me.getUint16(0,this)===1}set tsDeclarations(R){Me.setUint16(0,1,this),Me.setText(1,R,this)}toString(){return"Module_"+super.toString()}which(){return Me.getUint16(0,this)}},SW=class Q extends Vu{static _capnp={displayName:"StructureGroup",id:"fe89d9d03a268a31",size:new Au(0,2)};static _Structures;get name(){return Me.getText(0,this)}set name(R){Me.setText(0,R,this)}_adoptStructures(R){Me.adopt(R,Me.getPointer(1,this))}_disownStructures(){return Me.disown(this.structures)}get structures(){return Me.getList(1,Q._Structures,this)}_hasStructures(){return!Me.isNull(Me.getPointer(1,this))}_initStructures(R){return Me.initList(1,Q._Structures,R,this)}set structures(R){Me.copyFrom(R,Me.getPointer(1,this))}toString(){return"StructureGroups_StructureGroup_"+super.toString()}},xO=class Q extends Vu{static StructureGroup=SW;static _capnp={displayName:"StructureGroups",id:"ed8c71dbb06eb831",size:new Au(0,2)};static _Groups;static _Modules;_adoptGroups(R){Me.adopt(R,Me.getPointer(0,this))}_disownGroups(){return Me.disown(this.groups)}get groups(){return Me.getList(0,Q._Groups,this)}_hasGroups(){return!Me.isNull(Me.getPointer(0,this))}_initGroups(R){return Me.initList(0,Q._Groups,R,this)}set groups(R){Me.copyFrom(R,Me.getPointer(0,this))}_adoptModules(R){Me.adopt(R,Me.getPointer(1,this))}_disownModules(){return Me.disown(this.modules)}get modules(){return Me.getList(1,Q._Modules,this)}_hasModules(){return!Me.isNull(Me.getPointer(1,this))}_initModules(R){return Me.initList(1,Q._Modules,R,this)}set modules(R){Me.copyFrom(R,Me.getPointer(1,this))}toString(){return"StructureGroups_"+super.toString()}},kY=class extends Vu{static _capnp={displayName:"JsBuiltinType",id:"ccf1cde29b10a0bb",size:new Au(0,2)};get module(){return Me.getText(0,this)}set module(R){Me.setText(0,R,this)}get export(){return Me.getText(1,this)}set export(R){Me.setText(1,R,this)}toString(){return"JsBuiltinType_"+super.toString()}};vW._Variants=jT(r_);nM._Args=jT(r_);iM._Members=jT(fve);iM._BuiltinModules=jT(TY);T0._Args=jT(r_);bW._Args=jT(r_);SW._Structures=jT(iM);xO._Groups=jT(SW);xO._Modules=jT(TY);var n5e=`// AI Search V2 API Error Interfaces
|
|
export interface AiSearchInternalError extends Error {}
|
|
export interface AiSearchNotFoundError extends Error {}
|
|
export interface AiSearchNameNotSetError extends Error {}
|
|
|
|
// Filter types (shared with AutoRAG for compatibility)
|
|
export type ComparisonFilter = {
|
|
key: string;
|
|
type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte';
|
|
value: string | number | boolean;
|
|
};
|
|
|
|
export type CompoundFilter = {
|
|
type: 'and' | 'or';
|
|
filters: ComparisonFilter[];
|
|
};
|
|
|
|
// AI Search V2 Request Types
|
|
export type AiSearchSearchRequest = {
|
|
messages: Array<{
|
|
role: 'system' | 'developer' | 'user' | 'assistant' | 'tool';
|
|
content: string | null;
|
|
}>;
|
|
ai_search_options?: {
|
|
retrieval?: {
|
|
retrieval_type?: 'vector' | 'keyword' | 'hybrid';
|
|
/** Match threshold (0-1, default 0.4) */
|
|
match_threshold?: number;
|
|
/** Maximum number of results (1-50, default 10) */
|
|
max_num_results?: number;
|
|
filters?: CompoundFilter | ComparisonFilter;
|
|
/** Context expansion (0-3, default 0) */
|
|
context_expansion?: number;
|
|
[key: string]: unknown;
|
|
};
|
|
query_rewrite?: {
|
|
enabled?: boolean;
|
|
model?: string;
|
|
rewrite_prompt?: string;
|
|
[key: string]: unknown;
|
|
};
|
|
reranking?: {
|
|
/** Enable reranking (default false) */
|
|
enabled?: boolean;
|
|
model?: '@cf/baai/bge-reranker-base' | '';
|
|
/** Match threshold (0-1, default 0.4) */
|
|
match_threshold?: number;
|
|
[key: string]: unknown;
|
|
};
|
|
[key: string]: unknown;
|
|
};
|
|
};
|
|
|
|
export type AiSearchChatCompletionsRequest = {
|
|
messages: Array<{
|
|
role: 'system' | 'developer' | 'user' | 'assistant' | 'tool';
|
|
content: string | null;
|
|
}>;
|
|
model?: string;
|
|
stream?: boolean;
|
|
ai_search_options?: {
|
|
retrieval?: {
|
|
retrieval_type?: 'vector' | 'keyword' | 'hybrid';
|
|
match_threshold?: number;
|
|
max_num_results?: number;
|
|
filters?: CompoundFilter | ComparisonFilter;
|
|
context_expansion?: number;
|
|
[key: string]: unknown;
|
|
};
|
|
query_rewrite?: {
|
|
enabled?: boolean;
|
|
model?: string;
|
|
rewrite_prompt?: string;
|
|
[key: string]: unknown;
|
|
};
|
|
reranking?: {
|
|
enabled?: boolean;
|
|
model?: '@cf/baai/bge-reranker-base' | '';
|
|
match_threshold?: number;
|
|
[key: string]: unknown;
|
|
};
|
|
[key: string]: unknown;
|
|
};
|
|
[key: string]: unknown;
|
|
};
|
|
|
|
// AI Search V2 Response Types
|
|
export type AiSearchSearchResponse = {
|
|
search_query: string;
|
|
chunks: Array<{
|
|
id: string;
|
|
type: string;
|
|
/** Match score (0-1) */
|
|
score: number;
|
|
text: string;
|
|
item: {
|
|
timestamp?: number;
|
|
key: string;
|
|
metadata?: Record<string, unknown>;
|
|
};
|
|
scoring_details?: {
|
|
/** Keyword match score (0-1) */
|
|
keyword_score?: number;
|
|
/** Vector similarity score (0-1) */
|
|
vector_score?: number;
|
|
};
|
|
}>;
|
|
};
|
|
|
|
export type AiSearchListResponse = Array<{
|
|
id: string;
|
|
internal_id?: string;
|
|
account_id?: string;
|
|
account_tag?: string;
|
|
/** Whether the instance is enabled (default true) */
|
|
enable?: boolean;
|
|
type?: 'r2' | 'web-crawler';
|
|
source?: string;
|
|
[key: string]: unknown;
|
|
}>;
|
|
|
|
export type AiSearchConfig = {
|
|
/** Instance ID (1-32 chars, pattern: ^[a-z0-9_]+(?:-[a-z0-9_]+)*$) */
|
|
id: string;
|
|
type: 'r2' | 'web-crawler';
|
|
source: string;
|
|
source_params?: object;
|
|
/** Token ID (UUID format) */
|
|
token_id?: string;
|
|
ai_gateway_id?: string;
|
|
/** Enable query rewriting (default false) */
|
|
rewrite_query?: boolean;
|
|
/** Enable reranking (default false) */
|
|
reranking?: boolean;
|
|
embedding_model?: string;
|
|
ai_search_model?: string;
|
|
};
|
|
|
|
export type AiSearchInstance = {
|
|
id: string;
|
|
enable?: boolean;
|
|
type?: 'r2' | 'web-crawler';
|
|
source?: string;
|
|
[key: string]: unknown;
|
|
};
|
|
|
|
// AI Search Instance Service - Instance-level operations
|
|
export declare abstract class AiSearchInstanceService {
|
|
/**
|
|
* Search the AI Search instance for relevant chunks.
|
|
* @param params Search request with messages and AI search options
|
|
* @returns Search response with matching chunks
|
|
*/
|
|
search(params: AiSearchSearchRequest): Promise<AiSearchSearchResponse>;
|
|
|
|
/**
|
|
* Generate chat completions with AI Search context.
|
|
* @param params Chat completions request with optional streaming
|
|
* @returns Response object (if streaming) or chat completion result
|
|
*/
|
|
chatCompletions(
|
|
params: AiSearchChatCompletionsRequest
|
|
): Promise<Response | object>;
|
|
|
|
/**
|
|
* Delete this AI Search instance.
|
|
*/
|
|
delete(): Promise<void>;
|
|
}
|
|
|
|
// AI Search Account Service - Account-level operations
|
|
export declare abstract class AiSearchAccountService {
|
|
/**
|
|
* List all AI Search instances in the account.
|
|
* @returns Array of AI Search instances
|
|
*/
|
|
list(): Promise<AiSearchListResponse>;
|
|
|
|
/**
|
|
* Get an AI Search instance by ID.
|
|
* @param name Instance ID
|
|
* @returns Instance service for performing operations
|
|
*/
|
|
get(name: string): AiSearchInstanceService;
|
|
|
|
/**
|
|
* Create a new AI Search instance.
|
|
* @param config Instance configuration
|
|
* @returns Instance service for performing operations
|
|
*/
|
|
create(config: AiSearchConfig): Promise<AiSearchInstanceService>;
|
|
}
|
|
|
|
export type AiImageClassificationInput = {
|
|
image: number[];
|
|
};
|
|
export type AiImageClassificationOutput = {
|
|
score?: number;
|
|
label?: string;
|
|
}[];
|
|
export declare abstract class BaseAiImageClassification {
|
|
inputs: AiImageClassificationInput;
|
|
postProcessedOutputs: AiImageClassificationOutput;
|
|
}
|
|
export type AiImageToTextInput = {
|
|
image: number[];
|
|
prompt?: string;
|
|
max_tokens?: number;
|
|
temperature?: number;
|
|
top_p?: number;
|
|
top_k?: number;
|
|
seed?: number;
|
|
repetition_penalty?: number;
|
|
frequency_penalty?: number;
|
|
presence_penalty?: number;
|
|
raw?: boolean;
|
|
messages?: RoleScopedChatInput[];
|
|
};
|
|
export type AiImageToTextOutput = {
|
|
description: string;
|
|
};
|
|
export declare abstract class BaseAiImageToText {
|
|
inputs: AiImageToTextInput;
|
|
postProcessedOutputs: AiImageToTextOutput;
|
|
}
|
|
export type AiImageTextToTextInput = {
|
|
image: string;
|
|
prompt?: string;
|
|
max_tokens?: number;
|
|
temperature?: number;
|
|
ignore_eos?: boolean;
|
|
top_p?: number;
|
|
top_k?: number;
|
|
seed?: number;
|
|
repetition_penalty?: number;
|
|
frequency_penalty?: number;
|
|
presence_penalty?: number;
|
|
raw?: boolean;
|
|
messages?: RoleScopedChatInput[];
|
|
};
|
|
export type AiImageTextToTextOutput = {
|
|
description: string;
|
|
};
|
|
export declare abstract class BaseAiImageTextToText {
|
|
inputs: AiImageTextToTextInput;
|
|
postProcessedOutputs: AiImageTextToTextOutput;
|
|
}
|
|
export type AiMultimodalEmbeddingsInput = {
|
|
image: string;
|
|
text: string[];
|
|
};
|
|
export type AiIMultimodalEmbeddingsOutput = {
|
|
data: number[][];
|
|
shape: number[];
|
|
};
|
|
export declare abstract class BaseAiMultimodalEmbeddings {
|
|
inputs: AiImageTextToTextInput;
|
|
postProcessedOutputs: AiImageTextToTextOutput;
|
|
}
|
|
export type AiObjectDetectionInput = {
|
|
image: number[];
|
|
};
|
|
export type AiObjectDetectionOutput = {
|
|
score?: number;
|
|
label?: string;
|
|
}[];
|
|
export declare abstract class BaseAiObjectDetection {
|
|
inputs: AiObjectDetectionInput;
|
|
postProcessedOutputs: AiObjectDetectionOutput;
|
|
}
|
|
export type AiSentenceSimilarityInput = {
|
|
source: string;
|
|
sentences: string[];
|
|
};
|
|
export type AiSentenceSimilarityOutput = number[];
|
|
export declare abstract class BaseAiSentenceSimilarity {
|
|
inputs: AiSentenceSimilarityInput;
|
|
postProcessedOutputs: AiSentenceSimilarityOutput;
|
|
}
|
|
export type AiAutomaticSpeechRecognitionInput = {
|
|
audio: number[];
|
|
};
|
|
export type AiAutomaticSpeechRecognitionOutput = {
|
|
text?: string;
|
|
words?: {
|
|
word: string;
|
|
start: number;
|
|
end: number;
|
|
}[];
|
|
vtt?: string;
|
|
};
|
|
export declare abstract class BaseAiAutomaticSpeechRecognition {
|
|
inputs: AiAutomaticSpeechRecognitionInput;
|
|
postProcessedOutputs: AiAutomaticSpeechRecognitionOutput;
|
|
}
|
|
export type AiSummarizationInput = {
|
|
input_text: string;
|
|
max_length?: number;
|
|
};
|
|
export type AiSummarizationOutput = {
|
|
summary: string;
|
|
};
|
|
export declare abstract class BaseAiSummarization {
|
|
inputs: AiSummarizationInput;
|
|
postProcessedOutputs: AiSummarizationOutput;
|
|
}
|
|
export type AiTextClassificationInput = {
|
|
text: string;
|
|
};
|
|
export type AiTextClassificationOutput = {
|
|
score?: number;
|
|
label?: string;
|
|
}[];
|
|
export declare abstract class BaseAiTextClassification {
|
|
inputs: AiTextClassificationInput;
|
|
postProcessedOutputs: AiTextClassificationOutput;
|
|
}
|
|
export type AiTextEmbeddingsInput = {
|
|
text: string | string[];
|
|
};
|
|
export type AiTextEmbeddingsOutput = {
|
|
shape: number[];
|
|
data: number[][];
|
|
};
|
|
export declare abstract class BaseAiTextEmbeddings {
|
|
inputs: AiTextEmbeddingsInput;
|
|
postProcessedOutputs: AiTextEmbeddingsOutput;
|
|
}
|
|
export type RoleScopedChatInput = {
|
|
role: "user" | "assistant" | "system" | "tool" | (string & NonNullable<unknown>);
|
|
content: string;
|
|
name?: string;
|
|
};
|
|
export type AiTextGenerationToolLegacyInput = {
|
|
name: string;
|
|
description: string;
|
|
parameters?: {
|
|
type: "object" | (string & NonNullable<unknown>);
|
|
properties: {
|
|
[key: string]: {
|
|
type: string;
|
|
description?: string;
|
|
};
|
|
};
|
|
required: string[];
|
|
};
|
|
};
|
|
export type AiTextGenerationToolInput = {
|
|
type: "function" | (string & NonNullable<unknown>);
|
|
function: {
|
|
name: string;
|
|
description: string;
|
|
parameters?: {
|
|
type: "object" | (string & NonNullable<unknown>);
|
|
properties: {
|
|
[key: string]: {
|
|
type: string;
|
|
description?: string;
|
|
};
|
|
};
|
|
required: string[];
|
|
};
|
|
};
|
|
};
|
|
export type AiTextGenerationFunctionsInput = {
|
|
name: string;
|
|
code: string;
|
|
};
|
|
export type AiTextGenerationResponseFormat = {
|
|
type: string;
|
|
json_schema?: any;
|
|
};
|
|
export type AiTextGenerationInput = {
|
|
prompt?: string;
|
|
raw?: boolean;
|
|
stream?: boolean;
|
|
max_tokens?: number;
|
|
temperature?: number;
|
|
top_p?: number;
|
|
top_k?: number;
|
|
seed?: number;
|
|
repetition_penalty?: number;
|
|
frequency_penalty?: number;
|
|
presence_penalty?: number;
|
|
messages?: RoleScopedChatInput[];
|
|
response_format?: AiTextGenerationResponseFormat;
|
|
tools?: AiTextGenerationToolInput[] | AiTextGenerationToolLegacyInput[] | (object & NonNullable<unknown>);
|
|
functions?: AiTextGenerationFunctionsInput[];
|
|
};
|
|
export type AiTextGenerationToolLegacyOutput = {
|
|
name: string;
|
|
arguments: unknown;
|
|
};
|
|
export type AiTextGenerationToolOutput = {
|
|
id: string;
|
|
type: "function";
|
|
function: {
|
|
name: string;
|
|
arguments: string;
|
|
};
|
|
};
|
|
export type UsageTags = {
|
|
prompt_tokens: number;
|
|
completion_tokens: number;
|
|
total_tokens: number;
|
|
};
|
|
export type AiTextGenerationOutput = {
|
|
response?: string;
|
|
tool_calls?: AiTextGenerationToolLegacyOutput[] & AiTextGenerationToolOutput[];
|
|
usage?: UsageTags;
|
|
};
|
|
export declare abstract class BaseAiTextGeneration {
|
|
inputs: AiTextGenerationInput;
|
|
postProcessedOutputs: AiTextGenerationOutput;
|
|
}
|
|
export type AiTextToSpeechInput = {
|
|
prompt: string;
|
|
lang?: string;
|
|
};
|
|
export type AiTextToSpeechOutput =
|
|
| Uint8Array
|
|
| {
|
|
audio: string;
|
|
};
|
|
export declare abstract class BaseAiTextToSpeech {
|
|
inputs: AiTextToSpeechInput;
|
|
postProcessedOutputs: AiTextToSpeechOutput;
|
|
}
|
|
export type AiTextToImageInput = {
|
|
prompt: string;
|
|
negative_prompt?: string;
|
|
height?: number;
|
|
width?: number;
|
|
image?: number[];
|
|
image_b64?: string;
|
|
mask?: number[];
|
|
num_steps?: number;
|
|
strength?: number;
|
|
guidance?: number;
|
|
seed?: number;
|
|
};
|
|
export type AiTextToImageOutput = ReadableStream<Uint8Array>;
|
|
export declare abstract class BaseAiTextToImage {
|
|
inputs: AiTextToImageInput;
|
|
postProcessedOutputs: AiTextToImageOutput;
|
|
}
|
|
export type AiTranslationInput = {
|
|
text: string;
|
|
target_lang: string;
|
|
source_lang?: string;
|
|
};
|
|
export type AiTranslationOutput = {
|
|
translated_text?: string;
|
|
};
|
|
export declare abstract class BaseAiTranslation {
|
|
inputs: AiTranslationInput;
|
|
postProcessedOutputs: AiTranslationOutput;
|
|
}
|
|
/**
|
|
* Workers AI support for OpenAI's Responses API
|
|
* Reference: https://github.com/openai/openai-node/blob/master/src/resources/responses/responses.ts
|
|
*
|
|
* It's a stripped down version from its source.
|
|
* It currently supports basic function calling, json mode and accepts images as input.
|
|
*
|
|
* It does not include types for WebSearch, CodeInterpreter, FileInputs, MCP, CustomTools.
|
|
* We plan to add those incrementally as model + platform capabilities evolve.
|
|
*/
|
|
export type ResponsesInput = {
|
|
background?: boolean | null;
|
|
conversation?: string | ResponseConversationParam | null;
|
|
include?: Array<ResponseIncludable> | null;
|
|
input?: string | ResponseInput;
|
|
instructions?: string | null;
|
|
max_output_tokens?: number | null;
|
|
parallel_tool_calls?: boolean | null;
|
|
previous_response_id?: string | null;
|
|
prompt_cache_key?: string;
|
|
reasoning?: Reasoning | null;
|
|
safety_identifier?: string;
|
|
service_tier?: "auto" | "default" | "flex" | "scale" | "priority" | null;
|
|
stream?: boolean | null;
|
|
stream_options?: StreamOptions | null;
|
|
temperature?: number | null;
|
|
text?: ResponseTextConfig;
|
|
tool_choice?: ToolChoiceOptions | ToolChoiceFunction;
|
|
tools?: Array<Tool>;
|
|
top_p?: number | null;
|
|
truncation?: "auto" | "disabled" | null;
|
|
};
|
|
export type ResponsesOutput = {
|
|
id?: string;
|
|
created_at?: number;
|
|
output_text?: string;
|
|
error?: ResponseError | null;
|
|
incomplete_details?: ResponseIncompleteDetails | null;
|
|
instructions?: string | Array<ResponseInputItem> | null;
|
|
object?: "response";
|
|
output?: Array<ResponseOutputItem>;
|
|
parallel_tool_calls?: boolean;
|
|
temperature?: number | null;
|
|
tool_choice?: ToolChoiceOptions | ToolChoiceFunction;
|
|
tools?: Array<Tool>;
|
|
top_p?: number | null;
|
|
max_output_tokens?: number | null;
|
|
previous_response_id?: string | null;
|
|
prompt?: ResponsePrompt | null;
|
|
reasoning?: Reasoning | null;
|
|
safety_identifier?: string;
|
|
service_tier?: "auto" | "default" | "flex" | "scale" | "priority" | null;
|
|
status?: ResponseStatus;
|
|
text?: ResponseTextConfig;
|
|
truncation?: "auto" | "disabled" | null;
|
|
usage?: ResponseUsage;
|
|
};
|
|
export type EasyInputMessage = {
|
|
content: string | ResponseInputMessageContentList;
|
|
role: "user" | "assistant" | "system" | "developer";
|
|
type?: "message";
|
|
};
|
|
export type ResponsesFunctionTool = {
|
|
name: string;
|
|
parameters: {
|
|
[key: string]: unknown;
|
|
} | null;
|
|
strict: boolean | null;
|
|
type: "function";
|
|
description?: string | null;
|
|
};
|
|
export type ResponseIncompleteDetails = {
|
|
reason?: "max_output_tokens" | "content_filter";
|
|
};
|
|
export type ResponsePrompt = {
|
|
id: string;
|
|
variables?: {
|
|
[key: string]: string | ResponseInputText | ResponseInputImage;
|
|
} | null;
|
|
version?: string | null;
|
|
};
|
|
export type Reasoning = {
|
|
effort?: ReasoningEffort | null;
|
|
generate_summary?: "auto" | "concise" | "detailed" | null;
|
|
summary?: "auto" | "concise" | "detailed" | null;
|
|
};
|
|
export type ResponseContent =
|
|
| ResponseInputText
|
|
| ResponseInputImage
|
|
| ResponseOutputText
|
|
| ResponseOutputRefusal
|
|
| ResponseContentReasoningText;
|
|
export type ResponseContentReasoningText = {
|
|
text: string;
|
|
type: "reasoning_text";
|
|
};
|
|
export type ResponseConversationParam = {
|
|
id: string;
|
|
};
|
|
export type ResponseCreatedEvent = {
|
|
response: Response;
|
|
sequence_number: number;
|
|
type: "response.created";
|
|
};
|
|
export type ResponseCustomToolCallOutput = {
|
|
call_id: string;
|
|
output: string | Array<ResponseInputText | ResponseInputImage>;
|
|
type: "custom_tool_call_output";
|
|
id?: string;
|
|
};
|
|
export type ResponseError = {
|
|
code:
|
|
| "server_error"
|
|
| "rate_limit_exceeded"
|
|
| "invalid_prompt"
|
|
| "vector_store_timeout"
|
|
| "invalid_image"
|
|
| "invalid_image_format"
|
|
| "invalid_base64_image"
|
|
| "invalid_image_url"
|
|
| "image_too_large"
|
|
| "image_too_small"
|
|
| "image_parse_error"
|
|
| "image_content_policy_violation"
|
|
| "invalid_image_mode"
|
|
| "image_file_too_large"
|
|
| "unsupported_image_media_type"
|
|
| "empty_image_file"
|
|
| "failed_to_download_image"
|
|
| "image_file_not_found";
|
|
message: string;
|
|
};
|
|
export type ResponseErrorEvent = {
|
|
code: string | null;
|
|
message: string;
|
|
param: string | null;
|
|
sequence_number: number;
|
|
type: "error";
|
|
};
|
|
export type ResponseFailedEvent = {
|
|
response: Response;
|
|
sequence_number: number;
|
|
type: "response.failed";
|
|
};
|
|
export type ResponseFormatText = {
|
|
type: "text";
|
|
};
|
|
export type ResponseFormatJSONObject = {
|
|
type: "json_object";
|
|
};
|
|
export type ResponseFormatTextConfig =
|
|
| ResponseFormatText
|
|
| ResponseFormatTextJSONSchemaConfig
|
|
| ResponseFormatJSONObject;
|
|
export type ResponseFormatTextJSONSchemaConfig = {
|
|
name: string;
|
|
schema: {
|
|
[key: string]: unknown;
|
|
};
|
|
type: "json_schema";
|
|
description?: string;
|
|
strict?: boolean | null;
|
|
};
|
|
export type ResponseFunctionCallArgumentsDeltaEvent = {
|
|
delta: string;
|
|
item_id: string;
|
|
output_index: number;
|
|
sequence_number: number;
|
|
type: "response.function_call_arguments.delta";
|
|
};
|
|
export type ResponseFunctionCallArgumentsDoneEvent = {
|
|
arguments: string;
|
|
item_id: string;
|
|
name: string;
|
|
output_index: number;
|
|
sequence_number: number;
|
|
type: "response.function_call_arguments.done";
|
|
};
|
|
export type ResponseFunctionCallOutputItem = ResponseInputTextContent | ResponseInputImageContent;
|
|
export type ResponseFunctionCallOutputItemList = Array<ResponseFunctionCallOutputItem>;
|
|
export type ResponseFunctionToolCall = {
|
|
arguments: string;
|
|
call_id: string;
|
|
name: string;
|
|
type: "function_call";
|
|
id?: string;
|
|
status?: "in_progress" | "completed" | "incomplete";
|
|
};
|
|
export interface ResponseFunctionToolCallItem extends ResponseFunctionToolCall {
|
|
id: string;
|
|
}
|
|
export type ResponseFunctionToolCallOutputItem = {
|
|
id: string;
|
|
call_id: string;
|
|
output: string | Array<ResponseInputText | ResponseInputImage>;
|
|
type: "function_call_output";
|
|
status?: "in_progress" | "completed" | "incomplete";
|
|
};
|
|
export type ResponseIncludable = "message.input_image.image_url" | "message.output_text.logprobs";
|
|
export type ResponseIncompleteEvent = {
|
|
response: Response;
|
|
sequence_number: number;
|
|
type: "response.incomplete";
|
|
};
|
|
export type ResponseInput = Array<ResponseInputItem>;
|
|
export type ResponseInputContent = ResponseInputText | ResponseInputImage;
|
|
export type ResponseInputImage = {
|
|
detail: "low" | "high" | "auto";
|
|
type: "input_image";
|
|
/**
|
|
* Base64 encoded image
|
|
*/
|
|
image_url?: string | null;
|
|
};
|
|
export type ResponseInputImageContent = {
|
|
type: "input_image";
|
|
detail?: "low" | "high" | "auto" | null;
|
|
/**
|
|
* Base64 encoded image
|
|
*/
|
|
image_url?: string | null;
|
|
};
|
|
export type ResponseInputItem =
|
|
| EasyInputMessage
|
|
| ResponseInputItemMessage
|
|
| ResponseOutputMessage
|
|
| ResponseFunctionToolCall
|
|
| ResponseInputItemFunctionCallOutput
|
|
| ResponseReasoningItem;
|
|
export type ResponseInputItemFunctionCallOutput = {
|
|
call_id: string;
|
|
output: string | ResponseFunctionCallOutputItemList;
|
|
type: "function_call_output";
|
|
id?: string | null;
|
|
status?: "in_progress" | "completed" | "incomplete" | null;
|
|
};
|
|
export type ResponseInputItemMessage = {
|
|
content: ResponseInputMessageContentList;
|
|
role: "user" | "system" | "developer";
|
|
status?: "in_progress" | "completed" | "incomplete";
|
|
type?: "message";
|
|
};
|
|
export type ResponseInputMessageContentList = Array<ResponseInputContent>;
|
|
export type ResponseInputMessageItem = {
|
|
id: string;
|
|
content: ResponseInputMessageContentList;
|
|
role: "user" | "system" | "developer";
|
|
status?: "in_progress" | "completed" | "incomplete";
|
|
type?: "message";
|
|
};
|
|
export type ResponseInputText = {
|
|
text: string;
|
|
type: "input_text";
|
|
};
|
|
export type ResponseInputTextContent = {
|
|
text: string;
|
|
type: "input_text";
|
|
};
|
|
export type ResponseItem =
|
|
| ResponseInputMessageItem
|
|
| ResponseOutputMessage
|
|
| ResponseFunctionToolCallItem
|
|
| ResponseFunctionToolCallOutputItem;
|
|
export type ResponseOutputItem = ResponseOutputMessage | ResponseFunctionToolCall | ResponseReasoningItem;
|
|
export type ResponseOutputItemAddedEvent = {
|
|
item: ResponseOutputItem;
|
|
output_index: number;
|
|
sequence_number: number;
|
|
type: "response.output_item.added";
|
|
};
|
|
export type ResponseOutputItemDoneEvent = {
|
|
item: ResponseOutputItem;
|
|
output_index: number;
|
|
sequence_number: number;
|
|
type: "response.output_item.done";
|
|
};
|
|
export type ResponseOutputMessage = {
|
|
id: string;
|
|
content: Array<ResponseOutputText | ResponseOutputRefusal>;
|
|
role: "assistant";
|
|
status: "in_progress" | "completed" | "incomplete";
|
|
type: "message";
|
|
};
|
|
export type ResponseOutputRefusal = {
|
|
refusal: string;
|
|
type: "refusal";
|
|
};
|
|
export type ResponseOutputText = {
|
|
text: string;
|
|
type: "output_text";
|
|
logprobs?: Array<Logprob>;
|
|
};
|
|
export type ResponseReasoningItem = {
|
|
id: string;
|
|
summary: Array<ResponseReasoningSummaryItem>;
|
|
type: "reasoning";
|
|
content?: Array<ResponseReasoningContentItem>;
|
|
encrypted_content?: string | null;
|
|
status?: "in_progress" | "completed" | "incomplete";
|
|
};
|
|
export type ResponseReasoningSummaryItem = {
|
|
text: string;
|
|
type: "summary_text";
|
|
};
|
|
export type ResponseReasoningContentItem = {
|
|
text: string;
|
|
type: "reasoning_text";
|
|
};
|
|
export type ResponseReasoningTextDeltaEvent = {
|
|
content_index: number;
|
|
delta: string;
|
|
item_id: string;
|
|
output_index: number;
|
|
sequence_number: number;
|
|
type: "response.reasoning_text.delta";
|
|
};
|
|
export type ResponseReasoningTextDoneEvent = {
|
|
content_index: number;
|
|
item_id: string;
|
|
output_index: number;
|
|
sequence_number: number;
|
|
text: string;
|
|
type: "response.reasoning_text.done";
|
|
};
|
|
export type ResponseRefusalDeltaEvent = {
|
|
content_index: number;
|
|
delta: string;
|
|
item_id: string;
|
|
output_index: number;
|
|
sequence_number: number;
|
|
type: "response.refusal.delta";
|
|
};
|
|
export type ResponseRefusalDoneEvent = {
|
|
content_index: number;
|
|
item_id: string;
|
|
output_index: number;
|
|
refusal: string;
|
|
sequence_number: number;
|
|
type: "response.refusal.done";
|
|
};
|
|
export type ResponseStatus = "completed" | "failed" | "in_progress" | "cancelled" | "queued" | "incomplete";
|
|
export type ResponseStreamEvent =
|
|
| ResponseCompletedEvent
|
|
| ResponseCreatedEvent
|
|
| ResponseErrorEvent
|
|
| ResponseFunctionCallArgumentsDeltaEvent
|
|
| ResponseFunctionCallArgumentsDoneEvent
|
|
| ResponseFailedEvent
|
|
| ResponseIncompleteEvent
|
|
| ResponseOutputItemAddedEvent
|
|
| ResponseOutputItemDoneEvent
|
|
| ResponseReasoningTextDeltaEvent
|
|
| ResponseReasoningTextDoneEvent
|
|
| ResponseRefusalDeltaEvent
|
|
| ResponseRefusalDoneEvent
|
|
| ResponseTextDeltaEvent
|
|
| ResponseTextDoneEvent;
|
|
export type ResponseCompletedEvent = {
|
|
response: Response;
|
|
sequence_number: number;
|
|
type: "response.completed";
|
|
};
|
|
export type ResponseTextConfig = {
|
|
format?: ResponseFormatTextConfig;
|
|
verbosity?: "low" | "medium" | "high" | null;
|
|
};
|
|
export type ResponseTextDeltaEvent = {
|
|
content_index: number;
|
|
delta: string;
|
|
item_id: string;
|
|
logprobs: Array<Logprob>;
|
|
output_index: number;
|
|
sequence_number: number;
|
|
type: "response.output_text.delta";
|
|
};
|
|
export type ResponseTextDoneEvent = {
|
|
content_index: number;
|
|
item_id: string;
|
|
logprobs: Array<Logprob>;
|
|
output_index: number;
|
|
sequence_number: number;
|
|
text: string;
|
|
type: "response.output_text.done";
|
|
};
|
|
export type Logprob = {
|
|
token: string;
|
|
logprob: number;
|
|
top_logprobs?: Array<TopLogprob>;
|
|
};
|
|
export type TopLogprob = {
|
|
token?: string;
|
|
logprob?: number;
|
|
};
|
|
export type ResponseUsage = {
|
|
input_tokens: number;
|
|
output_tokens: number;
|
|
total_tokens: number;
|
|
};
|
|
export type Tool = ResponsesFunctionTool;
|
|
export type ToolChoiceFunction = {
|
|
name: string;
|
|
type: "function";
|
|
};
|
|
export type ToolChoiceOptions = "none";
|
|
export type ReasoningEffort = "minimal" | "low" | "medium" | "high" | null;
|
|
export type StreamOptions = {
|
|
include_obfuscation?: boolean;
|
|
};
|
|
export type Ai_Cf_Baai_Bge_Base_En_V1_5_Input =
|
|
| {
|
|
text: string | string[];
|
|
/**
|
|
* The pooling method used in the embedding process. \`cls\` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is \`mean\` in order for this to not be a breaking change, but we highly suggest using the new \`cls\` pooling for better accuracy.
|
|
*/
|
|
pooling?: "mean" | "cls";
|
|
}
|
|
| {
|
|
/**
|
|
* Batch of the embeddings requests to run using async-queue
|
|
*/
|
|
requests: {
|
|
text: string | string[];
|
|
/**
|
|
* The pooling method used in the embedding process. \`cls\` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is \`mean\` in order for this to not be a breaking change, but we highly suggest using the new \`cls\` pooling for better accuracy.
|
|
*/
|
|
pooling?: "mean" | "cls";
|
|
}[];
|
|
};
|
|
export type Ai_Cf_Baai_Bge_Base_En_V1_5_Output =
|
|
| {
|
|
shape?: number[];
|
|
/**
|
|
* Embeddings of the requested text values
|
|
*/
|
|
data?: number[][];
|
|
/**
|
|
* The pooling method used in the embedding process.
|
|
*/
|
|
pooling?: "mean" | "cls";
|
|
}
|
|
| Ai_Cf_Baai_Bge_Base_En_V1_5_AsyncResponse;
|
|
export interface Ai_Cf_Baai_Bge_Base_En_V1_5_AsyncResponse {
|
|
/**
|
|
* The async request id that can be used to obtain the results.
|
|
*/
|
|
request_id?: string;
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Baai_Bge_Base_En_V1_5 {
|
|
inputs: Ai_Cf_Baai_Bge_Base_En_V1_5_Input;
|
|
postProcessedOutputs: Ai_Cf_Baai_Bge_Base_En_V1_5_Output;
|
|
}
|
|
export type Ai_Cf_Openai_Whisper_Input =
|
|
| string
|
|
| {
|
|
/**
|
|
* An array of integers that represent the audio data constrained to 8-bit unsigned integer values
|
|
*/
|
|
audio: number[];
|
|
};
|
|
export interface Ai_Cf_Openai_Whisper_Output {
|
|
/**
|
|
* The transcription
|
|
*/
|
|
text: string;
|
|
word_count?: number;
|
|
words?: {
|
|
word?: string;
|
|
/**
|
|
* The second this word begins in the recording
|
|
*/
|
|
start?: number;
|
|
/**
|
|
* The ending second when the word completes
|
|
*/
|
|
end?: number;
|
|
}[];
|
|
vtt?: string;
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Openai_Whisper {
|
|
inputs: Ai_Cf_Openai_Whisper_Input;
|
|
postProcessedOutputs: Ai_Cf_Openai_Whisper_Output;
|
|
}
|
|
export type Ai_Cf_Meta_M2M100_1_2B_Input =
|
|
| {
|
|
/**
|
|
* The text to be translated
|
|
*/
|
|
text: string;
|
|
/**
|
|
* The language code of the source text (e.g., 'en' for English). Defaults to 'en' if not specified
|
|
*/
|
|
source_lang?: string;
|
|
/**
|
|
* The language code to translate the text into (e.g., 'es' for Spanish)
|
|
*/
|
|
target_lang: string;
|
|
}
|
|
| {
|
|
/**
|
|
* Batch of the embeddings requests to run using async-queue
|
|
*/
|
|
requests: {
|
|
/**
|
|
* The text to be translated
|
|
*/
|
|
text: string;
|
|
/**
|
|
* The language code of the source text (e.g., 'en' for English). Defaults to 'en' if not specified
|
|
*/
|
|
source_lang?: string;
|
|
/**
|
|
* The language code to translate the text into (e.g., 'es' for Spanish)
|
|
*/
|
|
target_lang: string;
|
|
}[];
|
|
};
|
|
export type Ai_Cf_Meta_M2M100_1_2B_Output =
|
|
| {
|
|
/**
|
|
* The translated text in the target language
|
|
*/
|
|
translated_text?: string;
|
|
}
|
|
| Ai_Cf_Meta_M2M100_1_2B_AsyncResponse;
|
|
export interface Ai_Cf_Meta_M2M100_1_2B_AsyncResponse {
|
|
/**
|
|
* The async request id that can be used to obtain the results.
|
|
*/
|
|
request_id?: string;
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Meta_M2M100_1_2B {
|
|
inputs: Ai_Cf_Meta_M2M100_1_2B_Input;
|
|
postProcessedOutputs: Ai_Cf_Meta_M2M100_1_2B_Output;
|
|
}
|
|
export type Ai_Cf_Baai_Bge_Small_En_V1_5_Input =
|
|
| {
|
|
text: string | string[];
|
|
/**
|
|
* The pooling method used in the embedding process. \`cls\` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is \`mean\` in order for this to not be a breaking change, but we highly suggest using the new \`cls\` pooling for better accuracy.
|
|
*/
|
|
pooling?: "mean" | "cls";
|
|
}
|
|
| {
|
|
/**
|
|
* Batch of the embeddings requests to run using async-queue
|
|
*/
|
|
requests: {
|
|
text: string | string[];
|
|
/**
|
|
* The pooling method used in the embedding process. \`cls\` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is \`mean\` in order for this to not be a breaking change, but we highly suggest using the new \`cls\` pooling for better accuracy.
|
|
*/
|
|
pooling?: "mean" | "cls";
|
|
}[];
|
|
};
|
|
export type Ai_Cf_Baai_Bge_Small_En_V1_5_Output =
|
|
| {
|
|
shape?: number[];
|
|
/**
|
|
* Embeddings of the requested text values
|
|
*/
|
|
data?: number[][];
|
|
/**
|
|
* The pooling method used in the embedding process.
|
|
*/
|
|
pooling?: "mean" | "cls";
|
|
}
|
|
| Ai_Cf_Baai_Bge_Small_En_V1_5_AsyncResponse;
|
|
export interface Ai_Cf_Baai_Bge_Small_En_V1_5_AsyncResponse {
|
|
/**
|
|
* The async request id that can be used to obtain the results.
|
|
*/
|
|
request_id?: string;
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Baai_Bge_Small_En_V1_5 {
|
|
inputs: Ai_Cf_Baai_Bge_Small_En_V1_5_Input;
|
|
postProcessedOutputs: Ai_Cf_Baai_Bge_Small_En_V1_5_Output;
|
|
}
|
|
export type Ai_Cf_Baai_Bge_Large_En_V1_5_Input =
|
|
| {
|
|
text: string | string[];
|
|
/**
|
|
* The pooling method used in the embedding process. \`cls\` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is \`mean\` in order for this to not be a breaking change, but we highly suggest using the new \`cls\` pooling for better accuracy.
|
|
*/
|
|
pooling?: "mean" | "cls";
|
|
}
|
|
| {
|
|
/**
|
|
* Batch of the embeddings requests to run using async-queue
|
|
*/
|
|
requests: {
|
|
text: string | string[];
|
|
/**
|
|
* The pooling method used in the embedding process. \`cls\` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is \`mean\` in order for this to not be a breaking change, but we highly suggest using the new \`cls\` pooling for better accuracy.
|
|
*/
|
|
pooling?: "mean" | "cls";
|
|
}[];
|
|
};
|
|
export type Ai_Cf_Baai_Bge_Large_En_V1_5_Output =
|
|
| {
|
|
shape?: number[];
|
|
/**
|
|
* Embeddings of the requested text values
|
|
*/
|
|
data?: number[][];
|
|
/**
|
|
* The pooling method used in the embedding process.
|
|
*/
|
|
pooling?: "mean" | "cls";
|
|
}
|
|
| Ai_Cf_Baai_Bge_Large_En_V1_5_AsyncResponse;
|
|
export interface Ai_Cf_Baai_Bge_Large_En_V1_5_AsyncResponse {
|
|
/**
|
|
* The async request id that can be used to obtain the results.
|
|
*/
|
|
request_id?: string;
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Baai_Bge_Large_En_V1_5 {
|
|
inputs: Ai_Cf_Baai_Bge_Large_En_V1_5_Input;
|
|
postProcessedOutputs: Ai_Cf_Baai_Bge_Large_En_V1_5_Output;
|
|
}
|
|
export type Ai_Cf_Unum_Uform_Gen2_Qwen_500M_Input =
|
|
| string
|
|
| {
|
|
/**
|
|
* The input text prompt for the model to generate a response.
|
|
*/
|
|
prompt?: string;
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* Controls the creativity of the AI's responses by adjusting how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
image: number[] | (string & NonNullable<unknown>);
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
};
|
|
export interface Ai_Cf_Unum_Uform_Gen2_Qwen_500M_Output {
|
|
description?: string;
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Unum_Uform_Gen2_Qwen_500M {
|
|
inputs: Ai_Cf_Unum_Uform_Gen2_Qwen_500M_Input;
|
|
postProcessedOutputs: Ai_Cf_Unum_Uform_Gen2_Qwen_500M_Output;
|
|
}
|
|
export type Ai_Cf_Openai_Whisper_Tiny_En_Input =
|
|
| string
|
|
| {
|
|
/**
|
|
* An array of integers that represent the audio data constrained to 8-bit unsigned integer values
|
|
*/
|
|
audio: number[];
|
|
};
|
|
export interface Ai_Cf_Openai_Whisper_Tiny_En_Output {
|
|
/**
|
|
* The transcription
|
|
*/
|
|
text: string;
|
|
word_count?: number;
|
|
words?: {
|
|
word?: string;
|
|
/**
|
|
* The second this word begins in the recording
|
|
*/
|
|
start?: number;
|
|
/**
|
|
* The ending second when the word completes
|
|
*/
|
|
end?: number;
|
|
}[];
|
|
vtt?: string;
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Openai_Whisper_Tiny_En {
|
|
inputs: Ai_Cf_Openai_Whisper_Tiny_En_Input;
|
|
postProcessedOutputs: Ai_Cf_Openai_Whisper_Tiny_En_Output;
|
|
}
|
|
export interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Input {
|
|
/**
|
|
* Base64 encoded value of the audio data.
|
|
*/
|
|
audio: string;
|
|
/**
|
|
* Supported tasks are 'translate' or 'transcribe'.
|
|
*/
|
|
task?: string;
|
|
/**
|
|
* The language of the audio being transcribed or translated.
|
|
*/
|
|
language?: string;
|
|
/**
|
|
* Preprocess the audio with a voice activity detection model.
|
|
*/
|
|
vad_filter?: boolean;
|
|
/**
|
|
* A text prompt to help provide context to the model on the contents of the audio.
|
|
*/
|
|
initial_prompt?: string;
|
|
/**
|
|
* The prefix it appended the the beginning of the output of the transcription and can guide the transcription result.
|
|
*/
|
|
prefix?: string;
|
|
}
|
|
export interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output {
|
|
transcription_info?: {
|
|
/**
|
|
* The language of the audio being transcribed or translated.
|
|
*/
|
|
language?: string;
|
|
/**
|
|
* The confidence level or probability of the detected language being accurate, represented as a decimal between 0 and 1.
|
|
*/
|
|
language_probability?: number;
|
|
/**
|
|
* The total duration of the original audio file, in seconds.
|
|
*/
|
|
duration?: number;
|
|
/**
|
|
* The duration of the audio after applying Voice Activity Detection (VAD) to remove silent or irrelevant sections, in seconds.
|
|
*/
|
|
duration_after_vad?: number;
|
|
};
|
|
/**
|
|
* The complete transcription of the audio.
|
|
*/
|
|
text: string;
|
|
/**
|
|
* The total number of words in the transcription.
|
|
*/
|
|
word_count?: number;
|
|
segments?: {
|
|
/**
|
|
* The starting time of the segment within the audio, in seconds.
|
|
*/
|
|
start?: number;
|
|
/**
|
|
* The ending time of the segment within the audio, in seconds.
|
|
*/
|
|
end?: number;
|
|
/**
|
|
* The transcription of the segment.
|
|
*/
|
|
text?: string;
|
|
/**
|
|
* The temperature used in the decoding process, controlling randomness in predictions. Lower values result in more deterministic outputs.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* The average log probability of the predictions for the words in this segment, indicating overall confidence.
|
|
*/
|
|
avg_logprob?: number;
|
|
/**
|
|
* The compression ratio of the input to the output, measuring how much the text was compressed during the transcription process.
|
|
*/
|
|
compression_ratio?: number;
|
|
/**
|
|
* The probability that the segment contains no speech, represented as a decimal between 0 and 1.
|
|
*/
|
|
no_speech_prob?: number;
|
|
words?: {
|
|
/**
|
|
* The individual word transcribed from the audio.
|
|
*/
|
|
word?: string;
|
|
/**
|
|
* The starting time of the word within the audio, in seconds.
|
|
*/
|
|
start?: number;
|
|
/**
|
|
* The ending time of the word within the audio, in seconds.
|
|
*/
|
|
end?: number;
|
|
}[];
|
|
}[];
|
|
/**
|
|
* The transcription in WebVTT format, which includes timing and text information for use in subtitles.
|
|
*/
|
|
vtt?: string;
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Openai_Whisper_Large_V3_Turbo {
|
|
inputs: Ai_Cf_Openai_Whisper_Large_V3_Turbo_Input;
|
|
postProcessedOutputs: Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output;
|
|
}
|
|
export type Ai_Cf_Baai_Bge_M3_Input =
|
|
| Ai_Cf_Baai_Bge_M3_Input_QueryAnd_Contexts
|
|
| Ai_Cf_Baai_Bge_M3_Input_Embedding
|
|
| {
|
|
/**
|
|
* Batch of the embeddings requests to run using async-queue
|
|
*/
|
|
requests: (Ai_Cf_Baai_Bge_M3_Input_QueryAnd_Contexts_1 | Ai_Cf_Baai_Bge_M3_Input_Embedding_1)[];
|
|
};
|
|
export interface Ai_Cf_Baai_Bge_M3_Input_QueryAnd_Contexts {
|
|
/**
|
|
* A query you wish to perform against the provided contexts. If no query is provided the model with respond with embeddings for contexts
|
|
*/
|
|
query?: string;
|
|
/**
|
|
* List of provided contexts. Note that the index in this array is important, as the response will refer to it.
|
|
*/
|
|
contexts: {
|
|
/**
|
|
* One of the provided context content
|
|
*/
|
|
text?: string;
|
|
}[];
|
|
/**
|
|
* When provided with too long context should the model error out or truncate the context to fit?
|
|
*/
|
|
truncate_inputs?: boolean;
|
|
}
|
|
export interface Ai_Cf_Baai_Bge_M3_Input_Embedding {
|
|
text: string | string[];
|
|
/**
|
|
* When provided with too long context should the model error out or truncate the context to fit?
|
|
*/
|
|
truncate_inputs?: boolean;
|
|
}
|
|
export interface Ai_Cf_Baai_Bge_M3_Input_QueryAnd_Contexts_1 {
|
|
/**
|
|
* A query you wish to perform against the provided contexts. If no query is provided the model with respond with embeddings for contexts
|
|
*/
|
|
query?: string;
|
|
/**
|
|
* List of provided contexts. Note that the index in this array is important, as the response will refer to it.
|
|
*/
|
|
contexts: {
|
|
/**
|
|
* One of the provided context content
|
|
*/
|
|
text?: string;
|
|
}[];
|
|
/**
|
|
* When provided with too long context should the model error out or truncate the context to fit?
|
|
*/
|
|
truncate_inputs?: boolean;
|
|
}
|
|
export interface Ai_Cf_Baai_Bge_M3_Input_Embedding_1 {
|
|
text: string | string[];
|
|
/**
|
|
* When provided with too long context should the model error out or truncate the context to fit?
|
|
*/
|
|
truncate_inputs?: boolean;
|
|
}
|
|
export type Ai_Cf_Baai_Bge_M3_Output =
|
|
| Ai_Cf_Baai_Bge_M3_Ouput_Query
|
|
| Ai_Cf_Baai_Bge_M3_Output_EmbeddingFor_Contexts
|
|
| Ai_Cf_Baai_Bge_M3_Ouput_Embedding
|
|
| Ai_Cf_Baai_Bge_M3_AsyncResponse;
|
|
export interface Ai_Cf_Baai_Bge_M3_Ouput_Query {
|
|
response?: {
|
|
/**
|
|
* Index of the context in the request
|
|
*/
|
|
id?: number;
|
|
/**
|
|
* Score of the context under the index.
|
|
*/
|
|
score?: number;
|
|
}[];
|
|
}
|
|
export interface Ai_Cf_Baai_Bge_M3_Output_EmbeddingFor_Contexts {
|
|
response?: number[][];
|
|
shape?: number[];
|
|
/**
|
|
* The pooling method used in the embedding process.
|
|
*/
|
|
pooling?: "mean" | "cls";
|
|
}
|
|
export interface Ai_Cf_Baai_Bge_M3_Ouput_Embedding {
|
|
shape?: number[];
|
|
/**
|
|
* Embeddings of the requested text values
|
|
*/
|
|
data?: number[][];
|
|
/**
|
|
* The pooling method used in the embedding process.
|
|
*/
|
|
pooling?: "mean" | "cls";
|
|
}
|
|
export interface Ai_Cf_Baai_Bge_M3_AsyncResponse {
|
|
/**
|
|
* The async request id that can be used to obtain the results.
|
|
*/
|
|
request_id?: string;
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Baai_Bge_M3 {
|
|
inputs: Ai_Cf_Baai_Bge_M3_Input;
|
|
postProcessedOutputs: Ai_Cf_Baai_Bge_M3_Output;
|
|
}
|
|
export interface Ai_Cf_Black_Forest_Labs_Flux_1_Schnell_Input {
|
|
/**
|
|
* A text description of the image you want to generate.
|
|
*/
|
|
prompt: string;
|
|
/**
|
|
* The number of diffusion steps; higher values can improve quality but take longer.
|
|
*/
|
|
steps?: number;
|
|
}
|
|
export interface Ai_Cf_Black_Forest_Labs_Flux_1_Schnell_Output {
|
|
/**
|
|
* The generated image in Base64 format.
|
|
*/
|
|
image?: string;
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Black_Forest_Labs_Flux_1_Schnell {
|
|
inputs: Ai_Cf_Black_Forest_Labs_Flux_1_Schnell_Input;
|
|
postProcessedOutputs: Ai_Cf_Black_Forest_Labs_Flux_1_Schnell_Output;
|
|
}
|
|
export type Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Input =
|
|
| Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Prompt
|
|
| Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Messages;
|
|
export interface Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Prompt {
|
|
/**
|
|
* The input text prompt for the model to generate a response.
|
|
*/
|
|
prompt: string;
|
|
image?: number[] | (string & NonNullable<unknown>);
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
/**
|
|
* Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model.
|
|
*/
|
|
lora?: string;
|
|
}
|
|
export interface Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Messages {
|
|
/**
|
|
* An array of message objects representing the conversation history.
|
|
*/
|
|
messages: {
|
|
/**
|
|
* The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool').
|
|
*/
|
|
role?: string;
|
|
/**
|
|
* The tool call id. Must be supplied for tool calls for Mistral-3. If you don't know what to put here you can fall back to 000000001
|
|
*/
|
|
tool_call_id?: string;
|
|
content?:
|
|
| string
|
|
| {
|
|
/**
|
|
* Type of the content provided
|
|
*/
|
|
type?: string;
|
|
text?: string;
|
|
image_url?: {
|
|
/**
|
|
* image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted
|
|
*/
|
|
url?: string;
|
|
};
|
|
}[]
|
|
| {
|
|
/**
|
|
* Type of the content provided
|
|
*/
|
|
type?: string;
|
|
text?: string;
|
|
image_url?: {
|
|
/**
|
|
* image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted
|
|
*/
|
|
url?: string;
|
|
};
|
|
};
|
|
}[];
|
|
image?: number[] | (string & NonNullable<unknown>);
|
|
functions?: {
|
|
name: string;
|
|
code: string;
|
|
}[];
|
|
/**
|
|
* A list of tools available for the assistant to use.
|
|
*/
|
|
tools?: (
|
|
| {
|
|
/**
|
|
* The name of the tool. More descriptive the better.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the tool does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the tool.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
}
|
|
| {
|
|
/**
|
|
* Specifies the type of tool (e.g., 'function').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* Details of the function tool.
|
|
*/
|
|
function: {
|
|
/**
|
|
* The name of the function.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the function does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the function.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
)[];
|
|
/**
|
|
* If true, the response will be streamed back incrementally.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Controls the creativity of the AI's responses by adjusting how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
}
|
|
export type Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Output = {
|
|
/**
|
|
* The generated text response from the model
|
|
*/
|
|
response?: string;
|
|
/**
|
|
* An array of tool calls requests made during the response generation
|
|
*/
|
|
tool_calls?: {
|
|
/**
|
|
* The arguments passed to be passed to the tool call request
|
|
*/
|
|
arguments?: object;
|
|
/**
|
|
* The name of the tool to be called
|
|
*/
|
|
name?: string;
|
|
}[];
|
|
};
|
|
export declare abstract class Base_Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct {
|
|
inputs: Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Input;
|
|
postProcessedOutputs: Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Output;
|
|
}
|
|
export type Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Input =
|
|
| Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Prompt
|
|
| Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Messages
|
|
| Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Async_Batch;
|
|
export interface Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Prompt {
|
|
/**
|
|
* The input text prompt for the model to generate a response.
|
|
*/
|
|
prompt: string;
|
|
/**
|
|
* Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model.
|
|
*/
|
|
lora?: string;
|
|
response_format?: Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_JSON_Mode;
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
}
|
|
export interface Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_JSON_Mode {
|
|
type?: "json_object" | "json_schema";
|
|
json_schema?: unknown;
|
|
}
|
|
export interface Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Messages {
|
|
/**
|
|
* An array of message objects representing the conversation history.
|
|
*/
|
|
messages: {
|
|
/**
|
|
* The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool').
|
|
*/
|
|
role: string;
|
|
/**
|
|
* The content of the message as a string.
|
|
*/
|
|
content: string;
|
|
}[];
|
|
functions?: {
|
|
name: string;
|
|
code: string;
|
|
}[];
|
|
/**
|
|
* A list of tools available for the assistant to use.
|
|
*/
|
|
tools?: (
|
|
| {
|
|
/**
|
|
* The name of the tool. More descriptive the better.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the tool does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the tool.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
}
|
|
| {
|
|
/**
|
|
* Specifies the type of tool (e.g., 'function').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* Details of the function tool.
|
|
*/
|
|
function: {
|
|
/**
|
|
* The name of the function.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the function does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the function.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
)[];
|
|
response_format?: Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_JSON_Mode_1;
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
}
|
|
export interface Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_JSON_Mode_1 {
|
|
type?: "json_object" | "json_schema";
|
|
json_schema?: unknown;
|
|
}
|
|
export interface Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Async_Batch {
|
|
requests?: {
|
|
/**
|
|
* User-supplied reference. This field will be present in the response as well it can be used to reference the request and response. It's NOT validated to be unique.
|
|
*/
|
|
external_reference?: string;
|
|
/**
|
|
* Prompt for the text generation model
|
|
*/
|
|
prompt?: string;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
response_format?: Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_JSON_Mode_2;
|
|
}[];
|
|
}
|
|
export interface Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_JSON_Mode_2 {
|
|
type?: "json_object" | "json_schema";
|
|
json_schema?: unknown;
|
|
}
|
|
export type Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Output =
|
|
| {
|
|
/**
|
|
* The generated text response from the model
|
|
*/
|
|
response: string;
|
|
/**
|
|
* Usage statistics for the inference request
|
|
*/
|
|
usage?: {
|
|
/**
|
|
* Total number of tokens in input
|
|
*/
|
|
prompt_tokens?: number;
|
|
/**
|
|
* Total number of tokens in output
|
|
*/
|
|
completion_tokens?: number;
|
|
/**
|
|
* Total number of input and output tokens
|
|
*/
|
|
total_tokens?: number;
|
|
};
|
|
/**
|
|
* An array of tool calls requests made during the response generation
|
|
*/
|
|
tool_calls?: {
|
|
/**
|
|
* The arguments passed to be passed to the tool call request
|
|
*/
|
|
arguments?: object;
|
|
/**
|
|
* The name of the tool to be called
|
|
*/
|
|
name?: string;
|
|
}[];
|
|
}
|
|
| string
|
|
| Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_AsyncResponse;
|
|
export interface Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_AsyncResponse {
|
|
/**
|
|
* The async request id that can be used to obtain the results.
|
|
*/
|
|
request_id?: string;
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast {
|
|
inputs: Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Input;
|
|
postProcessedOutputs: Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Output;
|
|
}
|
|
export interface Ai_Cf_Meta_Llama_Guard_3_8B_Input {
|
|
/**
|
|
* An array of message objects representing the conversation history.
|
|
*/
|
|
messages: {
|
|
/**
|
|
* The role of the message sender must alternate between 'user' and 'assistant'.
|
|
*/
|
|
role: "user" | "assistant";
|
|
/**
|
|
* The content of the message as a string.
|
|
*/
|
|
content: string;
|
|
}[];
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Dictate the output format of the generated response.
|
|
*/
|
|
response_format?: {
|
|
/**
|
|
* Set to json_object to process and output generated text as JSON.
|
|
*/
|
|
type?: string;
|
|
};
|
|
}
|
|
export interface Ai_Cf_Meta_Llama_Guard_3_8B_Output {
|
|
response?:
|
|
| string
|
|
| {
|
|
/**
|
|
* Whether the conversation is safe or not.
|
|
*/
|
|
safe?: boolean;
|
|
/**
|
|
* A list of what hazard categories predicted for the conversation, if the conversation is deemed unsafe.
|
|
*/
|
|
categories?: string[];
|
|
};
|
|
/**
|
|
* Usage statistics for the inference request
|
|
*/
|
|
usage?: {
|
|
/**
|
|
* Total number of tokens in input
|
|
*/
|
|
prompt_tokens?: number;
|
|
/**
|
|
* Total number of tokens in output
|
|
*/
|
|
completion_tokens?: number;
|
|
/**
|
|
* Total number of input and output tokens
|
|
*/
|
|
total_tokens?: number;
|
|
};
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Meta_Llama_Guard_3_8B {
|
|
inputs: Ai_Cf_Meta_Llama_Guard_3_8B_Input;
|
|
postProcessedOutputs: Ai_Cf_Meta_Llama_Guard_3_8B_Output;
|
|
}
|
|
export interface Ai_Cf_Baai_Bge_Reranker_Base_Input {
|
|
/**
|
|
* A query you wish to perform against the provided contexts.
|
|
*/
|
|
/**
|
|
* Number of returned results starting with the best score.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* List of provided contexts. Note that the index in this array is important, as the response will refer to it.
|
|
*/
|
|
contexts: {
|
|
/**
|
|
* One of the provided context content
|
|
*/
|
|
text?: string;
|
|
}[];
|
|
}
|
|
export interface Ai_Cf_Baai_Bge_Reranker_Base_Output {
|
|
response?: {
|
|
/**
|
|
* Index of the context in the request
|
|
*/
|
|
id?: number;
|
|
/**
|
|
* Score of the context under the index.
|
|
*/
|
|
score?: number;
|
|
}[];
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Baai_Bge_Reranker_Base {
|
|
inputs: Ai_Cf_Baai_Bge_Reranker_Base_Input;
|
|
postProcessedOutputs: Ai_Cf_Baai_Bge_Reranker_Base_Output;
|
|
}
|
|
export type Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Input =
|
|
| Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Prompt
|
|
| Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Messages;
|
|
export interface Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Prompt {
|
|
/**
|
|
* The input text prompt for the model to generate a response.
|
|
*/
|
|
prompt: string;
|
|
/**
|
|
* Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model.
|
|
*/
|
|
lora?: string;
|
|
response_format?: Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_JSON_Mode;
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
}
|
|
export interface Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_JSON_Mode {
|
|
type?: "json_object" | "json_schema";
|
|
json_schema?: unknown;
|
|
}
|
|
export interface Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Messages {
|
|
/**
|
|
* An array of message objects representing the conversation history.
|
|
*/
|
|
messages: {
|
|
/**
|
|
* The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool').
|
|
*/
|
|
role: string;
|
|
/**
|
|
* The content of the message as a string.
|
|
*/
|
|
content: string;
|
|
}[];
|
|
functions?: {
|
|
name: string;
|
|
code: string;
|
|
}[];
|
|
/**
|
|
* A list of tools available for the assistant to use.
|
|
*/
|
|
tools?: (
|
|
| {
|
|
/**
|
|
* The name of the tool. More descriptive the better.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the tool does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the tool.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
}
|
|
| {
|
|
/**
|
|
* Specifies the type of tool (e.g., 'function').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* Details of the function tool.
|
|
*/
|
|
function: {
|
|
/**
|
|
* The name of the function.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the function does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the function.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
)[];
|
|
response_format?: Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_JSON_Mode_1;
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
}
|
|
export interface Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_JSON_Mode_1 {
|
|
type?: "json_object" | "json_schema";
|
|
json_schema?: unknown;
|
|
}
|
|
export type Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Output = {
|
|
/**
|
|
* The generated text response from the model
|
|
*/
|
|
response: string;
|
|
/**
|
|
* Usage statistics for the inference request
|
|
*/
|
|
usage?: {
|
|
/**
|
|
* Total number of tokens in input
|
|
*/
|
|
prompt_tokens?: number;
|
|
/**
|
|
* Total number of tokens in output
|
|
*/
|
|
completion_tokens?: number;
|
|
/**
|
|
* Total number of input and output tokens
|
|
*/
|
|
total_tokens?: number;
|
|
};
|
|
/**
|
|
* An array of tool calls requests made during the response generation
|
|
*/
|
|
tool_calls?: {
|
|
/**
|
|
* The arguments passed to be passed to the tool call request
|
|
*/
|
|
arguments?: object;
|
|
/**
|
|
* The name of the tool to be called
|
|
*/
|
|
name?: string;
|
|
}[];
|
|
};
|
|
export declare abstract class Base_Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct {
|
|
inputs: Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Input;
|
|
postProcessedOutputs: Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Output;
|
|
}
|
|
export type Ai_Cf_Qwen_Qwq_32B_Input = Ai_Cf_Qwen_Qwq_32B_Prompt | Ai_Cf_Qwen_Qwq_32B_Messages;
|
|
export interface Ai_Cf_Qwen_Qwq_32B_Prompt {
|
|
/**
|
|
* The input text prompt for the model to generate a response.
|
|
*/
|
|
prompt: string;
|
|
/**
|
|
* JSON schema that should be fulfilled for the response.
|
|
*/
|
|
guided_json?: object;
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
}
|
|
export interface Ai_Cf_Qwen_Qwq_32B_Messages {
|
|
/**
|
|
* An array of message objects representing the conversation history.
|
|
*/
|
|
messages: {
|
|
/**
|
|
* The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool').
|
|
*/
|
|
role?: string;
|
|
/**
|
|
* The tool call id. Must be supplied for tool calls for Mistral-3. If you don't know what to put here you can fall back to 000000001
|
|
*/
|
|
tool_call_id?: string;
|
|
content?:
|
|
| string
|
|
| {
|
|
/**
|
|
* Type of the content provided
|
|
*/
|
|
type?: string;
|
|
text?: string;
|
|
image_url?: {
|
|
/**
|
|
* image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted
|
|
*/
|
|
url?: string;
|
|
};
|
|
}[]
|
|
| {
|
|
/**
|
|
* Type of the content provided
|
|
*/
|
|
type?: string;
|
|
text?: string;
|
|
image_url?: {
|
|
/**
|
|
* image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted
|
|
*/
|
|
url?: string;
|
|
};
|
|
};
|
|
}[];
|
|
functions?: {
|
|
name: string;
|
|
code: string;
|
|
}[];
|
|
/**
|
|
* A list of tools available for the assistant to use.
|
|
*/
|
|
tools?: (
|
|
| {
|
|
/**
|
|
* The name of the tool. More descriptive the better.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the tool does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the tool.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
}
|
|
| {
|
|
/**
|
|
* Specifies the type of tool (e.g., 'function').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* Details of the function tool.
|
|
*/
|
|
function: {
|
|
/**
|
|
* The name of the function.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the function does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the function.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
)[];
|
|
/**
|
|
* JSON schema that should be fulfilled for the response.
|
|
*/
|
|
guided_json?: object;
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
}
|
|
export type Ai_Cf_Qwen_Qwq_32B_Output = {
|
|
/**
|
|
* The generated text response from the model
|
|
*/
|
|
response: string;
|
|
/**
|
|
* Usage statistics for the inference request
|
|
*/
|
|
usage?: {
|
|
/**
|
|
* Total number of tokens in input
|
|
*/
|
|
prompt_tokens?: number;
|
|
/**
|
|
* Total number of tokens in output
|
|
*/
|
|
completion_tokens?: number;
|
|
/**
|
|
* Total number of input and output tokens
|
|
*/
|
|
total_tokens?: number;
|
|
};
|
|
/**
|
|
* An array of tool calls requests made during the response generation
|
|
*/
|
|
tool_calls?: {
|
|
/**
|
|
* The arguments passed to be passed to the tool call request
|
|
*/
|
|
arguments?: object;
|
|
/**
|
|
* The name of the tool to be called
|
|
*/
|
|
name?: string;
|
|
}[];
|
|
};
|
|
export declare abstract class Base_Ai_Cf_Qwen_Qwq_32B {
|
|
inputs: Ai_Cf_Qwen_Qwq_32B_Input;
|
|
postProcessedOutputs: Ai_Cf_Qwen_Qwq_32B_Output;
|
|
}
|
|
export type Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Input =
|
|
| Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Prompt
|
|
| Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Messages;
|
|
export interface Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Prompt {
|
|
/**
|
|
* The input text prompt for the model to generate a response.
|
|
*/
|
|
prompt: string;
|
|
/**
|
|
* JSON schema that should be fulfilled for the response.
|
|
*/
|
|
guided_json?: object;
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
}
|
|
export interface Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Messages {
|
|
/**
|
|
* An array of message objects representing the conversation history.
|
|
*/
|
|
messages: {
|
|
/**
|
|
* The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool').
|
|
*/
|
|
role?: string;
|
|
/**
|
|
* The tool call id. Must be supplied for tool calls for Mistral-3. If you don't know what to put here you can fall back to 000000001
|
|
*/
|
|
tool_call_id?: string;
|
|
content?:
|
|
| string
|
|
| {
|
|
/**
|
|
* Type of the content provided
|
|
*/
|
|
type?: string;
|
|
text?: string;
|
|
image_url?: {
|
|
/**
|
|
* image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted
|
|
*/
|
|
url?: string;
|
|
};
|
|
}[]
|
|
| {
|
|
/**
|
|
* Type of the content provided
|
|
*/
|
|
type?: string;
|
|
text?: string;
|
|
image_url?: {
|
|
/**
|
|
* image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted
|
|
*/
|
|
url?: string;
|
|
};
|
|
};
|
|
}[];
|
|
functions?: {
|
|
name: string;
|
|
code: string;
|
|
}[];
|
|
/**
|
|
* A list of tools available for the assistant to use.
|
|
*/
|
|
tools?: (
|
|
| {
|
|
/**
|
|
* The name of the tool. More descriptive the better.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the tool does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the tool.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
}
|
|
| {
|
|
/**
|
|
* Specifies the type of tool (e.g., 'function').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* Details of the function tool.
|
|
*/
|
|
function: {
|
|
/**
|
|
* The name of the function.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the function does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the function.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
)[];
|
|
/**
|
|
* JSON schema that should be fulfilled for the response.
|
|
*/
|
|
guided_json?: object;
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
}
|
|
export type Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Output = {
|
|
/**
|
|
* The generated text response from the model
|
|
*/
|
|
response: string;
|
|
/**
|
|
* Usage statistics for the inference request
|
|
*/
|
|
usage?: {
|
|
/**
|
|
* Total number of tokens in input
|
|
*/
|
|
prompt_tokens?: number;
|
|
/**
|
|
* Total number of tokens in output
|
|
*/
|
|
completion_tokens?: number;
|
|
/**
|
|
* Total number of input and output tokens
|
|
*/
|
|
total_tokens?: number;
|
|
};
|
|
/**
|
|
* An array of tool calls requests made during the response generation
|
|
*/
|
|
tool_calls?: {
|
|
/**
|
|
* The arguments passed to be passed to the tool call request
|
|
*/
|
|
arguments?: object;
|
|
/**
|
|
* The name of the tool to be called
|
|
*/
|
|
name?: string;
|
|
}[];
|
|
};
|
|
export declare abstract class Base_Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct {
|
|
inputs: Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Input;
|
|
postProcessedOutputs: Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Output;
|
|
}
|
|
export type Ai_Cf_Google_Gemma_3_12B_It_Input =
|
|
| Ai_Cf_Google_Gemma_3_12B_It_Prompt
|
|
| Ai_Cf_Google_Gemma_3_12B_It_Messages;
|
|
export interface Ai_Cf_Google_Gemma_3_12B_It_Prompt {
|
|
/**
|
|
* The input text prompt for the model to generate a response.
|
|
*/
|
|
prompt: string;
|
|
/**
|
|
* JSON schema that should be fulfilled for the response.
|
|
*/
|
|
guided_json?: object;
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
}
|
|
export interface Ai_Cf_Google_Gemma_3_12B_It_Messages {
|
|
/**
|
|
* An array of message objects representing the conversation history.
|
|
*/
|
|
messages: {
|
|
/**
|
|
* The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool').
|
|
*/
|
|
role?: string;
|
|
content?:
|
|
| string
|
|
| {
|
|
/**
|
|
* Type of the content provided
|
|
*/
|
|
type?: string;
|
|
text?: string;
|
|
image_url?: {
|
|
/**
|
|
* image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted
|
|
*/
|
|
url?: string;
|
|
};
|
|
}[];
|
|
}[];
|
|
functions?: {
|
|
name: string;
|
|
code: string;
|
|
}[];
|
|
/**
|
|
* A list of tools available for the assistant to use.
|
|
*/
|
|
tools?: (
|
|
| {
|
|
/**
|
|
* The name of the tool. More descriptive the better.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the tool does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the tool.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
}
|
|
| {
|
|
/**
|
|
* Specifies the type of tool (e.g., 'function').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* Details of the function tool.
|
|
*/
|
|
function: {
|
|
/**
|
|
* The name of the function.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the function does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the function.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
)[];
|
|
/**
|
|
* JSON schema that should be fulfilled for the response.
|
|
*/
|
|
guided_json?: object;
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
}
|
|
export type Ai_Cf_Google_Gemma_3_12B_It_Output = {
|
|
/**
|
|
* The generated text response from the model
|
|
*/
|
|
response: string;
|
|
/**
|
|
* Usage statistics for the inference request
|
|
*/
|
|
usage?: {
|
|
/**
|
|
* Total number of tokens in input
|
|
*/
|
|
prompt_tokens?: number;
|
|
/**
|
|
* Total number of tokens in output
|
|
*/
|
|
completion_tokens?: number;
|
|
/**
|
|
* Total number of input and output tokens
|
|
*/
|
|
total_tokens?: number;
|
|
};
|
|
/**
|
|
* An array of tool calls requests made during the response generation
|
|
*/
|
|
tool_calls?: {
|
|
/**
|
|
* The arguments passed to be passed to the tool call request
|
|
*/
|
|
arguments?: object;
|
|
/**
|
|
* The name of the tool to be called
|
|
*/
|
|
name?: string;
|
|
}[];
|
|
};
|
|
export declare abstract class Base_Ai_Cf_Google_Gemma_3_12B_It {
|
|
inputs: Ai_Cf_Google_Gemma_3_12B_It_Input;
|
|
postProcessedOutputs: Ai_Cf_Google_Gemma_3_12B_It_Output;
|
|
}
|
|
export type Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Input =
|
|
| Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Prompt
|
|
| Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Messages
|
|
| Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Async_Batch;
|
|
export interface Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Prompt {
|
|
/**
|
|
* The input text prompt for the model to generate a response.
|
|
*/
|
|
prompt: string;
|
|
/**
|
|
* JSON schema that should be fulfilled for the response.
|
|
*/
|
|
guided_json?: object;
|
|
response_format?: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_JSON_Mode;
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
}
|
|
export interface Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_JSON_Mode {
|
|
type?: "json_object" | "json_schema";
|
|
json_schema?: unknown;
|
|
}
|
|
export interface Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Messages {
|
|
/**
|
|
* An array of message objects representing the conversation history.
|
|
*/
|
|
messages: {
|
|
/**
|
|
* The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool').
|
|
*/
|
|
role?: string;
|
|
/**
|
|
* The tool call id. If you don't know what to put here you can fall back to 000000001
|
|
*/
|
|
tool_call_id?: string;
|
|
content?:
|
|
| string
|
|
| {
|
|
/**
|
|
* Type of the content provided
|
|
*/
|
|
type?: string;
|
|
text?: string;
|
|
image_url?: {
|
|
/**
|
|
* image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted
|
|
*/
|
|
url?: string;
|
|
};
|
|
}[]
|
|
| {
|
|
/**
|
|
* Type of the content provided
|
|
*/
|
|
type?: string;
|
|
text?: string;
|
|
image_url?: {
|
|
/**
|
|
* image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted
|
|
*/
|
|
url?: string;
|
|
};
|
|
};
|
|
}[];
|
|
functions?: {
|
|
name: string;
|
|
code: string;
|
|
}[];
|
|
/**
|
|
* A list of tools available for the assistant to use.
|
|
*/
|
|
tools?: (
|
|
| {
|
|
/**
|
|
* The name of the tool. More descriptive the better.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the tool does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the tool.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
}
|
|
| {
|
|
/**
|
|
* Specifies the type of tool (e.g., 'function').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* Details of the function tool.
|
|
*/
|
|
function: {
|
|
/**
|
|
* The name of the function.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the function does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the function.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
)[];
|
|
response_format?: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_JSON_Mode;
|
|
/**
|
|
* JSON schema that should be fulfilled for the response.
|
|
*/
|
|
guided_json?: object;
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
}
|
|
export interface Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Async_Batch {
|
|
requests: (
|
|
| Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Prompt_Inner
|
|
| Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Messages_Inner
|
|
)[];
|
|
}
|
|
export interface Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Prompt_Inner {
|
|
/**
|
|
* The input text prompt for the model to generate a response.
|
|
*/
|
|
prompt: string;
|
|
/**
|
|
* JSON schema that should be fulfilled for the response.
|
|
*/
|
|
guided_json?: object;
|
|
response_format?: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_JSON_Mode;
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
}
|
|
export interface Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Messages_Inner {
|
|
/**
|
|
* An array of message objects representing the conversation history.
|
|
*/
|
|
messages: {
|
|
/**
|
|
* The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool').
|
|
*/
|
|
role?: string;
|
|
/**
|
|
* The tool call id. If you don't know what to put here you can fall back to 000000001
|
|
*/
|
|
tool_call_id?: string;
|
|
content?:
|
|
| string
|
|
| {
|
|
/**
|
|
* Type of the content provided
|
|
*/
|
|
type?: string;
|
|
text?: string;
|
|
image_url?: {
|
|
/**
|
|
* image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted
|
|
*/
|
|
url?: string;
|
|
};
|
|
}[]
|
|
| {
|
|
/**
|
|
* Type of the content provided
|
|
*/
|
|
type?: string;
|
|
text?: string;
|
|
image_url?: {
|
|
/**
|
|
* image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted
|
|
*/
|
|
url?: string;
|
|
};
|
|
};
|
|
}[];
|
|
functions?: {
|
|
name: string;
|
|
code: string;
|
|
}[];
|
|
/**
|
|
* A list of tools available for the assistant to use.
|
|
*/
|
|
tools?: (
|
|
| {
|
|
/**
|
|
* The name of the tool. More descriptive the better.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the tool does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the tool.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
}
|
|
| {
|
|
/**
|
|
* Specifies the type of tool (e.g., 'function').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* Details of the function tool.
|
|
*/
|
|
function: {
|
|
/**
|
|
* The name of the function.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the function does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the function.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
)[];
|
|
response_format?: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_JSON_Mode;
|
|
/**
|
|
* JSON schema that should be fulfilled for the response.
|
|
*/
|
|
guided_json?: object;
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
}
|
|
export type Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Output = {
|
|
/**
|
|
* The generated text response from the model
|
|
*/
|
|
response: string;
|
|
/**
|
|
* Usage statistics for the inference request
|
|
*/
|
|
usage?: {
|
|
/**
|
|
* Total number of tokens in input
|
|
*/
|
|
prompt_tokens?: number;
|
|
/**
|
|
* Total number of tokens in output
|
|
*/
|
|
completion_tokens?: number;
|
|
/**
|
|
* Total number of input and output tokens
|
|
*/
|
|
total_tokens?: number;
|
|
};
|
|
/**
|
|
* An array of tool calls requests made during the response generation
|
|
*/
|
|
tool_calls?: {
|
|
/**
|
|
* The tool call id.
|
|
*/
|
|
id?: string;
|
|
/**
|
|
* Specifies the type of tool (e.g., 'function').
|
|
*/
|
|
type?: string;
|
|
/**
|
|
* Details of the function tool.
|
|
*/
|
|
function?: {
|
|
/**
|
|
* The name of the tool to be called
|
|
*/
|
|
name?: string;
|
|
/**
|
|
* The arguments passed to be passed to the tool call request
|
|
*/
|
|
arguments?: object;
|
|
};
|
|
}[];
|
|
};
|
|
export declare abstract class Base_Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct {
|
|
inputs: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Input;
|
|
postProcessedOutputs: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Output;
|
|
}
|
|
export type Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Input =
|
|
| Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Prompt
|
|
| Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Messages
|
|
| Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Async_Batch;
|
|
export interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Prompt {
|
|
/**
|
|
* The input text prompt for the model to generate a response.
|
|
*/
|
|
prompt: string;
|
|
/**
|
|
* Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model.
|
|
*/
|
|
lora?: string;
|
|
response_format?: Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode;
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
}
|
|
export interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode {
|
|
type?: "json_object" | "json_schema";
|
|
json_schema?: unknown;
|
|
}
|
|
export interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Messages {
|
|
/**
|
|
* An array of message objects representing the conversation history.
|
|
*/
|
|
messages: {
|
|
/**
|
|
* The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool').
|
|
*/
|
|
role: string;
|
|
/**
|
|
* The content of the message as a string.
|
|
*/
|
|
content: string;
|
|
}[];
|
|
functions?: {
|
|
name: string;
|
|
code: string;
|
|
}[];
|
|
/**
|
|
* A list of tools available for the assistant to use.
|
|
*/
|
|
tools?: (
|
|
| {
|
|
/**
|
|
* The name of the tool. More descriptive the better.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the tool does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the tool.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
}
|
|
| {
|
|
/**
|
|
* Specifies the type of tool (e.g., 'function').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* Details of the function tool.
|
|
*/
|
|
function: {
|
|
/**
|
|
* The name of the function.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the function does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the function.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
)[];
|
|
response_format?: Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode_1;
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
}
|
|
export interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode_1 {
|
|
type?: "json_object" | "json_schema";
|
|
json_schema?: unknown;
|
|
}
|
|
export interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Async_Batch {
|
|
requests: (Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Prompt_1 | Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Messages_1)[];
|
|
}
|
|
export interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Prompt_1 {
|
|
/**
|
|
* The input text prompt for the model to generate a response.
|
|
*/
|
|
prompt: string;
|
|
/**
|
|
* Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model.
|
|
*/
|
|
lora?: string;
|
|
response_format?: Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode_2;
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
}
|
|
export interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode_2 {
|
|
type?: "json_object" | "json_schema";
|
|
json_schema?: unknown;
|
|
}
|
|
export interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Messages_1 {
|
|
/**
|
|
* An array of message objects representing the conversation history.
|
|
*/
|
|
messages: {
|
|
/**
|
|
* The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool').
|
|
*/
|
|
role: string;
|
|
/**
|
|
* The content of the message as a string.
|
|
*/
|
|
content: string;
|
|
}[];
|
|
functions?: {
|
|
name: string;
|
|
code: string;
|
|
}[];
|
|
/**
|
|
* A list of tools available for the assistant to use.
|
|
*/
|
|
tools?: (
|
|
| {
|
|
/**
|
|
* The name of the tool. More descriptive the better.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the tool does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the tool.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
}
|
|
| {
|
|
/**
|
|
* Specifies the type of tool (e.g., 'function').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* Details of the function tool.
|
|
*/
|
|
function: {
|
|
/**
|
|
* The name of the function.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the function does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the function.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
)[];
|
|
response_format?: Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode_3;
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
}
|
|
export interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode_3 {
|
|
type?: "json_object" | "json_schema";
|
|
json_schema?: unknown;
|
|
}
|
|
export type Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Output =
|
|
| Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Chat_Completion_Response
|
|
| Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Text_Completion_Response
|
|
| string
|
|
| Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_AsyncResponse;
|
|
export interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Chat_Completion_Response {
|
|
/**
|
|
* Unique identifier for the completion
|
|
*/
|
|
id?: string;
|
|
/**
|
|
* Object type identifier
|
|
*/
|
|
object?: "chat.completion";
|
|
/**
|
|
* Unix timestamp of when the completion was created
|
|
*/
|
|
created?: number;
|
|
/**
|
|
* Model used for the completion
|
|
*/
|
|
model?: string;
|
|
/**
|
|
* List of completion choices
|
|
*/
|
|
choices?: {
|
|
/**
|
|
* Index of the choice in the list
|
|
*/
|
|
index?: number;
|
|
/**
|
|
* The message generated by the model
|
|
*/
|
|
message?: {
|
|
/**
|
|
* Role of the message author
|
|
*/
|
|
role: string;
|
|
/**
|
|
* The content of the message
|
|
*/
|
|
content: string;
|
|
/**
|
|
* Internal reasoning content (if available)
|
|
*/
|
|
reasoning_content?: string;
|
|
/**
|
|
* Tool calls made by the assistant
|
|
*/
|
|
tool_calls?: {
|
|
/**
|
|
* Unique identifier for the tool call
|
|
*/
|
|
id: string;
|
|
/**
|
|
* Type of tool call
|
|
*/
|
|
type: "function";
|
|
function: {
|
|
/**
|
|
* Name of the function to call
|
|
*/
|
|
name: string;
|
|
/**
|
|
* JSON string of arguments for the function
|
|
*/
|
|
arguments: string;
|
|
};
|
|
}[];
|
|
};
|
|
/**
|
|
* Reason why the model stopped generating
|
|
*/
|
|
finish_reason?: string;
|
|
/**
|
|
* Stop reason (may be null)
|
|
*/
|
|
stop_reason?: string | null;
|
|
/**
|
|
* Log probabilities (if requested)
|
|
*/
|
|
logprobs?: {} | null;
|
|
}[];
|
|
/**
|
|
* Usage statistics for the inference request
|
|
*/
|
|
usage?: {
|
|
/**
|
|
* Total number of tokens in input
|
|
*/
|
|
prompt_tokens?: number;
|
|
/**
|
|
* Total number of tokens in output
|
|
*/
|
|
completion_tokens?: number;
|
|
/**
|
|
* Total number of input and output tokens
|
|
*/
|
|
total_tokens?: number;
|
|
};
|
|
/**
|
|
* Log probabilities for the prompt (if requested)
|
|
*/
|
|
prompt_logprobs?: {} | null;
|
|
}
|
|
export interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Text_Completion_Response {
|
|
/**
|
|
* Unique identifier for the completion
|
|
*/
|
|
id?: string;
|
|
/**
|
|
* Object type identifier
|
|
*/
|
|
object?: "text_completion";
|
|
/**
|
|
* Unix timestamp of when the completion was created
|
|
*/
|
|
created?: number;
|
|
/**
|
|
* Model used for the completion
|
|
*/
|
|
model?: string;
|
|
/**
|
|
* List of completion choices
|
|
*/
|
|
choices?: {
|
|
/**
|
|
* Index of the choice in the list
|
|
*/
|
|
index: number;
|
|
/**
|
|
* The generated text completion
|
|
*/
|
|
text: string;
|
|
/**
|
|
* Reason why the model stopped generating
|
|
*/
|
|
finish_reason: string;
|
|
/**
|
|
* Stop reason (may be null)
|
|
*/
|
|
stop_reason?: string | null;
|
|
/**
|
|
* Log probabilities (if requested)
|
|
*/
|
|
logprobs?: {} | null;
|
|
/**
|
|
* Log probabilities for the prompt (if requested)
|
|
*/
|
|
prompt_logprobs?: {} | null;
|
|
}[];
|
|
/**
|
|
* Usage statistics for the inference request
|
|
*/
|
|
usage?: {
|
|
/**
|
|
* Total number of tokens in input
|
|
*/
|
|
prompt_tokens?: number;
|
|
/**
|
|
* Total number of tokens in output
|
|
*/
|
|
completion_tokens?: number;
|
|
/**
|
|
* Total number of input and output tokens
|
|
*/
|
|
total_tokens?: number;
|
|
};
|
|
}
|
|
export interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_AsyncResponse {
|
|
/**
|
|
* The async request id that can be used to obtain the results.
|
|
*/
|
|
request_id?: string;
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8 {
|
|
inputs: Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Input;
|
|
postProcessedOutputs: Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Output;
|
|
}
|
|
export interface Ai_Cf_Deepgram_Nova_3_Input {
|
|
audio: {
|
|
body: object;
|
|
contentType: string;
|
|
};
|
|
/**
|
|
* Sets how the model will interpret strings submitted to the custom_topic param. When strict, the model will only return topics submitted using the custom_topic param. When extended, the model will return its own detected topics in addition to those submitted using the custom_topic param.
|
|
*/
|
|
custom_topic_mode?: "extended" | "strict";
|
|
/**
|
|
* Custom topics you want the model to detect within your input audio or text if present Submit up to 100
|
|
*/
|
|
custom_topic?: string;
|
|
/**
|
|
* Sets how the model will interpret intents submitted to the custom_intent param. When strict, the model will only return intents submitted using the custom_intent param. When extended, the model will return its own detected intents in addition those submitted using the custom_intents param
|
|
*/
|
|
custom_intent_mode?: "extended" | "strict";
|
|
/**
|
|
* Custom intents you want the model to detect within your input audio if present
|
|
*/
|
|
custom_intent?: string;
|
|
/**
|
|
* Identifies and extracts key entities from content in submitted audio
|
|
*/
|
|
detect_entities?: boolean;
|
|
/**
|
|
* Identifies the dominant language spoken in submitted audio
|
|
*/
|
|
detect_language?: boolean;
|
|
/**
|
|
* Recognize speaker changes. Each word in the transcript will be assigned a speaker number starting at 0
|
|
*/
|
|
diarize?: boolean;
|
|
/**
|
|
* Identify and extract key entities from content in submitted audio
|
|
*/
|
|
dictation?: boolean;
|
|
/**
|
|
* Specify the expected encoding of your submitted audio
|
|
*/
|
|
encoding?: "linear16" | "flac" | "mulaw" | "amr-nb" | "amr-wb" | "opus" | "speex" | "g729";
|
|
/**
|
|
* Arbitrary key-value pairs that are attached to the API response for usage in downstream processing
|
|
*/
|
|
extra?: string;
|
|
/**
|
|
* Filler Words can help transcribe interruptions in your audio, like 'uh' and 'um'
|
|
*/
|
|
filler_words?: boolean;
|
|
/**
|
|
* Key term prompting can boost or suppress specialized terminology and brands.
|
|
*/
|
|
keyterm?: string;
|
|
/**
|
|
* Keywords can boost or suppress specialized terminology and brands.
|
|
*/
|
|
keywords?: string;
|
|
/**
|
|
* The BCP-47 language tag that hints at the primary spoken language. Depending on the Model and API endpoint you choose only certain languages are available.
|
|
*/
|
|
language?: string;
|
|
/**
|
|
* Spoken measurements will be converted to their corresponding abbreviations.
|
|
*/
|
|
measurements?: boolean;
|
|
/**
|
|
* Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip.
|
|
*/
|
|
mip_opt_out?: boolean;
|
|
/**
|
|
* Mode of operation for the model representing broad area of topic that will be talked about in the supplied audio
|
|
*/
|
|
mode?: "general" | "medical" | "finance";
|
|
/**
|
|
* Transcribe each audio channel independently.
|
|
*/
|
|
multichannel?: boolean;
|
|
/**
|
|
* Numerals converts numbers from written format to numerical format.
|
|
*/
|
|
numerals?: boolean;
|
|
/**
|
|
* Splits audio into paragraphs to improve transcript readability.
|
|
*/
|
|
paragraphs?: boolean;
|
|
/**
|
|
* Profanity Filter looks for recognized profanity and converts it to the nearest recognized non-profane word or removes it from the transcript completely.
|
|
*/
|
|
profanity_filter?: boolean;
|
|
/**
|
|
* Add punctuation and capitalization to the transcript.
|
|
*/
|
|
punctuate?: boolean;
|
|
/**
|
|
* Redaction removes sensitive information from your transcripts.
|
|
*/
|
|
redact?: string;
|
|
/**
|
|
* Search for terms or phrases in submitted audio and replaces them.
|
|
*/
|
|
replace?: string;
|
|
/**
|
|
* Search for terms or phrases in submitted audio.
|
|
*/
|
|
search?: string;
|
|
/**
|
|
* Recognizes the sentiment throughout a transcript or text.
|
|
*/
|
|
sentiment?: boolean;
|
|
/**
|
|
* Apply formatting to transcript output. When set to true, additional formatting will be applied to transcripts to improve readability.
|
|
*/
|
|
smart_format?: boolean;
|
|
/**
|
|
* Detect topics throughout a transcript or text.
|
|
*/
|
|
topics?: boolean;
|
|
/**
|
|
* Segments speech into meaningful semantic units.
|
|
*/
|
|
utterances?: boolean;
|
|
/**
|
|
* Seconds to wait before detecting a pause between words in submitted audio.
|
|
*/
|
|
utt_split?: number;
|
|
/**
|
|
* The number of channels in the submitted audio
|
|
*/
|
|
channels?: number;
|
|
/**
|
|
* Specifies whether the streaming endpoint should provide ongoing transcription updates as more audio is received. When set to true, the endpoint sends continuous updates, meaning transcription results may evolve over time. Note: Supported only for webosockets.
|
|
*/
|
|
interim_results?: boolean;
|
|
/**
|
|
* Indicates how long model will wait to detect whether a speaker has finished speaking or pauses for a significant period of time. When set to a value, the streaming endpoint immediately finalizes the transcription for the processed time range and returns the transcript with a speech_final parameter set to true. Can also be set to false to disable endpointing
|
|
*/
|
|
endpointing?: string;
|
|
/**
|
|
* Indicates that speech has started. You'll begin receiving Speech Started messages upon speech starting. Note: Supported only for webosockets.
|
|
*/
|
|
vad_events?: boolean;
|
|
/**
|
|
* Indicates how long model will wait to send an UtteranceEnd message after a word has been transcribed. Use with interim_results. Note: Supported only for webosockets.
|
|
*/
|
|
utterance_end_ms?: boolean;
|
|
}
|
|
export interface Ai_Cf_Deepgram_Nova_3_Output {
|
|
results?: {
|
|
channels?: {
|
|
alternatives?: {
|
|
confidence?: number;
|
|
transcript?: string;
|
|
words?: {
|
|
confidence?: number;
|
|
end?: number;
|
|
start?: number;
|
|
word?: string;
|
|
}[];
|
|
}[];
|
|
}[];
|
|
summary?: {
|
|
result?: string;
|
|
short?: string;
|
|
};
|
|
sentiments?: {
|
|
segments?: {
|
|
text?: string;
|
|
start_word?: number;
|
|
end_word?: number;
|
|
sentiment?: string;
|
|
sentiment_score?: number;
|
|
}[];
|
|
average?: {
|
|
sentiment?: string;
|
|
sentiment_score?: number;
|
|
};
|
|
};
|
|
};
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Deepgram_Nova_3 {
|
|
inputs: Ai_Cf_Deepgram_Nova_3_Input;
|
|
postProcessedOutputs: Ai_Cf_Deepgram_Nova_3_Output;
|
|
}
|
|
export interface Ai_Cf_Qwen_Qwen3_Embedding_0_6B_Input {
|
|
queries?: string | string[];
|
|
/**
|
|
* Optional instruction for the task
|
|
*/
|
|
instruction?: string;
|
|
documents?: string | string[];
|
|
text?: string | string[];
|
|
}
|
|
export interface Ai_Cf_Qwen_Qwen3_Embedding_0_6B_Output {
|
|
data?: number[][];
|
|
shape?: number[];
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Qwen_Qwen3_Embedding_0_6B {
|
|
inputs: Ai_Cf_Qwen_Qwen3_Embedding_0_6B_Input;
|
|
postProcessedOutputs: Ai_Cf_Qwen_Qwen3_Embedding_0_6B_Output;
|
|
}
|
|
export type Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Input =
|
|
| {
|
|
/**
|
|
* readable stream with audio data and content-type specified for that data
|
|
*/
|
|
audio: {
|
|
body: object;
|
|
contentType: string;
|
|
};
|
|
/**
|
|
* type of data PCM data that's sent to the inference server as raw array
|
|
*/
|
|
dtype?: "uint8" | "float32" | "float64";
|
|
}
|
|
| {
|
|
/**
|
|
* base64 encoded audio data
|
|
*/
|
|
audio: string;
|
|
/**
|
|
* type of data PCM data that's sent to the inference server as raw array
|
|
*/
|
|
dtype?: "uint8" | "float32" | "float64";
|
|
};
|
|
export interface Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Output {
|
|
/**
|
|
* if true, end-of-turn was detected
|
|
*/
|
|
is_complete?: boolean;
|
|
/**
|
|
* probability of the end-of-turn detection
|
|
*/
|
|
probability?: number;
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Pipecat_Ai_Smart_Turn_V2 {
|
|
inputs: Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Input;
|
|
postProcessedOutputs: Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Output;
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Openai_Gpt_Oss_120B {
|
|
inputs: ResponsesInput;
|
|
postProcessedOutputs: ResponsesOutput;
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Openai_Gpt_Oss_20B {
|
|
inputs: ResponsesInput;
|
|
postProcessedOutputs: ResponsesOutput;
|
|
}
|
|
export interface Ai_Cf_Leonardo_Phoenix_1_0_Input {
|
|
/**
|
|
* A text description of the image you want to generate.
|
|
*/
|
|
prompt: string;
|
|
/**
|
|
* Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt
|
|
*/
|
|
guidance?: number;
|
|
/**
|
|
* Random seed for reproducibility of the image generation
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* The height of the generated image in pixels
|
|
*/
|
|
height?: number;
|
|
/**
|
|
* The width of the generated image in pixels
|
|
*/
|
|
width?: number;
|
|
/**
|
|
* The number of diffusion steps; higher values can improve quality but take longer
|
|
*/
|
|
num_steps?: number;
|
|
/**
|
|
* Specify what to exclude from the generated images
|
|
*/
|
|
negative_prompt?: string;
|
|
}
|
|
/**
|
|
* The generated image in JPEG format
|
|
*/
|
|
export type Ai_Cf_Leonardo_Phoenix_1_0_Output = string;
|
|
export declare abstract class Base_Ai_Cf_Leonardo_Phoenix_1_0 {
|
|
inputs: Ai_Cf_Leonardo_Phoenix_1_0_Input;
|
|
postProcessedOutputs: Ai_Cf_Leonardo_Phoenix_1_0_Output;
|
|
}
|
|
export interface Ai_Cf_Leonardo_Lucid_Origin_Input {
|
|
/**
|
|
* A text description of the image you want to generate.
|
|
*/
|
|
prompt: string;
|
|
/**
|
|
* Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt
|
|
*/
|
|
guidance?: number;
|
|
/**
|
|
* Random seed for reproducibility of the image generation
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* The height of the generated image in pixels
|
|
*/
|
|
height?: number;
|
|
/**
|
|
* The width of the generated image in pixels
|
|
*/
|
|
width?: number;
|
|
/**
|
|
* The number of diffusion steps; higher values can improve quality but take longer
|
|
*/
|
|
num_steps?: number;
|
|
/**
|
|
* The number of diffusion steps; higher values can improve quality but take longer
|
|
*/
|
|
steps?: number;
|
|
}
|
|
export interface Ai_Cf_Leonardo_Lucid_Origin_Output {
|
|
/**
|
|
* The generated image in Base64 format.
|
|
*/
|
|
image?: string;
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Leonardo_Lucid_Origin {
|
|
inputs: Ai_Cf_Leonardo_Lucid_Origin_Input;
|
|
postProcessedOutputs: Ai_Cf_Leonardo_Lucid_Origin_Output;
|
|
}
|
|
export interface Ai_Cf_Deepgram_Aura_1_Input {
|
|
/**
|
|
* Speaker used to produce the audio.
|
|
*/
|
|
speaker?:
|
|
| "angus"
|
|
| "asteria"
|
|
| "arcas"
|
|
| "orion"
|
|
| "orpheus"
|
|
| "athena"
|
|
| "luna"
|
|
| "zeus"
|
|
| "perseus"
|
|
| "helios"
|
|
| "hera"
|
|
| "stella";
|
|
/**
|
|
* Encoding of the output audio.
|
|
*/
|
|
encoding?: "linear16" | "flac" | "mulaw" | "alaw" | "mp3" | "opus" | "aac";
|
|
/**
|
|
* Container specifies the file format wrapper for the output audio. The available options depend on the encoding type..
|
|
*/
|
|
container?: "none" | "wav" | "ogg";
|
|
/**
|
|
* The text content to be converted to speech
|
|
*/
|
|
text: string;
|
|
/**
|
|
* Sample Rate specifies the sample rate for the output audio. Based on the encoding, different sample rates are supported. For some encodings, the sample rate is not configurable
|
|
*/
|
|
sample_rate?: number;
|
|
/**
|
|
* The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type.
|
|
*/
|
|
bit_rate?: number;
|
|
}
|
|
/**
|
|
* The generated audio in MP3 format
|
|
*/
|
|
export type Ai_Cf_Deepgram_Aura_1_Output = string;
|
|
export declare abstract class Base_Ai_Cf_Deepgram_Aura_1 {
|
|
inputs: Ai_Cf_Deepgram_Aura_1_Input;
|
|
postProcessedOutputs: Ai_Cf_Deepgram_Aura_1_Output;
|
|
}
|
|
export interface Ai_Cf_Ai4Bharat_Indictrans2_En_Indic_1B_Input {
|
|
/**
|
|
* Input text to translate. Can be a single string or a list of strings.
|
|
*/
|
|
text: string | string[];
|
|
/**
|
|
* Target language to translate to
|
|
*/
|
|
target_language:
|
|
| "asm_Beng"
|
|
| "awa_Deva"
|
|
| "ben_Beng"
|
|
| "bho_Deva"
|
|
| "brx_Deva"
|
|
| "doi_Deva"
|
|
| "eng_Latn"
|
|
| "gom_Deva"
|
|
| "gon_Deva"
|
|
| "guj_Gujr"
|
|
| "hin_Deva"
|
|
| "hne_Deva"
|
|
| "kan_Knda"
|
|
| "kas_Arab"
|
|
| "kas_Deva"
|
|
| "kha_Latn"
|
|
| "lus_Latn"
|
|
| "mag_Deva"
|
|
| "mai_Deva"
|
|
| "mal_Mlym"
|
|
| "mar_Deva"
|
|
| "mni_Beng"
|
|
| "mni_Mtei"
|
|
| "npi_Deva"
|
|
| "ory_Orya"
|
|
| "pan_Guru"
|
|
| "san_Deva"
|
|
| "sat_Olck"
|
|
| "snd_Arab"
|
|
| "snd_Deva"
|
|
| "tam_Taml"
|
|
| "tel_Telu"
|
|
| "urd_Arab"
|
|
| "unr_Deva";
|
|
}
|
|
export interface Ai_Cf_Ai4Bharat_Indictrans2_En_Indic_1B_Output {
|
|
/**
|
|
* Translated texts
|
|
*/
|
|
translations: string[];
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Ai4Bharat_Indictrans2_En_Indic_1B {
|
|
inputs: Ai_Cf_Ai4Bharat_Indictrans2_En_Indic_1B_Input;
|
|
postProcessedOutputs: Ai_Cf_Ai4Bharat_Indictrans2_En_Indic_1B_Output;
|
|
}
|
|
export type Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Input =
|
|
| Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Prompt
|
|
| Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Messages
|
|
| Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Async_Batch;
|
|
export interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Prompt {
|
|
/**
|
|
* The input text prompt for the model to generate a response.
|
|
*/
|
|
prompt: string;
|
|
/**
|
|
* Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model.
|
|
*/
|
|
lora?: string;
|
|
response_format?: Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode;
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
}
|
|
export interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode {
|
|
type?: "json_object" | "json_schema";
|
|
json_schema?: unknown;
|
|
}
|
|
export interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Messages {
|
|
/**
|
|
* An array of message objects representing the conversation history.
|
|
*/
|
|
messages: {
|
|
/**
|
|
* The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool').
|
|
*/
|
|
role: string;
|
|
/**
|
|
* The content of the message as a string.
|
|
*/
|
|
content: string;
|
|
}[];
|
|
functions?: {
|
|
name: string;
|
|
code: string;
|
|
}[];
|
|
/**
|
|
* A list of tools available for the assistant to use.
|
|
*/
|
|
tools?: (
|
|
| {
|
|
/**
|
|
* The name of the tool. More descriptive the better.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the tool does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the tool.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
}
|
|
| {
|
|
/**
|
|
* Specifies the type of tool (e.g., 'function').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* Details of the function tool.
|
|
*/
|
|
function: {
|
|
/**
|
|
* The name of the function.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the function does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the function.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
)[];
|
|
response_format?: Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode_1;
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
}
|
|
export interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode_1 {
|
|
type?: "json_object" | "json_schema";
|
|
json_schema?: unknown;
|
|
}
|
|
export interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Async_Batch {
|
|
requests: (
|
|
| Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Prompt_1
|
|
| Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Messages_1
|
|
)[];
|
|
}
|
|
export interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Prompt_1 {
|
|
/**
|
|
* The input text prompt for the model to generate a response.
|
|
*/
|
|
prompt: string;
|
|
/**
|
|
* Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model.
|
|
*/
|
|
lora?: string;
|
|
response_format?: Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode_2;
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
}
|
|
export interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode_2 {
|
|
type?: "json_object" | "json_schema";
|
|
json_schema?: unknown;
|
|
}
|
|
export interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Messages_1 {
|
|
/**
|
|
* An array of message objects representing the conversation history.
|
|
*/
|
|
messages: {
|
|
/**
|
|
* The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool').
|
|
*/
|
|
role: string;
|
|
/**
|
|
* The content of the message as a string.
|
|
*/
|
|
content: string;
|
|
}[];
|
|
functions?: {
|
|
name: string;
|
|
code: string;
|
|
}[];
|
|
/**
|
|
* A list of tools available for the assistant to use.
|
|
*/
|
|
tools?: (
|
|
| {
|
|
/**
|
|
* The name of the tool. More descriptive the better.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the tool does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the tool.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
}
|
|
| {
|
|
/**
|
|
* Specifies the type of tool (e.g., 'function').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* Details of the function tool.
|
|
*/
|
|
function: {
|
|
/**
|
|
* The name of the function.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* A brief description of what the function does.
|
|
*/
|
|
description: string;
|
|
/**
|
|
* Schema defining the parameters accepted by the function.
|
|
*/
|
|
parameters: {
|
|
/**
|
|
* The type of the parameters object (usually 'object').
|
|
*/
|
|
type: string;
|
|
/**
|
|
* List of required parameter names.
|
|
*/
|
|
required?: string[];
|
|
/**
|
|
* Definitions of each parameter.
|
|
*/
|
|
properties: {
|
|
[k: string]: {
|
|
/**
|
|
* The data type of the parameter.
|
|
*/
|
|
type: string;
|
|
/**
|
|
* A description of the expected parameter.
|
|
*/
|
|
description: string;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
)[];
|
|
response_format?: Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode_3;
|
|
/**
|
|
* If true, a chat template is not applied and you must adhere to the specific model's expected formatting.
|
|
*/
|
|
raw?: boolean;
|
|
/**
|
|
* If true, the response will be streamed back incrementally using SSE, Server Sent Events.
|
|
*/
|
|
stream?: boolean;
|
|
/**
|
|
* The maximum number of tokens to generate in the response.
|
|
*/
|
|
max_tokens?: number;
|
|
/**
|
|
* Controls the randomness of the output; higher values produce more random results.
|
|
*/
|
|
temperature?: number;
|
|
/**
|
|
* Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses.
|
|
*/
|
|
top_p?: number;
|
|
/**
|
|
* Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises.
|
|
*/
|
|
top_k?: number;
|
|
/**
|
|
* Random seed for reproducibility of the generation.
|
|
*/
|
|
seed?: number;
|
|
/**
|
|
* Penalty for repeated tokens; higher values discourage repetition.
|
|
*/
|
|
repetition_penalty?: number;
|
|
/**
|
|
* Decreases the likelihood of the model repeating the same lines verbatim.
|
|
*/
|
|
frequency_penalty?: number;
|
|
/**
|
|
* Increases the likelihood of the model introducing new topics.
|
|
*/
|
|
presence_penalty?: number;
|
|
}
|
|
export interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode_3 {
|
|
type?: "json_object" | "json_schema";
|
|
json_schema?: unknown;
|
|
}
|
|
export type Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Output =
|
|
| Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Chat_Completion_Response
|
|
| Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Text_Completion_Response
|
|
| string
|
|
| Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_AsyncResponse;
|
|
export interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Chat_Completion_Response {
|
|
/**
|
|
* Unique identifier for the completion
|
|
*/
|
|
id?: string;
|
|
/**
|
|
* Object type identifier
|
|
*/
|
|
object?: "chat.completion";
|
|
/**
|
|
* Unix timestamp of when the completion was created
|
|
*/
|
|
created?: number;
|
|
/**
|
|
* Model used for the completion
|
|
*/
|
|
model?: string;
|
|
/**
|
|
* List of completion choices
|
|
*/
|
|
choices?: {
|
|
/**
|
|
* Index of the choice in the list
|
|
*/
|
|
index?: number;
|
|
/**
|
|
* The message generated by the model
|
|
*/
|
|
message?: {
|
|
/**
|
|
* Role of the message author
|
|
*/
|
|
role: string;
|
|
/**
|
|
* The content of the message
|
|
*/
|
|
content: string;
|
|
/**
|
|
* Internal reasoning content (if available)
|
|
*/
|
|
reasoning_content?: string;
|
|
/**
|
|
* Tool calls made by the assistant
|
|
*/
|
|
tool_calls?: {
|
|
/**
|
|
* Unique identifier for the tool call
|
|
*/
|
|
id: string;
|
|
/**
|
|
* Type of tool call
|
|
*/
|
|
type: "function";
|
|
function: {
|
|
/**
|
|
* Name of the function to call
|
|
*/
|
|
name: string;
|
|
/**
|
|
* JSON string of arguments for the function
|
|
*/
|
|
arguments: string;
|
|
};
|
|
}[];
|
|
};
|
|
/**
|
|
* Reason why the model stopped generating
|
|
*/
|
|
finish_reason?: string;
|
|
/**
|
|
* Stop reason (may be null)
|
|
*/
|
|
stop_reason?: string | null;
|
|
/**
|
|
* Log probabilities (if requested)
|
|
*/
|
|
logprobs?: {} | null;
|
|
}[];
|
|
/**
|
|
* Usage statistics for the inference request
|
|
*/
|
|
usage?: {
|
|
/**
|
|
* Total number of tokens in input
|
|
*/
|
|
prompt_tokens?: number;
|
|
/**
|
|
* Total number of tokens in output
|
|
*/
|
|
completion_tokens?: number;
|
|
/**
|
|
* Total number of input and output tokens
|
|
*/
|
|
total_tokens?: number;
|
|
};
|
|
/**
|
|
* Log probabilities for the prompt (if requested)
|
|
*/
|
|
prompt_logprobs?: {} | null;
|
|
}
|
|
export interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Text_Completion_Response {
|
|
/**
|
|
* Unique identifier for the completion
|
|
*/
|
|
id?: string;
|
|
/**
|
|
* Object type identifier
|
|
*/
|
|
object?: "text_completion";
|
|
/**
|
|
* Unix timestamp of when the completion was created
|
|
*/
|
|
created?: number;
|
|
/**
|
|
* Model used for the completion
|
|
*/
|
|
model?: string;
|
|
/**
|
|
* List of completion choices
|
|
*/
|
|
choices?: {
|
|
/**
|
|
* Index of the choice in the list
|
|
*/
|
|
index: number;
|
|
/**
|
|
* The generated text completion
|
|
*/
|
|
text: string;
|
|
/**
|
|
* Reason why the model stopped generating
|
|
*/
|
|
finish_reason: string;
|
|
/**
|
|
* Stop reason (may be null)
|
|
*/
|
|
stop_reason?: string | null;
|
|
/**
|
|
* Log probabilities (if requested)
|
|
*/
|
|
logprobs?: {} | null;
|
|
/**
|
|
* Log probabilities for the prompt (if requested)
|
|
*/
|
|
prompt_logprobs?: {} | null;
|
|
}[];
|
|
/**
|
|
* Usage statistics for the inference request
|
|
*/
|
|
usage?: {
|
|
/**
|
|
* Total number of tokens in input
|
|
*/
|
|
prompt_tokens?: number;
|
|
/**
|
|
* Total number of tokens in output
|
|
*/
|
|
completion_tokens?: number;
|
|
/**
|
|
* Total number of input and output tokens
|
|
*/
|
|
total_tokens?: number;
|
|
};
|
|
}
|
|
export interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_AsyncResponse {
|
|
/**
|
|
* The async request id that can be used to obtain the results.
|
|
*/
|
|
request_id?: string;
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It {
|
|
inputs: Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Input;
|
|
postProcessedOutputs: Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Output;
|
|
}
|
|
export interface Ai_Cf_Pfnet_Plamo_Embedding_1B_Input {
|
|
/**
|
|
* Input text to embed. Can be a single string or a list of strings.
|
|
*/
|
|
text: string | string[];
|
|
}
|
|
export interface Ai_Cf_Pfnet_Plamo_Embedding_1B_Output {
|
|
/**
|
|
* Embedding vectors, where each vector is a list of floats.
|
|
*/
|
|
data: number[][];
|
|
/**
|
|
* Shape of the embedding data as [number_of_embeddings, embedding_dimension].
|
|
*
|
|
* @minItems 2
|
|
* @maxItems 2
|
|
*/
|
|
shape: [number, number];
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Pfnet_Plamo_Embedding_1B {
|
|
inputs: Ai_Cf_Pfnet_Plamo_Embedding_1B_Input;
|
|
postProcessedOutputs: Ai_Cf_Pfnet_Plamo_Embedding_1B_Output;
|
|
}
|
|
export interface Ai_Cf_Deepgram_Flux_Input {
|
|
/**
|
|
* Encoding of the audio stream. Currently only supports raw signed little-endian 16-bit PCM.
|
|
*/
|
|
encoding: "linear16";
|
|
/**
|
|
* Sample rate of the audio stream in Hz.
|
|
*/
|
|
sample_rate: string;
|
|
/**
|
|
* End-of-turn confidence required to fire an eager end-of-turn event. When set, enables EagerEndOfTurn and TurnResumed events. Valid Values 0.3 - 0.9.
|
|
*/
|
|
eager_eot_threshold?: string;
|
|
/**
|
|
* End-of-turn confidence required to finish a turn. Valid Values 0.5 - 0.9.
|
|
*/
|
|
eot_threshold?: string;
|
|
/**
|
|
* A turn will be finished when this much time has passed after speech, regardless of EOT confidence.
|
|
*/
|
|
eot_timeout_ms?: string;
|
|
/**
|
|
* Keyterm prompting can improve recognition of specialized terminology. Pass multiple keyterm query parameters to boost multiple keyterms.
|
|
*/
|
|
keyterm?: string;
|
|
/**
|
|
* Opts out requests from the Deepgram Model Improvement Program. Refer to Deepgram Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip
|
|
*/
|
|
mip_opt_out?: "true" | "false";
|
|
/**
|
|
* Label your requests for the purpose of identification during usage reporting
|
|
*/
|
|
tag?: string;
|
|
}
|
|
/**
|
|
* Output will be returned as websocket messages.
|
|
*/
|
|
export interface Ai_Cf_Deepgram_Flux_Output {
|
|
/**
|
|
* The unique identifier of the request (uuid)
|
|
*/
|
|
request_id?: string;
|
|
/**
|
|
* Starts at 0 and increments for each message the server sends to the client.
|
|
*/
|
|
sequence_id?: number;
|
|
/**
|
|
* The type of event being reported.
|
|
*/
|
|
event?: "Update" | "StartOfTurn" | "EagerEndOfTurn" | "TurnResumed" | "EndOfTurn";
|
|
/**
|
|
* The index of the current turn
|
|
*/
|
|
turn_index?: number;
|
|
/**
|
|
* Start time in seconds of the audio range that was transcribed
|
|
*/
|
|
audio_window_start?: number;
|
|
/**
|
|
* End time in seconds of the audio range that was transcribed
|
|
*/
|
|
audio_window_end?: number;
|
|
/**
|
|
* Text that was said over the course of the current turn
|
|
*/
|
|
transcript?: string;
|
|
/**
|
|
* The words in the transcript
|
|
*/
|
|
words?: {
|
|
/**
|
|
* The individual punctuated, properly-cased word from the transcript
|
|
*/
|
|
word: string;
|
|
/**
|
|
* Confidence that this word was transcribed correctly
|
|
*/
|
|
confidence: number;
|
|
}[];
|
|
/**
|
|
* Confidence that no more speech is coming in this turn
|
|
*/
|
|
end_of_turn_confidence?: number;
|
|
}
|
|
export declare abstract class Base_Ai_Cf_Deepgram_Flux {
|
|
inputs: Ai_Cf_Deepgram_Flux_Input;
|
|
postProcessedOutputs: Ai_Cf_Deepgram_Flux_Output;
|
|
}
|
|
export interface Ai_Cf_Deepgram_Aura_2_En_Input {
|
|
/**
|
|
* Speaker used to produce the audio.
|
|
*/
|
|
speaker?:
|
|
| "amalthea"
|
|
| "andromeda"
|
|
| "apollo"
|
|
| "arcas"
|
|
| "aries"
|
|
| "asteria"
|
|
| "athena"
|
|
| "atlas"
|
|
| "aurora"
|
|
| "callista"
|
|
| "cora"
|
|
| "cordelia"
|
|
| "delia"
|
|
| "draco"
|
|
| "electra"
|
|
| "harmonia"
|
|
| "helena"
|
|
| "hera"
|
|
| "hermes"
|
|
| "hyperion"
|
|
| "iris"
|
|
| "janus"
|
|
| "juno"
|
|
| "jupiter"
|
|
| "luna"
|
|
| "mars"
|
|
| "minerva"
|
|
| "neptune"
|
|
| "odysseus"
|
|
| "ophelia"
|
|
| "orion"
|
|
| "orpheus"
|
|
| "pandora"
|
|
| "phoebe"
|
|
| "pluto"
|
|
| "saturn"
|
|
| "thalia"
|
|
| "theia"
|
|
| "vesta"
|
|
| "zeus";
|
|
/**
|
|
* Encoding of the output audio.
|
|
*/
|
|
encoding?: "linear16" | "flac" | "mulaw" | "alaw" | "mp3" | "opus" | "aac";
|
|
/**
|
|
* Container specifies the file format wrapper for the output audio. The available options depend on the encoding type..
|
|
*/
|
|
container?: "none" | "wav" | "ogg";
|
|
/**
|
|
* The text content to be converted to speech
|
|
*/
|
|
text: string;
|
|
/**
|
|
* Sample Rate specifies the sample rate for the output audio. Based on the encoding, different sample rates are supported. For some encodings, the sample rate is not configurable
|
|
*/
|
|
sample_rate?: number;
|
|
/**
|
|
* The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type.
|
|
*/
|
|
bit_rate?: number;
|
|
}
|
|
/**
|
|
* The generated audio in MP3 format
|
|
*/
|
|
export type Ai_Cf_Deepgram_Aura_2_En_Output = string;
|
|
export declare abstract class Base_Ai_Cf_Deepgram_Aura_2_En {
|
|
inputs: Ai_Cf_Deepgram_Aura_2_En_Input;
|
|
postProcessedOutputs: Ai_Cf_Deepgram_Aura_2_En_Output;
|
|
}
|
|
export interface Ai_Cf_Deepgram_Aura_2_Es_Input {
|
|
/**
|
|
* Speaker used to produce the audio.
|
|
*/
|
|
speaker?:
|
|
| "sirio"
|
|
| "nestor"
|
|
| "carina"
|
|
| "celeste"
|
|
| "alvaro"
|
|
| "diana"
|
|
| "aquila"
|
|
| "selena"
|
|
| "estrella"
|
|
| "javier";
|
|
/**
|
|
* Encoding of the output audio.
|
|
*/
|
|
encoding?: "linear16" | "flac" | "mulaw" | "alaw" | "mp3" | "opus" | "aac";
|
|
/**
|
|
* Container specifies the file format wrapper for the output audio. The available options depend on the encoding type..
|
|
*/
|
|
container?: "none" | "wav" | "ogg";
|
|
/**
|
|
* The text content to be converted to speech
|
|
*/
|
|
text: string;
|
|
/**
|
|
* Sample Rate specifies the sample rate for the output audio. Based on the encoding, different sample rates are supported. For some encodings, the sample rate is not configurable
|
|
*/
|
|
sample_rate?: number;
|
|
/**
|
|
* The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type.
|
|
*/
|
|
bit_rate?: number;
|
|
}
|
|
/**
|
|
* The generated audio in MP3 format
|
|
*/
|
|
export type Ai_Cf_Deepgram_Aura_2_Es_Output = string;
|
|
export declare abstract class Base_Ai_Cf_Deepgram_Aura_2_Es {
|
|
inputs: Ai_Cf_Deepgram_Aura_2_Es_Input;
|
|
postProcessedOutputs: Ai_Cf_Deepgram_Aura_2_Es_Output;
|
|
}
|
|
export interface AiModels {
|
|
"@cf/huggingface/distilbert-sst-2-int8": BaseAiTextClassification;
|
|
"@cf/stabilityai/stable-diffusion-xl-base-1.0": BaseAiTextToImage;
|
|
"@cf/runwayml/stable-diffusion-v1-5-inpainting": BaseAiTextToImage;
|
|
"@cf/runwayml/stable-diffusion-v1-5-img2img": BaseAiTextToImage;
|
|
"@cf/lykon/dreamshaper-8-lcm": BaseAiTextToImage;
|
|
"@cf/bytedance/stable-diffusion-xl-lightning": BaseAiTextToImage;
|
|
"@cf/myshell-ai/melotts": BaseAiTextToSpeech;
|
|
"@cf/google/embeddinggemma-300m": BaseAiTextEmbeddings;
|
|
"@cf/microsoft/resnet-50": BaseAiImageClassification;
|
|
"@cf/meta/llama-2-7b-chat-int8": BaseAiTextGeneration;
|
|
"@cf/mistral/mistral-7b-instruct-v0.1": BaseAiTextGeneration;
|
|
"@cf/meta/llama-2-7b-chat-fp16": BaseAiTextGeneration;
|
|
"@hf/thebloke/llama-2-13b-chat-awq": BaseAiTextGeneration;
|
|
"@hf/thebloke/mistral-7b-instruct-v0.1-awq": BaseAiTextGeneration;
|
|
"@hf/thebloke/zephyr-7b-beta-awq": BaseAiTextGeneration;
|
|
"@hf/thebloke/openhermes-2.5-mistral-7b-awq": BaseAiTextGeneration;
|
|
"@hf/thebloke/neural-chat-7b-v3-1-awq": BaseAiTextGeneration;
|
|
"@hf/thebloke/llamaguard-7b-awq": BaseAiTextGeneration;
|
|
"@hf/thebloke/deepseek-coder-6.7b-base-awq": BaseAiTextGeneration;
|
|
"@hf/thebloke/deepseek-coder-6.7b-instruct-awq": BaseAiTextGeneration;
|
|
"@cf/deepseek-ai/deepseek-math-7b-instruct": BaseAiTextGeneration;
|
|
"@cf/defog/sqlcoder-7b-2": BaseAiTextGeneration;
|
|
"@cf/openchat/openchat-3.5-0106": BaseAiTextGeneration;
|
|
"@cf/tiiuae/falcon-7b-instruct": BaseAiTextGeneration;
|
|
"@cf/thebloke/discolm-german-7b-v1-awq": BaseAiTextGeneration;
|
|
"@cf/qwen/qwen1.5-0.5b-chat": BaseAiTextGeneration;
|
|
"@cf/qwen/qwen1.5-7b-chat-awq": BaseAiTextGeneration;
|
|
"@cf/qwen/qwen1.5-14b-chat-awq": BaseAiTextGeneration;
|
|
"@cf/tinyllama/tinyllama-1.1b-chat-v1.0": BaseAiTextGeneration;
|
|
"@cf/microsoft/phi-2": BaseAiTextGeneration;
|
|
"@cf/qwen/qwen1.5-1.8b-chat": BaseAiTextGeneration;
|
|
"@cf/mistral/mistral-7b-instruct-v0.2-lora": BaseAiTextGeneration;
|
|
"@hf/nousresearch/hermes-2-pro-mistral-7b": BaseAiTextGeneration;
|
|
"@hf/nexusflow/starling-lm-7b-beta": BaseAiTextGeneration;
|
|
"@hf/google/gemma-7b-it": BaseAiTextGeneration;
|
|
"@cf/meta-llama/llama-2-7b-chat-hf-lora": BaseAiTextGeneration;
|
|
"@cf/google/gemma-2b-it-lora": BaseAiTextGeneration;
|
|
"@cf/google/gemma-7b-it-lora": BaseAiTextGeneration;
|
|
"@hf/mistral/mistral-7b-instruct-v0.2": BaseAiTextGeneration;
|
|
"@cf/meta/llama-3-8b-instruct": BaseAiTextGeneration;
|
|
"@cf/fblgit/una-cybertron-7b-v2-bf16": BaseAiTextGeneration;
|
|
"@cf/meta/llama-3-8b-instruct-awq": BaseAiTextGeneration;
|
|
"@cf/meta/llama-3.1-8b-instruct-fp8": BaseAiTextGeneration;
|
|
"@cf/meta/llama-3.1-8b-instruct-awq": BaseAiTextGeneration;
|
|
"@cf/meta/llama-3.2-3b-instruct": BaseAiTextGeneration;
|
|
"@cf/meta/llama-3.2-1b-instruct": BaseAiTextGeneration;
|
|
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b": BaseAiTextGeneration;
|
|
"@cf/ibm-granite/granite-4.0-h-micro": BaseAiTextGeneration;
|
|
"@cf/facebook/bart-large-cnn": BaseAiSummarization;
|
|
"@cf/llava-hf/llava-1.5-7b-hf": BaseAiImageToText;
|
|
"@cf/baai/bge-base-en-v1.5": Base_Ai_Cf_Baai_Bge_Base_En_V1_5;
|
|
"@cf/openai/whisper": Base_Ai_Cf_Openai_Whisper;
|
|
"@cf/meta/m2m100-1.2b": Base_Ai_Cf_Meta_M2M100_1_2B;
|
|
"@cf/baai/bge-small-en-v1.5": Base_Ai_Cf_Baai_Bge_Small_En_V1_5;
|
|
"@cf/baai/bge-large-en-v1.5": Base_Ai_Cf_Baai_Bge_Large_En_V1_5;
|
|
"@cf/unum/uform-gen2-qwen-500m": Base_Ai_Cf_Unum_Uform_Gen2_Qwen_500M;
|
|
"@cf/openai/whisper-tiny-en": Base_Ai_Cf_Openai_Whisper_Tiny_En;
|
|
"@cf/openai/whisper-large-v3-turbo": Base_Ai_Cf_Openai_Whisper_Large_V3_Turbo;
|
|
"@cf/baai/bge-m3": Base_Ai_Cf_Baai_Bge_M3;
|
|
"@cf/black-forest-labs/flux-1-schnell": Base_Ai_Cf_Black_Forest_Labs_Flux_1_Schnell;
|
|
"@cf/meta/llama-3.2-11b-vision-instruct": Base_Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct;
|
|
"@cf/meta/llama-3.3-70b-instruct-fp8-fast": Base_Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast;
|
|
"@cf/meta/llama-guard-3-8b": Base_Ai_Cf_Meta_Llama_Guard_3_8B;
|
|
"@cf/baai/bge-reranker-base": Base_Ai_Cf_Baai_Bge_Reranker_Base;
|
|
"@cf/qwen/qwen2.5-coder-32b-instruct": Base_Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct;
|
|
"@cf/qwen/qwq-32b": Base_Ai_Cf_Qwen_Qwq_32B;
|
|
"@cf/mistralai/mistral-small-3.1-24b-instruct": Base_Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct;
|
|
"@cf/google/gemma-3-12b-it": Base_Ai_Cf_Google_Gemma_3_12B_It;
|
|
"@cf/meta/llama-4-scout-17b-16e-instruct": Base_Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct;
|
|
"@cf/qwen/qwen3-30b-a3b-fp8": Base_Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8;
|
|
"@cf/deepgram/nova-3": Base_Ai_Cf_Deepgram_Nova_3;
|
|
"@cf/qwen/qwen3-embedding-0.6b": Base_Ai_Cf_Qwen_Qwen3_Embedding_0_6B;
|
|
"@cf/pipecat-ai/smart-turn-v2": Base_Ai_Cf_Pipecat_Ai_Smart_Turn_V2;
|
|
"@cf/openai/gpt-oss-120b": Base_Ai_Cf_Openai_Gpt_Oss_120B;
|
|
"@cf/openai/gpt-oss-20b": Base_Ai_Cf_Openai_Gpt_Oss_20B;
|
|
"@cf/leonardo/phoenix-1.0": Base_Ai_Cf_Leonardo_Phoenix_1_0;
|
|
"@cf/leonardo/lucid-origin": Base_Ai_Cf_Leonardo_Lucid_Origin;
|
|
"@cf/deepgram/aura-1": Base_Ai_Cf_Deepgram_Aura_1;
|
|
"@cf/ai4bharat/indictrans2-en-indic-1B": Base_Ai_Cf_Ai4Bharat_Indictrans2_En_Indic_1B;
|
|
"@cf/aisingapore/gemma-sea-lion-v4-27b-it": Base_Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It;
|
|
"@cf/pfnet/plamo-embedding-1b": Base_Ai_Cf_Pfnet_Plamo_Embedding_1B;
|
|
"@cf/deepgram/flux": Base_Ai_Cf_Deepgram_Flux;
|
|
"@cf/deepgram/aura-2-en": Base_Ai_Cf_Deepgram_Aura_2_En;
|
|
"@cf/deepgram/aura-2-es": Base_Ai_Cf_Deepgram_Aura_2_Es;
|
|
}
|
|
export type AiOptions = {
|
|
/**
|
|
* Send requests as an asynchronous batch job, only works for supported models
|
|
* https://developers.cloudflare.com/workers-ai/features/batch-api
|
|
*/
|
|
queueRequest?: boolean;
|
|
/**
|
|
* Establish websocket connections, only works for supported models
|
|
*/
|
|
websocket?: boolean;
|
|
/**
|
|
* Tag your requests to group and view them in Cloudflare dashboard.
|
|
*
|
|
* Rules:
|
|
* Tags must only contain letters, numbers, and the symbols: : - . / @
|
|
* Each tag can have maximum 50 characters.
|
|
* Maximum 5 tags are allowed each request.
|
|
* Duplicate tags will removed.
|
|
*/
|
|
tags?: string[];
|
|
gateway?: GatewayOptions;
|
|
returnRawResponse?: boolean;
|
|
prefix?: string;
|
|
extraHeaders?: object;
|
|
};
|
|
export type AiModelsSearchParams = {
|
|
author?: string;
|
|
hide_experimental?: boolean;
|
|
page?: number;
|
|
per_page?: number;
|
|
search?: string;
|
|
source?: number;
|
|
task?: string;
|
|
};
|
|
export type AiModelsSearchObject = {
|
|
id: string;
|
|
source: number;
|
|
name: string;
|
|
description: string;
|
|
task: {
|
|
id: string;
|
|
name: string;
|
|
description: string;
|
|
};
|
|
tags: string[];
|
|
properties: {
|
|
property_id: string;
|
|
value: string;
|
|
}[];
|
|
};
|
|
export interface InferenceUpstreamError extends Error {}
|
|
export interface AiInternalError extends Error {}
|
|
export type AiModelListType = Record<string, any>;
|
|
export declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
aiGatewayLogId: string | null;
|
|
gateway(gatewayId: string): AiGateway;
|
|
|
|
/**
|
|
* Access the AI Search API for managing AI-powered search instances.
|
|
*
|
|
* This is the new API that replaces AutoRAG with better namespace separation:
|
|
* - Account-level operations: \`list()\`, \`create()\`
|
|
* - Instance-level operations: \`get(id).search()\`, \`get(id).chatCompletions()\`, \`get(id).delete()\`
|
|
*
|
|
* @example
|
|
* \`\`\`typescript
|
|
* // List all AI Search instances
|
|
* const instances = await env.AI.aiSearch.list();
|
|
*
|
|
* // Search an instance
|
|
* const results = await env.AI.aiSearch.get('my-search').search({
|
|
* messages: [{ role: 'user', content: 'What is the policy?' }],
|
|
* ai_search_options: {
|
|
* retrieval: { max_num_results: 10 }
|
|
* }
|
|
* });
|
|
*
|
|
* // Generate chat completions with AI Search context
|
|
* const response = await env.AI.aiSearch.get('my-search').chatCompletions({
|
|
* messages: [{ role: 'user', content: 'What is the policy?' }],
|
|
* model: '@cf/meta/llama-3.3-70b-instruct-fp8-fast'
|
|
* });
|
|
* \`\`\`
|
|
*/
|
|
aiSearch(): AiSearchAccountService;
|
|
|
|
/**
|
|
* @deprecated AutoRAG has been replaced by AI Search.
|
|
* Use \`env.AI.aiSearch\` instead for better API design and new features.
|
|
*
|
|
* Migration guide:
|
|
* - \`env.AI.autorag().list()\` \u2192 \`env.AI.aiSearch.list()\`
|
|
* - \`env.AI.autorag('id').search({ query: '...' })\` \u2192 \`env.AI.aiSearch.get('id').search({ messages: [{ role: 'user', content: '...' }] })\`
|
|
* - \`env.AI.autorag('id').aiSearch(...)\` \u2192 \`env.AI.aiSearch.get('id').chatCompletions(...)\`
|
|
*
|
|
* Note: The old API continues to work for backwards compatibility, but new projects should use AI Search.
|
|
*
|
|
* @see AiSearchAccountService
|
|
* @param autoragId Optional instance ID (omit for account-level operations)
|
|
*/
|
|
autorag(autoragId: string): AutoRAG;
|
|
run<Name extends keyof AiModelList, Options extends AiOptions, InputOptions extends AiModelList[Name]["inputs"]>(
|
|
model: Name,
|
|
inputs: InputOptions,
|
|
options?: Options,
|
|
): Promise<
|
|
Options extends
|
|
| {
|
|
returnRawResponse: true;
|
|
}
|
|
| {
|
|
websocket: true;
|
|
}
|
|
? Response
|
|
: InputOptions extends {
|
|
stream: true;
|
|
}
|
|
? ReadableStream
|
|
: AiModelList[Name]["postProcessedOutputs"]
|
|
>;
|
|
models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
|
|
toMarkdown(): ToMarkdownService;
|
|
toMarkdown(
|
|
files: MarkdownDocument[],
|
|
options?: ConversionRequestOptions,
|
|
): Promise<ConversionResponse[]>;
|
|
toMarkdown(
|
|
files: MarkdownDocument,
|
|
options?: ConversionRequestOptions,
|
|
): Promise<ConversionResponse>;
|
|
}
|
|
|
|
type GatewayRetries = {
|
|
maxAttempts?: 1 | 2 | 3 | 4 | 5;
|
|
retryDelayMs?: number;
|
|
backoff?: 'constant' | 'linear' | 'exponential';
|
|
};
|
|
|
|
export type GatewayOptions = {
|
|
id: string;
|
|
cacheKey?: string;
|
|
cacheTtl?: number;
|
|
skipCache?: boolean;
|
|
metadata?: Record<string, number | string | boolean | null | bigint>;
|
|
collectLog?: boolean;
|
|
eventId?: string;
|
|
requestTimeoutMs?: number;
|
|
retries?: GatewayRetries;
|
|
};
|
|
|
|
export type UniversalGatewayOptions = Exclude<GatewayOptions, 'id'> & {
|
|
/**
|
|
** @deprecated
|
|
*/
|
|
id?: string;
|
|
};
|
|
|
|
export type AiGatewayPatchLog = {
|
|
score?: number | null;
|
|
feedback?: -1 | 1 | null;
|
|
metadata?: Record<string, number | string | boolean | null | bigint> | null;
|
|
};
|
|
|
|
export type AiGatewayLog = {
|
|
id: string;
|
|
provider: string;
|
|
model: string;
|
|
model_type?: string;
|
|
path: string;
|
|
duration: number;
|
|
request_type?: string;
|
|
request_content_type?: string;
|
|
status_code: number;
|
|
response_content_type?: string;
|
|
success: boolean;
|
|
cached: boolean;
|
|
tokens_in?: number;
|
|
tokens_out?: number;
|
|
metadata?: Record<string, number | string | boolean | null | bigint>;
|
|
step?: number;
|
|
cost?: number;
|
|
custom_cost?: boolean;
|
|
request_size: number;
|
|
request_head?: string;
|
|
request_head_complete: boolean;
|
|
response_size: number;
|
|
response_head?: string;
|
|
response_head_complete: boolean;
|
|
created_at: Date;
|
|
};
|
|
|
|
export type AIGatewayProviders =
|
|
| 'workers-ai'
|
|
| 'anthropic'
|
|
| 'aws-bedrock'
|
|
| 'azure-openai'
|
|
| 'google-vertex-ai'
|
|
| 'huggingface'
|
|
| 'openai'
|
|
| 'perplexity-ai'
|
|
| 'replicate'
|
|
| 'groq'
|
|
| 'cohere'
|
|
| 'google-ai-studio'
|
|
| 'mistral'
|
|
| 'grok'
|
|
| 'openrouter'
|
|
| 'deepseek'
|
|
| 'cerebras'
|
|
| 'cartesia'
|
|
| 'elevenlabs'
|
|
| 'adobe-firefly';
|
|
|
|
export type AIGatewayHeaders = {
|
|
'cf-aig-metadata':
|
|
| Record<string, number | string | boolean | null | bigint>
|
|
| string;
|
|
'cf-aig-custom-cost':
|
|
| { per_token_in?: number; per_token_out?: number }
|
|
| { total_cost?: number }
|
|
| string;
|
|
'cf-aig-cache-ttl': number | string;
|
|
'cf-aig-skip-cache': boolean | string;
|
|
'cf-aig-cache-key': string;
|
|
'cf-aig-event-id': string;
|
|
'cf-aig-request-timeout': number | string;
|
|
'cf-aig-max-attempts': number | string;
|
|
'cf-aig-retry-delay': number | string;
|
|
'cf-aig-backoff': string;
|
|
'cf-aig-collect-log': boolean | string;
|
|
Authorization: string;
|
|
'Content-Type': string;
|
|
[key: string]: string | number | boolean | object;
|
|
};
|
|
|
|
export type AIGatewayUniversalRequest = {
|
|
provider: AIGatewayProviders | string; // eslint-disable-line
|
|
endpoint: string;
|
|
headers: Partial<AIGatewayHeaders>;
|
|
query: unknown;
|
|
};
|
|
|
|
export interface AiGatewayInternalError extends Error {}
|
|
export interface AiGatewayLogNotFound extends Error {}
|
|
|
|
export declare abstract class AiGateway {
|
|
patchLog(logId: string, data: AiGatewayPatchLog): Promise<void>;
|
|
getLog(logId: string): Promise<AiGatewayLog>;
|
|
run(
|
|
data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
|
|
options?: { gateway?: UniversalGatewayOptions; extraHeaders?: object }
|
|
): Promise<Response>;
|
|
getUrl(provider?: AIGatewayProviders | string): Promise<string>; // eslint-disable-line
|
|
}
|
|
|
|
/**
|
|
* @deprecated AutoRAG has been replaced by AI Search. Use AiSearchInternalError instead.
|
|
* @see AiSearchInternalError
|
|
*/
|
|
export interface AutoRAGInternalError extends Error {}
|
|
|
|
/**
|
|
* @deprecated AutoRAG has been replaced by AI Search. Use AiSearchNotFoundError instead.
|
|
* @see AiSearchNotFoundError
|
|
*/
|
|
export interface AutoRAGNotFoundError extends Error {}
|
|
|
|
/**
|
|
* @deprecated This error type is no longer used in the AI Search API.
|
|
*/
|
|
export interface AutoRAGUnauthorizedError extends Error {}
|
|
|
|
/**
|
|
* @deprecated AutoRAG has been replaced by AI Search. Use AiSearchNameNotSetError instead.
|
|
* @see AiSearchNameNotSetError
|
|
*/
|
|
export interface AutoRAGNameNotSetError extends Error {}
|
|
|
|
/**
|
|
* @deprecated AutoRAG has been replaced by AI Search.
|
|
* Use AiSearchSearchRequest with the new API instead.
|
|
* @see AiSearchSearchRequest
|
|
*/
|
|
export type AutoRagSearchRequest = {
|
|
query: string;
|
|
filters?: CompoundFilter | ComparisonFilter;
|
|
max_num_results?: number;
|
|
ranking_options?: {
|
|
ranker?: string;
|
|
score_threshold?: number;
|
|
};
|
|
reranking?: {
|
|
enabled?: boolean;
|
|
model?: string;
|
|
};
|
|
rewrite_query?: boolean;
|
|
};
|
|
|
|
/**
|
|
* @deprecated AutoRAG has been replaced by AI Search.
|
|
* Use AiSearchChatCompletionsRequest with the new API instead.
|
|
* @see AiSearchChatCompletionsRequest
|
|
*/
|
|
export type AutoRagAiSearchRequest = AutoRagSearchRequest & {
|
|
stream?: boolean;
|
|
system_prompt?: string;
|
|
};
|
|
|
|
/**
|
|
* @deprecated AutoRAG has been replaced by AI Search.
|
|
* Use AiSearchChatCompletionsRequest with stream: true instead.
|
|
* @see AiSearchChatCompletionsRequest
|
|
*/
|
|
export type AutoRagAiSearchRequestStreaming = Omit<
|
|
AutoRagAiSearchRequest,
|
|
'stream'
|
|
> & {
|
|
stream: true;
|
|
};
|
|
|
|
/**
|
|
* @deprecated AutoRAG has been replaced by AI Search.
|
|
* Use AiSearchSearchResponse with the new API instead.
|
|
* @see AiSearchSearchResponse
|
|
*/
|
|
export type AutoRagSearchResponse = {
|
|
object: 'vector_store.search_results.page';
|
|
search_query: string;
|
|
data: {
|
|
file_id: string;
|
|
filename: string;
|
|
score: number;
|
|
attributes: Record<string, string | number | boolean | null>;
|
|
content: {
|
|
type: 'text';
|
|
text: string;
|
|
}[];
|
|
}[];
|
|
has_more: boolean;
|
|
next_page: string | null;
|
|
};
|
|
|
|
/**
|
|
* @deprecated AutoRAG has been replaced by AI Search.
|
|
* Use AiSearchListResponse with the new API instead.
|
|
* @see AiSearchListResponse
|
|
*/
|
|
export type AutoRagListResponse = {
|
|
id: string;
|
|
enable: boolean;
|
|
type: string;
|
|
source: string;
|
|
vectorize_name: string;
|
|
paused: boolean;
|
|
status: string;
|
|
}[];
|
|
|
|
/**
|
|
* @deprecated AutoRAG has been replaced by AI Search.
|
|
* The new API returns different response formats for chat completions.
|
|
*/
|
|
export type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
response: string;
|
|
};
|
|
|
|
/**
|
|
* @deprecated AutoRAG has been replaced by AI Search.
|
|
* Use the new AI Search API instead: \`env.AI.aiSearch\`
|
|
*
|
|
* Migration guide:
|
|
* - \`env.AI.autorag().list()\` \u2192 \`env.AI.aiSearch.list()\`
|
|
* - \`env.AI.autorag('id').search(...)\` \u2192 \`env.AI.aiSearch.get('id').search(...)\`
|
|
* - \`env.AI.autorag('id').aiSearch(...)\` \u2192 \`env.AI.aiSearch.get('id').chatCompletions(...)\`
|
|
*
|
|
* @see AiSearchAccountService
|
|
* @see AiSearchInstanceService
|
|
*/
|
|
export declare abstract class AutoRAG {
|
|
/**
|
|
* @deprecated Use \`env.AI.aiSearch.list()\` instead.
|
|
* @see AiSearchAccountService.list
|
|
*/
|
|
list(): Promise<AutoRagListResponse>;
|
|
|
|
/**
|
|
* @deprecated Use \`env.AI.aiSearch.get(id).search(...)\` instead.
|
|
* Note: The new API uses a messages array instead of a query string.
|
|
* @see AiSearchInstanceService.search
|
|
*/
|
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
|
|
/**
|
|
* @deprecated Use \`env.AI.aiSearch.get(id).chatCompletions(...)\` instead.
|
|
* @see AiSearchInstanceService.chatCompletions
|
|
*/
|
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
|
|
/**
|
|
* @deprecated Use \`env.AI.aiSearch.get(id).chatCompletions(...)\` instead.
|
|
* @see AiSearchInstanceService.chatCompletions
|
|
*/
|
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
|
|
|
/**
|
|
* @deprecated Use \`env.AI.aiSearch.get(id).chatCompletions(...)\` instead.
|
|
* @see AiSearchInstanceService.chatCompletions
|
|
*/
|
|
aiSearch(
|
|
params: AutoRagAiSearchRequest
|
|
): Promise<AutoRagAiSearchResponse | Response>;
|
|
}
|
|
|
|
interface BasicImageTransformations {
|
|
/**
|
|
* Maximum width in image pixels. The value must be an integer.
|
|
*/
|
|
width?: number;
|
|
/**
|
|
* Maximum height in image pixels. The value must be an integer.
|
|
*/
|
|
height?: number;
|
|
/**
|
|
* Resizing mode as a string. It affects interpretation of width and height
|
|
* options:
|
|
* - scale-down: Similar to contain, but the image is never enlarged. If
|
|
* the image is larger than given width or height, it will be resized.
|
|
* Otherwise its original size will be kept.
|
|
* - contain: Resizes to maximum size that fits within the given width and
|
|
* height. If only a single dimension is given (e.g. only width), the
|
|
* image will be shrunk or enlarged to exactly match that dimension.
|
|
* Aspect ratio is always preserved.
|
|
* - cover: Resizes (shrinks or enlarges) to fill the entire area of width
|
|
* and height. If the image has an aspect ratio different from the ratio
|
|
* of width and height, it will be cropped to fit.
|
|
* - crop: The image will be shrunk and cropped to fit within the area
|
|
* specified by width and height. The image will not be enlarged. For images
|
|
* smaller than the given dimensions it's the same as scale-down. For
|
|
* images larger than the given dimensions, it's the same as cover.
|
|
* See also trim.
|
|
* - pad: Resizes to the maximum size that fits within the given width and
|
|
* height, and then fills the remaining area with a background color
|
|
* (white by default). Use of this mode is not recommended, as the same
|
|
* effect can be more efficiently achieved with the contain mode and the
|
|
* CSS object-fit: contain property.
|
|
* - squeeze: Stretches and deforms to the width and height given, even if it
|
|
* breaks aspect ratio
|
|
*/
|
|
fit?: "scale-down" | "contain" | "cover" | "crop" | "pad" | "squeeze";
|
|
/**
|
|
* Image segmentation using artificial intelligence models. Sets pixels not
|
|
* within selected segment area to transparent e.g "foreground" sets every
|
|
* background pixel as transparent.
|
|
*/
|
|
segment?: "foreground";
|
|
/**
|
|
* When cropping with fit: "cover", this defines the side or point that should
|
|
* be left uncropped. The value is either a string
|
|
* "left", "right", "top", "bottom", "auto", or "center" (the default),
|
|
* or an object {x, y} containing focal point coordinates in the original
|
|
* image expressed as fractions ranging from 0.0 (top or left) to 1.0
|
|
* (bottom or right), 0.5 being the center. {fit: "cover", gravity: "top"} will
|
|
* crop bottom or left and right sides as necessary, but won\u2019t crop anything
|
|
* from the top. {fit: "cover", gravity: {x:0.5, y:0.2}} will crop each side to
|
|
* preserve as much as possible around a point at 20% of the height of the
|
|
* source image.
|
|
*/
|
|
gravity?:
|
|
| 'face'
|
|
| 'left'
|
|
| 'right'
|
|
| 'top'
|
|
| 'bottom'
|
|
| 'center'
|
|
| 'auto'
|
|
| 'entropy'
|
|
| BasicImageTransformationsGravityCoordinates;
|
|
/**
|
|
* Background color to add underneath the image. Applies only to images with
|
|
* transparency (such as PNG). Accepts any CSS color (#RRGGBB, rgba(\u2026),
|
|
* hsl(\u2026), etc.)
|
|
*/
|
|
background?: string;
|
|
/**
|
|
* Number of degrees (90, 180, 270) to rotate the image by. width and height
|
|
* options refer to axes after rotation.
|
|
*/
|
|
rotate?: 0 | 90 | 180 | 270 | 360;
|
|
}
|
|
|
|
interface BasicImageTransformationsGravityCoordinates {
|
|
x?: number;
|
|
y?: number;
|
|
mode?: 'remainder' | 'box-center';
|
|
}
|
|
|
|
/**
|
|
* In addition to the properties you can set in the RequestInit dict
|
|
* that you pass as an argument to the Request constructor, you can
|
|
* set certain properties of a \`cf\` object to control how Cloudflare
|
|
* features are applied to that new Request.
|
|
*
|
|
* Note: Currently, these properties cannot be tested in the
|
|
* playground.
|
|
*/
|
|
interface RequestInitCfProperties extends Record<string, unknown> {
|
|
cacheEverything?: boolean;
|
|
/**
|
|
* A request's cache key is what determines if two requests are
|
|
* "the same" for caching purposes. If a request has the same cache key
|
|
* as some previous request, then we can serve the same cached response for
|
|
* both. (e.g. 'some-key')
|
|
*
|
|
* Only available for Enterprise customers.
|
|
*/
|
|
cacheKey?: string;
|
|
/**
|
|
* This allows you to append additional Cache-Tag response headers
|
|
* to the origin response without modifications to the origin server.
|
|
* This will allow for greater control over the Purge by Cache Tag feature
|
|
* utilizing changes only in the Workers process.
|
|
*
|
|
* Only available for Enterprise customers.
|
|
*/
|
|
cacheTags?: string[];
|
|
/**
|
|
* Force response to be cached for a given number of seconds. (e.g. 300)
|
|
*/
|
|
cacheTtl?: number;
|
|
/**
|
|
* Force response to be cached for a given number of seconds based on the Origin status code.
|
|
* (e.g. { '200-299': 86400, '404': 1, '500-599': 0 })
|
|
*/
|
|
cacheTtlByStatus?: Record<string, number>;
|
|
scrapeShield?: boolean;
|
|
apps?: boolean;
|
|
image?: RequestInitCfPropertiesImage;
|
|
minify?: RequestInitCfPropertiesImageMinify;
|
|
mirage?: boolean;
|
|
polish?: "lossy" | "lossless" | "off";
|
|
r2?: RequestInitCfPropertiesR2;
|
|
/**
|
|
* Redirects the request to an alternate origin server. You can use this,
|
|
* for example, to implement load balancing across several origins.
|
|
* (e.g.us-east.example.com)
|
|
*
|
|
* Note - For security reasons, the hostname set in resolveOverride must
|
|
* be proxied on the same Cloudflare zone of the incoming request.
|
|
* Otherwise, the setting is ignored. CNAME hosts are allowed, so to
|
|
* resolve to a host under a different domain or a DNS only domain first
|
|
* declare a CNAME record within your own zone\u2019s DNS mapping to the
|
|
* external hostname, set proxy on Cloudflare, then set resolveOverride
|
|
* to point to that CNAME record.
|
|
*/
|
|
resolveOverride?: string;
|
|
}
|
|
|
|
interface RequestInitCfPropertiesImageDraw extends BasicImageTransformations {
|
|
/**
|
|
* Absolute URL of the image file to use for the drawing. It can be any of
|
|
* the supported file formats. For drawing of watermarks or non-rectangular
|
|
* overlays we recommend using PNG or WebP images.
|
|
*/
|
|
url: string;
|
|
/**
|
|
* Floating-point number between 0 (transparent) and 1 (opaque).
|
|
* For example, opacity: 0.5 makes overlay semitransparent.
|
|
*/
|
|
opacity?: number;
|
|
/**
|
|
* - If set to true, the overlay image will be tiled to cover the entire
|
|
* area. This is useful for stock-photo-like watermarks.
|
|
* - If set to "x", the overlay image will be tiled horizontally only
|
|
* (form a line).
|
|
* - If set to "y", the overlay image will be tiled vertically only
|
|
* (form a line).
|
|
*/
|
|
repeat?: true | "x" | "y";
|
|
/**
|
|
* Position of the overlay image relative to a given edge. Each property is
|
|
* an offset in pixels. 0 aligns exactly to the edge. For example, left: 10
|
|
* positions left side of the overlay 10 pixels from the left edge of the
|
|
* image it's drawn over. bottom: 0 aligns bottom of the overlay with bottom
|
|
* of the background image.
|
|
*
|
|
* Setting both left & right, or both top & bottom is an error.
|
|
*
|
|
* If no position is specified, the image will be centered.
|
|
*/
|
|
top?: number;
|
|
left?: number;
|
|
bottom?: number;
|
|
right?: number;
|
|
}
|
|
|
|
interface RequestInitCfPropertiesImage extends BasicImageTransformations {
|
|
/**
|
|
* Device Pixel Ratio. Default 1. Multiplier for width/height that makes it
|
|
* easier to specify higher-DPI sizes in <img srcset>.
|
|
*/
|
|
dpr?: number;
|
|
/**
|
|
* Allows you to trim your image. Takes dpr into account and is performed before
|
|
* resizing or rotation.
|
|
*
|
|
* It can be used as:
|
|
* - left, top, right, bottom - it will specify the number of pixels to cut
|
|
* off each side
|
|
* - width, height - the width/height you'd like to end up with - can be used
|
|
* in combination with the properties above
|
|
* - border - this will automatically trim the surroundings of an image based on
|
|
* it's color. It consists of three properties:
|
|
* - color: rgb or hex representation of the color you wish to trim (todo: verify the rgba bit)
|
|
* - tolerance: difference from color to treat as color
|
|
* - keep: the number of pixels of border to keep
|
|
*/
|
|
trim?: "border" | {
|
|
top?: number;
|
|
bottom?: number;
|
|
left?: number;
|
|
right?: number;
|
|
width?: number;
|
|
height?: number;
|
|
border?:
|
|
| boolean
|
|
| {
|
|
color?: string;
|
|
tolerance?: number;
|
|
keep?: number;
|
|
};
|
|
};
|
|
/**
|
|
* Quality setting from 1-100 (useful values are in 60-90 range). Lower values
|
|
* make images look worse, but load faster. The default is 85. It applies only
|
|
* to JPEG and WebP images. It doesn\u2019t have any effect on PNG.
|
|
*/
|
|
quality?: number | "low" | "medium-low" | "medium-high" | "high";
|
|
/**
|
|
* Output format to generate. It can be:
|
|
* - avif: generate images in AVIF format.
|
|
* - webp: generate images in Google WebP format. Set quality to 100 to get
|
|
* the WebP-lossless format.
|
|
* - json: instead of generating an image, outputs information about the
|
|
* image, in JSON format. The JSON object will contain image size
|
|
* (before and after resizing), source image\u2019s MIME type, file size, etc.
|
|
* - jpeg: generate images in JPEG format.
|
|
* - png: generate images in PNG format.
|
|
*/
|
|
format?: "avif" | "webp" | "json" | "jpeg" | "png" | "baseline-jpeg" | "png-force" | "svg";
|
|
/**
|
|
* Whether to preserve animation frames from input files. Default is true.
|
|
* Setting it to false reduces animations to still images. This setting is
|
|
* recommended when enlarging images or processing arbitrary user content,
|
|
* because large GIF animations can weigh tens or even hundreds of megabytes.
|
|
* It is also useful to set anim:false when using format:"json" to get the
|
|
* response quicker without the number of frames.
|
|
*/
|
|
anim?: boolean;
|
|
/**
|
|
* What EXIF data should be preserved in the output image. Note that EXIF
|
|
* rotation and embedded color profiles are always applied ("baked in" into
|
|
* the image), and aren't affected by this option. Note that if the Polish
|
|
* feature is enabled, all metadata may have been removed already and this
|
|
* option may have no effect.
|
|
* - keep: Preserve most of EXIF metadata, including GPS location if there's
|
|
* any.
|
|
* - copyright: Only keep the copyright tag, and discard everything else.
|
|
* This is the default behavior for JPEG files.
|
|
* - none: Discard all invisible EXIF metadata. Currently WebP and PNG
|
|
* output formats always discard metadata.
|
|
*/
|
|
metadata?: "keep" | "copyright" | "none";
|
|
/**
|
|
* Strength of sharpening filter to apply to the image. Floating-point
|
|
* number between 0 (no sharpening, default) and 10 (maximum). 1.0 is a
|
|
* recommended value for downscaled images.
|
|
*/
|
|
sharpen?: number;
|
|
/**
|
|
* Radius of a blur filter (approximate gaussian). Maximum supported radius
|
|
* is 250.
|
|
*/
|
|
blur?: number;
|
|
/**
|
|
* Overlays are drawn in the order they appear in the array (last array
|
|
* entry is the topmost layer).
|
|
*/
|
|
draw?: RequestInitCfPropertiesImageDraw[];
|
|
/**
|
|
* Fetching image from authenticated origin. Setting this property will
|
|
* pass authentication headers (Authorization, Cookie, etc.) through to
|
|
* the origin.
|
|
*/
|
|
"origin-auth"?: "share-publicly";
|
|
/**
|
|
* Adds a border around the image. The border is added after resizing. Border
|
|
* width takes dpr into account, and can be specified either using a single
|
|
* width property, or individually for each side.
|
|
*/
|
|
border?:
|
|
| {
|
|
color: string;
|
|
width: number;
|
|
}
|
|
| {
|
|
color: string;
|
|
top: number;
|
|
right: number;
|
|
bottom: number;
|
|
left: number;
|
|
};
|
|
/**
|
|
* Increase brightness by a factor. A value of 1.0 equals no change, a value
|
|
* of 0.5 equals half brightness, and a value of 2.0 equals twice as bright.
|
|
* 0 is ignored.
|
|
*/
|
|
brightness?: number;
|
|
/**
|
|
* Increase contrast by a factor. A value of 1.0 equals no change, a value of
|
|
* 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
|
|
* ignored.
|
|
*/
|
|
contrast?: number;
|
|
/**
|
|
* Increase exposure by a factor. A value of 1.0 equals no change, a value of
|
|
* 0.5 darkens the image, and a value of 2.0 lightens the image. 0 is ignored.
|
|
*/
|
|
gamma?: number;
|
|
|
|
/**
|
|
* Increase contrast by a factor. A value of 1.0 equals no change, a value of
|
|
* 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
|
|
* ignored.
|
|
*/
|
|
saturation?: number;
|
|
|
|
/**
|
|
* Flips the images horizontally, vertically, or both. Flipping is applied before
|
|
* rotation, so if you apply flip=h,rotate=90 then the image will be flipped
|
|
* horizontally, then rotated by 90 degrees.
|
|
*/
|
|
flip?: 'h' | 'v' | 'hv',
|
|
|
|
/**
|
|
* Slightly reduces latency on a cache miss by selecting a
|
|
* quickest-to-compress file format, at a cost of increased file size and
|
|
* lower image quality. It will usually override the format option and choose
|
|
* JPEG over WebP or AVIF. We do not recommend using this option, except in
|
|
* unusual circumstances like resizing uncacheable dynamically-generated
|
|
* images.
|
|
*/
|
|
compression?: "fast";
|
|
}
|
|
|
|
interface RequestInitCfPropertiesImageMinify {
|
|
javascript?: boolean;
|
|
css?: boolean;
|
|
html?: boolean;
|
|
}
|
|
|
|
interface RequestInitCfPropertiesR2 {
|
|
/**
|
|
* Colo id of bucket that an object is stored in
|
|
*/
|
|
bucketColoId?: number;
|
|
}
|
|
|
|
/**
|
|
* Request metadata provided by Cloudflare's edge.
|
|
*/
|
|
type IncomingRequestCfProperties<HostMetadata = unknown> =
|
|
IncomingRequestCfPropertiesBase &
|
|
IncomingRequestCfPropertiesBotManagementEnterprise &
|
|
IncomingRequestCfPropertiesCloudflareForSaaSEnterprise<HostMetadata> &
|
|
IncomingRequestCfPropertiesGeographicInformation &
|
|
IncomingRequestCfPropertiesCloudflareAccessOrApiShield;
|
|
|
|
interface IncomingRequestCfPropertiesBase extends Record<string, unknown> {
|
|
/**
|
|
* [ASN](https://www.iana.org/assignments/as-numbers/as-numbers.xhtml) of the incoming request.
|
|
*
|
|
* @example 395747
|
|
*/
|
|
asn?: number;
|
|
/**
|
|
* The organization which owns the ASN of the incoming request.
|
|
*
|
|
* @example "Google Cloud"
|
|
*/
|
|
asOrganization?: string;
|
|
/**
|
|
* The original value of the \`Accept-Encoding\` header if Cloudflare modified it.
|
|
*
|
|
* @example "gzip, deflate, br"
|
|
*/
|
|
clientAcceptEncoding?: string;
|
|
/**
|
|
* The number of milliseconds it took for the request to reach your worker.
|
|
*
|
|
* @example 22
|
|
*/
|
|
clientTcpRtt?: number;
|
|
/**
|
|
* The three-letter [IATA](https://en.wikipedia.org/wiki/IATA_airport_code)
|
|
* airport code of the data center that the request hit.
|
|
*
|
|
* @example "DFW"
|
|
*/
|
|
colo: string;
|
|
/**
|
|
* Represents the upstream's response to a
|
|
* [TCP \`keepalive\` message](https://tldp.org/HOWTO/TCP-Keepalive-HOWTO/overview.html)
|
|
* from cloudflare.
|
|
*
|
|
* For workers with no upstream, this will always be \`1\`.
|
|
*
|
|
* @example 3
|
|
*/
|
|
edgeRequestKeepAliveStatus: IncomingRequestCfPropertiesEdgeRequestKeepAliveStatus;
|
|
/**
|
|
* The HTTP Protocol the request used.
|
|
*
|
|
* @example "HTTP/2"
|
|
*/
|
|
httpProtocol: string;
|
|
/**
|
|
* The browser-requested prioritization information in the request object.
|
|
*
|
|
* If no information was set, defaults to the empty string \`""\`
|
|
*
|
|
* @example "weight=192;exclusive=0;group=3;group-weight=127"
|
|
* @default ""
|
|
*/
|
|
requestPriority: string;
|
|
/**
|
|
* The TLS version of the connection to Cloudflare.
|
|
* In requests served over plaintext (without TLS), this property is the empty string \`""\`.
|
|
*
|
|
* @example "TLSv1.3"
|
|
*/
|
|
tlsVersion: string;
|
|
/**
|
|
* The cipher for the connection to Cloudflare.
|
|
* In requests served over plaintext (without TLS), this property is the empty string \`""\`.
|
|
*
|
|
* @example "AEAD-AES128-GCM-SHA256"
|
|
*/
|
|
tlsCipher: string;
|
|
/**
|
|
* Metadata containing the [\`HELLO\`](https://www.rfc-editor.org/rfc/rfc5246#section-7.4.1.2) and [\`FINISHED\`](https://www.rfc-editor.org/rfc/rfc5246#section-7.4.9) messages from this request's TLS handshake.
|
|
*
|
|
* If the incoming request was served over plaintext (without TLS) this field is undefined.
|
|
*/
|
|
tlsExportedAuthenticator?: IncomingRequestCfPropertiesExportedAuthenticatorMetadata;
|
|
}
|
|
|
|
interface IncomingRequestCfPropertiesBotManagementBase {
|
|
/**
|
|
* Cloudflare\u2019s [level of certainty](https://developers.cloudflare.com/bots/concepts/bot-score/) that a request comes from a bot,
|
|
* represented as an integer percentage between \`1\` (almost certainly a bot) and \`99\` (almost certainly human).
|
|
*
|
|
* @example 54
|
|
*/
|
|
score: number;
|
|
/**
|
|
* A boolean value that is true if the request comes from a good bot, like Google or Bing.
|
|
* Most customers choose to allow this traffic. For more details, see [Traffic from known bots](https://developers.cloudflare.com/firewall/known-issues-and-faq/#how-does-firewall-rules-handle-traffic-from-known-bots).
|
|
*/
|
|
verifiedBot: boolean;
|
|
/**
|
|
* A boolean value that is true if the request originates from a
|
|
* Cloudflare-verified proxy service.
|
|
*/
|
|
corporateProxy: boolean;
|
|
/**
|
|
* A boolean value that's true if the request matches [file extensions](https://developers.cloudflare.com/bots/reference/static-resources/) for many types of static resources.
|
|
*/
|
|
staticResource: boolean;
|
|
/**
|
|
* List of IDs that correlate to the Bot Management heuristic detections made on a request (you can have multiple heuristic detections on the same request).
|
|
*/
|
|
detectionIds: number[];
|
|
}
|
|
|
|
interface IncomingRequestCfPropertiesBotManagement {
|
|
/**
|
|
* Results of Cloudflare's Bot Management analysis
|
|
*/
|
|
botManagement: IncomingRequestCfPropertiesBotManagementBase;
|
|
/**
|
|
* Duplicate of \`botManagement.score\`.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
clientTrustScore: number;
|
|
}
|
|
|
|
interface IncomingRequestCfPropertiesBotManagementEnterprise
|
|
extends IncomingRequestCfPropertiesBotManagement {
|
|
/**
|
|
* Results of Cloudflare's Bot Management analysis
|
|
*/
|
|
botManagement: IncomingRequestCfPropertiesBotManagementBase & {
|
|
/**
|
|
* A [JA3 Fingerprint](https://developers.cloudflare.com/bots/concepts/ja3-fingerprint/) to help profile specific SSL/TLS clients
|
|
* across different destination IPs, Ports, and X509 certificates.
|
|
*/
|
|
ja3Hash: string;
|
|
};
|
|
}
|
|
|
|
interface IncomingRequestCfPropertiesCloudflareForSaaSEnterprise<HostMetadata> {
|
|
/**
|
|
* Custom metadata set per-host in [Cloudflare for SaaS](https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/).
|
|
*
|
|
* This field is only present if you have Cloudflare for SaaS enabled on your account
|
|
* and you have followed the [required steps to enable it]((https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/domain-support/custom-metadata/)).
|
|
*/
|
|
hostMetadata?: HostMetadata;
|
|
}
|
|
|
|
interface IncomingRequestCfPropertiesCloudflareAccessOrApiShield {
|
|
/**
|
|
* Information about the client certificate presented to Cloudflare.
|
|
*
|
|
* This is populated when the incoming request is served over TLS using
|
|
* either Cloudflare Access or API Shield (mTLS)
|
|
* and the presented SSL certificate has a valid
|
|
* [Certificate Serial Number](https://ldapwiki.com/wiki/Certificate%20Serial%20Number)
|
|
* (i.e., not \`null\` or \`""\`).
|
|
*
|
|
* Otherwise, a set of placeholder values are used.
|
|
*
|
|
* The property \`certPresented\` will be set to \`"1"\` when
|
|
* the object is populated (i.e. the above conditions were met).
|
|
*/
|
|
tlsClientAuth:
|
|
| IncomingRequestCfPropertiesTLSClientAuth
|
|
| IncomingRequestCfPropertiesTLSClientAuthPlaceholder;
|
|
}
|
|
|
|
/**
|
|
* Metadata about the request's TLS handshake
|
|
*/
|
|
interface IncomingRequestCfPropertiesExportedAuthenticatorMetadata {
|
|
/**
|
|
* The client's [\`HELLO\` message](https://www.rfc-editor.org/rfc/rfc5246#section-7.4.1.2), encoded in hexadecimal
|
|
*
|
|
* @example "44372ba35fa1270921d318f34c12f155dc87b682cf36a790cfaa3ba8737a1b5d"
|
|
*/
|
|
clientHandshake: string;
|
|
/**
|
|
* The server's [\`HELLO\` message](https://www.rfc-editor.org/rfc/rfc5246#section-7.4.1.2), encoded in hexadecimal
|
|
*
|
|
* @example "44372ba35fa1270921d318f34c12f155dc87b682cf36a790cfaa3ba8737a1b5d"
|
|
*/
|
|
serverHandshake: string;
|
|
/**
|
|
* The client's [\`FINISHED\` message](https://www.rfc-editor.org/rfc/rfc5246#section-7.4.9), encoded in hexadecimal
|
|
*
|
|
* @example "084ee802fe1348f688220e2a6040a05b2199a761f33cf753abb1b006792d3f8b"
|
|
*/
|
|
clientFinished: string;
|
|
/**
|
|
* The server's [\`FINISHED\` message](https://www.rfc-editor.org/rfc/rfc5246#section-7.4.9), encoded in hexadecimal
|
|
*
|
|
* @example "084ee802fe1348f688220e2a6040a05b2199a761f33cf753abb1b006792d3f8b"
|
|
*/
|
|
serverFinished: string;
|
|
}
|
|
|
|
/**
|
|
* Geographic data about the request's origin.
|
|
*/
|
|
interface IncomingRequestCfPropertiesGeographicInformation {
|
|
/**
|
|
* The [ISO 3166-1 Alpha 2](https://www.iso.org/iso-3166-country-codes.html) country code the request originated from.
|
|
*
|
|
* If your worker is [configured to accept TOR connections](https://support.cloudflare.com/hc/en-us/articles/203306930-Understanding-Cloudflare-Tor-support-and-Onion-Routing), this may also be \`"T1"\`, indicating a request that originated over TOR.
|
|
*
|
|
* If Cloudflare is unable to determine where the request originated this property is omitted.
|
|
*
|
|
* The country code \`"T1"\` is used for requests originating on TOR.
|
|
*
|
|
* @example "GB"
|
|
*/
|
|
country?: Iso3166Alpha2Code | "T1";
|
|
/**
|
|
* If present, this property indicates that the request originated in the EU
|
|
*
|
|
* @example "1"
|
|
*/
|
|
isEUCountry?: "1";
|
|
/**
|
|
* A two-letter code indicating the continent the request originated from.
|
|
*
|
|
* @example "AN"
|
|
*/
|
|
continent?: ContinentCode;
|
|
/**
|
|
* The city the request originated from
|
|
*
|
|
* @example "Austin"
|
|
*/
|
|
city?: string;
|
|
/**
|
|
* Postal code of the incoming request
|
|
*
|
|
* @example "78701"
|
|
*/
|
|
postalCode?: string;
|
|
/**
|
|
* Latitude of the incoming request
|
|
*
|
|
* @example "30.27130"
|
|
*/
|
|
latitude?: string;
|
|
/**
|
|
* Longitude of the incoming request
|
|
*
|
|
* @example "-97.74260"
|
|
*/
|
|
longitude?: string;
|
|
/**
|
|
* Timezone of the incoming request
|
|
*
|
|
* @example "America/Chicago"
|
|
*/
|
|
timezone?: string;
|
|
/**
|
|
* If known, the ISO 3166-2 name for the first level region associated with
|
|
* the IP address of the incoming request
|
|
*
|
|
* @example "Texas"
|
|
*/
|
|
region?: string;
|
|
/**
|
|
* If known, the ISO 3166-2 code for the first-level region associated with
|
|
* the IP address of the incoming request
|
|
*
|
|
* @example "TX"
|
|
*/
|
|
regionCode?: string;
|
|
/**
|
|
* Metro code (DMA) of the incoming request
|
|
*
|
|
* @example "635"
|
|
*/
|
|
metroCode?: string;
|
|
}
|
|
|
|
/** Data about the incoming request's TLS certificate */
|
|
interface IncomingRequestCfPropertiesTLSClientAuth {
|
|
/** Always \`"1"\`, indicating that the certificate was presented */
|
|
certPresented: "1";
|
|
/**
|
|
* Result of certificate verification.
|
|
*
|
|
* @example "FAILED:self signed certificate"
|
|
*/
|
|
certVerified: Exclude<CertVerificationStatus, "NONE">;
|
|
/** The presented certificate's revokation status.
|
|
*
|
|
* - A value of \`"1"\` indicates the certificate has been revoked
|
|
* - A value of \`"0"\` indicates the certificate has not been revoked
|
|
*/
|
|
certRevoked: "1" | "0";
|
|
/**
|
|
* The certificate issuer's [distinguished name](https://knowledge.digicert.com/generalinformation/INFO1745.html)
|
|
*
|
|
* @example "CN=cloudflareaccess.com, C=US, ST=Texas, L=Austin, O=Cloudflare"
|
|
*/
|
|
certIssuerDN: string;
|
|
/**
|
|
* The certificate subject's [distinguished name](https://knowledge.digicert.com/generalinformation/INFO1745.html)
|
|
*
|
|
* @example "CN=*.cloudflareaccess.com, C=US, ST=Texas, L=Austin, O=Cloudflare"
|
|
*/
|
|
certSubjectDN: string;
|
|
/**
|
|
* The certificate issuer's [distinguished name](https://knowledge.digicert.com/generalinformation/INFO1745.html) ([RFC 2253](https://www.rfc-editor.org/rfc/rfc2253.html) formatted)
|
|
*
|
|
* @example "CN=cloudflareaccess.com, C=US, ST=Texas, L=Austin, O=Cloudflare"
|
|
*/
|
|
certIssuerDNRFC2253: string;
|
|
/**
|
|
* The certificate subject's [distinguished name](https://knowledge.digicert.com/generalinformation/INFO1745.html) ([RFC 2253](https://www.rfc-editor.org/rfc/rfc2253.html) formatted)
|
|
*
|
|
* @example "CN=*.cloudflareaccess.com, C=US, ST=Texas, L=Austin, O=Cloudflare"
|
|
*/
|
|
certSubjectDNRFC2253: string;
|
|
/** The certificate issuer's distinguished name (legacy policies) */
|
|
certIssuerDNLegacy: string;
|
|
/** The certificate subject's distinguished name (legacy policies) */
|
|
certSubjectDNLegacy: string;
|
|
/**
|
|
* The certificate's serial number
|
|
*
|
|
* @example "00936EACBE07F201DF"
|
|
*/
|
|
certSerial: string;
|
|
/**
|
|
* The certificate issuer's serial number
|
|
*
|
|
* @example "2489002934BDFEA34"
|
|
*/
|
|
certIssuerSerial: string;
|
|
/**
|
|
* The certificate's Subject Key Identifier
|
|
*
|
|
* @example "BB:AF:7E:02:3D:FA:A6:F1:3C:84:8E:AD:EE:38:98:EC:D9:32:32:D4"
|
|
*/
|
|
certSKI: string;
|
|
/**
|
|
* The certificate issuer's Subject Key Identifier
|
|
*
|
|
* @example "BB:AF:7E:02:3D:FA:A6:F1:3C:84:8E:AD:EE:38:98:EC:D9:32:32:D4"
|
|
*/
|
|
certIssuerSKI: string;
|
|
/**
|
|
* The certificate's SHA-1 fingerprint
|
|
*
|
|
* @example "6b9109f323999e52259cda7373ff0b4d26bd232e"
|
|
*/
|
|
certFingerprintSHA1: string;
|
|
/**
|
|
* The certificate's SHA-256 fingerprint
|
|
*
|
|
* @example "acf77cf37b4156a2708e34c4eb755f9b5dbbe5ebb55adfec8f11493438d19e6ad3f157f81fa3b98278453d5652b0c1fd1d71e5695ae4d709803a4d3f39de9dea"
|
|
*/
|
|
certFingerprintSHA256: string;
|
|
/**
|
|
* The effective starting date of the certificate
|
|
*
|
|
* @example "Dec 22 19:39:00 2018 GMT"
|
|
*/
|
|
certNotBefore: string;
|
|
/**
|
|
* The effective expiration date of the certificate
|
|
*
|
|
* @example "Dec 22 19:39:00 2018 GMT"
|
|
*/
|
|
certNotAfter: string;
|
|
}
|
|
|
|
/** Placeholder values for TLS Client Authorization */
|
|
interface IncomingRequestCfPropertiesTLSClientAuthPlaceholder {
|
|
certPresented: "0";
|
|
certVerified: "NONE";
|
|
certRevoked: "0";
|
|
certIssuerDN: "";
|
|
certSubjectDN: "";
|
|
certIssuerDNRFC2253: "";
|
|
certSubjectDNRFC2253: "";
|
|
certIssuerDNLegacy: "";
|
|
certSubjectDNLegacy: "";
|
|
certSerial: "";
|
|
certIssuerSerial: "";
|
|
certSKI: "";
|
|
certIssuerSKI: "";
|
|
certFingerprintSHA1: "";
|
|
certFingerprintSHA256: "";
|
|
certNotBefore: "";
|
|
certNotAfter: "";
|
|
}
|
|
|
|
/** Possible outcomes of TLS verification */
|
|
declare type CertVerificationStatus =
|
|
/** Authentication succeeded */
|
|
| "SUCCESS"
|
|
/** No certificate was presented */
|
|
| "NONE"
|
|
/** Failed because the certificate was self-signed */
|
|
| "FAILED:self signed certificate"
|
|
/** Failed because the certificate failed a trust chain check */
|
|
| "FAILED:unable to verify the first certificate"
|
|
/** Failed because the certificate not yet valid */
|
|
| "FAILED:certificate is not yet valid"
|
|
/** Failed because the certificate is expired */
|
|
| "FAILED:certificate has expired"
|
|
/** Failed for another unspecified reason */
|
|
| "FAILED";
|
|
|
|
/**
|
|
* An upstream endpoint's response to a TCP \`keepalive\` message from Cloudflare.
|
|
*/
|
|
declare type IncomingRequestCfPropertiesEdgeRequestKeepAliveStatus =
|
|
| 0 /** Unknown */
|
|
| 1 /** no keepalives (not found) */
|
|
| 2 /** no connection re-use, opening keepalive connection failed */
|
|
| 3 /** no connection re-use, keepalive accepted and saved */
|
|
| 4 /** connection re-use, refused by the origin server (\`TCP FIN\`) */
|
|
| 5; /** connection re-use, accepted by the origin server */
|
|
|
|
/** ISO 3166-1 Alpha-2 codes */
|
|
declare type Iso3166Alpha2Code =
|
|
| "AD"
|
|
| "AE"
|
|
| "AF"
|
|
| "AG"
|
|
| "AI"
|
|
| "AL"
|
|
| "AM"
|
|
| "AO"
|
|
| "AQ"
|
|
| "AR"
|
|
| "AS"
|
|
| "AT"
|
|
| "AU"
|
|
| "AW"
|
|
| "AX"
|
|
| "AZ"
|
|
| "BA"
|
|
| "BB"
|
|
| "BD"
|
|
| "BE"
|
|
| "BF"
|
|
| "BG"
|
|
| "BH"
|
|
| "BI"
|
|
| "BJ"
|
|
| "BL"
|
|
| "BM"
|
|
| "BN"
|
|
| "BO"
|
|
| "BQ"
|
|
| "BR"
|
|
| "BS"
|
|
| "BT"
|
|
| "BV"
|
|
| "BW"
|
|
| "BY"
|
|
| "BZ"
|
|
| "CA"
|
|
| "CC"
|
|
| "CD"
|
|
| "CF"
|
|
| "CG"
|
|
| "CH"
|
|
| "CI"
|
|
| "CK"
|
|
| "CL"
|
|
| "CM"
|
|
| "CN"
|
|
| "CO"
|
|
| "CR"
|
|
| "CU"
|
|
| "CV"
|
|
| "CW"
|
|
| "CX"
|
|
| "CY"
|
|
| "CZ"
|
|
| "DE"
|
|
| "DJ"
|
|
| "DK"
|
|
| "DM"
|
|
| "DO"
|
|
| "DZ"
|
|
| "EC"
|
|
| "EE"
|
|
| "EG"
|
|
| "EH"
|
|
| "ER"
|
|
| "ES"
|
|
| "ET"
|
|
| "FI"
|
|
| "FJ"
|
|
| "FK"
|
|
| "FM"
|
|
| "FO"
|
|
| "FR"
|
|
| "GA"
|
|
| "GB"
|
|
| "GD"
|
|
| "GE"
|
|
| "GF"
|
|
| "GG"
|
|
| "GH"
|
|
| "GI"
|
|
| "GL"
|
|
| "GM"
|
|
| "GN"
|
|
| "GP"
|
|
| "GQ"
|
|
| "GR"
|
|
| "GS"
|
|
| "GT"
|
|
| "GU"
|
|
| "GW"
|
|
| "GY"
|
|
| "HK"
|
|
| "HM"
|
|
| "HN"
|
|
| "HR"
|
|
| "HT"
|
|
| "HU"
|
|
| "ID"
|
|
| "IE"
|
|
| "IL"
|
|
| "IM"
|
|
| "IN"
|
|
| "IO"
|
|
| "IQ"
|
|
| "IR"
|
|
| "IS"
|
|
| "IT"
|
|
| "JE"
|
|
| "JM"
|
|
| "JO"
|
|
| "JP"
|
|
| "KE"
|
|
| "KG"
|
|
| "KH"
|
|
| "KI"
|
|
| "KM"
|
|
| "KN"
|
|
| "KP"
|
|
| "KR"
|
|
| "KW"
|
|
| "KY"
|
|
| "KZ"
|
|
| "LA"
|
|
| "LB"
|
|
| "LC"
|
|
| "LI"
|
|
| "LK"
|
|
| "LR"
|
|
| "LS"
|
|
| "LT"
|
|
| "LU"
|
|
| "LV"
|
|
| "LY"
|
|
| "MA"
|
|
| "MC"
|
|
| "MD"
|
|
| "ME"
|
|
| "MF"
|
|
| "MG"
|
|
| "MH"
|
|
| "MK"
|
|
| "ML"
|
|
| "MM"
|
|
| "MN"
|
|
| "MO"
|
|
| "MP"
|
|
| "MQ"
|
|
| "MR"
|
|
| "MS"
|
|
| "MT"
|
|
| "MU"
|
|
| "MV"
|
|
| "MW"
|
|
| "MX"
|
|
| "MY"
|
|
| "MZ"
|
|
| "NA"
|
|
| "NC"
|
|
| "NE"
|
|
| "NF"
|
|
| "NG"
|
|
| "NI"
|
|
| "NL"
|
|
| "NO"
|
|
| "NP"
|
|
| "NR"
|
|
| "NU"
|
|
| "NZ"
|
|
| "OM"
|
|
| "PA"
|
|
| "PE"
|
|
| "PF"
|
|
| "PG"
|
|
| "PH"
|
|
| "PK"
|
|
| "PL"
|
|
| "PM"
|
|
| "PN"
|
|
| "PR"
|
|
| "PS"
|
|
| "PT"
|
|
| "PW"
|
|
| "PY"
|
|
| "QA"
|
|
| "RE"
|
|
| "RO"
|
|
| "RS"
|
|
| "RU"
|
|
| "RW"
|
|
| "SA"
|
|
| "SB"
|
|
| "SC"
|
|
| "SD"
|
|
| "SE"
|
|
| "SG"
|
|
| "SH"
|
|
| "SI"
|
|
| "SJ"
|
|
| "SK"
|
|
| "SL"
|
|
| "SM"
|
|
| "SN"
|
|
| "SO"
|
|
| "SR"
|
|
| "SS"
|
|
| "ST"
|
|
| "SV"
|
|
| "SX"
|
|
| "SY"
|
|
| "SZ"
|
|
| "TC"
|
|
| "TD"
|
|
| "TF"
|
|
| "TG"
|
|
| "TH"
|
|
| "TJ"
|
|
| "TK"
|
|
| "TL"
|
|
| "TM"
|
|
| "TN"
|
|
| "TO"
|
|
| "TR"
|
|
| "TT"
|
|
| "TV"
|
|
| "TW"
|
|
| "TZ"
|
|
| "UA"
|
|
| "UG"
|
|
| "UM"
|
|
| "US"
|
|
| "UY"
|
|
| "UZ"
|
|
| "VA"
|
|
| "VC"
|
|
| "VE"
|
|
| "VG"
|
|
| "VI"
|
|
| "VN"
|
|
| "VU"
|
|
| "WF"
|
|
| "WS"
|
|
| "YE"
|
|
| "YT"
|
|
| "ZA"
|
|
| "ZM"
|
|
| "ZW";
|
|
|
|
/** The 2-letter continent codes Cloudflare uses */
|
|
declare type ContinentCode = "AF" | "AN" | "AS" | "EU" | "NA" | "OC" | "SA";
|
|
|
|
type CfProperties<HostMetadata = unknown> =
|
|
| IncomingRequestCfProperties<HostMetadata>
|
|
| RequestInitCfProperties;
|
|
|
|
interface D1Meta {
|
|
duration: number;
|
|
size_after: number;
|
|
rows_read: number;
|
|
rows_written: number;
|
|
last_row_id: number;
|
|
changed_db: boolean;
|
|
changes: number;
|
|
|
|
/**
|
|
* The region of the database instance that executed the query.
|
|
*/
|
|
served_by_region?: string;
|
|
|
|
/**
|
|
* The three letters airport code of the colo that executed the query.
|
|
*/
|
|
served_by_colo?: string;
|
|
|
|
/**
|
|
* True if-and-only-if the database instance that executed the query was the primary.
|
|
*/
|
|
served_by_primary?: boolean;
|
|
|
|
timings?: {
|
|
/**
|
|
* The duration of the SQL query execution by the database instance. It doesn't include any network time.
|
|
*/
|
|
sql_duration_ms: number;
|
|
};
|
|
|
|
/**
|
|
* Number of total attempts to execute the query, due to automatic retries.
|
|
* Note: All other fields in the response like \`timings\` only apply to the last attempt.
|
|
*/
|
|
total_attempts?: number;
|
|
}
|
|
|
|
interface D1Response {
|
|
success: true;
|
|
meta: D1Meta & Record<string, unknown>;
|
|
error?: never;
|
|
}
|
|
|
|
type D1Result<T = unknown> = D1Response & {
|
|
results: T[];
|
|
};
|
|
|
|
interface D1ExecResult {
|
|
count: number;
|
|
duration: number;
|
|
}
|
|
|
|
type D1SessionConstraint =
|
|
// Indicates that the first query should go to the primary, and the rest queries
|
|
// using the same D1DatabaseSession will go to any replica that is consistent with
|
|
// the bookmark maintained by the session (returned by the first query).
|
|
| 'first-primary'
|
|
// Indicates that the first query can go anywhere (primary or replica), and the rest queries
|
|
// using the same D1DatabaseSession will go to any replica that is consistent with
|
|
// the bookmark maintained by the session (returned by the first query).
|
|
| 'first-unconstrained';
|
|
type D1SessionBookmark = string;
|
|
|
|
declare abstract class D1Database {
|
|
prepare(query: string): D1PreparedStatement;
|
|
batch<T = unknown>(statements: D1PreparedStatement[]): Promise<D1Result<T>[]>;
|
|
exec(query: string): Promise<D1ExecResult>;
|
|
|
|
/**
|
|
* Creates a new D1 Session anchored at the given constraint or the bookmark.
|
|
* All queries executed using the created session will have sequential consistency,
|
|
* meaning that all writes done through the session will be visible in subsequent reads.
|
|
*
|
|
* @param constraintOrBookmark Either the session constraint or the explicit bookmark to anchor the created session.
|
|
*/
|
|
withSession(
|
|
constraintOrBookmark?: D1SessionBookmark | D1SessionConstraint
|
|
): D1DatabaseSession;
|
|
|
|
/**
|
|
* @deprecated dump() will be removed soon, only applies to deprecated alpha v1 databases.
|
|
*/
|
|
dump(): Promise<ArrayBuffer>;
|
|
}
|
|
|
|
declare abstract class D1DatabaseSession {
|
|
prepare(query: string): D1PreparedStatement;
|
|
batch<T = unknown>(statements: D1PreparedStatement[]): Promise<D1Result<T>[]>;
|
|
|
|
/**
|
|
* @returns The latest session bookmark across all executed queries on the session.
|
|
* If no query has been executed yet, \`null\` is returned.
|
|
*/
|
|
getBookmark(): D1SessionBookmark | null;
|
|
}
|
|
|
|
declare abstract class D1PreparedStatement {
|
|
bind(...values: unknown[]): D1PreparedStatement;
|
|
first<T = unknown>(colName: string): Promise<T | null>;
|
|
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
run<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
raw<T = unknown[]>(options: {
|
|
columnNames: true;
|
|
}): Promise<[string[], ...T[]]>;
|
|
raw<T = unknown[]>(options?: { columnNames?: false }): Promise<T[]>;
|
|
}
|
|
|
|
// \`Disposable\` was added to TypeScript's standard lib types in version 5.2.
|
|
// To support older TypeScript versions, define an empty \`Disposable\` interface.
|
|
// Users won't be able to use \`using\`/\`Symbol.dispose\` without upgrading to 5.2,
|
|
// but this will ensure type checking on older versions still passes.
|
|
// TypeScript's interface merging will ensure our empty interface is effectively
|
|
// ignored when \`Disposable\` is included in the standard lib.
|
|
interface Disposable {}
|
|
|
|
/**
|
|
* The returned data after sending an email
|
|
*/
|
|
interface EmailSendResult {
|
|
/**
|
|
* The Email Message ID
|
|
*/
|
|
messageId: string;
|
|
}
|
|
|
|
/**
|
|
* An email message that can be sent from a Worker.
|
|
*/
|
|
interface EmailMessage {
|
|
/**
|
|
* Envelope From attribute of the email message.
|
|
*/
|
|
readonly from: string;
|
|
/**
|
|
* Envelope To attribute of the email message.
|
|
*/
|
|
readonly to: string;
|
|
}
|
|
|
|
/**
|
|
* An email message that is sent to a consumer Worker and can be rejected/forwarded.
|
|
*/
|
|
interface ForwardableEmailMessage extends EmailMessage {
|
|
/**
|
|
* Stream of the email message content.
|
|
*/
|
|
readonly raw: ReadableStream<Uint8Array>;
|
|
/**
|
|
* An [Headers object](https://developer.mozilla.org/en-US/docs/Web/API/Headers).
|
|
*/
|
|
readonly headers: Headers;
|
|
/**
|
|
* Size of the email message content.
|
|
*/
|
|
readonly rawSize: number;
|
|
/**
|
|
* Reject this email message by returning a permanent SMTP error back to the connecting client including the given reason.
|
|
* @param reason The reject reason.
|
|
* @returns void
|
|
*/
|
|
setReject(reason: string): void;
|
|
/**
|
|
* Forward this email message to a verified destination address of the account.
|
|
* @param rcptTo Verified destination address.
|
|
* @param headers A [Headers object](https://developer.mozilla.org/en-US/docs/Web/API/Headers).
|
|
* @returns A promise that resolves when the email message is forwarded.
|
|
*/
|
|
forward(rcptTo: string, headers?: Headers): Promise<EmailSendResult>;
|
|
/**
|
|
* Reply to the sender of this email message with a new EmailMessage object.
|
|
* @param message The reply message.
|
|
* @returns A promise that resolves when the email message is replied.
|
|
*/
|
|
reply(message: EmailMessage): Promise<EmailSendResult>;
|
|
}
|
|
|
|
/** A file attachment for an email message */
|
|
type EmailAttachment =
|
|
| { disposition: 'inline'; contentId: string; filename: string; type: string; content: string | ArrayBuffer | ArrayBufferView }
|
|
| { disposition: 'attachment'; contentId?: undefined; filename: string; type: string; content: string | ArrayBuffer | ArrayBufferView };
|
|
|
|
/** An Email Address */
|
|
interface EmailAddress {
|
|
name: string;
|
|
email: string;
|
|
}
|
|
|
|
/**
|
|
* A binding that allows a Worker to send email messages.
|
|
*/
|
|
interface SendEmail {
|
|
send(message: EmailMessage): Promise<EmailSendResult>;
|
|
send(builder: {
|
|
from: string | EmailAddress;
|
|
to: string | string[];
|
|
subject: string;
|
|
replyTo?: string | EmailAddress;
|
|
cc?: string | string[];
|
|
bcc?: string | string[];
|
|
headers?: Record<string, string>;
|
|
text?: string;
|
|
html?: string;
|
|
attachments?: EmailAttachment[];
|
|
}): Promise<EmailSendResult>;
|
|
}
|
|
|
|
declare abstract class EmailEvent extends ExtendableEvent {
|
|
readonly message: ForwardableEmailMessage;
|
|
}
|
|
|
|
declare type EmailExportedHandler<Env = unknown> = (
|
|
message: ForwardableEmailMessage,
|
|
env: Env,
|
|
ctx: ExecutionContext
|
|
) => void | Promise<void>;
|
|
|
|
declare module "cloudflare:email" {
|
|
let _EmailMessage: {
|
|
prototype: EmailMessage;
|
|
new (from: string, to: string, raw: ReadableStream | string): EmailMessage;
|
|
};
|
|
export { _EmailMessage as EmailMessage };
|
|
}
|
|
|
|
/**
|
|
* Hello World binding to serve as an explanatory example. DO NOT USE
|
|
*/
|
|
interface HelloWorldBinding {
|
|
/**
|
|
* Retrieve the current stored value
|
|
*/
|
|
get(): Promise<{ value: string, ms?: number }>;
|
|
/**
|
|
* Set a new stored value
|
|
*/
|
|
set(value: string): Promise<void>;
|
|
}
|
|
|
|
interface Hyperdrive {
|
|
/**
|
|
* Connect directly to Hyperdrive as if it's your database, returning a TCP socket.
|
|
*
|
|
* Calling this method returns an identical socket to if you call
|
|
* \`connect("host:port")\` using the \`host\` and \`port\` fields from this object.
|
|
* Pick whichever approach works better with your preferred DB client library.
|
|
*
|
|
* Note that this socket is not yet authenticated -- it's expected that your
|
|
* code (or preferably, the client library of your choice) will authenticate
|
|
* using the information in this class's readonly fields.
|
|
*/
|
|
connect(): Socket;
|
|
|
|
/**
|
|
* A valid DB connection string that can be passed straight into the typical
|
|
* client library/driver/ORM. This will typically be the easiest way to use
|
|
* Hyperdrive.
|
|
*/
|
|
readonly connectionString: string;
|
|
|
|
/*
|
|
* A randomly generated hostname that is only valid within the context of the
|
|
* currently running Worker which, when passed into \`connect()\` function from
|
|
* the "cloudflare:sockets" module, will connect to the Hyperdrive instance
|
|
* for your database.
|
|
*/
|
|
readonly host: string;
|
|
/*
|
|
* The port that must be paired the the host field when connecting.
|
|
*/
|
|
readonly port: number;
|
|
/*
|
|
* The username to use when authenticating to your database via Hyperdrive.
|
|
* Unlike the host and password, this will be the same every time
|
|
*/
|
|
readonly user: string;
|
|
/*
|
|
* The randomly generated password to use when authenticating to your
|
|
* database via Hyperdrive. Like the host field, this password is only valid
|
|
* within the context of the currently running Worker instance from which
|
|
* it's read.
|
|
*/
|
|
readonly password: string;
|
|
/*
|
|
* The name of the database to connect to.
|
|
*/
|
|
readonly database: string;
|
|
}
|
|
|
|
// Copyright (c) 2024 Cloudflare, Inc.
|
|
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
// https://opensource.org/licenses/Apache-2.0
|
|
|
|
type ImageInfoResponse =
|
|
| { format: 'image/svg+xml' }
|
|
| {
|
|
format: string;
|
|
fileSize: number;
|
|
width: number;
|
|
height: number;
|
|
};
|
|
|
|
type ImageTransform = {
|
|
width?: number;
|
|
height?: number;
|
|
background?: string;
|
|
blur?: number;
|
|
border?:
|
|
| {
|
|
color?: string;
|
|
width?: number;
|
|
}
|
|
| {
|
|
top?: number;
|
|
bottom?: number;
|
|
left?: number;
|
|
right?: number;
|
|
};
|
|
brightness?: number;
|
|
contrast?: number;
|
|
fit?: 'scale-down' | 'contain' | 'pad' | 'squeeze' | 'cover' | 'crop';
|
|
flip?: 'h' | 'v' | 'hv';
|
|
gamma?: number;
|
|
segment?: 'foreground';
|
|
gravity?:
|
|
| 'face'
|
|
| 'left'
|
|
| 'right'
|
|
| 'top'
|
|
| 'bottom'
|
|
| 'center'
|
|
| 'auto'
|
|
| 'entropy'
|
|
| {
|
|
x?: number;
|
|
y?: number;
|
|
mode: 'remainder' | 'box-center';
|
|
};
|
|
rotate?: 0 | 90 | 180 | 270;
|
|
saturation?: number;
|
|
sharpen?: number;
|
|
trim?:
|
|
| 'border'
|
|
| {
|
|
top?: number;
|
|
bottom?: number;
|
|
left?: number;
|
|
right?: number;
|
|
width?: number;
|
|
height?: number;
|
|
border?:
|
|
| boolean
|
|
| {
|
|
color?: string;
|
|
tolerance?: number;
|
|
keep?: number;
|
|
};
|
|
};
|
|
};
|
|
|
|
type ImageDrawOptions = {
|
|
opacity?: number;
|
|
repeat?: boolean | string;
|
|
top?: number;
|
|
left?: number;
|
|
bottom?: number;
|
|
right?: number;
|
|
};
|
|
|
|
type ImageInputOptions = {
|
|
encoding?: 'base64';
|
|
};
|
|
|
|
type ImageOutputOptions = {
|
|
format:
|
|
| 'image/jpeg'
|
|
| 'image/png'
|
|
| 'image/gif'
|
|
| 'image/webp'
|
|
| 'image/avif'
|
|
| 'rgb'
|
|
| 'rgba';
|
|
quality?: number;
|
|
background?: string;
|
|
anim?: boolean;
|
|
};
|
|
|
|
interface ImageMetadata {
|
|
id: string;
|
|
filename?: string;
|
|
uploaded?: string;
|
|
requireSignedURLs: boolean;
|
|
meta?: Record<string, unknown>;
|
|
variants: string[];
|
|
draft?: boolean;
|
|
creator?: string;
|
|
}
|
|
|
|
interface ImageUploadOptions {
|
|
id?: string;
|
|
filename?: string;
|
|
requireSignedURLs?: boolean;
|
|
metadata?: Record<string, unknown>;
|
|
creator?: string;
|
|
encoding?: 'base64';
|
|
}
|
|
|
|
interface ImageUpdateOptions {
|
|
requireSignedURLs?: boolean;
|
|
metadata?: Record<string, unknown>;
|
|
creator?: string;
|
|
}
|
|
|
|
interface ImageListOptions {
|
|
limit?: number;
|
|
cursor?: string;
|
|
sortOrder?: 'asc' | 'desc';
|
|
creator?: string;
|
|
}
|
|
|
|
interface ImageList {
|
|
images: ImageMetadata[];
|
|
cursor?: string;
|
|
listComplete: boolean;
|
|
}
|
|
|
|
interface HostedImagesBinding {
|
|
/**
|
|
* Get detailed metadata for a hosted image
|
|
* @param imageId The ID of the image (UUID or custom ID)
|
|
* @returns Image metadata, or null if not found
|
|
*/
|
|
details(imageId: string): Promise<ImageMetadata | null>;
|
|
|
|
/**
|
|
* Get the raw image data for a hosted image
|
|
* @param imageId The ID of the image (UUID or custom ID)
|
|
* @returns ReadableStream of image bytes, or null if not found
|
|
*/
|
|
image(imageId: string): Promise<ReadableStream<Uint8Array> | null>;
|
|
|
|
/**
|
|
* Upload a new hosted image
|
|
* @param image The image file to upload
|
|
* @param options Upload configuration
|
|
* @returns Metadata for the uploaded image
|
|
* @throws {@link ImagesError} if upload fails
|
|
*/
|
|
upload(
|
|
image: ReadableStream<Uint8Array> | ArrayBuffer,
|
|
options?: ImageUploadOptions
|
|
): Promise<ImageMetadata>;
|
|
|
|
/**
|
|
* Update hosted image metadata
|
|
* @param imageId The ID of the image
|
|
* @param options Properties to update
|
|
* @returns Updated image metadata
|
|
* @throws {@link ImagesError} if update fails
|
|
*/
|
|
update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>;
|
|
|
|
/**
|
|
* Delete a hosted image
|
|
* @param imageId The ID of the image
|
|
* @returns True if deleted, false if not found
|
|
*/
|
|
delete(imageId: string): Promise<boolean>;
|
|
|
|
/**
|
|
* List hosted images with pagination
|
|
* @param options List configuration
|
|
* @returns List of images with pagination info
|
|
* @throws {@link ImagesError} if list fails
|
|
*/
|
|
list(options?: ImageListOptions): Promise<ImageList>;
|
|
}
|
|
|
|
interface ImagesBinding {
|
|
/**
|
|
* Get image metadata (type, width and height)
|
|
* @throws {@link ImagesError} with code 9412 if input is not an image
|
|
* @param stream The image bytes
|
|
*/
|
|
info(
|
|
stream: ReadableStream<Uint8Array>,
|
|
options?: ImageInputOptions
|
|
): Promise<ImageInfoResponse>;
|
|
/**
|
|
* Begin applying a series of transformations to an image
|
|
* @param stream The image bytes
|
|
* @returns A transform handle
|
|
*/
|
|
input(
|
|
stream: ReadableStream<Uint8Array>,
|
|
options?: ImageInputOptions
|
|
): ImageTransformer;
|
|
|
|
/**
|
|
* Access hosted images CRUD operations
|
|
*/
|
|
readonly hosted: HostedImagesBinding;
|
|
}
|
|
|
|
interface ImageTransformer {
|
|
/**
|
|
* Apply transform next, returning a transform handle.
|
|
* You can then apply more transformations, draw, or retrieve the output.
|
|
* @param transform
|
|
*/
|
|
transform(transform: ImageTransform): ImageTransformer;
|
|
|
|
/**
|
|
* Draw an image on this transformer, returning a transform handle.
|
|
* You can then apply more transformations, draw, or retrieve the output.
|
|
* @param image The image (or transformer that will give the image) to draw
|
|
* @param options The options configuring how to draw the image
|
|
*/
|
|
draw(
|
|
image: ReadableStream<Uint8Array> | ImageTransformer,
|
|
options?: ImageDrawOptions
|
|
): ImageTransformer;
|
|
|
|
/**
|
|
* Retrieve the image that results from applying the transforms to the
|
|
* provided input
|
|
* @param options Options that apply to the output e.g. output format
|
|
*/
|
|
output(options: ImageOutputOptions): Promise<ImageTransformationResult>;
|
|
}
|
|
|
|
type ImageTransformationOutputOptions = {
|
|
encoding?: 'base64';
|
|
};
|
|
|
|
interface ImageTransformationResult {
|
|
/**
|
|
* The image as a response, ready to store in cache or return to users
|
|
*/
|
|
response(): Response;
|
|
/**
|
|
* The content type of the returned image
|
|
*/
|
|
contentType(): string;
|
|
/**
|
|
* The bytes of the response
|
|
*/
|
|
image(options?: ImageTransformationOutputOptions): ReadableStream<Uint8Array>;
|
|
}
|
|
|
|
interface ImagesError extends Error {
|
|
readonly code: number;
|
|
readonly message: string;
|
|
readonly stack?: string;
|
|
}
|
|
|
|
/**
|
|
* Media binding for transforming media streams.
|
|
* Provides the entry point for media transformation operations.
|
|
*/
|
|
interface MediaBinding {
|
|
/**
|
|
* Creates a media transformer from an input stream.
|
|
* @param media - The input media bytes
|
|
* @returns A MediaTransformer instance for applying transformations
|
|
*/
|
|
input(media: ReadableStream<Uint8Array>): MediaTransformer
|
|
}
|
|
|
|
/**
|
|
* Media transformer for applying transformation operations to media content.
|
|
* Handles sizing, fitting, and other input transformation parameters.
|
|
*/
|
|
interface MediaTransformer {
|
|
/**
|
|
* Applies transformation options to the media content.
|
|
* @param transform - Configuration for how the media should be transformed
|
|
* @returns A generator for producing the transformed media output
|
|
*/
|
|
transform(
|
|
transform?: MediaTransformationInputOptions
|
|
): MediaTransformationGenerator
|
|
|
|
/**
|
|
* Generates the final media output with specified options.
|
|
* @param output - Configuration for the output format and parameters
|
|
* @returns The final transformation result containing the transformed media
|
|
*/
|
|
output(
|
|
output?: MediaTransformationOutputOptions
|
|
): MediaTransformationResult
|
|
}
|
|
|
|
/**
|
|
* Generator for producing media transformation results.
|
|
* Configures the output format and parameters for the transformed media.
|
|
*/
|
|
interface MediaTransformationGenerator {
|
|
/**
|
|
* Generates the final media output with specified options.
|
|
* @param output - Configuration for the output format and parameters
|
|
* @returns The final transformation result containing the transformed media
|
|
*/
|
|
output(
|
|
output?: MediaTransformationOutputOptions
|
|
): MediaTransformationResult
|
|
}
|
|
|
|
/**
|
|
* Result of a media transformation operation.
|
|
* Provides multiple ways to access the transformed media content.
|
|
*/
|
|
interface MediaTransformationResult {
|
|
/**
|
|
* Returns the transformed media as a readable stream of bytes.
|
|
* @returns A promise containing a readable stream with the transformed media
|
|
*/
|
|
media(): Promise<ReadableStream<Uint8Array>>
|
|
/**
|
|
* Returns the transformed media as an HTTP response object.
|
|
* @returns The transformed media as a Promise<Response>, ready to store in cache or return to users
|
|
*/
|
|
response(): Promise<Response>
|
|
/**
|
|
* Returns the MIME type of the transformed media.
|
|
* @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4')
|
|
*/
|
|
contentType(): Promise<string>
|
|
}
|
|
|
|
/**
|
|
* Configuration options for transforming media input.
|
|
* Controls how the media should be resized and fitted.
|
|
*/
|
|
type MediaTransformationInputOptions = {
|
|
/** How the media should be resized to fit the specified dimensions */
|
|
fit?: 'contain' | 'cover' | 'scale-down'
|
|
/** Target width in pixels */
|
|
width?: number
|
|
/** Target height in pixels */
|
|
height?: number
|
|
}
|
|
|
|
/**
|
|
* Configuration options for Media Transformations output.
|
|
* Controls the format, timing, and type of the generated output.
|
|
*/
|
|
type MediaTransformationOutputOptions = {
|
|
/**
|
|
* Output mode determining the type of media to generate
|
|
*/
|
|
mode?: 'video' | 'spritesheet' | 'frame' | 'audio'
|
|
/** Whether to include audio in the output */
|
|
audio?: boolean
|
|
/**
|
|
* Starting timestamp for frame extraction or start time for clips. (e.g. '2s').
|
|
*/
|
|
time?: string
|
|
/**
|
|
* Duration for video clips, audio extraction, and spritesheet generation (e.g. '5s').
|
|
*/
|
|
duration?: string
|
|
/**
|
|
* Number of frames in the spritesheet.
|
|
*/
|
|
imageCount?: number
|
|
/**
|
|
* Output format for the generated media.
|
|
*/
|
|
format?: 'jpg' | 'png' | 'm4a'
|
|
}
|
|
|
|
/**
|
|
* Error object for media transformation operations.
|
|
* Extends the standard Error interface with additional media-specific information.
|
|
*/
|
|
interface MediaError extends Error {
|
|
readonly code: number;
|
|
readonly message: string;
|
|
readonly stack?: string;
|
|
}
|
|
|
|
|
|
declare module 'cloudflare:node' {
|
|
interface NodeStyleServer {
|
|
listen(...args: unknown[]): this;
|
|
address(): { port?: number | null | undefined };
|
|
}
|
|
|
|
export function httpServerHandler(port: number): ExportedHandler;
|
|
export function httpServerHandler(options: { port: number }): ExportedHandler;
|
|
export function httpServerHandler(server: NodeStyleServer): ExportedHandler;
|
|
}
|
|
|
|
type Params<P extends string = any> = Record<P, string | string[]>;
|
|
|
|
type EventContext<Env, P extends string, Data> = {
|
|
request: Request<unknown, IncomingRequestCfProperties<unknown>>;
|
|
functionPath: string;
|
|
waitUntil: (promise: Promise<any>) => void;
|
|
passThroughOnException: () => void;
|
|
next: (input?: Request | string, init?: RequestInit) => Promise<Response>;
|
|
env: Env & { ASSETS: { fetch: typeof fetch } };
|
|
params: Params<P>;
|
|
data: Data;
|
|
};
|
|
|
|
type PagesFunction<
|
|
Env = unknown,
|
|
Params extends string = any,
|
|
Data extends Record<string, unknown> = Record<string, unknown>
|
|
> = (context: EventContext<Env, Params, Data>) => Response | Promise<Response>;
|
|
|
|
type EventPluginContext<Env, P extends string, Data, PluginArgs> = {
|
|
request: Request<unknown, IncomingRequestCfProperties<unknown>>;
|
|
functionPath: string;
|
|
waitUntil: (promise: Promise<any>) => void;
|
|
passThroughOnException: () => void;
|
|
next: (input?: Request | string, init?: RequestInit) => Promise<Response>;
|
|
env: Env & { ASSETS: { fetch: typeof fetch } };
|
|
params: Params<P>;
|
|
data: Data;
|
|
pluginArgs: PluginArgs;
|
|
};
|
|
|
|
type PagesPluginFunction<
|
|
Env = unknown,
|
|
Params extends string = any,
|
|
Data extends Record<string, unknown> = Record<string, unknown>,
|
|
PluginArgs = unknown
|
|
> = (
|
|
context: EventPluginContext<Env, Params, Data, PluginArgs>
|
|
) => Response | Promise<Response>;
|
|
|
|
declare module "assets:*" {
|
|
export const onRequest: PagesFunction;
|
|
}
|
|
|
|
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
// https://opensource.org/licenses/Apache-2.0
|
|
declare module "cloudflare:pipelines" {
|
|
export abstract class PipelineTransformationEntrypoint<Env = unknown, I extends PipelineRecord = PipelineRecord, O extends PipelineRecord = PipelineRecord> {
|
|
protected env: Env;
|
|
protected ctx: ExecutionContext;
|
|
constructor(ctx: ExecutionContext, env: Env);
|
|
|
|
/**
|
|
* run receives an array of PipelineRecord which can be
|
|
* transformed and returned to the pipeline
|
|
* @param records Incoming records from the pipeline to be transformed
|
|
* @param metadata Information about the specific pipeline calling the transformation entrypoint
|
|
* @returns A promise containing the transformed PipelineRecord array
|
|
*/
|
|
public run(records: I[], metadata: PipelineBatchMetadata): Promise<O[]>;
|
|
}
|
|
export type PipelineRecord = Record<string, unknown>
|
|
export type PipelineBatchMetadata = {
|
|
pipelineId: string;
|
|
pipelineName: string;
|
|
}
|
|
export interface Pipeline<T extends PipelineRecord = PipelineRecord> {
|
|
/**
|
|
* The Pipeline interface represents the type of a binding to a Pipeline
|
|
*
|
|
* @param records The records to send to the pipeline
|
|
*/
|
|
send(records: T[]): Promise<void>
|
|
}
|
|
}
|
|
|
|
// PubSubMessage represents an incoming PubSub message.
|
|
// The message includes metadata about the broker, the client, and the payload
|
|
// itself.
|
|
// https://developers.cloudflare.com/pub-sub/
|
|
interface PubSubMessage {
|
|
// Message ID
|
|
readonly mid: number;
|
|
// MQTT broker FQDN in the form mqtts://BROKER.NAMESPACE.cloudflarepubsub.com:PORT
|
|
readonly broker: string;
|
|
// The MQTT topic the message was sent on.
|
|
readonly topic: string;
|
|
// The client ID of the client that published this message.
|
|
readonly clientId: string;
|
|
// The unique identifier (JWT ID) used by the client to authenticate, if token
|
|
// auth was used.
|
|
readonly jti?: string;
|
|
// A Unix timestamp (seconds from Jan 1, 1970), set when the Pub/Sub Broker
|
|
// received the message from the client.
|
|
readonly receivedAt: number;
|
|
// An (optional) string with the MIME type of the payload, if set by the
|
|
// client.
|
|
readonly contentType: string;
|
|
// Set to 1 when the payload is a UTF-8 string
|
|
// https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901063
|
|
readonly payloadFormatIndicator: number;
|
|
// Pub/Sub (MQTT) payloads can be UTF-8 strings, or byte arrays.
|
|
// You can use payloadFormatIndicator to inspect this before decoding.
|
|
payload: string | Uint8Array;
|
|
}
|
|
|
|
// JsonWebKey extended by kid parameter
|
|
interface JsonWebKeyWithKid extends JsonWebKey {
|
|
// Key Identifier of the JWK
|
|
readonly kid: string;
|
|
}
|
|
|
|
interface RateLimitOptions {
|
|
key: string
|
|
}
|
|
|
|
interface RateLimitOutcome {
|
|
success: boolean
|
|
}
|
|
|
|
interface RateLimit {
|
|
/**
|
|
* Rate limit a request based on the provided options.
|
|
* @see https://developers.cloudflare.com/workers/runtime-apis/bindings/rate-limit/
|
|
* @returns A promise that resolves with the outcome of the rate limit.
|
|
*/
|
|
limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
|
|
}
|
|
|
|
// Namespace for RPC utility types. Unfortunately, we can't use a \`module\` here as these types need
|
|
// to referenced by \`Fetcher\`. This is included in the "importable" version of the types which
|
|
// strips all \`module\` blocks.
|
|
declare namespace Rpc {
|
|
// Branded types for identifying \`WorkerEntrypoint\`/\`DurableObject\`/\`Target\`s.
|
|
// TypeScript uses *structural* typing meaning anything with the same shape as type \`T\` is a \`T\`.
|
|
// For the classes exported by \`cloudflare:workers\` we want *nominal* typing (i.e. we only want to
|
|
// accept \`WorkerEntrypoint\` from \`cloudflare:workers\`, not any other class with the same shape)
|
|
export const __RPC_STUB_BRAND: '__RPC_STUB_BRAND';
|
|
export const __RPC_TARGET_BRAND: '__RPC_TARGET_BRAND';
|
|
export const __WORKER_ENTRYPOINT_BRAND: '__WORKER_ENTRYPOINT_BRAND';
|
|
export const __DURABLE_OBJECT_BRAND: '__DURABLE_OBJECT_BRAND';
|
|
export const __WORKFLOW_ENTRYPOINT_BRAND: '__WORKFLOW_ENTRYPOINT_BRAND';
|
|
export interface RpcTargetBranded {
|
|
[__RPC_TARGET_BRAND]: never;
|
|
}
|
|
export interface WorkerEntrypointBranded {
|
|
[__WORKER_ENTRYPOINT_BRAND]: never;
|
|
}
|
|
export interface DurableObjectBranded {
|
|
[__DURABLE_OBJECT_BRAND]: never;
|
|
}
|
|
export interface WorkflowEntrypointBranded {
|
|
[__WORKFLOW_ENTRYPOINT_BRAND]: never;
|
|
}
|
|
export type EntrypointBranded =
|
|
| WorkerEntrypointBranded
|
|
| DurableObjectBranded
|
|
| WorkflowEntrypointBranded;
|
|
|
|
// Types that can be used through \`Stub\`s
|
|
export type Stubable = RpcTargetBranded | ((...args: any[]) => any);
|
|
|
|
// Types that can be passed over RPC
|
|
// The reason for using a generic type here is to build a serializable subset of structured
|
|
// cloneable composite types. This allows types defined with the "interface" keyword to pass the
|
|
// serializable check as well. Otherwise, only types defined with the "type" keyword would pass.
|
|
type Serializable<T> =
|
|
// Structured cloneables
|
|
| BaseType
|
|
// Structured cloneable composites
|
|
| Map<
|
|
T extends Map<infer U, unknown> ? Serializable<U> : never,
|
|
T extends Map<unknown, infer U> ? Serializable<U> : never
|
|
>
|
|
| Set<T extends Set<infer U> ? Serializable<U> : never>
|
|
| ReadonlyArray<T extends ReadonlyArray<infer U> ? Serializable<U> : never>
|
|
| {
|
|
[K in keyof T]: K extends number | string ? Serializable<T[K]> : never;
|
|
}
|
|
// Special types
|
|
| Stub<Stubable>
|
|
// Serialized as stubs, see \`Stubify\`
|
|
| Stubable;
|
|
|
|
// Base type for all RPC stubs, including common memory management methods.
|
|
// \`T\` is used as a marker type for unwrapping \`Stub\`s later.
|
|
interface StubBase<T extends Stubable> extends Disposable {
|
|
[__RPC_STUB_BRAND]: T;
|
|
dup(): this;
|
|
}
|
|
export type Stub<T extends Stubable> = Provider<T> & StubBase<T>;
|
|
|
|
// This represents all the types that can be sent as-is over an RPC boundary
|
|
type BaseType =
|
|
| void
|
|
| undefined
|
|
| null
|
|
| boolean
|
|
| number
|
|
| bigint
|
|
| string
|
|
| TypedArray
|
|
| ArrayBuffer
|
|
| DataView
|
|
| Date
|
|
| Error
|
|
| RegExp
|
|
| ReadableStream<Uint8Array>
|
|
| WritableStream<Uint8Array>
|
|
| Request
|
|
| Response
|
|
| Headers;
|
|
// Recursively rewrite all \`Stubable\` types with \`Stub\`s
|
|
// prettier-ignore
|
|
type Stubify<T> =
|
|
T extends Stubable ? Stub<T>
|
|
: T extends Map<infer K, infer V> ? Map<Stubify<K>, Stubify<V>>
|
|
: T extends Set<infer V> ? Set<Stubify<V>>
|
|
: T extends Array<infer V> ? Array<Stubify<V>>
|
|
: T extends ReadonlyArray<infer V> ? ReadonlyArray<Stubify<V>>
|
|
: T extends BaseType ? T
|
|
// When using "unknown" instead of "any", interfaces are not stubified.
|
|
: T extends { [key: string | number]: any } ? { [K in keyof T]: Stubify<T[K]> }
|
|
: T;
|
|
|
|
// Recursively rewrite all \`Stub<T>\`s with the corresponding \`T\`s.
|
|
// Note we use \`StubBase\` instead of \`Stub\` here to avoid circular dependencies:
|
|
// \`Stub\` depends on \`Provider\`, which depends on \`Unstubify\`, which would depend on \`Stub\`.
|
|
// prettier-ignore
|
|
type Unstubify<T> =
|
|
T extends StubBase<infer V> ? V
|
|
: T extends Map<infer K, infer V> ? Map<Unstubify<K>, Unstubify<V>>
|
|
: T extends Set<infer V> ? Set<Unstubify<V>>
|
|
: T extends Array<infer V> ? Array<Unstubify<V>>
|
|
: T extends ReadonlyArray<infer V> ? ReadonlyArray<Unstubify<V>>
|
|
: T extends BaseType ? T
|
|
: T extends { [key: string | number]: unknown } ? { [K in keyof T]: Unstubify<T[K]> }
|
|
: T;
|
|
type UnstubifyAll<A extends any[]> = { [I in keyof A]: Unstubify<A[I]> };
|
|
|
|
// Utility type for adding \`Provider\`/\`Disposable\`s to \`object\` types only.
|
|
// Note \`unknown & T\` is equivalent to \`T\`.
|
|
type MaybeProvider<T> = T extends object ? Provider<T> : unknown;
|
|
type MaybeDisposable<T> = T extends object ? Disposable : unknown;
|
|
|
|
// Type for method return or property on an RPC interface.
|
|
// - Stubable types are replaced by stubs.
|
|
// - Serializable types are passed by value, with stubable types replaced by stubs
|
|
// and a top-level \`Disposer\`.
|
|
// Everything else can't be passed over PRC.
|
|
// Technically, we use custom thenables here, but they quack like \`Promise\`s.
|
|
// Intersecting with \`(Maybe)Provider\` allows pipelining.
|
|
// prettier-ignore
|
|
type Result<R> =
|
|
R extends Stubable ? Promise<Stub<R>> & Provider<R>
|
|
: R extends Serializable<R> ? Promise<Stubify<R> & MaybeDisposable<R>> & MaybeProvider<R>
|
|
: never;
|
|
|
|
// Type for method or property on an RPC interface.
|
|
// For methods, unwrap \`Stub\`s in parameters, and rewrite returns to be \`Result\`s.
|
|
// Unwrapping \`Stub\`s allows calling with \`Stubable\` arguments.
|
|
// For properties, rewrite types to be \`Result\`s.
|
|
// In each case, unwrap \`Promise\`s.
|
|
type MethodOrProperty<V> = V extends (...args: infer P) => infer R
|
|
? (...args: UnstubifyAll<P>) => Result<Awaited<R>>
|
|
: Result<Awaited<V>>;
|
|
|
|
// Type for the callable part of an \`Provider\` if \`T\` is callable.
|
|
// This is intersected with methods/properties.
|
|
type MaybeCallableProvider<T> = T extends (...args: any[]) => any
|
|
? MethodOrProperty<T>
|
|
: unknown;
|
|
|
|
// Base type for all other types providing RPC-like interfaces.
|
|
// Rewrites all methods/properties to be \`MethodOrProperty\`s, while preserving callable types.
|
|
// \`Reserved\` names (e.g. stub method names like \`dup()\`) and symbols can't be accessed over RPC.
|
|
export type Provider<
|
|
T extends object,
|
|
Reserved extends string = never,
|
|
> = MaybeCallableProvider<T> & Pick<
|
|
{
|
|
[K in keyof T]: MethodOrProperty<T[K]>;
|
|
},
|
|
Exclude<
|
|
keyof T,
|
|
Reserved | symbol | keyof StubBase<never>
|
|
>
|
|
>
|
|
}
|
|
|
|
declare namespace Cloudflare {
|
|
// Type of \`env\`.
|
|
//
|
|
// The specific project can extend \`Env\` by redeclaring it in project-specific files. Typescript
|
|
// will merge all declarations.
|
|
//
|
|
// You can use \`wrangler types\` to generate the \`Env\` type automatically.
|
|
interface Env {}
|
|
|
|
// Project-specific parameters used to inform types.
|
|
//
|
|
// This interface is, again, intended to be declared in project-specific files, and then that
|
|
// declaration will be merged with this one.
|
|
//
|
|
// A project should have a declaration like this:
|
|
//
|
|
// interface GlobalProps {
|
|
// // Declares the main module's exports. Used to populate Cloudflare.Exports aka the type
|
|
// // of \`ctx.exports\`.
|
|
// mainModule: typeof import("my-main-module");
|
|
//
|
|
// // Declares which of the main module's exports are configured with durable storage, and
|
|
// // thus should behave as Durable Object namsepace bindings.
|
|
// durableNamespaces: "MyDurableObject" | "AnotherDurableObject";
|
|
// }
|
|
//
|
|
// You can use \`wrangler types\` to generate \`GlobalProps\` automatically.
|
|
interface GlobalProps {}
|
|
|
|
// Evaluates to the type of a property in GlobalProps, defaulting to \`Default\` if it is not
|
|
// present.
|
|
type GlobalProp<K extends string, Default> =
|
|
K extends keyof GlobalProps ? GlobalProps[K] : Default;
|
|
|
|
// The type of the program's main module exports, if known. Requires \`GlobalProps\` to declare the
|
|
// \`mainModule\` property.
|
|
type MainModule = GlobalProp<"mainModule", {}>;
|
|
|
|
// The type of ctx.exports, which contains loopback bindings for all top-level exports.
|
|
type Exports = {
|
|
[K in keyof MainModule]:
|
|
& LoopbackForExport<MainModule[K]>
|
|
|
|
// If the export is listed in \`durableNamespaces\`, then it is also a
|
|
// DurableObjectNamespace.
|
|
& (K extends GlobalProp<"durableNamespaces", never>
|
|
? MainModule[K] extends new (...args: any[]) => infer DoInstance
|
|
? DoInstance extends Rpc.DurableObjectBranded
|
|
? DurableObjectNamespace<DoInstance>
|
|
: DurableObjectNamespace<undefined>
|
|
: DurableObjectNamespace<undefined>
|
|
: {});
|
|
};
|
|
}
|
|
|
|
declare namespace CloudflareWorkersModule {
|
|
export type RpcStub<T extends Rpc.Stubable> = Rpc.Stub<T>;
|
|
export const RpcStub: {
|
|
new <T extends Rpc.Stubable>(value: T): Rpc.Stub<T>;
|
|
};
|
|
|
|
export abstract class RpcTarget implements Rpc.RpcTargetBranded {
|
|
[Rpc.__RPC_TARGET_BRAND]: never;
|
|
}
|
|
|
|
// \`protected\` fields don't appear in \`keyof\`s, so can't be accessed over RPC
|
|
|
|
export abstract class WorkerEntrypoint<
|
|
Env = Cloudflare.Env,
|
|
Props = {},
|
|
> implements Rpc.WorkerEntrypointBranded
|
|
{
|
|
[Rpc.__WORKER_ENTRYPOINT_BRAND]: never;
|
|
|
|
protected ctx: ExecutionContext<Props>;
|
|
protected env: Env;
|
|
constructor(ctx: ExecutionContext, env: Env);
|
|
|
|
email?(message: ForwardableEmailMessage): void | Promise<void>;
|
|
fetch?(request: Request): Response | Promise<Response>;
|
|
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
|
|
scheduled?(controller: ScheduledController): void | Promise<void>;
|
|
tail?(events: TraceItem[]): void | Promise<void>;
|
|
tailStream?(event: TailStream.TailEvent<TailStream.Onset>): TailStream.TailEventHandlerType | Promise<TailStream.TailEventHandlerType>;
|
|
test?(controller: TestController): void | Promise<void>;
|
|
trace?(traces: TraceItem[]): void | Promise<void>;
|
|
}
|
|
|
|
export abstract class DurableObject<
|
|
Env = Cloudflare.Env,
|
|
Props = {},
|
|
> implements Rpc.DurableObjectBranded
|
|
{
|
|
[Rpc.__DURABLE_OBJECT_BRAND]: never;
|
|
|
|
protected ctx: DurableObjectState<Props>;
|
|
protected env: Env;
|
|
constructor(ctx: DurableObjectState, env: Env);
|
|
|
|
alarm?(alarmInfo?: AlarmInvocationInfo): void | Promise<void>;
|
|
fetch?(request: Request): Response | Promise<Response>;
|
|
webSocketMessage?(
|
|
ws: WebSocket,
|
|
message: string | ArrayBuffer
|
|
): void | Promise<void>;
|
|
webSocketClose?(
|
|
ws: WebSocket,
|
|
code: number,
|
|
reason: string,
|
|
wasClean: boolean
|
|
): void | Promise<void>;
|
|
webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>;
|
|
}
|
|
|
|
export type WorkflowDurationLabel =
|
|
| 'second'
|
|
| 'minute'
|
|
| 'hour'
|
|
| 'day'
|
|
| 'week'
|
|
| 'month'
|
|
| 'year';
|
|
|
|
export type WorkflowSleepDuration =
|
|
| \`\${number} \${WorkflowDurationLabel}\${'s' | ''}\`
|
|
| number;
|
|
|
|
export type WorkflowDelayDuration = WorkflowSleepDuration;
|
|
|
|
export type WorkflowTimeoutDuration = WorkflowSleepDuration;
|
|
|
|
export type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
|
|
export type WorkflowBackoff = 'constant' | 'linear' | 'exponential';
|
|
|
|
export type WorkflowStepConfig = {
|
|
retries?: {
|
|
limit: number;
|
|
delay: WorkflowDelayDuration | number;
|
|
backoff?: WorkflowBackoff;
|
|
};
|
|
timeout?: WorkflowTimeoutDuration | number;
|
|
};
|
|
|
|
export type WorkflowEvent<T> = {
|
|
payload: Readonly<T>;
|
|
timestamp: Date;
|
|
instanceId: string;
|
|
};
|
|
|
|
export type WorkflowStepEvent<T> = {
|
|
payload: Readonly<T>;
|
|
timestamp: Date;
|
|
type: string;
|
|
};
|
|
|
|
export abstract class WorkflowStep {
|
|
do<T extends Rpc.Serializable<T>>(
|
|
name: string,
|
|
callback: () => Promise<T>
|
|
): Promise<T>;
|
|
do<T extends Rpc.Serializable<T>>(
|
|
name: string,
|
|
config: WorkflowStepConfig,
|
|
callback: () => Promise<T>
|
|
): Promise<T>;
|
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
name: string,
|
|
options: {
|
|
type: string;
|
|
timeout?: WorkflowTimeoutDuration | number;
|
|
}
|
|
): Promise<WorkflowStepEvent<T>>;
|
|
}
|
|
|
|
export type WorkflowInstanceStatus =
|
|
| 'queued'
|
|
| 'running'
|
|
| 'paused'
|
|
| 'errored'
|
|
| 'terminated'
|
|
| 'complete'
|
|
| 'waiting'
|
|
| 'waitingForPause'
|
|
| 'unknown';
|
|
|
|
export abstract class WorkflowEntrypoint<
|
|
Env = unknown,
|
|
T extends Rpc.Serializable<T> | unknown = unknown,
|
|
> implements Rpc.WorkflowEntrypointBranded
|
|
{
|
|
[Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never;
|
|
|
|
protected ctx: ExecutionContext;
|
|
protected env: Env;
|
|
|
|
constructor(ctx: ExecutionContext, env: Env);
|
|
|
|
run(
|
|
event: Readonly<WorkflowEvent<T>>,
|
|
step: WorkflowStep
|
|
): Promise<unknown>;
|
|
}
|
|
|
|
export function waitUntil(promise: Promise<unknown>): void;
|
|
|
|
export function withEnv(newEnv: unknown, fn: () => unknown): unknown;
|
|
export function withExports(
|
|
newExports: unknown,
|
|
fn: () => unknown
|
|
): unknown;
|
|
export function withEnvAndExports(
|
|
newEnv: unknown,
|
|
newExports: unknown,
|
|
fn: () => unknown
|
|
): unknown;
|
|
|
|
export const env: Cloudflare.Env;
|
|
export const exports: Cloudflare.Exports;
|
|
}
|
|
|
|
declare module 'cloudflare:workers' {
|
|
export = CloudflareWorkersModule;
|
|
}
|
|
|
|
interface SecretsStoreSecret {
|
|
/**
|
|
* Get a secret from the Secrets Store, returning a string of the secret value
|
|
* if it exists, or throws an error if it does not exist
|
|
*/
|
|
get(): Promise<string>;
|
|
}
|
|
|
|
declare module "cloudflare:sockets" {
|
|
function _connect(address: string | SocketAddress, options?: SocketOptions): Socket;
|
|
export { _connect as connect };
|
|
}
|
|
|
|
export type MarkdownDocument = {
|
|
name: string;
|
|
blob: Blob;
|
|
}
|
|
|
|
export type ConversionResponse = {
|
|
id: string;
|
|
name: string;
|
|
mimeType: string;
|
|
format: 'markdown';
|
|
tokens: number;
|
|
data: string;
|
|
} | {
|
|
id: string;
|
|
name: string;
|
|
mimeType: string;
|
|
format: 'error';
|
|
error: string;
|
|
};
|
|
|
|
export type ImageConversionOptions = {
|
|
descriptionLanguage?: 'en' | 'es' | 'fr' | 'it' | 'pt' | 'de';
|
|
}
|
|
|
|
export type EmbeddedImageConversionOptions = ImageConversionOptions & {
|
|
convert?: boolean;
|
|
maxConvertedImages?: number;
|
|
};
|
|
|
|
export type ConversionOptions = {
|
|
html?: {
|
|
images?: EmbeddedImageConversionOptions & { convertOGImage?: boolean };
|
|
hostname?: string;
|
|
},
|
|
docx?: {
|
|
images?: EmbeddedImageConversionOptions;
|
|
},
|
|
image?: ImageConversionOptions;
|
|
pdf?: {
|
|
images?: EmbeddedImageConversionOptions;
|
|
metadata?: boolean;
|
|
},
|
|
};
|
|
|
|
export type ConversionRequestOptions = {
|
|
gateway?: GatewayOptions;
|
|
extraHeaders?: object;
|
|
conversionOptions?: ConversionOptions;
|
|
};
|
|
|
|
export type SupportedFileFormat = {
|
|
mimeType: string;
|
|
extension: string;
|
|
};
|
|
|
|
export declare abstract class ToMarkdownService {
|
|
transform(
|
|
files: MarkdownDocument[],
|
|
options?: ConversionRequestOptions
|
|
): Promise<ConversionResponse[]>;
|
|
transform(
|
|
files: MarkdownDocument,
|
|
options?: ConversionRequestOptions
|
|
): Promise<ConversionResponse>;
|
|
supported(): Promise<SupportedFileFormat[]>
|
|
}
|
|
|
|
declare namespace TailStream {
|
|
|
|
interface Header {
|
|
readonly name: string;
|
|
readonly value: string;
|
|
}
|
|
|
|
interface FetchEventInfo {
|
|
readonly type: "fetch";
|
|
readonly method: string;
|
|
readonly url: string;
|
|
readonly cfJson?: object;
|
|
readonly headers: Header[];
|
|
}
|
|
|
|
interface JsRpcEventInfo {
|
|
readonly type: "jsrpc";
|
|
}
|
|
|
|
interface ScheduledEventInfo {
|
|
readonly type: "scheduled";
|
|
readonly scheduledTime: Date;
|
|
readonly cron: string;
|
|
}
|
|
|
|
interface AlarmEventInfo {
|
|
readonly type: "alarm";
|
|
readonly scheduledTime: Date;
|
|
}
|
|
|
|
interface QueueEventInfo {
|
|
readonly type: "queue";
|
|
readonly queueName: string;
|
|
readonly batchSize: number;
|
|
}
|
|
|
|
interface EmailEventInfo {
|
|
readonly type: "email";
|
|
readonly mailFrom: string;
|
|
readonly rcptTo: string;
|
|
readonly rawSize: number;
|
|
}
|
|
|
|
interface TraceEventInfo {
|
|
readonly type: "trace";
|
|
readonly traces: (string | null)[];
|
|
}
|
|
|
|
interface HibernatableWebSocketEventInfoMessage {
|
|
readonly type: "message";
|
|
}
|
|
interface HibernatableWebSocketEventInfoError {
|
|
readonly type: "error";
|
|
}
|
|
interface HibernatableWebSocketEventInfoClose {
|
|
readonly type: "close";
|
|
readonly code: number;
|
|
readonly wasClean: boolean;
|
|
}
|
|
|
|
interface HibernatableWebSocketEventInfo {
|
|
readonly type: "hibernatableWebSocket";
|
|
readonly info: HibernatableWebSocketEventInfoClose |
|
|
HibernatableWebSocketEventInfoError |
|
|
HibernatableWebSocketEventInfoMessage;
|
|
}
|
|
|
|
interface CustomEventInfo {
|
|
readonly type: "custom";
|
|
}
|
|
|
|
interface FetchResponseInfo {
|
|
readonly type: "fetch";
|
|
readonly statusCode: number;
|
|
}
|
|
|
|
type EventOutcome = "ok" | "canceled" | "exception" | "unknown" | "killSwitch" |
|
|
"daemonDown" | "exceededCpu" | "exceededMemory" | "loadShed" |
|
|
"responseStreamDisconnected" | "scriptNotFound";
|
|
|
|
interface ScriptVersion {
|
|
readonly id: string;
|
|
readonly tag?: string;
|
|
readonly message?: string;
|
|
}
|
|
|
|
interface Onset {
|
|
readonly type: "onset";
|
|
readonly attributes: Attribute[];
|
|
// id for the span being opened by this Onset event.
|
|
readonly spanId: string;
|
|
readonly dispatchNamespace?: string;
|
|
readonly entrypoint?: string;
|
|
readonly executionModel: string;
|
|
readonly scriptName?: string;
|
|
readonly scriptTags?: string[];
|
|
readonly scriptVersion?: ScriptVersion;
|
|
readonly info: FetchEventInfo | JsRpcEventInfo | ScheduledEventInfo |
|
|
AlarmEventInfo | QueueEventInfo | EmailEventInfo |
|
|
TraceEventInfo | HibernatableWebSocketEventInfo |
|
|
CustomEventInfo;
|
|
}
|
|
|
|
interface Outcome {
|
|
readonly type: "outcome";
|
|
readonly outcome: EventOutcome;
|
|
readonly cpuTime: number;
|
|
readonly wallTime: number;
|
|
}
|
|
|
|
interface SpanOpen {
|
|
readonly type: "spanOpen";
|
|
readonly name: string;
|
|
// id for the span being opened by this SpanOpen event.
|
|
readonly spanId: string;
|
|
readonly info?: FetchEventInfo | JsRpcEventInfo | Attributes;
|
|
}
|
|
|
|
interface SpanClose {
|
|
readonly type: "spanClose";
|
|
readonly outcome: EventOutcome;
|
|
}
|
|
|
|
interface DiagnosticChannelEvent {
|
|
readonly type: "diagnosticChannel";
|
|
readonly channel: string;
|
|
readonly message: any;
|
|
}
|
|
|
|
interface Exception {
|
|
readonly type: "exception";
|
|
readonly name: string;
|
|
readonly message: string;
|
|
readonly stack?: string;
|
|
}
|
|
|
|
interface Log {
|
|
readonly type: "log";
|
|
readonly level: "debug" | "error" | "info" | "log" | "warn";
|
|
readonly message: object;
|
|
}
|
|
|
|
interface DroppedEventsDiagnostic {
|
|
readonly diagnosticsType: "droppedEvents";
|
|
readonly count: number;
|
|
}
|
|
|
|
interface StreamDiagnostic {
|
|
readonly type: 'streamDiagnostic';
|
|
// To add new diagnostic types, define a new interface and add it to this union type.
|
|
readonly diagnostic: DroppedEventsDiagnostic;
|
|
}
|
|
|
|
// This marks the worker handler return information.
|
|
// This is separate from Outcome because the worker invocation can live for a long time after
|
|
// returning. For example - Websockets that return an http upgrade response but then continue
|
|
// streaming information or SSE http connections.
|
|
interface Return {
|
|
readonly type: "return";
|
|
readonly info?: FetchResponseInfo;
|
|
}
|
|
|
|
interface Attribute {
|
|
readonly name: string;
|
|
readonly value: string | string[] | boolean | boolean[] | number | number[] | bigint | bigint[];
|
|
}
|
|
|
|
interface Attributes {
|
|
readonly type: "attributes";
|
|
readonly info: Attribute[];
|
|
}
|
|
|
|
type EventType =
|
|
| Onset
|
|
| Outcome
|
|
| SpanOpen
|
|
| SpanClose
|
|
| DiagnosticChannelEvent
|
|
| Exception
|
|
| Log
|
|
| StreamDiagnostic
|
|
| Return
|
|
| Attributes;
|
|
|
|
// Context in which this trace event lives.
|
|
interface SpanContext {
|
|
// Single id for the entire top-level invocation
|
|
// This should be a new traceId for the first worker stage invoked in the eyeball request and then
|
|
// same-account service-bindings should reuse the same traceId but cross-account service-bindings
|
|
// should use a new traceId.
|
|
readonly traceId: string;
|
|
// spanId in which this event is handled
|
|
// for Onset and SpanOpen events this would be the parent span id
|
|
// for Outcome and SpanClose these this would be the span id of the opening Onset and SpanOpen events
|
|
// For Hibernate and Mark this would be the span under which they were emitted.
|
|
// spanId is not set ONLY if:
|
|
// 1. This is an Onset event
|
|
// 2. We are not inheriting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation)
|
|
readonly spanId?: string;
|
|
}
|
|
|
|
interface TailEvent<Event extends EventType> {
|
|
// invocation id of the currently invoked worker stage.
|
|
// invocation id will always be unique to every Onset event and will be the same until the Outcome event.
|
|
readonly invocationId: string;
|
|
// Inherited spanContext for this event.
|
|
readonly spanContext: SpanContext;
|
|
readonly timestamp: Date;
|
|
readonly sequence: number;
|
|
readonly event: Event;
|
|
}
|
|
|
|
type TailEventHandler<Event extends EventType = EventType> = (
|
|
event: TailEvent<Event>
|
|
) => void | Promise<void>;
|
|
|
|
type TailEventHandlerObject = {
|
|
outcome?: TailEventHandler<Outcome>;
|
|
spanOpen?: TailEventHandler<SpanOpen>;
|
|
spanClose?: TailEventHandler<SpanClose>;
|
|
diagnosticChannel?: TailEventHandler<DiagnosticChannelEvent>;
|
|
exception?: TailEventHandler<Exception>;
|
|
log?: TailEventHandler<Log>;
|
|
return?: TailEventHandler<Return>;
|
|
attributes?: TailEventHandler<Attributes>;
|
|
};
|
|
|
|
type TailEventHandlerType = TailEventHandler | TailEventHandlerObject;
|
|
}
|
|
|
|
// Copyright (c) 2022-2023 Cloudflare, Inc.
|
|
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
// https://opensource.org/licenses/Apache-2.0
|
|
|
|
/**
|
|
* Data types supported for holding vector metadata.
|
|
*/
|
|
type VectorizeVectorMetadataValue = string | number | boolean | string[];
|
|
/**
|
|
* Additional information to associate with a vector.
|
|
*/
|
|
type VectorizeVectorMetadata =
|
|
| VectorizeVectorMetadataValue
|
|
| Record<string, VectorizeVectorMetadataValue>;
|
|
|
|
type VectorFloatArray = Float32Array | Float64Array;
|
|
|
|
interface VectorizeError {
|
|
code?: number;
|
|
error: string;
|
|
}
|
|
|
|
/**
|
|
* Comparison logic/operation to use for metadata filtering.
|
|
*
|
|
* This list is expected to grow as support for more operations are released.
|
|
*/
|
|
type VectorizeVectorMetadataFilterOp =
|
|
| '$eq'
|
|
| '$ne'
|
|
| '$lt'
|
|
| '$lte'
|
|
| '$gt'
|
|
| '$gte';
|
|
type VectorizeVectorMetadataFilterCollectionOp = '$in' | '$nin';
|
|
|
|
/**
|
|
* Filter criteria for vector metadata used to limit the retrieved query result set.
|
|
*/
|
|
type VectorizeVectorMetadataFilter = {
|
|
[field: string]:
|
|
| Exclude<VectorizeVectorMetadataValue, string[]>
|
|
| null
|
|
| {
|
|
[Op in VectorizeVectorMetadataFilterOp]?: Exclude<
|
|
VectorizeVectorMetadataValue,
|
|
string[]
|
|
> | null;
|
|
}
|
|
| {
|
|
[Op in VectorizeVectorMetadataFilterCollectionOp]?: Exclude<
|
|
VectorizeVectorMetadataValue,
|
|
string[]
|
|
>[];
|
|
};
|
|
};
|
|
|
|
/**
|
|
* Supported distance metrics for an index.
|
|
* Distance metrics determine how other "similar" vectors are determined.
|
|
*/
|
|
type VectorizeDistanceMetric = "euclidean" | "cosine" | "dot-product";
|
|
|
|
/**
|
|
* Metadata return levels for a Vectorize query.
|
|
*
|
|
* Default to "none".
|
|
*
|
|
* @property all Full metadata for the vector return set, including all fields (including those un-indexed) without truncation. This is a more expensive retrieval, as it requires additional fetching & reading of un-indexed data.
|
|
* @property indexed Return all metadata fields configured for indexing in the vector return set. This level of retrieval is "free" in that no additional overhead is incurred returning this data. However, note that indexed metadata is subject to truncation (especially for larger strings).
|
|
* @property none No indexed metadata will be returned.
|
|
*/
|
|
type VectorizeMetadataRetrievalLevel = "all" | "indexed" | "none";
|
|
|
|
interface VectorizeQueryOptions {
|
|
topK?: number;
|
|
namespace?: string;
|
|
returnValues?: boolean;
|
|
returnMetadata?: boolean | VectorizeMetadataRetrievalLevel;
|
|
filter?: VectorizeVectorMetadataFilter;
|
|
}
|
|
|
|
/**
|
|
* Information about the configuration of an index.
|
|
*/
|
|
type VectorizeIndexConfig =
|
|
| {
|
|
dimensions: number;
|
|
metric: VectorizeDistanceMetric;
|
|
}
|
|
| {
|
|
preset: string; // keep this generic, as we'll be adding more presets in the future and this is only in a read capacity
|
|
};
|
|
|
|
/**
|
|
* Metadata about an existing index.
|
|
*
|
|
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
* See {@link VectorizeIndexInfo} for its post-beta equivalent.
|
|
*/
|
|
interface VectorizeIndexDetails {
|
|
/** The unique ID of the index */
|
|
readonly id: string;
|
|
/** The name of the index. */
|
|
name: string;
|
|
/** (optional) A human readable description for the index. */
|
|
description?: string;
|
|
/** The index configuration, including the dimension size and distance metric. */
|
|
config: VectorizeIndexConfig;
|
|
/** The number of records containing vectors within the index. */
|
|
vectorsCount: number;
|
|
}
|
|
|
|
/**
|
|
* Metadata about an existing index.
|
|
*/
|
|
interface VectorizeIndexInfo {
|
|
/** The number of records containing vectors within the index. */
|
|
vectorCount: number;
|
|
/** Number of dimensions the index has been configured for. */
|
|
dimensions: number;
|
|
/** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */
|
|
processedUpToDatetime: number;
|
|
/** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */
|
|
processedUpToMutation: number;
|
|
}
|
|
|
|
/**
|
|
* Represents a single vector value set along with its associated metadata.
|
|
*/
|
|
interface VectorizeVector {
|
|
/** The ID for the vector. This can be user-defined, and must be unique. It should uniquely identify the object, and is best set based on the ID of what the vector represents. */
|
|
id: string;
|
|
/** The vector values */
|
|
values: VectorFloatArray | number[];
|
|
/** The namespace this vector belongs to. */
|
|
namespace?: string;
|
|
/** Metadata associated with the vector. Includes the values of other fields and potentially additional details. */
|
|
metadata?: Record<string, VectorizeVectorMetadata>;
|
|
}
|
|
|
|
/**
|
|
* Represents a matched vector for a query along with its score and (if specified) the matching vector information.
|
|
*/
|
|
type VectorizeMatch = Pick<Partial<VectorizeVector>, "values"> &
|
|
Omit<VectorizeVector, "values"> & {
|
|
/** The score or rank for similarity, when returned as a result */
|
|
score: number;
|
|
};
|
|
|
|
/**
|
|
* A set of matching {@link VectorizeMatch} for a particular query.
|
|
*/
|
|
interface VectorizeMatches {
|
|
matches: VectorizeMatch[];
|
|
count: number;
|
|
}
|
|
|
|
/**
|
|
* Results of an operation that performed a mutation on a set of vectors.
|
|
* Here, \`ids\` is a list of vectors that were successfully processed.
|
|
*
|
|
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
* See {@link VectorizeAsyncMutation} for its post-beta equivalent.
|
|
*/
|
|
interface VectorizeVectorMutation {
|
|
/* List of ids of vectors that were successfully processed. */
|
|
ids: string[];
|
|
/* Total count of the number of processed vectors. */
|
|
count: number;
|
|
}
|
|
|
|
/**
|
|
* Result type indicating a mutation on the Vectorize Index.
|
|
* Actual mutations are processed async where the \`mutationId\` is the unique identifier for the operation.
|
|
*/
|
|
interface VectorizeAsyncMutation {
|
|
/** The unique identifier for the async mutation operation containing the changeset. */
|
|
mutationId: string;
|
|
}
|
|
|
|
/**
|
|
* A Vectorize Vector Search Index for querying vectors/embeddings.
|
|
*
|
|
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
* See {@link Vectorize} for its new implementation.
|
|
*/
|
|
declare abstract class VectorizeIndex {
|
|
/**
|
|
* Get information about the currently bound index.
|
|
* @returns A promise that resolves with information about the current index.
|
|
*/
|
|
public describe(): Promise<VectorizeIndexDetails>;
|
|
/**
|
|
* Use the provided vector to perform a similarity search across the index.
|
|
* @param vector Input vector that will be used to drive the similarity search.
|
|
* @param options Configuration options to massage the returned data.
|
|
* @returns A promise that resolves with matched and scored vectors.
|
|
*/
|
|
public query(
|
|
vector: VectorFloatArray | number[],
|
|
options?: VectorizeQueryOptions
|
|
): Promise<VectorizeMatches>;
|
|
/**
|
|
* Insert a list of vectors into the index dataset. If a provided id exists, an error will be thrown.
|
|
* @param vectors List of vectors that will be inserted.
|
|
* @returns A promise that resolves with the ids & count of records that were successfully processed.
|
|
*/
|
|
public insert(vectors: VectorizeVector[]): Promise<VectorizeVectorMutation>;
|
|
/**
|
|
* Upsert a list of vectors into the index dataset. If a provided id exists, it will be replaced with the new values.
|
|
* @param vectors List of vectors that will be upserted.
|
|
* @returns A promise that resolves with the ids & count of records that were successfully processed.
|
|
*/
|
|
public upsert(vectors: VectorizeVector[]): Promise<VectorizeVectorMutation>;
|
|
/**
|
|
* Delete a list of vectors with a matching id.
|
|
* @param ids List of vector ids that should be deleted.
|
|
* @returns A promise that resolves with the ids & count of records that were successfully processed (and thus deleted).
|
|
*/
|
|
public deleteByIds(ids: string[]): Promise<VectorizeVectorMutation>;
|
|
/**
|
|
* Get a list of vectors with a matching id.
|
|
* @param ids List of vector ids that should be returned.
|
|
* @returns A promise that resolves with the raw unscored vectors matching the id set.
|
|
*/
|
|
public getByIds(ids: string[]): Promise<VectorizeVector[]>;
|
|
}
|
|
|
|
/**
|
|
* A Vectorize Vector Search Index for querying vectors/embeddings.
|
|
*
|
|
* Mutations in this version are async, returning a mutation id.
|
|
*/
|
|
declare abstract class Vectorize {
|
|
/**
|
|
* Get information about the currently bound index.
|
|
* @returns A promise that resolves with information about the current index.
|
|
*/
|
|
public describe(): Promise<VectorizeIndexInfo>;
|
|
/**
|
|
* Use the provided vector to perform a similarity search across the index.
|
|
* @param vector Input vector that will be used to drive the similarity search.
|
|
* @param options Configuration options to massage the returned data.
|
|
* @returns A promise that resolves with matched and scored vectors.
|
|
*/
|
|
public query(
|
|
vector: VectorFloatArray | number[],
|
|
options?: VectorizeQueryOptions
|
|
): Promise<VectorizeMatches>;
|
|
/**
|
|
* Use the provided vector-id to perform a similarity search across the index.
|
|
* @param vectorId Id for a vector in the index against which the index should be queried.
|
|
* @param options Configuration options to massage the returned data.
|
|
* @returns A promise that resolves with matched and scored vectors.
|
|
*/
|
|
public queryById(
|
|
vectorId: string,
|
|
options?: VectorizeQueryOptions
|
|
): Promise<VectorizeMatches>;
|
|
/**
|
|
* Insert a list of vectors into the index dataset. If a provided id exists, an error will be thrown.
|
|
* @param vectors List of vectors that will be inserted.
|
|
* @returns A promise that resolves with a unique identifier of a mutation containing the insert changeset.
|
|
*/
|
|
public insert(vectors: VectorizeVector[]): Promise<VectorizeAsyncMutation>;
|
|
/**
|
|
* Upsert a list of vectors into the index dataset. If a provided id exists, it will be replaced with the new values.
|
|
* @param vectors List of vectors that will be upserted.
|
|
* @returns A promise that resolves with a unique identifier of a mutation containing the upsert changeset.
|
|
*/
|
|
public upsert(vectors: VectorizeVector[]): Promise<VectorizeAsyncMutation>;
|
|
/**
|
|
* Delete a list of vectors with a matching id.
|
|
* @param ids List of vector ids that should be deleted.
|
|
* @returns A promise that resolves with a unique identifier of a mutation containing the delete changeset.
|
|
*/
|
|
public deleteByIds(ids: string[]): Promise<VectorizeAsyncMutation>;
|
|
/**
|
|
* Get a list of vectors with a matching id.
|
|
* @param ids List of vector ids that should be returned.
|
|
* @returns A promise that resolves with the raw unscored vectors matching the id set.
|
|
*/
|
|
public getByIds(ids: string[]): Promise<VectorizeVector[]>;
|
|
}
|
|
|
|
/**
|
|
* The interface for "version_metadata" binding
|
|
* providing metadata about the Worker Version using this binding.
|
|
*/
|
|
export type WorkerVersionMetadata = {
|
|
/** The ID of the Worker Version using this binding */
|
|
id: string;
|
|
/** The tag of the Worker Version using this binding */
|
|
tag: string;
|
|
/** The timestamp of when the Worker Version was uploaded */
|
|
timestamp: string;
|
|
}
|
|
|
|
interface DynamicDispatchLimits {
|
|
/**
|
|
* Limit CPU time in milliseconds.
|
|
*/
|
|
cpuMs?: number;
|
|
/**
|
|
* Limit number of subrequests.
|
|
*/
|
|
subRequests?: number;
|
|
}
|
|
|
|
interface DynamicDispatchOptions {
|
|
/**
|
|
* Limit resources of invoked Worker script.
|
|
*/
|
|
limits?: DynamicDispatchLimits
|
|
/**
|
|
* Arguments for outbound Worker script, if configured.
|
|
*/
|
|
outbound?: {[key: string]: any}
|
|
}
|
|
|
|
interface DispatchNamespace {
|
|
/**
|
|
* @param name Name of the Worker script.
|
|
* @param args Arguments to Worker script.
|
|
* @param options Options for Dynamic Dispatch invocation.
|
|
* @returns A Fetcher object that allows you to send requests to the Worker script.
|
|
* @throws If the Worker script does not exist in this dispatch namespace, an error will be thrown.
|
|
*/
|
|
get(name: string, args?: {[key: string]: any}, options?: DynamicDispatchOptions ): Fetcher;
|
|
}
|
|
|
|
declare module 'cloudflare:workflows' {
|
|
/**
|
|
* NonRetryableError allows for a user to throw a fatal error
|
|
* that makes a Workflow instance fail immediately without triggering a retry
|
|
*/
|
|
export class NonRetryableError extends Error {
|
|
public constructor(message: string, name?: string);
|
|
}
|
|
}
|
|
|
|
declare abstract class Workflow<PARAMS = unknown> {
|
|
/**
|
|
* Get a handle to an existing instance of the Workflow.
|
|
* @param id Id for the instance of this Workflow
|
|
* @returns A promise that resolves with a handle for the Instance
|
|
*/
|
|
public get(id: string): Promise<WorkflowInstance>;
|
|
|
|
/**
|
|
* Create a new instance and return a handle to it. If a provided id exists, an error will be thrown.
|
|
* @param options Options when creating an instance including id and params
|
|
* @returns A promise that resolves with a handle for the Instance
|
|
*/
|
|
public create(
|
|
options?: WorkflowInstanceCreateOptions<PARAMS>
|
|
): Promise<WorkflowInstance>;
|
|
|
|
/**
|
|
* Create a batch of instances and return handle for all of them. If a provided id exists, an error will be thrown.
|
|
* \`createBatch\` is limited at 100 instances at a time or when the RPC limit for the batch (1MiB) is reached.
|
|
* @param batch List of Options when creating an instance including name and params
|
|
* @returns A promise that resolves with a list of handles for the created instances.
|
|
*/
|
|
public createBatch(
|
|
batch: WorkflowInstanceCreateOptions<PARAMS>[]
|
|
): Promise<WorkflowInstance[]>;
|
|
}
|
|
|
|
type WorkflowDurationLabel =
|
|
| 'second'
|
|
| 'minute'
|
|
| 'hour'
|
|
| 'day'
|
|
| 'week'
|
|
| 'month'
|
|
| 'year';
|
|
|
|
type WorkflowSleepDuration =
|
|
| \`\${number} \${WorkflowDurationLabel}\${'s' | ''}\`
|
|
| number;
|
|
|
|
type WorkflowRetentionDuration = WorkflowSleepDuration;
|
|
|
|
interface WorkflowInstanceCreateOptions<PARAMS = unknown> {
|
|
/**
|
|
* An id for your Workflow instance. Must be unique within the Workflow.
|
|
*/
|
|
id?: string;
|
|
/**
|
|
* The event payload the Workflow instance is triggered with
|
|
*/
|
|
params?: PARAMS;
|
|
/**
|
|
* The retention policy for Workflow instance.
|
|
* Defaults to the maximum retention period available for the owner's account.
|
|
*/
|
|
retention?: {
|
|
successRetention?: WorkflowRetentionDuration,
|
|
errorRetention?: WorkflowRetentionDuration,
|
|
};
|
|
}
|
|
|
|
type InstanceStatus = {
|
|
status:
|
|
| 'queued' // means that instance is waiting to be started (see concurrency limits)
|
|
| 'running'
|
|
| 'paused'
|
|
| 'errored'
|
|
| 'terminated' // user terminated the instance while it was running
|
|
| 'complete'
|
|
| 'waiting' // instance is hibernating and waiting for sleep or event to finish
|
|
| 'waitingForPause' // instance is finishing the current work to pause
|
|
| 'unknown';
|
|
error?: {
|
|
name: string;
|
|
message: string;
|
|
};
|
|
output?: unknown;
|
|
};
|
|
|
|
interface WorkflowError {
|
|
code?: number;
|
|
message: string;
|
|
}
|
|
|
|
declare abstract class WorkflowInstance {
|
|
public id: string;
|
|
|
|
/**
|
|
* Pause the instance.
|
|
*/
|
|
public pause(): Promise<void>;
|
|
|
|
/**
|
|
* Resume the instance. If it is already running, an error will be thrown.
|
|
*/
|
|
public resume(): Promise<void>;
|
|
|
|
/**
|
|
* Terminate the instance. If it is errored, terminated or complete, an error will be thrown.
|
|
*/
|
|
public terminate(): Promise<void>;
|
|
|
|
/**
|
|
* Restart the instance.
|
|
*/
|
|
public restart(): Promise<void>;
|
|
|
|
/**
|
|
* Returns the current status of the instance.
|
|
*/
|
|
public status(): Promise<InstanceStatus>;
|
|
|
|
/**
|
|
* Send an event to this instance.
|
|
*/
|
|
public sendEvent({
|
|
type,
|
|
payload,
|
|
}: {
|
|
type: string;
|
|
payload: unknown;
|
|
}): Promise<void>;
|
|
}
|
|
`;var i5e={QueuingStrategyInit:{highWaterMark:`*
|
|
* Creates a new ByteLengthQueuingStrategy with the provided high water mark.
|
|
*
|
|
* Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.
|
|
`},ReadableStreamGetReaderOptions:{mode:`*
|
|
* Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
|
|
*
|
|
* This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.
|
|
`},ReadableStreamIteratorOptions:{preventCancel:`*
|
|
* Asynchronously iterates over the chunks in the stream's internal queue.
|
|
*
|
|
* Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop.
|
|
*
|
|
* By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option.
|
|
`},ReadableWritablePair:{writable:`*
|
|
* Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
|
|
*
|
|
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
|
|
`},RequestInit:{body:" A BodyInit object or null to set request's body. ",cache:" A string indicating how the request will interact with the browser's cache to set request's cache. ",credentials:" A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. ",headers:" A Headers object, an object literal, or an array of two-item arrays to set request's headers. ",integrity:" A cryptographic hash of the resource to be fetched by request. Sets request's integrity. ",keepalive:" A boolean to set request's keepalive. ",method:" A string to set request's method. ",mode:" A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. ",redirect:" A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. ",referrer:` A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. `,referrerPolicy:" A referrer policy to set request's referrerPolicy. ",signal:" An AbortSignal to set request's signal. ",window:" Can only be null. Used to disassociate request from any Window. "},StreamPipeOptions:{preventClose:`*
|
|
* Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
|
|
*
|
|
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
|
|
*
|
|
* Errors and closures of the source and destination streams propagate as follows:
|
|
*
|
|
* An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.
|
|
*
|
|
* An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.
|
|
*
|
|
* When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.
|
|
*
|
|
* If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.
|
|
*
|
|
* The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
|
|
`},ANGLE_instanced_arrays:{$:`*
|
|
* The **\`ANGLE_instanced_arrays\`** extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays)
|
|
`,drawArraysInstancedANGLE:`*
|
|
* The **\`ANGLE_instanced_arrays.drawArraysInstancedANGLE()\`** method of the WebGL API renders primitives from array data like the WebGLRenderingContext.drawArrays() method.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE)
|
|
`,drawElementsInstancedANGLE:`*
|
|
* The **\`ANGLE_instanced_arrays.drawElementsInstancedANGLE()\`** method of the WebGL API renders primitives from array data like the WebGLRenderingContext.drawElements() method.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE)
|
|
`,vertexAttribDivisorANGLE:`*
|
|
* The **ANGLE_instanced_arrays.vertexAttribDivisorANGLE()** method of the WebGL API modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with ANGLE_instanced_arrays.drawArraysInstancedANGLE() and ANGLE_instanced_arrays.drawElementsInstancedANGLE().
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE)
|
|
`},AbortController:{$:`*
|
|
* The **\`AbortController\`** interface represents a controller object that allows you to abort one or more Web requests as and when desired.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController)
|
|
`,signal:`*
|
|
* The **\`signal\`** read-only property of the AbortController interface returns an AbortSignal object instance, which can be used to communicate with/abort an asynchronous operation as desired.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal)
|
|
`,abort:`*
|
|
* The **\`abort()\`** method of the AbortController interface aborts an asynchronous operation before it has completed.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort)
|
|
`},AbortSignal:{$:`*
|
|
* The **\`AbortSignal\`** interface represents a signal object that allows you to communicate with an asynchronous operation (such as a fetch request) and abort it if required via an AbortController object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)
|
|
`,aborted:"*\n * The **`aborted`** read-only property returns a value that indicates whether the asynchronous operations the signal is communicating with are aborted (`true`) or not (`false`).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted)\n ",onabort:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) ",reason:`*
|
|
* The **\`reason\`** read-only property returns a JavaScript value that indicates the abort reason.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason)
|
|
`,throwIfAborted:`*
|
|
* The **\`throwIfAborted()\`** method throws the signal's abort AbortSignal.reason if the signal has been aborted; otherwise it does nothing.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted)
|
|
`,"static:abort":`*
|
|
* The **\`AbortSignal.abort()\`** static method returns an AbortSignal that is already set as aborted (and which does not trigger an AbortSignal/abort_event event).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static)
|
|
`,"static:any":`*
|
|
* The **\`AbortSignal.any()\`** static method takes an iterable of abort signals and returns an AbortSignal.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static)
|
|
`,"static:timeout":`*
|
|
* The **\`AbortSignal.timeout()\`** static method returns an AbortSignal that will automatically abort after a specified time.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static)
|
|
`},AbstractWorker:{onerror:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) "},AnimationFrameProvider:{cancelAnimationFrame:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) ",requestAnimationFrame:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) "},AudioData:{$:`*
|
|
* The **\`AudioData\`** interface of the WebCodecs API represents an audio sample.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData)
|
|
`,duration:"*\n * The **`duration`** read-only property of the AudioData interface returns the duration in microseconds of this `AudioData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/duration)\n ",format:"*\n * The **`format`** read-only property of the AudioData interface returns the sample format of the `AudioData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/format)\n ",numberOfChannels:"*\n * The **`numberOfChannels`** read-only property of the AudioData interface returns the number of channels in the `AudioData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfChannels)\n ",numberOfFrames:"*\n * The **`numberOfFrames`** read-only property of the AudioData interface returns the number of frames in the `AudioData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfFrames)\n ",sampleRate:`*
|
|
* The **\`sampleRate\`** read-only property of the AudioData interface returns the sample rate in Hz.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/sampleRate)
|
|
`,timestamp:"*\n * The **`timestamp`** read-only property of the AudioData interface returns the timestamp of this `AudioData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/timestamp)\n ",allocationSize:`*
|
|
* The **\`allocationSize()\`** method of the AudioData interface returns the size in bytes required to hold the current sample as filtered by options passed into the method.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/allocationSize)
|
|
`,clone:"*\n * The **`clone()`** method of the AudioData interface creates a new `AudioData` object with reference to the same media resource as the original.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/clone)\n ",close:`*
|
|
* The **\`close()\`** method of the AudioData interface clears all states and releases the reference to the media resource.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/close)
|
|
`,copyTo:"*\n * The **`copyTo()`** method of the AudioData interface copies a plane of an `AudioData` object to a destination buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/copyTo)\n "},AudioDecoder:{$:`*
|
|
* The **\`AudioDecoder\`** interface of the WebCodecs API decodes chunks of audio.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder)
|
|
`,decodeQueueSize:`*
|
|
* The **\`decodeQueueSize\`** read-only property of the AudioDecoder interface returns the number of pending decode requests in the queue.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decodeQueueSize)
|
|
`,ondequeue:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/dequeue_event) ",state:`*
|
|
* The **\`state\`** read-only property of the AudioDecoder interface returns the current state of the underlying codec.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/state)
|
|
`,close:`*
|
|
* The **\`close()\`** method of the AudioDecoder interface ends all pending work and releases system resources.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/close)
|
|
`,configure:`*
|
|
* The **\`configure()\`** method of the AudioDecoder interface enqueues a control message to configure the audio decoder for decoding chunks.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/configure)
|
|
`,decode:`*
|
|
* The **\`decode()\`** method of the AudioDecoder interface enqueues a control message to decode a given chunk of audio.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decode)
|
|
`,flush:`*
|
|
* The **\`flush()\`** method of the AudioDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/flush)
|
|
`,reset:`*
|
|
* The **\`reset()\`** method of the AudioDecoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/reset)
|
|
`,"static:isConfigSupported":`*
|
|
* The **\`isConfigSupported()\`** static method of the AudioDecoder interface checks if the given config is supported (that is, if AudioDecoder objects can be successfully configured with the given config).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/isConfigSupported_static)
|
|
`},AudioEncoder:{$:`*
|
|
* The **\`AudioEncoder\`** interface of the WebCodecs API encodes AudioData objects.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder)
|
|
`,encodeQueueSize:`*
|
|
* The **\`encodeQueueSize\`** read-only property of the AudioEncoder interface returns the number of pending encode requests in the queue.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encodeQueueSize)
|
|
`,ondequeue:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/dequeue_event) ",state:`*
|
|
* The **\`state\`** read-only property of the AudioEncoder interface returns the current state of the underlying codec.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/state)
|
|
`,close:`*
|
|
* The **\`close()\`** method of the AudioEncoder interface ends all pending work and releases system resources.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/close)
|
|
`,configure:`*
|
|
* The **\`configure()\`** method of the AudioEncoder interface enqueues a control message to configure the audio encoder for encoding chunks.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/configure)
|
|
`,encode:`*
|
|
* The **\`encode()\`** method of the AudioEncoder interface enqueues a control message to encode a given AudioData object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encode)
|
|
`,flush:`*
|
|
* The **\`flush()\`** method of the AudioEncoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/flush)
|
|
`,reset:`*
|
|
* The **\`reset()\`** method of the AudioEncoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/reset)
|
|
`,"static:isConfigSupported":`*
|
|
* The **\`isConfigSupported()\`** static method of the AudioEncoder interface checks if the given config is supported (that is, if AudioEncoder objects can be successfully configured with the given config).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/isConfigSupported_static)
|
|
`},Blob:{$:`*
|
|
* The **\`Blob\`** interface represents a blob, which is a file-like object of immutable, raw data; they can be read as text or binary data, or converted into a ReadableStream so its methods can be used for processing the data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob)
|
|
`,size:`*
|
|
* The **\`size\`** read-only property of the Blob interface returns the size of the Blob or File in bytes.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size)
|
|
`,type:`*
|
|
* The **\`type\`** read-only property of the Blob interface returns the MIME type of the file.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type)
|
|
`,arrayBuffer:`*
|
|
* The **\`arrayBuffer()\`** method of the Blob interface returns a Promise that resolves with the contents of the blob as binary data contained in an ArrayBuffer.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer)
|
|
`,bytes:`*
|
|
* The **\`bytes()\`** method of the Blob interface returns a Promise that resolves with a Uint8Array containing the contents of the blob as an array of bytes.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/bytes)
|
|
`,slice:"*\n * The **`slice()`** method of the Blob interface creates and returns a new `Blob` object which contains data from a subset of the blob on which it's called.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice)\n ",stream:"*\n * The **`stream()`** method of the Blob interface returns a ReadableStream which upon reading returns the data contained within the `Blob`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream)\n ",text:`*
|
|
* The **\`text()\`** method of the string containing the contents of the blob, interpreted as UTF-8.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text)
|
|
`},Body:{body:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) ",bodyUsed:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) ",arrayBuffer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) ",blob:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) ",bytes:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) ",formData:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) ",json:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) ",text:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) "},BroadcastChannel:{$:`*
|
|
* The **\`BroadcastChannel\`** interface represents a named channel that any browsing context of a given origin can subscribe to.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel)
|
|
`,name:`*
|
|
* The **\`name\`** read-only property of the BroadcastChannel interface returns a string, which uniquely identifies the given channel with its name.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name)
|
|
`,onmessage:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/message_event) ",onmessageerror:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) ",close:`*
|
|
* The **\`close()\`** method of the BroadcastChannel interface terminates the connection to the underlying channel, allowing the object to be garbage collected.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close)
|
|
`,postMessage:`*
|
|
* The **\`postMessage()\`** method of the BroadcastChannel interface sends a message, which can be of any kind of Object, to each listener in any browsing context with the same origin.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage)
|
|
`},ByteLengthQueuingStrategy:{$:`*
|
|
* The **\`ByteLengthQueuingStrategy\`** interface of the Streams API provides a built-in byte length queuing strategy that can be used when constructing streams.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)
|
|
`,highWaterMark:`*
|
|
* The read-only **\`ByteLengthQueuingStrategy.highWaterMark\`** property returns the total number of bytes that can be contained in the internal queue before backpressure is applied.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark)
|
|
`,size:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) "},CSSImageValue:{$:`*
|
|
* The **\`CSSImageValue\`** interface of the CSS Typed Object Model API represents values for properties that take an image, for example background-image, list-style-image, or border-image-source.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue)
|
|
`},CSSKeywordValue:{$:`*
|
|
* The **\`CSSKeywordValue\`** interface of the CSS Typed Object Model API creates an object to represent CSS keywords and other identifiers.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue)
|
|
`,value:"*\n * The **`value`** property of the `CSSKeywordValue`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value)\n "},CSSMathInvert:{$:"*\n * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / <value>)`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert)\n ",value:`*
|
|
* The CSSMathInvert.value read-only property of the A CSSNumericValue.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value)
|
|
`},CSSMathMax:{$:`*
|
|
* The **\`CSSMathMax\`** interface of the CSS Typed Object Model API represents the CSS max function.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax)
|
|
`,values:`*
|
|
* The CSSMathMax.values read-only property of the which contains one or more CSSNumericValue objects.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values)
|
|
`},CSSMathMin:{$:`*
|
|
* The **\`CSSMathMin\`** interface of the CSS Typed Object Model API represents the CSS min function.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin)
|
|
`,values:`*
|
|
* The CSSMathMin.values read-only property of the which contains one or more CSSNumericValue objects.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values)
|
|
`},CSSMathNegate:{$:`*
|
|
* The **\`CSSMathNegate\`** interface of the CSS Typed Object Model API negates the value passed into it.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate)
|
|
`,value:`*
|
|
* The CSSMathNegate.value read-only property of the A CSSNumericValue.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value)
|
|
`},CSSMathProduct:{$:`*
|
|
* The **\`CSSMathProduct\`** interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct)
|
|
`,values:`*
|
|
* The **\`CSSMathProduct.values\`** read-only property of the CSSMathProduct interface returns a A CSSNumericArray.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values)
|
|
`},CSSMathSum:{$:`*
|
|
* The **\`CSSMathSum\`** interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum)
|
|
`,values:`*
|
|
* The **\`CSSMathSum.values\`** read-only property of the CSSMathSum interface returns a CSSNumericArray object which contains one or more CSSNumericValue objects.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values)
|
|
`},CSSMathValue:{$:`*
|
|
* The **\`CSSMathValue\`** interface of the CSS Typed Object Model API a base class for classes representing complex numeric values.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue)
|
|
`,operator:`*
|
|
* The **\`CSSMathValue.operator\`** read-only property of the CSSMathValue interface indicates the operator that the current subtype represents.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator)
|
|
`},CSSMatrixComponent:{$:`*
|
|
* The **\`CSSMatrixComponent\`** interface of the CSS Typed Object Model API represents the matrix() and matrix3d() values of the individual transform property in CSS.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent)
|
|
`,matrix:`*
|
|
* The **\`matrix\`** property of the See the matrix() and matrix3d() pages for examples.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix)
|
|
`},CSSNumericArray:{$:`*
|
|
* The **\`CSSNumericArray\`** interface of the CSS Typed Object Model API contains a list of CSSNumericValue objects.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray)
|
|
`,length:`*
|
|
* The read-only **\`length\`** property of the An integer representing the number of CSSNumericValue objects in the list.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length)
|
|
`},CSSNumericValue:{$:`*
|
|
* The **\`CSSNumericValue\`** interface of the CSS Typed Object Model API represents operations that all numeric values can perform.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue)
|
|
`,add:"*\n * The **`add()`** method of the `CSSNumericValue`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add)\n ",div:`*
|
|
* The **\`div()\`** method of the supplied value.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div)
|
|
`,equals:`*
|
|
* The **\`equals()\`** method of the value are strictly equal.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals)
|
|
`,max:`*
|
|
* The **\`max()\`** method of the passed.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max)
|
|
`,min:`*
|
|
* The **\`min()\`** method of the values passed.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min)
|
|
`,mul:`*
|
|
* The **\`mul()\`** method of the the supplied value.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul)
|
|
`,sub:"*\n * The **`sub()`** method of the `CSSNumericValue`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub)\n ",to:`*
|
|
* The **\`to()\`** method of the another.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to)
|
|
`,toSum:"*\n * The **`toSum()`** method of the ```js-nolint toSum(units) ``` - `units` - : The units to convert to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum)\n ",type:"*\n * The **`type()`** method of the `CSSNumericValue`, one of `angle`, `flex`, `frequency`, `length`, `resolution`, `percent`, `percentHint`, or `time`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type)\n "},CSSPerspective:{$:`*
|
|
* The **\`CSSPerspective\`** interface of the CSS Typed Object Model API represents the perspective() value of the individual transform property in CSS.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective)
|
|
`,length:`*
|
|
* The **\`length\`** property of the It is used to apply a perspective transform to the element and its content.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length)
|
|
`},CSSRotate:{$:`*
|
|
* The **\`CSSRotate\`** interface of the CSS Typed Object Model API represents the rotate value of the individual transform property in CSS.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate)
|
|
`,angle:`*
|
|
* The **\`angle\`** property of the denotes a clockwise rotation, a negative angle a counter-clockwise one.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle)
|
|
`,x:`*
|
|
* The **\`x\`** property of the translating vector.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x)
|
|
`,y:`*
|
|
* The **\`y\`** property of the translating vector.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y)
|
|
`,z:`*
|
|
* The **\`z\`** property of the vector.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z)
|
|
`},CSSScale:{$:`*
|
|
* The **\`CSSScale\`** interface of the CSS Typed Object Model API represents the scale() and scale3d() values of the individual transform property in CSS.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale)
|
|
`,x:`*
|
|
* The **\`x\`** property of the translating vector.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x)
|
|
`,y:`*
|
|
* The **\`y\`** property of the translating vector.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y)
|
|
`,z:`*
|
|
* The **\`z\`** property of the vector.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z)
|
|
`},CSSSkew:{$:`*
|
|
* The **\`CSSSkew\`** interface of the CSS Typed Object Model API is part of the CSSTransformValue interface.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew)
|
|
`,ax:`*
|
|
* The **\`ax\`** property of the along the x-axis (or abscissa).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax)
|
|
`,ay:`*
|
|
* The **\`ay\`** property of the along the y-axis (or ordinate).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay)
|
|
`},CSSSkewX:{$:"*\n * The **`CSSSkewX`** interface of the CSS Typed Object Model API represents the `skewX()` value of the individual transform property in CSS.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX)\n ",ax:`*
|
|
* The **\`ax\`** property of the along the x-axis (or abscissa).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax)
|
|
`},CSSSkewY:{$:"*\n * The **`CSSSkewY`** interface of the CSS Typed Object Model API represents the `skewY()` value of the individual transform property in CSS.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY)\n ",ay:`*
|
|
* The **\`ay\`** property of the along the y-axis (or ordinate).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay)
|
|
`},CSSStyleValue:{$:`*
|
|
* The **\`CSSStyleValue\`** interface of the CSS Typed Object Model API is the base class of all CSS values accessible through the Typed OM API.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue)
|
|
`},CSSTransformComponent:{$:`*
|
|
* The **\`CSSTransformComponent\`** interface of the CSS Typed Object Model API is part of the CSSTransformValue interface.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent)
|
|
`,is2D:`*
|
|
* The **\`is2D\`** read-only property of the CSSTransformComponent interface indicates where the transform is 2D or 3D.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D)
|
|
`,toMatrix:`*
|
|
* The **\`toMatrix()\`** method of the object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix)
|
|
`},CSSTransformValue:{$:"*\n * The **`CSSTransformValue`** interface of the CSS Typed Object Model API represents `transform-list` values as used by the CSS transform property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue)\n ",is2D:"*\n * The read-only **`is2D`** property of the In the case of the `CSSTransformValue` this property returns true unless any of the individual functions return false for `Is2D`, in which case it returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D)\n ",length:`*
|
|
* The read-only **\`length\`** property of the the list.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length)
|
|
`,toMatrix:"*\n * The **`toMatrix()`** method of the ```js-nolint toMatrix() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix)\n "},CSSTranslate:{$:`*
|
|
* The **\`CSSTranslate\`** interface of the CSS Typed Object Model API represents the translate() value of the individual transform property in CSS.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate)
|
|
`,x:`*
|
|
* The **\`x\`** property of the translating vector.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x)
|
|
`,y:`*
|
|
* The **\`y\`** property of the translating vector.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y)
|
|
`,z:`*
|
|
* The **\`z\`** property of the vector.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z)
|
|
`},CSSUnitValue:{$:`*
|
|
* The **\`CSSUnitValue\`** interface of the CSS Typed Object Model API represents values that contain a single unit type.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue)
|
|
`,unit:`*
|
|
* The **\`CSSUnitValue.unit\`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit)
|
|
`,value:`*
|
|
* The **\`CSSUnitValue.value\`** property of the A double.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value)
|
|
`},CSSUnparsedValue:{$:`*
|
|
* The **\`CSSUnparsedValue\`** interface of the CSS Typed Object Model API represents property values that reference custom properties.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue)
|
|
`,length:`*
|
|
* The **\`length\`** read-only property of the An integer.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length)
|
|
`},CSSVariableReferenceValue:{$:`*
|
|
* The **\`CSSVariableReferenceValue\`** interface of the CSS Typed Object Model API allows you to create a custom name for a built-in CSS value.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue)
|
|
`,fallback:`*
|
|
* The **\`fallback\`** read-only property of the A CSSUnparsedValue.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback)
|
|
`,variable:"*\n * The **`variable`** property of the A string beginning with `--` (that is, a custom property name).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable)\n "},Cache:{$:`*
|
|
* The Cache API allows fine grained control of reading and writing from the Cloudflare global network cache.
|
|
*
|
|
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/cache/)
|
|
`,add:`*
|
|
* The **\`add()\`** method of the Cache interface takes a URL, retrieves it, and adds the resulting response object to the given cache.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add)
|
|
`,addAll:`*
|
|
* The **\`addAll()\`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
|
|
`,delete:" [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/cache/#delete) ",keys:`*
|
|
* The **\`keys()\`** method of the Cache interface returns a representing the keys of the Cache.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys)
|
|
`,match:" [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/cache/#match) ",matchAll:`*
|
|
* The **\`matchAll()\`** method of the Cache interface returns a Promise that resolves to an array of all matching responses in the Cache object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll)
|
|
`,put:" [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/cache/#put) "},CacheStorage:{$:`*
|
|
* The Cache API allows fine grained control of reading and writing from the Cloudflare global network cache.
|
|
*
|
|
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/cache/)
|
|
`,delete:"*\n * The **`delete()`** method of the CacheStorage interface finds the Cache object matching the `cacheName`, and if found, deletes the Cache object and returns a Promise that resolves to `true`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete)\n ",has:"*\n * The **`has()`** method of the CacheStorage interface returns a Promise that resolves to `true` if a You can access `CacheStorage` through the Window.caches property in windows or through the WorkerGlobalScope.caches property in workers.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has)\n ",keys:`*
|
|
* The **\`keys()\`** method of the CacheStorage interface returns a Promise that will resolve with an array containing strings corresponding to all of the named Cache objects tracked by the CacheStorage object in the order they were created.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys)
|
|
`,match:`*
|
|
* The **\`match()\`** method of the CacheStorage interface checks if a given Request or URL string is a key for a stored Response.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match)
|
|
`,open:"*\n * The **`open()`** method of the the Cache object matching the `cacheName`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open)\n "},CanvasCompositing:{globalAlpha:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalAlpha) ",globalCompositeOperation:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation) "},CanvasDrawImage:{drawImage:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) "},CanvasDrawPath:{beginPath:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) ",clip:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) ",fill:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) ",isPointInPath:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) ",isPointInStroke:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) ",stroke:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) "},CanvasFillStrokeStyles:{fillStyle:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) ",strokeStyle:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle) ",createConicGradient:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) ",createLinearGradient:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) ",createPattern:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) ",createRadialGradient:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) "},CanvasFilters:{filter:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/filter) "},CanvasGradient:{$:`*
|
|
* The **\`CanvasGradient\`** interface represents an opaque object describing a gradient.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient)
|
|
`,addColorStop:"*\n * The **`CanvasGradient.addColorStop()`** method adds a new color stop, defined by an `offset` and a `color`, to a given canvas gradient.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop)\n "},CanvasImageData:{createImageData:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) ",getImageData:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) ",putImageData:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) "},CanvasImageSmoothing:{imageSmoothingEnabled:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled) ",imageSmoothingQuality:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality) "},CanvasPath:{arc:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) ",arcTo:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) ",bezierCurveTo:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) ",closePath:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) ",ellipse:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) ",lineTo:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) ",moveTo:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) ",quadraticCurveTo:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) ",rect:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) ",roundRect:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) "},CanvasPathDrawingStyles:{lineCap:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineCap) ",lineDashOffset:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) ",lineJoin:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineJoin) ",lineWidth:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineWidth) ",miterLimit:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/miterLimit) ",getLineDash:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) ",setLineDash:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) "},CanvasPattern:{$:`*
|
|
* The **\`CanvasPattern\`** interface represents an opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern)
|
|
`,setTransform:`*
|
|
* The **\`CanvasPattern.setTransform()\`** method uses a DOMMatrix object as the pattern's transformation matrix and invokes it on the pattern.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform)
|
|
`},CanvasRect:{clearRect:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) ",fillRect:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) ",strokeRect:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) "},CanvasShadowStyles:{shadowBlur:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) ",shadowColor:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowColor) ",shadowOffsetX:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX) ",shadowOffsetY:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY) "},CanvasState:{isContextLost:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isContextLost) ",reset:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) ",restore:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) ",save:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) "},CanvasText:{fillText:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) ",measureText:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) ",strokeText:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) "},CanvasTextDrawingStyles:{direction:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/direction) ",font:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) ",fontKerning:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) ",fontStretch:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) ",fontVariantCaps:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) ",letterSpacing:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) ",textAlign:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) ",textBaseline:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) ",textRendering:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) ",wordSpacing:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) "},CanvasTransform:{getTransform:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) ",resetTransform:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) ",rotate:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) ",scale:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) ",setTransform:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) ",transform:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) ",translate:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) "},Client:{$:`*
|
|
* The \`Client\` interface represents an executable context such as a Worker, or a SharedWorker.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client)
|
|
`,frameType:`*
|
|
* The **\`frameType\`** read-only property of the Client interface indicates the type of browsing context of the current Client.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/frameType)
|
|
`,id:`*
|
|
* The **\`id\`** read-only property of the Client interface returns the universally unique identifier of the Client object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/id)
|
|
`,type:`*
|
|
* The **\`type\`** read-only property of the Client interface indicates the type of client the service worker is controlling.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/type)
|
|
`,url:`*
|
|
* The **\`url\`** read-only property of the Client interface returns the URL of the current service worker client.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/url)
|
|
`,postMessage:`*
|
|
* The **\`postMessage()\`** method of the (a Window, Worker, or SharedWorker).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/postMessage)
|
|
`},Clients:{$:`*
|
|
* The \`Clients\` interface provides access to Client objects.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients)
|
|
`,claim:`*
|
|
* The **\`claim()\`** method of the Clients interface allows an active service worker to set itself as the ServiceWorkerContainer.controller for all clients within its ServiceWorkerRegistration.scope.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/claim)
|
|
`,get:"*\n * The **`get()`** method of the `id` and returns it in a Promise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/get)\n ",matchAll:`*
|
|
* The **\`matchAll()\`** method of the Clients interface returns a Promise for a list of service worker clients whose origin is the same as the associated service worker's origin.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/matchAll)
|
|
`,openWindow:`*
|
|
* The **\`openWindow()\`** method of the Clients interface creates a new top level browsing context and loads a given URL.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/openWindow)
|
|
`},CloseEvent:{$:`*
|
|
* A \`CloseEvent\` is sent to clients using WebSockets when the connection is closed.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
|
|
`,code:`*
|
|
* The **\`code\`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)
|
|
`,reason:`*
|
|
* The **\`reason\`** read-only property of the CloseEvent interface returns the WebSocket connection close reason the server gave for closing the connection; that is, a concise human-readable prose explanation for the closure.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)
|
|
`,wasClean:"*\n * The **`wasClean`** read-only property of the CloseEvent interface returns `true` if the connection closed cleanly.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)\n "},CompressionStream:{$:`*
|
|
* The **\`CompressionStream\`** interface of the Compression Streams API is an API for compressing a stream of data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
|
|
`},CookieStore:{$:`*
|
|
* The **\`CookieStore\`** interface of the Cookie Store API provides methods for getting and setting cookies asynchronously from either a page or a service worker.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore)
|
|
`,delete:"*\n * The **`delete()`** method of the CookieStore interface deletes a cookie that matches the given `name` or `options` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/delete)\n ",get:"*\n * The **`get()`** method of the CookieStore interface returns a Promise that resolves to a single cookie matching the given `name` or `options` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/get)\n ",getAll:"*\n * The **`getAll()`** method of the CookieStore interface returns a Promise that resolves as an array of cookies that match the `name` or `options` passed to it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/getAll)\n ",set:"*\n * The **`set()`** method of the CookieStore interface sets a cookie with the given `name` and `value` or `options` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/set)\n "},CookieStoreManager:{$:`*
|
|
* The **\`CookieStoreManager\`** interface of the Cookie Store API allows service workers to subscribe to cookie change events.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager)
|
|
`,getSubscriptions:`*
|
|
* The **\`getSubscriptions()\`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions)
|
|
`,subscribe:`*
|
|
* The **\`subscribe()\`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
|
|
`,unsubscribe:`*
|
|
* The **\`unsubscribe()\`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
|
|
`},CountQueuingStrategy:{$:`*
|
|
* The **\`CountQueuingStrategy\`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy)
|
|
`,highWaterMark:`*
|
|
* The read-only **\`CountQueuingStrategy.highWaterMark\`** property returns the total number of chunks that can be contained in the internal queue before backpressure is applied.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark)
|
|
`,size:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) "},Crypto:{$:`*
|
|
* The Web Crypto API provides a set of low-level functions for common cryptographic tasks.
|
|
* The Workers runtime implements the full surface of this API, but with some differences in
|
|
* the [supported algorithms](https://developers.cloudflare.com/workers/runtime-apis/web-crypto/#supported-algorithms)
|
|
* compared to those implemented in most browsers.
|
|
*
|
|
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/web-crypto/)
|
|
`,subtle:`*
|
|
* The **\`Crypto.subtle\`** read-only property returns a cryptographic operations.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle)
|
|
`,getRandomValues:`*
|
|
* The **\`Crypto.getRandomValues()\`** method lets you get cryptographically strong random values.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues)
|
|
`,randomUUID:`*
|
|
* The **\`randomUUID()\`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID)
|
|
`},CryptoKey:{$:`*
|
|
* The **\`CryptoKey\`** interface of the Web Crypto API represents a cryptographic key obtained from one of the SubtleCrypto methods SubtleCrypto.generateKey, SubtleCrypto.deriveKey, SubtleCrypto.importKey, or SubtleCrypto.unwrapKey.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey)
|
|
`,algorithm:`*
|
|
* The read-only **\`algorithm\`** property of the CryptoKey interface returns an object describing the algorithm for which this key can be used, and any associated extra parameters.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm)
|
|
`,extractable:"*\n * The read-only **`extractable`** property of the CryptoKey interface indicates whether or not the key may be extracted using `SubtleCrypto.exportKey()` or `SubtleCrypto.wrapKey()`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable)\n ",type:`*
|
|
* The read-only **\`type\`** property of the CryptoKey interface indicates which kind of key is represented by the object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type)
|
|
`,usages:`*
|
|
* The read-only **\`usages\`** property of the CryptoKey interface indicates what can be done with the key.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages)
|
|
`},CustomEvent:{$:`*
|
|
* The **\`CustomEvent\`** interface represents events initialized by an application for any purpose.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
|
|
`,detail:`*
|
|
* The read-only **\`detail\`** property of the CustomEvent interface returns any data passed when initializing the event.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
|
|
`,initCustomEvent:`*
|
|
* The **\`CustomEvent.initCustomEvent()\`** method initializes a CustomEvent object.
|
|
* @deprecated
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent)
|
|
`},DOMException:{$:`*
|
|
* The **\`DOMException\`** interface represents an abnormal event (called an **exception**) that occurs as a result of calling a method or accessing a property of a web API.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)
|
|
`,code:`*
|
|
* The **\`code\`** read-only property of the DOMException interface returns one of the legacy error code constants, or \`0\` if none match.
|
|
* @deprecated
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
|
|
`,message:`*
|
|
* The **\`message\`** read-only property of the a message or description associated with the given error name.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message)
|
|
`,name:`*
|
|
* The **\`name\`** read-only property of the one of the strings associated with an error name.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name)
|
|
`},DOMMatrix:{$:`*
|
|
* The **\`DOMMatrix\`** interface represents 4\xD74 matrices, suitable for 2D and 3D operations including rotation and translation.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix)
|
|
`,a:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) ",b:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) ",c:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) ",d:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) ",e:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) ",f:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) ",m11:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) ",m12:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) ",m13:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) ",m14:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) ",m21:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) ",m22:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) ",m23:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) ",m24:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) ",m31:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) ",m32:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) ",m33:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) ",m34:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) ",m41:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) ",m42:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) ",m43:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) ",m44:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) ",invertSelf:`*
|
|
* The **\`invertSelf()\`** method of the DOMMatrix interface inverts the original matrix.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/invertSelf)
|
|
`,multiplySelf:"*\n * The **`multiplySelf()`** method of the DOMMatrix interface multiplies a matrix by the `otherMatrix` parameter, computing the dot product of the original matrix and the specified matrix: `A\u22C5B`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/multiplySelf)\n ",preMultiplySelf:"*\n * The **`preMultiplySelf()`** method of the DOMMatrix interface modifies the matrix by pre-multiplying it with the specified `DOMMatrix`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/preMultiplySelf)\n ",rotateAxisAngleSelf:`*
|
|
* The \`rotateAxisAngleSelf()\` method of the DOMMatrix interface is a transformation method that rotates the source matrix by the given vector and angle, returning the altered matrix.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateAxisAngleSelf)
|
|
`,rotateFromVectorSelf:"*\n * The `rotateFromVectorSelf()` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by rotating the matrix by the angle between the specified vector and `(1, 0)`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateFromVectorSelf)\n ",rotateSelf:`*
|
|
* The \`rotateSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateSelf)
|
|
`,scale3dSelf:"*\n * The **`scale3dSelf()`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor to all three axes, centered on the given origin, with a default origin of `(0, 0, 0)`, returning the 3D-scaled matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf)\n ",scaleSelf:"*\n * The **`scaleSelf()`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor, centered on the given origin, with a default origin of `(0, 0)`, returning the scaled matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf)\n ",skewXSelf:`*
|
|
* The \`skewXSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewXSelf)
|
|
`,skewYSelf:`*
|
|
* The \`skewYSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewYSelf)
|
|
`,translateSelf:`*
|
|
* The \`translateSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/translateSelf)
|
|
`},DOMMatrixReadOnly:{$:`*
|
|
* The **\`DOMMatrixReadOnly\`** interface represents a read-only 4\xD74 matrix, suitable for 2D and 3D operations.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly)
|
|
`,a:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) ",b:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) ",c:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) ",d:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) ",e:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) ",f:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) ",is2D:"*\n * The readonly **`is2D`** property of the DOMMatrixReadOnly interface is a Boolean flag that is `true` when the matrix is 2D.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D)\n ",isIdentity:"*\n * The readonly **`isIdentity`** property of the DOMMatrixReadOnly interface is a Boolean whose value is `true` if the matrix is the identity matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity)\n ",m11:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) ",m12:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) ",m13:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) ",m14:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) ",m21:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) ",m22:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) ",m23:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) ",m24:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) ",m31:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) ",m32:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) ",m33:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) ",m34:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) ",m41:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) ",m42:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) ",m43:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) ",m44:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) ",flipX:`*
|
|
* The **\`flipX()\`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the x-axis.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX)
|
|
`,flipY:`*
|
|
* The **\`flipY()\`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the y-axis.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY)
|
|
`,inverse:`*
|
|
* The **\`inverse()\`** method of the DOMMatrixReadOnly interface creates a new matrix which is the inverse of the original matrix.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse)
|
|
`,multiply:"*\n * The **`multiply()`** method of the DOMMatrixReadOnly interface creates and returns a new matrix which is the dot product of the matrix and the `otherMatrix` parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply)\n ",rotate:`*
|
|
* The \`rotate()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by rotating the source matrix around each of its axes by the specified number of degrees.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate)
|
|
`,rotateAxisAngle:`*
|
|
* The \`rotateAxisAngle()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by rotating the source matrix by the given vector and angle.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle)
|
|
`,rotateFromVector:"*\n * The `rotateFromVector()` method of the DOMMatrixReadOnly interface is returns a new DOMMatrix created by rotating the source matrix by the angle between the specified vector and `(1, 0)`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector)\n ",scale:`*
|
|
* The **\`scale()\`** method of the original matrix with a scale transform applied.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale)
|
|
`,scale3d:`*
|
|
* The **\`scale3d()\`** method of the DOMMatrixReadOnly interface creates a new matrix which is the result of a 3D scale transform being applied to the matrix.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d)
|
|
`,scaleNonUniform:" @deprecated ",skewX:`*
|
|
* The \`skewX()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by applying the specified skew transformation to the source matrix along its x-axis.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX)
|
|
`,skewY:`*
|
|
* The \`skewY()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by applying the specified skew transformation to the source matrix along its y-axis.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY)
|
|
`,toFloat32Array:"*\n * The **`toFloat32Array()`** method of the DOMMatrixReadOnly interface returns a new Float32Array containing all 16 elements (`m11`, `m12`, `m13`, `m14`, `m21`, `m22`, `m23`, `m24`, `m31`, `m32`, `m33`, `m34`, `m41`, `m42`, `m43`, `m44`) which comprise the matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array)\n ",toFloat64Array:"*\n * The **`toFloat64Array()`** method of the DOMMatrixReadOnly interface returns a new Float64Array containing all 16 elements (`m11`, `m12`, `m13`, `m14`, `m21`, `m22`, `m23`, `m24`, `m31`, `m32`, `m33`, `m34`, `m41`, `m42`, `m43`, `m44`) which comprise the matrix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array)\n ",toJSON:`*
|
|
* The **\`toJSON()\`** method of the DOMMatrixReadOnly interface creates and returns a JSON object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON)
|
|
`,transformPoint:"*\n * The **`transformPoint`** method of the You can also create a new `DOMPoint` by applying a matrix to a point with the DOMPointReadOnly.matrixTransform() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint)\n ",translate:`*
|
|
* The \`translate()\` method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix with a translation applied.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate)
|
|
`},DOMPoint:{$:`*
|
|
* A **\`DOMPoint\`** object represents a 2D or 3D point in a coordinate system; it includes values for the coordinates in up to three dimensions, as well as an optional perspective value.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint)
|
|
`,w:"*\n * The **`DOMPoint`** interface's **`w`** property holds the point's perspective value, w, for a point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w)\n ",x:"*\n * The **`DOMPoint`** interface's **`x`** property holds the horizontal coordinate, x, for a point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x)\n ",y:"*\n * The **`DOMPoint`** interface's **`y`** property holds the vertical coordinate, _y_, for a point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y)\n ",z:"*\n * The **`DOMPoint`** interface's **`z`** property specifies the depth coordinate of a point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z)\n ","static:fromPoint":"*\n * The **`fromPoint()`** static method of the DOMPoint interface creates and returns a new mutable `DOMPoint` object given a source point.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static)\n "},DOMPointReadOnly:{$:`*
|
|
* The **\`DOMPointReadOnly\`** interface specifies the coordinate and perspective fields used by DOMPoint to define a 2D or 3D point in a coordinate system.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly)
|
|
`,w:"*\n * The **`DOMPointReadOnly`** interface's **`w`** property holds the point's perspective value, `w`, for a read-only point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w)\n ",x:"*\n * The **`DOMPointReadOnly`** interface's **`x`** property holds the horizontal coordinate, x, for a read-only point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x)\n ",y:"*\n * The **`DOMPointReadOnly`** interface's **`y`** property holds the vertical coordinate, y, for a read-only point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y)\n ",z:"*\n * The **`DOMPointReadOnly`** interface's **`z`** property holds the depth coordinate, z, for a read-only point in space.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z)\n ",matrixTransform:"*\n * The **`matrixTransform()`** method of the DOMPointReadOnly interface applies a matrix transform specified as an object to the DOMPointReadOnly object, creating and returning a new `DOMPointReadOnly` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform)\n ",toJSON:"*\n * The DOMPointReadOnly method `toJSON()` returns an object giving the ```js-nolint toJSON() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON)\n ","static:fromPoint":"*\n * The static **DOMPointReadOnly** method `fromPoint()` creates and returns a new `DOMPointReadOnly` object given a source point.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static)\n "},DOMQuad:{$:"*\n * A `DOMQuad` is a collection of four `DOMPoint`s defining the corners of an arbitrary quadrilateral.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad)\n ",p1:"*\n * The **`DOMQuad`** interface's **`p1`** property holds the DOMPoint object that represents one of the four corners of the `DOMQuad`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1)\n ",p2:"*\n * The **`DOMQuad`** interface's **`p2`** property holds the DOMPoint object that represents one of the four corners of the `DOMQuad`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2)\n ",p3:"*\n * The **`DOMQuad`** interface's **`p3`** property holds the DOMPoint object that represents one of the four corners of the `DOMQuad`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3)\n ",p4:"*\n * The **`DOMQuad`** interface's **`p4`** property holds the DOMPoint object that represents one of the four corners of the `DOMQuad`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4)\n ",getBounds:"*\n * The DOMQuad method `getBounds()` returns a DOMRect object representing the smallest rectangle that fully contains the `DOMQuad` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds)\n ",toJSON:"*\n * The DOMQuad method `toJSON()` returns a ```js-nolint toJSON() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON)\n "},DOMRect:{$:`*
|
|
* A **\`DOMRect\`** describes the size and position of a rectangle.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect)
|
|
`,height:`*
|
|
* The **\`height\`** property of the DOMRect interface represents the height of the rectangle.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/height)
|
|
`,width:`*
|
|
* The **\`width\`** property of the DOMRect interface represents the width of the rectangle.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/width)
|
|
`,x:`*
|
|
* The **\`x\`** property of the DOMRect interface represents the x-coordinate of the rectangle, which is the horizontal distance between the viewport's left edge and the rectangle's origin.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/x)
|
|
`,y:`*
|
|
* The **\`y\`** property of the DOMRect interface represents the y-coordinate of the rectangle, which is the vertical distance between the viewport's top edge and the rectangle's origin.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/y)
|
|
`,"static:fromRect":`*
|
|
* The **\`fromRect()\`** static method of the object with a given location and dimensions.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/fromRect_static)
|
|
`},DOMRectReadOnly:{$:`*
|
|
* The **\`DOMRectReadOnly\`** interface specifies the standard properties (also used by DOMRect) to define a rectangle whose properties are immutable.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly)
|
|
`,bottom:"*\n * The **`bottom`** read-only property of the **`DOMRectReadOnly`** interface returns the bottom coordinate value of the `DOMRect`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom)\n ",height:"*\n * The **`height`** read-only property of the **`DOMRectReadOnly`** interface represents the height of the `DOMRect`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height)\n ",left:"*\n * The **`left`** read-only property of the **`DOMRectReadOnly`** interface returns the left coordinate value of the `DOMRect`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left)\n ",right:"*\n * The **`right`** read-only property of the **`DOMRectReadOnly`** interface returns the right coordinate value of the `DOMRect`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right)\n ",top:"*\n * The **`top`** read-only property of the **`DOMRectReadOnly`** interface returns the top coordinate value of the `DOMRect`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top)\n ",width:"*\n * The **`width`** read-only property of the **`DOMRectReadOnly`** interface represents the width of the `DOMRect`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width)\n ",x:"*\n * The **`x`** read-only property of the **`DOMRectReadOnly`** interface represents the x coordinate of the `DOMRect`'s origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x)\n ",y:"*\n * The **`y`** read-only property of the **`DOMRectReadOnly`** interface represents the y coordinate of the `DOMRect`'s origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y)\n ",toJSON:"*\n * The DOMRectReadOnly method `toJSON()` returns a JSON representation of the `DOMRectReadOnly` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON)\n ","static:fromRect":`*
|
|
* The **\`fromRect()\`** static method of the object with a given location and dimensions.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static)
|
|
`},DOMStringList:{$:"*\n * The **`DOMStringList`** interface is a legacy type returned by some APIs and represents a non-modifiable list of strings (`DOMString`).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList)\n ",length:`*
|
|
* The read-only **\`length\`** property indicates the number of strings in the DOMStringList.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length)
|
|
`,contains:`*
|
|
* The **\`contains()\`** method returns a boolean indicating whether the given string is in the list.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains)
|
|
`,item:"*\n * The **`item()`** method returns a string from a `DOMStringList` by index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item)\n "},DecompressionStream:{$:`*
|
|
* The **\`DecompressionStream\`** interface of the Compression Streams API is an API for decompressing a stream of data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
|
|
`},DedicatedWorkerGlobalScope:{$:`*
|
|
* The **\`DedicatedWorkerGlobalScope\`** object (the Worker global scope) is accessible through the WorkerGlobalScope.self keyword.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope)
|
|
`,name:`*
|
|
* The **\`name\`** read-only property of the the Worker.Worker constructor can pass to get a reference to the DedicatedWorkerGlobalScope.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/name)
|
|
`,onrtctransform:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) ",close:"*\n * The **`close()`** method of the DedicatedWorkerGlobalScope interface discards any tasks queued in the `DedicatedWorkerGlobalScope`'s event loop, effectively closing this particular scope.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/close)\n ",postMessage:`*
|
|
* The **\`postMessage()\`** method of the DedicatedWorkerGlobalScope interface sends a message to the main thread that spawned it.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)
|
|
`},EXT_blend_minmax:{$:`*
|
|
* The **\`EXT_blend_minmax\`** extension is part of the WebGL API and extends blending capabilities by adding two new blend equations: the minimum or maximum color components of the source and destination colors.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax)
|
|
`},EXT_color_buffer_float:{$:`*
|
|
* The **\`EXT_color_buffer_float\`** extension is part of WebGL and adds the ability to render a variety of floating point formats.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float)
|
|
`},EXT_color_buffer_half_float:{$:`*
|
|
* The **\`EXT_color_buffer_half_float\`** extension is part of the WebGL API and adds the ability to render to 16-bit floating-point color buffers.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_float)
|
|
`},EXT_float_blend:{$:`*
|
|
* The WebGL API's \`EXT_float_blend\` extension allows blending and draw buffers with 32-bit floating-point components.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend)
|
|
`},EXT_frag_depth:{$:`*
|
|
* The **\`EXT_frag_depth\`** extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_frag_depth)
|
|
`},EXT_sRGB:{$:`*
|
|
* The **\`EXT_sRGB\`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB)
|
|
`},EXT_shader_texture_lod:{$:`*
|
|
* The **\`EXT_shader_texture_lod\`** extension is part of the WebGL API and adds additional texture functions to the OpenGL ES Shading Language which provide the shader writer with explicit control of LOD (Level of detail).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod)
|
|
`},EXT_texture_compression_bptc:{$:`*
|
|
* The \`EXT_texture_compression_bptc\` extension is part of the WebGL API and exposes 4 BPTC compressed texture formats.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc)
|
|
`},EXT_texture_compression_rgtc:{$:`*
|
|
* The \`EXT_texture_compression_rgtc\` extension is part of the WebGL API and exposes 4 RGTC compressed texture formats.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc)
|
|
`},EXT_texture_filter_anisotropic:{$:`*
|
|
* The **\`EXT_texture_filter_anisotropic\`** extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_filter_anisotropic)
|
|
`},EXT_texture_norm16:{$:`*
|
|
* The **\`EXT_texture_norm16\`** extension is part of the WebGL API and provides a set of new 16-bit signed normalized and unsigned normalized formats (fixed-point texture, renderbuffer and texture buffer).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16)
|
|
`},EncodedAudioChunk:{$:`*
|
|
* The **\`EncodedAudioChunk\`** interface of the WebCodecs API represents a chunk of encoded audio data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk)
|
|
`,byteLength:`*
|
|
* The **\`byteLength\`** read-only property of the EncodedAudioChunk interface returns the length in bytes of the encoded audio data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/byteLength)
|
|
`,duration:`*
|
|
* The **\`duration\`** read-only property of the EncodedAudioChunk interface returns an integer indicating the duration of the audio in microseconds.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/duration)
|
|
`,timestamp:`*
|
|
* The **\`timestamp\`** read-only property of the EncodedAudioChunk interface returns an integer indicating the timestamp of the audio in microseconds.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/timestamp)
|
|
`,type:`*
|
|
* The **\`type\`** read-only property of the EncodedAudioChunk interface returns a value indicating whether the audio chunk is a key chunk, which does not relying on other frames for decoding.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/type)
|
|
`,copyTo:`*
|
|
* The **\`copyTo()\`** method of the EncodedAudioChunk interface copies the encoded chunk of audio data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/copyTo)
|
|
`},EncodedVideoChunk:{$:`*
|
|
* The **\`EncodedVideoChunk\`** interface of the WebCodecs API represents a chunk of encoded video data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk)
|
|
`,byteLength:`*
|
|
* The **\`byteLength\`** read-only property of the EncodedVideoChunk interface returns the length in bytes of the encoded video data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength)
|
|
`,duration:`*
|
|
* The **\`duration\`** read-only property of the EncodedVideoChunk interface returns an integer indicating the duration of the video in microseconds.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration)
|
|
`,timestamp:`*
|
|
* The **\`timestamp\`** read-only property of the EncodedVideoChunk interface returns an integer indicating the timestamp of the video in microseconds.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp)
|
|
`,type:`*
|
|
* The **\`type\`** read-only property of the EncodedVideoChunk interface returns a value indicating whether the video chunk is a key chunk, which does not rely on other frames for decoding.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type)
|
|
`,copyTo:`*
|
|
* The **\`copyTo()\`** method of the EncodedVideoChunk interface copies the encoded chunk of video data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo)
|
|
`},ErrorEvent:{$:`*
|
|
* The **\`ErrorEvent\`** interface represents events providing information related to errors in scripts or in files.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent)
|
|
`,colno:`*
|
|
* The **\`colno\`** read-only property of the ErrorEvent interface returns an integer containing the column number of the script file on which the error occurred.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno)
|
|
`,error:`*
|
|
* The **\`error\`** read-only property of the ErrorEvent interface returns a JavaScript value, such as an Error or DOMException, representing the error associated with this event.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error)
|
|
`,filename:`*
|
|
* The **\`filename\`** read-only property of the ErrorEvent interface returns a string containing the name of the script file in which the error occurred.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename)
|
|
`,lineno:`*
|
|
* The **\`lineno\`** read-only property of the ErrorEvent interface returns an integer containing the line number of the script file on which the error occurred.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno)
|
|
`,message:`*
|
|
* The **\`message\`** read-only property of the ErrorEvent interface returns a string containing a human-readable error message describing the problem.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message)
|
|
`},Event:{$:"*\n * The **`Event`** interface represents an event which takes place on an `EventTarget`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)\n ",bubbles:`*
|
|
* The **\`bubbles\`** read-only property of the Event interface indicates whether the event bubbles up through the DOM tree or not.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles)
|
|
`,cancelBubble:`*
|
|
* The **\`cancelBubble\`** property of the Event interface is deprecated.
|
|
* @deprecated
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)
|
|
`,cancelable:`*
|
|
* The **\`cancelable\`** read-only property of the Event interface indicates whether the event can be canceled, and therefore prevented as if the event never happened.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable)
|
|
`,composed:`*
|
|
* The read-only **\`composed\`** property of the or not the event will propagate across the shadow DOM boundary into the standard DOM.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)
|
|
`,currentTarget:`*
|
|
* The **\`currentTarget\`** read-only property of the Event interface identifies the element to which the event handler has been attached.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)
|
|
`,defaultPrevented:`*
|
|
* The **\`defaultPrevented\`** read-only property of the Event interface returns a boolean value indicating whether or not the call to Event.preventDefault() canceled the event.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)
|
|
`,eventPhase:`*
|
|
* The **\`eventPhase\`** read-only property of the being evaluated.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)
|
|
`,isTrusted:"*\n * The **`isTrusted`** read-only property of the when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and `false` when the event was dispatched via The only exception is the `click` event, which initializes the `isTrusted` property to `false` in user agents.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)\n ",returnValue:`*
|
|
* The Event property **\`returnValue\`** indicates whether the default action for this event has been prevented or not.
|
|
* @deprecated
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
|
|
`,srcElement:`*
|
|
* The deprecated **\`Event.srcElement\`** is an alias for the Event.target property.
|
|
* @deprecated
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)
|
|
`,target:`*
|
|
* The read-only **\`target\`** property of the dispatched.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)
|
|
`,timeStamp:`*
|
|
* The **\`timeStamp\`** read-only property of the Event interface returns the time (in milliseconds) at which the event was created.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)
|
|
`,type:`*
|
|
* The **\`type\`** read-only property of the Event interface returns a string containing the event's type.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)
|
|
`,composedPath:`*
|
|
* The **\`composedPath()\`** method of the Event interface returns the event's path which is an array of the objects on which listeners will be invoked.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)
|
|
`,initEvent:`*
|
|
* The **\`Event.initEvent()\`** method is used to initialize the value of an event created using Document.createEvent().
|
|
* @deprecated
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent)
|
|
`,preventDefault:`*
|
|
* The **\`preventDefault()\`** method of the Event interface tells the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)
|
|
`,stopImmediatePropagation:`*
|
|
* The **\`stopImmediatePropagation()\`** method of the If several listeners are attached to the same element for the same event type, they are called in the order in which they were added.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)
|
|
`,stopPropagation:`*
|
|
* The **\`stopPropagation()\`** method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation)
|
|
`},EventSource:{$:`*
|
|
* The **\`EventSource\`** interface is web content's interface to server-sent events.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource)
|
|
`,onerror:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) ",onmessage:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) ",onopen:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) ",readyState:`*
|
|
* The **\`readyState\`** read-only property of the connection.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState)
|
|
`,url:`*
|
|
* The **\`url\`** read-only property of the URL of the source.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url)
|
|
`,withCredentials:"*\n * The **`withCredentials`** read-only property of the the `EventSource` object was instantiated with CORS credentials set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)\n ",close:"*\n * The **`close()`** method of the EventSource interface closes the connection, if one is made, and sets the ```js-nolint close() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close)\n "},EventTarget:{$:`*
|
|
* The **\`EventTarget\`** interface is implemented by objects that can receive events and may have listeners for them.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget)
|
|
`,addEventListener:`*
|
|
* The **\`addEventListener()\`** method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
|
|
`,dispatchEvent:`*
|
|
* The **\`dispatchEvent()\`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
|
|
`,removeEventListener:`*
|
|
* The **\`removeEventListener()\`** method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
|
|
`},ExtendableCookieChangeEvent:{$:`*
|
|
* The **\`ExtendableCookieChangeEvent\`** interface of the Cookie Store API is the event type passed to ServiceWorkerGlobalScope/cookiechange_event event fired at the ServiceWorkerGlobalScope when any cookie changes occur which match the service worker's cookie change subscription list.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableCookieChangeEvent)
|
|
`,changed:"*\n * The **`changed`** read-only property of the ExtendableCookieChangeEvent interface returns any cookies that have been changed by the given `ExtendableCookieChangeEvent` instance.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableCookieChangeEvent/changed)\n ",deleted:"*\n * The **`deleted`** read-only property of the ExtendableCookieChangeEvent interface returns any cookies that have been deleted by the given `ExtendableCookieChangeEvent` instance.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableCookieChangeEvent/deleted)\n "},ExtendableEvent:{$:"*\n * The **`ExtendableEvent`** interface extends the lifetime of the `install` and `activate` events dispatched on the global scope as part of the service worker lifecycle.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent)\n ",waitUntil:`*
|
|
* The **\`ExtendableEvent.waitUntil()\`** method tells the event dispatcher that work is ongoing.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil)
|
|
`},ExtendableMessageEvent:{$:`*
|
|
* The **\`ExtendableMessageEvent\`** interface of the Service Worker API represents the event object of a ServiceWorkerGlobalScope/message_event event fired on a service worker (when a message is received on the ServiceWorkerGlobalScope from another context) \u2014 extends the lifetime of such events.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent)
|
|
`,data:`*
|
|
* The **\`data\`** read-only property of the data type.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/data)
|
|
`,lastEventId:`*
|
|
* The **\`lastEventID\`** read-only property of the A string.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/lastEventId)
|
|
`,origin:`*
|
|
* The **\`origin\`** read-only property of the A string.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/origin)
|
|
`,ports:`*
|
|
* The **\`ports\`** read-only property of the channel (the channel the message is being sent through.) An array of MessagePort objects.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/ports)
|
|
`,source:`*
|
|
* The **\`source\`** read-only property of the A Client, ServiceWorker or MessagePort object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/source)
|
|
`},FetchEvent:{$:`*
|
|
* This is the event type for \`fetch\` events dispatched on the ServiceWorkerGlobalScope.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent)
|
|
`,clientId:`*
|
|
* The **\`clientId\`** read-only property of the current service worker is controlling.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/clientId)
|
|
`,handled:`*
|
|
* The **\`handled\`** property of the FetchEvent interface returns a promise indicating if the event has been handled by the fetch algorithm or not.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/handled)
|
|
`,preloadResponse:"*\n * The **`preloadResponse`** read-only property of the FetchEvent interface returns a Promise that resolves to the navigation preload Response if navigation preload was triggered, or `undefined` otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/preloadResponse)\n ",request:`*
|
|
* The **\`request\`** read-only property of the the event handler.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/request)
|
|
`,resultingClientId:`*
|
|
* The **\`resultingClientId\`** read-only property of the navigation.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/resultingClientId)
|
|
`,respondWith:`*
|
|
* The **\`respondWith()\`** method of allows you to provide a promise for a Response yourself.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/respondWith)
|
|
`},File:{$:`*
|
|
* The **\`File\`** interface provides information about files and allows JavaScript in a web page to access their content.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File)
|
|
`,lastModified:`*
|
|
* The **\`lastModified\`** read-only property of the File interface provides the last modified date of the file as the number of milliseconds since the Unix epoch (January 1, 1970 at midnight).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified)
|
|
`,name:`*
|
|
* The **\`name\`** read-only property of the File interface returns the name of the file represented by a File object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name)
|
|
`,webkitRelativePath:"*\n * The **`webkitRelativePath`** read-only property of the File interface contains a string which specifies the file's path relative to the directory selected by the user in an input element with its `webkitdirectory` attribute set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath)\n "},FileList:{$:"*\n * The **`FileList`** interface represents an object of this type returned by the `files` property of the HTML input element; this lets you access the list of files selected with the `<input type='file'>` element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList)\n ",length:"*\n * The **`length`** read-only property of the FileList interface returns the number of files in the `FileList`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length)\n ",item:`*
|
|
* The **\`item()\`** method of the FileList interface returns a File object representing the file at the specified index in the file list.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item)
|
|
`},FileReader:{$:`*
|
|
* The **\`FileReader\`** interface lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader)
|
|
`,error:`*
|
|
* The **\`error\`** read-only property of the FileReader interface returns the error that occurred while reading the file.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error)
|
|
`,onabort:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) ",onerror:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) ",onload:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) ",onloadend:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) ",onloadstart:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) ",onprogress:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) ",readyState:`*
|
|
* The **\`readyState\`** read-only property of the FileReader interface provides the current state of the reading operation.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState)
|
|
`,result:`*
|
|
* The **\`result\`** read-only property of the FileReader interface returns the file's contents.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result)
|
|
`,abort:`*
|
|
* The **\`abort()\`** method of the FileReader interface aborts the read operation.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort)
|
|
`,readAsArrayBuffer:`*
|
|
* The **\`readAsArrayBuffer()\`** method of the FileReader interface is used to start reading the contents of a specified Blob or File.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer)
|
|
`,readAsBinaryString:`*
|
|
* The **\`readAsBinaryString()\`** method of the FileReader interface is used to start reading the contents of the specified Blob or File.
|
|
* @deprecated
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString)
|
|
`,readAsDataURL:`*
|
|
* The **\`readAsDataURL()\`** method of the FileReader interface is used to read the contents of the specified file's data as a base64 encoded string.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL)
|
|
`,readAsText:`*
|
|
* The **\`readAsText()\`** method of the FileReader interface is used to read the contents of the specified Blob or File.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText)
|
|
`},FileReaderSync:{$:`*
|
|
* The **\`FileReaderSync\`** interface allows to read File or Blob objects synchronously.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync)
|
|
`,readAsArrayBuffer:`*
|
|
* The **\`readAsArrayBuffer()\`** method of the FileReaderSync interface allows to read File or Blob objects in a synchronous way into an ArrayBuffer.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsArrayBuffer)
|
|
`,readAsBinaryString:`*
|
|
* The **\`readAsBinaryString()\`** method of the FileReaderSync interface allows to read File or Blob objects in a synchronous way into a string.
|
|
* @deprecated
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsBinaryString)
|
|
`,readAsDataURL:`*
|
|
* The **\`readAsDataURL()\`** method of the FileReaderSync interface allows to read File or Blob objects in a synchronous way into a string representing a data URL.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsDataURL)
|
|
`,readAsText:`*
|
|
* The **\`readAsText()\`** method of the FileReaderSync interface allows to read File or Blob objects in a synchronous way into a string.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsText)
|
|
`},FileSystemDirectoryHandle:{$:`*
|
|
* The **\`FileSystemDirectoryHandle\`** interface of the File System API provides a handle to a file system directory.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle)
|
|
`,getDirectoryHandle:`*
|
|
* The **\`getDirectoryHandle()\`** method of the within the directory handle on which the method is called.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle)
|
|
`,getFileHandle:`*
|
|
* The **\`getFileHandle()\`** method of the directory the method is called.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle)
|
|
`,removeEntry:`*
|
|
* The **\`removeEntry()\`** method of the directory handle contains a file or directory called the name specified.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry)
|
|
`,resolve:`*
|
|
* The **\`resolve()\`** method of the directory names from the parent handle to the specified child entry, with the name of the child entry as the last array item.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve)
|
|
`},FileSystemFileHandle:{$:`*
|
|
* The **\`FileSystemFileHandle\`** interface of the File System API represents a handle to a file system entry.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle)
|
|
`,createSyncAccessHandle:`*
|
|
* The **\`createSyncAccessHandle()\`** method of the that can be used to synchronously read from and write to a file.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createSyncAccessHandle)
|
|
`,createWritable:`*
|
|
* The **\`createWritable()\`** method of the FileSystemFileHandle interface creates a FileSystemWritableFileStream that can be used to write to a file.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable)
|
|
`,getFile:"*\n * The **`getFile()`** method of the If the file on disk changes or is removed after this method is called, the returned ```js-nolint getFile() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile)\n "},FileSystemHandle:{$:`*
|
|
* The **\`FileSystemHandle\`** interface of the File System API is an object which represents a file or directory entry.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle)
|
|
`,kind:"*\n * The **`kind`** read-only property of the `'file'` if the associated entry is a file or `'directory'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind)\n ",name:`*
|
|
* The **\`name\`** read-only property of the handle.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name)
|
|
`,isSameEntry:"*\n * The **`isSameEntry()`** method of the ```js-nolint isSameEntry(fileSystemHandle) ``` - FileSystemHandle - : The `FileSystemHandle` to match against the handle on which the method is invoked.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry)\n "},FileSystemSyncAccessHandle:{$:`*
|
|
* The **\`FileSystemSyncAccessHandle\`** interface of the File System API represents a synchronous handle to a file system entry.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle)
|
|
`,close:"*\n * The **`close()`** method of the ```js-nolint close() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/close)\n ",flush:`*
|
|
* The **\`flush()\`** method of the Bear in mind that you only need to call this method if you need the changes committed to disk at a specific time, otherwise you can leave the underlying operating system to handle this when it sees fit, which should be OK in most cases.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/flush)
|
|
`,getSize:"*\n * The **`getSize()`** method of the ```js-nolint getSize() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/getSize)\n ",read:"*\n * The **`read()`** method of the ```js-nolint read(buffer, options) ``` - `buffer` - : An ArrayBuffer or `ArrayBufferView` (such as a DataView) representing the buffer that the file content should be read into.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/read)\n ",truncate:"*\n * The **`truncate()`** method of the ```js-nolint truncate(newSize) ``` - `newSize` - : The number of bytes to resize the file to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/truncate)\n ",write:`*
|
|
* The **\`write()\`** method of the Files within the origin private file system are not visible to end-users, therefore are not subject to the same security checks as methods running on files within the user-visible file system.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/write)
|
|
`},FileSystemWritableFileStream:{$:`*
|
|
* The **\`FileSystemWritableFileStream\`** interface of the File System API is a WritableStream object with additional convenience methods, which operates on a single file on disk.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream)
|
|
`,seek:`*
|
|
* The **\`seek()\`** method of the FileSystemWritableFileStream interface updates the current file cursor offset to the position (in bytes) specified when calling the method.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek)
|
|
`,truncate:`*
|
|
* The **\`truncate()\`** method of the FileSystemWritableFileStream interface resizes the file associated with the stream to the specified size in bytes.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate)
|
|
`,write:`*
|
|
* The **\`write()\`** method of the FileSystemWritableFileStream interface writes content into the file the method is called on, at the current file cursor offset.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write)
|
|
`},FontFace:{$:`*
|
|
* The **\`FontFace\`** interface of the CSS Font Loading API represents a single usable font face.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace)
|
|
`,ascentOverride:`*
|
|
* The **\`ascentOverride\`** property of the FontFace interface returns and sets the ascent metric for the font, the height above the baseline that CSS uses to lay out line boxes in an inline formatting context.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride)
|
|
`,descentOverride:`*
|
|
* The **\`descentOverride\`** property of the FontFace interface returns and sets the value of the @font-face/descent-override descriptor.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride)
|
|
`,display:`*
|
|
* The **\`display\`** property of the FontFace interface determines how a font face is displayed based on whether and when it is downloaded and ready to use.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display)
|
|
`,family:`*
|
|
* The **\`FontFace.family\`** property allows the author to get or set the font family of a FontFace object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family)
|
|
`,featureSettings:`*
|
|
* The **\`featureSettings\`** property of the FontFace interface retrieves or sets infrequently used font features that are not available from a font's variant properties.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings)
|
|
`,lineGapOverride:`*
|
|
* The **\`lineGapOverride\`** property of the FontFace interface returns and sets the value of the @font-face/line-gap-override descriptor.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride)
|
|
`,loaded:"*\n * The **`loaded`** read-only property of the FontFace interface returns a Promise that resolves with the current `FontFace` object when the font specified in the object's constructor is done loading or rejects with a `SyntaxError`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded)\n ",status:"*\n * The **`status`** read-only property of the FontFace interface returns an enumerated value indicating the status of the font, one of `'unloaded'`, `'loading'`, `'loaded'`, or `'error'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status)\n ",stretch:`*
|
|
* The **\`stretch\`** property of the FontFace interface retrieves or sets how the font stretches.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch)
|
|
`,style:`*
|
|
* The **\`style\`** property of the FontFace interface retrieves or sets the font's style.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style)
|
|
`,unicodeRange:`*
|
|
* The **\`unicodeRange\`** property of the FontFace interface retrieves or sets the range of unicode code points encompassing the font.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange)
|
|
`,weight:`*
|
|
* The **\`weight\`** property of the FontFace interface retrieves or sets the weight of the font.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight)
|
|
`,load:"*\n * The **`load()`** method of the FontFace interface requests and loads a font whose `source` was specified as a URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load)\n "},FontFaceSet:{$:`*
|
|
* The **\`FontFaceSet\`** interface of the CSS Font Loading API manages the loading of font-faces and querying of their download status.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet)
|
|
`,onloading:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) ",onloadingdone:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) ",onloadingerror:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) ",ready:`*
|
|
* The \`ready\` read-only property of the FontFaceSet interface returns a Promise that resolves to the given FontFaceSet.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready)
|
|
`,status:`*
|
|
* The **\`status\`** read-only property of the FontFaceSet interface returns the loading state of the fonts in the set.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status)
|
|
`,check:"*\n * The `check()` method of the FontFaceSet returns `true` if you can render some text using the given font specification without attempting to use any fonts in this `FontFaceSet` that are not yet fully loaded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check)\n ",load:`*
|
|
* The \`load()\` method of the FontFaceSet forces all the fonts given in parameters to be loaded.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load)
|
|
`},FontFaceSetLoadEvent:{$:`*
|
|
* The **\`FontFaceSetLoadEvent\`** interface of the CSS Font Loading API represents events fired at a FontFaceSet after it starts loading font faces.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent)
|
|
`,fontfaces:`*
|
|
* The **\`fontfaces\`** read-only property of the An array of FontFace instance.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces)
|
|
`},FontFaceSource:{fonts:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) "},FormData:{$:`*
|
|
* The **\`FormData\`** interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the Window/fetch, XMLHttpRequest.send() or navigator.sendBeacon() methods.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData)
|
|
`,append:"*\n * The **`append()`** method of the FormData interface appends a new value onto an existing key inside a `FormData` object, or adds the key if it does not already exist.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append)\n ",delete:"*\n * The **`delete()`** method of the FormData interface deletes a key and its value(s) from a `FormData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete)\n ",get:"*\n * The **`get()`** method of the FormData interface returns the first value associated with a given key from within a `FormData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get)\n ",getAll:"*\n * The **`getAll()`** method of the FormData interface returns all the values associated with a given key from within a `FormData` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll)\n ",has:"*\n * The **`has()`** method of the FormData interface returns whether a `FormData` object contains a certain key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has)\n ",set:"*\n * The **`set()`** method of the FormData interface sets a new value for an existing key inside a `FormData` object, or adds the key/value if it does not already exist.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set)\n ",entries:" Returns an array of key, value pairs for every entry in the list. ",keys:" Returns a list of keys in the list. ",values:" Returns a list of values in the list. "},GPUError:{$:`*
|
|
* The **\`GPUError\`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the GPUDevice.uncapturederror_event event.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError)
|
|
`,message:`*
|
|
* The **\`message\`** read-only property of the A string.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError/message)
|
|
`},GenericTransformStream:{readable:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) ",writable:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) "},Headers:{$:`*
|
|
* The **\`Headers\`** interface of the Fetch API allows you to perform various actions on HTTP request and response headers.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers)
|
|
`,append:"*\n * The **`append()`** method of the Headers interface appends a new value onto an existing header inside a `Headers` object, or adds the header if it does not already exist.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append)\n ",delete:"*\n * The **`delete()`** method of the Headers interface deletes a header from the current `Headers` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete)\n ",get:"*\n * The **`get()`** method of the Headers interface returns a byte string of all the values of a header within a `Headers` object with a given name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get)\n ",getSetCookie:`*
|
|
* The **\`getSetCookie()\`** method of the Headers interface returns an array containing the values of all Set-Cookie headers associated with a response.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie)
|
|
`,has:"*\n * The **`has()`** method of the Headers interface returns a boolean stating whether a `Headers` object contains a certain header.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has)\n ",set:"*\n * The **`set()`** method of the Headers interface sets a new value for an existing header inside a `Headers` object, or adds the header if it does not already exist.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set)\n ",entries:" Returns an iterator allowing to go through all key/value pairs contained in this object. ",keys:" Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. ",values:" Returns an iterator allowing to go through all values of the key/value pairs contained in this object. "},IDBCursor:{$:`*
|
|
* The **\`IDBCursor\`** interface of the IndexedDB API represents a cursor for traversing or iterating over multiple records in a database.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor)
|
|
`,direction:`*
|
|
* The **\`direction\`** read-only property of the direction of traversal of the cursor (set using section below for possible values.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/direction)
|
|
`,key:`*
|
|
* The **\`key\`** read-only property of the position.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/key)
|
|
`,primaryKey:`*
|
|
* The **\`primaryKey\`** read-only property of the cursor is currently being iterated or has iterated outside its range, this is set to undefined.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/primaryKey)
|
|
`,request:`*
|
|
* The **\`request\`** read-only property of the IDBCursor interface returns the IDBRequest used to obtain the cursor.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/request)
|
|
`,source:`*
|
|
* The **\`source\`** read-only property of the null or throws an exception, even if the cursor is currently being iterated, has iterated past its end, or its transaction is not active.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/source)
|
|
`,advance:`*
|
|
* The **\`advance()\`** method of the IDBCursor interface sets the number of times a cursor should move its position forward.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/advance)
|
|
`,continue:`*
|
|
* The **\`continue()\`** method of the IDBCursor interface advances the cursor to the next position along its direction, to the item whose key matches the optional key parameter.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continue)
|
|
`,continuePrimaryKey:`*
|
|
* The **\`continuePrimaryKey()\`** method of the matches the key parameter as well as whose primary key matches the primary key parameter.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continuePrimaryKey)
|
|
`,delete:`*
|
|
* The **\`delete()\`** method of the IDBCursor interface returns an IDBRequest object, and, in a separate thread, deletes the record at the cursor's position, without changing the cursor's position.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/delete)
|
|
`,update:`*
|
|
* The **\`update()\`** method of the IDBCursor interface returns an IDBRequest object, and, in a separate thread, updates the value at the current position of the cursor in the object store.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/update)
|
|
`},IDBCursorWithValue:{$:`*
|
|
* The **\`IDBCursorWithValue\`** interface of the IndexedDB API represents a cursor for traversing or iterating over multiple records in a database.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue)
|
|
`,value:`*
|
|
* The **\`value\`** read-only property of the whatever that is.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue/value)
|
|
`},IDBDatabase:{$:"*\n * The **`IDBDatabase`** interface of the IndexedDB API provides a connection to a database; you can use an `IDBDatabase` object to open a transaction on your database then create, manipulate, and delete objects (data) in that database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase)\n ",name:"*\n * The **`name`** read-only property of the `IDBDatabase` interface is a string that contains the name of the connected database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name)\n ",objectStoreNames:`*
|
|
* The **\`objectStoreNames\`** read-only property of the list of the names of the object stores currently in the connected database.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)
|
|
`,onclose:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) ",onversionchange:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/versionchange_event) ",version:`*
|
|
* The **\`version\`** property of the IDBDatabase interface is a 64-bit integer that contains the version of the connected database.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/version)
|
|
`,close:`*
|
|
* The **\`close()\`** method of the IDBDatabase interface returns immediately and closes the connection in a separate thread.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close)
|
|
`,createObjectStore:`*
|
|
* The **\`createObjectStore()\`** method of the The method takes the name of the store as well as a parameter object that lets you define important optional properties.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/createObjectStore)
|
|
`,deleteObjectStore:`*
|
|
* The **\`deleteObjectStore()\`** method of the the connected database, along with any indexes that reference it.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/deleteObjectStore)
|
|
`,transaction:`*
|
|
* The **\`transaction\`** method of the IDBDatabase interface immediately returns a transaction object (IDBTransaction) containing the IDBTransaction.objectStore method, which you can use to access your object store.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
|
|
`},IDBFactory:{$:`*
|
|
* The **\`IDBFactory\`** interface of the IndexedDB API lets applications asynchronously access the indexed databases.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory)
|
|
`,cmp:`*
|
|
* The **\`cmp()\`** method of the IDBFactory interface compares two values as keys to determine equality and ordering for IndexedDB operations, such as storing and iterating.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/cmp)
|
|
`,databases:`*
|
|
* The **\`databases\`** method of the IDBFactory interface returns a Promise that fulfills with an array of objects containing the name and version of all the available databases.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/databases)
|
|
`,deleteDatabase:`*
|
|
* The **\`deleteDatabase()\`** method of the returns an IDBOpenDBRequest object immediately, and performs the deletion operation asynchronously.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/deleteDatabase)
|
|
`,open:`*
|
|
* The **\`open()\`** method of the IDBFactory interface requests opening a connection to a database.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/open)
|
|
`},IDBIndex:{$:`*
|
|
* \`IDBIndex\` interface of the IndexedDB API provides asynchronous access to an index in a database.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex)
|
|
`,keyPath:`*
|
|
* The **\`keyPath\`** property of the IDBIndex interface returns the key path of the current index.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/keyPath)
|
|
`,multiEntry:`*
|
|
* The **\`multiEntry\`** read-only property of the behaves when the result of evaluating the index's key path yields an array.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/multiEntry)
|
|
`,name:`*
|
|
* The **\`name\`** property of the IDBIndex interface contains a string which names the index.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/name)
|
|
`,objectStore:`*
|
|
* The **\`objectStore\`** property of the IDBIndex interface returns the object store referenced by the current index.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/objectStore)
|
|
`,unique:`*
|
|
* The **\`unique\`** read-only property returns a boolean that states whether the index allows duplicate keys.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/unique)
|
|
`,count:`*
|
|
* The **\`count()\`** method of the IDBIndex interface returns an IDBRequest object, and in a separate thread, returns the number of records within a key range.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/count)
|
|
`,get:"*\n * The **`get()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the value in the referenced object store that corresponds to the given key or the first corresponding value, if `key` is set to an If a value is found, then a structured clone of it is created and set as the `result` of the request object: this returns the record the key is associated with.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/get)\n ",getAll:`*
|
|
* The **\`getAll()\`** method of the IDBIndex interface retrieves all objects that are inside the index.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)
|
|
`,getAllKeys:"*\n * The **`getAllKeys()`** method of the IDBIndex interface asynchronously retrieves the primary keys of all objects inside the index, setting them as the `result` of the request object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)\n ",getKey:"*\n * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if `key` is set to an If a primary key is found, it is set as the `result` of the request object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getKey)\n ",openCursor:`*
|
|
* The **\`openCursor()\`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openCursor)
|
|
`,openKeyCursor:`*
|
|
* The **\`openKeyCursor()\`** method of the a separate thread, creates a cursor over the specified key range, as arranged by this index.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openKeyCursor)
|
|
`},IDBKeyRange:{$:`*
|
|
* The **\`IDBKeyRange\`** interface of the IndexedDB API represents a continuous interval over some data type that is used for keys.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange)
|
|
`,lower:`*
|
|
* The **\`lower\`** read-only property of the The lower bound of the key range (can be any type.) The following example illustrates how you'd use a key range.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lower)
|
|
`,lowerOpen:`*
|
|
* The **\`lowerOpen\`** read-only property of the lower-bound value is included in the key range.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerOpen)
|
|
`,upper:`*
|
|
* The **\`upper\`** read-only property of the The upper bound of the key range (can be any type.) The following example illustrates how you'd use a key range.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upper)
|
|
`,upperOpen:`*
|
|
* The **\`upperOpen\`** read-only property of the upper-bound value is included in the key range.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperOpen)
|
|
`,includes:`*
|
|
* The \`includes()\` method of the IDBKeyRange interface returns a boolean indicating whether a specified key is inside the key range.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/includes)
|
|
`,"static:bound":`*
|
|
* The **\`bound()\`** static method of the IDBKeyRange interface creates a new key range with the specified upper and lower bounds.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static)
|
|
`,"static:lowerBound":`*
|
|
* The **\`lowerBound()\`** static method of the By default, it includes the lower endpoint value and is closed.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static)
|
|
`,"static:only":`*
|
|
* The **\`only()\`** static method of the IDBKeyRange interface creates a new key range containing a single value.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static)
|
|
`,"static:upperBound":`*
|
|
* The **\`upperBound()\`** static method of the it includes the upper endpoint value and is closed.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static)
|
|
`},IDBObjectStore:{$:`*
|
|
* The **\`IDBObjectStore\`** interface of the IndexedDB API represents an object store in a database.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore)
|
|
`,autoIncrement:`*
|
|
* The **\`autoIncrement\`** read-only property of the for this object store.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/autoIncrement)
|
|
`,indexNames:`*
|
|
* The **\`indexNames\`** read-only property of the in this object store.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/indexNames)
|
|
`,keyPath:`*
|
|
* The **\`keyPath\`** read-only property of the If this property is null, the application must provide a key for each modification operation.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath)
|
|
`,name:`*
|
|
* The **\`name\`** property of the IDBObjectStore interface indicates the name of this object store.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/name)
|
|
`,transaction:`*
|
|
* The **\`transaction\`** read-only property of the object store belongs.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/transaction)
|
|
`,add:`*
|
|
* The **\`add()\`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, creates a structured clone of the value, and stores the cloned value in the object store.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/add)
|
|
`,clear:`*
|
|
* The **\`clear()\`** method of the IDBObjectStore interface creates and immediately returns an IDBRequest object, and clears this object store in a separate thread.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/clear)
|
|
`,count:`*
|
|
* The **\`count()\`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the total number of records that match the provided key or of records in the store.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/count)
|
|
`,createIndex:`*
|
|
* The **\`createIndex()\`** method of the field/column defining a new data point for each database record to contain.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
|
|
`,delete:`*
|
|
* The **\`delete()\`** method of the and, in a separate thread, deletes the specified record or records.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/delete)
|
|
`,deleteIndex:`*
|
|
* The **\`deleteIndex()\`** method of the the connected database, used during a version upgrade.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/deleteIndex)
|
|
`,get:`*
|
|
* The **\`get()\`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the object selected by the specified key.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/get)
|
|
`,getAll:`*
|
|
* The **\`getAll()\`** method of the containing all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)
|
|
`,getAllKeys:`*
|
|
* The \`getAllKeys()\` method of the IDBObjectStore interface returns an IDBRequest object retrieves record keys for all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)
|
|
`,getKey:`*
|
|
* The **\`getKey()\`** method of the and, in a separate thread, returns the key selected by the specified query.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getKey)
|
|
`,index:`*
|
|
* The **\`index()\`** method of the IDBObjectStore interface opens a named index in the current object store, after which it can be used to, for example, return a series of records sorted by that index using a cursor.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/index)
|
|
`,openCursor:`*
|
|
* The **\`openCursor()\`** method of the and, in a separate thread, returns a new IDBCursorWithValue object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openCursor)
|
|
`,openKeyCursor:`*
|
|
* The **\`openKeyCursor()\`** method of the whose result will be set to an IDBCursor that can be used to iterate through matching results.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openKeyCursor)
|
|
`,put:`*
|
|
* The **\`put()\`** method of the IDBObjectStore interface updates a given record in a database, or inserts a new record if the given item does not already exist.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/put)
|
|
`},IDBOpenDBRequest:{$:`*
|
|
* The **\`IDBOpenDBRequest\`** interface of the IndexedDB API provides access to the results of requests to open or delete databases (performed using IDBFactory.open and IDBFactory.deleteDatabase), using specific event handler attributes.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest)
|
|
`,onblocked:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/blocked_event) ",onupgradeneeded:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/upgradeneeded_event) "},IDBRequest:{$:`*
|
|
* The **\`IDBRequest\`** interface of the IndexedDB API provides access to results of asynchronous requests to databases and database objects using event handler attributes.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest)
|
|
`,error:`*
|
|
* The **\`error\`** read-only property of the request.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error)
|
|
`,onerror:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error_event) ",onsuccess:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/success_event) ",readyState:"*\n * The **`readyState`** read-only property of the Every request starts in the `pending` state.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/readyState)\n ",result:"*\n * The **`result`** read-only property of the any - `InvalidStateError` DOMException - : Thrown when attempting to access the property if the request is not completed, and therefore the result is not available.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/result)\n ",source:`*
|
|
* The **\`source\`** read-only property of the Index or an object store.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/source)
|
|
`,transaction:`*
|
|
* The **\`transaction\`** read-only property of the IDBRequest interface returns the transaction for the request, that is, the transaction the request is being made inside.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/transaction)
|
|
`},IDBTransaction:{$:`*
|
|
* The **\`IDBTransaction\`** interface of the IndexedDB API provides a static, asynchronous transaction on a database using event handler attributes.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction)
|
|
`,db:`*
|
|
* The **\`db\`** read-only property of the IDBTransaction interface returns the database connection with which this transaction is associated.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/db)
|
|
`,durability:`*
|
|
* The **\`durability\`** read-only property of the IDBTransaction interface returns the durability hint the transaction was created with.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/durability)
|
|
`,error:`*
|
|
* The **\`IDBTransaction.error\`** property of the IDBTransaction interface returns the type of error when there is an unsuccessful transaction.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error)
|
|
`,mode:"*\n * The **`mode`** read-only property of the data in the object stores in the scope of the transaction (i.e., is the mode to be read-only, or do you want to write to the object stores?) The default value is `readonly`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/mode)\n ",objectStoreNames:`*
|
|
* The **\`objectStoreNames\`** read-only property of the of IDBObjectStore objects.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStoreNames)
|
|
`,onabort:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) ",oncomplete:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/complete_event) ",onerror:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error_event) ",abort:`*
|
|
* The **\`abort()\`** method of the IDBTransaction interface rolls back all the changes to objects in the database associated with this transaction.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort)
|
|
`,commit:`*
|
|
* The **\`commit()\`** method of the IDBTransaction interface commits the transaction if it is called on an active transaction.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/commit)
|
|
`,objectStore:`*
|
|
* The **\`objectStore()\`** method of the added to the scope of this transaction.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStore)
|
|
`},IDBVersionChangeEvent:{$:`*
|
|
* The **\`IDBVersionChangeEvent\`** interface of the IndexedDB API indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.upgradeneeded_event event handler function.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent)
|
|
`,newVersion:`*
|
|
* The **\`newVersion\`** read-only property of the database.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/newVersion)
|
|
`,oldVersion:`*
|
|
* The **\`oldVersion\`** read-only property of the database.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/oldVersion)
|
|
`},ImageBitmap:{$:`*
|
|
* The **\`ImageBitmap\`** interface represents a bitmap image which can be drawn to a canvas without undue latency.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap)
|
|
`,height:`*
|
|
* The **\`ImageBitmap.height\`** read-only property returns the ImageBitmap object's height in CSS pixels.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/height)
|
|
`,width:`*
|
|
* The **\`ImageBitmap.width\`** read-only property returns the ImageBitmap object's width in CSS pixels.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/width)
|
|
`,close:"*\n * The **`ImageBitmap.close()`** method disposes of all graphical resources associated with an `ImageBitmap`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close)\n "},ImageBitmapRenderingContext:{$:`*
|
|
* The **\`ImageBitmapRenderingContext\`** interface is a canvas rendering context that provides the functionality to replace the canvas's contents with the given ImageBitmap.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext)
|
|
`,transferFromImageBitmap:`*
|
|
* The **\`ImageBitmapRenderingContext.transferFromImageBitmap()\`** method displays the given ImageBitmap in the canvas associated with this rendering context.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap)
|
|
`},ImageData:{$:`*
|
|
* The **\`ImageData\`** interface represents the underlying pixel data of an area of a canvas element.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData)
|
|
`,colorSpace:`*
|
|
* The read-only **\`ImageData.colorSpace\`** property is a string indicating the color space of the image data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace)
|
|
`,data:`*
|
|
* The readonly **\`ImageData.data\`** property returns a pixel data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
|
|
`,height:`*
|
|
* The readonly **\`ImageData.height\`** property returns the number of rows in the ImageData object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/height)
|
|
`,width:`*
|
|
* The readonly **\`ImageData.width\`** property returns the number of pixels per row in the ImageData object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/width)
|
|
`},ImageDecoder:{$:`*
|
|
* The **\`ImageDecoder\`** interface of the WebCodecs API provides a way to unpack and decode encoded image data.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder)
|
|
`,complete:`*
|
|
* The **\`complete\`** read-only property of the ImageDecoder interface returns true if encoded data has completed buffering.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/complete)
|
|
`,completed:`*
|
|
* The **\`completed\`** read-only property of the ImageDecoder interface returns a promise that resolves once encoded data has finished buffering.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/completed)
|
|
`,tracks:`*
|
|
* The **\`tracks\`** read-only property of the ImageDecoder interface returns a list of the tracks in the encoded image data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/tracks)
|
|
`,type:`*
|
|
* The **\`type\`** read-only property of the ImageDecoder interface reflects the MIME type configured during construction.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/type)
|
|
`,close:`*
|
|
* The **\`close()\`** method of the ImageDecoder interface ends all pending work and releases system resources.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/close)
|
|
`,decode:`*
|
|
* The **\`decode()\`** method of the ImageDecoder interface enqueues a control message to decode the frame of an image.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/decode)
|
|
`,reset:"*\n * The **`reset()`** method of the ImageDecoder interface aborts all pending `decode()` operations; rejecting all pending promises.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/reset)\n ","static:isTypeSupported":`*
|
|
* The **\`ImageDecoder.isTypeSupported()\`** static method checks if a given MIME type can be decoded by the user agent.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/isTypeSupported_static)
|
|
`},ImageTrack:{$:`*
|
|
* The **\`ImageTrack\`** interface of the WebCodecs API represents an individual image track.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack)
|
|
`,animated:"*\n * The **`animated`** property of the ImageTrack interface returns `true` if the track is animated and therefore has multiple frames.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/animated)\n ",frameCount:`*
|
|
* The **\`frameCount\`** property of the ImageTrack interface returns the number of frames in the track.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/frameCount)
|
|
`,repetitionCount:`*
|
|
* The **\`repetitionCount\`** property of the ImageTrack interface returns the number of repetitions of this track.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/repetitionCount)
|
|
`,selected:"*\n * The **`selected`** property of the ImageTrack interface returns `true` if the track is selected for decoding.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/selected)\n "},ImageTrackList:{$:`*
|
|
* The **\`ImageTrackList\`** interface of the WebCodecs API represents a list of image tracks.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList)
|
|
`,length:"*\n * The **`length`** property of the ImageTrackList interface returns the length of the `ImageTrackList`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/length)\n ",ready:"*\n * The **`ready`** property of the ImageTrackList interface returns a Promise that resolves when the `ImageTrackList` is populated with ImageTrack.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/ready)\n ",selectedIndex:"*\n * The **`selectedIndex`** property of the ImageTrackList interface returns the `index` of the selected track.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedIndex)\n ",selectedTrack:`*
|
|
* The **\`selectedTrack\`** property of the ImageTrackList interface returns an ImageTrack object representing the currently selected track.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedTrack)
|
|
`},KHR_parallel_shader_compile:{$:"*\n * The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (`COMPLETION_STATUS_KHR`) can be queried without potentially incurring stalls.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile)\n "},Lock:{$:`*
|
|
* The **\`Lock\`** interface of the Web Locks API provides the name and mode of a lock.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock)
|
|
`,mode:`*
|
|
* The **\`mode\`** read-only property of the Lock interface returns the access mode passed to LockManager.request() when the lock was requested.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/mode)
|
|
`,name:`*
|
|
* The **\`name\`** read-only property of the Lock interface returns the _name_ passed to The name of a lock is passed by script when the lock is requested.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/name)
|
|
`},LockManager:{$:`*
|
|
* The **\`LockManager\`** interface of the Web Locks API provides methods for requesting a new Lock object and querying for an existing \`Lock\` object.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager)
|
|
`,query:`*
|
|
* The **\`query()\`** method of the LockManager interface returns a Promise that resolves with an object containing information about held and pending locks.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query)
|
|
`,request:`*
|
|
* The **\`request()\`** method of the LockManager interface requests a Lock object with parameters specifying its name and characteristics.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request)
|
|
`},MediaCapabilities:{$:`*
|
|
* The **\`MediaCapabilities\`** interface of the Media Capabilities API provides information about the decoding abilities of the device, system and browser.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities)
|
|
`,decodingInfo:`*
|
|
* The **\`decodingInfo()\`** method of the MediaCapabilities interface returns a promise that fulfils with information about how well the user agent can decode/display media with a given configuration.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/decodingInfo)
|
|
`,encodingInfo:`*
|
|
* The **\`encodingInfo()\`** method of the MediaCapabilities interface returns a promise that fulfills with the tested media configuration's capabilities for encoding media.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/encodingInfo)
|
|
`},MediaSourceHandle:{$:`*
|
|
* The **\`MediaSourceHandle\`** interface of the Media Source Extensions API is a proxy for a MediaSource that can be transferred from a dedicated worker back to the main thread and attached to a media element via its HTMLMediaElement.srcObject property.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSourceHandle)
|
|
`},MediaStreamTrackProcessor:{$:`*
|
|
* The **\`MediaStreamTrackProcessor\`** interface of the Insertable Streams for MediaStreamTrack API consumes a video MediaStreamTrack object's source and generates a stream of VideoFrame objects.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackProcessor)
|
|
`,readable:`*
|
|
* The **\`readable\`** property of the MediaStreamTrackProcessor interface returns a ReadableStream of VideoFrames.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackProcessor/readable)
|
|
`},MessageChannel:{$:`*
|
|
* The **\`MessageChannel\`** interface of the Channel Messaging API allows us to create a new message channel and send data through it via its two MessagePort properties.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel)
|
|
`,port1:`*
|
|
* The **\`port1\`** read-only property of the the port attached to the context that originated the channel.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1)
|
|
`,port2:`*
|
|
* The **\`port2\`** read-only property of the the port attached to the context at the other end of the channel, which the message is initially sent to.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2)
|
|
`},MessageEvent:{$:`*
|
|
* The **\`MessageEvent\`** interface represents a message received by a target object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent)
|
|
`,data:`*
|
|
* The **\`data\`** read-only property of the The data sent by the message emitter; this can be any data type, depending on what originated this event.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)
|
|
`,lastEventId:`*
|
|
* The **\`lastEventId\`** read-only property of the unique ID for the event.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)
|
|
`,origin:`*
|
|
* The **\`origin\`** read-only property of the origin of the message emitter.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)
|
|
`,ports:`*
|
|
* The **\`ports\`** read-only property of the containing all MessagePort objects sent with the message, in order.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)
|
|
`,source:"*\n * The **`source`** read-only property of the a WindowProxy, MessagePort, or a `MessageEventSource` (which can be a WindowProxy, message emitter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)\n ",initMessageEvent:" @deprecated "},MessageEventTarget:{onmessage:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) ",onmessageerror:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) "},MessagePort:{$:`*
|
|
* The **\`MessagePort\`** interface of the Channel Messaging API represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)
|
|
`,close:`*
|
|
* The **\`close()\`** method of the MessagePort interface disconnects the port, so it is no longer active.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)
|
|
`,postMessage:`*
|
|
* The **\`postMessage()\`** method of the transfers ownership of objects to other browsing contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)
|
|
`,start:`*
|
|
* The **\`start()\`** method of the MessagePort interface starts the sending of messages queued on the port.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start)
|
|
`},NavigationPreloadManager:{$:`*
|
|
* The **\`NavigationPreloadManager\`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager)
|
|
`,disable:"*\n * The **`disable()`** method of the NavigationPreloadManager interface halts the automatic preloading of service-worker-managed resources previously started using NavigationPreloadManager.enable() It returns a promise that resolves with `undefined`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable)\n ",enable:`*
|
|
* The **\`enable()\`** method of the NavigationPreloadManager interface is used to enable preloading of resources managed by the service worker.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable)
|
|
`,getState:`*
|
|
* The **\`getState()\`** method of the NavigationPreloadManager interface returns a Promise that resolves to an object with properties that indicate whether preload is enabled and what value will be sent in the Service-Worker-Navigation-Preload HTTP header.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/getState)
|
|
`,setHeaderValue:`*
|
|
* The **\`setHeaderValue()\`** method of the NavigationPreloadManager interface sets the value of the Service-Worker-Navigation-Preload header that will be sent with requests resulting from a Window/fetch operation made during service worker navigation preloading.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/setHeaderValue)
|
|
`},NavigatorBadge:{$:" Available only in secure contexts. ",clearAppBadge:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clearAppBadge) ",setAppBadge:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/setAppBadge) "},NavigatorConcurrentHardware:{hardwareConcurrency:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/hardwareConcurrency) "},NavigatorID:{appCodeName:`*
|
|
* @deprecated
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)
|
|
`,appName:`*
|
|
* @deprecated
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)
|
|
`,appVersion:`*
|
|
* @deprecated
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)
|
|
`,platform:`*
|
|
* @deprecated
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)
|
|
`,product:`*
|
|
* @deprecated
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)
|
|
`,userAgent:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) "},NavigatorLanguage:{language:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/language) ",languages:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/languages) "},NavigatorLocks:{$:" Available only in secure contexts. ",locks:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/locks) "},NavigatorOnLine:{onLine:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/onLine) "},NavigatorStorage:{$:" Available only in secure contexts. ",storage:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/storage) "},Notification:{$:`*
|
|
* The **\`Notification\`** interface of the Notifications API is used to configure and display desktop notifications to the user.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
|
|
`,badge:`*
|
|
* The **\`badge\`** read-only property of the Notification interface returns a string containing the URL of an image to represent the notification when there is not enough space to display the notification itself such as for example, the Android Notification Bar.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge)
|
|
`,body:"*\n * The **`body`** read-only property of the specified in the `body` option of the A string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body)\n ",data:"*\n * The **`data`** read-only property of the data, as specified in the `data` option of the The notification's data can be any arbitrary data that you want associated with the notification.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data)\n ",dir:"*\n * The **`dir`** read-only property of the Notification interface indicates the text direction of the notification, as specified in the `dir` option of the Notification.Notification constructor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/dir)\n ",icon:"*\n * The **`icon`** read-only property of the part of the notification, as specified in the `icon` option of the A string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/icon)\n ",lang:"*\n * The **`lang`** read-only property of the as specified in the `lang` option of the The language itself is specified using a string representing a language tag according to MISSING: RFC(5646, 'Tags for Identifying Languages (also known as BCP 47)')].\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/lang)\n ",onclick:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/click_event) ",onclose:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close_event) ",onerror:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/error_event) ",onshow:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) ",requireInteraction:`*
|
|
* The **\`requireInteraction\`** read-only property of the Notification interface returns a boolean value indicating that a notification should remain active until the user clicks or dismisses it, rather than closing automatically.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction)
|
|
`,silent:`*
|
|
* The **\`silent\`** read-only property of the silent, i.e., no sounds or vibrations should be issued regardless of the device settings.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent)
|
|
`,tag:"*\n * The **`tag`** read-only property of the as specified in the `tag` option of the The idea of notification tags is that more than one notification can share the same tag, linking them together.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag)\n ",title:"*\n * The **`title`** read-only property of the specified in the `title` parameter of the A string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title)\n ",close:`*
|
|
* The **\`close()\`** method of the Notification interface is used to close/remove a previously displayed notification.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close)
|
|
`,"static:permission":`*
|
|
* The **\`permission\`** read-only static property of the Notification interface indicates the current permission granted by the user for the current origin to display web notifications.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static)
|
|
`},NotificationEvent:{$:`*
|
|
* The **\`NotificationEvent\`** interface of the Notifications API represents a notification event dispatched on the ServiceWorkerGlobalScope of a ServiceWorker.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent)
|
|
`,action:`*
|
|
* The **\`action\`** read-only property of the NotificationEvent interface returns the string ID of the notification button the user clicked.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/action)
|
|
`,notification:`*
|
|
* The **\`notification\`** read-only property of the NotificationEvent interface returns the instance of the Notification that was clicked to fire the event.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/notification)
|
|
`},OES_draw_buffers_indexed:{$:`*
|
|
* The **\`OES_draw_buffers_indexed\`** extension is part of the WebGL API and enables the use of different blend options when writing to multiple color buffers simultaneously.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed)
|
|
`,blendEquationSeparateiOES:`*
|
|
* The \`blendEquationSeparateiOES()\` method of the OES_draw_buffers_indexed WebGL extension sets the RGB and alpha blend equations separately for a particular draw buffer.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationSeparateiOES)
|
|
`,blendEquationiOES:"*\n * The `blendEquationiOES()` method of the `OES_draw_buffers_indexed` WebGL extension sets both the RGB blend and alpha blend equations for a particular draw buffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES)\n ",blendFuncSeparateiOES:`*
|
|
* The \`blendFuncSeparateiOES()\` method of the OES_draw_buffers_indexed WebGL extension defines which function is used when blending pixels for RGB and alpha components separately for a particular draw buffer.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFuncSeparateiOES)
|
|
`,blendFunciOES:`*
|
|
* The \`blendFunciOES()\` method of the OES_draw_buffers_indexed WebGL extension defines which function is used when blending pixels for a particular draw buffer.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES)
|
|
`,colorMaskiOES:`*
|
|
* The \`colorMaskiOES()\` method of the OES_draw_buffers_indexed WebGL extension sets which color components to enable or to disable when drawing or rendering for a particular draw buffer.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/colorMaskiOES)
|
|
`,disableiOES:`*
|
|
* The \`disableiOES()\` method of the OES_draw_buffers_indexed WebGL extension enables blending for a particular draw buffer.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES)
|
|
`,enableiOES:`*
|
|
* The \`enableiOES()\` method of the OES_draw_buffers_indexed WebGL extension enables blending for a particular draw buffer.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/enableiOES)
|
|
`},OES_element_index_uint:{$:"*\n * The **`OES_element_index_uint`** extension is part of the WebGL API and adds support for `gl.UNSIGNED_INT` types to WebGLRenderingContext.drawElements().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_element_index_uint)\n "},OES_fbo_render_mipmap:{$:`*
|
|
* The \`OES_fbo_render_mipmap\` extension is part of the WebGL API and makes it possible to attach any level of a texture to a framebuffer object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_fbo_render_mipmap)
|
|
`},OES_standard_derivatives:{$:"*\n * The **`OES_standard_derivatives`** extension is part of the WebGL API and adds the GLSL derivative functions `dFdx`, `dFdy`, and `fwidth`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_standard_derivatives)\n "},OES_texture_float:{$:`*
|
|
* The **\`OES_texture_float\`** extension is part of the WebGL API and exposes floating-point pixel types for textures.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float)
|
|
`},OES_texture_float_linear:{$:`*
|
|
* The **\`OES_texture_float_linear\`** extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float_linear)
|
|
`},OES_texture_half_float:{$:`*
|
|
* The **\`OES_texture_half_float\`** extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float)
|
|
`},OES_texture_half_float_linear:{$:`*
|
|
* The **\`OES_texture_half_float_linear\`** extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float_linear)
|
|
`},OES_vertex_array_object:{$:`*
|
|
* The **OES_vertex_array_object** extension is part of the WebGL API and provides vertex array objects (VAOs) which encapsulate vertex array states.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object)
|
|
`,bindVertexArrayOES:`*
|
|
* The **\`OES_vertex_array_object.bindVertexArrayOES()\`** method of the WebGL API binds a passed WebGLVertexArrayObject object to the buffer.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES)
|
|
`,createVertexArrayOES:`*
|
|
* The **\`OES_vertex_array_object.createVertexArrayOES()\`** method of the WebGL API creates and initializes a pointing to vertex array data and which provides names for different sets of vertex data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES)
|
|
`,deleteVertexArrayOES:"*\n * The **`OES_vertex_array_object.deleteVertexArrayOES()`** method of the WebGL API deletes a given ```js-nolint deleteVertexArrayOES(arrayObject) ``` - `arrayObject` - : A WebGLVertexArrayObject (VAO) object to delete.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES)\n ",isVertexArrayOES:"*\n * The **`OES_vertex_array_object.isVertexArrayOES()`** method of the WebGL API returns `true` if the passed object is a WebGLVertexArrayObject object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES)\n "},OVR_multiview2:{$:`*
|
|
* The \`OVR_multiview2\` extension is part of the WebGL API and adds support for rendering into multiple views simultaneously.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2)
|
|
`,framebufferTextureMultiviewOVR:`*
|
|
* The **\`OVR_multiview2.framebufferTextureMultiviewOVR()\`** method of the WebGL API attaches a multiview texture to a WebGLFramebuffer.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2/framebufferTextureMultiviewOVR)
|
|
`},OffscreenCanvas:{$:`*
|
|
* When using the canvas element or the Canvas API, rendering, animation, and user interaction usually happen on the main execution thread of a web application.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas)
|
|
`,height:`*
|
|
* The **\`height\`** property returns and sets the height of an OffscreenCanvas object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height)
|
|
`,oncontextlost:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextlost_event) ",oncontextrestored:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextrestored_event) ",width:`*
|
|
* The **\`width\`** property returns and sets the width of an OffscreenCanvas object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/width)
|
|
`,convertToBlob:`*
|
|
* The **\`OffscreenCanvas.convertToBlob()\`** method creates a Blob object representing the image contained in the canvas.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob)
|
|
`,getContext:"*\n * The **`OffscreenCanvas.getContext()`** method returns a drawing context for an offscreen canvas, or `null` if the context identifier is not supported, or the offscreen canvas has already been set to a different context mode.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)\n ",transferToImageBitmap:"*\n * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the `OffscreenCanvas`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)\n "},OffscreenCanvasRenderingContext2D:{$:"*\n * The **`OffscreenCanvasRenderingContext2D`** interface is a CanvasRenderingContext2D rendering context for drawing to the bitmap of an `OffscreenCanvas` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D)\n ",canvas:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) "},Path2D:{$:`*
|
|
* The **\`Path2D\`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D)
|
|
`,addPath:"*\n * The **`Path2D.addPath()`** method of the Canvas 2D API adds one Path2D object to another `Path2D` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D/addPath)\n "},Performance:{$:`*
|
|
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
* as well as timing of subrequests and other operations.
|
|
*
|
|
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
`,onresourcetimingbufferfull:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/resourcetimingbufferfull_event) ",timeOrigin:" [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) ",clearMarks:`*
|
|
* The **\`clearMarks()\`** method removes all or specific PerformanceMark objects from the browser's performance timeline.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMarks)
|
|
`,clearMeasures:`*
|
|
* The **\`clearMeasures()\`** method removes all or specific PerformanceMeasure objects from the browser's performance timeline.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMeasures)
|
|
`,clearResourceTimings:"*\n * The **`clearResourceTimings()`** method removes all performance entries with an PerformanceEntry.entryType of `'resource'` from the browser's performance timeline and sets the size of the performance resource data buffer to zero.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings)\n ",getEntries:`*
|
|
* The **\`getEntries()\`** method returns an array of all PerformanceEntry objects currently present in the performance timeline.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntries)
|
|
`,getEntriesByName:`*
|
|
* The **\`getEntriesByName()\`** method returns an array of PerformanceEntry objects currently present in the performance timeline with the given _name_ and _type_.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName)
|
|
`,getEntriesByType:`*
|
|
* The **\`getEntriesByType()\`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given _type_.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType)
|
|
`,mark:`*
|
|
* The **\`mark()\`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/mark)
|
|
`,measure:`*
|
|
* The **\`measure()\`** method creates a named PerformanceMeasure object representing a time measurement between two marks in the browser's performance timeline.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/measure)
|
|
`,now:" [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) ",setResourceTimingBufferSize:"*\n * The **`setResourceTimingBufferSize()`** method sets the desired size of the browser's resource timing buffer which stores the `'resource'` performance entries.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize)\n ",toJSON:`*
|
|
* The **\`toJSON()\`** method of the Performance interface is a Serialization; it returns a JSON representation of the Performance object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON)
|
|
`},PerformanceEntry:{$:`*
|
|
* The **\`PerformanceEntry\`** object encapsulates a single performance metric that is part of the browser's performance timeline.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry)
|
|
`,duration:`*
|
|
* The read-only **\`duration\`** property returns a DOMHighResTimeStamp that is the duration of the PerformanceEntry.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration)
|
|
`,entryType:`*
|
|
* The read-only **\`entryType\`** property returns a string representing the type of performance metric that this entry represents.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/entryType)
|
|
`,name:`*
|
|
* The read-only **\`name\`** property of the PerformanceEntry interface is a string representing the name for a performance entry.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name)
|
|
`,startTime:`*
|
|
* The read-only **\`startTime\`** property returns the first DOMHighResTimeStamp recorded for this PerformanceEntry.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime)
|
|
`,toJSON:`*
|
|
* The **\`toJSON()\`** method is a Serialization; it returns a JSON representation of the PerformanceEntry object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON)
|
|
`},PerformanceMark:{$:"*\n * **`PerformanceMark`** is an interface for PerformanceEntry objects with an PerformanceEntry.entryType of `'mark'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark)\n ",detail:`*
|
|
* The read-only **\`detail\`** property returns arbitrary metadata that was included in the mark upon construction (either when using Performance.mark or the PerformanceMark.PerformanceMark constructor).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark/detail)
|
|
`},PerformanceMeasure:{$:"*\n * **`PerformanceMeasure`** is an _abstract_ interface for PerformanceEntry objects with an PerformanceEntry.entryType of `'measure'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure)\n ",detail:`*
|
|
* The read-only **\`detail\`** property returns arbitrary metadata that was included in the mark upon construction (when using Performance.measure.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure/detail)
|
|
`},PerformanceObserver:{$:`*
|
|
* The **\`PerformanceObserver\`** interface is used to observe performance measurement events and be notified of new PerformanceEntry as they are recorded in the browser's _performance timeline_.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver)
|
|
`,disconnect:`*
|
|
* The **\`disconnect()\`** method of the PerformanceObserver interface is used to stop the performance observer from receiving any PerformanceEntry events.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect)
|
|
`,observe:`*
|
|
* The **\`observe()\`** method of the **PerformanceObserver** interface is used to specify the set of performance entry types to observe.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe)
|
|
`,takeRecords:`*
|
|
* The **\`takeRecords()\`** method of the PerformanceObserver interface returns the current list of PerformanceEntry objects stored in the performance observer, emptying it out.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/takeRecords)
|
|
`,"static:supportedEntryTypes":`*
|
|
* The static **\`supportedEntryTypes\`** read-only property of the PerformanceObserver interface returns an array of the PerformanceEntry.entryType values supported by the user agent.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static)
|
|
`},PerformanceObserverEntryList:{$:`*
|
|
* The **\`PerformanceObserverEntryList\`** interface is a list of PerformanceEntry that were explicitly observed via the PerformanceObserver.observe method.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList)
|
|
`,getEntries:`*
|
|
* The **\`getEntries()\`** method of the PerformanceObserverEntryList interface returns a list of explicitly observed PerformanceEntry objects.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries)
|
|
`,getEntriesByName:`*
|
|
* The **\`getEntriesByName()\`** method of the PerformanceObserverEntryList interface returns a list of explicitly observed PerformanceEntry objects for a given PerformanceEntry.name and PerformanceEntry.entryType.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName)
|
|
`,getEntriesByType:`*
|
|
* The **\`getEntriesByType()\`** method of the PerformanceObserverEntryList returns a list of explicitly _observed_ PerformanceEntry objects for a given PerformanceEntry.entryType.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType)
|
|
`},PerformanceResourceTiming:{$:`*
|
|
* The **\`PerformanceResourceTiming\`** interface enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming)
|
|
`,connectEnd:`*
|
|
* The **\`connectEnd\`** read-only property returns the DOMHighResTimeStamp immediately after the browser finishes establishing the connection to the server to retrieve the resource.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd)
|
|
`,connectStart:`*
|
|
* The **\`connectStart\`** read-only property returns the DOMHighResTimeStamp immediately before the user agent starts establishing the connection to the server to retrieve the resource.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart)
|
|
`,decodedBodySize:`*
|
|
* The **\`decodedBodySize\`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
|
|
`,domainLookupEnd:`*
|
|
* The **\`domainLookupEnd\`** read-only property returns the DOMHighResTimeStamp immediately after the browser finishes the domain-name lookup for the resource.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd)
|
|
`,domainLookupStart:`*
|
|
* The **\`domainLookupStart\`** read-only property returns the DOMHighResTimeStamp immediately before the browser starts the domain name lookup for the resource.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart)
|
|
`,encodedBodySize:`*
|
|
* The **\`encodedBodySize\`** read-only property represents the size (in octets) received from the fetch (HTTP or cache) of the payload body before removing any applied content encodings (like gzip or Brotli).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize)
|
|
`,fetchStart:`*
|
|
* The **\`fetchStart\`** read-only property represents a DOMHighResTimeStamp immediately before the browser starts to fetch the resource.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
|
|
`,initiatorType:`*
|
|
* The **\`initiatorType\`** read-only property is a string representing web platform feature that initiated the resource load.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/initiatorType)
|
|
`,nextHopProtocol:`*
|
|
* The **\`nextHopProtocol\`** read-only property is a string representing the network protocol used to fetch the resource, as identified by the ALPN Protocol ID (RFC7301).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/nextHopProtocol)
|
|
`,redirectEnd:`*
|
|
* The **\`redirectEnd\`** read-only property returns a DOMHighResTimeStamp immediately after receiving the last byte of the response of the last redirect.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd)
|
|
`,redirectStart:`*
|
|
* The **\`redirectStart\`** read-only property returns a DOMHighResTimeStamp representing the start time of the fetch which that initiates the redirect.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart)
|
|
`,requestStart:`*
|
|
* The **\`requestStart\`** read-only property returns a DOMHighResTimeStamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
|
|
`,responseEnd:`*
|
|
* The **\`responseEnd\`** read-only property returns a DOMHighResTimeStamp immediately after the browser receives the last byte of the resource or immediately before the transport connection is closed, whichever comes first.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd)
|
|
`,responseStart:`*
|
|
* The **\`responseStart\`** read-only property returns a DOMHighResTimeStamp immediately after the browser receives the first byte of the response from the server, cache, or local resource.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart)
|
|
`,responseStatus:`*
|
|
* The **\`responseStatus\`** read-only property represents the HTTP response status code returned when fetching the resource.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStatus)
|
|
`,secureConnectionStart:`*
|
|
* The **\`secureConnectionStart\`** read-only property returns a DOMHighResTimeStamp immediately before the browser starts the handshake process to secure the current connection.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart)
|
|
`,serverTiming:`*
|
|
* The **\`serverTiming\`** read-only property returns an array of PerformanceServerTiming entries containing server timing metrics.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming)
|
|
`,transferSize:`*
|
|
* The **\`transferSize\`** read-only property represents the size (in octets) of the fetched resource.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize)
|
|
`,workerStart:"*\n * The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a The `workerStart` property can have the following values: - A DOMHighResTimeStamp.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart)\n ",toJSON:`*
|
|
* The **\`toJSON()\`** method of the PerformanceResourceTiming interface is a Serialization; it returns a JSON representation of the PerformanceResourceTiming object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON)
|
|
`},PerformanceServerTiming:{$:`*
|
|
* The **\`PerformanceServerTiming\`** interface surfaces server metrics that are sent with the response in the Server-Timing HTTP header.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming)
|
|
`,description:`*
|
|
* The **\`description\`** read-only property returns a string value of the server-specified metric description, or an empty string.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/description)
|
|
`,duration:"*\n * The **`duration`** read-only property returns a double that contains the server-specified metric duration, or the value `0.0`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration)\n ",name:`*
|
|
* The **\`name\`** read-only property returns a string value of the server-specified metric name.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/name)
|
|
`,toJSON:`*
|
|
* The **\`toJSON()\`** method of the PerformanceServerTiming interface is a Serialization; it returns a JSON representation of the PerformanceServerTiming object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON)
|
|
`},PermissionStatus:{$:`*
|
|
* The **\`PermissionStatus\`** interface of the Permissions API provides the state of an object and an event handler for monitoring changes to said state.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus)
|
|
`,name:`*
|
|
* The **\`name\`** read-only property of the PermissionStatus interface returns the name of a requested permission.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/name)
|
|
`,onchange:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/change_event) ",state:"*\n * The **`state`** read-only property of the This property returns one of `'granted'`, `'denied'`, or `'prompt'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/state)\n "},Permissions:{$:`*
|
|
* The **\`Permissions\`** interface of the Permissions API provides the core Permission API functionality, such as methods for querying and revoking permissions - Permissions.query - : Returns the user permission status for a given API.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions)
|
|
`,query:`*
|
|
* The **\`query()\`** method of the Permissions interface returns the state of a user permission on the global scope.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions/query)
|
|
`},ProgressEvent:{$:"*\n * The **`ProgressEvent`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)\n ",lengthComputable:`*
|
|
* The **\`ProgressEvent.lengthComputable\`** read-only property is a boolean flag indicating if the resource concerned by the A boolean.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/lengthComputable)
|
|
`,loaded:`*
|
|
* The **\`ProgressEvent.loaded\`** read-only property is a number indicating the size of the data already transmitted or processed.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded)
|
|
`,total:`*
|
|
* The **\`ProgressEvent.total\`** read-only property is a number indicating the total size of the data being transmitted or processed.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total)
|
|
`},PromiseRejectionEvent:{$:`*
|
|
* The **\`PromiseRejectionEvent\`** interface represents events which are sent to the global script context when JavaScript Promises are rejected.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent)
|
|
`,promise:`*
|
|
* The PromiseRejectionEvent interface's **\`promise\`** read-only property indicates the JavaScript rejected.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise)
|
|
`,reason:`*
|
|
* The PromiseRejectionEvent **\`reason\`** read-only property is any JavaScript value or Object which provides the reason passed into Promise.reject().
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason)
|
|
`},PushEvent:{$:`*
|
|
* The **\`PushEvent\`** interface of the Push API represents a push message that has been received.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent)
|
|
`,data:"*\n * The `data` read-only property of the **`PushEvent`** interface returns a reference to a PushMessageData object containing data sent to the PushSubscription.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent/data)\n "},PushManager:{$:`*
|
|
* The **\`PushManager\`** interface of the Push API provides a way to receive notifications from third-party servers as well as request URLs for push notifications.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager)
|
|
`,getSubscription:`*
|
|
* The **\`PushManager.getSubscription()\`** method of the PushManager interface retrieves an existing push subscription.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/getSubscription)
|
|
`,permissionState:`*
|
|
* The **\`permissionState()\`** method of the string indicating the permission state of the push manager.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/permissionState)
|
|
`,subscribe:`*
|
|
* The **\`subscribe()\`** method of the PushManager interface subscribes to a push service.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/subscribe)
|
|
`,"static:supportedContentEncodings":`*
|
|
* The **\`supportedContentEncodings\`** read-only static property of the PushManager interface returns an array of supported content codings that can be used to encrypt the payload of a push message.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static)
|
|
`},PushMessageData:{$:`*
|
|
* The **\`PushMessageData\`** interface of the Push API provides methods which let you retrieve the push data sent by a server in various formats.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData)
|
|
`,arrayBuffer:`*
|
|
* The **\`arrayBuffer()\`** method of the PushMessageData interface extracts push message data as an ArrayBuffer object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/arrayBuffer)
|
|
`,blob:`*
|
|
* The **\`blob()\`** method of the PushMessageData interface extracts push message data as a Blob object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/blob)
|
|
`,bytes:`*
|
|
* The **\`bytes()\`** method of the PushMessageData interface extracts push message data as an Uint8Array object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/bytes)
|
|
`,json:`*
|
|
* The **\`json()\`** method of the PushMessageData interface extracts push message data by parsing it as a JSON string and returning the result.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/json)
|
|
`,text:`*
|
|
* The **\`text()\`** method of the PushMessageData interface extracts push message data as a plain text string.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/text)
|
|
`},PushSubscription:{$:`*
|
|
* The \`PushSubscription\` interface of the Push API provides a subscription's URL endpoint along with the public key and secrets that should be used for encrypting push messages to this subscription.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription)
|
|
`,endpoint:`*
|
|
* The **\`endpoint\`** read-only property of the the endpoint associated with the push subscription.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/endpoint)
|
|
`,expirationTime:"*\n * The **`expirationTime`** read-only property of the of the subscription expiration time associated with the push subscription, if there is one, or `null` otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/expirationTime)\n ",options:`*
|
|
* The **\`options\`** read-only property of the PushSubscription interface is an object containing the options used to create the subscription.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/options)
|
|
`,getKey:`*
|
|
* The \`getKey()\` method of the PushSubscription interface returns an ArrayBuffer representing a client public key, which can then be sent to a server and used in encrypting push message data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey)
|
|
`,toJSON:`*
|
|
* The \`toJSON()\` method of the PushSubscription interface is a standard serializer: it returns a JSON representation of the subscription properties, providing a useful shortcut.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/toJSON)
|
|
`,unsubscribe:`*
|
|
* The \`unsubscribe()\` method of the PushSubscription interface returns a Promise that resolves to a boolean value when the current subscription is successfully unsubscribed.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/unsubscribe)
|
|
`},PushSubscriptionChangeEvent:{$:" Available only in secure contexts. "},PushSubscriptionOptions:{$:`*
|
|
* The **\`PushSubscriptionOptions\`** interface of the Push API represents the options associated with a push subscription.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions)
|
|
`,applicationServerKey:`*
|
|
* The **\`applicationServerKey\`** read-only property of the PushSubscriptionOptions interface contains the public key used by the push server.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/applicationServerKey)
|
|
`,userVisibleOnly:`*
|
|
* The **\`userVisibleOnly\`** read-only property of the PushSubscriptionOptions interface indicates if the returned push subscription will only be used for messages whose effect is made visible to the user.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/userVisibleOnly)
|
|
`},RTCDataChannel:{$:`*
|
|
* The **\`RTCDataChannel\`** interface represents a network channel which can be used for bidirectional peer-to-peer transfers of arbitrary data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel)
|
|
`,binaryType:`*
|
|
* The property **\`binaryType\`** on the the type of object which should be used to represent binary data received on the RTCDataChannel.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/binaryType)
|
|
`,bufferedAmount:"*\n * The read-only `RTCDataChannel` property **`bufferedAmount`** returns the number of bytes of data currently queued to be sent over the data channel.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmount)\n ",bufferedAmountLowThreshold:"*\n * The `RTCDataChannel` property **`bufferedAmountLowThreshold`** is used to specify the number of bytes of buffered outgoing data that is considered 'low.' The default value is 0\\.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold)\n ",id:"*\n * The read-only `RTCDataChannel` property **`id`** returns an ID number (between 0 and 65,534) which uniquely identifies the RTCDataChannel.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/id)\n ",label:"*\n * The read-only `RTCDataChannel` property **`label`** returns a string containing a name describing the data channel.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/label)\n ",maxPacketLifeTime:"*\n * The read-only `RTCDataChannel` property **`maxPacketLifeTime`** returns the amount of time, in milliseconds, the browser is allowed to take to attempt to transmit a message, as set when the data channel was created, or `null`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxPacketLifeTime)\n ",maxRetransmits:"*\n * The read-only `RTCDataChannel` property **`maxRetransmits`** returns the maximum number of times the browser should try to retransmit a message before giving up, as set when the data channel was created, or `null`, which indicates that there is no maximum.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxRetransmits)\n ",negotiated:"*\n * The read-only `RTCDataChannel` property **`negotiated`** indicates whether the (`true`) or by the WebRTC layer (`false`).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/negotiated)\n ",onbufferedamountlow:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedamountlow_event) ",onclose:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close_event) ",onclosing:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/closing_event) ",onerror:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/error_event) ",onmessage:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/message_event) ",onopen:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/open_event) ",ordered:"*\n * The read-only `RTCDataChannel` property **`ordered`** indicates whether or not the data channel guarantees in-order delivery of messages; the default is `true`, which indicates that the data channel is indeed ordered.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/ordered)\n ",protocol:"*\n * The read-only `RTCDataChannel` property **`protocol`** returns a string containing the name of the subprotocol in use.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/protocol)\n ",readyState:"*\n * The read-only `RTCDataChannel` property **`readyState`** returns a string which indicates the state of the data channel's underlying data connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/readyState)\n ",close:`*
|
|
* The **\`RTCDataChannel.close()\`** method closes the closure of the channel.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close)
|
|
`,send:`*
|
|
* The **\`send()\`** method of the remote peer.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/send)
|
|
`},RTCEncodedAudioFrame:{$:`*
|
|
* The **\`RTCEncodedAudioFrame\`** of the WebRTC API represents an encoded audio frame in the WebRTC receiver or sender pipeline, which may be modified using a WebRTC Encoded Transform.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame)
|
|
`,data:`*
|
|
* The **\`data\`** property of the RTCEncodedAudioFrame interface returns a buffer containing the data for an encoded frame.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data)
|
|
`,timestamp:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) ",getMetadata:`*
|
|
* The **\`getMetadata()\`** method of the RTCEncodedAudioFrame interface returns an object containing the metadata associated with the frame.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata)
|
|
`},RTCEncodedVideoFrame:{$:`*
|
|
* The **\`RTCEncodedVideoFrame\`** of the WebRTC API represents an encoded video frame in the WebRTC receiver or sender pipeline, which may be modified using a WebRTC Encoded Transform.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame)
|
|
`,data:`*
|
|
* The **\`data\`** property of the RTCEncodedVideoFrame interface returns a buffer containing the frame data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data)
|
|
`,timestamp:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp) ",type:`*
|
|
* The **\`type\`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame, delta frame, or empty frame.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type)
|
|
`,getMetadata:`*
|
|
* The **\`getMetadata()\`** method of the RTCEncodedVideoFrame interface returns an object containing the metadata associated with the frame.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata)
|
|
`},RTCRtpScriptTransformer:{$:`*
|
|
* The **\`RTCRtpScriptTransformer\`** interface of the WebRTC API provides a worker-side Stream API interface that a WebRTC Encoded Transform can use to modify encoded media frames in the incoming and outgoing WebRTC pipelines.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer)
|
|
`,options:`*
|
|
* The **\`options\`** read-only property of the RTCRtpScriptTransformer interface returns the object that was (optionally) passed as the second argument during construction of the corresponding RTCRtpScriptTransform.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/options)
|
|
`,readable:`*
|
|
* The **\`readable\`** read-only property of the RTCRtpScriptTransformer interface returns a ReadableStream instance is a source for encoded media frames.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/readable)
|
|
`,writable:`*
|
|
* The **\`writable\`** read-only property of the RTCRtpScriptTransformer interface returns a WritableStream instance that can be used as a sink for encoded media frames enqueued on the corresponding RTCRtpScriptTransformer.readable.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/writable)
|
|
`,generateKeyFrame:`*
|
|
* The **\`generateKeyFrame()\`** method of the RTCRtpScriptTransformer interface causes a video encoder to generate a key frame.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/generateKeyFrame)
|
|
`,sendKeyFrameRequest:`*
|
|
* The **\`sendKeyFrameRequest()\`** method of the RTCRtpScriptTransformer interface may be called by a WebRTC Encoded Transform that is processing incoming encoded video frames, in order to request a key frame from the sender.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/sendKeyFrameRequest)
|
|
`},RTCTransformEvent:{$:`*
|
|
* The **\`RTCTransformEvent\`** of the WebRTC API represent an event that is fired in a dedicated worker when an encoded frame has been queued for processing by a WebRTC Encoded Transform.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent)
|
|
`,transformer:`*
|
|
* The read-only **\`transformer\`** property of the RTCTransformEvent interface returns the RTCRtpScriptTransformer associated with the event.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent/transformer)
|
|
`},ReadableByteStreamController:{$:`*
|
|
* The **\`ReadableByteStreamController\`** interface of the Streams API represents a controller for a readable byte stream.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController)
|
|
`,byobRequest:"*\n * The **`byobRequest`** read-only property of the ReadableByteStreamController interface returns the current BYOB request, or `null` if there are no pending requests.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest)\n ",desiredSize:`*
|
|
* The **\`desiredSize\`** read-only property of the ReadableByteStreamController interface returns the number of bytes required to fill the stream's internal queue to its 'desired size'.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize)
|
|
`,close:`*
|
|
* The **\`close()\`** method of the ReadableByteStreamController interface closes the associated stream.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close)
|
|
`,enqueue:`*
|
|
* The **\`enqueue()\`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is copied into the stream's internal queues).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue)
|
|
`,error:`*
|
|
* The **\`error()\`** method of the ReadableByteStreamController interface causes any future interactions with the associated stream to error with the specified reason.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error)
|
|
`},ReadableStream:{$:`*
|
|
* The \`ReadableStream\` interface of the Streams API represents a readable stream of byte data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
|
|
`,locked:`*
|
|
* The **\`locked\`** read-only property of the ReadableStream interface returns whether or not the readable stream is locked to a reader.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked)
|
|
`,cancel:`*
|
|
* The **\`cancel()\`** method of the ReadableStream interface returns a Promise that resolves when the stream is canceled.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel)
|
|
`,getReader:`*
|
|
* The **\`getReader()\`** method of the ReadableStream interface creates a reader and locks the stream to it.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader)
|
|
`,pipeThrough:`*
|
|
* The **\`pipeThrough()\`** method of the ReadableStream interface provides a chainable way of piping the current stream through a transform stream or any other writable/readable pair.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough)
|
|
`,pipeTo:"*\n * The **`pipeTo()`** method of the ReadableStream interface pipes the current `ReadableStream` to a given WritableStream and returns a Promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo)\n ",tee:`*
|
|
* The **\`tee()\`** method of the two-element array containing the two resulting branches as new ReadableStream instances.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee)
|
|
`},ReadableStreamBYOBReader:{$:`*
|
|
* The \`ReadableStreamBYOBReader\` interface of the Streams API defines a reader for a ReadableStream that supports zero-copy reading from an underlying byte source.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader)
|
|
`,read:`*
|
|
* The **\`read()\`** method of the ReadableStreamBYOBReader interface is used to read data into a view on a user-supplied buffer from an associated readable byte stream.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
|
|
`,releaseLock:`*
|
|
* The **\`releaseLock()\`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock)
|
|
`},ReadableStreamBYOBRequest:{$:`*
|
|
* The **\`ReadableStreamBYOBRequest\`** interface of the Streams API represents a 'pull request' for data from an underlying source that will made as a zero-copy transfer to a consumer (bypassing the stream's internal queues).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest)
|
|
`,view:`*
|
|
* The **\`view\`** getter property of the ReadableStreamBYOBRequest interface returns the current view.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view)
|
|
`,respond:`*
|
|
* The **\`respond()\`** method of the ReadableStreamBYOBRequest interface is used to signal to the associated readable byte stream that the specified number of bytes were written into the ReadableStreamBYOBRequest.view.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond)
|
|
`,respondWithNewView:`*
|
|
* The **\`respondWithNewView()\`** method of the ReadableStreamBYOBRequest interface specifies a new view that the consumer of the associated readable byte stream should write to instead of ReadableStreamBYOBRequest.view.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView)
|
|
`},ReadableStreamDefaultController:{$:`*
|
|
* The **\`ReadableStreamDefaultController\`** interface of the Streams API represents a controller allowing control of a ReadableStream's state and internal queue.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController)
|
|
`,desiredSize:`*
|
|
* The **\`desiredSize\`** read-only property of the required to fill the stream's internal queue.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize)
|
|
`,close:`*
|
|
* The **\`close()\`** method of the ReadableStreamDefaultController interface closes the associated stream.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close)
|
|
`,enqueue:"*\n * The **`enqueue()`** method of the ```js-nolint enqueue(chunk) ``` - `chunk` - : The chunk to enqueue.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)\n ",error:`*
|
|
* The **\`error()\`** method of the with the associated stream to error.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error)
|
|
`},ReadableStreamDefaultReader:{$:`*
|
|
* The **\`ReadableStreamDefaultReader\`** interface of the Streams API represents a default reader that can be used to read stream data supplied from a network (such as a fetch request).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader)
|
|
`,read:`*
|
|
* The **\`read()\`** method of the ReadableStreamDefaultReader interface returns a Promise providing access to the next chunk in the stream's internal queue.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read)
|
|
`,releaseLock:`*
|
|
* The **\`releaseLock()\`** method of the ReadableStreamDefaultReader interface releases the reader's lock on the stream.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock)
|
|
`},ReadableStreamGenericReader:{closed:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) ",cancel:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) "},Report:{$:`*
|
|
* The \`Report\` interface of the Reporting API represents a single report.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report)
|
|
`,body:"*\n * The **`body`** read-only property of the Report interface returns the body of the report, which is a `ReportBody` object containing the detailed report information.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body)\n ",type:"*\n * The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type)\n ",url:`*
|
|
* The **\`url\`** read-only property of the Report interface returns the URL of the document that generated the report.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url)
|
|
`},ReportBody:{$:`*
|
|
* The **\`ReportBody\`** interface of the Reporting API represents the body of a report.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody)
|
|
`,toJSON:"*\n * The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON)\n "},ReportingObserver:{$:`*
|
|
* The \`ReportingObserver\` interface of the Reporting API allows you to collect and access reports.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver)
|
|
`,disconnect:`*
|
|
* The **\`disconnect()\`** method of the previously started observing from collecting reports.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/disconnect)
|
|
`,observe:`*
|
|
* The **\`observe()\`** method of the collecting reports in its report queue.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/observe)
|
|
`,takeRecords:`*
|
|
* The **\`takeRecords()\`** method of the in the observer's report queue, and empties the queue.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/takeRecords)
|
|
`},Request:{$:`*
|
|
* The **\`Request\`** interface of the Fetch API represents a resource request.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)
|
|
`,cache:`*
|
|
* The **\`cache\`** read-only property of the Request interface contains the cache mode of the request.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)
|
|
`,credentials:"*\n * The **`credentials`** read-only property of the Request interface reflects the value given to the Request.Request() constructor in the `credentials` option.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/credentials)\n ",destination:`*
|
|
* The **\`destination\`** read-only property of the **Request** interface returns a string describing the type of content being requested.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/destination)
|
|
`,headers:`*
|
|
* The **\`headers\`** read-only property of the with the request.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers)
|
|
`,integrity:`*
|
|
* The **\`integrity\`** read-only property of the Request interface contains the subresource integrity value of the request.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)
|
|
`,keepalive:"*\n * The **`keepalive`** read-only property of the Request interface contains the request's `keepalive` setting (`true` or `false`), which indicates whether the browser will keep the associated request alive if the page that initiated it is unloaded before the request is complete.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)\n ",method:"*\n * The **`method`** read-only property of the `POST`, etc.) A String indicating the method of the request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method)\n ",mode:"*\n * The **`mode`** read-only property of the Request interface contains the mode of the request (e.g., `cors`, `no-cors`, `same-origin`, or `navigate`.) This is used to determine if cross-origin requests lead to valid responses, and which properties of the response are readable.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/mode)\n ",redirect:`*
|
|
* The **\`redirect\`** read-only property of the Request interface contains the mode for how redirects are handled.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect)
|
|
`,referrer:`*
|
|
* The **\`referrer\`** read-only property of the Request.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrer)
|
|
`,referrerPolicy:`*
|
|
* The **\`referrerPolicy\`** read-only property of the referrer information, sent in the Referer header, should be included with the request.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy)
|
|
`,signal:`*
|
|
* The read-only **\`signal\`** property of the Request interface returns the AbortSignal associated with the request.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal)
|
|
`,url:`*
|
|
* The **\`url\`** read-only property of the Request interface contains the URL of the request.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url)
|
|
`,clone:"*\n * The **`clone()`** method of the Request interface creates a copy of the current `Request` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone)\n "},Response:{$:`*
|
|
* The **\`Response\`** interface of the Fetch API represents the response to a request.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)
|
|
`,headers:`*
|
|
* The **\`headers\`** read-only property of the with the response.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers)
|
|
`,ok:`*
|
|
* The **\`ok\`** read-only property of the Response interface contains a Boolean stating whether the response was successful (status in the range 200-299) or not.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok)
|
|
`,redirected:`*
|
|
* The **\`redirected\`** read-only property of the Response interface indicates whether or not the response is the result of a request you made which was redirected.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected)
|
|
`,status:`*
|
|
* The **\`status\`** read-only property of the Response interface contains the HTTP status codes of the response.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status)
|
|
`,statusText:`*
|
|
* The **\`statusText\`** read-only property of the Response interface contains the status message corresponding to the HTTP status code in Response.status.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText)
|
|
`,type:`*
|
|
* The **\`type\`** read-only property of the Response interface contains the type of the response.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type)
|
|
`,url:`*
|
|
* The **\`url\`** read-only property of the Response interface contains the URL of the response.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url)
|
|
`,clone:`*
|
|
* The **\`clone()\`** method of the Response interface creates a clone of a response object, identical in every way, but stored in a different variable.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone)
|
|
`,"static:error":"*\n * The **`error()`** static method of the Response interface returns a new `Response` object associated with a network error.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static)\n ","static:json":"*\n * The **`json()`** static method of the Response interface returns a `Response` that contains the provided JSON data as body, and a Content-Type header which is set to `application/json`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static)\n ","static:redirect":"*\n * The **`redirect()`** static method of the Response interface returns a `Response` resulting in a redirect to the specified URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static)\n "},SecurityPolicyViolationEvent:{$:"*\n * The **`SecurityPolicyViolationEvent`** interface inherits from Event, and represents the event object of a `securitypolicyviolation` event sent on an Element/securitypolicyviolation_event, Document/securitypolicyviolation_event, or WorkerGlobalScope/securitypolicyviolation_event when its Content Security Policy (CSP) is violated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent)\n ",blockedURI:`*
|
|
* The **\`blockedURI\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the URI of the resource that was blocked because it violates a Content Security Policy (CSP).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/blockedURI)
|
|
`,columnNumber:`*
|
|
* The **\`columnNumber\`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber)
|
|
`,disposition:`*
|
|
* The **\`disposition\`** read-only property of the SecurityPolicyViolationEvent interface indicates how the violated Content Security Policy (CSP) is configured to be treated by the user agent.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/disposition)
|
|
`,documentURI:`*
|
|
* The **\`documentURI\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the URI of the document or worker in which the Content Security Policy (CSP) violation occurred.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/documentURI)
|
|
`,effectiveDirective:`*
|
|
* The **\`effectiveDirective\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the Content Security Policy (CSP) directive that was violated.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective)
|
|
`,lineNumber:`*
|
|
* The **\`lineNumber\`** read-only property of the SecurityPolicyViolationEvent interface is the line number in the document or worker script at which the Content Security Policy (CSP) violation occurred.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/lineNumber)
|
|
`,originalPolicy:`*
|
|
* The **\`originalPolicy\`** read-only property of the SecurityPolicyViolationEvent interface is a string containing the Content Security Policy (CSP) whose enforcement uncovered the violation.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy)
|
|
`,referrer:`*
|
|
* The **\`referrer\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the referrer for the resources whose Content Security Policy (CSP) was violated.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/referrer)
|
|
`,sample:`*
|
|
* The **\`sample\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing a sample of the resource that caused the Content Security Policy (CSP) violation.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sample)
|
|
`,sourceFile:`*
|
|
* The **\`sourceFile\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the URL of the script in which the Content Security Policy (CSP) violation occurred.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sourceFile)
|
|
`,statusCode:`*
|
|
* The **\`statusCode\`** read-only property of the SecurityPolicyViolationEvent interface is a number representing the HTTP status code of the window or worker in which the Content Security Policy (CSP) violation occurred.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/statusCode)
|
|
`,violatedDirective:`*
|
|
* The **\`violatedDirective\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the Content Security Policy (CSP) directive that was violated.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective)
|
|
`},ServiceWorker:{$:`*
|
|
* The **\`ServiceWorker\`** interface of the Service Worker API provides a reference to a service worker.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker)
|
|
`,onstatechange:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/statechange_event) ",scriptURL:"*\n * Returns the `ServiceWorker` serialized script URL defined as part of `ServiceWorkerRegistration`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL)\n ",state:`*
|
|
* The **\`state\`** read-only property of the of the service worker.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/state)
|
|
`,postMessage:`*
|
|
* The **\`postMessage()\`** method of the ServiceWorker interface sends a message to the worker.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/postMessage)
|
|
`},ServiceWorkerContainer:{$:`*
|
|
* The **\`ServiceWorkerContainer\`** interface of the Service Worker API provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer)
|
|
`,controller:"*\n * The **`controller`** read-only property of the ServiceWorkerContainer interface returns a `activated` (the same object returned by `null` if the request is a force refresh (_Shift_ + refresh) or if there is no active worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller)\n ",oncontrollerchange:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controllerchange_event) ",onmessage:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) ",onmessageerror:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) ",ready:`*
|
|
* The **\`ready\`** read-only property of the ServiceWorkerContainer interface provides a way of delaying code execution until a service worker is active.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready)
|
|
`,getRegistration:`*
|
|
* The **\`getRegistration()\`** method of the client URL.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration)
|
|
`,getRegistrations:"*\n * The **`getRegistrations()`** method of the `ServiceWorkerContainer`, in an array.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations)\n ",register:`*
|
|
* The **\`register()\`** method of the ServiceWorkerContainer interface creates or updates a ServiceWorkerRegistration for the given scope.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register)
|
|
`,startMessages:`*
|
|
* The **\`startMessages()\`** method of the ServiceWorkerContainer interface explicitly starts the flow of messages being dispatched from a service worker to pages under its control (e.g., sent via Client.postMessage()).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/startMessages)
|
|
`},ServiceWorkerGlobalScope:{$:`*
|
|
* The **\`ServiceWorkerGlobalScope\`** interface of the Service Worker API represents the global execution context of a service worker.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope)
|
|
`,clients:`*
|
|
* The **\`clients\`** read-only property of the object associated with the service worker.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/clients)
|
|
`,cookieStore:`*
|
|
* The **\`cookieStore\`** read-only property of the ServiceWorkerGlobalScope interface returns a reference to the CookieStore object associated with this service worker.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookieStore)
|
|
`,onactivate:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) ",oncookiechange:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) ",onfetch:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) ",oninstall:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) ",onmessage:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) ",onmessageerror:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) ",onnotificationclick:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) ",onnotificationclose:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) ",onpush:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/push_event) ",onpushsubscriptionchange:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/pushsubscriptionchange_event) ",registration:`*
|
|
* The **\`registration\`** read-only property of the ServiceWorkerGlobalScope interface returns a reference to the ServiceWorkerRegistration object, which represents the service worker's registration.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/registration)
|
|
`,serviceWorker:`*
|
|
* The **\`serviceWorker\`** read-only property of the ServiceWorkerGlobalScope interface returns a reference to the ServiceWorker object, which represents the service worker.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/serviceWorker)
|
|
`,skipWaiting:`*
|
|
* The **\`skipWaiting()\`** method of the ServiceWorkerGlobalScope interface forces the waiting service worker to become the active service worker.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting)
|
|
`},ServiceWorkerRegistration:{$:`*
|
|
* The **\`ServiceWorkerRegistration\`** interface of the Service Worker API represents the service worker registration.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
|
|
`,active:"*\n * The **`active`** read-only property of the This property is initially set to `null`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active)\n ",cookies:`*
|
|
* The **\`cookies\`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies)
|
|
`,installing:"*\n * The **`installing`** read-only property of the initially set to `null`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing)\n ",navigationPreload:`*
|
|
* The **\`navigationPreload\`** read-only property of the ServiceWorkerRegistration interface returns the NavigationPreloadManager associated with the current service worker registration.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/navigationPreload)
|
|
`,onupdatefound:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) ",pushManager:`*
|
|
* The **\`pushManager\`** read-only property of the support for subscribing, getting an active subscription, and accessing push permission status.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager)
|
|
`,scope:`*
|
|
* The **\`scope\`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/scope)
|
|
`,updateViaCache:`*
|
|
* The **\`updateViaCache\`** read-only property of the ServiceWorkerRegistration interface returns the value of the setting used to determine the circumstances in which the browser will consult the HTTP cache when it tries to update the service worker or any scripts that are imported via WorkerGlobalScope.importScripts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache)
|
|
`,waiting:"*\n * The **`waiting`** read-only property of the set to `null`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/waiting)\n ",getNotifications:`*
|
|
* The **\`getNotifications()\`** method of the ServiceWorkerRegistration interface returns a list of the notifications in the order that they were created from the current origin via the current service worker registration.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications)
|
|
`,showNotification:`*
|
|
* The **\`showNotification()\`** method of the service worker.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/showNotification)
|
|
`,unregister:`*
|
|
* The **\`unregister()\`** method of the registration and returns a Promise.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister)
|
|
`,update:`*
|
|
* The **\`update()\`** method of the worker.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update)
|
|
`},SharedWorkerGlobalScope:{$:`*
|
|
* The **\`SharedWorkerGlobalScope\`** object (the SharedWorker global scope) is accessible through the window.self keyword.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope)
|
|
`,name:`*
|
|
* The **\`name\`** read-only property of the that the SharedWorker.SharedWorker constructor can pass to get a reference to the SharedWorkerGlobalScope.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/name)
|
|
`,onconnect:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/connect_event) ",close:"*\n * The **`close()`** method of the SharedWorkerGlobalScope interface discards any tasks queued in the `SharedWorkerGlobalScope`'s event loop, effectively closing this particular scope.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/close)\n "},StorageManager:{$:`*
|
|
* The **\`StorageManager\`** interface of the Storage API provides an interface for managing persistence permissions and estimating available storage.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager)
|
|
`,estimate:"*\n * The **`estimate()`** method of the StorageManager interface asks the Storage Manager for how much storage the current origin takes up (`usage`), and how much space is available (`quota`).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate)\n ",getDirectory:`*
|
|
* The **\`getDirectory()\`** method of the StorageManager interface is used to obtain a reference to a FileSystemDirectoryHandle object allowing access to a directory and its contents, stored in the origin private file system (OPFS).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/getDirectory)
|
|
`,persisted:"*\n * The **`persisted()`** method of the StorageManager interface returns a Promise that resolves to `true` if your site's storage bucket is persistent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted)\n "},StylePropertyMapReadOnly:{$:`*
|
|
* The **\`StylePropertyMapReadOnly\`** interface of the CSS Typed Object Model API provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly)
|
|
`,size:"*\n * The **`size`** read-only property of the containing the size of the `StylePropertyMapReadOnly` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size)\n ",get:`*
|
|
* The **\`get()\`** method of the object for the first value of the specified property.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get)
|
|
`,getAll:"*\n * The **`getAll()`** method of the ```js-nolint getAll(property) ``` - `property` - : The name of the property to retrieve all values of.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll)\n ",has:"*\n * The **`has()`** method of the property is in the `StylePropertyMapReadOnly` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has)\n "},SubtleCrypto:{$:`*
|
|
* The **\`SubtleCrypto\`** interface of the Web Crypto API provides a number of low-level cryptographic functions.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)
|
|
`,decrypt:`*
|
|
* The **\`decrypt()\`** method of the SubtleCrypto interface decrypts some encrypted data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt)
|
|
`,deriveBits:`*
|
|
* The **\`deriveBits()\`** method of the key.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits)
|
|
`,deriveKey:`*
|
|
* The **\`deriveKey()\`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
|
|
`,digest:`*
|
|
* The **\`digest()\`** method of the SubtleCrypto interface generates a _digest_ of the given data, using the specified hash function.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest)
|
|
`,encrypt:`*
|
|
* The **\`encrypt()\`** method of the SubtleCrypto interface encrypts data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt)
|
|
`,exportKey:`*
|
|
* The **\`exportKey()\`** method of the SubtleCrypto interface exports a key: that is, it takes as input a CryptoKey object and gives you the key in an external, portable format.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey)
|
|
`,generateKey:`*
|
|
* The **\`generateKey()\`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
|
|
`,importKey:`*
|
|
* The **\`importKey()\`** method of the SubtleCrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a CryptoKey object that you can use in the Web Crypto API.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
|
|
`,sign:`*
|
|
* The **\`sign()\`** method of the SubtleCrypto interface generates a digital signature.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign)
|
|
`,unwrapKey:`*
|
|
* The **\`unwrapKey()\`** method of the SubtleCrypto interface 'unwraps' a key.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
|
|
`,verify:`*
|
|
* The **\`verify()\`** method of the SubtleCrypto interface verifies a digital signature.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify)
|
|
`,wrapKey:`*
|
|
* The **\`wrapKey()\`** method of the SubtleCrypto interface 'wraps' a key.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey)
|
|
`},TextDecoder:{$:"*\n * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)\n ",decode:`*
|
|
* The **\`TextDecoder.decode()\`** method returns a string containing text decoded from the buffer passed as a parameter.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
|
|
`},TextDecoderCommon:{encoding:`*
|
|
* Returns encoding's name, lowercased.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/encoding)
|
|
`,fatal:`*
|
|
* Returns true if error mode is "fatal", otherwise false.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/fatal)
|
|
`,ignoreBOM:`*
|
|
* Returns the value of ignore BOM.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/ignoreBOM)
|
|
`},TextDecoderStream:{$:`*
|
|
* The **\`TextDecoderStream\`** interface of the Encoding API converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
|
|
`},TextEncoder:{$:`*
|
|
* The **\`TextEncoder\`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
|
|
`,encode:`*
|
|
* The **\`TextEncoder.encode()\`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
|
|
`,encodeInto:`*
|
|
* The **\`TextEncoder.encodeInto()\`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
|
|
`},TextEncoderCommon:{encoding:`*
|
|
* Returns "utf-8".
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encoding)
|
|
`},TextEncoderStream:{$:`*
|
|
* The **\`TextEncoderStream\`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
|
|
`},TextMetrics:{$:"*\n * The **`TextMetrics`** interface represents the dimensions of a piece of text in the canvas; a `TextMetrics` instance can be retrieved using the CanvasRenderingContext2D.measureText() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics)\n ",actualBoundingBoxAscent:"*\n * The read-only **`actualBoundingBoxAscent`** property of the TextMetrics interface is a `double` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the top of the bounding rectangle used to render the text, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxAscent)\n ",actualBoundingBoxDescent:"*\n * The read-only `actualBoundingBoxDescent` property of the TextMetrics interface is a `double` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the bottom of the bounding rectangle used to render the text, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxDescent)\n ",actualBoundingBoxLeft:"*\n * The read-only `actualBoundingBoxLeft` property of the TextMetrics interface is a `double` giving the distance parallel to the baseline from the alignment point given by the CanvasRenderingContext2D.textAlign property to the left side of the bounding rectangle of the given text, in CSS pixels; positive numbers indicating a distance going left from the given alignment point.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxLeft)\n ",actualBoundingBoxRight:"*\n * The read-only `actualBoundingBoxRight` property of the TextMetrics interface is a `double` giving the distance parallel to the baseline from the alignment point given by the CanvasRenderingContext2D.textAlign property to the right side of the bounding rectangle of the given text, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight)\n ",alphabeticBaseline:"*\n * The read-only `alphabeticBaseline` property of the TextMetrics interface is a `double` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the alphabetic baseline of the line box, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline)\n ",emHeightAscent:`*
|
|
* The read-only \`emHeightAscent\` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the top of the _em_ square in the line box, in CSS pixels.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent)
|
|
`,emHeightDescent:`*
|
|
* The read-only \`emHeightDescent\` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the bottom of the _em_ square in the line box, in CSS pixels.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent)
|
|
`,fontBoundingBoxAscent:`*
|
|
* The read-only \`fontBoundingBoxAscent\` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute, to the top of the highest bounding rectangle of all the fonts used to render the text, in CSS pixels.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxAscent)
|
|
`,fontBoundingBoxDescent:`*
|
|
* The read-only \`fontBoundingBoxDescent\` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the bottom of the bounding rectangle of all the fonts used to render the text, in CSS pixels.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent)
|
|
`,hangingBaseline:"*\n * The read-only `hangingBaseline` property of the TextMetrics interface is a `double` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the hanging baseline of the line box, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline)\n ",ideographicBaseline:"*\n * The read-only `ideographicBaseline` property of the TextMetrics interface is a `double` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the ideographic baseline of the line box, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline)\n ",width:`*
|
|
* The read-only **\`width\`** property of the TextMetrics interface contains the text's advance width (the width of that inline box) in CSS pixels.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/width)
|
|
`},TransformStream:{$:`*
|
|
* The **\`TransformStream\`** interface of the Streams API represents a concrete implementation of the pipe chain _transform stream_ concept.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream)
|
|
`,readable:"*\n * The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this `TransformStream`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)\n ",writable:"*\n * The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this `TransformStream`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable)\n "},TransformStreamDefaultController:{$:`*
|
|
* The **\`TransformStreamDefaultController\`** interface of the Streams API provides methods to manipulate the associated ReadableStream and WritableStream.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController)
|
|
`,desiredSize:`*
|
|
* The **\`desiredSize\`** read-only property of the TransformStreamDefaultController interface returns the desired size to fill the queue of the associated ReadableStream.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize)
|
|
`,enqueue:`*
|
|
* The **\`enqueue()\`** method of the TransformStreamDefaultController interface enqueues the given chunk in the readable side of the stream.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue)
|
|
`,error:`*
|
|
* The **\`error()\`** method of the TransformStreamDefaultController interface errors both sides of the stream.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error)
|
|
`,terminate:`*
|
|
* The **\`terminate()\`** method of the TransformStreamDefaultController interface closes the readable side and errors the writable side of the stream.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate)
|
|
`},URL:{$:`*
|
|
* The **\`URL\`** interface is used to parse, construct, normalize, and encode URL.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)
|
|
`,hash:"*\n * The **`hash`** property of the URL interface is a string containing a `'#'` followed by the fragment identifier of the URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash)\n ",host:"*\n * The **`host`** property of the URL interface is a string containing the host, which is the URL.hostname, and then, if the port of the URL is nonempty, a `':'`, followed by the URL.port of the URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host)\n ",hostname:`*
|
|
* The **\`hostname\`** property of the URL interface is a string containing either the domain name or IP address of the URL.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname)
|
|
`,href:`*
|
|
* The **\`href\`** property of the URL interface is a string containing the whole URL.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href)
|
|
`,origin:`*
|
|
* The **\`origin\`** read-only property of the URL interface returns a string containing the Unicode serialization of the origin of the represented URL.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin)
|
|
`,password:`*
|
|
* The **\`password\`** property of the URL interface is a string containing the password component of the URL.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password)
|
|
`,pathname:`*
|
|
* The **\`pathname\`** property of the URL interface represents a location in a hierarchical structure.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname)
|
|
`,port:`*
|
|
* The **\`port\`** property of the URL interface is a string containing the port number of the URL.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port)
|
|
`,protocol:"*\n * The **`protocol`** property of the URL interface is a string containing the protocol or scheme of the URL, including the final `':'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol)\n ",search:"*\n * The **`search`** property of the URL interface is a search string, also called a _query string_, that is a string containing a `'?'` followed by the parameters of the URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search)\n ",searchParams:`*
|
|
* The **\`searchParams\`** read-only property of the access to the [MISSING: httpmethod('GET')] decoded query arguments contained in the URL.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams)
|
|
`,username:`*
|
|
* The **\`username\`** property of the URL interface is a string containing the username component of the URL.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username)
|
|
`,toJSON:"*\n * The **`toJSON()`** method of the URL interface returns a string containing a serialized version of the URL, although in practice it seems to have the same effect as ```js-nolint toJSON() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON)\n ","static:canParse":`*
|
|
* The **\`URL.canParse()\`** static method of the URL interface returns a boolean indicating whether or not an absolute URL, or a relative URL combined with a base URL, are parsable and valid.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static)
|
|
`,"static:createObjectURL":`*
|
|
* The **\`createObjectURL()\`** static method of the URL interface creates a string containing a URL representing the object given in the parameter.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static)
|
|
`,"static:parse":`*
|
|
* The **\`URL.parse()\`** static method of the URL interface returns a newly created URL object representing the URL defined by the parameters.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static)
|
|
`,"static:revokeObjectURL":`*
|
|
* The **\`revokeObjectURL()\`** static method of the URL interface releases an existing object URL which was previously created by calling Call this method when you've finished using an object URL to let the browser know not to keep the reference to the file any longer.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static)
|
|
`},URLSearchParams:{$:`*
|
|
* The **\`URLSearchParams\`** interface defines utility methods to work with the query string of a URL.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams)
|
|
`,size:`*
|
|
* The **\`size\`** read-only property of the URLSearchParams interface indicates the total number of search parameter entries.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size)
|
|
`,append:`*
|
|
* The **\`append()\`** method of the URLSearchParams interface appends a specified key/value pair as a new search parameter.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append)
|
|
`,delete:`*
|
|
* The **\`delete()\`** method of the URLSearchParams interface deletes specified parameters and their associated value(s) from the list of all search parameters.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)
|
|
`,get:`*
|
|
* The **\`get()\`** method of the URLSearchParams interface returns the first value associated to the given search parameter.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get)
|
|
`,getAll:`*
|
|
* The **\`getAll()\`** method of the URLSearchParams interface returns all the values associated with a given search parameter as an array.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll)
|
|
`,has:`*
|
|
* The **\`has()\`** method of the URLSearchParams interface returns a boolean value that indicates whether the specified parameter is in the search parameters.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)
|
|
`,set:`*
|
|
* The **\`set()\`** method of the URLSearchParams interface sets the value associated with a given search parameter to the given value.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)
|
|
`,sort:"*\n * The **`URLSearchParams.sort()`** method sorts all key/value pairs contained in this object in place and returns `undefined`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort)\n ",entries:" Returns an array of key, value pairs for every entry in the search params. ",keys:" Returns a list of keys in the search params. ",values:" Returns a list of values in the search params. "},VideoColorSpace:{$:`*
|
|
* The **\`VideoColorSpace\`** interface of the WebCodecs API represents the color space of a video.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace)
|
|
`,fullRange:"*\n * The **`fullRange`** read-only property of the VideoColorSpace interface returns `true` if full-range color values are used.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/fullRange)\n ",matrix:`*
|
|
* The **\`matrix\`** read-only property of the VideoColorSpace interface returns the matrix coefficient of the video.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/matrix)
|
|
`,primaries:`*
|
|
* The **\`primaries\`** read-only property of the VideoColorSpace interface returns the color gamut of the video.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/primaries)
|
|
`,transfer:`*
|
|
* The **\`transfer\`** read-only property of the VideoColorSpace interface returns the opto-electronic transfer characteristics of the video.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/transfer)
|
|
`,toJSON:"*\n * The **`toJSON()`** method of the VideoColorSpace interface is a _serializer_ that returns a JSON representation of the `VideoColorSpace` object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/toJSON)\n "},VideoDecoder:{$:`*
|
|
* The **\`VideoDecoder\`** interface of the WebCodecs API decodes chunks of video.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder)
|
|
`,decodeQueueSize:`*
|
|
* The **\`decodeQueueSize\`** read-only property of the VideoDecoder interface returns the number of pending decode requests in the queue.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize)
|
|
`,ondequeue:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/dequeue_event) ",state:`*
|
|
* The **\`state\`** property of the VideoDecoder interface returns the current state of the underlying codec.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state)
|
|
`,close:`*
|
|
* The **\`close()\`** method of the VideoDecoder interface ends all pending work and releases system resources.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/close)
|
|
`,configure:`*
|
|
* The **\`configure()\`** method of the VideoDecoder interface enqueues a control message to configure the video decoder for decoding chunks.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/configure)
|
|
`,decode:`*
|
|
* The **\`decode()\`** method of the VideoDecoder interface enqueues a control message to decode a given chunk of video.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decode)
|
|
`,flush:`*
|
|
* The **\`flush()\`** method of the VideoDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/flush)
|
|
`,reset:`*
|
|
* The **\`reset()\`** method of the VideoDecoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/reset)
|
|
`,"static:isConfigSupported":`*
|
|
* The **\`isConfigSupported()\`** static method of the VideoDecoder interface checks if the given config is supported (that is, if VideoDecoder objects can be successfully configured with the given config).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/isConfigSupported_static)
|
|
`},VideoEncoder:{$:`*
|
|
* The **\`VideoEncoder\`** interface of the WebCodecs API encodes VideoFrame objects into EncodedVideoChunks.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder)
|
|
`,encodeQueueSize:`*
|
|
* The **\`encodeQueueSize\`** read-only property of the VideoEncoder interface returns the number of pending encode requests in the queue.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize)
|
|
`,ondequeue:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/dequeue_event) ",state:`*
|
|
* The **\`state\`** read-only property of the VideoEncoder interface returns the current state of the underlying codec.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state)
|
|
`,close:`*
|
|
* The **\`close()\`** method of the VideoEncoder interface ends all pending work and releases system resources.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/close)
|
|
`,configure:`*
|
|
* The **\`configure()\`** method of the VideoEncoder interface changes the VideoEncoder.state of the encoder to 'configured' and asynchronously prepares the encoder to accept VideoEncoders for encoding with the specified parameters.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/configure)
|
|
`,encode:`*
|
|
* The **\`encode()\`** method of the VideoEncoder interface asynchronously encodes a VideoFrame.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode)
|
|
`,flush:`*
|
|
* The **\`flush()\`** method of the VideoEncoder interface forces all pending encodes to complete.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/flush)
|
|
`,reset:`*
|
|
* The **\`reset()\`** method of the VideoEncoder interface synchronously cancels all pending encodes and callbacks, frees all underlying resources and sets the VideoEncoder.state to 'unconfigured'.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset)
|
|
`,"static:isConfigSupported":`*
|
|
* The **\`isConfigSupported()\`** static method of the VideoEncoder interface checks if VideoEncoder can be successfully configured with the given config.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/isConfigSupported_static)
|
|
`},VideoFrame:{$:`*
|
|
* The **\`VideoFrame\`** interface of the Web Codecs API represents a frame of a video.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame)
|
|
`,codedHeight:`*
|
|
* The **\`codedHeight\`** property of the VideoFrame interface returns the height of the VideoFrame in pixels, potentially including non-visible padding, and prior to considering potential ratio adjustments.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedHeight)
|
|
`,codedRect:`*
|
|
* The **\`codedRect\`** property of the VideoFrame interface returns a DOMRectReadOnly with the width and height matching VideoFrame.codedWidth and VideoFrame.codedHeight.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedRect)
|
|
`,codedWidth:"*\n * The **`codedWidth`** property of the VideoFrame interface returns the width of the `VideoFrame` in pixels, potentially including non-visible padding, and prior to considering potential ratio adjustments.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedWidth)\n ",colorSpace:`*
|
|
* The **\`colorSpace\`** property of the VideoFrame interface returns a VideoColorSpace object representing the color space of the video.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/colorSpace)
|
|
`,displayHeight:"*\n * The **`displayHeight`** property of the VideoFrame interface returns the height of the `VideoFrame` after applying aspect ratio adjustments.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayHeight)\n ",displayWidth:"*\n * The **`displayWidth`** property of the VideoFrame interface returns the width of the `VideoFrame` after applying aspect ratio adjustments.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayWidth)\n ",duration:`*
|
|
* The **\`duration\`** property of the VideoFrame interface returns an integer indicating the duration of the video in microseconds.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/duration)
|
|
`,format:"*\n * The **`format`** property of the VideoFrame interface returns the pixel format of the `VideoFrame`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/format)\n ",timestamp:`*
|
|
* The **\`timestamp\`** property of the VideoFrame interface returns an integer indicating the timestamp of the video in microseconds.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/timestamp)
|
|
`,visibleRect:"*\n * The **`visibleRect`** property of the VideoFrame interface returns a DOMRectReadOnly describing the visible rectangle of pixels for this `VideoFrame`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/visibleRect)\n ",allocationSize:`*
|
|
* The **\`allocationSize()\`** method of the VideoFrame interface returns the number of bytes required to hold the video as filtered by options passed into the method.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/allocationSize)
|
|
`,clone:"*\n * The **`clone()`** method of the VideoFrame interface creates a new `VideoFrame` object referencing the same media resource as the original.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/clone)\n ",close:`*
|
|
* The **\`close()\`** method of the VideoFrame interface clears all states and releases the reference to the media resource.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close)
|
|
`,copyTo:"*\n * The **`copyTo()`** method of the VideoFrame interface copies the contents of the `VideoFrame` to an `ArrayBuffer`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/copyTo)\n "},WEBGL_color_buffer_float:{$:`*
|
|
* The **\`WEBGL_color_buffer_float\`** extension is part of the WebGL API and adds the ability to render to 32-bit floating-point color buffers.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_color_buffer_float)
|
|
`},WEBGL_compressed_texture_astc:{$:`*
|
|
* The **\`WEBGL_compressed_texture_astc\`** extension is part of the WebGL API and exposes Adaptive Scalable Texture Compression (ASTC) compressed texture formats to WebGL.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc)
|
|
`,getSupportedProfiles:`*
|
|
* The **\`WEBGL_compressed_texture_astc.getSupportedProfiles()\`** method returns an array of strings containing the names of the ASTC profiles supported by the implementation.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles)
|
|
`},WEBGL_compressed_texture_etc:{$:`*
|
|
* The **\`WEBGL_compressed_texture_etc\`** extension is part of the WebGL API and exposes 10 ETC/EAC compressed texture formats.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc)
|
|
`},WEBGL_compressed_texture_etc1:{$:`*
|
|
* The **\`WEBGL_compressed_texture_etc1\`** extension is part of the WebGL API and exposes the ETC1 compressed texture format.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc1)
|
|
`},WEBGL_compressed_texture_pvrtc:{$:`*
|
|
* The **\`WEBGL_compressed_texture_pvrtc\`** extension is part of the WebGL API and exposes four PVRTC compressed texture formats.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_pvrtc)
|
|
`},WEBGL_compressed_texture_s3tc:{$:`*
|
|
* The **\`WEBGL_compressed_texture_s3tc\`** extension is part of the WebGL API and exposes four S3TC compressed texture formats.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc)
|
|
`},WEBGL_compressed_texture_s3tc_srgb:{$:`*
|
|
* The **\`WEBGL_compressed_texture_s3tc_srgb\`** extension is part of the WebGL API and exposes four S3TC compressed texture formats for the sRGB colorspace.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb)
|
|
`},WEBGL_debug_renderer_info:{$:`*
|
|
* The **\`WEBGL_debug_renderer_info\`** extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_renderer_info)
|
|
`},WEBGL_debug_shaders:{$:`*
|
|
* The **\`WEBGL_debug_shaders\`** extension is part of the WebGL API and exposes a method to debug shaders from privileged contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders)
|
|
`,getTranslatedShaderSource:`*
|
|
* The **\`WEBGL_debug_shaders.getTranslatedShaderSource()\`** method is part of the WebGL API and allows you to debug a translated shader.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource)
|
|
`},WEBGL_depth_texture:{$:`*
|
|
* The **\`WEBGL_depth_texture\`** extension is part of the WebGL API and defines 2D depth and depth-stencil textures.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_depth_texture)
|
|
`},WEBGL_draw_buffers:{$:`*
|
|
* The **\`WEBGL_draw_buffers\`** extension is part of the WebGL API and enables a fragment shader to write to several textures, which is useful for deferred shading, for example.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers)
|
|
`,drawBuffersWEBGL:`*
|
|
* The **\`WEBGL_draw_buffers.drawBuffersWEBGL()\`** method is part of the WebGL API and allows you to define the draw buffers to which all fragment colors are written.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
|
|
`},WEBGL_lose_context:{$:`*
|
|
* The **WEBGL_lose_context** extension is part of the WebGL API and exposes functions to simulate losing and restoring a WebGLRenderingContext.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context)
|
|
`,loseContext:`*
|
|
* The **WEBGL_lose_context.loseContext()** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext)
|
|
`,restoreContext:`*
|
|
* The **WEBGL_lose_context.restoreContext()** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext)
|
|
`},WEBGL_multi_draw:{$:`*
|
|
* The **\`WEBGL_multi_draw\`** extension is part of the WebGL API and allows to render more than one primitive with a single function call.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw)
|
|
`,multiDrawArraysInstancedWEBGL:`*
|
|
* The **\`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
|
|
`,multiDrawArraysWEBGL:`*
|
|
* The **\`WEBGL_multi_draw.multiDrawArraysWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
|
|
`,multiDrawElementsInstancedWEBGL:`*
|
|
* The **\`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
|
|
`,multiDrawElementsWEBGL:`*
|
|
* The **\`WEBGL_multi_draw.multiDrawElementsWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
|
|
`},WebGL2RenderingContext:{$:`*
|
|
* The **WebGL2RenderingContext** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML canvas element.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext)
|
|
`},WebGL2RenderingContextBase:{beginQuery:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginQuery) ",beginTransformFeedback:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginTransformFeedback) ",bindBufferBase:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferBase) ",bindBufferRange:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferRange) ",bindSampler:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindSampler) ",bindTransformFeedback:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindTransformFeedback) ",bindVertexArray:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindVertexArray) ",blitFramebuffer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/blitFramebuffer) ",clearBufferfi:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) ",clearBufferfv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) ",clearBufferiv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) ",clearBufferuiv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) ",clientWaitSync:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) ",compressedTexImage3D:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) ",compressedTexSubImage3D:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) ",copyBufferSubData:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyBufferSubData) ",copyTexSubImage3D:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D) ",createQuery:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createQuery) ",createSampler:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) ",createTransformFeedback:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) ",createVertexArray:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) ",deleteQuery:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteQuery) ",deleteSampler:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSampler) ",deleteSync:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSync) ",deleteTransformFeedback:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteTransformFeedback) ",deleteVertexArray:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteVertexArray) ",drawArraysInstanced:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawArraysInstanced) ",drawBuffers:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) ",drawElementsInstanced:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced) ",drawRangeElements:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawRangeElements) ",endQuery:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endQuery) ",endTransformFeedback:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endTransformFeedback) ",fenceSync:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/fenceSync) ",framebufferTextureLayer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/framebufferTextureLayer) ",getActiveUniformBlockName:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockName) ",getActiveUniformBlockParameter:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockParameter) ",getActiveUniforms:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) ",getBufferSubData:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getBufferSubData) ",getFragDataLocation:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getFragDataLocation) ",getIndexedParameter:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getIndexedParameter) ",getInternalformatParameter:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getInternalformatParameter) ",getQuery:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQuery) ",getQueryParameter:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQueryParameter) ",getSamplerParameter:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSamplerParameter) ",getSyncParameter:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSyncParameter) ",getTransformFeedbackVarying:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getTransformFeedbackVarying) ",getUniformBlockIndex:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformBlockIndex) ",getUniformIndices:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) ",invalidateFramebuffer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) ",invalidateSubFramebuffer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) ",isQuery:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isQuery) ",isSampler:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSampler) ",isSync:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSync) ",isTransformFeedback:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isTransformFeedback) ",isVertexArray:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isVertexArray) ",pauseTransformFeedback:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/pauseTransformFeedback) ",readBuffer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/readBuffer) ",renderbufferStorageMultisample:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/renderbufferStorageMultisample) ",resumeTransformFeedback:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/resumeTransformFeedback) ",samplerParameterf:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) ",samplerParameteri:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) ",texImage3D:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texImage3D) ",texStorage2D:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage2D) ",texStorage3D:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage3D) ",texSubImage3D:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texSubImage3D) ",transformFeedbackVaryings:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) ",uniform1ui:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) ",uniform1uiv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) ",uniform2ui:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) ",uniform2uiv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) ",uniform3ui:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) ",uniform3uiv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) ",uniform4ui:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) ",uniform4uiv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) ",uniformBlockBinding:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding) ",uniformMatrix2x3fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) ",uniformMatrix2x4fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) ",uniformMatrix3x2fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) ",uniformMatrix3x4fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) ",uniformMatrix4x2fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) ",uniformMatrix4x3fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) ",vertexAttribDivisor:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor) ",vertexAttribI4i:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) ",vertexAttribI4iv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) ",vertexAttribI4ui:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) ",vertexAttribI4uiv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) ",vertexAttribIPointer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer) ",waitSync:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/waitSync) "},WebGL2RenderingContextOverloads:{bufferData:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bufferData) ",bufferSubData:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bufferSubData) ",compressedTexImage2D:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) ",compressedTexSubImage2D:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) ",readPixels:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) ",texImage2D:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) ",texSubImage2D:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) ",uniform1fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",uniform1iv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",uniform2fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",uniform2iv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",uniform3fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",uniform3iv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",uniform4fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",uniform4iv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",uniformMatrix2fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) ",uniformMatrix3fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) ",uniformMatrix4fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) "},WebGLActiveInfo:{$:`*
|
|
* The **WebGLActiveInfo** interface is part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo)
|
|
`,name:`*
|
|
* The read-only **\`WebGLActiveInfo.name\`** property represents the name of the requested data returned by calling the WebGLRenderingContext.getActiveAttrib() or WebGLRenderingContext.getActiveUniform() methods.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/name)
|
|
`,size:`*
|
|
* The read-only **\`WebGLActiveInfo.size\`** property is a Number representing the size of the requested data returned by calling the WebGLRenderingContext.getActiveAttrib() or WebGLRenderingContext.getActiveUniform() methods.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/size)
|
|
`,type:`*
|
|
* The read-only **\`WebGLActiveInfo.type\`** property represents the type of the requested data returned by calling the WebGLRenderingContext.getActiveAttrib() or WebGLRenderingContext.getActiveUniform() methods.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/type)
|
|
`},WebGLBuffer:{$:`*
|
|
* The **WebGLBuffer** interface is part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLBuffer)
|
|
`},WebGLContextEvent:{$:`*
|
|
* The **WebGLContextEvent** interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent)
|
|
`,statusMessage:`*
|
|
* The read-only **\`WebGLContextEvent.statusMessage\`** property contains additional event status information, or is an empty string if no additional information is available.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent/statusMessage)
|
|
`},WebGLFramebuffer:{$:`*
|
|
* The **WebGLFramebuffer** interface is part of the WebGL API and represents a collection of buffers that serve as a rendering destination.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLFramebuffer)
|
|
`},WebGLProgram:{$:`*
|
|
* The **\`WebGLProgram\`** is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLProgram)
|
|
`},WebGLQuery:{$:`*
|
|
* The **\`WebGLQuery\`** interface is part of the WebGL 2 API and provides ways to asynchronously query for information.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLQuery)
|
|
`},WebGLRenderbuffer:{$:`*
|
|
* The **WebGLRenderbuffer** interface is part of the WebGL API and represents a buffer that can contain an image, or that can be a source or target of a rendering operation.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderbuffer)
|
|
`},WebGLRenderingContext:{$:`*
|
|
* The **\`WebGLRenderingContext\`** interface provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML canvas element.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext)
|
|
`},WebGLRenderingContextBase:{drawingBufferColorSpace:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawingBufferColorSpace) ",drawingBufferHeight:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) ",drawingBufferWidth:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth) ",unpackColorSpace:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/unpackColorSpace) ",activeTexture:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/activeTexture) ",attachShader:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/attachShader) ",bindAttribLocation:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindAttribLocation) ",bindBuffer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindBuffer) ",bindFramebuffer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindFramebuffer) ",bindRenderbuffer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindRenderbuffer) ",bindTexture:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindTexture) ",blendColor:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendColor) ",blendEquation:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquation) ",blendEquationSeparate:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquationSeparate) ",blendFunc:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFunc) ",blendFuncSeparate:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFuncSeparate) ",checkFramebufferStatus:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus) ",clear:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clear) ",clearColor:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearColor) ",clearDepth:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearDepth) ",clearStencil:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearStencil) ",colorMask:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/colorMask) ",compileShader:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compileShader) ",copyTexImage2D:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexImage2D) ",copyTexSubImage2D:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D) ",createBuffer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer) ",createFramebuffer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) ",createProgram:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) ",createRenderbuffer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) ",createShader:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader) ",createTexture:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture) ",cullFace:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/cullFace) ",deleteBuffer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteBuffer) ",deleteFramebuffer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteFramebuffer) ",deleteProgram:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteProgram) ",deleteRenderbuffer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer) ",deleteShader:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteShader) ",deleteTexture:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteTexture) ",depthFunc:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthFunc) ",depthMask:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthMask) ",depthRange:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthRange) ",detachShader:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/detachShader) ",disable:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disable) ",disableVertexAttribArray:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray) ",drawArrays:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawArrays) ",drawElements:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawElements) ",enable:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enable) ",enableVertexAttribArray:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray) ",finish:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/finish) ",flush:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/flush) ",framebufferRenderbuffer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer) ",framebufferTexture2D:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferTexture2D) ",frontFace:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/frontFace) ",generateMipmap:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/generateMipmap) ",getActiveAttrib:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveAttrib) ",getActiveUniform:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveUniform) ",getAttachedShaders:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttachedShaders) ",getAttribLocation:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttribLocation) ",getBufferParameter:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getBufferParameter) ",getContextAttributes:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getContextAttributes) ",getError:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) ",getExtension:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) ",getFramebufferAttachmentParameter:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) ",getParameter:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) ",getProgramInfoLog:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramInfoLog) ",getProgramParameter:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramParameter) ",getRenderbufferParameter:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter) ",getShaderInfoLog:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderInfoLog) ",getShaderParameter:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderParameter) ",getShaderPrecisionFormat:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat) ",getShaderSource:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderSource) ",getSupportedExtensions:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getSupportedExtensions) ",getTexParameter:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getTexParameter) ",getUniform:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniform) ",getUniformLocation:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniformLocation) ",getVertexAttrib:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttrib) ",getVertexAttribOffset:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset) ",hint:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/hint) ",isBuffer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isBuffer) ",isContextLost:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isContextLost) ",isEnabled:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isEnabled) ",isFramebuffer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isFramebuffer) ",isProgram:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isProgram) ",isRenderbuffer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isRenderbuffer) ",isShader:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isShader) ",isTexture:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture) ",lineWidth:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/lineWidth) ",linkProgram:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/linkProgram) ",pixelStorei:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/pixelStorei) ",polygonOffset:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/polygonOffset) ",renderbufferStorage:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/renderbufferStorage) ",sampleCoverage:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/sampleCoverage) ",scissor:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/scissor) ",shaderSource:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/shaderSource) ",stencilFunc:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFunc) ",stencilFuncSeparate:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate) ",stencilMask:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMask) ",stencilMaskSeparate:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate) ",stencilOp:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOp) ",stencilOpSeparate:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOpSeparate) ",texParameterf:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) ",texParameteri:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) ",uniform1f:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",uniform1i:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",uniform2f:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",uniform2i:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",uniform3f:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",uniform3i:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",uniform4f:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",uniform4i:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",useProgram:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/useProgram) ",validateProgram:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/validateProgram) ",vertexAttrib1f:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) ",vertexAttrib1fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) ",vertexAttrib2f:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) ",vertexAttrib2fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) ",vertexAttrib3f:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) ",vertexAttrib3fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) ",vertexAttrib4f:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) ",vertexAttrib4fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) ",vertexAttribPointer:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttribPointer) ",viewport:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/viewport) "},WebGLRenderingContextOverloads:{bufferData:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) ",bufferSubData:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) ",compressedTexImage2D:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) ",compressedTexSubImage2D:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) ",readPixels:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) ",texImage2D:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) ",texSubImage2D:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) ",uniform1fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",uniform1iv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",uniform2fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",uniform2iv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",uniform3fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",uniform3iv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",uniform4fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",uniform4iv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) ",uniformMatrix2fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) ",uniformMatrix3fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) ",uniformMatrix4fv:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) "},WebGLSampler:{$:`*
|
|
* The **\`WebGLSampler\`** interface is part of the WebGL 2 API and stores sampling parameters for WebGLTexture access inside of a shader.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSampler)
|
|
`},WebGLShader:{$:`*
|
|
* The **WebGLShader** is part of the WebGL API and can either be a vertex or a fragment shader.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShader)
|
|
`},WebGLShaderPrecisionFormat:{$:`*
|
|
* The **WebGLShaderPrecisionFormat** interface is part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat)
|
|
`,precision:`*
|
|
* The read-only **\`WebGLShaderPrecisionFormat.precision\`** property returns the number of bits of precision that can be represented.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/precision)
|
|
`,rangeMax:`*
|
|
* The read-only **\`WebGLShaderPrecisionFormat.rangeMax\`** property returns the base 2 log of the absolute value of the maximum value that can be represented.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax)
|
|
`,rangeMin:`*
|
|
* The read-only **\`WebGLShaderPrecisionFormat.rangeMin\`** property returns the base 2 log of the absolute value of the minimum value that can be represented.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin)
|
|
`},WebGLSync:{$:`*
|
|
* The **\`WebGLSync\`** interface is part of the WebGL 2 API and is used to synchronize activities between the GPU and the application.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSync)
|
|
`},WebGLTexture:{$:`*
|
|
* The **WebGLTexture** interface is part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTexture)
|
|
`},WebGLTransformFeedback:{$:`*
|
|
* The **\`WebGLTransformFeedback\`** interface is part of the WebGL 2 API and enables transform feedback, which is the process of capturing primitives generated by vertex processing.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTransformFeedback)
|
|
`},WebGLUniformLocation:{$:`*
|
|
* The **WebGLUniformLocation** interface is part of the WebGL API and represents the location of a uniform variable in a shader program.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLUniformLocation)
|
|
`},WebGLVertexArrayObject:{$:`*
|
|
* The **\`WebGLVertexArrayObject\`** interface is part of the WebGL 2 API, represents vertex array objects (VAOs) pointing to vertex array data, and provides names for different sets of vertex data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject)
|
|
`},WebGLVertexArrayObjectOES:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) "},WebSocket:{$:`*
|
|
* The \`WebSocket\` object provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
`,binaryType:`*
|
|
* The **\`WebSocket.binaryType\`** property controls the type of binary data being received over the WebSocket connection.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/binaryType)
|
|
`,bufferedAmount:"*\n * The **`WebSocket.bufferedAmount`** read-only property returns the number of bytes of data that have been queued using calls to `send()` but not yet transmitted to the network.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/bufferedAmount)\n ",extensions:`*
|
|
* The **\`WebSocket.extensions\`** read-only property returns the extensions selected by the server.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions)
|
|
`,onclose:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close_event) ",onerror:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/error_event) ",onmessage:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/message_event) ",onopen:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/open_event) ",protocol:"*\n * The **`WebSocket.protocol`** read-only property returns the name of the sub-protocol the server selected; this will be one of the strings specified in the `protocols` parameter when creating the WebSocket object, or the empty string if no connection is established.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol)\n ",readyState:`*
|
|
* The **\`WebSocket.readyState\`** read-only property returns the current state of the WebSocket connection.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
|
|
`,url:`*
|
|
* The **\`WebSocket.url\`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url)
|
|
`,close:"*\n * The **`WebSocket.close()`** method closes the already `CLOSED`, this method does nothing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)\n ",send:"*\n * The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)\n "},WebTransport:{$:`*
|
|
* The **\`WebTransport\`** interface of the WebTransport API provides functionality to enable a user agent to connect to an HTTP/3 server, initiate reliable and unreliable transport in either or both directions, and close the connection once it is no longer needed.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport)
|
|
`,closed:`*
|
|
* The **\`closed\`** read-only property of the WebTransport interface returns a promise that resolves when the transport is closed.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
|
|
`,datagrams:`*
|
|
* The **\`datagrams\`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams \u2014 unreliable data transmission.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams)
|
|
`,incomingBidirectionalStreams:`*
|
|
* The **\`incomingBidirectionalStreams\`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams)
|
|
`,incomingUnidirectionalStreams:`*
|
|
* The **\`incomingUnidirectionalStreams\`** read-only property of the WebTransport interface represents one or more unidirectional streams opened by the server.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
|
|
`,ready:`*
|
|
* The **\`ready\`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
|
|
`,close:`*
|
|
* The **\`close()\`** method of the WebTransport interface closes an ongoing WebTransport session.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close)
|
|
`,createBidirectionalStream:`*
|
|
* The **\`createBidirectionalStream()\`** method of the WebTransport interface asynchronously opens and returns a bidirectional stream.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream)
|
|
`,createUnidirectionalStream:`*
|
|
* The **\`createUnidirectionalStream()\`** method of the WebTransport interface asynchronously opens a unidirectional stream.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)
|
|
`},WebTransportBidirectionalStream:{$:`*
|
|
* The **\`WebTransportBidirectionalStream\`** interface of the WebTransport API represents a bidirectional stream created by a server or a client that can be used for reliable transport.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream)
|
|
`,readable:`*
|
|
* The **\`readable\`** read-only property of the WebTransportBidirectionalStream interface returns a WebTransportReceiveStream instance that can be used to reliably read incoming data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable)
|
|
`,writable:`*
|
|
* The **\`writable\`** read-only property of the WebTransportBidirectionalStream interface returns a WebTransportSendStream instance that can be used to write outgoing data.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable)
|
|
`},WebTransportDatagramDuplexStream:{$:`*
|
|
* The **\`WebTransportDatagramDuplexStream\`** interface of the WebTransport API represents a duplex stream that can be used for unreliable transport of datagrams between client and server.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream)
|
|
`,incomingHighWaterMark:`*
|
|
* The **\`incomingHighWaterMark\`** property of the WebTransportDatagramDuplexStream interface gets or sets the high water mark for incoming chunks of data \u2014 this is the maximum size, in chunks, that the incoming ReadableStream's internal queue can reach before it is considered full.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark)
|
|
`,incomingMaxAge:`*
|
|
* The **\`incomingMaxAge\`** property of the WebTransportDatagramDuplexStream interface gets or sets the maximum age for incoming datagrams, in milliseconds.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge)
|
|
`,maxDatagramSize:`*
|
|
* The **\`maxDatagramSize\`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to WebTransportDatagramDuplexStream.writable.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize)
|
|
`,outgoingHighWaterMark:`*
|
|
* The **\`outgoingHighWaterMark\`** property of the WebTransportDatagramDuplexStream interface gets or sets the high water mark for outgoing chunks of data \u2014 this is the maximum size, in chunks, that the outgoing WritableStream's internal queue can reach before it is considered full.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark)
|
|
`,outgoingMaxAge:`*
|
|
* The **\`outgoingMaxAge\`** property of the WebTransportDatagramDuplexStream interface gets or sets the maximum age for outgoing datagrams, in milliseconds.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge)
|
|
`,readable:`*
|
|
* The **\`readable\`** read-only property of the WebTransportDatagramDuplexStream interface returns a ReadableStream instance that can be used to unreliably read incoming datagrams from the stream.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable)
|
|
`,writable:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) "},WebTransportError:{$:`*
|
|
* The **\`WebTransportError\`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call).
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError)
|
|
`,source:`*
|
|
* The **\`source\`** read-only property of the WebTransportError interface returns an enumerated value indicating the source of the error.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source)
|
|
`,streamErrorCode:"*\n * The **`streamErrorCode`** read-only property of the WebTransportError interface returns a number in the range 0-255 indicating the application protocol error code for this error, or `null` if one is not available.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode)\n "},WindowClient:{$:`*
|
|
* The \`WindowClient\` interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browsing context, controlled by an active worker.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient)
|
|
`,focused:`*
|
|
* The **\`focused\`** read-only property of the the current client has focus.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/focused)
|
|
`,visibilityState:"*\n * The **`visibilityState`** read-only property of the This value can be one of `'hidden'`, `'visible'`, or `'prerender'`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/visibilityState)\n ",focus:"*\n * The **`focus()`** method of the WindowClient interface gives user input focus to the current client and returns a ```js-nolint focus() ``` None.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/focus)\n ",navigate:"*\n * The **`navigate()`** method of the WindowClient interface loads a specified URL into a controlled client page then returns a ```js-nolint navigate(url) ``` - `url` - : The location to navigate to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/navigate)\n "},WindowOrWorkerGlobalScope:{caches:`*
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/caches)
|
|
`,crossOriginIsolated:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) ",crypto:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto) ",indexedDB:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) ",isSecureContext:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) ",origin:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin) ",performance:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) ",atob:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) ",btoa:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) ",clearInterval:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) ",clearTimeout:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) ",createImageBitmap:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) ",fetch:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) ",queueMicrotask:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) ",reportError:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) ",setInterval:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) ",setTimeout:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) ",structuredClone:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) "},Worker:{$:`*
|
|
* The **\`Worker\`** interface of the Web Workers API represents a background task that can be created via script, which can send messages back to its creator.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker)
|
|
`,postMessage:`*
|
|
* The **\`postMessage()\`** method of the Worker interface sends a message to the worker.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/postMessage)
|
|
`,terminate:`*
|
|
* The **\`terminate()\`** method of the Worker interface immediately terminates the Worker.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/terminate)
|
|
`},WorkerGlobalScope:{location:`*
|
|
* The **\`location\`** read-only property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
|
|
`,navigator:`*
|
|
* The **\`navigator\`** read-only property of the WorkerGlobalScope interface returns the WorkerNavigator associated with the worker.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/navigator)
|
|
`,onerror:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/error_event) ",onlanguagechange:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/languagechange_event) ",onoffline:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/offline_event) ",ononline:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/online_event) ",onrejectionhandled:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/rejectionhandled_event) ",onunhandledrejection:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/unhandledrejection_event) ",self:"*\n * The **`self`** read-only property of the WorkerGlobalScope interface returns a reference to the `WorkerGlobalScope` itself.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/self)\n ",importScripts:`*
|
|
* The **\`importScripts()\`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker's scope.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
|
|
`},WorkerLocation:{$:`*
|
|
* The **\`WorkerLocation\`** interface defines the absolute location of the script executed by the Worker.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation)
|
|
`,hash:`*
|
|
* The **\`hash\`** property of a WorkerLocation object returns the URL.hash part of the worker's location.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hash)
|
|
`,host:`*
|
|
* The **\`host\`** property of a WorkerLocation object returns the URL.host part of the worker's location.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/host)
|
|
`,hostname:`*
|
|
* The **\`hostname\`** property of a WorkerLocation object returns the URL.hostname part of the worker's location.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hostname)
|
|
`,href:`*
|
|
* The **\`href\`** property of a WorkerLocation object returns a string containing the serialized URL for the worker's location.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/href)
|
|
`,origin:`*
|
|
* The **\`origin\`** property of a WorkerLocation object returns the worker's URL.origin.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/origin)
|
|
`,pathname:`*
|
|
* The **\`pathname\`** property of a WorkerLocation object returns the URL.pathname part of the worker's location.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/pathname)
|
|
`,port:`*
|
|
* The **\`port\`** property of a WorkerLocation object returns the URL.port part of the worker's location.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/port)
|
|
`,protocol:`*
|
|
* The **\`protocol\`** property of a WorkerLocation object returns the URL.protocol part of the worker's location.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/protocol)
|
|
`,search:`*
|
|
* The **\`search\`** property of a WorkerLocation object returns the URL.search part of the worker's location.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/search)
|
|
`},WorkerNavigator:{$:`*
|
|
* The **\`WorkerNavigator\`** interface represents a subset of the Navigator interface allowed to be accessed from a Worker.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator)
|
|
`,mediaCapabilities:`*
|
|
* The read-only **\`mediaCapabilities\`** property of the WorkerNavigator interface references a MediaCapabilities object that can expose information about the decoding and encoding capabilities for a given format and output capabilities (as defined by the Media Capabilities API).
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/mediaCapabilities)
|
|
`,permissions:`*
|
|
* The **\`permissions\`** read-only property of the WorkerNavigator interface returns a Permissions object that can be used to query and update permission status of APIs covered by the Permissions API.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/permissions)
|
|
`,serviceWorker:`*
|
|
* The **\`serviceWorker\`** read-only property of the WorkerNavigator interface returns the ServiceWorkerContainer object for the associated document, which provides access to registration, removal, upgrade, and communication with the ServiceWorker.
|
|
* Available only in secure contexts.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/serviceWorker)
|
|
`},WritableStream:{$:`*
|
|
* The **\`WritableStream\`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)
|
|
`,locked:"*\n * The **`locked`** read-only property of the WritableStream interface returns a boolean indicating whether the `WritableStream` is locked to a writer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked)\n ",abort:`*
|
|
* The **\`abort()\`** method of the WritableStream interface aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort)
|
|
`,close:`*
|
|
* The **\`close()\`** method of the WritableStream interface closes the associated stream.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close)
|
|
`,getWriter:`*
|
|
* The **\`getWriter()\`** method of the WritableStream interface returns a new instance of WritableStreamDefaultWriter and locks the stream to that instance.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter)
|
|
`},WritableStreamDefaultController:{$:`*
|
|
* The **\`WritableStreamDefaultController\`** interface of the Streams API represents a controller allowing control of a WritableStream's state.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)
|
|
`,signal:`*
|
|
* The read-only **\`signal\`** property of the WritableStreamDefaultController interface returns the AbortSignal associated with the controller.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal)
|
|
`,error:`*
|
|
* The **\`error()\`** method of the with the associated stream to error.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error)
|
|
`},WritableStreamDefaultWriter:{$:"*\n * The **`WritableStreamDefaultWriter`** interface of the Streams API is the object returned by WritableStream.getWriter() and once created locks the writer to the `WritableStream` ensuring that no other streams can write to the underlying sink.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter)\n ",closed:`*
|
|
* The **\`closed\`** read-only property of the the stream errors or the writer's lock is released.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed)
|
|
`,desiredSize:`*
|
|
* The **\`desiredSize\`** read-only property of the to fill the stream's internal queue.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize)
|
|
`,ready:`*
|
|
* The **\`ready\`** read-only property of the that resolves when the desired size of the stream's internal queue transitions from non-positive to positive, signaling that it is no longer applying backpressure.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready)
|
|
`,abort:`*
|
|
* The **\`abort()\`** method of the the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort)
|
|
`,close:`*
|
|
* The **\`close()\`** method of the stream.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close)
|
|
`,releaseLock:`*
|
|
* The **\`releaseLock()\`** method of the corresponding stream.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock)
|
|
`,write:`*
|
|
* The **\`write()\`** method of the operation.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write)
|
|
`},XMLHttpRequest:{$:`*
|
|
* \`XMLHttpRequest\` (XHR) objects are used to interact with servers.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest)
|
|
`,onreadystatechange:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readystatechange_event) ",readyState:`*
|
|
* The **XMLHttpRequest.readyState** property returns the state an XMLHttpRequest client is in.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState)
|
|
`,response:`*
|
|
* The XMLHttpRequest **\`response\`** property returns the response's body content as an ArrayBuffer, a Blob, a Document, a JavaScript Object, or a string, depending on the value of the request's XMLHttpRequest.responseType property.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/response)
|
|
`,responseText:`*
|
|
* The read-only XMLHttpRequest property **\`responseText\`** returns the text received from a server following a request being sent.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseText)
|
|
`,responseType:`*
|
|
* The XMLHttpRequest property **\`responseType\`** is an enumerated string value specifying the type of data contained in the response.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseType)
|
|
`,responseURL:"*\n * The read-only **`XMLHttpRequest.responseURL`** property returns the serialized URL of the response or the empty string if the URL is `null`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseURL)\n ",status:"*\n * The read-only **`XMLHttpRequest.status`** property returns the numerical HTTP status code of the `XMLHttpRequest`'s response.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/status)\n ",statusText:`*
|
|
* The read-only **\`XMLHttpRequest.statusText\`** property returns a string containing the response's status message as returned by the HTTP server.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/statusText)
|
|
`,timeout:"*\n * The **`XMLHttpRequest.timeout`** property is an `unsigned long` representing the number of milliseconds a request can take before automatically being terminated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/timeout)\n ",upload:`*
|
|
* The XMLHttpRequest \`upload\` property returns an XMLHttpRequestUpload object that can be observed to monitor an upload's progress.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/upload)
|
|
`,withCredentials:"*\n * The **`XMLHttpRequest.withCredentials`** property is a boolean value that indicates whether or not cross-site `Access-Control` requests should be made using credentials such as cookies, authentication headers or TLS client certificates.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/withCredentials)\n ",abort:`*
|
|
* The **\`XMLHttpRequest.abort()\`** method aborts the request if it has already been sent.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/abort)
|
|
`,getAllResponseHeaders:"*\n * The XMLHttpRequest method **`getAllResponseHeaders()`** returns all the response headers, separated by CRLF, as a string, or returns `null` if no response has been received.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getAllResponseHeaders)\n ",getResponseHeader:`*
|
|
* The XMLHttpRequest method **\`getResponseHeader()\`** returns the string containing the text of a particular header's value.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getResponseHeader)
|
|
`,open:`*
|
|
* The XMLHttpRequest method **\`open()\`** initializes a newly-created request, or re-initializes an existing one.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open)
|
|
`,overrideMimeType:`*
|
|
* The XMLHttpRequest method **\`overrideMimeType()\`** specifies a MIME type other than the one provided by the server to be used instead when interpreting the data being transferred in a request.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType)
|
|
`,send:`*
|
|
* The XMLHttpRequest method **\`send()\`** sends the request to the server.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/send)
|
|
`,setRequestHeader:`*
|
|
* The XMLHttpRequest method **\`setRequestHeader()\`** sets the value of an HTTP request header.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/setRequestHeader)
|
|
`},XMLHttpRequestEventTarget:{$:`*
|
|
* \`XMLHttpRequestEventTarget\` is the interface that describes the event handlers shared on XMLHttpRequest and XMLHttpRequestUpload.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestEventTarget)
|
|
`},XMLHttpRequestUpload:{$:`*
|
|
* The **\`XMLHttpRequestUpload\`** interface represents the upload process for a specific XMLHttpRequest.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestUpload)
|
|
`},Console:{$:" The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). *\n * The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console)\n ",assert:`*
|
|
* The **\`console.assert()\`** static method writes an error message to the console if the assertion is false.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static)
|
|
`,clear:`*
|
|
* The **\`console.clear()\`** static method clears the console if possible.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static)
|
|
`,count:"*\n * The **`console.count()`** static method logs the number of times that this particular call to `count()` has been called.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static)\n ",countReset:`*
|
|
* The **\`console.countReset()\`** static method resets counter used with console/count_static.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static)
|
|
`,debug:`*
|
|
* The **\`console.debug()\`** static method outputs a message to the console at the 'debug' log level.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static)
|
|
`,dir:`*
|
|
* The **\`console.dir()\`** static method displays a list of the properties of the specified JavaScript object.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static)
|
|
`,dirxml:`*
|
|
* The **\`console.dirxml()\`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static)
|
|
`,error:`*
|
|
* The **\`console.error()\`** static method outputs a message to the console at the 'error' log level.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static)
|
|
`,group:`*
|
|
* The **\`console.group()\`** static method creates a new inline group in the Web console log, causing any subsequent console messages to be indented by an additional level, until console/groupEnd_static is called.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static)
|
|
`,groupCollapsed:`*
|
|
* The **\`console.groupCollapsed()\`** static method creates a new inline group in the console.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static)
|
|
`,groupEnd:`*
|
|
* The **\`console.groupEnd()\`** static method exits the current inline group in the console.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static)
|
|
`,info:`*
|
|
* The **\`console.info()\`** static method outputs a message to the console at the 'info' log level.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static)
|
|
`,log:`*
|
|
* The **\`console.log()\`** static method outputs a message to the console.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static)
|
|
`,table:`*
|
|
* The **\`console.table()\`** static method displays tabular data as a table.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static)
|
|
`,time:`*
|
|
* The **\`console.time()\`** static method starts a timer you can use to track how long an operation takes.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static)
|
|
`,timeEnd:`*
|
|
* The **\`console.timeEnd()\`** static method stops a timer that was previously started by calling console/time_static.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static)
|
|
`,timeLog:`*
|
|
* The **\`console.timeLog()\`** static method logs the current value of a timer that was previously started by calling console/time_static.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static)
|
|
`,trace:`*
|
|
* The **\`console.trace()\`** static method outputs a stack trace to the console.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static)
|
|
`,warn:`*
|
|
* The **\`console.warn()\`** static method outputs a warning message to the console at the 'warning' log level.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static)
|
|
`},name:{$:`*
|
|
* The **\`name\`** read-only property of the the Worker.Worker constructor can pass to get a reference to the DedicatedWorkerGlobalScope.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/name)
|
|
`},onrtctransform:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) "},close:{$:"*\n * The **`close()`** method of the DedicatedWorkerGlobalScope interface discards any tasks queued in the `DedicatedWorkerGlobalScope`'s event loop, effectively closing this particular scope.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/close)\n "},postMessage:{$:`*
|
|
* The **\`postMessage()\`** method of the DedicatedWorkerGlobalScope interface sends a message to the main thread that spawned it.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)
|
|
`},dispatchEvent:{$:`*
|
|
* The **\`dispatchEvent()\`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
|
|
`},location:{$:`*
|
|
* The **\`location\`** read-only property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
|
|
`},navigator:{},onerror:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/error_event) "},onlanguagechange:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/languagechange_event) "},onoffline:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/offline_event) "},ononline:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/online_event) "},onrejectionhandled:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/rejectionhandled_event) "},onunhandledrejection:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/unhandledrejection_event) "},self:{},importScripts:{$:`*
|
|
* The **\`importScripts()\`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker's scope.
|
|
*
|
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
|
|
`},fonts:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) "},caches:{$:`*
|
|
* The Cache API allows fine grained control of reading and writing from the Cloudflare global network cache.
|
|
*
|
|
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/cache/)
|
|
`},crossOriginIsolated:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) "},crypto:{$:`*
|
|
* The Web Crypto API provides a set of low-level functions for common cryptographic tasks.
|
|
* The Workers runtime implements the full surface of this API, but with some differences in
|
|
* the [supported algorithms](https://developers.cloudflare.com/workers/runtime-apis/web-crypto/#supported-algorithms)
|
|
* compared to those implemented in most browsers.
|
|
*
|
|
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/web-crypto/)
|
|
`},indexedDB:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) "},isSecureContext:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) "},origin:{},performance:{$:`*
|
|
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
* as well as timing of subrequests and other operations.
|
|
*
|
|
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
`},atob:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) "},btoa:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) "},clearInterval:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) "},clearTimeout:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) "},createImageBitmap:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) "},fetch:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) "},queueMicrotask:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) "},reportError:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) "},setInterval:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) "},setTimeout:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) "},structuredClone:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) "},cancelAnimationFrame:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) "},requestAnimationFrame:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) "},onmessage:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) "},onmessageerror:{$:" [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) "}};var s5e={"workerd::Reader":{$constructor:["base"]},"workerd::Builder":{$constructor:["base"],setName:["value"],initName:["size"],adoptName:["value"],setDate:["value"],initDate:["size"],adoptDate:["value"],setNames:["value"],initNames:["size"],adoptNames:["value"],setFormDataParserSupportsFiles:["value"],setFetchRefusesUnknownProtocols:["value"],setEsiIncludeIsVoidTag:["value"],setObsolete3:["value"],setDurableObjectFetchRequiresSchemeAuthority:["value"],setStreamsByobReaderDetachesBuffer:["value"],setStreamsJavaScriptControllers:["value"],setJsgPropertyOnPrototypeTemplate:["value"],setMinimalSubrequests:["value"],setNoCotsOnExternalFetch:["value"],setSpecCompliantUrl:["value"],setGlobalNavigator:["value"],setCaptureThrowsAsRejections:["value"],setR2PublicBetaApi:["value"],setObsolete14:["value"],setNoSubstituteNull:["value"],setTransformStreamJavaScriptControllers:["value"],setR2ListHonorIncludeFields:["value"],setExportCommonJsDefaultNamespace:["value"],setObsolete19:["value"],setWebSocketCompression:["value"],setNodeJsCompat:["value"],setObsolete22:["value"],setSpecCompliantResponseRedirect:["value"],setWorkerdExperimental:["value"],setDurableObjectGetExisting:["value"],setHttpHeadersGetSetCookie:["value"],setDispatchExceptionTunneling:["value"],setServiceBindingExtraHandlers:["value"],setNoCfBotManagementDefault:["value"],setUrlSearchParamsDeleteHasValueArg:["value"],setStrictCompression:["value"],setBrotliContentEncoding:["value"],setStrictCrypto:["value"],setRttiApi:["value"],setObsolete35:["value"],setCryptoPreservePublicExponent:["value"],setVectorizeQueryMetadataOptional:["value"],setUnsafeModule:["value"],setJsRpc:["value"],setNoImportScripts:["value"],setNodeJsAls:["value"],setQueuesJsonMessages:["value"],setPythonWorkers:["value"],setFetcherNoGetPutDelete:["value"],setUnwrapCustomThenables:["value"],setFetcherRpc:["value"],setInternalStreamByobReturn:["value"],setBlobStandardMimeType:["value"],setFetchStandardUrl:["value"],setNodeJsCompatV2:["value"],setGlobalFetchStrictlyPublic:["value"],setNewModuleRegistry:["value"],setCacheOptionEnabled:["value"],setKvDirectBinding:["value"],setAllowCustomPorts:["value"],setIncreaseWebsocketMessageSize:["value"],setInternalWritableStreamAbortClearsQueue:["value"],setPythonWorkersDevPyodide:["value"],setNodeJsZlib:["value"],setReplicaRouting:["value"],setObsolete61:["value"],setHandleCrossRequestPromiseResolution:["value"],setObsolete63:["value"],setSetToStringTag:["value"],setUpperCaseAllHttpMethods:["value"],setObsolete66:["value"],setNoTopLevelAwaitInRequire:["value"],setFixupTransformStreamBackpressure:["value"],setObsolete69:["value"],setCacheNoCache:["value"],setPythonWorkers20250116:["value"],setRequestCfOverridesCacheRules:["value"],setMemoryCacheDelete:["value"],setObsolete74:["value"],setQueueConsumerNoWaitForWaitUntil:["value"],setPopulateProcessEnv:["value"],setCacheApiRequestCfOverridesCacheRules:["value"],setDisableImportableEnv:["value"],setAssetsSecFetchModeNavigateHeaderPrefersAssetServing:["value"],setCacheApiCompatFlags:["value"],setObsolete81:["value"],setObsolete82:["value"],setSpecCompliantUrlpattern:["value"],setJsWeakRef:["value"],setRequestSignalPassthrough:["value"],setEnableNavigatorLanguage:["value"],setWebFileSystem:["value"],setAbortSignalRpc:["value"],setAllowEvalDuringStartup:["value"],setEnableRequestSignal:["value"],setConnectPassThrough:["value"],setReuseCtxAcrossNonclassEvents:["value"],setBindAsyncLocalStorageSnapshot:["value"],setThrowOnUnrecognizedImportAssertion:["value"],setPythonWorkflows:["value"],setUnsupportedProcessActualPlatform:["value"],setEnableNodeJsProcessV2:["value"],setSetEventTargetThis:["value"],setEnableForwardableEmailFullHeaders:["value"],setEnableNodejsHttpModules:["value"],setPedanticWpt:["value"],setExposeGlobalMessageChannel:["value"],setEnableNodejsHttpServerModules:["value"],setPythonNoGlobalHandlers:["value"],setEnableNodeJsFsModule:["value"],setEnableNodeJsOsModule:["value"],setPythonWorkersForceNewVendorPath:["value"],setRemoveNodejsCompatEOL:["value"],setEnableWorkflowScriptValidation:["value"],setPythonDedicatedSnapshot:["value"],setTypescriptStripTypes:["value"],setEnableNodeJsHttp2Module:["value"],setExperimentalAllowEvalAlways:["value"],setStripAuthorizationOnCrossOriginRedirect:["value"],setEnhancedErrorSerialization:["value"],setEmailSendingQueuing:["value"],setRemoveNodejsCompatEOLv22:["value"],setRemoveNodejsCompatEOLv23:["value"],setRemoveNodejsCompatEOLv24:["value"],setEnableNodeJsConsoleModule:["value"],setEnableNodeJsVmModule:["value"],setEnableNodeJsPerfHooksModule:["value"],setEnableGlobalPerformanceClasses:["value"],setEnableNodeJsDomainModule:["value"],setEnableNodeJsV8Module:["value"],setEnableNodeJsTtyModule:["value"],setEnableNodeJsPunycodeModule:["value"],setEnableNodeJsClusterModule:["value"],setEnableNodeJsChildProcessModule:["value"],setEnableNodeJsWorkerThreadsModule:["value"],setEnableNodeJsStreamWrapModule:["value"],setEnableNodeJsWasiModule:["value"],setEnableNodeJsDgramModule:["value"],setEnableNodeJsInspectorModule:["value"],setEnableNodeJsTraceEventsModule:["value"],setEnableNodeJsReadlineModule:["value"],setEnableNodeJsReplModule:["value"],setEnableNodeJsSqliteModule:["value"],setEnableCtxExports:["value"],setPythonExternalSDK:["value"],setFastJsgStruct:["value"],setCacheReload:["value"],setStreamsNodejsV24Compat:["value"],setPythonCheckRngState:["value"],setShouldSetImmutablePrototype:["value"],setFetchIterableTypeSupport:["value"],setEnvModuleNullableSupport:["value"],setPreciseTimers:["value"],setFetchIterableTypeSupportOverrideAdjustment:["value"],setStripBomInReadAllText:["value"],setAllowIrrevocableStubStorage:["value"],setRpcParamsDupStubs:["value"],setEnableNodejsGlobalTimers:["value"],setNoAutoAllocateChunkSize:["value"],setPythonWorkflowsImplicitDeps:["value"],setRequireReturnsDefaultExport:["value"],setPythonRequestHeadersPreserveCommas:["value"],setQueueExposeErrorCodes:["value"],setTextDecoderReplaceSurrogates:["value"],setContainersPidNamespace:["value"],setDeleteAllDeletesAlarm:["value"],setUnhandledRejectionAfterMicrotaskCheckpoint:["value"],setTextDecoderCjkDecoder:["value"],setWebsocketCloseReasonByteLimit:["value"],setEnableVersionApi:["value"],setTag:["value"],initTag:["size"],adoptTag:["value"],setMessage:["value"],initMessage:["size"],adoptMessage:["value"],setUpper:["value"],setLower:["value"]},"workerd::Pipeline":{$constructor:["typeless"]},workerd:{setName:["value"],initName:["size"],adoptName:["value"],setDate:["value"],initDate:["size"],adoptDate:["value"],setNames:["value"],initNames:["size"],adoptNames:["value"],setFormDataParserSupportsFiles:["value"],setFetchRefusesUnknownProtocols:["value"],setEsiIncludeIsVoidTag:["value"],setObsolete3:["value"],setDurableObjectFetchRequiresSchemeAuthority:["value"],setStreamsByobReaderDetachesBuffer:["value"],setStreamsJavaScriptControllers:["value"],setJsgPropertyOnPrototypeTemplate:["value"],setMinimalSubrequests:["value"],setNoCotsOnExternalFetch:["value"],setSpecCompliantUrl:["value"],setGlobalNavigator:["value"],setCaptureThrowsAsRejections:["value"],setR2PublicBetaApi:["value"],setObsolete14:["value"],setNoSubstituteNull:["value"],setTransformStreamJavaScriptControllers:["value"],setR2ListHonorIncludeFields:["value"],setExportCommonJsDefaultNamespace:["value"],setObsolete19:["value"],setWebSocketCompression:["value"],setNodeJsCompat:["value"],setObsolete22:["value"],setSpecCompliantResponseRedirect:["value"],setWorkerdExperimental:["value"],setDurableObjectGetExisting:["value"],setHttpHeadersGetSetCookie:["value"],setDispatchExceptionTunneling:["value"],setServiceBindingExtraHandlers:["value"],setNoCfBotManagementDefault:["value"],setUrlSearchParamsDeleteHasValueArg:["value"],setStrictCompression:["value"],setBrotliContentEncoding:["value"],setStrictCrypto:["value"],setRttiApi:["value"],setObsolete35:["value"],setCryptoPreservePublicExponent:["value"],setVectorizeQueryMetadataOptional:["value"],setUnsafeModule:["value"],setJsRpc:["value"],setNoImportScripts:["value"],setNodeJsAls:["value"],setQueuesJsonMessages:["value"],setPythonWorkers:["value"],setFetcherNoGetPutDelete:["value"],setUnwrapCustomThenables:["value"],setFetcherRpc:["value"],setInternalStreamByobReturn:["value"],setBlobStandardMimeType:["value"],setFetchStandardUrl:["value"],setNodeJsCompatV2:["value"],setGlobalFetchStrictlyPublic:["value"],setNewModuleRegistry:["value"],setCacheOptionEnabled:["value"],setKvDirectBinding:["value"],setAllowCustomPorts:["value"],setIncreaseWebsocketMessageSize:["value"],setInternalWritableStreamAbortClearsQueue:["value"],setPythonWorkersDevPyodide:["value"],setNodeJsZlib:["value"],setReplicaRouting:["value"],setObsolete61:["value"],setHandleCrossRequestPromiseResolution:["value"],setObsolete63:["value"],setSetToStringTag:["value"],setUpperCaseAllHttpMethods:["value"],setObsolete66:["value"],setNoTopLevelAwaitInRequire:["value"],setFixupTransformStreamBackpressure:["value"],setObsolete69:["value"],setCacheNoCache:["value"],setPythonWorkers20250116:["value"],setRequestCfOverridesCacheRules:["value"],setMemoryCacheDelete:["value"],setObsolete74:["value"],setQueueConsumerNoWaitForWaitUntil:["value"],setPopulateProcessEnv:["value"],setCacheApiRequestCfOverridesCacheRules:["value"],setDisableImportableEnv:["value"],setAssetsSecFetchModeNavigateHeaderPrefersAssetServing:["value"],setCacheApiCompatFlags:["value"],setObsolete81:["value"],setObsolete82:["value"],setSpecCompliantUrlpattern:["value"],setJsWeakRef:["value"],setRequestSignalPassthrough:["value"],setEnableNavigatorLanguage:["value"],setWebFileSystem:["value"],setAbortSignalRpc:["value"],setAllowEvalDuringStartup:["value"],setEnableRequestSignal:["value"],setConnectPassThrough:["value"],setReuseCtxAcrossNonclassEvents:["value"],setBindAsyncLocalStorageSnapshot:["value"],setThrowOnUnrecognizedImportAssertion:["value"],setPythonWorkflows:["value"],setUnsupportedProcessActualPlatform:["value"],setEnableNodeJsProcessV2:["value"],setSetEventTargetThis:["value"],setEnableForwardableEmailFullHeaders:["value"],setEnableNodejsHttpModules:["value"],setPedanticWpt:["value"],setExposeGlobalMessageChannel:["value"],setEnableNodejsHttpServerModules:["value"],setPythonNoGlobalHandlers:["value"],setEnableNodeJsFsModule:["value"],setEnableNodeJsOsModule:["value"],setPythonWorkersForceNewVendorPath:["value"],setRemoveNodejsCompatEOL:["value"],setEnableWorkflowScriptValidation:["value"],setPythonDedicatedSnapshot:["value"],setTypescriptStripTypes:["value"],setEnableNodeJsHttp2Module:["value"],setExperimentalAllowEvalAlways:["value"],setStripAuthorizationOnCrossOriginRedirect:["value"],setEnhancedErrorSerialization:["value"],setEmailSendingQueuing:["value"],setRemoveNodejsCompatEOLv22:["value"],setRemoveNodejsCompatEOLv23:["value"],setRemoveNodejsCompatEOLv24:["value"],setEnableNodeJsConsoleModule:["value"],setEnableNodeJsVmModule:["value"],setEnableNodeJsPerfHooksModule:["value"],setEnableGlobalPerformanceClasses:["value"],setEnableNodeJsDomainModule:["value"],setEnableNodeJsV8Module:["value"],setEnableNodeJsTtyModule:["value"],setEnableNodeJsPunycodeModule:["value"],setEnableNodeJsClusterModule:["value"],setEnableNodeJsChildProcessModule:["value"],setEnableNodeJsWorkerThreadsModule:["value"],setEnableNodeJsStreamWrapModule:["value"],setEnableNodeJsWasiModule:["value"],setEnableNodeJsDgramModule:["value"],setEnableNodeJsInspectorModule:["value"],setEnableNodeJsTraceEventsModule:["value"],setEnableNodeJsReadlineModule:["value"],setEnableNodeJsReplModule:["value"],setEnableNodeJsSqliteModule:["value"],setEnableCtxExports:["value"],setPythonExternalSDK:["value"],setFastJsgStruct:["value"],setCacheReload:["value"],setStreamsNodejsV24Compat:["value"],setPythonCheckRngState:["value"],setShouldSetImmutablePrototype:["value"],setFetchIterableTypeSupport:["value"],setEnvModuleNullableSupport:["value"],setPreciseTimers:["value"],setFetchIterableTypeSupportOverrideAdjustment:["value"],setStripBomInReadAllText:["value"],setAllowIrrevocableStubStorage:["value"],setRpcParamsDupStubs:["value"],setEnableNodejsGlobalTimers:["value"],setNoAutoAllocateChunkSize:["value"],setPythonWorkflowsImplicitDeps:["value"],setRequireReturnsDefaultExport:["value"],setPythonRequestHeadersPreserveCommas:["value"],setQueueExposeErrorCodes:["value"],setTextDecoderReplaceSurrogates:["value"],setContainersPidNamespace:["value"],setDeleteAllDeletesAlarm:["value"],setUnhandledRejectionAfterMicrotaskCheckpoint:["value"],setTextDecoderCjkDecoder:["value"],setWebsocketCloseReasonByteLimit:["value"],setEnableVersionApi:["value"],setTag:["value"],initTag:["size"],adoptTag:["value"],setMessage:["value"],initMessage:["size"],adoptMessage:["value"],setUpper:["value"],setLower:["value"],$constructor:["builder"],"operator=":["other"],isInterestingException:["e"],mapCopyString:["string"],truncateScriptId:["id"],serializeTagValue:["builder","value"],deserializeTagValue:["value"],spanTagClone:["tag"],newChild:["operationName","startTime"],newPromisedWorkerInterface:["promise"],asHttpClient:["workerInterface"],newRevocableWebSocketWorkerInterface:["worker","revokeProm"],prepareMulti:["regulator","sqlCode"],"operator*":["state"],newVirtualFileSystem:["fsMap","root","observer"],newWorkerFileSystem:["fsMap","bundleDirectory","observer"],getLazyDirectoryImpl:["func"],setCurrentWorkingDirectory:["newCwd"],throwExceededMemoryLimit:["isActor"],compileCompatibilityFlags:["compatDate","compatFlags","output","errorReporter","allowExperimentalFeatures","dateValidation"],decompileCompatibilityFlagsForFl:["input"],normalizeCompatDate:["date"],isAlpha:["c"],isDigit:["c"],isHexDigit:["c"],isAscii:["c"],isAsciiWhitespace:["c"],isAlphaUpper:["c"],isAlphaLower:["c"],strcaseeq:["a","b"],toLower:["ptr"],toUpper:["ptr"],trimLeadingAndTrailingWhitespace:["ptr"],trimTailingWhitespace:["ptr"],stripInnerWhitespace:["input"],"operator==":["other"]},"workerd::rpc::Reader":{$constructor:["base"]},"workerd::rpc::Builder":{$constructor:["base"],setEmptyObject:["value"],setJson:["value"],initJson:["size"],adoptJson:["value"],setV8Serialized:["value"],initV8Serialized:["size"],adoptV8Serialized:["value"],setProperties:["value"],initProperties:["size"],adoptProperties:["value"],setName:["value"],initName:["size"],adoptName:["value"],setCapTableSize:["value"],setString:["value"],initString:["size"],adoptString:["value"],setBool:["value"],setInt64:["value"],setFloat64:["value"],setKey:["value"],initKey:["size"],adoptKey:["value"],setValue:["value"],adoptValue:["value"],setOperationName:["value"],initOperationName:["size"],adoptOperationName:["value"],setStartTimeNs:["value"],setEndTimeNs:["value"],setTags:["value"],initTags:["size"],adoptTags:["value"],setSpanId:["value"],setParentSpanId:["value"],setHigh:["value"],setLow:["value"],setTraceId:["value"],adoptTraceId:["value"],setInvocationId:["value"],adoptInvocationId:["value"],setEmpty:["value"],setLogs:["value"],initLogs:["size"],adoptLogs:["value"],setExceptions:["value"],initExceptions:["size"],adoptExceptions:["value"],setOutcome:["value"],setScriptName:["value"],initScriptName:["size"],adoptScriptName:["value"],setEventTimestampNs:["value"],setResponse:["value"],adoptResponse:["value"],setCpuTime:["value"],setWallTime:["value"],setDispatchNamespace:["value"],initDispatchNamespace:["size"],adoptDispatchNamespace:["value"],setScriptTags:["value"],initScriptTags:["size"],adoptScriptTags:["value"],setDiagnosticChannelEvents:["value"],initDiagnosticChannelEvents:["size"],adoptDiagnosticChannelEvents:["value"],setScriptVersion:["value"],adoptScriptVersion:["value"],setEntrypoint:["value"],initEntrypoint:["size"],adoptEntrypoint:["value"],setScriptId:["value"],initScriptId:["size"],adoptScriptId:["value"],setTruncated:["value"],setExecutionModel:["value"],setObsolete26:["value"],initObsolete26:["size"],adoptObsolete26:["value"],setDurableObjectId:["value"],initDurableObjectId:["size"],adoptDurableObjectId:["value"],setTimestampNs:["value"],setLogLevel:["value"],setMessage:["value"],initMessage:["size"],adoptMessage:["value"],setStack:["value"],initStack:["size"],adoptStack:["value"],setMethod:["value"],setUrl:["value"],initUrl:["size"],adoptUrl:["value"],setCfJson:["value"],initCfJson:["size"],adoptCfJson:["value"],setHeaders:["value"],initHeaders:["size"],adoptHeaders:["value"],initValue:["size"],setMethodName:["value"],initMethodName:["size"],adoptMethodName:["value"],setScheduledTime:["value"],setCron:["value"],initCron:["size"],adoptCron:["value"],setScheduledTimeMs:["value"],setQueueName:["value"],initQueueName:["size"],adoptQueueName:["value"],setBatchSize:["value"],setMailFrom:["value"],initMailFrom:["size"],adoptMailFrom:["value"],setRcptTo:["value"],initRcptTo:["size"],adoptRcptTo:["value"],setRawSize:["value"],setTraces:["value"],initTraces:["size"],adoptTraces:["value"],setError:["value"],setCode:["value"],setWasClean:["value"],setStatusCode:["value"],setChannel:["value"],initChannel:["size"],adoptChannel:["value"],setCount:["value"],setUndefined:["value"],setDroppedEvents:["value"],adoptDroppedEvents:["value"],setFetch:["value"],adoptFetch:["value"],setCustom:["value"],initCustom:["size"],adoptCustom:["value"],setJsRpc:["value"],adoptJsRpc:["value"],setEntryPoint:["value"],initEntryPoint:["size"],adoptEntryPoint:["value"],setInfo:["value"],adoptInfo:["value"],setAttributes:["value"],initAttributes:["size"],adoptAttributes:["value"],setScheduled:["value"],adoptScheduled:["value"],setAlarm:["value"],adoptAlarm:["value"],setQueue:["value"],adoptQueue:["value"],setEmail:["value"],adoptEmail:["value"],setTrace:["value"],adoptTrace:["value"],setHibernatableWebSocket:["value"],adoptHibernatableWebSocket:["value"],setSpanContext:["value"],adoptSpanContext:["value"],setSequence:["value"],setOnset:["value"],adoptOnset:["value"],adoptOutcome:["value"],setSpanOpen:["value"],adoptSpanOpen:["value"],setSpanClose:["value"],adoptSpanClose:["value"],setAttribute:["value"],initAttribute:["size"],adoptAttribute:["value"],setReturn:["value"],adoptReturn:["value"],setDiagnosticChannelEvent:["value"],adoptDiagnosticChannelEvent:["value"],setException:["value"],adoptException:["value"],setLog:["value"],adoptLog:["value"],setStreamDiagnostics:["value"],adoptStreamDiagnostics:["value"],setNone:["value"],setRetry:["value"],setRetryCountsAgainstLimit:["value"],setId:["value"],initId:["size"],adoptId:["value"],setData:["value"],initData:["size"],adoptData:["value"],setContentType:["value"],initContentType:["size"],adoptContentType:["value"],setAttempts:["value"],setDelaySeconds:["value"],setMsgId:["value"],initMsgId:["size"],adoptMsgId:["value"],setAckAll:["value"],setRetryBatch:["value"],adoptRetryBatch:["value"],setExplicitAcks:["value"],initExplicitAcks:["size"],adoptExplicitAcks:["value"],setRetryMessages:["value"],initRetryMessages:["size"],adoptRetryMessages:["value"],setWebsocketId:["value"],initWebsocketId:["size"],adoptWebsocketId:["value"],setEventTimeoutMs:["value"],setText:["value"],initText:["size"],adoptText:["value"],initError:["size"],adoptError:["value"],setReason:["value"],initReason:["size"],adoptReason:["value"],setResult:["value"],adoptResult:["value"],setExternals:["value"],initExternals:["size"],adoptExternals:["value"],setInvalid:["value"],setRpcTarget:["value"],adoptRpcTarget:["value"],setAbortTrigger:["value"],setSubrequestChannelToken:["value"],initSubrequestChannelToken:["size"],adoptSubrequestChannelToken:["value"],setActorClassChannelToken:["value"],initActorClassChannelToken:["size"],adoptActorClassChannelToken:["value"],setAbortSignal:["value"],adoptAbortSignal:["value"],setByteStream:["value"],adoptByteStream:["value"],setEncoding:["value"],setStream:["value"],adoptStream:["value"],setUnknown:["value"],setKnown:["value"],setExternalIndex:["value"],setLengthPlusOne:["value"],setSource:["value"],adoptSource:["value"],setSink:["value"],adoptSink:["value"],setSignal:["value"],adoptSignal:["value"],setTrigger:["value"],adoptTrigger:["value"],setMethodPath:["value"],initMethodPath:["size"],adoptMethodPath:["value"],setCallWithArgs:["value"],adoptCallWithArgs:["value"],setGetProperty:["value"],setStreamSink:["value"],adoptStreamSink:["value"],setExternalPusher:["value"],adoptExternalPusher:["value"],setCallPipeline:["value"],adoptCallPipeline:["value"],setHasDisposer:["value"],setParamsStreamSink:["value"],adoptParamsStreamSink:["value"],setEvents:["value"],initEvents:["size"],adoptEvents:["value"],setStop:["value"],setHttp:["value"],adoptHttp:["value"],setRetryCount:["value"],setMessages:["value"],initMessages:["size"],adoptMessages:["value"],setTopLevel:["value"],adoptTopLevel:["value"],setCfBlobJson:["value"],initCfBlobJson:["size"],adoptCfBlobJson:["value"],setDispatcher:["value"],adoptDispatcher:["value"],setService:["value"],initService:["size"],adoptService:["value"],setProps:["value"],adoptProps:["value"],setActorId:["value"],initActorId:["size"],adoptActorId:["value"],setActor:["value"],adoptActor:["value"],setOldKey:["value"],initOldKey:["size"],adoptOldKey:["value"],setNewKey:["value"],initNewKey:["size"],adoptNewKey:["value"],setEntries:["value"],initEntries:["size"],adoptEntries:["value"],setKeys:["value"],initKeys:["size"],adoptKeys:["value"],setNumDeleted:["value"],setStart:["value"],initStart:["size"],adoptStart:["value"],setEnd:["value"],initEnd:["size"],adoptEnd:["value"],setLimit:["value"],setReverse:["value"],setPrefix:["value"],initPrefix:["size"],adoptPrefix:["value"],setTimeToDeleteMs:["value"],setDeleted:["value"],setRenamed:["value"],initRenamed:["size"],adoptRenamed:["value"],setPriority:["value"],setAsOfTimeMs:["value"],setSettings:["value"],adoptSettings:["value"],setTransaction:["value"],adoptTransaction:["value"],setList:["value"],initList:["size"],adoptList:["value"],setStableId:["value"],initStableId:["size"],adoptStableId:["value"],setStage:["value"],adoptStage:["value"],setEnableInternet:["value"],setEnvironmentVariables:["value"],initEnvironmentVariables:["size"],adoptEnvironmentVariables:["value"],setHardTimeoutMs:["value"],setCompatibilityFlags:["value"],adoptCompatibilityFlags:["value"],setDown:["value"],adoptDown:["value"],setUp:["value"],adoptUp:["value"],setAddr:["value"],initAddr:["size"],adoptAddr:["value"],setPort:["value"],setRunning:["value"],setExitCode:["value"],setSigno:["value"],adoptPort:["value"],setFilter:["value"],adoptFilter:["value"],setHandler:["value"],adoptHandler:["value"],setHandle:["value"],adoptHandle:["value"],setDurationMs:["value"],setHostPort:["value"],initHostPort:["size"],adoptHostPort:["value"],setChannelToken:["value"],initChannelToken:["size"],adoptChannelToken:["value"]},"workerd::rpc::Pipeline":{$constructor:["typeless"]},"workerd::rpc":{setEmptyObject:["value"],setJson:["value"],initJson:["size"],adoptJson:["value"],setV8Serialized:["value"],initV8Serialized:["size"],adoptV8Serialized:["value"],setProperties:["value"],initProperties:["size"],adoptProperties:["value"],setName:["value"],initName:["size"],adoptName:["value"],setCapTableSize:["value"],setString:["value"],initString:["size"],adoptString:["value"],setBool:["value"],setInt64:["value"],setFloat64:["value"],setKey:["value"],initKey:["size"],adoptKey:["value"],setValue:["value"],adoptValue:["value"],setOperationName:["value"],initOperationName:["size"],adoptOperationName:["value"],setStartTimeNs:["value"],setEndTimeNs:["value"],setTags:["value"],initTags:["size"],adoptTags:["value"],setSpanId:["value"],setParentSpanId:["value"],setHigh:["value"],setLow:["value"],setTraceId:["value"],adoptTraceId:["value"],setInvocationId:["value"],adoptInvocationId:["value"],setEmpty:["value"],setLogs:["value"],initLogs:["size"],adoptLogs:["value"],setExceptions:["value"],initExceptions:["size"],adoptExceptions:["value"],setOutcome:["value"],setScriptName:["value"],initScriptName:["size"],adoptScriptName:["value"],setEventTimestampNs:["value"],setResponse:["value"],adoptResponse:["value"],setCpuTime:["value"],setWallTime:["value"],setDispatchNamespace:["value"],initDispatchNamespace:["size"],adoptDispatchNamespace:["value"],setScriptTags:["value"],initScriptTags:["size"],adoptScriptTags:["value"],setDiagnosticChannelEvents:["value"],initDiagnosticChannelEvents:["size"],adoptDiagnosticChannelEvents:["value"],setScriptVersion:["value"],adoptScriptVersion:["value"],setEntrypoint:["value"],initEntrypoint:["size"],adoptEntrypoint:["value"],setScriptId:["value"],initScriptId:["size"],adoptScriptId:["value"],setTruncated:["value"],setExecutionModel:["value"],setObsolete26:["value"],initObsolete26:["size"],adoptObsolete26:["value"],setDurableObjectId:["value"],initDurableObjectId:["size"],adoptDurableObjectId:["value"],setTimestampNs:["value"],setLogLevel:["value"],setMessage:["value"],initMessage:["size"],adoptMessage:["value"],setStack:["value"],initStack:["size"],adoptStack:["value"],setMethod:["value"],setUrl:["value"],initUrl:["size"],adoptUrl:["value"],setCfJson:["value"],initCfJson:["size"],adoptCfJson:["value"],setHeaders:["value"],initHeaders:["size"],adoptHeaders:["value"],initValue:["size"],setMethodName:["value"],initMethodName:["size"],adoptMethodName:["value"],setScheduledTime:["value"],setCron:["value"],initCron:["size"],adoptCron:["value"],setScheduledTimeMs:["value"],setQueueName:["value"],initQueueName:["size"],adoptQueueName:["value"],setBatchSize:["value"],setMailFrom:["value"],initMailFrom:["size"],adoptMailFrom:["value"],setRcptTo:["value"],initRcptTo:["size"],adoptRcptTo:["value"],setRawSize:["value"],setTraces:["value"],initTraces:["size"],adoptTraces:["value"],setError:["value"],setCode:["value"],setWasClean:["value"],setStatusCode:["value"],setChannel:["value"],initChannel:["size"],adoptChannel:["value"],setCount:["value"],setUndefined:["value"],setDroppedEvents:["value"],adoptDroppedEvents:["value"],setFetch:["value"],adoptFetch:["value"],setCustom:["value"],initCustom:["size"],adoptCustom:["value"],setJsRpc:["value"],adoptJsRpc:["value"],setEntryPoint:["value"],initEntryPoint:["size"],adoptEntryPoint:["value"],setInfo:["value"],adoptInfo:["value"],setAttributes:["value"],initAttributes:["size"],adoptAttributes:["value"],setScheduled:["value"],adoptScheduled:["value"],setAlarm:["value"],adoptAlarm:["value"],setQueue:["value"],adoptQueue:["value"],setEmail:["value"],adoptEmail:["value"],setTrace:["value"],adoptTrace:["value"],setHibernatableWebSocket:["value"],adoptHibernatableWebSocket:["value"],setSpanContext:["value"],adoptSpanContext:["value"],setSequence:["value"],setOnset:["value"],adoptOnset:["value"],adoptOutcome:["value"],setSpanOpen:["value"],adoptSpanOpen:["value"],setSpanClose:["value"],adoptSpanClose:["value"],setAttribute:["value"],initAttribute:["size"],adoptAttribute:["value"],setReturn:["value"],adoptReturn:["value"],setDiagnosticChannelEvent:["value"],adoptDiagnosticChannelEvent:["value"],setException:["value"],adoptException:["value"],setLog:["value"],adoptLog:["value"],setStreamDiagnostics:["value"],adoptStreamDiagnostics:["value"],setNone:["value"],setRetry:["value"],setRetryCountsAgainstLimit:["value"],setId:["value"],initId:["size"],adoptId:["value"],setData:["value"],initData:["size"],adoptData:["value"],setContentType:["value"],initContentType:["size"],adoptContentType:["value"],setAttempts:["value"],setDelaySeconds:["value"],setMsgId:["value"],initMsgId:["size"],adoptMsgId:["value"],setAckAll:["value"],setRetryBatch:["value"],adoptRetryBatch:["value"],setExplicitAcks:["value"],initExplicitAcks:["size"],adoptExplicitAcks:["value"],setRetryMessages:["value"],initRetryMessages:["size"],adoptRetryMessages:["value"],setWebsocketId:["value"],initWebsocketId:["size"],adoptWebsocketId:["value"],setEventTimeoutMs:["value"],setText:["value"],initText:["size"],adoptText:["value"],initError:["size"],adoptError:["value"],setReason:["value"],initReason:["size"],adoptReason:["value"],$constructor:["exception"],"operator=":["other"],setResult:["value"],adoptResult:["value"],setExternals:["value"],initExternals:["size"],adoptExternals:["value"],setInvalid:["value"],setRpcTarget:["cap"],adoptRpcTarget:["value"],setAbortTrigger:["value"],setSubrequestChannelToken:["value"],initSubrequestChannelToken:["size"],adoptSubrequestChannelToken:["value"],setActorClassChannelToken:["value"],initActorClassChannelToken:["size"],adoptActorClassChannelToken:["value"],setAbortSignal:["cap"],adoptAbortSignal:["value"],setByteStream:["cap"],adoptByteStream:["value"],setEncoding:["value"],setStream:["cap"],adoptStream:["value"],setUnknown:["value"],setKnown:["value"],setExternalIndex:["value"],setLengthPlusOne:["value"],setSource:["cap"],adoptSource:["value"],setSink:["cap"],adoptSink:["value"],setSignal:["cap"],adoptSignal:["value"],setTrigger:["cap"],adoptTrigger:["value"],setMethodPath:["value"],initMethodPath:["size"],adoptMethodPath:["value"],setCallWithArgs:["value"],adoptCallWithArgs:["value"],setGetProperty:["value"],setStreamSink:["cap"],adoptStreamSink:["value"],setExternalPusher:["cap"],adoptExternalPusher:["value"],setCallPipeline:["cap"],adoptCallPipeline:["value"],setHasDisposer:["value"],setParamsStreamSink:["cap"],adoptParamsStreamSink:["value"],setEvents:["value"],initEvents:["size"],adoptEvents:["value"],setStop:["value"],setHttp:["cap"],adoptHttp:["value"],setRetryCount:["value"],setMessages:["value"],initMessages:["size"],adoptMessages:["value"],setTopLevel:["cap"],adoptTopLevel:["value"],setCfBlobJson:["value"],initCfBlobJson:["size"],adoptCfBlobJson:["value"],setDispatcher:["cap"],adoptDispatcher:["value"],setService:["value"],initService:["size"],adoptService:["value"],setProps:["value"],adoptProps:["value"],setActorId:["value"],initActorId:["size"],adoptActorId:["value"],setActor:["cap"],adoptActor:["value"],setOldKey:["value"],initOldKey:["size"],adoptOldKey:["value"],setNewKey:["value"],initNewKey:["size"],adoptNewKey:["value"],setEntries:["value"],initEntries:["size"],adoptEntries:["value"],setKeys:["value"],initKeys:["size"],adoptKeys:["value"],setNumDeleted:["value"],setStart:["value"],initStart:["size"],adoptStart:["value"],setEnd:["value"],initEnd:["size"],adoptEnd:["value"],setLimit:["value"],setReverse:["value"],setPrefix:["value"],initPrefix:["size"],adoptPrefix:["value"],setTimeToDeleteMs:["value"],setDeleted:["value"],setRenamed:["value"],initRenamed:["size"],adoptRenamed:["value"],setPriority:["value"],setAsOfTimeMs:["value"],setSettings:["value"],adoptSettings:["value"],setTransaction:["cap"],adoptTransaction:["value"],setList:["value"],initList:["size"],adoptList:["value"],setStableId:["value"],initStableId:["size"],adoptStableId:["value"],setStage:["cap"],adoptStage:["value"],setEnableInternet:["value"],setEnvironmentVariables:["value"],initEnvironmentVariables:["size"],adoptEnvironmentVariables:["value"],setHardTimeoutMs:["value"],setCompatibilityFlags:["value"],adoptCompatibilityFlags:["value"],setDown:["cap"],adoptDown:["value"],setUp:["cap"],adoptUp:["value"],setAddr:["value"],initAddr:["size"],adoptAddr:["value"],setPort:["cap"],setRunning:["value"],setExitCode:["value"],setSigno:["value"],adoptPort:["value"],setFilter:["value"],adoptFilter:["value"],setHandler:["cap"],adoptHandler:["value"],setHandle:["cap"],adoptHandle:["value"],setDurationMs:["value"],setHostPort:["value"],initHostPort:["size"],adoptHostPort:["value"],setChannelToken:["value"],initChannelToken:["size"],adoptChannelToken:["value"]},"workerd::rpc::Client":{$constructor:["promise"],"operator=":["other"],hibernatableWebSocketEventRequest:["sizeHint"],startStreamRequest:["sizeHint"],pushByteStreamRequest:["sizeHint"],pushAbortSignalRequest:["sizeHint"],abortRequest:["sizeHint"],releaseRequest:["sizeHint"],callRequest:["sizeHint"],reportRequest:["sizeHint"],getHttpServiceRequest:["sizeHint"],sendTracesRequest:["sizeHint"],prewarmRequest:["sizeHint"],runScheduledRequest:["sizeHint"],runAlarmRequest:["sizeHint"],obsolete5Request:["sizeHint"],obsolete6Request:["sizeHint"],obsolete7Request:["sizeHint"],queueRequest:["sizeHint"],jsRpcSessionRequest:["sizeHint"],tailStreamSessionRequest:["sizeHint"],startEventRequest:["sizeHint"],getEntrypointRequest:["sizeHint"],getActorRequest:["sizeHint"],getStageRequest:["sizeHint"],getRequest:["sizeHint"],putRequest:["sizeHint"],deleteRequest:["sizeHint"],listRequest:["sizeHint"],getMultipleRequest:["sizeHint"],deleteAllRequest:["sizeHint"],getAlarmRequest:["sizeHint"],setAlarmRequest:["sizeHint"],deleteAlarmRequest:["sizeHint"],renameRequest:["sizeHint"],txnRequest:["sizeHint"],commitRequest:["sizeHint"],rollbackRequest:["sizeHint"],valuesRequest:["sizeHint"],endRequest:["sizeHint"],statusRequest:["sizeHint"],startRequest:["sizeHint"],monitorRequest:["sizeHint"],destroyRequest:["sizeHint"],signalRequest:["sizeHint"],getTcpPortRequest:["sizeHint"],listenTcpRequest:["sizeHint"],setInactivityTimeoutRequest:["sizeHint"],setEgressHttpRequest:["sizeHint"],connectRequest:["sizeHint"]},"workerd::rpc::Client::Client":{$constructor:["promise"]},"workerd::rpc::Server":{dispatchCall:["interfaceId","methodId","context"],hibernatableWebSocketEvent:["context"],dispatchCallInternal:["methodId","context"],startStream:["context"],pushByteStream:["context"],pushAbortSignal:["context"],abort:["context"],release:["context"],call:["context"],report:["context"],getHttpService:["context"],sendTraces:["context"],prewarm:["context"],runScheduled:["context"],runAlarm:["context"],obsolete5:["context"],obsolete6:["context"],obsolete7:["context"],queue:["context"],jsRpcSession:["context"],tailStreamSession:["context"],startEvent:["context"],getEntrypoint:["context"],getActor:["context"],getStage:["context"],get:["context"],put:["context"],delete:["context"],list:["context"],getMultiple:["context"],deleteAll:["context"],getAlarm:["context"],setAlarm:["context"],deleteAlarm:["context"],rename:["context"],txn:["context"],commit:["context"],rollback:["context"],values:["context"],end:["context"],status:["context"],start:["context"],monitor:["context"],destroy:["context"],signal:["context"],getTcpPort:["context"],listenTcp:["context"],setInactivityTimeout:["context"],setEgressHttp:["context"],connect:["context"]},"workerd::ExternalPusherImpl":{$constructor:["byteStreamFactory"],unwrapStream:["cap"],unwrapAbortSignal:["cap"],pushByteStream:["context"],pushAbortSignal:["context"]},"workerd::AtomicWeakRef::AtomicWeakRef":{wrap:["this_"],$constructor:["thisArg"]},"workerd::WeakRef::WeakRef":{$constructor:["thing"]},"workerd::WeakRef::WeakRef::runIfAlive":{runIfAlive:["f"]},"workerd::IoOwn::IoOwn":{$constructor:["deleteQueue","item"],"operator=":["other"]},"workerd::IoPtr::IoPtr":{$constructor:["deleteQueue","ptr"]},"workerd::SpecificOwnedObject::SpecificOwnedObject":{$constructor:["ptr"]},"workerd::OwnedObjectList":{link:["object"],unlink:["object"]},"workerd::DeleteQueue":{scheduleDeletion:["object"],scheduleAction:["js","action"],checkFarGet:["deleteQueue","type"],checkWeakGet:["weak"]},"workerd::DeleteQueue::addObject":{addObject:["obj","ownedObjects"]},"workerd::DeleteQueue::addObjectReverse":{addObjectReverse:["weakRef","obj","ownedObjects"]},"workerd::DeleteQueue::addObjectImpl":{addObjectImpl:["obj","ownedObjects"]},"workerd::IoCrossContextExecutor":{$constructor:["deleteQueue"],execute:["js","action"]},"workerd::addObjectImpl":{addObjectImpl:["obj","ownedObjects"]},"workerd::addObject":{addObject:["obj","ownedObjects"]},"workerd::addObjectReverse":{addObjectReverse:["obj","obj","ownedObjects"]},"workerd::DeleteQueuePtr":{$constructor:["queue"]},"workerd::ReverseIoOwn::ReverseIoOwn":{$constructor:["weakRef","item"],"operator=":["other"]},"workerd::jsg":{stripRemoteExceptionPrefix:["internalMessage"],isTunneledException:["internalMessage"],isDoNotLogException:["internalMessage"],tunneledErrorType:["internalMessage"],annotateBroken:["internalMessage","brokennessReason"],getCaptureThrowsAsRejections:["isolate"],getShouldSetToStringTag:["isolate"],getShouldSetImmutablePrototype:["isolate"],fullyQualifiedTypeName:["type"],typeName:["type"],makeInternalError:["isolate","internalMessage"],exceptionToJs:["isolate","exception","options"],throwInternalError:["isolate","exception","options"],addExceptionDetail:["js","exception","handle"],addJsExceptionMetadata:["js","exception","handle"],throwTypeError:["isolate","message","expectedType"],throwIllegalConstructor:["args"],extractTunneledExceptionDescription:["message"],createTunneledException:["isolate","exception"],throwTunneledException:["isolate","exception"],asBytes:["sharedArrayBuffer"],recursivelyFreeze:["context","value"],deepClone:["js","value"],v8Str:["isolate","str","newType"],v8StrFromLatin1:["isolate","ptr","newType"],v8StrIntern:["isolate","str"],returnRejectedPromise:["info","exception","tryCatch"],isFinite:["value"],newExternalOneByteString:["js","buf"],newExternalTwoByteString:["js","buf"],createMutableModuleExports:["js","moduleNamespace"],checkNodeSpecifier:["specifier"],isNodeJsCompatEnabled:["js"],isNodeJsProcessV2Enabled:["js"],isRequireReturnsDefaultExportEnabled:["js"],"operator*":["searchParams"],setAlignedPointerInEmbedderData:["context","slot","ptr"],trackFieldWithSize:["edgeName","size","nodeName"],trackInlineFieldWithSize:["edgeName","size","nodeName"],trackField:["edgeName","value","nodeName"],stringifyHandle:["value"],get:["js","name"],v8Data:["local"],addRef:["js"],tryGetHandle:["js"],getHandle:["js"],asValue:["js"],setModules:["value"],initModules:["size"],adoptModules:["value"],setName:["value"],initName:["size"],adoptName:["value"],setSrc:["value"],initSrc:["size"],adoptSrc:["value"],setType:["value"],setTsDeclaration:["value"],initTsDeclaration:["size"],adoptTsDeclaration:["value"],setWasm:["value"],initWasm:["size"],adoptWasm:["value"],setData:["value"],initData:["size"],adoptData:["value"],setJson:["value"],initJson:["size"],adoptJson:["value"],setCompileCache:["value"],initCompileCache:["size"],adoptCompileCache:["value"],instantiateModule:["js","module","options"],compileWasmModule:["js","code","observer"],tryResolveFromFallbackService:["js","specifier","referrer","observer","method","rawSpecifier"],getModulesForResolveCallback:["isolate"],structuredClone:["js","value","maybeTransfer"],throwIfConstructorCalledAsFunction:["args","type"],scheduleUnimplementedConstructorError:["args","type"],scheduleUnimplementedMethodError:["args","type","methodName"],scheduleUnimplementedPropertyError:["isolate","type","propertyName"],exposeGlobalScopeType:["isolate","context"],getSymbolDispose:["isolate"],requireOnStack:["self"],boolean:["val"],num:["val"],bigInt:["val"],str:["str"],strIntern:["str"],strExtern:["str"],external:["ptr"],error:["message"],typeError:["message"],rangeError:["message"],symbol:["str"],symbolShared:["str"],symbolInternal:["str"],date:["date"],set:["js","name","value"],has:["js","name","option"],delete:["js","name"],length:["js"],utf8Length:["js"],arrayBuffer:["data"],visitForGc:["visitor"],defaultPlatform:["backgroundThreadCount"],getJsStackTrace:["ucontext","scratch"],setJsCageBase:["cageBase"],"operator|":["a","b"],"operator&":["a","b"]},"workerd::jsg::TypeErrorContext":{methodArgument:["type","methodName","argumentIndex"],constructorArgument:["type","argumentIndex"],setterArgument:["type","propertyName"],structField:["type","fieldName"],arrayElement:["index"],callbackArgument:["argumentIndex"],dictKey:["keyName"],dictField:["fieldName"]},"workerd::jsg::check":{check:["maybe"]},"workerd::jsg::v8Str":{v8Str:["isolate","ptr","newType"]},"workerd::jsg::LiftKj_::LiftKj_::apply":{apply:["info","func"]},"workerd::jsg::LiftKj_::apply":{apply:["info","func"]},"workerd::jsg::liftKj":{liftKj:["isolate","func"]},"workerd::jsg::CallCounter":{"operator==":["rhs"]},"workerd::jsg::getAlignedPointerFromEmbedderData":{getAlignedPointerFromEmbedderData:["context","slot"]},"workerd::jsg::Wrappable":{isWorkerdApiObject:["object"],maybeDeferDestruction:["strong","ownSelf","self"],getHandle:["isolate"],tryGetHandle:["isolate"],visitRef:["visitor","refParent","refStrong"],attachWrapper:["isolate","object","needsGcTracing"],attachOpaqueWrapper:["context","needsGcTracing"],tryUnwrapOpaque:["isolate","handle"],jsgVisitForGc:["visitor"],jsgGetMemoryInfo:["tracker"],jsgGetMemoryInfoWrapperObject:["isolate"],detachWrapper:["shouldFreelistShim"],traceFromV8:["cppgcVisitor"]},"workerd::jsg::HeapTracer":{$constructor:["isolate"],getTracer:["isolate"],addWrapper:["wrappable"],removeWrapper:["wrappable"],addToFreelist:["shim"],allocateShim:["wrappable"],ResetRoot:["handle"],TryResetRoot:["handle"],jsgGetMemoryInfo:["tracker"]},"workerd::jsg::extractInternalPointer":{extractInternalPointer:["context","object"]},"workerd::jsg::V8Ref::V8Ref":{$constructor:["other","handle"],"operator=":["other"],getHandle:["js"],addRef:["js"],deepClone:["js"],"operator==":["other"]},"workerd::jsg::V8Ref::V8Ref::cast":{cast:["js"]},"workerd::jsg::Ref::Ref":{$constructor:["innerParam"],tryGetHandle:["js"],attachWrapper:["isolate","object"]},"workerd::jsg::Ref::Ref::Ref":{$constructor:["other"]},"workerd::jsg::Ref::Ref::operator=":{"operator=":["other"]},"workerd::jsg::Ref::Ref::alloc":{alloc:["params"]},"workerd::jsg::Ref::Ref::_jsgThis":{_jsgThis:["obj"]},"workerd::jsg::MemoryTracker":{trackFieldWithSize:["edgeName","size","nodeName"],trackInlineFieldWithSize:["edgeName","size","nodeName"],trackField:["edgeName","value","nodeName"],$constructor:["isolate","graph"],addNode:["node_name","size","edgeName","obj","checkIsRootNode","detachedness","edgeName"],pushNode:["node_name","size","edgeName"],addEdge:["node","edgeName"],decCurrentNodeSize:["size"]},"workerd::jsg::MemoryTracker::trackField":{trackField:["edgeName","value","nodeName","elementName","subtractFromSelf"]},"workerd::jsg::MemoryTracker::track":{track:["retainer","edgeName"]},"workerd::jsg::MemoryTracker::trackInlineField":{trackInlineField:["retainer","edgeName"]},"workerd::jsg::MemoryTracker::pushNode":{pushNode:["retainer","edgeName"]},"workerd::jsg::trackField":{trackField:["edgeName","value","nodeName","elementName","subtractFromSelf"]},"workerd::jsg::track":{track:["retainer","edgeName"]},"workerd::jsg::trackInlineField":{trackInlineField:["retainer","edgeName"]},"workerd::jsg::pushNode":{pushNode:["retainer","edgeName"]},"workerd::jsg::visitSubclassForMemoryInfo":{visitSubclassForMemoryInfo:["obj","tracker"]},"workerd::jsg::HeapSnapshotActivity":{$constructor:["callback"],ReportProgressValue:["done","total"]},"workerd::jsg::HeapSnapshotWriter":{$constructor:["callback","chunkSize"],WriteAsciiChunk:["data","size"]},"workerd::jsg::HeapSnapshotDeleter":{disposeImpl:["ptr"]},"workerd::jsg::prefixLengthToStrip":{prefixLengthToStrip:["s"]},"workerd::jsg::RequireEsm":{$constructor:["value"],"operator&&":["other"],"operator||":["other"]},"workerd::jsg::Data":{$constructor:["isolate","handle"],"operator=":["other"],getHandle:["js"],addRef:["js"],"operator==":["other"],moveFromTraced:["other","otherTracedRef"]},"workerd::jsg::HashableV8Ref::HashableV8Ref":{$constructor:["isolate","handle","identityHash"],"operator=":["other"],addRef:["js"]},"workerd::jsg::Optional::Optional::Optional<T>":{$constructor:["params"]},"workerd::jsg::Optional::Optional::Optional":{$constructor:["params"]},"workerd::jsg::LenientOptional::LenientOptional::LenientOptional<T>":{$constructor:["params"]},"workerd::jsg::LenientOptional::LenientOptional::LenientOptional":{$constructor:["params"]},"workerd::jsg::SelfRef":{asValue:["js"]},"workerd::jsg::jsgAddToStructNames":{jsgAddToStructNames:["names"]},"workerd::jsg::USVString::USVString":{$constructor:["params"]},"workerd::jsg::DOMString::DOMString":{$constructor:["params"]},"workerd::jsg::Dict::Dict::Field":{jsgGetMemoryInfo:["tracker"]},"workerd::jsg::Dict::Dict":{jsgGetMemoryInfo:["tracker"]},"workerd::jsg::Arguments::Arguments":{$constructor:["value"]},"workerd::jsg::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::jsg::Object":{jsgVisitForGc:["visitor"],jsgGetMemoryInfo:["tracker"],jsgGetMemoryInfoWrapperObject:["isolate"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::jsg::Object::jsgInitReflection":{jsgInitReflection:["wrapper"]},"workerd::jsg::Object::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::jsg::Object::visitSubclassForMemoryInfo":{visitSubclassForMemoryInfo:["obj","visitor"]},"workerd::jsg::Object::addRef":{addRef:["object"]},"workerd::jsg::Object::refcounted":{refcounted:["params"]},"workerd::jsg::Ref::Ref::Ref<T>":{$constructor:["other"]},"workerd::jsg::alloc":{alloc:["params"]},"workerd::jsg::_jsgThis":{_jsgThis:["obj"]},"workerd::jsg::MemoizedIdentity::MemoizedIdentity":{$constructor:["value"],"operator=":["value"],visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"]},"workerd::jsg::Identified::Identified":{jsgGetMemoryInfo:["tracker"]},"workerd::jsg::Name":{$constructor:["js","symbol"],clone:["js"],jsgGetMemoryInfo:["tracker"],getUnwrapped:["isolate"],visitForGc:["visitor"]},"workerd::jsg::Function::Function":{$constructor:["func","receiver","function"],"operator()":["jsl","args","args","args","args"],tryGetHandle:["isolate"],visitForGc:["visitor"],addRef:["js"],setReceiver:["receiver"],jsgGetMemoryInfo:["tracker"]},"workerd::jsg::Function::Function::Function":{$constructor:["func"]},"workerd::jsg::Function::Function::getOrCreateHandle":{getOrCreateHandle:["isolate","makeNativeWrapper"]},"workerd::jsg::Function::Function::JsImpl":{jsgGetMemoryInfo:["tracker"]},"workerd::jsg::Promise::Promise":{$constructor:["isolate","v8Promise"],markAsHandled:["js"],whenResolved:["js"],consumeHandle:["js"],tryConsumeResolved:["js"],visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"],getState:["js"],getInner:["js"]},"workerd::jsg::Promise::Promise::then":{then:["js","func","errorFunc"]},"workerd::jsg::Promise::Promise::catch_":{catch:["js","errorFunc"]},"workerd::jsg::Promise::Promise::Resolver":{$constructor:["isolate","v8Resolver"],resolve:["js","promise"],reject:["js","exception","options"],addRef:["js"],visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"]},"workerd::jsg::Promise::Promise::Resolver::resolve":{resolve:["js","value"]},"workerd::jsg::Promise::Promise::Promise":{$constructor:["js","value"]},"workerd::jsg::Promise::Promise::thenImpl":{thenImpl:["js","funcPair","thenCallback","errCallback"]},"workerd::jsg::PromiseResolverPair::PromiseResolverPair":{jsgGetMemoryInfo:["tracker"]},"workerd::jsg::ContextGlobal":{setModuleRegistryBackingOwner:["registry"],setSchemaLoader:["schemaLoader"]},"workerd::jsg::JsContext::JsContext":{$constructor:["handle","object"],getHandle:["js"]},"workerd::jsg::GcVisitor::visit":{visit:["t","u","remaining","remaining","remaining","remaining","remaining","remaining"]},"workerd::jsg::GcVisitor":{visit:["bufferSource"],$constructor:["parent","cppgcVisitor"]},"workerd::jsg::GcVisitor::visitAll":{visitAll:["collection"]},"workerd::jsg::TypeHandler::TypeHandler":{wrap:["js","value"],tryUnwrap:["js","handle"]},"workerd::jsg::PropertyReflection::PropertyReflection":{get:["isolate","name"]},"workerd::jsg::Sequence::Sequence":{$constructor:["items"]},"workerd::jsg::AsyncGenerator::AsyncGenerator::AsyncGenerator":{$constructor:["js","object"]},"workerd::jsg::AsyncGenerator::AsyncGenerator":{$constructor:["other"],"operator=":["other"],next:["js"],return:["js","maybeValue"],throw:["js","exception"]},"workerd::jsg::AsyncGenerator::AsyncGenerator::Active::Active":{$constructor:["js","object"]},"workerd::jsg::AsyncGenerator::AsyncGenerator::Active":{visitForGc:["visitor"]},"workerd::jsg::getConfig":{getConfig:["config"]},"workerd::jsg::JsRef::JsRef":{$constructor:["other","value"],"operator=":["other"],getHandle:["js"],addRef:["js"],"operator==":["other"],visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"]},"workerd::jsg::JsRef::JsRef::JsRef":{$constructor:["js","v8Value"]},"workerd::jsg::JsRef::JsRef::addV8Ref":{addV8Ref:["js"]},"workerd::jsg::ExternalMemoryTarget":{$constructor:["isolate"],getAdjustment:["amount"],maybeDeferAdjustment:["amount"],adjustNow:["js","amount"]},"workerd::jsg::ExternalMemoryAdjustment":{$constructor:["other","amount"],"operator=":["other"],adjust:["amount"],adjustNow:["js","amount"],set:["amount"],setNow:["js","amount"],maybeDeferAdjustment:["amount"]},"workerd::jsg::MemoryProtectionKeyScope::runWithKey":{runWithKey:["func"]},"workerd::jsg::Lock::alloc":{alloc:["params","params","params","params"]},"workerd::jsg::Lock::allocAccounted":{allocAccounted:["accountedSize","params"]},"workerd::jsg::Lock":{from:["v8Isolate"],getExternalMemoryAdjustment:["amount"],parseJson:["text"],recursivelyFreeze:["value"],exceptionToJs:["exception","options"],exceptionToJsValue:["exception","options"],exceptionToKj:["exception"],throwException:["exception","options"],rejectedJsPromise:["exception","options"],newSymbol:["symbol"],newSharedSymbol:["symbol"],newApiSymbol:["symbol"],logWarning:["message"],v8Error:["message"],v8TypeError:["message"],v8Set:["obj","name","value"],v8Get:["obj","idx"],v8Has:["obj","name"],v8HasOwn:["obj","name"],v8Data:["data"],serializeJson:["value"],wrapString:["text"],wrapBytes:["data"],wrapSimpleFunction:["context","simpleFunction"],wrapReturningFunction:["context","returningFunction"],wrapPromiseReturningFunction:["context","returningFunction"],wrapSimplePromise:["promise"],toBool:["value"],toDict:["value"],toPromise:["promise"],setAllowEval:["allow"],setCaptureThrowsAsRejections:["capture"],setLoggerCallback:["logger"],setErrorReporterCallback:["errorReporter"],domException:["name","message","stackValue"],boolean:["val"],obj:["keys","values"],objNoProto:["keys","values"],error:["message"],typeError:["message"],rangeError:["message"],date:["date"],bytes:["data"],arrayBuffer:["data"],allocBackingStore:["size","init_mode"],regexp:["pattern","flags","backtrackLimit"],arr:["values"],reportError:["value"],setWorkerEnv:["value"],setWorkerExports:["value"],resolveInternalModule:["specifier"],resolveModule:["specifier","requireEsm"],$constructor:["v8Isolate"],getInstance:["obj","type"],getPrototypeFor:["type"]},"workerd::jsg::Lock::serializeJson":{serializeJson:["value"]},"workerd::jsg::Lock::tryCatch":{tryCatch:["func","errorHandler","options"]},"workerd::jsg::Lock::tryOrReject":{tryOrReject:["func"]},"workerd::jsg::Lock::resolvedPromise":{resolvedPromise:["value"]},"workerd::jsg::Lock::rejectedPromise":{rejectedPromise:["exception","options"]},"workerd::jsg::Lock::evalNow":{evalNow:["func"]},"workerd::jsg::Lock::v8Ref":{v8Ref:["local"]},"workerd::jsg::Lock::withinHandleScope":{withinHandleScope:["fn"]},"workerd::jsg::Lock::opaque":{opaque:["inner"]},"workerd::jsg::Lock::arr":{arr:["values","fn"]},"workerd::jsg::Lock::set":{set:["args"]},"workerd::jsg::V8StackScope::runInV8StackImpl":{runInV8StackImpl:["pos","callback"]},"workerd::jsg::V8StackScope::runInV8Stack":{runInV8Stack:["callback"]},"workerd::jsg::runInV8Stack":{runInV8Stack:["callback"]},"workerd::jsg::cast":{cast:["js"]},"workerd::jsg::v8Ref":{v8Ref:["local"]},"workerd::jsg::_::JsgCatchScope":{$constructor:["js"],catchException:["options"]},"workerd::jsg::_::JsgCatchScope::Holder":{$constructor:["isolate"]},"workerd::jsg::OpaqueWrappable::OpaqueWrappable":{$constructor:["value"],jsgVisitForGc:["visitor"]},"workerd::jsg::OpaqueWrappableBase":{jsgGetMemoryInfo:["tracker"]},"workerd::jsg::OpaqueWrappable":{$constructor:["value"],jsgVisitForGc:["visitor"]},"workerd::jsg::wrapOpaque":{wrapOpaque:["context","t"]},"workerd::jsg::unwrapOpaque":{unwrapOpaque:["isolate","handle"]},"workerd::jsg::unwrapOpaqueRef":{unwrapOpaqueRef:["isolate","handle"]},"workerd::jsg::dropOpaque":{dropOpaque:["isolate","handle"]},"workerd::jsg::promiseContinuation":{promiseContinuation:["args"]},"workerd::jsg::identityPromiseContinuation":{identityPromiseContinuation:["args"]},"workerd::jsg::Promise::Promise::Promise<T>":{$constructor:["js","value"]},"workerd::jsg::resolvedPromise":{resolvedPromise:["value"]},"workerd::jsg::rejectedPromise":{rejectedPromise:["exception","options"]},"workerd::jsg::evalNow":{evalNow:["func"]},"workerd::jsg::thenWrap":{thenWrap:["args"]},"workerd::jsg::thenUnwrap":{thenUnwrap:["args"]},"workerd::jsg::PromiseWrapper::PromiseWrapper::PromiseWrapper<TypeWrapper>":{$constructor:["config"]},"workerd::jsg::PromiseWrapper::PromiseWrapper::wrap":{wrap:["js","context","creator","promise"]},"workerd::jsg::PromiseWrapper::PromiseWrapper::tryUnwrap":{tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::PromiseWrapper::PromiseWrapper":{isThenable:["context","handle"]},"workerd::jsg::UnhandledRejectionHandler":{$constructor:["handler"],report:["js","event","promise","value"],setUseMicrotasksCompletedCallback:["value"],jsgGetMemoryInfo:["tracker"],rejectedWithNoHandler:["js","promise","value"],handledAfterRejection:["js","promise"],ensureProcessingWarnings:["js"],processWarnings:["js"],onMicrotasksCompleted:["isolate","data"]},"workerd::jsg::UnhandledRejectionHandler::UnhandledRejection":{$constructor:["other","promise","value","message"],"operator=":["other"],jsgGetMemoryInfo:["tracker"],visitForMemoryInfo:["tracker"]},"workerd::jsg::UnhandledRejectionHandler::HashedPromise":{$constructor:["promise"],jsgGetMemoryInfo:["tracker"]},"workerd::jsg::UnhandledRejectionHandler::UnhandledRejectionCallbacks":{keyForRow:["row"],matches:["a","b"],hashCode:["key"]},"workerd::jsg::WrappableFunction::WrappableFunction":{$constructor:["needsGcTracing"],"operator()":["js","args","args","args"]},"workerd::jsg::WrappableFunctionBase":{jsgGetMemoryInfo:["tracker"],visitForMemoryInfo:["tracker"]},"workerd::jsg::WrappableFunction":{$constructor:["needsGcTracing"],"operator()":["js","args"]},"workerd::jsg::WrappableFunctionImpl::WrappableFunctionImpl":{$constructor:["func"],"operator()":["js","args"],jsgVisitForGc:["visitor"]},"workerd::jsg::WrappableFunctionImpl":{$constructor:["func"],"operator()":["js","args"],jsgVisitForGc:["visitor"]},"workerd::jsg::FunctorCallback":{callback:["args"]},"workerd::jsg::Function":{$constructor:["func","receiver","function"],"operator()":["jsl","args"],tryGetHandle:["isolate"],visitForGc:["visitor"],addRef:["js"],setReceiver:["receiver"],jsgGetMemoryInfo:["tracker"]},"workerd::jsg::Function::Function<type-parameter-0-0 (type-parameter-0-1...)>":{$constructor:["func"]},"workerd::jsg::Function::getOrCreateHandle":{getOrCreateHandle:["isolate","makeNativeWrapper"]},"workerd::jsg::Function::JsImpl":{jsgGetMemoryInfo:["tracker"]},"workerd::jsg::FunctionWrapper::FunctionWrapper::wrap":{wrap:["js","context","creator","func"]},"workerd::jsg::FunctionWrapper::FunctionWrapper::tryUnwrap":{tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::VisitableLambda::VisitableLambda":{$constructor:["func"],visitForGc:["visitor"]},"workerd::jsg::VisitableLambda::VisitableLambda::operator()":{"operator()":["params"]},"workerd::jsg::Reader":{$constructor:["base"]},"workerd::jsg::Builder":{$constructor:["base"],setModules:["value"],initModules:["size"],adoptModules:["value"],setName:["value"],initName:["size"],adoptName:["value"],setSrc:["value"],initSrc:["size"],adoptSrc:["value"],setType:["value"],setTsDeclaration:["value"],initTsDeclaration:["size"],adoptTsDeclaration:["value"],setWasm:["value"],initWasm:["size"],adoptWasm:["value"],setData:["value"],initData:["size"],adoptData:["value"],setJson:["value"],initJson:["size"],adoptJson:["value"],setCompileCache:["value"],initCompileCache:["size"],adoptCompileCache:["value"]},"workerd::jsg::Pipeline":{$constructor:["typeless"]},"workerd::jsg::ResolveObserver::ResolveStatus":{exception:["exception"]},"workerd::jsg::ResolveObserver":{onResolveModule:["specifier","context","source"]},"workerd::jsg::CompilationObserver":{onEsmCompilationStart:["isolate","name","option"],onScriptCompilationStart:["isolate","name"],onWasmCompilationStart:["isolate","codeSize"],onWasmCompilationFromCacheStart:["isolate"],onJsonCompilationStart:["isolate","inputSize"],onCompileCacheFound:["isolate"],onCompileCacheRejected:["isolate"],onCompileCacheGenerated:["isolate"],onCompileCacheGenerationFailed:["isolate"]},"workerd::jsg::InternalExceptionObserver":{reportInternalException:["detail"]},"workerd::jsg::IsCodeLike":{$constructor:["value"],"operator&&":["other"],"operator||":["other"]},"workerd::jsg::IsolateObserver":{onDynamicEval:["context","source","isCodeLike"]},"workerd::ThreadProgressCounter":{$constructor:["counter"]},"workerd::jsg::ModuleRegistry":{jsgGetMemoryInfo:["tracker"],from:["js"],resolve:["js","module","referrer","option","method","rawSpecifier"],resolveDynamicImport:["js","specifier","referrer","rawSpecifier"],resolveInternalImport:["js","specifier"],setDynamicImportCallback:["func"],requireImpl:["js","info","options"]},"workerd::jsg::ModuleRegistry::CapnpModuleInfo":{$constructor:["fileScope","topLevelDecls"]},"workerd::jsg::ModuleRegistry::CommonJsModuleInfo::CommonJsModuleProvider":{getContext:["js"],getExports:["js"]},"workerd::jsg::ModuleRegistry::CommonJsModuleInfo::CommonJsModuleInfo":{$constructor:["lock","name","content","provider"]},"workerd::jsg::ModuleRegistry::CommonJsModuleInfo":{getExports:["js"]},"workerd::jsg::ModuleRegistry::CommonJsModuleInfo::initEvalFunc":{initEvalFunc:["lock","provider","name","content"]},"workerd::jsg::ModuleRegistry::ValueModuleInfo::ValueModuleInfo":{$constructor:["js","value"]},"workerd::jsg::ModuleRegistry::ModuleInfo":{$constructor:["js","name","maybeExports","synthetic","flags","observer"],setModuleSourceObject:["js","sourceObject"],getModuleSourceObject:["js"]},"workerd::jsg::dynamicImportCallback":{dynamicImportCallback:["context","host_defined_options","resource_name","specifier","import_attributes"]},"workerd::jsg::ModuleRegistryImpl::ModuleRegistryImpl":{$constructor:["observer"],install:["isolate","context","observer"],from:["js"],setDynamicImportCallback:["func"],add:["specifier","info"],addBuiltinModule:["specifier","factory","type","compileCache"],addBuiltinBundle:["bundle","maybeFilter"],resolve:["js","module","referrer","option","method","rawSpecifier"],resolveDynamicImport:["js","specifier","referrer","rawSpecifier"],resolveInternalImport:["js","specifier"]},"workerd::jsg::ModuleRegistryImpl::ModuleRegistryImpl::addBuiltinBundleFiltered":{addBuiltinBundleFiltered:["bundle","filter"]},"workerd::jsg::ModuleRegistryImpl::ModuleRegistryImpl::addBuiltinModule":{addBuiltinModule:["specifier","object","type"]},"workerd::jsg::ModuleRegistryImpl::ModuleRegistryImpl::Entry::Key":{$constructor:["specifier","type"]},"workerd::jsg::ModuleRegistryImpl::ModuleRegistryImpl::Entry":{$constructor:["specifier","type","factory","compileCache"],module:["js","observer","referrer","method"]},"workerd::jsg::ModuleRegistryImpl::ModuleRegistryImpl::SpecifierHashCallbacks":{keyForRow:["row"],matches:["row","key"],hashCode:["key"]},"workerd::jsg::Serializer::ExternalHandler":{serializeFunction:["js","serializer","func"],serializeProxy:["js","serializer","proxy"]},"workerd::jsg::Serializer":{$constructor:["js","options"],write:["js","value"],transfer:["js","value"],writeRawUint32:["i"],writeRawUint64:["i"],writeRawBytes:["bytes"],writeLengthDelimited:["text"],throwDataCloneErrorForObject:["js","obj"],ThrowDataCloneError:["message"],HasCustomHostObject:["isolate"],IsHostObject:["isolate","object"],WriteHostObject:["isolate","object"],GetSharedArrayBufferId:["isolate","sab"]},"workerd::jsg::Deserializer":{$constructor:["js","released","maybeOptions","sharedArrayBuffers","maybeOptions"],readValue:["js"],readRawBytes:["size"],readRawString:["size"],init:["js","transferredArrayBuffers","maybeOptions"],GetSharedArrayBufferFromId:["isolate","clone_id"],ReadHostObject:["isolate"]},"workerd::jsg::SerializedBufferDisposer":{disposeImpl:["firstElement","elementSize","elementCount","capacity","destroyElement"]},"workerd::jsg::ConstructorCallback":{callback:["args"]},"workerd::jsg::MethodCallback":{callback:["args"]},"workerd::jsg::MethodCallback::fastCallback":{fastCallback:["receiver","fastArgs","options"]},"workerd::jsg::StaticMethodCallback":{callback:["args"]},"workerd::jsg::StaticMethodCallback::fastCallback":{fastCallback:["receiver","fastArgs","options"]},"workerd::jsg::StaticPropertyCallback":{callback:["args"]},"workerd::jsg::GetterCallback":{callback:["info"]},"workerd::jsg::GetterCallback::fastCallback":{fastCallback:["receiver","options"]},"workerd::jsg::PropertyGetterCallback":{callback:["info"]},"workerd::jsg::PropertyGetterCallback::fastCallback":{fastCallback:["receiver","options"]},"workerd::jsg::SetterCallback":{callback:["value","info"]},"workerd::jsg::PropertySetterCallback":{callback:["info"]},"workerd::jsg::PropertySetterCallback::fastCallback":{fastCallback:["receiver","fastArgs","options"]},"workerd::jsg::SerializeInvoker":{call:["wrapper","target","js","serializer"]},"workerd::jsg::DeserializeInvoker":{call:["wrapper","js","tag","deserializer"]},"workerd::jsg::DynamicResourceTypeMap::DynamicResourceTypeMap":{getDynamicTypeInfo:["isolate","type"]},"workerd::jsg::WildcardPropertyCallbacks":{getter:["name","info"]},"workerd::jsg::ResourceTypeBuilder::ResourceTypeBuilder":{$constructor:["typeWrapper","isolate","constructor","instance","prototype","signature"],registerJsBundle:["bundle"]},"workerd::jsg::ResourceTypeBuilder::ResourceTypeBuilder::registerInheritIntrinsic":{registerInheritIntrinsic:["intrinsic"]},"workerd::jsg::ResourceTypeBuilder::ResourceTypeBuilder::registerReadonlyInstanceProperty":{registerReadonlyInstanceProperty:["name","value"]},"workerd::jsg::ResourceTypeBuilder::ResourceTypeBuilder::registerStaticConstant":{registerStaticConstant:["value"]},"workerd::jsg::JsSetup::JsSetup":{$constructor:["js","context"],registerJsBundle:["bundle"]},"workerd::jsg::JsSetup::JsSetup::registerInheritIntrinsic":{registerInheritIntrinsic:["intrinsic"]},"workerd::jsg::JsSetup::JsSetup::registerReadonlyInstanceProperty":{registerReadonlyInstanceProperty:["name","value"]},"workerd::jsg::JsSetup::JsSetup::registerStaticConstant":{registerStaticConstant:["value"]},"workerd::jsg::ModuleRegistryBase":{attachToIsolate:["js","observer"]},"workerd::jsg::ResourceWrapper::ResourceWrapper::ResourceWrapper<type-parameter-0-0, type-parameter-0-1>":{$constructor:["configuration"]},"workerd::jsg::ResourceWrapper::ResourceWrapper":{wrap:["js","context","creator","value"],tryUnwrap:["js","context","handle","parentObject"],setupJavascript:["js"]},"workerd::jsg::ResourceWrapper::ResourceWrapper::newContext":{newContext:["js","options","compilationObserver","args"]},"workerd::jsg::ResourceWrapper::ResourceWrapper::getTemplate":{getTemplate:["isolate"]},"workerd::jsg::ObjectWrapper::ObjectWrapper":{wrap:["js","context","creator","value"],tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::JsValue":{"operator==":["other"],strictEquals:["other"],isTruthy:["js"],typeOf:["js"],toJsString:["js"],toJson:["js"],fromJson:["js","input"],addRef:["js"],structuredClone:["js","maybeTransfers"],$constructor:["inner"]},"workerd::jsg::JsValue::tryGetExternal":{tryGetExternal:["js","value"]},"workerd::jsg::JsValue::JsBase::JsBase":{"operator==":["other"],$constructor:["inner"],addRef:["js"]},"workerd::jsg::JsBase::JsBase":{"operator==":["other"],$constructor:["inner"],addRef:["js"]},"workerd::jsg::JsBoolean":{value:["js"]},"workerd::jsg::JsArray":{get:["js","i"],add:["js","value"]},"workerd::jsg::JsString":{length:["js"],utf8Length:["js"],toUSVString:["js"],toDOMString:["js"],"operator==":["other"],internalize:["js"],concat:["js","one","two"],writeInto:["js","buffer","options"]},"workerd::jsg::JsString::toArray":{toArray:["js","options"]},"workerd::jsg::JsRegExp":{"operator()":["js","input"],match:["js","input"]},"workerd::jsg::JsDate":{toUTCString:["js"],toISOString:["js"]},"workerd::jsg::JsSymbol":{description:["js"]},"workerd::jsg::JsSet":{add:["js","value"],has:["js","value"],delete:["js","value"],addAll:["js","values"]},"workerd::jsg::JsSet::addAll":{addAll:["js","args"]},"workerd::jsg::JsBigInt":{toInt64:["js"],toUint64:["js"]},"workerd::jsg::JsInt32":{value:["js"]},"workerd::jsg::JsUint32":{value:["js"]},"workerd::jsg::JsNumber":{value:["js"],isSafeInteger:["js"],toSafeInteger:["js"]},"workerd::jsg::JsObject::isInstanceOf":{isInstanceOf:["js"]},"workerd::jsg::JsObject::tryUnwrapAs":{tryUnwrapAs:["js"]},"workerd::jsg::JsObject":{set:["js","name","value"],setReadOnly:["js","name","value"],setNonEnumerable:["js","name","value"],defineProperty:["js","name","value"],get:["js","name"],has:["js","name","option"],delete:["js","name"],setPrivate:["js","name","value"],getPrivate:["js","name"],hasPrivate:["js","name"],getPropertyNames:["js","keyFilter","propertyFilter","indexFilter"],previewEntries:["isKeyValue"],getPrototype:["js"]},"workerd::jsg::JsMap":{set:["js","name","value"],get:["js","name"],has:["js","name"],delete:["js","name"]},"workerd::jsg::tryGetExternal":{tryGetExternal:["js","value"]},"workerd::jsg::toArray":{toArray:["js","options"]},"workerd::jsg::arr":{arr:["values","fn"]},"workerd::jsg::set":{set:["args"]},"workerd::jsg::opaque":{opaque:["inner"]},"workerd::jsg::JsFunction::call":{call:["js","recv","args"]},"workerd::jsg::JsFunction::callNoReceiver":{callNoReceiver:["js","args"]},"workerd::jsg::JsFunction":{call:["js","recv","args"],callNoReceiver:["js","args"],length:["js"],name:["js"]},"workerd::jsg::JsRef::JsRef::JsRef<T>":{$constructor:["js","v8Value"]},"workerd::jsg::JsValueWrapper":{wrap:["js","context","creator","value"]},"workerd::jsg::JsValueWrapper::tryUnwrap":{tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::JsMessage":{create:["js","exception"],$constructor:["inner"],addJsStackTrace:["js","lines"]},"workerd::jsg::BackingStore::from":{from:["js","data"]},"workerd::jsg::BackingStore::alloc":{alloc:["js","size"]},"workerd::jsg::BackingStore::wrap":{wrap:["data","size","disposer","ctx"]},"workerd::jsg::BackingStore":{$constructor:["other","byteLength","byteOffset","elementSize","ctor","integerType"],"operator=":["other"],"operator==":["other"],createHandle:["js"],consume:["bytes"],trim:["bytes"],limit:["bytes"],jsgGetMemoryInfo:["tracker"]},"workerd::jsg::BackingStore::getTypedViewSlice":{getTypedViewSlice:["start","end"]},"workerd::jsg::BackingStore::copy":{copy:["js"]},"workerd::jsg::BackingStore::construct":{construct:["js","store"]},"workerd::jsg::BufferSource":{tryAlloc:["js","size"],tryAllocUnsafe:["js","size"],wrap:["js","data","size","disposer","ctx"],$constructor:["js","handle"],canDetach:["js"],detach:["js","maybeKey"],getHandle:["js"],underlyingArrayBufferSize:["js"],setDetachKey:["js","key"],trim:["js","bytes"],clone:["js"],jsgGetMemoryInfo:["tracker"]},"workerd::jsg::BufferSource::copy":{copy:["js"]},"workerd::jsg::BufferSource::getTypedViewSlice":{getTypedViewSlice:["js","start","end"]},"workerd::jsg::BufferSource::getTypedView":{getTypedView:["js"]},"workerd::jsg::BufferSource::determineConstructor":{determineConstructor:["value"]},"workerd::jsg::BufferSourceWrapper":{wrap:["js","context","creator","bufferSource"],tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::DOMException":{$constructor:["args","message","name"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],serialize:["js","serializer"],deserialize:["js","tag","deserializer"]},"workerd::jsg::DOMException::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::jsg::DOMException::registerMembers":{registerMembers:["registry"]},"workerd::jsg::DOMException::jsgInitReflection":{jsgInitReflection:["wrapper"]},"workerd::jsg::PrimitiveWrapper":{wrap:["isolate","creator","value","value"],tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::PrimitiveWrapper::wrap":{wrap:["isolate","creator","value","value"]},"workerd::jsg::NameWrapper":{wrap:["js","context","creator","value"],tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::StringWrapper":{wrap:["js","context","creator","value"]},"workerd::jsg::StringWrapper::wrap":{wrap:["js","context","creator","value"]},"workerd::jsg::StringWrapper::tryUnwrap":{tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::OptionalWrapper::OptionalWrapper::wrap":{wrap:["js","context","creator","ptr"]},"workerd::jsg::OptionalWrapper::OptionalWrapper::tryUnwrap":{tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::LenientOptionalWrapper::LenientOptionalWrapper::wrap":{wrap:["js","context","creator","ptr"]},"workerd::jsg::LenientOptionalWrapper::LenientOptionalWrapper::tryUnwrap":{tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::MaybeWrapper::MaybeWrapper::MaybeWrapper<TypeWrapper>":{$constructor:["config"]},"workerd::jsg::MaybeWrapper::MaybeWrapper::wrap":{wrap:["js","context","creator","ptr"]},"workerd::jsg::MaybeWrapper::MaybeWrapper::tryUnwrap":{tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::OneOfWrapper::OneOfWrapper::wrapHelper":{wrapHelper:["js","context","creator","in","out"]},"workerd::jsg::OneOfWrapper::OneOfWrapper::wrap":{wrap:["js","context","creator","value"]},"workerd::jsg::OneOfWrapper::OneOfWrapper::unwrapHelperRecursive":{unwrapHelperRecursive:["js","context","in","out"]},"workerd::jsg::OneOfWrapper::OneOfWrapper::unwrapHelper":{unwrapHelper:["js","context","in","out"]},"workerd::jsg::OneOfWrapper::OneOfWrapper::tryUnwrap":{tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::ArrayWrapper::ArrayWrapper::wrap":{wrap:["js","context","creator","array"]},"workerd::jsg::ArrayWrapper::ArrayWrapper::tryUnwrap":{tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::SetWrapper::SetWrapper::wrap":{wrap:["js","context","creator","set"]},"workerd::jsg::SetWrapper::SetWrapper::tryUnwrap":{tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::ArrayBufferWrapper":{wrap:["isolate","creator","value","value"],tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::DictWrapper::DictWrapper::wrap":{wrap:["js","context","creator","dict"]},"workerd::jsg::DictWrapper::DictWrapper::tryUnwrap":{tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::DateWrapper":{wrap:["js","context","creator","date"],tryUnwrap:["js","context","handle","parentObject"],toKjDate:["millis"]},"workerd::jsg::NonCoercibleWrapper::NonCoercibleWrapper::wrap":{wrap:["js","context","creator"]},"workerd::jsg::NonCoercibleWrapper::NonCoercibleWrapper::tryUnwrap":{tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::MemoizedIdentityWrapper::MemoizedIdentityWrapper::wrap":{wrap:["js","context","creator","value"]},"workerd::jsg::MemoizedIdentityWrapper::MemoizedIdentityWrapper::tryUnwrap":{tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::IdentifiedWrapper::IdentifiedWrapper::wrap":{wrap:["js","context","creator","value"]},"workerd::jsg::IdentifiedWrapper::IdentifiedWrapper::tryUnwrap":{tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::SelfRefWrapper":{wrap:["js","context","creator","value"],tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::ExceptionWrapper::ExceptionWrapper":{wrap:["js","context","creator","exception"],tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::FieldWrapper::FieldWrapper":{$constructor:["isolate"],wrap:["js","wrapper","isolate","context","creator","in","out","idx"],unwrap:["wrapper","isolate","context","in"]},"workerd::jsg::StructWrapper":{wrap:["js","context","creator","in"],tryUnwrap:["js","context","handle","parentObject"],getFields:["isolate"]},"workerd::jsg::tryGetGeneratorFunction":{tryGetGeneratorFunction:["js","object","name"]},"workerd::jsg::Generator::Generator::Generator<T>":{$constructor:["js","object"]},"workerd::jsg::Generator::Generator":{next:["js"],return:["js","maybeValue"],throw:["js","exception"],visitForGc:["visitor"]},"workerd::jsg::Generator::Generator::Active::Active":{$constructor:["js","object"]},"workerd::jsg::Generator::Generator::Active":{visitForGc:["visitor"]},"workerd::jsg::AsyncGenerator::AsyncGenerator::AsyncGenerator<T>":{$constructor:["js","object"]},"workerd::jsg::AsyncGeneratorIgnoringStrings::AsyncGeneratorIgnoringStrings::AsyncGeneratorIgnoringStrings<T>":{$constructor:["js","object","ptr"]},"workerd::jsg::AsyncGeneratorIgnoringStrings::AsyncGeneratorIgnoringStrings::AsyncGeneratorIgnoringStrings":{$constructor:["js","object","ptr"]},"workerd::jsg::GeneratorWrapper::GeneratorWrapper::GeneratorWrapper<TypeWrapper>":{$constructor:["config"]},"workerd::jsg::GeneratorWrapper::GeneratorWrapper::wrap":{wrap:["js","context","next"]},"workerd::jsg::GeneratorWrapper::GeneratorWrapper::tryUnwrap":{tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::SequenceWrapper::SequenceWrapper::wrap":{wrap:["js","context","creator","sequence"]},"workerd::jsg::SequenceWrapper::SequenceWrapper::tryUnwrap":{tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::IteratorBase::IteratorBase":{$constructor:["state"],self:["info"],visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"],nextImpl:["js","nextFunc"]},"workerd::jsg::IteratorBase::IteratorBase::Next::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::jsg::IteratorBase::IteratorBase::Next::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::jsg::IteratorBase::IteratorBase::Next::registerMembers":{registerMembers:["registry","arg"]},"workerd::jsg::AsyncIteratorImpl":{pushCurrent:["promise"],visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"]},"workerd::jsg::AsyncIteratorImpl::Next::Next::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::jsg::AsyncIteratorImpl::Next::Next::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::jsg::AsyncIteratorImpl::Next::Next::registerMembers":{registerMembers:["registry","arg"]},"workerd::jsg::AsyncIteratorBase::AsyncIteratorBase":{$constructor:["state"],self:["info"],visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"],pushCurrent:["js","promise"],nextImpl:["js","nextFunc"],returnImpl:["js","value","returnFunc"]},"workerd::jsg::AsyncIteratorBase::AsyncIteratorBase::InnerState":{jsgGetMemoryInfo:["tracker"]},"workerd::jsg::V8HandleWrapper::wrap":{wrap:["js","context","creator","value"]},"workerd::jsg::V8HandleWrapper":{tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::V8HandleWrapper::tryUnwrap":{tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::UnimplementedWrapper":{wrap:["js","context","creator","value"],tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::TypeWrapperBase::TypeWrapperBase<type-parameter-0-0, type-parameter-0-1, workerd::jsg::JsgKind::RESOURCE>":{$constructor:["config"]},"workerd::jsg::TypeWrapperBase::TypeWrapperBase<type-parameter-0-0, type-parameter-0-1, workerd::jsg::JsgKind::STRUCT>":{$constructor:["config"]},"workerd::jsg::TypeWrapperBase::TypeWrapperBase<type-parameter-0-0, TypeWrapperExtension<template-parameter-0-1>, workerd::jsg::JsgKind::EXTENSION>":{$constructor:["config"]},"workerd::jsg::TypeWrapperBase::TypeWrapperBase<type-parameter-0-0, InjectConfiguration<type-parameter-0-1>, workerd::jsg::JsgKind::EXTENSION>":{$constructor:["config"]},"workerd::jsg::TypeWrapperBase":{unwrap:["js","context"]},"workerd::jsg::TypeWrapper::TypeWrapper::TypeWrapper<type-parameter-0-0, type-parameter-0-1...>":{$constructor:["isolate","configuration"]},"workerd::jsg::TypeWrapper::TypeWrapper":{from:["isolate"]},"workerd::jsg::TypeWrapper::TypeWrapper::unwrap":{unwrap:["js","context","args","parameterIndex","errorContext"]},"workerd::jsg::TypeWrapper::TypeWrapper::tryUnwrap":{tryUnwrap:["js","context","handle","parentObject"]},"workerd::jsg::TypeWrapper::TypeWrapper::unwrapFastApi":{unwrapFastApi:["js","context","arg","errorContext"]},"workerd::jsg::TypeWrapper::TypeWrapper::initReflection":{initReflection:["holder","reflections"]},"workerd::jsg::TypeHandlerImpl::TypeHandlerImpl":{wrap:["js","value"],tryUnwrap:["js","handle"]},"workerd::RefcountedCanceler::Listener":{$constructor:["canceler","fn"]},"workerd::RefcountedCanceler":{$constructor:["reason"],cancel:["exception"],addListener:["listener"],removeListener:["listener"]},"workerd::RefcountedCanceler::wrap":{wrap:["promise"]},"workerd::api::Event::Init::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::Event::Init::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::Event::Init::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::Event":{$constructor:["js","type","init"],beginDispatch:["target"],setCancelBubble:["stopped"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::Event::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Event::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::ExtendableEvent":{$constructor:["type"],waitUntil:["promise"],getActorState:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::ExtendableEvent::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::ExtendableEvent::registerMembers":{registerMembers:["registry"]},"workerd::api::CustomEvent::CustomEventInit::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::CustomEvent::CustomEventInit::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::CustomEvent::CustomEventInit::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::CustomEvent":{$constructor:["js","type","init"],getDetail:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::CustomEvent::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::CustomEvent::registerMembers":{registerMembers:["registry"]},"workerd::api::EventTarget":{getHandlerCount:["type"],dispatchEventImpl:["js","event"],addEventListener:["js","type","maybeHandler","maybeOptions","eventTargetHandler"],removeEventListener:["js","type","maybeHandler","options"],dispatchEvent:["js","event"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],$constructor:["js"],newNativeHandler:["js","type","func","once"],visitForMemoryInfo:["tracker"],setEventListenerCallback:["callback"],addNativeListener:["js","handler"],removeNativeListener:["handler"],getOrCreate:["str"],visitForGc:["visitor"]},"workerd::api::EventTarget::EventListenerOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::EventTarget::EventListenerOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::EventTarget::EventListenerOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::EventTarget::AddEventListenerOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::EventTarget::AddEventListenerOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::EventTarget::AddEventListenerOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::EventTarget::HandlerObject::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::EventTarget::HandlerObject::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::EventTarget::HandlerObject::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::EventTarget::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::EventTarget::registerMembers":{registerMembers:["registry"]},"workerd::api::EventTarget::jsgInitReflection":{jsgInitReflection:["wrapper"]},"workerd::api::EventTarget::NativeHandler":{$constructor:["js","target","type","func","once"],"operator()":["js","event"],visitForGc:["visitor"]},"workerd::api::EventTarget::EventHandler::JavaScriptHandler":{visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"]},"workerd::api::EventTarget::EventHandler":{$constructor:["handler","once"],jsgGetMemoryInfo:["tracker"]},"workerd::api::EventTarget::EventHandlerHashCallbacks":{keyForRow:["row"],matches:["a","b"],hashCode:["handler"]},"workerd::api::EventTarget::EventHandlerSet":{jsgGetMemoryInfo:["tracker"]},"workerd::api::AbortSignal":{$constructor:["exception","maybeReason","flag"],getAborted:["js"],getReason:["js"],throwIfAborted:["js"],abort:["js","reason"],timeout:["js","delay"],triggerAbort:["js","maybeReason"],any:["js","signals","handler","eventTargetHandler"],getOnAbort:["js"],setOnAbort:["js","handler"],addEventListener:["js","type","handler","maybeOptions","eventTargetHandler"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],visitForMemoryInfo:["tracker"],serialize:["js","serializer"],deserialize:["js","tag","deserializer"],isIgnoredForSubrequests:["js"],abortException:["js","reason"],visitForGc:["visitor"],sendToRpc:["reason"],deserializePendingReason:["js"],subscribeToRpcAbort:["js"]},"workerd::api::AbortSignal::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::AbortSignal::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::AbortSignal::wrap":{wrap:["js","promise"]},"workerd::api::AbortSignal::maybeCancelWrap":{maybeCancelWrap:["js","signal","promise"]},"workerd::api::AbortController":{$constructor:["js","abortSignalFlag"],abort:["js","reason"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::AbortController::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::AbortController::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::Scheduler::WaitOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::Scheduler::WaitOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::Scheduler::WaitOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::Scheduler":{wait:["js","delay","maybeOptions"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::Scheduler::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Scheduler::registerMembers":{registerMembers:["registry"]},"workerd::api::Blob":{$constructor:["data","type","options"],slice:["js","start","end","type"],arrayBuffer:["js"],bytes:["js"],text:["js"],stream:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::Blob::Options::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::Blob::Options::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::Blob::Options::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::Blob::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Blob::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::File":{$constructor:["js","bits","name","options","lastModified"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],visitForMemoryInfo:["tracker"]},"workerd::api::File::Options::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::File::Options::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::File::Options::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::File::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::File::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::CfProperty":{$constructor:["parsed","object"],get:["js"],getRef:["js"],serialize:["js"],deepClone:["js"],visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"]},"workerd::api::FormData::IteratorState":{visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"]},"workerd::api::FormData":{parseFormDataImpl:["rawText","boundary","callback"],parseWithoutLock:["rawText","contentType"],parse:["js","rawText","contentType","convertFilesToStrings"],serialize:["boundary"],$constructor:["js"],append:["js","name","value","filename"],delete:["name"],get:["js","name"],getAll:["js","name"],has:["name"],set:["js","name","value","filename"],forEach:["js","callback","thisArg"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],visitForMemoryInfo:["tracker"],clone:["js","value"]},"workerd::api::FormData::Entry":{jsgGetMemoryInfo:["tracker"]},"workerd::api::FormData::EntryIterator":{next:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::FormData::EntryIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::FormData::EntryIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::FormData::KeyIterator":{next:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::FormData::KeyIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::FormData::KeyIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::FormData::ValueIterator":{next:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::FormData::ValueIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::FormData::ValueIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::FormData::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::FormData::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::FormData::iteratorNext":{iteratorNext:["js","state"]},"workerd::api::Headers":{$constructor:["js","init","guard"],clone:["js"],shallowCopyTo:["out"],getDisplayedHeaders:["js"],get:["js","name"],getAll:["name"],has:["name"],set:["js","name","value"],append:["js","name","value"],delete:["name"],getPtr:["js","name"],setUnguarded:["js","name","value"],appendUnguarded:["js","name","value"],getCommon:["js","idx"],hasCommon:["idx"],setCommon:["idx","value"],deleteCommon:["idx"],forEach:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],serialize:["js","serializer"],deserialize:["js","tag","deserializer"],visitForMemoryInfo:["tracker"],tryGetHeader:["key"]},"workerd::api::Headers::EntryIterator":{next:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::Headers::EntryIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Headers::EntryIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::Headers::KeyIterator":{next:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::Headers::KeyIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Headers::KeyIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::Headers::ValueIterator":{next:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::Headers::ValueIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Headers::ValueIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::Headers::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Headers::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::Headers::Header":{$constructor:["name"],jsgGetMemoryInfo:["tracker"]},"workerd::api::Headers::entryIteratorNext":{entryIteratorNext:["js","state"]},"workerd::api::Headers::keyOrValueIteratorNext":{keyOrValueIteratorNext:["js","state"]},"workerd::mapAddRef":{mapAddRef:["array"]},"workerd::tracing::TraceId":{$constructor:["other","high"],"operator=":["other"],"operator==":["other"],fromEntropy:["entropy"],fromGoString:["s"],fromProtobuf:["buf"],fromCapnp:["reader"],toCapnp:["writer"]},"workerd::tracing::SpanId":{$constructor:["other"],"operator=":["other"],"operator==":["other"],fromEntropy:["entropy"]},"workerd::tracing::InvocationSpanContext":{$constructor:["other","invocationId","spanId","spanId","parentSpanContext"],"operator=":["other"],"operator==":["other"],newForInvocation:["triggerContext","entropySource"],fromCapnp:["reader"],toCapnp:["writer"]},"workerd::tracing::SpanContext":{$constructor:["other","spanId"],"operator=":["other"],"operator==":["other"],fromCapnp:["reader"],toCapnp:["writer"]},"workerd::tracing":{"operator*":["event"],cloneEventInfo:["info"],readOnsetInfo:["info"],writeOnsetInfo:["info","builder"]},"workerd::tracing::FetchEventInfo":{$constructor:["reader","url","cfJson","headers"],copyTo:["builder"]},"workerd::tracing::FetchEventInfo::Header":{$constructor:["reader","value"],copyTo:["builder"],jsgGetMemoryInfo:["tracker"]},"workerd::tracing::JsRpcEventInfo":{$constructor:["reader"],copyTo:["builder"]},"workerd::tracing::ScheduledEventInfo":{$constructor:["reader","cron"],copyTo:["builder"]},"workerd::tracing::AlarmEventInfo":{$constructor:["reader"],copyTo:["builder"]},"workerd::tracing::QueueEventInfo":{$constructor:["reader","batchSize"],copyTo:["builder"]},"workerd::tracing::EmailEventInfo":{$constructor:["reader","rcptTo","rawSize"],copyTo:["builder"]},"workerd::tracing::TraceEventInfo":{$constructor:["reader"],copyTo:["builder"]},"workerd::tracing::TraceEventInfo::TraceItem":{$constructor:["reader"],copyTo:["builder"]},"workerd::tracing::HibernatableWebSocketEventInfo":{$constructor:["reader"],copyTo:["builder"],readFrom:["reader"]},"workerd::tracing::CustomEventInfo":{$constructor:["reader"]},"workerd::tracing::FetchResponseInfo":{$constructor:["reader"],copyTo:["builder"]},"workerd::tracing::DiagnosticChannelEvent":{$constructor:["reader","channel","message"],copyTo:["builder"]},"workerd::tracing::StreamDiagnosticsEvent":{$constructor:["reader"],copyTo:["builder"]},"workerd::tracing::Log":{$constructor:["reader","logLevel","message"],copyTo:["builder"]},"workerd::tracing::Exception":{$constructor:["reader","name","message","stack"],copyTo:["builder"]},"workerd::tracing::Attribute":{$constructor:["reader","values"],copyTo:["builder"]},"workerd::tracing::Attribute::Attribute":{$constructor:["name","list"]},"workerd::tracing::CompleteSpan":{$constructor:["spanId","parentSpanId","operationName","startTime","endTime","tags"],copyTo:["builder"]},"workerd::tracing::Return":{$constructor:["reader"],copyTo:["builder"]},"workerd::tracing::SpanOpen":{$constructor:["reader","operationName","info"],copyTo:["builder"]},"workerd::tracing::SpanClose":{$constructor:["reader"],copyTo:["builder"]},"workerd::tracing::Onset":{$constructor:["reader","info","workerInfo","attributes"],copyTo:["builder"]},"workerd::tracing::Outcome":{$constructor:["reader","cpuTime","wallTime"],copyTo:["builder"]},"workerd::tracing::TailEvent":{$constructor:["reader","invocationId","spanId","timestamp","sequence","event"],copyTo:["builder"]},"workerd::Trace":{$constructor:["reader","scriptName","scriptVersion","dispatchNamespace","scriptId","scriptTags","entrypoint","executionModel","durableObjectId"],copyTo:["builder"],mergeFrom:["reader","pipelineLogLevel"]},"workerd::Span":{$constructor:["operationName","startTime"]},"workerd::SpanParent":{$constructor:["other"],"operator=":["other"],newChild:["operationName","startTime"]},"workerd::SpanBuilder":{$constructor:["other","operationName","startTime"],"operator=":["other"],newChild:["operationName","startTime"],setOperationName:["operationName"],setTag:["key","value"],addLog:["timestamp","key","value"]},"workerd::SpanObserver":{report:["span"]},"workerd::TraceContext":{$constructor:["other","userSpan"],"operator=":["other"],setTag:["key","value"]},"workerd::ScopedDurationTagger":{$constructor:["span","key","timer"]},"workerd::attachToRequest":{attachToRequest:["req","rcAttachment"]},"workerd::attachToWebSocketResponse":{attachToWebSocketResponse:["promise","attachment"]},"workerd::SimpleResponseObserver":{$constructor:["statusCode","response"],send:["status","statusText","headers","expectedBodySize"],acceptWebSocket:["headers"]},"workerd::WorkerInterface":{fromException:["e"],request:["method","url","headers","requestBody","response"],connect:["host","headers","connection","response","settings"],prewarm:["url"],runScheduled:["scheduledTime","cron"],runAlarm:["scheduledTime","retryCount"],customEvent:["event"]},"workerd::WorkerInterface::AlarmFulfiller":{$constructor:["fulfiller"],fulfill:["result"],reject:["e"]},"workerd::WorkerInterface::CustomEvent":{run:["incomingRequest","entrypointName","props","waitUntilTasks"],sendRpc:["httpOverCapnpFactory","byteStreamFactory","dispatcher"],failed:["e"]},"workerd::LazyWorkerInterface::LazyWorkerInterface":{$constructor:["func"],request:["method","url","headers","requestBody","response"],connect:["host","headers","connection","response","settings"],prewarm:["url"],runScheduled:["scheduledTime","cron"],runAlarm:["scheduledTime","retryCount"],customEvent:["event"]},"workerd::newLazyWorkerInterface":{newLazyWorkerInterface:["func"]},"workerd::RpcWorkerInterface":{$constructor:["httpOverCapnpFactory","byteStreamFactory","dispatcher"],request:["method","url","headers","requestBody","response"],connect:["host","headers","connection","tunnel","settings"],prewarm:["url"],runScheduled:["scheduledTime","cron"],runAlarm:["scheduledTime","retryCount"],customEvent:["event"]},"workerd::api::WorkerQueue":{$constructor:["subrequestChannel"],send:["js","body","options"],sendBatch:["js","batch","options"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::WorkerQueue::SendOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::WorkerQueue::SendOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::WorkerQueue::SendOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::WorkerQueue::SendBatchOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::WorkerQueue::SendBatchOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::WorkerQueue::SendBatchOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::WorkerQueue::MessageSendRequest::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::WorkerQueue::MessageSendRequest::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::WorkerQueue::MessageSendRequest::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::WorkerQueue::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::WorkerQueue::registerMembers":{registerMembers:["registry"]},"workerd::api::IncomingQueueMessage::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::IncomingQueueMessage::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::IncomingQueueMessage::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::QueueRetryBatch::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::QueueRetryBatch::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::QueueRetryBatch::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::QueueRetryMessage::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::QueueRetryMessage::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::QueueRetryMessage::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::QueueResponse::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::QueueResponse::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::QueueResponse::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::QueueRetryOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::QueueRetryOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::QueueRetryOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::QueueMessage":{$constructor:["js","message","result"],getBody:["js"],retry:["options"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::QueueMessage::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::QueueMessage::registerMembers":{registerMembers:["registry"]},"workerd::api::QueueEvent":{$constructor:["type","params","result"],retryAll:["options"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],setCompletionStatus:["status"],visitForGc:["visitor"]},"workerd::api::QueueEvent::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::QueueEvent::registerMembers":{registerMembers:["registry"]},"workerd::api::QueueController":{$constructor:["event"],retryAll:["options"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::QueueController::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::QueueController::registerMembers":{registerMembers:["registry"]},"workerd::api::QueueExportedHandler::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::QueueExportedHandler::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::QueueExportedHandler::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::QueueCustomEvent":{$constructor:["params"],run:["incomingRequest","entrypointName","props","waitUntilTasks"],sendRpc:["httpOverCapnpFactory","byteStreamFactory","dispatcher"]},"workerd::ActorCacheOps":{cloneKey:["ptr"],get:["keys","options"],getAlarm:["options"],list:["begin","end","limit","options"],listReverse:["begin","end","limit","options"],put:["pairs","options","traceSpan","traceSpan"],setAlarm:["newTime","options","traceSpan"],delete:["keys","options","traceSpan"]},"workerd::ActorCacheOps::KeyValuePtrPair":{$constructor:["key","value"]},"workerd::ActorCacheOps::KeyValuePtrPairWithCache":{$constructor:["key","value","status"]},"workerd::ActorCacheInterface":{deleteAll:["options","traceSpan","deleteAllOptions"],evictStale:["now"],shutdown:["maybeException"],armAlarmHandler:["scheduledTime","parentSpan","currentTime","noCache","actorId"],onNoPendingFlush:["parentSpan"],getCurrentBookmark:["parentSpan"],getBookmarkForTime:["timestamp"],onNextSessionRestoreBookmark:["bookmark"],waitForBookmark:["bookmark","parentSpan"]},"workerd::ActorCache::Hooks":{updateAlarmInMemory:["newAlarmTime"],storageReadCompleted:["latency"],storageWriteCompleted:["latency"]},"workerd::ActorCache":{$constructor:["storage","lru","gate","hooks"],get:["keys","options"],getAlarm:["options"],list:["begin","end","limit","options"],listReverse:["begin","end","limit","options"],put:["pairs","options","traceSpan","traceSpan"],delete:["keys","options","traceSpan"],setAlarm:["newAlarmTime","options","traceSpan"],deleteAll:["options","traceSpan","deleteAllOptions"],evictStale:["now"],shutdown:["maybeException"],armAlarmHandler:["scheduledTime","parentSpan","currentTime","noCache","actorId"],onNoPendingFlush:["parentSpan"],addToCleanList:["listLock","entryRef"],addToDirtyList:["entryRef"],touchEntry:["lock","entry"],removeEntry:["lock","entry"],findInCache:["lock","key","options"],addReadResultToCache:["lock","key","value","readOptions"],markGapsEmpty:["lock","begin","end","options"],putImpl:["lock","newEntry","options","counted","traceSpan"],getImpl:["entry","options"],ensureFlushScheduled:["options","traceSpan"],flushImpl:["retryCount"],flushImplDeleteAll:["retryCount"],flushImplUsingSinglePut:["putFlush"],flushImplUsingSingleMutedDelete:["mutedFlush"],flushImplUsingSingleCountedDelete:["countedFlush"],flushImplAlarmOnly:["dirty"],flushImplUsingTxn:["putFlush","mutedDeleteFlush","countedDeleteFlushes","maybeAlarmChange"],evictEntry:["lock","entry"],clear:["lock"],requireNotTerminal:["traceSpan"],evictOrOomIfNeeded:["lock"]},"workerd::ActorCache::DeferredAlarmDeleter":{disposeImpl:["pointer"]},"workerd::ActorCache::Entry":{$constructor:["key","status","status"]},"workerd::ActorCache::EntryTableCallbacks":{keyForRow:["row"],isBefore:["a","b"],matches:["row","key"]},"workerd::ActorCache::CountedDelete":{forgiveIfFinished:["promise"]},"workerd::ActorCache::CountedDeleteWaiter":{$constructor:["cache","state"]},"workerd::ActorCache::DirtyList":{add:["entry"],remove:["entry"]},"workerd::ActorCache::scheduleStorageRead":{scheduleStorageRead:["function"]},"workerd::GetResultList::Iterator":{"operator==":["other"],$constructor:["ptr","statusPtr"]},"workerd::GetResultList":{$constructor:["cachedEntries","fetchedEntries","order","limit"]},"workerd::SharedLru":{$constructor:["options"],evictIfNeeded:["lock"]},"workerd::Transaction":{$constructor:["cache"],get:["keys","options"],getAlarm:["options"],list:["begin","end","limit","options"],listReverse:["begin","end","limit","options"],put:["pairs","options","traceSpan","traceSpan"],delete:["keys","options","traceSpan"],setAlarm:["newAlarmTime","options","traceSpan"],merge:["changedEntries","cacheRead","order"],putImpl:["lock","entry","options","count"]},"workerd::Transaction::ChangeTableCallbacks":{keyForRow:["row"],isBefore:["row","key"],matches:["row","key"]},"workerd::ActorIdFactory::ActorId":{equals:["other"]},"workerd::ActorIdFactory":{newUniqueId:["jurisdiction"],idFromName:["name"],idFromString:["str"],matchesJurisdiction:["id"],cloneWithJurisdiction:["maybeJurisdiction"]},"workerd::Frankenvalue":{toCapnp:["builder"],fromCapnp:["reader","capTable"],toJs:["js"],fromJs:["js","value"],populateJsObject:["js","target"],fromJson:["json"],setProperty:["name","value"],fromCapnpImpl:["reader","capTablePos"],toCapnpImpl:["builder","capTableSize"],toJsImpl:["js","capTable"]},"workerd::Frankenvalue::rewriteCaps":{rewriteCaps:["rewrite"]},"workerd::Frankenvalue::CapTableReader":{get:["index"],$constructor:["table"]},"workerd::Frankenvalue::CapTableBuilder":{add:["entry"],$constructor:["target"]},"workerd::WorkerSource":{$constructor:["source"]},"workerd::CacheClient":{getDefault:["metadata"],getNamespace:["name","metadata"]},"workerd::TimerChannel":{now:["nextTimeout"],atTime:["when"],afterLimitTimeout:["t"]},"workerd::IoChannelFactory":{startSubrequest:["channel","metadata"],getCapability:["channel"],writeLogfwdr:["channel","buildMessage"],getSubrequestChannel:["channel","props","versionRequest"],getGlobalActor:["channel","id","locationHint","mode","enableReplicaRouting","routingMode","parentSpan","version"],getColoLocalActor:["channel","id","parentSpan"],getActorClass:["channel","props"],abortAllActors:["reason"],loadIsolate:["loaderChannel","name","fetchSource"],subrequestChannelFromToken:["usage","token"],actorClassFromToken:["usage","token"]},"workerd::IoChannelFactory::SubrequestChannel":{startRequest:["metadata"],getToken:["usage"]},"workerd::IoChannelFactory::ActorClassChannel":{getToken:["usage"]},"workerd::WorkerStubChannel":{getEntrypoint:["name","props"],getActorClass:["name","props"]},"workerd::IoChannelCapTableEntry":{$constructor:["type","channel"],getChannelNumber:["expectedType"]},"workerd::TimeoutId":{fromNumber:["id"],"operator<":["id"],$constructor:["value"]},"workerd::TimeoutManager::TimeoutParameters":{$constructor:["repeat","msDelay","function"]},"workerd::TimeoutManager":{setTimeout:["context","generator","params"],clearTimeout:["context","id"]},"workerd::SqliteObserver":{setDbWalSize:["dbWalSize"],addQueryStats:["rowsRead","rowsWritten"],setSqliteStoredBytes:["sqliteStoredBytes"],reportQueryEvent:["queryStatement","queryRowsRead","queryRowsWritten","queryLatency","dbWalBytesWritten","queryResult","isInternalQuery","queryErrorDescription"]},"workerd::SqliteDatabase":{$constructor:["vfs","path","maybeMode","sqliteObserver","actorAccountLimits"],prepare:["regulator","sqlCode"],prepareMulti:["regulator","sqlCode"],onWrite:["callback"],onCriticalError:["callback"],notifyWrite:["allowUnconfirmed"],ingestSql:["regulator","sqlCode"],executeWithRegulator:["regulator","func"],afterReset:["callback"],onRollback:["callback"],init:["maybeMode"],applyChange:["change"],handleCriticalError:["errorCode","errorMessage","exception"],prepareSql:["regulator","sqlCode","prepFlags","multi","prelude"],isAuthorized:["actionCode","param1","param2","dbName","triggerName"],isAuthorizedTemp:["actionCode","param1","param2","regulator"],setupSecurity:["db"]},"workerd::SqliteDatabase::Regulator":{isAllowedName:["name"],isAllowedTrigger:["name"],onError:["sqliteErrorCode","message"]},"workerd::SqliteDatabase::run":{run:["sqlCode","bindings","bindings"]},"workerd::SqliteDatabase::prepare":{prepare:["regulator","sqlCode"]},"workerd::SqliteDatabase::ResetListener":{$constructor:["other"]},"workerd::Statement::run":{run:["options","bindings"]},"workerd::Statement":{$constructor:["db","regulator","sqlCode"]},"workerd::Query":{getValue:["column"],getColumnName:["column"],getBlob:["column"],getText:["column"],getInt:["column"],getInt64:["column"],getDouble:["column"],isNull:["column"],getMaybeBlob:["column"],getMaybeText:["column"],getMaybeInt:["column"],getMaybeInt64:["column"],getMaybeDouble:["column"],$constructor:["db","options","sqlCode","bindings"],checkRequirements:["size"],init:["bindings"],bind:["column","value"],handleCriticalError:["errorCode","errorMessage","maybeException"],nextRow:["first"]},"workerd::Query::QueryEvent":{$constructor:["sqliteObserver"],setQueryEventStats:["rowsRead","rowsWritten","isInternalQuery"],setQueryStatement:["queryStatement"],setQueryErrorDescription:["queryErrorDescription"],setQueryResult:["res"]},"workerd::Query::Query":{$constructor:["db","options","sqlCode","bindings"]},"workerd::Query::bindAll":{bindAll:["value"]},"workerd::Vfs":{$constructor:["directory","lockManager","options"],tryAppend:["suffix"]},"workerd::LockManager":{lock:["path","mainDatabaseFile"]},"workerd::Lock":{tryIncreaseLevel:["level"],decreaseLevel:["level"],getSharedMemoryRegion:["index","size","extend"],tryLockWalShared:["start","count"],tryLockWalExclusive:["start","count"],unlockWalShared:["start","count"],unlockWalExclusive:["start","count"],logWarning:["description"],logWarningOnce:["description"],logErrorOnce:["description"],logUncaughtException:["source","exception","message"],reportPromiseRejectEvent:["message"],validateHandlers:["errorReporter"],getExportedHandler:["entrypointName","props","actor"],$constructor:["worker","lockType"]},"workerd::run":{run:["func","inputLock","params"]},"workerd::prepare":{prepare:["regulator","sqlCode"]},"workerd::WebSocketObserver":{sentMessage:["bytes"],receivedMessage:["bytes"]},"workerd::ByteStreamObserver":{onChunkEnqueued:["bytes"],onChunkDequeued:["bytes"]},"workerd::RequestObserver":{reportFailure:["e","source"],reportInternalException:["e","detail"],wrapWorkerInterface:["worker"],wrapSubrequestClient:["client"],wrapActorSubrequestClient:["client"],setOutcome:["outcome"],setFailedOpen:["value"]},"workerd::IsolateObserver":{parse:["startType"],tryCreateLockTiming:["parentOrRequest"]},"workerd::IsolateObserver::LockTiming":{waitingForOtherIsolate:["id"],reportAsyncInfo:["currentLoad","threadWaitingSameLock","threadWaitingDifferentLockCount"]},"workerd::IsolateObserver::LockRecord":{$constructor:["lockTimingParam"]},"workerd::WorkerObserver":{startup:["startType"]},"workerd::ActorObserver":{flushLoop:["timer","limitEnforcer"],receivedWebSocketMessage:["bytes"],sentWebSocketMessage:["bytes"],addCachedStorageReadUnits:["units"],addUncachedStorageReadUnits:["units"],addStorageWriteUnits:["units"],addStorageDeletes:["count"],storageReadCompleted:["latency"],storageWriteCompleted:["latency"],shutdown:["reasonCode","limitEnforcer"]},"workerd::TeardownFinishedGuard::TeardownFinishedGuard":{$constructor:["ref"]},"workerd::FeatureObserver":{init:["instance"],use:["feature"],collect:["callback"],maybeRecordUse:["feature"]},"workerd::RequestTracker::ActiveRequest":{$constructor:["other"]},"workerd::RequestTracker":{$constructor:["hooks"]},"workerd::jsg::AsyncContextFrame::StorageKey":{"operator==":["other"],jsgGetMemoryInfo:["tracker"]},"workerd::jsg::AsyncContextFrame::StorageEntry":{$constructor:["key","value"],clone:["js"],jsgGetMemoryInfo:["tracker"]},"workerd::jsg::AsyncContextFrame":{$constructor:["js","storageEntry"],current:["isolate"],currentRef:["js"],create:["js","storageEntry"],wrapRoot:["js","fn","thisArg"],wrapSnapshot:["js","validate"],wrap:["js","fn","validate","thisArg"],get:["key"],getJSWrapper:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::jsg::AsyncContextFrame::Scope":{$constructor:["js","frame"]},"workerd::jsg::AsyncContextFrame::StorageScope":{$constructor:["js","key","store"]},"workerd::jsg::AsyncContextFrame::StorageEntryCallbacks":{keyForRow:["entry"],matches:["entry","key"],hashCode:["key"]},"workerd::jsg::V8PlatformWrapper":{$constructor:["inner"],GetForegroundTaskRunner:["isolate","priority"],PostTaskOnWorkerThreadImpl:["priority","task","location"],PostDelayedTaskOnWorkerThreadImpl:["priority","task","delay_in_seconds","location"],CreateJobImpl:["priority","job_task","location"],IdleTasksEnabled:["isolate"]},"workerd::jsg::V8PlatformWrapper::JobTaskWrapper":{$constructor:["inner"],GetMaxConcurrency:["worker_count"]},"workerd::BatchQueue::BatchQueue":{$constructor:["initialCapacity","maxCapacity"]},"workerd::BatchQueue::BatchQueue::Batch::operator ArrayPtr<type-parameter-0-0>::operator()":{"operator()":["bq"]},"workerd::BatchQueue::BatchQueue::Batch::operator ArrayPtr<type-parameter-0-0>::__invoke":{__invoke:["bq"]},"workerd::BatchQueue::BatchQueue::Batch":{$constructor:["batchQueue"]},"workerd::BatchQueue::BatchQueue::push":{push:["value"]},"workerd::jsg::V8System":{$constructor:["platform","flags","defaultPlatformPtr"],setFatalErrorCallback:["callback"]},"workerd::jsg::IsolateBase":{from:["isolate"],unwrapException:["js","context","exception"],wrapException:["js","context","exception"],serialize:["js","type","instance","serializer"],deserialize:["js","tag","deserializer"],setLoggerCallback:["logger"],setErrorReporterCallback:["reporter"],setModuleFallbackCallback:["callback"],setAllowEval:["allow"],setCaptureThrowsAsRejections:["capture"],setNodeJsCompatEnabled:["enabled"],setNodeJsProcessV2Enabled:["enabled"],setRequireReturnsDefaultExportEnabled:["enabled"],logWarning:["js","message"],reportError:["js","desc","error","message"],jsgGetMemoryInfo:["tracker"],getExternalMemoryAdjustment:["amount"],destroyUnderLock:["item"],buildEmbedderGraph:["isolate","graph","data"],$constructor:["system","createParams","observer","group"],dropWrappers:["drop"],deferDestruction:["item"],fatalError:["location","message"],oomError:["location","details"],modifyCodeGenCallback:["context","source","isCodeLike"],allowWasmCallback:["context","source"],jspiEnabledCallback:["context"],jitCodeEvent:["event"],getJsStackTrace:["ucontext","scratch"],getCaptureThrowsAsRejections:["isolate"],createTunneledException:["isolate","exception"],getOpaqueTemplate:["isolate"]},"workerd::jsg::IsolateBase::RefToDelete":{$constructor:["strong","ownWrappable","wrappable"]},"workerd::jsg::Isolate::Isolate::Isolate<TypeWrapper>":{$constructor:["system","configuration","observer","createParams","instantiateTypeWrapper","instantiateTypeWrapper"]},"workerd::jsg::Isolate::Isolate":{$constructor:["system","observer","createParams"],unwrapException:["js","context","exception"],wrapException:["js","context","exception"],serialize:["js","type","instance","serializer"],deserialize:["js","tag","deserializer"],getWrapperByContext:["context"]},"workerd::jsg::Isolate::Isolate::instantiateDefaultWrapper":{instantiateDefaultWrapper:["configuration"]},"workerd::jsg::Isolate::Isolate::Lock":{$constructor:["isolate"],domException:["name","message","maybeStack"],wrapBytes:["data"],wrapSimpleFunction:["context","simpleFunction"],wrapReturningFunction:["context","returningFunction"],wrapPromiseReturningFunction:["context","returningFunction"],toDict:["value"],wrapSimplePromise:["promise"],toPromise:["promise"],reportError:["value"],setWorkerEnv:["value"],setWorkerExports:["value"],getInstance:["obj","type"],getPrototypeFor:["type"]},"workerd::jsg::Isolate::Isolate::Lock::wrap":{wrap:["context","value"]},"workerd::jsg::Isolate::Isolate::Lock::wrapNoContext":{wrapNoContext:["value"]},"workerd::jsg::Isolate::Isolate::Lock::unwrap":{unwrap:["context","handle"]},"workerd::jsg::Isolate::Isolate::Lock::getConstructor":{getConstructor:["context"]},"workerd::jsg::Isolate::Isolate::Lock::newContextWithWrapper":{newContextWithWrapper:["wrapper","options","args"]},"workerd::jsg::Isolate::Isolate::Lock::newContext":{newContext:["args","args"]},"workerd::jsg::Isolate::Isolate::Lock::newContextWithConfiguration":{newContextWithConfiguration:["configuration","options","args"]},"workerd::jsg::Isolate::Isolate::runInLockScope":{runInLockScope:["func"]},"workerd::jsg::Url":{$constructor:["inner"],"operator=":["other"],"operator==":["other"],equal:["other","option"],canParse:["input","base"],tryParse:["input","base"],setHref:["value"],setHost:["value"],setHostname:["value"],setProtocol:["value"],setUsername:["value"],setPassword:["value"],setPort:["value"],setPathname:["value"],setSearch:["value"],setHash:["value"],resolve:["input"],clone:["option"],tryResolve:["input"],getRelative:["option"],idnToUnicode:["value"],idnToAscii:["value"],isSpecialScheme:["protocol"],isSpecialSchemeDefaultPort:["protocol","port"],jsgGetMemoryInfo:["tracker"],percentDecode:["input"]},"workerd::jsg::UrlSearchParams::KeyIterator":{$constructor:["inner"]},"workerd::jsg::UrlSearchParams::ValueIterator":{$constructor:["inner"]},"workerd::jsg::UrlSearchParams::EntryIterator":{$constructor:["inner"]},"workerd::jsg::UrlSearchParams":{$constructor:["inner"],"operator=":["other"],"operator==":["other"],tryParse:["input"],append:["key","value"],set:["key","value"],delete:["key","maybeValue"],has:["key","maybeValue"],get:["key"],getAll:["key"],jsgGetMemoryInfo:["tracker"],reset:["input"]},"workerd::jsg::UrlPattern::Component":{$constructor:["pattern","regex","names"],jsgGetMemoryInfo:["tracker"]},"workerd::jsg::UrlPattern":{processInit:["init","options"],tryCompile:["init"],jsgGetMemoryInfo:["tracker"],$constructor:["components","ignoreCase"],tryCompileInit:["init","options"]},"workerd::jsg::modules::Module::Evaluator":{"operator()":["js","module","v8Module","observer"],$constructor:["registry"]},"workerd::jsg::modules::Module":{getDescriptor:["js","observer"],evaluateContext:["context"],instantiate:["js","module","observer"],evaluate:["js","module","observer","maybeEvaluate"],actuallyEvaluate:["js","module","observer"],newSynthetic:["id","type","callback","namedExports","flags"],newEsm:["id","type","code","flags"],newTextModuleHandler:["data"],newDataModuleHandler:["data"],newJsonModuleHandler:["data"],newWasmModuleHandler:["data"],compileEvalFunction:["js","code","name","compileExtensions","observer"],$constructor:["id","type","flags"]},"workerd::jsg::modules::Module::ModuleNamespace":{$constructor:["inner","namedExports"],set:["js","name","value"],setDefault:["js","value"]},"workerd::jsg::modules::Module::newCjsStyleModuleHandler":{newCjsStyleModuleHandler:["source","name"]},"workerd::jsg::modules::Module::newJsgObjectModuleHandler":{newJsgObjectModuleHandler:["factory"]},"workerd::jsg::modules":{"operator&":["a","b"],"operator|":["a","b"]},"workerd::jsg::modules::ModuleBundle::Builder":{add:["id","callback"],alias:["alias","id"],$constructor:["type"],ensureIsNotBundleSpecifier:["id"]},"workerd::jsg::modules::ModuleBundle::BundleBuilder":{$constructor:["bundleBase"],addSyntheticModule:["name","callback","namedExports"],addEsmModule:["name","code","flags"],addWasmModule:["name","data"],alias:["alias","name"]},"workerd::jsg::modules::ModuleBundle::BuiltinBuilder":{$constructor:["type"],addSynthetic:["id","callback"],addEsm:["id","source"]},"workerd::jsg::modules::ModuleBundle::BuiltinBuilder::addObject":{addObject:["id"]},"workerd::jsg::modules::ModuleBundle":{newFallbackBundle:["callback"],getBuiltInBundleFromCapnp:["builder","bundle","options"],lookup:["context"],$constructor:["type"]},"workerd::jsg::modules::ModuleRegistry::Builder":{$constructor:["observer","bundleBase","options"],add:["bundle"],setEvalCallback:["callback"]},"workerd::jsg::modules::ModuleRegistry":{lookup:["context"],attachToIsolate:["js","observer"],resolve:["js","specifier","exportName","type","source","maybeReferrer"],tryResolveModuleNamespace:["js","specifier","type","source","maybeReferrer"],$constructor:["builder"],lookupImpl:["impl","context","recursed"],tryFindInBundleGroup:["context","bundles"],tryFindInBundle:["context","bundle","bundleBase"],evaluateImpl:["js","module","v8Module","observer"]},"workerd::jsg::modules::ModuleRegistry::Impl":{$constructor:["bundles"]},"workerd::StructuredLogging":{$constructor:["value"],"operator&&":["other"],"operator||":["other"]},"workerd::ProcessStdioPrefixed":{$constructor:["value"],"operator&&":["other"],"operator||":["other"]},"workerd::Worker::ValidationErrorReporter":{addError:["error"],addEntrypoint:["exportName","methods"],addActorClass:["exportName"],addWorkflowClass:["exportName","methods"]},"workerd::Worker::LoggingOptions":{$constructor:["other"],"operator=":["other"]},"workerd::Worker":{$constructor:["script","metrics","compileBindings","startType","parentSpan","lockType","errorReporter","startupTime"],takeAsyncLockWithoutRequest:["parentSpan"],takeAsyncLock:["request"],takeAsyncLockWhenActorCacheReady:["now","actor","request"],setupContext:["lock","context","loggingOptions"],handleLog:["js","loggingOptions","level","original","info"],processEntrypointClass:["js","cls","entrypointClasses","handlerName"]},"workerd::Worker::runInLockScope":{runInLockScope:["lockType","func"]},"workerd::Script":{installVirtualFileSystemOnContext:["context"],$constructor:["isolate","id","source","startType","logNewScript","errorReporter","artifacts","parentSpan","vfs","maybeNewModuleRegistry"]},"workerd::Isolate":{$constructor:["api","metrics","id","limitEnforcer","inspectorPolicy","loggingOptions"],from:["js"],setCpuLimitNearlyExceededCallback:["cb"],newScript:["id","source","startType","parentSpan","vfs","logNewScript","errorReporter","artifacts","maybeNewModuleRegistry"],attachInspector:["isolateThreadExecutor","timer","timerOffset","webSocket","controlHeaderId"],logWarning:["description","lock"],logWarningOnce:["description","lock"],logErrorOnce:["description"],wrapSubrequestClient:["client","contentEncodingHeaderId","requestMetrics"],takeAsyncLockWithoutRequest:["parentSpan"],takeAsyncLockImpl:["lockTiming"],logMessage:["js","type","description"]},"workerd::Api":{lock:["stackScope"],newContext:["lock","options"],compileModules:["lock","source","isolate","artifacts","parentSpan"],compileServiceWorkerGlobals:["lock","source","isolate"],unwrapExports:["lock","moduleNamespace"],unwrapExport:["lock","exportVal"],getEntrypointClasses:["lock"],getErrorInterfaceTypeHandler:["lock"],getQueueTypeHandler:["lock"],getCryptoAlgorithm:["name"],wrapExecutionContext:["lock","ref"],setModuleFallbackCallback:["callback"]},"workerd::Api::ErrorInterface::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::Api::ErrorInterface::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::Api::ErrorInterface::registerMembers":{registerMembers:["registry","arg"]},"workerd::Lock::TakeSynchronously":{$constructor:["request"]},"workerd::LockType":{$constructor:["origin"]},"workerd::runInLockScope":{runInLockScope:["lockType","func"]},"workerd::AsyncLock":{$constructor:["waiter","lockTiming"]},"workerd::Actor":{idsEqual:["a","b"],$constructor:["worker","tracker","actorId","hasTransient","makeActorCache","className","props","makeStorage","loopback","timerChannel","metrics","manager","hibernationEventType","container","facetManager"],shutdown:["reasonCode","error"],shutdownActorCache:["error"],cloneId:["id"],getTransient:["lock"],makeStorageForSwSyntax:["lock"],setIoContext:["context"],getCtx:["js"],getEnv:["js"],setHibernationManager:["manager"],getAlarm:["scheduledTime"],scheduleAlarm:["scheduledTime"],handleAlarm:["scheduledTime"],ensureConstructedImpl:["info"]},"workerd::Actor::Loopback":{getWorker:["metadata"]},"workerd::Actor::HibernationManager":{acceptWebSocket:["ws","tags"],getWebSockets:["js","tag"],hibernateWebSockets:["lock"],setWebSocketAutoResponse:["request","response"],getWebSocketAutoResponse:["js"],setTimerChannel:["timerChannel"],setEventTimeout:["timeoutMs"]},"workerd::Actor::FacetManager":{getFacet:["name","getStartInfo"],abortFacet:["name","reason"],deleteFacet:["name"]},"workerd::SimpleWorkerErrorReporter":{addError:["error"],addEntrypoint:["exportName","methods"],addActorClass:["exportName"],addWorkflowClass:["exportName","methods"]},"workerd::api::newNoopDeferredProxy":{newNoopDeferredProxy:["value"]},"workerd::api::addNoopDeferredProxy":{addNoopDeferredProxy:["promise"]},"workerd::api":{addNoopDeferredProxy:["promise"],"operator|":["a","b"],"operator|=":["a","b"],"operator&":["a","b"],hasUtf8Bom:["data"],newReadableStreamInternalController:["ioContext","source"],newWritableStreamInternalController:["ioContext","sink","observer","maybeHighWaterMark","maybeClosureWaitable"],maybeResolvePromise:["js","maybeResolver"],fetchImpl:["js","fetcher","requestOrUrl","requestInit"],makeHttpResponse:["js","method","urlList","statusCode","statusText","headers","body","webSocket","bodyEncoding","signal"],serializeV8Value:["js","value"],deserializeV8Value:["js","key","buf"],"operator*":["value"],parseQueryString:["query","rawText","skipLeadingQuestionMark"],readContentTypeParameter:["contentType","param"],translateKjException:["exception","translations"],newTeeErrorAdapter:["inner"],redactUrl:["url"],maybeWarnIfNotText:["js","str"],fastEncodeBase64Url:["bytes"],fastEncodeUtf16:["bytes"],uriEncodeControlChars:["bytes"],throwOpensslError:["file","line","code"],tryDescribeOpensslErrors:["defaultIfNoError"],lookupDigestAlgorithm:["algorithm"],decodeBase64Url:["text"],toBignum:["data"],toBignumUnowned:["data"],bignumToArray:["js","bignum"],bignumToArrayPadded:["js","bignum","paddedLength"],checkPbkdfLimits:["js","iterations"],CSPRNG:["buffer"],fromRsaKey:["js","key"],fromEcKey:["key"],fromEd25519Key:["key"],tryGetAsn1Sequence:["data"],simdutfBase64UrlDecode:["js","input"],simdutfBase64UrlDecodeChecked:["js","input","error"],doR2HTTPGetRequest:["client","metadataPayload","path","jwt","flags"],doR2HTTPPutRequest:["client","value","streamSize","metadataPayload","path","jwt"],setupSocket:["js","connection","remoteAddress","options","tlsStarter","secureTransport","domain","isDefaultFetchPort","maybeOpenedPrPair"],connectImplNoOutputLock:["js","fetcher","address","options"],connectImpl:["js","fetcher","address","options"],newIdentityPipe:["expectedLength"],isIdentityTransformStream:["sink"],jsgGetMemoryInfo:["tracker"]},"workerd::api::DeferredProxyCoroutine::DeferredProxyCoroutine":{$constructor:["location"],fulfill:["value"],setSelfPointer:["selfPtr"],onReady:["event"],get:["output"],tracePromise:["builder","stopAtNextEvent"]},"workerd::api::DeferredProxyCoroutine::DeferredProxyCoroutine::yield_value":{yield_value:["value"]},"workerd::api::DeferredProxyCoroutine::DeferredProxyCoroutine::await_transform":{await_transform:["awaitable"]},"workerd::InputGate":{$constructor:["hooks","paf"],wait:["parentSpan"],setBroken:["e"]},"workerd::InputGate::Lock":{$constructor:["gate","parentSpan"],addRef:["parentSpan"],isFor:["gate"],"operator==":["other"]},"workerd::InputGate::Waiter":{$constructor:["fulfiller","gate","isChildWaiter","parentSpan"]},"workerd::CriticalSection":{$constructor:["parent"],wait:["parentSpan"],failed:["e"]},"workerd::OutputGate":{$constructor:["hooks"],wait:["parentSpan"],setBroken:["e"]},"workerd::OutputGate::lockWhile":{lockWhile:["promise","parentSpan"]},"workerd::lockWhile":{lockWhile:["promise","parentSpan"]},"workerd::ThreadContext::HeaderIdBundle":{$constructor:["builder"]},"workerd::ThreadContext":{$constructor:["timer","entropySource","headerIds","httpOverCapnpFactory","byteStreamFactory","isFiddle"]},"workerd::IsolateLimitEnforcer":{customizeIsolate:["isolate"],enterStartupJs:["lock","limitErrorOrTime"],enterStartupPython:["lock","limitErrorOrTime"],enterDynamicImportJs:["lock","limitErrorOrTime"],enterLoggingJs:["lock","limitErrorOrTime"],enterInspectorJs:["lock","limitErrorOrTime"],completedRequest:["id"],exitJs:["lock"],reportMetrics:["isolateMetrics"],checkPbkdfIterations:["js","iterations"],markPerfEvent:["name"]},"workerd::LimitEnforcer":{enterJs:["lock","context"],newSubrequest:["isInHouse"],newKvRequest:["op"],reportMetrics:["requestMetrics"]},"workerd::File":{setLastModified:["js","date"],stat:["js"],readAllText:["js"],readAllBytes:["js"],read:["js","offset","buffer"],writeAll:["js","data"],write:["js","offset","data"],fill:["js","val","offset"],resize:["js","size"],newWritable:["js","size"],newReadable:["data"],jsgGetMemoryInfo:["tracker"],clone:["js"],replace:["js","file"],countTowardsIsolateLimit:["js"]},"workerd::Directory":{stat:["js","ptr"],count:["js","typeFilter"],tryOpen:["js","path","options"],add:["js","name","entry"],remove:["js","path","options"],jsgGetMemoryInfo:["tracker"],newWritable:["js"],countTowardsIsolateLimit:["js"]},"workerd::Directory::Builder":{add:["name","dir"],addPath:["path","fileOrDirectory"]},"workerd::SymbolicLink":{$constructor:["root","targetPath"],stat:["js"],resolve:["js"],countTowardsIsolateLimit:["js"]},"workerd::VirtualFileSystem::Observer":{onOpen:["openFds","totalFds"],onClose:["openFdCount","totalFds"],onMaxFds:["openFdCount"]},"workerd::VirtualFileSystem":{getRoot:["js"],resolve:["js","url","options"],resolveStat:["js","url"],newSymbolicLink:["js","url"],getStdio:["js","stdio"],openFd:["js","url","options"],closeFd:["js","fd"],wrapFd:["js","fd"],tryGetFd:["js","fd"],lock:["js","locator"],isLocked:["js","locator"]},"workerd::VirtualFileSystem::OpenedFile":{$constructor:["fd","read","write","append","node"]},"workerd::FsMap":{setBundleRoot:["path"],setTempRoot:["path"],setDevRoot:["path"]},"workerd::TmpDirStoreScope":{$constructor:["guard"],setCwd:["newCwd"]},"workerd::SymbolicLinkRecursionGuardScope":{checkSeen:["link"]},"workerd::IoContext_Runnable_Exceptional":{$constructor:["value"],"operator&&":["other"],"operator||":["other"]},"workerd::IoContext_IncomingRequest":{$constructor:["context","ioChannelFactory","metrics","workerTracer","maybeTriggerInvocationSpan"],now:["nextTimeout"]},"workerd::IoContext":{$constructor:["thread","worker","actor","limitEnforcer"],logWarning:["description"],logWarningOnce:["description"],logErrorOnce:["description"],logUncaughtException:["source","exception","message"],logUncaughtExceptionAsync:["source","e"],abort:["e"],abortWhen:["promise"],requireCurrentOrThrowJs:["weak"],throwNotCurrentJsError:["maybeType"],addTask:["promise"],addWaitUntil:["promise"],setTimeoutImpl:["timeoutId","repeat","function","msDelay","args"],clearTimeoutImpl:["key"],now:["incomingRequest"],atTime:["when"],afterLimitTimeout:["t"],getSubrequestNoChecks:["func","options"],getSubrequest:["func","options"],getSubrequestChannel:["channel","isInHouse","cfBlobJson","traceContext"],getSubrequestChannelNoChecks:["channel","isInHouse","cfBlobJson","operationName"],getHttpClient:["channel","isInHouse","cfBlobJson","traceContext"],getCapnpChannel:["channel"],getGlobalActorChannel:["channel","id","locationHint","mode","enableReplicaRouting","routingMode","parentSpan","version"],getColoLocalActorChannel:["channel","id","parentSpan"],abortAllActors:["reason"],makeAsyncTraceScope:["lock","spanParent"],makeTraceSpan:["operationName"],makeUserTraceSpan:["operationName"],makeCachePutStream:["js","stream"],writeLogfwdr:["channel","buildMessage"],getPromiseContextTag:["js"],getSubrequestChannelImpl:["channel","isInHouse","cfBlobJson","tracing","channelFactory"],taskFailed:["exception"],checkFarGet:["expectedQueue","type"],runImpl:["runnable","lockType","inputLock","exceptional"],abortFromHang:["asyncLock"],runInContextScope:["lockType","inputLock","func"],startDeleteQueueSignalTask:["context"]},"workerd::IoContext::blockConcurrencyWhile":{blockConcurrencyWhile:["js","callback"]},"workerd::IoContext::lockOutputWhile":{lockOutputWhile:["promise"]},"workerd::IoContext::run":{run:["func","criticalSection"]},"workerd::IoContext::awaitIo":{awaitIo:["js","promise","func"]},"workerd::IoContext::attachSpans":{attachSpans:["js","promise","attachments"]},"workerd::IoContext::attachSpansInternalOnly":{attachSpansInternalOnly:["js","promise","attachments"]},"workerd::IoContext::awaitIoWithInputLock":{awaitIoWithInputLock:["js","promise","func"]},"workerd::IoContext::awaitIoLegacy":{awaitIoLegacy:["js","promise"]},"workerd::IoContext::awaitIoLegacyWithInputLock":{awaitIoLegacyWithInputLock:["js","promise"]},"workerd::IoContext::awaitJs":{awaitJs:["js","promise"]},"workerd::IoContext::makeReentryCallback":{makeReentryCallback:["func"]},"workerd::IoContext::addObject":{addObject:["obj"]},"workerd::IoContext::addFunctor":{addFunctor:["func"]},"workerd::IoContext::addObjectReverse":{addObjectReverse:["obj"]},"workerd::IoContext::waitForDeferredProxy":{waitForDeferredProxy:["promise"]},"workerd::IoContext::awaitDeferredProxy":{awaitDeferredProxy:["js","promise"]},"workerd::IoContext::Runnable":{run:["lock"]},"workerd::IoContext::IdentityFunc::IdentityFunc":{"operator()":["value"]},"workerd::IoContext::awaitIoImpl":{awaitIoImpl:["js","promise","ilOrCs","func"]},"workerd::IoContext::promiseForExceptionOrT":{promiseForExceptionOrT:["promise"]},"workerd::IoContext::throwOrReturnResult":{throwOrReturnResult:["js","exceptionOrResult"]},"workerd::lockOutputWhile":{lockOutputWhile:["promise"]},"workerd::awaitIo":{awaitIo:["js","promise","func"]},"workerd::awaitIoWithInputLock":{awaitIoWithInputLock:["js","promise","func"]},"workerd::awaitIoLegacy":{awaitIoLegacy:["js","promise"]},"workerd::awaitIoLegacyWithInputLock":{awaitIoLegacyWithInputLock:["js","promise"]},"workerd::promiseForExceptionOrT":{promiseForExceptionOrT:["promise"]},"workerd::throwOrReturnResult":{throwOrReturnResult:["js","exceptionOrResult"]},"workerd::awaitIoImpl":{awaitIoImpl:["js","promise","ilOrCs","func"]},"workerd::awaitJs":{awaitJs:["js","jsPromise"]},"workerd::makeReentryCallback":{makeReentryCallback:["func"]},"workerd::addFunctor":{addFunctor:["func"]},"workerd::blockConcurrencyWhile":{blockConcurrencyWhile:["js","callback"]},"workerd::api::MessagePort::PostMessageOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::MessagePort::PostMessageOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::MessagePort::PostMessageOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::MessagePort":{postMessage:["js","data","options"],close:["js"],start:["js"],getOnMessage:["js"],setOnMessage:["js","value"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],deliver:["js","data"],entangle:["port1","port2"],dispatchMessage:["js","value"]},"workerd::api::MessagePort::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::MessagePort::registerMembers":{registerMembers:["registry"]},"workerd::api::MessageChannel":{$constructor:["js","port2"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::MessageChannel::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::MessageChannel::registerMembers":{registerMembers:["registry"]},"workerd::api::MessageChannelModule":{jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::MessageChannelModule::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::MessageChannelModule::registerMembers":{registerMembers:["registry"]},"workerd::api::registerMessageChannelModule":{registerMessageChannelModule:["registry","featureFlags"]},"workerd::api::getInternalMessageChannelModuleBundle":{getInternalMessageChannelModuleBundle:["featureFlags"]},"workerd::api::MessageEvent":{$constructor:["js","type","initializer","lastEventId","source","urlForOrigin"],getData:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::MessageEvent::Initializer::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::MessageEvent::Initializer::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::MessageEvent::Initializer::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::MessageEvent::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::MessageEvent::registerMembers":{registerMembers:["registry"]},"workerd::api::OpenEvent":{jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::OpenEvent::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::OpenEvent::registerMembers":{registerMembers:["registry"]},"workerd::api::ErrorEvent::ErrorEventInit::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::ErrorEvent::ErrorEventInit::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::ErrorEvent::ErrorEventInit::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::ErrorEvent":{$constructor:["js","type","init"],getError:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::ErrorEvent::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::ErrorEvent::registerMembers":{registerMembers:["registry"]},"workerd::api::PromiseRejectionEvent":{$constructor:["type","promise","reason"],getPromise:["js"],getReason:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::PromiseRejectionEvent::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::PromiseRejectionEvent::registerMembers":{registerMembers:["registry"]},"workerd::util::Queue::Queue":{push:["value"],swap:["other"]},"workerd::util::Queue::Queue::emplace":{emplace:["args"]},"workerd::util::Queue::Queue::drainTo":{drainTo:["callback"]},"workerd::util::Queue::Queue::deleteIf":{deleteIf:["callback"]},"workerd::util::Queue::Queue::takeIf":{takeIf:["callback"]},"workerd::util::Queue::Queue::forEach":{forEach:["callback"]},"workerd::api::CloseEvent":{$constructor:["js","type","initializer","clean"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::CloseEvent::Initializer::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::CloseEvent::Initializer::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::CloseEvent::Initializer::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::CloseEvent::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::CloseEvent::registerMembers":{registerMembers:["registry"]},"workerd::api::WebSocketPair::IteratorState":{visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"]},"workerd::api::WebSocketPair":{$constructor:["js","second"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],iteratorNext:["js","state"],visitForGc:["visitor"]},"workerd::api::WebSocketPair::PairIterator":{next:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::WebSocketPair::PairIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::WebSocketPair::PairIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::WebSocketPair::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::WebSocketPair::registerMembers":{registerMembers:["registry"]},"workerd::api::WebSocket":{initNative:["ioContext","ws","tags","closedOutgoingConn"],$constructor:["js","url","protocols","package"],hibernatableFromNative:["js","ws","package"],initConnection:["js"],couple:["other","request"],acceptAsHibernatable:["tags"],tryReleaseNative:["js"],initiateHibernatableRelease:["js","ws","tags","releaseState"],accept:["js"],internalAccept:["js","cs"],startReadLoop:["js","cs"],send:["js","message"],close:["js","code","reason"],serializeAttachment:["js","attachment"],deserializeAttachment:["js"],setAutoResponseStatus:["time","autoResponsePromise"],sendAutoResponse:["message","ws"],getPreferredExtensions:["ctx"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"],setPeer:["peer"],dispatchOpen:["js"],ensurePumping:["js"],pump:["context","outgoingMessages","ws","native","autoResponse","observer"],readLoop:["cs","maxMessageSize"],reportError:["js","err"],assertNoError:["js"]},"workerd::api::WebSocket::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::WebSocket::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::WebSocket::AwaitingAcceptanceOrCoupling":{$constructor:["ws"]},"workerd::api::WebSocket::Accepted":{$constructor:["ws","native","context"],createAbortTask:["native","context"]},"workerd::api::WebSocket::Accepted::WrappedWebSocket":{$constructor:["ws"],initiateHibernatableRelease:["js","ws","tags","state"]},"workerd::api::WebSocket::AutoResponse":{jsgGetMemoryInfo:["tracker"]},"workerd::api::RpcSerializerExternalHandler":{$constructor:["stubOwnership","getStreamHandlerFunc"],write:["callback"],writeStream:["callback"],build:["orphanage"],addStubDisposer:["disposer"],serializeFunction:["js","serializer","func"],serializeProxy:["js","serializer","proxy"]},"workerd::api::RpcDeserializerExternalHandler":{$constructor:["externals","disposalGroup","streamSink"],setLastStream:["stream"]},"workerd::api::JsRpcTarget":{$constructor:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],serialize:["js","serializer"]},"workerd::api::JsRpcTarget::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::JsRpcTarget::registerMembers":{registerMembers:["registry"]},"workerd::api::JsRpcClientProvider":{getClientForOneCall:["js","path"]},"workerd::api::JsRpcPromise":{$constructor:["inner","weakRef","pipeline"],resolve:["js","result"],dispose:["js"],getClientForOneCall:["js","path"],call:["args"],then:["js","handler","errorHandler"],catch:["js","errorHandler"],finally:["js","onFinally"],getProperty:["js","name"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::JsRpcPromise::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::JsRpcPromise::registerMembers":{registerMembers:["registry"]},"workerd::api::JsRpcProperty":{$constructor:["parent","name"],getClientForOneCall:["js","path"],call:["args"],then:["js","handler","errorHandler"],catch:["js","errorHandler"],finally:["js","onFinally"],getProperty:["js","name"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::JsRpcProperty::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::JsRpcProperty::registerMembers":{registerMembers:["registry"]},"workerd::api::JsRpcStub":{$constructor:["js","object"],getClientForOneCall:["js","path"],dup:["js"],call:["args"],getRpcMethod:["js","name"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],serialize:["js","serializer"],deserialize:["js","tag","deserializer"]},"workerd::api::JsRpcStub::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::JsRpcStub::registerMembers":{registerMembers:["registry"]},"workerd::api::RpcStubDisposalGroup":{setCallPipeline:["value"]},"workerd::api::JsRpcSessionCustomEvent":{$constructor:["typeId","wrapperModule","paf"],run:["incomingRequest","entrypointName","props","waitUntilTasks"],sendRpc:["httpOverCapnpFactory","byteStreamFactory","dispatcher"],failed:["e"]},"workerd::api::ReadResult::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::ReadResult::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::ReadResult::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::ReadResult":{visitForGc:["visitor"]},"workerd::api::StreamQueuingStrategy::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::StreamQueuingStrategy::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::StreamQueuingStrategy::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::UnderlyingSource::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::UnderlyingSource::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::UnderlyingSource::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::UnderlyingSink::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::UnderlyingSink::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::UnderlyingSink::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::Transformer::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::Transformer::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::Transformer::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::WritableStreamSink":{write:["pieces"],tryPumpFrom:["input","end"],abort:["reason"]},"workerd::api::ReadableStreamSource":{tryRead:["buffer","minBytes","maxBytes"],pumpTo:["output","end"],tryGetLength:["encoding"],readAllBytes:["limit"],readAllText:["limit","option"],cancel:["reason"],tryTee:["limit"]},"workerd::api::PipeToOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::PipeToOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::PipeToOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::StreamStates::Erroring":{$constructor:["reason"],visitForGc:["visitor"]},"workerd::api::ReadableStreamController::Reader":{attach:["controller","closedPromise"]},"workerd::api::ReadableStreamController::TeeController::Branch":{doClose:["js"],doError:["js","reason"],handleData:["js","result"]},"workerd::api::ReadableStreamController::TeeController::BranchPtr":{$constructor:["other"],doClose:["js"],doError:["js","reason"],handleData:["js","result"],"operator==":["other"]},"workerd::api::ReadableStreamController::TeeController":{addBranch:["branch"],close:["js"],error:["js","reason"],ensurePulling:["js"],removeBranch:["branch","maybeJs"]},"workerd::api::ReadableStreamController::PipeController":{tryGetErrored:["js"],cancel:["js","reason"],close:["js"],error:["js","reason"],release:["js","maybeError"],tryPumpTo:["sink","end"],read:["js"]},"workerd::api::ReadableStreamController":{setOwnerRef:["stream"],read:["js","byobOptions"],drainingRead:["js","maxRead"],pipeTo:["js","destination","options"],cancel:["js","reason"],tee:["js"],lockReader:["js","reader"],releaseReader:["reader","maybeJs"],visitForGc:["visitor"],readAllBytes:["js","limit"],readAllText:["js","limit"],tryGetLength:["encoding"],setup:["js","maybeUnderlyingSource","maybeQueuingStrategy"],pumpTo:["js","sink","end"],detach:["js","ignoreDisturbed"],jsgGetMemoryInfo:["tracker"]},"workerd::api::WritableStreamController::Writer":{attach:["js","controller","closedPromise","readyPromise"],replaceReadyPromise:["js","readyPromise"]},"workerd::api::WritableStreamController::PendingAbort":{$constructor:["js","reason","reject","reject"],complete:["js"],fail:["js","reason"],whenResolved:["js"],visitForGc:["visitor"],dequeue:["maybePendingAbort"],jsgGetMemoryInfo:["tracker"]},"workerd::api::WritableStreamController::PendingAbort::whenResolved":{whenResolved:["func","errFunc"]},"workerd::api::WritableStreamController":{setOwnerRef:["stream"],write:["js","value"],close:["js","markAsHandled"],flush:["js","markAsHandled"],abort:["js","reason"],tryPipeFrom:["js","source","options"],removeSink:["js"],detach:["js"],lockWriter:["js","writer"],releaseWriter:["writer","maybeJs"],isErroring:["js"],visitForGc:["visitor"],setup:["js","underlyingSink","queuingStrategy"],jsgGetMemoryInfo:["info"]},"workerd::api::ReaderLocked":{$constructor:["reader","closedFulfiller","canceler"],visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"]},"workerd::api::WriterLocked":{$constructor:["writer","closedFulfiller","readyFulfiller"],visitForGc:["visitor"],setReadyFulfiller:["js","pair"],jsgGetMemoryInfo:["tracker"]},"workerd::api::maybeResolvePromise":{maybeResolvePromise:["js","maybeResolver","t"]},"workerd::api::maybeRejectPromise":{maybeRejectPromise:["js","maybeResolver","reason"]},"workerd::api::rejectedMaybeHandledPromise":{rejectedMaybeHandledPromise:["js","reason","handled"]},"workerd::TerminalStates::TerminalStates::isTerminal":{isTerminal:["machine"]},"workerd::TransitionLock::TransitionLock":{$constructor:["m"]},"workerd::StateMachine::StateMachine":{$constructor:["other"],"operator=":["other"],requireActiveUnsafe:["message"]},"workerd::StateMachine::StateMachine::create":{create:["args"]},"workerd::StateMachine::StateMachine::whenState":{whenState:["func"]},"workerd::StateMachine::StateMachine::visit":{visit:["visitor"]},"workerd::StateMachine::StateMachine::transitionTo":{transitionTo:["args"]},"workerd::StateMachine::StateMachine::forceTransitionTo":{forceTransitionTo:["args"]},"workerd::StateMachine::StateMachine::transitionFromTo":{transitionFromTo:["args"]},"workerd::StateMachine::StateMachine::whenActive":{whenActive:["func"]},"workerd::StateMachine::StateMachine::whenActiveOr":{whenActiveOr:["func","defaultValue"]},"workerd::StateMachine::StateMachine::deferTransitionTo":{deferTransitionTo:["args"]},"workerd::StateMachine::StateMachine::visitForGc":{visitForGc:["visitor"]},"workerd::StateMachine::StateMachine::visitStateNames":{visitStateNames:["visitor"]},"workerd::StateMachine::StateMachine::visitStateNamesImpl":{visitStateNamesImpl:["visitor"]},"workerd::StateMachine::StateMachine::visitImpl":{visitImpl:["visitor"]},"workerd::StateMachine::StateMachine::visitConstImpl":{visitConstImpl:["visitor"]},"workerd::StateMachine::StateMachine::visitPendingStates":{visitPendingStates:["visitor"]},"workerd::StateMachine::StateMachine::visitPendingStatesImpl":{visitPendingStatesImpl:["visitor"]},"workerd::StateMachine::StateMachine::visitForGcImpl":{visitForGcImpl:["visitor"]},"workerd::StateMachine::StateMachine::OperationScope":{$constructor:["m"]},"workerd::api::ReaderImpl":{$constructor:["reader"],attach:["controller","closedPromise"],cancel:["js","maybeReason"],lockToStream:["js","stream"],read:["js","byobOptions"],releaseLock:["js"],visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"]},"workerd::api::ReadableStreamDefaultReader":{$constructor:["js","stream"],cancel:["js","reason"],read:["js"],releaseLock:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],attach:["controller","closedPromise"],lockToStream:["js","stream"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::ReadableStreamDefaultReader::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::ReadableStreamDefaultReader::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::ReadableStreamBYOBReader":{$constructor:["js","stream"],cancel:["js","reason"],read:["js","byobBuffer","options"],readAtLeast:["js","minBytes","byobBuffer"],releaseLock:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],attach:["controller","closedPromise"],lockToStream:["js","stream"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::ReadableStreamBYOBReader::ReadableStreamBYOBReaderReadOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::ReadableStreamBYOBReader::ReadableStreamBYOBReaderReadOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::ReadableStreamBYOBReader::ReadableStreamBYOBReaderReadOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::ReadableStreamBYOBReader::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::ReadableStreamBYOBReader::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::DrainingReader":{create:["js","stream"],read:["js","maxRead"],cancel:["js","maybeReason"],releaseLock:["js"],attach:["controller","closedPromise"],visitForGc:["visitor"]},"workerd::api::ReadableStream":{nextFunction:["js","state"],returnFunction:["js","state","value"],$constructor:["js","underlyingSource","queuingStrategy"],from:["js","generator"],cancel:["js","reason"],getReader:["js","options"],pipeThrough:["js","transform","options"],pipeTo:["js","destination","options"],tee:["js"],inspectState:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],detach:["js","ignoreDisturbed"],tryGetLength:["encoding"],pumpTo:["js","sink","end"],onEof:["js"],signalEof:["js"],serialize:["js","serializer"],deserialize:["js","tag","deserializer"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::ReadableStream::GetReaderOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::ReadableStream::GetReaderOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::ReadableStream::GetReaderOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::ReadableStream::ValuesOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::ReadableStream::ValuesOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::ReadableStream::ValuesOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::ReadableStream::ReadableStreamAsyncIterator":{next:["js"],return:["js","value"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::ReadableStream::ReadableStreamAsyncIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::ReadableStream::ReadableStreamAsyncIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::ReadableStream::Transform::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::ReadableStream::Transform::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::ReadableStream::Transform::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::ReadableStream::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::ReadableStream::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::QueuingStrategyInit::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::QueuingStrategyInit::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::QueuingStrategyInit::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::ByteLengthQueuingStrategy":{$constructor:["js","init"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],size:["js"]},"workerd::api::ByteLengthQueuingStrategy::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::ByteLengthQueuingStrategy::registerMembers":{registerMembers:["registry"]},"workerd::api::CountQueuingStrategy":{$constructor:["js","init"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],size:["js"]},"workerd::api::CountQueuingStrategy::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::CountQueuingStrategy::registerMembers":{registerMembers:["registry"]},"workerd::api::url::URLSearchParams::IteratorState::IteratorState":{$constructor:["self","t"],visitForGc:["visitor"]},"workerd::api::url::URLSearchParams":{$constructor:["js","init"],append:["name","value"],delete:["js","name","value"],get:["name"],getAll:["name"],has:["js","name","value"],set:["name","value"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],visitForMemoryInfo:["tracker"],entryIteratorNext:["js","state"],keyIteratorNext:["js","state"],valueIteratorNext:["js","state"]},"workerd::api::url::URLSearchParams::EntryIterator":{next:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::url::URLSearchParams::EntryIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::url::URLSearchParams::EntryIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::url::URLSearchParams::KeyIterator":{next:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::url::URLSearchParams::KeyIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::url::URLSearchParams::KeyIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::url::URLSearchParams::ValueIterator":{next:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::url::URLSearchParams::ValueIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::url::URLSearchParams::ValueIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::url::URLSearchParams::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::url::URLSearchParams::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::url::URL":{$constructor:["js","url","base"],parse:["js","url","base"],setHref:["js","value"],setProtocol:["value"],setUsername:["value"],setPassword:["value"],setHost:["value"],setHostname:["value"],setPort:["value"],setPathname:["value"],setSearch:["value"],setHash:["value"],getSearchParams:["js"],canParse:["url","base"],createObjectURL:["js","object"],revokeObjectURL:["js","object_url"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::url::URL::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::url::URL::registerMembers":{registerMembers:["registry"]},"workerd::api::URL":{$constructor:["u","url","base"],setHref:["js","value"],setProtocol:["value"],setUsername:["value"],setPassword:["value"],setHost:["value"],setHostname:["value"],setPort:["value"],setPathname:["value"],setSearch:["value"],getSearchParams:["js"],setHash:["value"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::URL::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::URL::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::URL::RefcountedUrl::RefcountedUrl":{$constructor:["args"]},"workerd::api::URLSearchParams::IteratorState":{visitForGc:["visitor"]},"workerd::api::URLSearchParams":{$constructor:["js","init"],append:["name","value"],delete:["name"],get:["name"],getAll:["name"],has:["name"],set:["name","value"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],visitForMemoryInfo:["tracker"],entryIteratorNext:["js","state"],keyIteratorNext:["js","state"],valueIteratorNext:["js","state"]},"workerd::api::URLSearchParams::EntryIterator":{next:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::URLSearchParams::EntryIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::URLSearchParams::EntryIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::URLSearchParams::KeyIterator":{next:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::URLSearchParams::KeyIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::URLSearchParams::KeyIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::URLSearchParams::ValueIterator":{next:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::URLSearchParams::ValueIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::URLSearchParams::ValueIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::URLSearchParams::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::URLSearchParams::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::Body::RefcountedBytes":{$constructor:["bytes"],jsgGetMemoryInfo:["tracker"]},"workerd::api::Body::Buffer":{$constructor:["blob"],clone:["js"],jsgGetMemoryInfo:["tracker"]},"workerd::api::Body::Impl":{jsgGetMemoryInfo:["tracker"]},"workerd::api::Body::ExtractedBody":{$constructor:["stream","source","contentType"]},"workerd::api::Body":{extractBody:["js","init"],$constructor:["js","init","headers"],getBodyBuffer:["js"],rewindBody:["js"],arrayBuffer:["js"],bytes:["js"],text:["js"],formData:["js"],json:["js"],blob:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],visitForMemoryInfo:["tracker"],clone:["js"],visitForGc:["visitor"]},"workerd::api::Body::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Body::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::Fetcher":{$constructor:["outgoingFactory","requiresHost","isInHouse"],getClient:["ioContext","cfStr","operationName"],getClientWithTracing:["ioContext","cfStr","operationName"],getSubrequestChannel:["ioContext"],parseUrl:["js","url"],connect:["js","address","options"],fetch:["js","requestOrUrl","requestInit"],get:["js","url","type"],put:["js","url","body","options"],delete:["js","url"],queue:["js","queueName","messages"],scheduled:["js","options"],getRpcMethod:["js","name"],getRpcMethodInternal:["js","name"],getRpcMethodForTestOnly:["js","name"],getClientForOneCall:["js","path"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],serialize:["js","serializer"],deserialize:["js","tag","deserializer"]},"workerd::api::Fetcher::OutgoingFactory":{newSingleUseClient:["cfStr"]},"workerd::api::Fetcher::CrossContextOutgoingFactory":{newSingleUseClient:["context","cfStr"],getSubrequestChannel:["context"]},"workerd::api::Fetcher::PutOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::Fetcher::PutOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::Fetcher::PutOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::Fetcher::ServiceBindingQueueMessage::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::Fetcher::ServiceBindingQueueMessage::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::Fetcher::ServiceBindingQueueMessage::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::Fetcher::QueueResult::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::Fetcher::QueueResult::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::Fetcher::QueueResult::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::Fetcher::ScheduledOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::Fetcher::ScheduledOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::Fetcher::ScheduledOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::Fetcher::ScheduledResult::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::Fetcher::ScheduledResult::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::Fetcher::ScheduledResult::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::Fetcher::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Fetcher::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::RequestInitializerDict::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::RequestInitializerDict::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::RequestInitializerDict::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::RequestInitializerDict":{jsgConfiguration:["flags"]},"workerd::api::RequestInitializerDict::registerTypeScriptDynamicOverride":{registerTypeScriptDynamicOverride:["registry","flags"]},"workerd::api::Request":{tryParseRedirect:["redirect"],$constructor:["detail","redacted","eventInfo","redirect","headers","fetcher","signal","cf","body","thisSignal","cacheMode","responseBodyEncoding"],setMethodEnum:["newMethod"],shallowCopyHeadersTo:["out"],serializeCfBlobJson:["js"],coerce:["js","input","init"],clone:["js"],getHeaders:["js"],getThisSignal:["js"],clearSignalIfIgnoredForSubrequest:["js"],getCf:["js"],getCache:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],serialize:["js","serializer","initDictHandler"],deserialize:["js","tag","deserializer","initDictHandler"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"],getUnredacted:["js"]},"workerd::api::Request::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Request::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::Response":{$constructor:["trace","responseInfo","maybeInit","headers","cf","body","urlList","webSocket","bodyEncoding"],redirect:["js","url","status"],error:["js"],clone:["js"],json:["js","any","maybeInit"],send:["js","outer","options","maybeReqHeaders"],getHeaders:["js"],getWebSocket:["js"],getCf:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],serialize:["js","serializer","initDictHandler","streamHandler"],deserialize:["js","tag","deserializer","initDictHandler","streamHandler"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::Response::InitializerDict::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::Response::InitializerDict::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::Response::InitializerDict::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::Response::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Response::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::FetchEvent":{$constructor:["type"],getResponsePromise:["js"],respondWith:["js","promise"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::FetchEvent::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::FetchEvent::registerMembers":{registerMembers:["registry"]},"workerd::api::ColoLocalActorNamespace":{$constructor:["channel"],get:["js","actorId"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::ColoLocalActorNamespace::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::ColoLocalActorNamespace::registerMembers":{registerMembers:["registry"]},"workerd::api::DurableObjectId":{$constructor:["id"],equals:["other"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],visitForMemoryInfo:["tracker"]},"workerd::api::DurableObjectId::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::DurableObjectId::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::DurableObject":{$constructor:["id","outgoingFactory","requiresHost"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::DurableObject::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::DurableObject::registerMembers":{registerMembers:["registry"]},"workerd::api::DurableObjectNamespace::ActorChannelFactory":{getGlobalActor:["id","locationHint","mode","enableReplicaRouting","routingMode","parentSpan","version"]},"workerd::api::DurableObjectNamespace":{$constructor:["factory","idFactory"],newUniqueId:["js","options"],idFromName:["js","name"],idFromString:["js","id"],get:["js","id","options"],getByName:["js","name","options"],getExisting:["js","id","options"],jurisdiction:["js","maybeJurisdiction"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],getImpl:["js","mode","id","options"]},"workerd::api::DurableObjectNamespace::NewUniqueIdOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::DurableObjectNamespace::NewUniqueIdOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::DurableObjectNamespace::NewUniqueIdOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::DurableObjectNamespace::GetDurableObjectOptions::VersionOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::DurableObjectNamespace::GetDurableObjectOptions::VersionOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::DurableObjectNamespace::GetDurableObjectOptions::VersionOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::DurableObjectNamespace::GetDurableObjectOptions::VersionOptions":{jsgConfiguration:["flags"]},"workerd::api::DurableObjectNamespace::GetDurableObjectOptions::VersionOptions::registerTypeScriptDynamicOverride":{registerTypeScriptDynamicOverride:["registry","flags"]},"workerd::api::DurableObjectNamespace::GetDurableObjectOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::DurableObjectNamespace::GetDurableObjectOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::DurableObjectNamespace::GetDurableObjectOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::DurableObjectNamespace::GetDurableObjectOptions":{jsgConfiguration:["flags"]},"workerd::api::DurableObjectNamespace::GetDurableObjectOptions::registerTypeScriptDynamicOverride":{registerTypeScriptDynamicOverride:["registry","flags"]},"workerd::api::DurableObjectNamespace::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::DurableObjectNamespace::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::GlobalActorOutgoingFactory":{$constructor:["channelIdOrFactory","id","locationHint","mode","enableReplicaRouting","routingMode","version"],newSingleUseClient:["cfStr"]},"workerd::api::LocalActorOutgoingFactory":{$constructor:["channelId","actorId"],newSingleUseClient:["cfStr"]},"workerd::api::ReplicaActorOutgoingFactory":{$constructor:["channel","actorId"],newSingleUseClient:["cfStr"]},"workerd::api::DurableObjectClass":{$constructor:["channel"],getChannel:["ioctx"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],serialize:["js","serializer"],deserialize:["js","tag","deserializer"]},"workerd::api::DurableObjectClass::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::DurableObjectClass::registerMembers":{registerMembers:["registry"]},"workerd::api::Container":{$constructor:["rpcClient","running"],start:["js","options"],monitor:["js"],destroy:["js","error"],signal:["js","signo"],getTcpPort:["js","port"],setInactivityTimeout:["js","durationMs"],interceptOutboundHttp:["js","addr","binding"],interceptAllOutboundHttp:["js","binding"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::Container::StartupOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::Container::StartupOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::Container::StartupOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::Container::StartupOptions":{jsgConfiguration:["flags"]},"workerd::api::Container::StartupOptions::registerTypeScriptDynamicOverride":{registerTypeScriptDynamicOverride:["registry","flags"]},"workerd::api::Container::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Container::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::DurableObjectStorageOperations::GetOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::DurableObjectStorage::GetOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::DurableObjectTransaction::GetOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::DurableObjectStorageOperations::GetOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::DurableObjectStorage::GetOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::DurableObjectTransaction::GetOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::DurableObjectStorageOperations::GetOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::DurableObjectStorage::GetOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::DurableObjectTransaction::GetOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::DurableObjectStorageOperations":{get:["js","keys","options"],getAlarm:["js","options"],compileListOptions:["maybeOptions"],list:["js","options"],put:["js","keyOrEntries","value","options","optionsTypeHandler"],delete:["js","keys","options"],setAlarm:["js","scheduledTime","options"],deleteAlarm:["js","options"],readOnlyOp:["op"],getCache:["op"],getOne:["js","key","options"],getMultiple:["js","keys","options"],putOne:["js","key","value","options"],putMultiple:["js","entries","options"],deleteOne:["js","key","options"],deleteMultiple:["js","keys","options"]},"workerd::api::DurableObjectStorage":{get:["js","keys","options"],getAlarm:["js","options"],compileListOptions:["maybeOptions"],list:["js","options"],put:["js","keyOrEntries","value","options","optionsTypeHandler"],delete:["js","keys","options"],setAlarm:["js","scheduledTime","options"],deleteAlarm:["js","options"],readOnlyOp:["op"],getCache:["op"],getOne:["js","key","options"],getMultiple:["js","keys","options"],putOne:["js","key","value","options"],putMultiple:["js","entries","options"],deleteOne:["js","key","options"],deleteMultiple:["js","keys","options"],$constructor:["js","cache","enableSql","primaryActorChannel","primaryActorId"],getSqliteDb:["js"],getSqliteKv:["js"],transaction:["js","closure","options"],transactionSync:["js","callback"],deleteAll:["js","options"],sync:["js"],getSql:["js"],getKv:["js"],getBookmarkForTime:["timestamp"],onNextSessionRestoreBookmark:["bookmark"],waitForBookmark:["bookmark"],getPrimary:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"]},"workerd::api::DurableObjectTransaction":{get:["js","keys","options"],getAlarm:["js","options"],compileListOptions:["maybeOptions"],list:["js","options"],put:["js","keyOrEntries","value","options","optionsTypeHandler"],delete:["js","keys","options"],setAlarm:["js","scheduledTime","options"],deleteAlarm:["js","options"],readOnlyOp:["op"],getCache:["op"],getOne:["js","key","options"],getMultiple:["js","keys","options"],putOne:["js","key","value","options"],putMultiple:["js","entries","options"],deleteOne:["js","key","options"],deleteMultiple:["js","keys","options"],$constructor:["cacheTxn"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::DurableObjectStorageOperations::GetAlarmOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::DurableObjectStorage::GetAlarmOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::DurableObjectTransaction::GetAlarmOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::DurableObjectStorageOperations::GetAlarmOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::DurableObjectStorage::GetAlarmOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::DurableObjectTransaction::GetAlarmOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::DurableObjectStorageOperations::GetAlarmOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::DurableObjectStorage::GetAlarmOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::DurableObjectTransaction::GetAlarmOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::DurableObjectStorageOperations::ListOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::DurableObjectStorage::ListOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::DurableObjectTransaction::ListOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::DurableObjectStorageOperations::ListOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::DurableObjectStorage::ListOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::DurableObjectTransaction::ListOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::DurableObjectStorageOperations::ListOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::DurableObjectStorage::ListOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::DurableObjectTransaction::ListOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::DurableObjectStorageOperations::PutOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::DurableObjectStorage::PutOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::DurableObjectTransaction::PutOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::DurableObjectStorageOperations::PutOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::DurableObjectStorage::PutOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::DurableObjectTransaction::PutOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::DurableObjectStorageOperations::PutOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::DurableObjectStorage::PutOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::DurableObjectTransaction::PutOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::DurableObjectStorageOperations::SetAlarmOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::DurableObjectStorage::SetAlarmOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::DurableObjectTransaction::SetAlarmOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::DurableObjectStorageOperations::SetAlarmOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::DurableObjectStorage::SetAlarmOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::DurableObjectTransaction::SetAlarmOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::DurableObjectStorageOperations::SetAlarmOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::DurableObjectStorage::SetAlarmOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::DurableObjectTransaction::SetAlarmOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::DurableObjectStorageOperations::configureOptions":{configureOptions:["options"]},"workerd::api::DurableObjectStorage::configureOptions":{configureOptions:["options"]},"workerd::api::DurableObjectTransaction::configureOptions":{configureOptions:["options"]},"workerd::api::DurableObjectStorage::TransactionOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::DurableObjectStorage::TransactionOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::DurableObjectStorage::TransactionOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::DurableObjectStorage::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::DurableObjectStorage::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::DurableObjectTransaction::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::DurableObjectTransaction::registerMembers":{registerMembers:["registry"]},"workerd::api::DurableObjectFacets":{$constructor:["facetManager"],get:["js","name","getStartupOptions"],abort:["js","name","reason"],delete:["js","name"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::DurableObjectFacets::StartupOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::DurableObjectFacets::StartupOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::DurableObjectFacets::StartupOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::DurableObjectFacets::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::DurableObjectFacets::registerMembers":{registerMembers:["registry"]},"workerd::api::ActorState":{$constructor:["actorId","transient","persistent"],getId:["js"],getTransient:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::ActorState::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::ActorState::registerMembers":{registerMembers:["registry"]},"workerd::api::WebSocketRequestResponsePair":{$constructor:["js","request","response"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::WebSocketRequestResponsePair::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::WebSocketRequestResponsePair::registerMembers":{registerMembers:["registry"]},"workerd::api::DurableObjectState":{$constructor:["js","actorId","exports","props","storage","container","containerRunning","facetManager","version"],waitUntil:["promise"],getExports:["js"],getProps:["js"],getId:["js"],getFacets:["js"],blockConcurrencyWhile:["js","callback"],abort:["js","reason"],maybeInitHibernationManager:["actor"],acceptWebSocket:["ws","tags"],getWebSockets:["js","tag"],setWebSocketAutoResponse:["maybeReqResp"],getWebSocketAutoResponse:["js"],getWebSocketAutoResponseTimestamp:["ws"],setHibernatableWebSocketEventTimeout:["timeoutMs"],getTags:["js","ws"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],visitForMemoryInfo:["tracker"]},"workerd::api::DurableObjectState::Version::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::DurableObjectState::Version::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::DurableObjectState::Version::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::DurableObjectState::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::DurableObjectState::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::AnalyticsEngine":{$constructor:["logfwdrChannel","dataset","version","ownerId"],writeDataPoint:["js","event"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],millisToNanos:["m"],writeDataPointNoOutputLock:["js","event"]},"workerd::api::AnalyticsEngine::AnalyticsEngineEvent::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::AnalyticsEngine::AnalyticsEngineEvent::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::AnalyticsEngine::AnalyticsEngineEvent::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::AnalyticsEngine::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::AnalyticsEngine::registerMembers":{registerMembers:["registry"]},"workerd::api::Base64Module":{decodeArray:["js","source"],encodeArray:["js","source"],encodeArrayToString:["source"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::Base64Module::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Base64Module::registerMembers":{registerMembers:["registry"]},"workerd::api::registerBase64Module":{registerBase64Module:["registry","featureFlags"]},"workerd::api::getInternalBase64ModuleBundle":{getInternalBase64ModuleBundle:["featureFlags"]},"workerd::api::CacheQueryOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::CacheQueryOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::CacheQueryOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::Cache":{$constructor:["cacheName"],add:["request"],addAll:["requests"],match:["js","request","options","flags"],put:["js","request","response","flags"],delete:["js","request","options","flags"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],getHttpClient:["context","cfBlobJson","traceContext","enableCompatFlags"]},"workerd::api::Cache::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Cache::registerMembers":{registerMembers:["registry"]},"workerd::api::CacheStorage":{$constructor:["js"],open:["js","cacheName"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::CacheStorage::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::CacheStorage::registerMembers":{registerMembers:["registry"]},"workerd::api::WritableStreamDefaultWriter":{$constructor:["js","stream"],abort:["js","reason"],close:["js"],write:["js","chunk"],releaseLock:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],attach:["js","controller","closedPromise","readyPromise"],lockToStream:["js","stream"],replaceReadyPromise:["js","readyPromise"],visitForMemoryInfo:["tracker"],isReady:["js"],visitForGc:["visitor"]},"workerd::api::WritableStreamDefaultWriter::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::WritableStreamDefaultWriter::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::WritableStream":{$constructor:["js","underlyingSink","queuingStrategy","maybeHighWaterMark","maybeClosureWaitable"],removeSink:["js"],detach:["js"],abort:["js","reason"],close:["js"],flush:["js"],getWriter:["js"],inspectState:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],serialize:["js","serializer"],deserialize:["js","tag","deserializer"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::WritableStream::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::WritableStream::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::WritableStream::WritableImpl::WritableImpl::WriteRequest":{visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"]},"workerd::api::WritableStream::WritableImpl::WritableImpl":{$constructor:["js","owner","abortSignal"],abort:["js","self","reason"],advanceQueueIfNeeded:["js","self"],close:["js","self"],dealWithRejection:["js","self","reason"],doClose:["js"],doError:["js","reason"],error:["js","self","reason"],finishErroring:["js","self"],finishInFlightClose:["js","self","reason"],finishInFlightWrite:["js","self","reason"],rejectCloseAndClosedPromiseIfNeeded:["js"],setup:["js","self","underlyingSink","queuingStrategy"],startErroring:["js","self","reason"],updateBackpressure:["js"],write:["js","self","value"],cancelPendingWrites:["js","reason"],visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"]},"workerd::api::WritableStream::WritableImpl::WritableImpl::Algorithms":{$constructor:["other"],"operator=":["other"],visitForGc:["visitor"]},"workerd::api::CryptoKeyUsageSet":{"operator&":["other"],"operator|":["other"],"operator&=":["other"],"operator|=":["other"],"operator<=":["superset"],"operator==":["other"],byName:["name"],validate:["normalizedName","ctx","actual","mask"],$constructor:["set"]},"workerd::api::CryptoKeyUsageSet::map":{map:["f"]},"workerd::api::CryptoKey::KeyAlgorithm::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::CryptoKey::KeyAlgorithm::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::CryptoKey::KeyAlgorithm::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::CryptoKey::KeyAlgorithm":{jsgGetMemoryInfo:["tracker"]},"workerd::api::CryptoKey::AesKeyAlgorithm::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::CryptoKey::AesKeyAlgorithm::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::CryptoKey::AesKeyAlgorithm::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::CryptoKey::AesKeyAlgorithm":{jsgGetMemoryInfo:["tracker"]},"workerd::api::CryptoKey::HmacKeyAlgorithm::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::CryptoKey::HmacKeyAlgorithm::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::CryptoKey::HmacKeyAlgorithm::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::CryptoKey::HmacKeyAlgorithm":{jsgGetMemoryInfo:["tracker"]},"workerd::api::CryptoKey::RsaKeyAlgorithm":{clone:["js"],jsgGetMemoryInfo:["tracker"]},"workerd::api::CryptoKey::RsaKeyAlgorithm::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::CryptoKey::RsaKeyAlgorithm::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::CryptoKey::RsaKeyAlgorithm::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::CryptoKey::EllipticKeyAlgorithm::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::CryptoKey::EllipticKeyAlgorithm::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::CryptoKey::EllipticKeyAlgorithm::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::CryptoKey::EllipticKeyAlgorithm":{jsgGetMemoryInfo:["tracker"]},"workerd::api::CryptoKey::ArbitraryKeyAlgorithm::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::CryptoKey::ArbitraryKeyAlgorithm::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::CryptoKey::ArbitraryKeyAlgorithm::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::CryptoKey::AsymmetricKeyDetails::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::CryptoKey::AsymmetricKeyDetails::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::CryptoKey::AsymmetricKeyDetails::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::CryptoKey":{getAsymmetricKeyDetails:["js"],getAlgorithm:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],$constructor:["impl"],"operator==":["other"],visitForMemoryInfo:["tracker"],verifyX509Public:["x509"],verifyX509Private:["x509"],visitForGc:["visitor"]},"workerd::api::CryptoKey::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::CryptoKey::registerMembers":{registerMembers:["registry"]},"workerd::api::CryptoKeyPair::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::CryptoKeyPair::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::CryptoKeyPair::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SubtleCrypto::HashAlgorithm::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::SubtleCrypto::HashAlgorithm::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::SubtleCrypto::HashAlgorithm::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SubtleCrypto::EncryptAlgorithm::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::SubtleCrypto::EncryptAlgorithm::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::SubtleCrypto::EncryptAlgorithm::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SubtleCrypto::SignAlgorithm::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::SubtleCrypto::SignAlgorithm::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::SubtleCrypto::SignAlgorithm::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SubtleCrypto::GenerateKeyAlgorithm::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::SubtleCrypto::GenerateKeyAlgorithm::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::SubtleCrypto::GenerateKeyAlgorithm::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SubtleCrypto::ImportKeyAlgorithm::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::SubtleCrypto::ImportKeyAlgorithm::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::SubtleCrypto::ImportKeyAlgorithm::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SubtleCrypto::DeriveKeyAlgorithm::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::SubtleCrypto::DeriveKeyAlgorithm::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::SubtleCrypto::DeriveKeyAlgorithm::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SubtleCrypto::JsonWebKey::RsaOtherPrimesInfo::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::SubtleCrypto::JsonWebKey::RsaOtherPrimesInfo::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::SubtleCrypto::JsonWebKey::RsaOtherPrimesInfo::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SubtleCrypto::JsonWebKey::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::SubtleCrypto::JsonWebKey::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::SubtleCrypto::JsonWebKey::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SubtleCrypto":{encrypt:["js","algorithm","key","plainText"],decrypt:["js","algorithm","key","cipherText"],sign:["js","algorithm","key","data"],verify:["js","algorithm","key","signature","data"],digest:["js","algorithm","data"],generateKey:["js","algorithm","extractable","keyUsages"],deriveKey:["js","algorithm","baseKey","derivedKeyAlgorithm","extractable","keyUsages"],deriveBits:["js","algorithm","baseKey","length"],importKey:["js","format","keyData","algorithm","extractable","keyUsages"],importKeySync:["js","format","keyData","algorithm","extractable","keyUsages"],exportKey:["js","format","key"],wrapKey:["js","format","key","wrappingKey","wrapAlgorithm","jwkHandler"],unwrapKey:["js","format","wrappedKey","unwrappingKey","unwrapAlgorithm","unwrappedKeyAlgorithm","extractable","keyUsages","jwkHandler"],timingSafeEqual:["a","b"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::SubtleCrypto::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::SubtleCrypto::registerMembers":{registerMembers:["registry"]},"workerd::api::DigestContext":{write:["buffer"],close:["js"]},"workerd::api::DigestStream":{$constructor:["js","algorithm","resolver","promise"],dispose:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],visitForMemoryInfo:["tracker"],initContext:["algorithm"],write:["js","buffer"],close:["js"],abort:["js","reason"],visitForGc:["visitor"]},"workerd::api::DigestStream::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::DigestStream::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::DigestStream::Ready":{$constructor:["algorithm","resolver"]},"workerd::api::Crypto":{$constructor:["js"],getRandomValues:["buffer"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],visitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::Crypto::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Crypto::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::DecoderFatal":{$constructor:["value"],"operator&&":["other"],"operator||":["other"]},"workerd::api::DecoderIgnoreBom":{$constructor:["value"],"operator&&":["other"],"operator||":["other"]},"workerd::api::Decoder":{decode:["js","buffer","flush"]},"workerd::rust::encoding":{new_decoder:["encoding"],decode:["decoder","input","options"],reset:["decoder"]},"workerd::api::LegacyDecoder":{$constructor:["encoding","fatal"],decode:["js","buffer","flush"]},"workerd::api::IcuDecoder":{$constructor:["encoding","converter","fatal","ignoreBom"],create:["encoding","fatal","ignoreBom"],decode:["js","buffer","flush"]},"workerd::api::IcuDecoder::ConverterDeleter":{"operator()":["pointer"]},"workerd::api::TextDecoder::ConstructorOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::TextDecoder::ConstructorOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::TextDecoder::ConstructorOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::TextDecoder::DecodeOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::TextDecoder::DecodeOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::TextDecoder::DecodeOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::TextDecoder":{$constructor:["decoder","options","options"],decode:["js","input","options"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],decodePtr:["js","buffer","flush"]},"workerd::api::TextDecoder::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::TextDecoder::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::TextEncoder::EncodeIntoResult::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::TextEncoder::EncodeIntoResult::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::TextEncoder::EncodeIntoResult::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::TextEncoder":{$constructor:["js"],encode:["js","input"],encodeInto:["js","input","buffer"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"]},"workerd::api::TextEncoder::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::TextEncoder::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::EventSource::EventSourceInit::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::EventSource::EventSourceInit::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::EventSource::EventSourceInit::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::EventSource":{$constructor:["js","url","init"],close:["js"],from:["js","stream"],getOnOpen:["js"],setOnOpen:["js","value"],getOnMessage:["js"],setOnMessage:["js","value"],getOnError:["js"],setOnError:["js","value"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],enqueueMessages:["messages"],setReconnectionTime:["time"],setLastEventId:["id"],visitForGc:["visitor"],visitForMemoryInfo:["tracker"],notifyOpen:["js"],notifyError:["js","error","reconnecting"],notifyMessages:["js","messages"],run:["js","stream","withReconnection","response","fetcher"],start:["js"],reconnect:["js"]},"workerd::api::EventSource::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::EventSource::registerMembers":{registerMembers:["registry"]},"workerd::api::LoopbackServiceStub":{$constructor:["channel"],callImpl:["js","propsMaybe","versionMaybe"],call:["js","options"],callWithVersion:["js","options"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"]},"workerd::api::LoopbackServiceStub::Options::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::LoopbackServiceStub::Options::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::LoopbackServiceStub::Options::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::LoopbackServiceStub::OptionsWithVersion::Version::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::LoopbackServiceStub::OptionsWithVersion::Version::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::LoopbackServiceStub::OptionsWithVersion::Version::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::LoopbackServiceStub::OptionsWithVersion::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::LoopbackServiceStub::OptionsWithVersion::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::LoopbackServiceStub::OptionsWithVersion::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::LoopbackServiceStub::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::LoopbackServiceStub::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::LoopbackDurableObjectClass":{$constructor:["channel"],call:["js","options"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::LoopbackDurableObjectClass::Options::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::LoopbackDurableObjectClass::Options::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::LoopbackDurableObjectClass::Options::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::LoopbackDurableObjectClass::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::LoopbackDurableObjectClass::registerMembers":{registerMembers:["registry"]},"workerd::api::LoopbackDurableObjectNamespace":{$constructor:["nsChannel","idFactory","loopbackClass"],call:["js","options"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::LoopbackDurableObjectNamespace::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::LoopbackDurableObjectNamespace::registerMembers":{registerMembers:["registry"]},"workerd::api::LoopbackColoLocalActorNamespace":{$constructor:["nsChannel","loopbackClass"],call:["js","options"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::LoopbackColoLocalActorNamespace::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::LoopbackColoLocalActorNamespace::registerMembers":{registerMembers:["registry"]},"workerd::api::Stat::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::Stat::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::Stat::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::Stat":{$constructor:["stat"]},"workerd::api::FileFdHandle":{$constructor:["js","fd","fd"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::FileFdHandle::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::FileFdHandle::registerMembers":{registerMembers:["registry"]},"workerd::api::FileSystemModule::StatOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::FileSystemModule::StatOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::StatOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemModule":{stat:["js","pathOrFd","options"],setLastModified:["js","pathOrFd","lastModified","options"],truncate:["js","pathOrFd","size"],readLink:["js","path","options"],link:["js","from","to","options"],unlink:["js","path"],open:["js","path","options"],close:["js","fd"],write:["js","fd","data","options"],read:["js","fd","data","options"],readAll:["js","pathOrFd"],writeAll:["js","pathOrFd","data","options"],renameOrCopy:["js","src","dest","options"],mkdir:["js","path","options"],rm:["js","path","options"],readdir:["js","path","options"],getFdHandle:["js","fd"],cp:["js","src","dest","options"],openAsBlob:["js","path","options"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::FileSystemModule::ReadLinkOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::FileSystemModule::ReadLinkOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::ReadLinkOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemModule::LinkOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::FileSystemModule::LinkOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::LinkOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemModule::OpenOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::FileSystemModule::OpenOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::OpenOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemModule::WriteOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::FileSystemModule::WriteOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::WriteOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemModule::WriteAllOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::FileSystemModule::WriteAllOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::WriteAllOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemModule::RenameOrCopyOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::FileSystemModule::RenameOrCopyOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::RenameOrCopyOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemModule::MkdirOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::FileSystemModule::MkdirOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::MkdirOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemModule::RmOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::FileSystemModule::RmOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::RmOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemModule::DirEntHandle::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::FileSystemModule::DirEntHandle::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::DirEntHandle::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemModule::ReadDirOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::FileSystemModule::ReadDirOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::ReadDirOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemModule::CpOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::FileSystemModule::CpOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::CpOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemModule::OpenAsBlobOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::FileSystemModule::OpenAsBlobOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemModule::OpenAsBlobOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemModule::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::FileSystemModule::registerMembers":{registerMembers:["registry"]},"workerd::api::FileSystemHandle":{$constructor:["vfs","locator","name"],getName:["js"],getKind:["js"],isSameEntry:["js","other"],remove:["js","options","deHandler"],getUniqueId:["js","deHandler"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::FileSystemHandle::RemoveOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::FileSystemHandle::RemoveOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemHandle::RemoveOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemHandle::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::FileSystemHandle::registerMembers":{registerMembers:["registry"]},"workerd::api::FileSystemFileWriteParams::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::FileSystemFileWriteParams::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemFileWriteParams::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemFileHandle":{$constructor:["vfs","locator","name"],getKind:["js"],getFile:["js","deHandler"],createWritable:["js","options","deHandler","dataHandler"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::FileSystemFileHandle::FileSystemCreateWritableOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::FileSystemFileHandle::FileSystemCreateWritableOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemFileHandle::FileSystemCreateWritableOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemFileHandle::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::FileSystemFileHandle::registerMembers":{registerMembers:["registry"]},"workerd::api::FileSystemDirectoryHandle::IteratorState":{$constructor:["exception","entries"],visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"]},"workerd::api::FileSystemDirectoryHandle":{$constructor:["vfs","locator","name"],getKind:["js"],getFileHandle:["js","name","options","exception"],getDirectoryHandle:["js","name","options","exception"],removeEntry:["js","name","options","exception"],resolve:["js","possibleDescendant"],forEach:["js","callback","thisArg","exception"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::FileSystemDirectoryHandle::FileSystemGetFileOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::FileSystemDirectoryHandle::FileSystemGetFileOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemDirectoryHandle::FileSystemGetFileOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemDirectoryHandle::FileSystemGetDirectoryOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::FileSystemDirectoryHandle::FileSystemGetDirectoryOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemDirectoryHandle::FileSystemGetDirectoryOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemDirectoryHandle::FileSystemRemoveOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::FileSystemDirectoryHandle::FileSystemRemoveOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::FileSystemDirectoryHandle::FileSystemRemoveOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::FileSystemDirectoryHandle::EntryIterator":{next:["js"],return:["js","value"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::FileSystemDirectoryHandle::EntryIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::FileSystemDirectoryHandle::EntryIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::FileSystemDirectoryHandle::KeyIterator":{next:["js"],return:["js","value"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::FileSystemDirectoryHandle::KeyIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::FileSystemDirectoryHandle::KeyIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::FileSystemDirectoryHandle::ValueIterator":{next:["js"],return:["js","value"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::FileSystemDirectoryHandle::ValueIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::FileSystemDirectoryHandle::ValueIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::FileSystemDirectoryHandle::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::FileSystemDirectoryHandle::registerMembers":{registerMembers:["registry"]},"workerd::api::FileSystemDirectoryHandle::iteratorNext":{iteratorNext:["js","state"]},"workerd::api::FileSystemDirectoryHandle::iteratorReturn":{iteratorReturn:["js","state","value"]},"workerd::api::FileSystemWritableFileStream::State":{$constructor:["js","vfs","file","temp"]},"workerd::api::FileSystemWritableFileStream":{$constructor:["controller","sharedState"],write:["js","data","deHandler"],seek:["js","position","deHandler"],truncate:["js","size","deHandler"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],writeImpl:["js","data","state","deHandler"],visitForGc:["visitor"]},"workerd::api::FileSystemWritableFileStream::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::FileSystemWritableFileStream::registerMembers":{registerMembers:["registry"]},"workerd::api::StorageManager":{getDirectory:["js","exception"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::StorageManager::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::StorageManager::registerMembers":{registerMembers:["registry"]},"workerd::api::PerformanceEntry":{$constructor:["name","entryType","startTime","duration"],toJSON:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::PerformanceEntry::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::PerformanceEntry::registerMembers":{registerMembers:["registry"]},"workerd::api::PerformanceMark::Options::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::PerformanceMark::Options::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::PerformanceMark::Options::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::PerformanceMark":{$constructor:["js","name","maybeOptions"],getDetail:["js"],toJSON:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::PerformanceMark::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::PerformanceMark::registerMembers":{registerMembers:["registry"]},"workerd::api::UvMetricsInfo::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::UvMetricsInfo::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::UvMetricsInfo::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::PerformanceNodeTiming":{getUvMetricsInfo:["js"],toJSON:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::PerformanceNodeTiming::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::PerformanceNodeTiming::registerMembers":{registerMembers:["registry"]},"workerd::api::PerformanceMeasure":{$constructor:["name","startTime","duration"],getDetail:["js"],toJSON:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::PerformanceMeasure::Entry::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::PerformanceMeasure::Entry::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::PerformanceMeasure::Entry::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::PerformanceMeasure::Options::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::PerformanceMeasure::Options::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::PerformanceMeasure::Options::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::PerformanceMeasure::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::PerformanceMeasure::registerMembers":{registerMembers:["registry"]},"workerd::api::PerformanceResourceTiming":{$constructor:["name","startTime","duration"],getInitiatorType:["js"],getNextHopProtocol:["js"],toJSON:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::PerformanceResourceTiming::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::PerformanceResourceTiming::registerMembers":{registerMembers:["registry"]},"workerd::api::PerformanceObserverEntryList":{getEntriesByType:["type"],getEntriesByName:["name","type"],visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::PerformanceObserverEntryList::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::PerformanceObserverEntryList::registerMembers":{registerMembers:["registry"]},"workerd::api::PerformanceObserver::CallbackOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::PerformanceObserver::CallbackOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::PerformanceObserver::CallbackOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::PerformanceObserver":{$constructor:["js","callback"],observe:["options"],visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::PerformanceObserver::ObserveOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::PerformanceObserver::ObserveOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::PerformanceObserver::ObserveOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::PerformanceObserver::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::PerformanceObserver::registerMembers":{registerMembers:["registry"]},"workerd::api::EventCounts":{get:["eventType"],has:["eventType"],forEach:["js"],visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],entryIteratorNext:["js","state"],keyIteratorNext:["js","state"],valueIteratorNext:["js","state"]},"workerd::api::EventCounts::IteratorState":{$constructor:["parent"],visitForGc:["visitor"]},"workerd::api::EventCounts::EntryIterator":{next:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::EventCounts::EntryIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::EventCounts::EntryIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::EventCounts::KeyIterator":{next:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::EventCounts::KeyIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::EventCounts::KeyIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::EventCounts::ValueIterator":{next:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::EventCounts::ValueIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::EventCounts::ValueIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::EventCounts::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::EventCounts::registerMembers":{registerMembers:["registry"]},"workerd::api::Performance":{$constructor:["isolateLimitEnforcer"],getEventCounts:["js"],now:["js"],clearMarks:["name"],clearMeasures:["name"],getEntriesByName:["name","type"],getEntriesByType:["type"],mark:["js","name","options"],measure:["js","measureName","measureOptionsOrStartMark","maybeEndMark"],setResourceTimingBufferSize:["size"],getNodeTiming:["js"],timerify:["js","fn"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"]},"workerd::api::Performance::EventLoopUtilization::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::Performance::EventLoopUtilization::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::Performance::EventLoopUtilization::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::Performance::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Performance::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::HibernatableSocketParams":{$constructor:["other","id","wasClean","id"],setTimeout:["timeoutMs"]},"workerd::api::Navigator":{sendBeacon:["js","url","body"],getStorage:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["reader"]},"workerd::api::Navigator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Navigator::registerMembers":{registerMembers:["registry","reader"]},"workerd::api::Cloudflare":{getCompatibilityFlags:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::Cloudflare::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Cloudflare::registerMembers":{registerMembers:["registry"]},"workerd::api::WorkerGlobalScope":{importScripts:["s"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"]},"workerd::api::WorkerGlobalScope::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::WorkerGlobalScope::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::TestController":{jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::TestController::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::TestController::registerMembers":{registerMembers:["registry"]},"workerd::api::ExecutionContext":{$constructor:["js","exports","props"],waitUntil:["promise"],abort:["js","reason"],getExports:["js"],getProps:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::ExecutionContext::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::ExecutionContext::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::AlarmInvocationInfo":{$constructor:["retry"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::AlarmInvocationInfo::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::AlarmInvocationInfo::registerMembers":{registerMembers:["registry"]},"workerd::api::ExportedHandler::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::ExportedHandler::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::ExportedHandler::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::ExportedHandler":{clone:["js"]},"workerd::api::Immediate":{$constructor:["context","timeoutId"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::Immediate::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Immediate::registerMembers":{registerMembers:["registry"]},"workerd::api::ServiceWorkerGlobalScope":{request:["method","url","headers","requestBody","response","cfBlobJson","lock","exportedHandler","abortSignal"],sendTraces:["traces","lock","exportedHandler"],startScheduled:["scheduledTime","cron","lock","exportedHandler"],runAlarm:["scheduledTime","timeout","retryCount","lock","exportedHandler"],test:["lock","exportedHandler"],eventTimeoutPromise:["timeoutMs"],setHibernatableEventTimeout:["event","eventTimeoutMs"],sendHibernatableWebSocketMessage:["context","message","eventTimeoutMs","websocketId","lock","exportedHandler"],sendHibernatableWebSocketClose:["context","close","eventTimeoutMs","websocketId","lock","exportedHandler"],sendHibernatableWebSocketError:["context","e","eventTimeoutMs","websocketId","lock","exportedHandler"],emitPromiseRejection:["js","event","promise","value"],setConnectOverride:["networkAddress","connectFn"],getConnectOverride:["networkAddress"],btoa:["js","data"],atob:["js","data"],queueMicrotask:["js","task"],structuredClone:["js","value","options"],setTimeout:["js","function","msDelay","args"],clearTimeout:["js","timeoutId"],setTimeoutInternal:["function","msDelay"],setInterval:["js","function","msDelay","args"],clearInterval:["js","timeoutId"],fetch:["js","request","requestInitr"],getCrypto:["js"],getScheduler:["js"],getNavigator:["js"],getPerformance:["js"],getCloudflare:["js"],getCaches:["js"],reportError:["js","error"],getBuffer:["js"],setBuffer:["js","newBuffer"],getProcess:["js"],setProcess:["js","newProcess"],setImmediate:["js","function","args"],clearImmediate:["immediate"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],visitForMemoryInfo:["tracker"]},"workerd::api::ServiceWorkerGlobalScope::StructuredCloneOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::ServiceWorkerGlobalScope::StructuredCloneOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::ServiceWorkerGlobalScope::StructuredCloneOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::ServiceWorkerGlobalScope::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::ServiceWorkerGlobalScope::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::HTMLRewriter":{$constructor:["js"],on:["selector","handlers"],onDocument:["handlers"],transform:["js","response"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::HTMLRewriter::ElementContentHandlers::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::HTMLRewriter::ElementContentHandlers::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::HTMLRewriter::ElementContentHandlers::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::HTMLRewriter::DocumentContentHandlers::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::HTMLRewriter::DocumentContentHandlers::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::HTMLRewriter::DocumentContentHandlers::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::HTMLRewriter::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::HTMLRewriter::registerMembers":{registerMembers:["registry"]},"workerd::api::ContentOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::ContentOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::ContentOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::Token::ImplBase::ImplBase":{$constructor:["element","rewriter"]},"workerd::api::Token::ImplBase::ImplBase::rewriteContentGeneric":{rewriteContentGeneric:["content","options"]},"workerd::api::Element":{$constructor:["element","wrapper"],setTagName:["tagName"],getAttributes:["js"],getAttribute:["name"],hasAttribute:["name"],setAttribute:["name","value"],removeAttribute:["name"],before:["content","options"],after:["content","options"],prepend:["content","options"],append:["content","options"],replace:["content","options"],setInnerContent:["content","options"],onEndTag:["callback"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::Element::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Element::registerMembers":{registerMembers:["registry"]},"workerd::api::AttributesIterator":{$constructor:["iter"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::AttributesIterator::Next::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::AttributesIterator::Next::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::AttributesIterator::Next::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::AttributesIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::AttributesIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::EndTag":{$constructor:["tag","rewriter"],before:["content","options"],after:["content","options"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::EndTag::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::EndTag::registerMembers":{registerMembers:["registry"]},"workerd::api::Comment":{$constructor:["comment"],before:["content","options"],after:["content","options"],replace:["content","options"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::Comment::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Comment::registerMembers":{registerMembers:["registry"]},"workerd::api::Text":{$constructor:["text","rewriter"],before:["content","options"],after:["content","options"],replace:["content","options"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::Text::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Text::registerMembers":{registerMembers:["registry"]},"workerd::api::Doctype":{$constructor:["doctype"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::Doctype::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Doctype::registerMembers":{registerMembers:["registry"]},"workerd::api::DocumentEnd":{$constructor:["documentEnd"],append:["content","options"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::DocumentEnd::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::DocumentEnd::registerMembers":{registerMembers:["registry"]},"workerd::api::Hyperdrive":{$constructor:["clientIndex","database","user","password","scheme"],connect:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::Hyperdrive::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Hyperdrive::registerMembers":{registerMembers:["registry"]},"workerd::api::KvNamespace::AdditionalHeader":{jsgGetMemoryInfo:["tracker"]},"workerd::api::KvNamespace":{$constructor:["bindingName","additionalHeaders","subrequestChannel"],getSingle:["js","context","traceContext","name","options"],getBulk:["js","context","traceContext","name","options","withMetadata"],formBulkBodyString:["js","names","withMetadata","options"],get:["js","name","options"],getWithMetadataImpl:["js","context","traceContext","name","options","op"],getWithMetadataSingle:["js","context","traceContext","name","options"],getWithMetadata:["js","name","options"],list:["js","options"],put:["js","name","body","options","putTypeHandler"],delete:["js","name"],deleteBulk:["args"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],visitForMemoryInfo:["tracker"],getHttpClient:["context","headers","opTypeOrName","urlStr","traceContext"]},"workerd::api::KvNamespace::GetOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::KvNamespace::GetOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::KvNamespace::GetOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::KvNamespace::GetWithMetadataResult::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::KvNamespace::GetWithMetadataResult::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::KvNamespace::GetWithMetadataResult::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::KvNamespace::ListOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::KvNamespace::ListOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::KvNamespace::ListOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::KvNamespace::PutOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::KvNamespace::PutOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::KvNamespace::PutOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::KvNamespace::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::KvNamespace::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::CacheValue":{$constructor:["bytes"]},"workerd::api::CacheValueProduceResult::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::CacheValueProduceResult::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::CacheValueProduceResult::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SharedMemoryCache::Limits":{"operator<":["b"],max:["a","b"]},"workerd::api::SharedMemoryCache":{$constructor:["provider","id","additionalResizeMemoryLimitHandler","timer"],create:["provider","id","additionalResizeMemoryLimitHandler","timer"],suggest:["limits"],unsuggest:["limits"],resize:["data"],getWhileLocked:["data","key"],putWhileLocked:["data","key","value","expiration"],evictNextWhileLocked:["data","allowOutsideIoContext"],removeIfExistsWhileLocked:["data","key"]},"workerd::api::SharedMemoryCache::Use":{$constructor:["other","limits"],getWithoutFallback:["key","readSpan"],getWithFallback:["key","readSpan"],delete:["key"],prepareFallback:["inProgress"],handleFallbackFailure:["inProgress"]},"workerd::api::SharedMemoryCache::InProgress":{$constructor:["key"]},"workerd::api::SharedMemoryCache::InProgress::KeyCallbacks":{keyForRow:["entry"]},"workerd::api::SharedMemoryCache::InProgress::KeyCallbacks::matches":{matches:["e","key"]},"workerd::api::SharedMemoryCache::InProgress::KeyCallbacks::hashCode":{hashCode:["key"]},"workerd::api::SharedMemoryCache::KeyCallbacks":{keyForRow:["entry"]},"workerd::api::SharedMemoryCache::KeyCallbacks::matches":{matches:["e","key"]},"workerd::api::SharedMemoryCache::KeyCallbacks::hashCode":{hashCode:["key"]},"workerd::api::SharedMemoryCache::LivelinessCallbacks":{keyForRow:["entry"]},"workerd::api::SharedMemoryCache::LivelinessCallbacks::matches":{matches:["e","key"]},"workerd::api::SharedMemoryCache::LivelinessCallbacks::isBefore":{isBefore:["e","key"]},"workerd::api::SharedMemoryCache::ValueSizeCallbacks":{keyForRow:["entry"]},"workerd::api::SharedMemoryCache::ValueSizeCallbacks::matches":{matches:["e","key"]},"workerd::api::SharedMemoryCache::ValueSizeCallbacks::isBefore":{isBefore:["e","key"]},"workerd::api::SharedMemoryCache::ExpirationCallbacks":{keyForRow:["entry"],isBefore:["a","b"]},"workerd::api::SharedMemoryCache::ExpirationCallbacks::matches":{matches:["e","key"]},"workerd::api::SharedMemoryCache::ExpirationCallbacks::isBefore":{isBefore:["e","key"]},"workerd::api::MemoryCache":{$constructor:["use"],read:["js","key","optionalFallback"],delete:["js","key"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"]},"workerd::api::MemoryCache::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::MemoryCache::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::MemoryCacheProvider":{$constructor:["timer","additionalResizeMemoryLimitHandler"],getInstance:["cacheId"],removeInstance:["instance"]},"workerd::api::DiffieHellman":{$constructor:["sizeOrKey","generator"],setPrivateKey:["key"],setPublicKey:["key"],getPublicKey:["js"],getPrivateKey:["js"],getGenerator:["js"],getPrime:["js"],computeSecret:["js","key"],generateKeys:["js"]},"workerd::api::CiLess":{"operator()":["lhs","rhs"]},"workerd::api::interpretAlgorithmParam":{interpretAlgorithmParam:["param"]},"workerd::api::getAlgorithmName":{getAlgorithmName:["param"]},"workerd::api::Impl":{$constructor:["extractable","usages"],from:["js","key"],encrypt:["js","algorithm","plainText"],decrypt:["js","algorithm","cipherText"],sign:["js","algorithm","data"],verify:["js","algorithm","signature","data"],deriveBits:["js","algorithm","length"],wrapKey:["js","algorithm","unwrappedKey"],unwrapKey:["js","algorithm","wrappedKey"],exportKey:["js","format"],exportKeyExt:["js","format","type","cipher","passphrase"],getAsymmetricKeyDetail:["js"],getAlgorithm:["js"],equals:["other"],jsgGetMemoryInfo:["tracker"],verifyX509Public:["cert"],verifyX509Private:["cert"],visitForGc:["visitor"]},"workerd::api::CryptoAlgorithm":{"operator==":["other"],"operator<":["other"]},"workerd::api::SslArrayDisposer":{disposeImpl:["firstElement","elementSize","elementCount","capacity","destroyElement"]},"workerd::api::SslDisposer::SslDisposer":{disposeImpl:["pointer"]},"workerd::api::integerCeilDivision":{integerCeilDivision:["a","b"]},"workerd::api::ZeroOnFree":{$constructor:["inner"]},"workerd::api::ToNcryptoBuffer":{ToNcryptoBuffer:["array"]},"workerd::api::HmacContext":{$constructor:["js","algorithm","key"],update:["data"],digest:["js"]},"workerd::api::HashContext":{$constructor:["maybeXof","maybeXof"],update:["data"],digest:["js"],clone:["js","xofLen"]},"workerd::api::X509Certificate":{$constructor:["cert"],parse:["js","raw"],getRaw:["js"],getPublicKey:["js"],checkHost:["name","options"],checkEmail:["email","options"],checkIp:["ip","options"],checkIssued:["other"],checkPrivateKey:["privateKey"],verify:["publicKey"],toLegacyObject:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::X509Certificate::CheckOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::X509Certificate::CheckOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::X509Certificate::CheckOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::X509Certificate::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::X509Certificate::registerMembers":{registerMembers:["registry"]},"workerd::api::node::CryptoImpl::DiffieHellmanHandle":{$constructor:["js","sizeOrKey","generator"],setPrivateKey:["key"],setPublicKey:["key"],getPublicKey:["js"],getPrivateKey:["js"],getGenerator:["js"],getPrime:["js"],computeSecret:["js","key"],generateKeys:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::CryptoImpl::DiffieHellmanHandle::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::CryptoImpl::DiffieHellmanHandle::registerMembers":{registerMembers:["registry"]},"workerd::api::node::CryptoImpl":{DiffieHellmanGroupHandle:["js","name"],statelessDH:["js","privateKey","publicKey"],randomPrime:["js","size","safe","add","rem"],checkPrimeSync:["bufferView","num_checks"],getHkdf:["js","hash","key","salt","info","length"],getPbkdf:["js","password","salt","num_iterations","keylen","name"],getScrypt:["js","password","salt","N","r","p","maxmem","keylen"],exportKey:["js","key","options"],equals:["js","key","otherKey"],getAsymmetricKeyDetail:["js","key"],getAsymmetricKeyType:["js","key"],createSecretKey:["js","keyData"],createPrivateKey:["js","options"],createPublicKey:["js","options"],tryGetKey:["key"],tryGetSecretKeyData:["key"],generateRsaKeyPair:["js","options"],generateDsaKeyPair:["js","options"],generateEcKeyPair:["js","options"],generateEdKeyPair:["js","options"],generateDhKeyPair:["js","options"],signOneShot:["js","key","algorithm","data","rsaPadding","pssSaltLength","dsaSigEnc"],verifyOneShot:["js","key","algorithm","data","signature","rsaPadding","pssSaltLength","dsaSigEnc"],newHandle:["js","mode","algorithm","key","iv","maybeAuthTagLength"],publicEncrypt:["js","key","buffer","options"],publicDecrypt:["js","key","buffer","options"],privateEncrypt:["js","key","buffer","options"],privateDecrypt:["js","key","buffer","options"],getCipherInfo:["nameOrNid","options"],verifySpkac:["input"],exportPublicKey:["js","input"],exportChallenge:["js","input"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::CryptoImpl::HashHandle":{$constructor:["js","algorithm","xofLen"],oneshot:["algorithm","data","xofLen"],copy:["js","xofLen"],update:["data"],digest:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::node::CryptoImpl::HashHandle::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::CryptoImpl::HashHandle::registerMembers":{registerMembers:["registry"]},"workerd::api::node::CryptoImpl::HmacHandle":{$constructor:["js","algorithm","key"],oneshot:["js","algorithm","key","data"],update:["data"],digest:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::node::CryptoImpl::HmacHandle::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::CryptoImpl::HmacHandle::registerMembers":{registerMembers:["registry"]},"workerd::api::node::CryptoImpl::KeyExportOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::node::CryptoImpl::KeyExportOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::CryptoImpl::KeyExportOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::CryptoImpl::GenerateKeyPairOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::node::CryptoImpl::GenerateKeyPairOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::CryptoImpl::GenerateKeyPairOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::CryptoImpl::CreateAsymmetricKeyOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::node::CryptoImpl::CreateAsymmetricKeyOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::CryptoImpl::CreateAsymmetricKeyOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::CryptoImpl::RsaKeyPairOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::node::CryptoImpl::RsaKeyPairOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::CryptoImpl::RsaKeyPairOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::CryptoImpl::DsaKeyPairOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::node::CryptoImpl::DsaKeyPairOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::CryptoImpl::DsaKeyPairOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::CryptoImpl::EcKeyPairOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::node::CryptoImpl::EcKeyPairOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::CryptoImpl::EcKeyPairOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::CryptoImpl::EdKeyPairOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::node::CryptoImpl::EdKeyPairOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::CryptoImpl::EdKeyPairOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::CryptoImpl::DhKeyPairOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::node::CryptoImpl::DhKeyPairOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::CryptoImpl::DhKeyPairOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::CryptoImpl::SignHandle":{$constructor:["js","algorithm"],update:["js","data"],sign:["js","key","rsaPadding","pssSaltLength","dsaSigEnc"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::CryptoImpl::SignHandle::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::CryptoImpl::SignHandle::registerMembers":{registerMembers:["registry"]},"workerd::api::node::CryptoImpl::VerifyHandle":{$constructor:["js","algorithm"],update:["js","data"],verify:["js","key","signature","rsaPadding","pssSaltLength","dsaSigEnc"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::CryptoImpl::VerifyHandle::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::CryptoImpl::VerifyHandle::registerMembers":{registerMembers:["registry"]},"workerd::api::node::CryptoImpl::CipherHandle":{$constructor:["mode","ctx","key","iv","maybeAuthInfo"],construct:["js","mode","algorithm","cipher","key","iv","maybeAuthTagLength"],update:["js","data"],final:["js"],setAAD:["js","aad","maybePlaintextLength"],setAutoPadding:["js","autoPadding"],setAuthTag:["js","authTag"],getAuthTag:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::CryptoImpl::CipherHandle::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::CryptoImpl::CipherHandle::registerMembers":{registerMembers:["registry"]},"workerd::api::node::CryptoImpl::AeadHandle":{$constructor:["mode","aead","ctx","key","iv","maybeAuthInfo"],construct:["js","mode","algorithm","aead","key","iv","maybeAuthTagLength"],update:["js","data"],final:["js"],setAAD:["js","aad","maybePlaintextLength"],setAuthTag:["js","authTag"],getAuthTag:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::CryptoImpl::AeadHandle::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::CryptoImpl::AeadHandle::registerMembers":{registerMembers:["registry"]},"workerd::api::node::CryptoImpl::PublicPrivateCipherOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::node::CryptoImpl::PublicPrivateCipherOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::CryptoImpl::PublicPrivateCipherOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::CryptoImpl::CipherInfo::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::node::CryptoImpl::CipherInfo::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::CryptoImpl::CipherInfo::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::CryptoImpl::GetCipherInfoOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::node::CryptoImpl::GetCipherInfoOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::CryptoImpl::GetCipherInfoOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::CryptoImpl::ECDHHandle":{$constructor:["js","curveName"],convertKey:["js","key","curveName","format"],computeSecret:["js","otherPublicKey"],getPrivateKey:["js"],getPublicKey:["js","format"],setPrivateKey:["js","key"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::CryptoImpl::ECDHHandle::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::CryptoImpl::ECDHHandle::registerMembers":{registerMembers:["registry"]},"workerd::api::node::CryptoImpl::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::CryptoImpl::registerMembers":{registerMembers:["registry"]},"workerd::api::node::AsyncLocalStorage::AsyncLocalStorageOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::node::AsyncLocalStorage::AsyncLocalStorageOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::AsyncLocalStorage::AsyncLocalStorageOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::AsyncLocalStorage":{$constructor:["js","options"],run:["js","store","callback","args"],exit:["js","callback","args"],getStore:["js"],bind:["js","fn"],snapshot:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::AsyncLocalStorage::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::AsyncLocalStorage::registerMembers":{registerMembers:["registry"]},"workerd::api::node::AsyncResource::Options::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::node::AsyncResource::Options::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::AsyncResource::Options::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::AsyncResource":{$constructor:["js","type","options"],staticBind:["js","fn","type","thisArg","handler"],bind:["js","fn","thisArg","handler"],runInAsyncScope:["js","fn","thisArg"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::node::AsyncResource::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::AsyncResource::registerMembers":{registerMembers:["registry"]},"workerd::api::node::AsyncHooksModule":{jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::AsyncHooksModule::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::AsyncHooksModule::registerMembers":{registerMembers:["registry"]},"workerd::api::node::Channel":{identityTransform:["js","value"],$constructor:["name"],publish:["js","message"],subscribe:["js","callback"],unsubscribe:["js","callback"],bindStore:["js","als","maybeTransform"],unbindStore:["js","als"],runStores:["js","message","callback","maybeReceiver","args"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::node::Channel::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::Channel::registerMembers":{registerMembers:["registry"]},"workerd::api::node::Channel::StoreEntry":{jsgGetMemoryInfo:["tracker"]},"workerd::api::node::Channel::StoreCallbacks":{keyForRow:["row"],matches:["a","key"],hashCode:["key"]},"workerd::api::node::DiagnosticsChannelModule":{hasSubscribers:["js","name"],channel:["js","name"],subscribe:["js","name","callback"],unsubscribe:["js","name","callback"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],tryGetChannel:["js","name"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::node::DiagnosticsChannelModule::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::DiagnosticsChannelModule::registerMembers":{registerMembers:["registry"]},"workerd::api::TransformStream":{$constructor:["js","maybeTransformer","maybeWritableStrategy","maybeReadableStrategy"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::TransformStream::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::TransformStream::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::CompressionAllocator":{$constructor:["externalMemoryTarget"],configure:["stream"],AllocForZlib:["data","items","size"],AllocForBrotli:["data","size"],FreeForZlib:["data","pointer"]},"workerd::api::CompressionStream":{$constructor:["js","format"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::CompressionStream::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::CompressionStream::registerMembers":{registerMembers:["registry"]},"workerd::api::DecompressionStream":{$constructor:["js","format"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::DecompressionStream::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::DecompressionStream::registerMembers":{registerMembers:["registry"]},"workerd::api::node":{ZlibStrerror:["err"],IsWithinBounds:["off","len","max"],isNodeJsCompatFsModule:["name"],isNodeHttpModule:["name"],isNodeHttpServerModule:["name"],isNodeOsModule:["name"],isNodeHttp2Module:["name"],isNodeConsoleModule:["name"]},"workerd::api::node::CompressionError":{$constructor:["_message","_code","_err"]},"workerd::api::node::ZlibContext":{$constructor:["_mode"],setBuffers:["input","output"],setInputBuffer:["input"],setOutputBuffer:["output"],setFlush:["value"],getAfterWriteResult:["availIn","availOut"],setMode:["value"],setAllocationFunctions:["alloc","free","opaque"],setAvailIn:["value"],setAvailOut:["value"],initialize:["_level","_windowBits","_memLevel","_strategy","_dictionary"],setParams:["level","strategy"],constructError:["message"]},"workerd::api::node::ZlibContext::Options::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::node::ZlibContext::Options::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::ZlibContext::Options::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::BrotliContext":{$constructor:["_mode"],setBuffers:["input","output"],setInputBuffer:["input"],setOutputBuffer:["output"],setFlush:["flush"],getAfterWriteResult:["availIn","availOut"],setMode:["_mode"]},"workerd::api::node::BrotliContext::Options::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::node::BrotliContext::Options::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::BrotliContext::Options::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::BrotliEncoderContext":{$constructor:["_mode"],initialize:["init_alloc_func","init_free_func","init_opaque_func"],setParams:["key","value"]},"workerd::api::node::BrotliDecoderContext":{$constructor:["_mode"],initialize:["init_alloc_func","init_free_func","init_opaque_func"],setParams:["key","value"]},"workerd::api::node::ZstdContext":{$constructor:["_mode"],setBuffers:["input","output"],setInputBuffer:["input"],setOutputBuffer:["output"],setFlush:["flush"],getAfterWriteResult:["availIn","availOut"],setMode:["_mode"]},"workerd::api::node::ZstdContext::Options::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::node::ZstdContext::Options::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::ZstdContext::Options::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::ZstdEncoderContext":{$constructor:["_mode"],initialize:["pledgedSrcSize"],setParams:["key","value"]},"workerd::api::node::ZstdDecoderContext":{$constructor:["_mode"],setParams:["key","value"]},"workerd::api::node::ZlibUtil::CompressionStream::CompressionStream":{$constructor:["js","mode"],checkError:["js"],emitError:["js","error"],setErrorHandler:["handler"],reset:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],initializeStream:["_write_result","writeCallback"]},"workerd::api::node::ZlibUtil::CompressionStream::CompressionStream::writeStream":{writeStream:["js","flush","input","output"]},"workerd::api::node::ZlibUtil::CompressionStream::CompressionStream::write":{write:["js","flush","input","inputOffset","inputLength","output","outputOffset","outputLength"]},"workerd::api::node::ZlibUtil::CompressionStream::CompressionStream::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::ZlibUtil::CompressionStream::CompressionStream::registerMembers":{registerMembers:["registry"]},"workerd::api::node::ZlibUtil::ZlibStream":{$constructor:["js","mode"],initialize:["windowBits","level","memLevel","strategy","writeState","writeCallback","dictionary"],params:["js","level","strategy"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::ZlibUtil::ZlibStream::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::ZlibUtil::ZlibStream::registerMembers":{registerMembers:["registry"]},"workerd::api::node::ZlibUtil::BrotliCompressionStream::BrotliCompressionStream":{$constructor:["js","mode"],initialize:["js","params","writeResult","writeCallback"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::ZlibUtil::BrotliCompressionStream::BrotliCompressionStream::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::ZlibUtil::BrotliCompressionStream::BrotliCompressionStream::registerMembers":{registerMembers:["registry"]},"workerd::api::node::ZlibUtil::ZstdCompressionStream::ZstdCompressionStream":{$constructor:["js","mode"],initialize:["js","params","writeResult","writeCallback","pledgedSrcSize"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::ZlibUtil::ZstdCompressionStream::ZstdCompressionStream::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::ZlibUtil::ZstdCompressionStream::ZstdCompressionStream::registerMembers":{registerMembers:["registry"]},"workerd::api::node::ZlibUtil":{crc32Sync:["data","value"],zlibWithCallback:["js","data","options","mode","cb"],zlibSync:["js","data","options","mode"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::ZlibUtil::brotliSync":{brotliSync:["js","data","options"]},"workerd::api::node::ZlibUtil::brotliWithCallback":{brotliWithCallback:["js","data","options","cb"]},"workerd::api::node::ZlibUtil::zstdSync":{zstdSync:["js","data","options"]},"workerd::api::node::ZlibUtil::zstdWithCallback":{zstdWithCallback:["js","data","options","cb"]},"workerd::api::node::ZlibUtil::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::ZlibUtil::registerMembers":{registerMembers:["registry"]},"workerd::api::node::i18n":{canBeTranscoded:["encoding"],transcode:["js","source","fromEncoding","toEncoding"]},"workerd::api::node::i18n::Converter":{$constructor:["encoding","substitude"],setSubstituteChars:["sub"]},"workerd::api::node::BufferUtil":{byteLength:["js","str"],compare:["js","one","two","maybeOptions"],concat:["js","list","length"],decodeString:["js","string","encoding"],fillImpl:["js","buffer","value","start","end","encoding"],indexOf:["js","buffer","value","byteOffset","encoding","isForward"],swap:["js","buffer","size"],write:["js","buffer","string","offset","length","encoding"],decode:["js","bytes","state"],flush:["js","state"],isAscii:["bytes"],isUtf8:["bytes"],transcode:["js","source","rawFromEncoding","rawToEncoding"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::BufferUtil::CompareOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::node::BufferUtil::CompareOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::BufferUtil::CompareOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::BufferUtil::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::BufferUtil::registerMembers":{registerMembers:["registry"]},"workerd::api::node::DnsUtil::CaaRecord::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::node::DnsUtil::CaaRecord::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::DnsUtil::CaaRecord::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::DnsUtil::NaptrRecord::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::node::DnsUtil::NaptrRecord::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::DnsUtil::NaptrRecord::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::DnsUtil":{parseCaaRecord:["record"],parseNaptrRecord:["record"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::DnsUtil::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::DnsUtil::registerMembers":{registerMembers:["registry"]},"workerd::api::node::ModuleUtil":{createRequire:["js","specifier"],isBuiltin:["specifier"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::ModuleUtil::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::ModuleUtil::registerMembers":{registerMembers:["registry"]},"workerd::api::node::ProcessModule":{getBuiltinModule:["js","specifier"],exitImpl:["js","code"],getPlatform:["js"],getEnvObject:["js"],getVersions:["js"],getCwd:["js"],setCwd:["js","path"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::ProcessModule::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::ProcessModule::registerMembers":{registerMembers:["registry"]},"workerd::api::node::SqliteUtil::DatabaseSync":{$constructor:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::SqliteUtil::DatabaseSync::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::SqliteUtil::DatabaseSync::registerMembers":{registerMembers:["registry"]},"workerd::api::node::SqliteUtil::StatementSync":{$constructor:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::SqliteUtil::StatementSync::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::SqliteUtil::StatementSync::registerMembers":{registerMembers:["registry"]},"workerd::api::node::SqliteUtil":{backup:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::SqliteUtil::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::SqliteUtil::registerMembers":{registerMembers:["registry"]},"workerd::api::node::TimersUtil":{setImmediate:["js","function","args"],clearImmediate:["js","immediate"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::TimersUtil::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::TimersUtil::registerMembers":{registerMembers:["registry"]},"workerd::api::node::UrlUtil":{domainToUnicode:["js","domain"],domainToASCII:["js","domain"],format:["js","href","hash","unicode","search","auth"],toASCII:["js","url"],canonicalizeIp:["js","input"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::UrlUtil::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::UrlUtil::registerMembers":{registerMembers:["registry"]},"workerd::ConstMimeType":{$constructor:["type","subtype"],"operator==":["other"]},"workerd::MimeType":{tryParse:["input","options"],parse:["input","options"],$constructor:["type","subtype","params"],setType:["type"],setSubtype:["type"],addParam:["name","value"],eraseParam:["name"],clone:["options"],"operator==":["other"],formDataWithBoundary:["boundary"],formUrlEncodedWithCharset:["charset"],extract:["input"],visitForMemoryInfo:["tracker"],paramsToString:["buffer"],tryParseImpl:["input","options"]},"workerd::MimeType::isXml":{isXml:["mimeType"]},"workerd::MimeType::isJson":{isJson:["mimeType"]},"workerd::MimeType::isFont":{isFont:["mimeType"]},"workerd::MimeType::isJavascript":{isJavascript:["mimeType"]},"workerd::MimeType::isText":{isText:["mimeType"]},"workerd::MimeType::isImage":{isImage:["mimeType"]},"workerd::MimeType::isVideo":{isVideo:["mimeType"]},"workerd::MimeType::isAudio":{isAudio:["mimeType"]},"workerd::api::node::MIMEParams":{$constructor:["js"],delete:["name"],get:["name"],has:["name"],set:["name","value"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::MIMEParams::EntryIterator":{next:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::MIMEParams::EntryIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::MIMEParams::EntryIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::node::MIMEParams::KeyIterator":{next:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::MIMEParams::KeyIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::MIMEParams::KeyIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::node::MIMEParams::ValueIterator":{next:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::MIMEParams::ValueIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::MIMEParams::ValueIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::node::MIMEParams::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::MIMEParams::registerMembers":{registerMembers:["registry"]},"workerd::api::node::MIMEParams::iteratorNext":{iteratorNext:["js","state"]},"workerd::api::node::MIMEType":{$constructor:["js","input"],setType:["type"],setSubtype:["subtype"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::MIMEType::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::MIMEType::registerMembers":{registerMembers:["registry"]},"workerd::api::node::UtilModule":{getResourceTypeInspect:["js"],getOwnNonIndexProperties:["js","value","filter"],getPromiseDetails:["js","value"],getProxyDetails:["js","value"],previewEntries:["js","value"],getConstructorName:["js","value"],getCallSites:["js","frames"],isArrayBufferView:["value"],isArgumentsObject:["value"],isArrayBuffer:["value"],isAsyncFunction:["value"],isBigInt64Array:["value"],isBigIntObject:["value"],isBigUint64Array:["value"],isBooleanObject:["value"],isDataView:["value"],isDate:["value"],isExternal:["value"],isFloat16Array:["value"],isFloat32Array:["value"],isFloat64Array:["value"],isGeneratorFunction:["value"],isGeneratorObject:["value"],isInt8Array:["value"],isInt16Array:["value"],isInt32Array:["value"],isMap:["value"],isMapIterator:["value"],isModuleNamespaceObject:["value"],isNativeError:["value"],isNumberObject:["value"],isPromise:["value"],isProxy:["value"],isRegExp:["value"],isSet:["value"],isSetIterator:["value"],isSharedArrayBuffer:["value"],isStringObject:["value"],isSymbolObject:["value"],isTypedArray:["value"],isUint8Array:["value"],isUint8ClampedArray:["value"],isUint16Array:["value"],isUint32Array:["value"],isWeakMap:["value"],isWeakSet:["value"],isAnyArrayBuffer:["value"],isBoxedPrimitive:["value"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::node::UtilModule::PromiseDetails::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::node::UtilModule::PromiseDetails::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::UtilModule::PromiseDetails::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::UtilModule::ProxyDetails::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::node::UtilModule::ProxyDetails::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::UtilModule::ProxyDetails::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::UtilModule::PreviewedEntries::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::node::UtilModule::PreviewedEntries::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::UtilModule::PreviewedEntries::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::UtilModule::CallSiteEntry::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::node::UtilModule::CallSiteEntry::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::node::UtilModule::CallSiteEntry::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::node::UtilModule::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::node::UtilModule::registerMembers":{registerMembers:["registry"]},"workerd::rust::jsg":{local_drop:["value"],local_clone:["value"],local_to_global:["isolate","value"],local_new_number:["isolate","value"],local_new_string:["isolate","value"],local_new_boolean:["isolate","value"],local_new_object:["isolate"],local_new_null:["isolate"],local_new_undefined:["isolate"],local_new_array:["isolate","length"],local_new_uint8_array:["isolate","data","length"],local_new_uint16_array:["isolate","data","length"],local_new_uint32_array:["isolate","data","length"],local_new_int8_array:["isolate","data","length"],local_new_int16_array:["isolate","data","length"],local_new_int32_array:["isolate","data","length"],local_new_float32_array:["isolate","data","length"],local_new_float64_array:["isolate","data","length"],local_new_bigint64_array:["isolate","data","length"],local_new_biguint64_array:["isolate","data","length"],local_eq:["lhs","rhs"],local_has_value:["val"],local_is_string:["val"],local_is_boolean:["val"],local_is_number:["val"],local_is_null:["val"],local_is_undefined:["val"],local_is_null_or_undefined:["val"],local_is_object:["val"],local_is_native_error:["val"],local_is_array:["val"],local_is_uint8_array:["val"],local_is_uint16_array:["val"],local_is_uint32_array:["val"],local_is_int8_array:["val"],local_is_int16_array:["val"],local_is_int32_array:["val"],local_is_float32_array:["val"],local_is_float64_array:["val"],local_is_bigint64_array:["val"],local_is_biguint64_array:["val"],local_is_array_buffer:["val"],local_is_array_buffer_view:["val"],local_type_of:["isolate","val"],local_object_set_property:["isolate","object","key","value"],local_object_has_property:["isolate","object","key"],local_object_get_property:["isolate","object","key"],local_array_length:["isolate","array"],local_array_get:["isolate","array","index"],local_array_set:["isolate","array","index","value"],local_array_iterate:["isolate","value"],local_typed_array_length:["isolate","array"],local_uint8_array_get:["isolate","array","index"],local_uint16_array_get:["isolate","array","index"],local_uint32_array_get:["isolate","array","index"],local_int8_array_get:["isolate","array","index"],local_int16_array_get:["isolate","array","index"],local_int32_array_get:["isolate","array","index"],local_float32_array_get:["isolate","array","index"],local_float64_array_get:["isolate","array","index"],local_bigint64_array_get:["isolate","array","index"],local_biguint64_array_get:["isolate","array","index"],global_drop:["value"],global_clone:["value"],global_to_local:["isolate","value"],global_make_weak:["isolate","value","data","callback"],wrap_resource:["isolate","resource","tmpl","drop_callback"],unwrap_string:["isolate","value"],unwrap_boolean:["isolate","value"],unwrap_number:["isolate","value"],unwrap_resource:["isolate","value"],unwrap_uint8_array:["isolate","value"],unwrap_uint16_array:["isolate","value"],unwrap_uint32_array:["isolate","value"],unwrap_int8_array:["isolate","value"],unwrap_int16_array:["isolate","value"],unwrap_int32_array:["isolate","value"],unwrap_float32_array:["isolate","value"],unwrap_float64_array:["isolate","value"],unwrap_bigint64_array:["isolate","value"],unwrap_biguint64_array:["isolate","value"],fci_get_isolate:["args"],fci_get_this:["args"],fci_get_length:["args"],fci_get_arg:["args","index"],fci_set_return_value:["args","value"],register_add_builtin_module:["registry","specifier","callback","moduleType"],create_resource_template:["isolate","descriptor"],realm_from_isolate:["isolate"],exception_create:["isolate","exception_type","message"],isolate_throw_exception:["isolate","exception"],isolate_throw_error:["isolate","message"],isolate_is_locked:["isolate"]},"workerd::rust::jsg::ModuleRegistry":{addBuiltinModule:["specifier","moduleCallback","moduleType"]},"workerd::rust::api":{register_nodejs_modules:["registry"]},"workerd::rust::jsg::to_ffi":{to_ffi:["value"]},"workerd::rust::jsg::local_from_ffi":{local_from_ffi:["value"]},"workerd::rust::jsg::local_as_ref_from_ffi":{local_as_ref_from_ffi:["value"]},"workerd::rust::jsg::global_from_ffi":{global_from_ffi:["value"]},"workerd::rust::jsg::global_as_ref_from_ffi":{global_as_ref_from_ffi:["value"]},"workerd::rust::jsg::RustModuleRegistry::RustModuleRegistry":{$constructor:["registry"],addBuiltinModule:["specifier","moduleCallback","moduleType"]},"workerd::util::Autogate":{isEnabled:["key"],initAutogate:["autogates"],initAutogateNamesForTest:["gateNames"],$constructor:["autogates"]},"workerd::util":{"operator*":["key"]},"workerd::api::node::isNodeJsCompatEnabled":{isNodeJsCompatEnabled:["featureFlags"]},"workerd::api::node::registerNodeJsCompatModules":{registerNodeJsCompatModules:["registry","featureFlags"]},"workerd::api::node::getInternalNodeJsCompatModuleBundle":{getInternalNodeJsCompatModuleBundle:["featureFlags"]},"workerd::api::node::getExternalNodeJsCompatModuleBundle":{getExternalNodeJsCompatModuleBundle:["featureFlags"]},"workerd::api::R2Error":{$constructor:["v4Code","message"],getStack:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::R2Error::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::R2Error::registerMembers":{registerMembers:["registry"]},"workerd::api::R2Result":{throwIfError:["action","errorType"]},"workerd::api::public_beta":{r2GetClient:["context","subrequestChannel","user"],fillR2Path:["pathStorage","bucket"],parseHeadResultWrapper:["js","action","r2Result","errorType"],addHeadResultSpanTags:["js","traceContext","result"]},"workerd::api::public_beta::R2Bucket::FeatureFlags":{$constructor:["featureFlags"]},"workerd::api::public_beta::R2Bucket":{$constructor:["featureFlags","clientIndex","bucket","jwt"],head:["js","key","errorType","flags"],get:["js","key","options","errorType","flags"],put:["js","key","value","options","errorType"],createMultipartUpload:["js","key","options","errorType"],resumeMultipartUpload:["js","key","uploadId","errorType"],delete:["js","keys","errorType"],list:["js","options","errorType","flags"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],visitForMemoryInfo:["tracker"]},"workerd::api::public_beta::R2Bucket::Range::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::public_beta::R2Bucket::Range::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::public_beta::R2Bucket::Range::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::public_beta::R2Bucket::Conditional::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::public_beta::R2Bucket::Conditional::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::public_beta::R2Bucket::Conditional::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::public_beta::R2Bucket::GetOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::public_beta::R2Bucket::GetOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::public_beta::R2Bucket::GetOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::public_beta::R2Bucket::StringChecksums::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::public_beta::R2Bucket::StringChecksums::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::public_beta::R2Bucket::StringChecksums::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::public_beta::R2Bucket::Checksums":{$constructor:["md5","sha1","sha256","sha384","sha512"],getMd5:["js"],getSha1:["js"],getSha256:["js"],getSha384:["js"],getSha512:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::public_beta::R2Bucket::Checksums::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::public_beta::R2Bucket::Checksums::registerMembers":{registerMembers:["registry"]},"workerd::api::public_beta::R2Bucket::HttpMetadata":{fromRequestHeaders:["js","h"],jsgGetMemoryInfo:["tracker"]},"workerd::api::public_beta::R2Bucket::HttpMetadata::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::public_beta::R2Bucket::HttpMetadata::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::public_beta::R2Bucket::HttpMetadata::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::public_beta::R2Bucket::PutOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::public_beta::R2Bucket::PutOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::public_beta::R2Bucket::PutOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::public_beta::R2Bucket::MultipartOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::public_beta::R2Bucket::MultipartOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::public_beta::R2Bucket::MultipartOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::public_beta::R2Bucket::HeadResult":{$constructor:["name","version","size","etag","checksums","uploaded","httpMetadata","customMetadata","range","storageClass","ssecKeyMd5"],writeHttpMetadata:["js","headers"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::public_beta::R2Bucket::HeadResult::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::public_beta::R2Bucket::HeadResult::registerMembers":{registerMembers:["registry"]},"workerd::api::public_beta::R2Bucket::GetResult":{$constructor:["name","version","size","etag","checksums","uploaded","httpMetadata","customMetadata","range","storageClass","ssecKeyMd5","body"],arrayBuffer:["js"],bytes:["js"],text:["js"],json:["js"],blob:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::public_beta::R2Bucket::GetResult::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::public_beta::R2Bucket::GetResult::registerMembers":{registerMembers:["registry"]},"workerd::api::public_beta::R2Bucket::ListResult::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::public_beta::R2Bucket::ListResult::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::public_beta::R2Bucket::ListResult::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::public_beta::R2Bucket::ListOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::public_beta::R2Bucket::ListOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::public_beta::R2Bucket::ListOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::public_beta::R2Bucket::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::public_beta::R2Bucket::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::public_beta::R2Bucket::UnwrappedConditional":{$constructor:["c","h"]},"workerd::api::public_beta::R2Admin":{$constructor:["featureFlags","subrequestChannel","jwt"],create:["js","name","errorType"],get:["js","name"],delete:["js","bucketName","errorType"],list:["js","options","retrievedBucketType","errorType","flags"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::public_beta::R2Admin::ListOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::public_beta::R2Admin::ListOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::public_beta::R2Admin::ListOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::public_beta::R2Admin::RetrievedBucket":{$constructor:["featureFlags","subrequestChannel","name","created"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::public_beta::R2Admin::RetrievedBucket::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::public_beta::R2Admin::RetrievedBucket::registerMembers":{registerMembers:["registry"]},"workerd::api::public_beta::R2Admin::ListResult::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::public_beta::R2Admin::ListResult::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::public_beta::R2Admin::ListResult::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::public_beta::R2Admin::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::public_beta::R2Admin::registerMembers":{registerMembers:["registry"]},"workerd::api::public_beta::R2MultipartUpload::UploadedPart::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::public_beta::R2MultipartUpload::UploadedPart::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::public_beta::R2MultipartUpload::UploadedPart::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::public_beta::R2MultipartUpload::UploadPartOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::public_beta::R2MultipartUpload::UploadPartOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::public_beta::R2MultipartUpload::UploadPartOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::public_beta::R2MultipartUpload":{$constructor:["key","uploadId","bucket"],uploadPart:["js","partNumber","value","options","errorType"],abort:["js","errorType"],complete:["js","uploadedParts","errorType"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::public_beta::R2MultipartUpload::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::public_beta::R2MultipartUpload::registerMembers":{registerMembers:["registry"]},"workerd::api::ScheduledEvent":{$constructor:["type","cron"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::ScheduledEvent::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::ScheduledEvent::registerMembers":{registerMembers:["registry"]},"workerd::api::ScheduledController":{$constructor:["event"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::ScheduledController::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::ScheduledController::registerMembers":{registerMembers:["registry"]},"workerd::api::SocketAddress::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::SocketAddress::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::SocketAddress::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SocketInfo::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::SocketInfo::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::SocketInfo::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SocketOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::SocketOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::SocketOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SocketOptions":{jsgGetMemoryInfo:["tracker"]},"workerd::api::TlsOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::TlsOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::TlsOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::Socket":{$constructor:["js","context","connectionStream","remoteAddress","readableParam","writable","closedPrPair","watchForDisconnectTask","options","tlsStarter","secureTransport","domain","isDefaultFetchPort","openedPrPair"],takeConnectionStream:["js"],close:["js"],startTls:["js","options"],handleProxyStatus:["js","status"],handleReadableEof:["js","onEof"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],maybeCloseWriteSide:["js"],closeImplOld:["js"],closeImplNew:["js"],handleProxyError:["js","e"],resolveFulfiller:["js","maybeErr"],errorHandler:["js","err"],visitForGc:["visitor"]},"workerd::api::Socket::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Socket::registerMembers":{registerMembers:["registry"]},"workerd::api::Socket::ConnectionData":{$constructor:["tlsStarter","connStream","disconnectTask"]},"workerd::api::SocketsModule":{connect:["js","address","options"],internalNewHttpClient:["js","socket"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"]},"workerd::api::SocketsModule::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::SocketsModule::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::registerSocketsModule":{registerSocketsModule:["registry","featureFlags"]},"workerd::api::getInternalSocketModuleBundle":{getInternalSocketModuleBundle:["featureFlags"]},"workerd::api::SqlStorage":{$constructor:["storage"],exec:["js","query","bindings"],ingest:["js","query"],setMaxPageCountForTest:["js","count"],prepare:["js","query"],getDatabaseSize:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"],isAllowedName:["name"],isAllowedTrigger:["name"],onError:["sqliteErrorCode","message"],getDb:["js"],getPageSize:["db"],wrapSqlValue:["js","value"]},"workerd::api::SqlStorage::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::SqlStorage::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::SqlStorage::CachedStatement":{$constructor:["js","sqlStorage","db","jsQuery","kjQuery"]},"workerd::api::SqlStorage::StatementCacheCallbacks":{keyForRow:["entry"],matches:["entry","key"],hashCode:["key"]},"workerd::api::SqlStorage::execMemoized":{execMemoized:["db","slot","sqlCode","params"]},"workerd::api::Cursor::Cursor":{$constructor:["js","doneCb","params"]},"workerd::api::Cursor":{getColumnNames:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],next:["js"],toArray:["js"],one:["js"],visitForMemoryInfo:["tracker"],endQuery:["stateRef"],initColumnNames:["js","stateRef"],mapBindings:["values"],rowIteratorNext:["js","obj"],rawIteratorNext:["js","obj"],iteratorImpl:["js","obj"],visitForGc:["visitor"]},"workerd::api::Cursor::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Cursor::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::Cursor::RowIterator":{next:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::Cursor::RowIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Cursor::RowIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::Cursor::RawIterator":{next:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::Cursor::RawIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Cursor::RawIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::Cursor::State":{$constructor:["cachedStatement","bindings","sqlCode","bindings"]},"workerd::api::Statement":{$constructor:["js","sqlStorage","query"],run:["js","bindings"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::Statement::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Statement::registerMembers":{registerMembers:["registry"]},"workerd::api::IngestResult":{$constructor:["remainder","rowsRead","rowsWritten","statementCount"]},"workerd::api::IngestResult::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::IngestResult::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::IngestResult::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::TextEncoderStream":{$constructor:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::TextEncoderStream::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::TextEncoderStream::registerMembers":{registerMembers:["registry"]},"workerd::api::TextDecoderStream::TextDecoderStreamInit::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::TextDecoderStream::TextDecoderStreamInit::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::TextDecoderStream::TextDecoderStreamInit::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::TextDecoderStream":{$constructor:["js","label","options"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::TextDecoderStream::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::TextDecoderStream::registerMembers":{registerMembers:["registry"]},"workerd::api::IdentityTransformStream::QueuingStrategy::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::IdentityTransformStream::QueuingStrategy::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::IdentityTransformStream::QueuingStrategy::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::IdentityTransformStream":{$constructor:["js","queuingStrategy"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::IdentityTransformStream::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::IdentityTransformStream::registerMembers":{registerMembers:["registry"]},"workerd::api::FixedLengthStream":{$constructor:["js","expectedLength","queuingStrategy"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::FixedLengthStream::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::FixedLengthStream::registerMembers":{registerMembers:["registry"]},"workerd::RingBuffer::RingBuffer":{$constructor:["other"],"operator=":["other"],push_back:["item"],slot:["index"]},"workerd::RingBuffer::RingBuffer::iterator":{"operator==":["other"],"operator!=":["other"],$constructor:["buf","idx"]},"workerd::RingBuffer::RingBuffer::const_iterator":{$constructor:["buf","idx"],"operator==":["other"],"operator!=":["other"]},"workerd::RingBuffer::RingBuffer::emplace_back":{emplace_back:["args"]},"workerd::SmallSet::SmallSet":{add:["item"]},"workerd::SmallSet::SmallSet::removeIf":{removeIf:["predicate"]},"workerd::SmallSet::SmallSet::containsIf":{containsIf:["predicate"]},"workerd::SmallSet::SmallSet::forEach":{forEach:["func"]},"workerd::SmallSet::SmallSet::Single":{$constructor:["item"]},"workerd::SmallSet::SmallSet::Double":{$constructor:["first","second"]},"workerd::SmallSet::SmallSet::ConstIterator":{"operator==":["other"],"operator!=":["other"],$constructor:["storage","index"]},"workerd::SmallSet::SmallSet::Iterator":{"operator==":["other"],"operator!=":["other"],$constructor:["storage","index"]},"workerd::api::ConsumerImpl::ConsumerImpl":{$constructor:["stateListener","stateListener"],cancel:["js","maybeReason"],close:["js"],error:["js","reason"],push:["js","entry"],read:["js","request"],resolveRead:["js","req"],resolveReadAsDone:["js","req"],cloneTo:["js","other"],cancelPendingReads:["js","reason"],visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"],maybeDrainAndSetState:["js","maybeReason"]},"workerd::api::ConsumerImpl::ConsumerImpl::Ready":{jsgGetMemoryInfo:["tracker"]},"workerd::api::QueueImpl::QueueImpl":{$constructor:["highWaterMark"],close:["js"],error:["js","reason"],push:["js","entry","skipConsumer"],jsgGetMemoryInfo:["tracker"],addConsumer:["weakRef"],removeConsumer:["consumer"]},"workerd::api::QueueImpl::QueueImpl::~QueueImpl<Self>":{"operator()":["consumer"]},"workerd::api::ConsumerImpl::ConsumerImpl::StateListener":{onConsumerClose:["js"],onConsumerError:["js","reason"],onConsumerWantsData:["js"]},"workerd::api::ConsumerImpl::ConsumerImpl::UpdateBackpressureScope":{$constructor:["consumer"]},"workerd::api::ValueQueue::State":{jsgGetMemoryInfo:["tracker"]},"workerd::api::ValueQueue::ReadRequest":{resolveAsDone:["js"],resolve:["js","value"],reject:["js","value"],jsgGetMemoryInfo:["tracker"]},"workerd::api::ValueQueue::Entry":{$constructor:["value","size"],getValue:["js"],visitForGc:["visitor"],clone:["js"],jsgGetMemoryInfo:["tracker"]},"workerd::api::ValueQueue::QueueEntry":{clone:["js"],jsgGetMemoryInfo:["tracker"]},"workerd::api::ValueQueue::Consumer":{$constructor:["stateListener","stateListener"],cancel:["js","maybeReason"],close:["js"],error:["js","reason"],read:["js","request"],drainingRead:["js","maxRead"],push:["js","entry"],clone:["js","stateListener"],cancelPendingReads:["js","reason"],visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"]},"workerd::api::ValueQueue":{$constructor:["highWaterMark"],close:["js"],error:["js","reason"],push:["js","entry"],visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"],handlePush:["js","state","queue","entry"],handleRead:["js","state","consumer","queue","request"],handleMaybeClose:["js","state","consumer","queue"]},"workerd::api::ByteQueue::ReadRequest::PullInto":{jsgGetMemoryInfo:["tracker"]},"workerd::api::ByteQueue::ReadRequest":{$constructor:["resolver","pullInto"],resolveAsDone:["js"],resolve:["js"],reject:["js","value"],makeByobReadRequest:["consumer","queue"],jsgGetMemoryInfo:["tracker"]},"workerd::api::ByteQueue::ByobRequest":{$constructor:["request","consumer","queue"],respond:["js","amount"],respondWithNewView:["js","view"],getView:["js"],getOriginalBufferByteLength:["js"],jsgGetMemoryInfo:["tracker"]},"workerd::api::ByteQueue::State":{jsgGetMemoryInfo:["tracker"]},"workerd::api::ByteQueue::Entry":{$constructor:["store"],visitForGc:["visitor"],clone:["js"],jsgGetMemoryInfo:["tracker"]},"workerd::api::ByteQueue::QueueEntry":{clone:["js"],jsgGetMemoryInfo:["tracker"]},"workerd::api::ByteQueue::Consumer":{$constructor:["stateListener","stateListener"],cancel:["js","maybeReason"],close:["js"],error:["js","reason"],read:["js","request"],drainingRead:["js","maxRead"],push:["js","entry"],clone:["js","stateListener"],cancelPendingReads:["js","reason"],visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"]},"workerd::api::ByteQueue":{$constructor:["highWaterMark"],close:["js"],error:["js","reason"],push:["js","entry"],visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"],handlePush:["js","state","queue","entry"],handleRead:["js","state","consumer","queue","request"],handleMaybeClose:["js","state","consumer","queue"]},"workerd::api::ReadableImpl::ReadableImpl":{$constructor:["underlyingSource","queuingStrategy"],start:["js","self"],cancel:["js","self","maybeReason"],doCancel:["js","self","reason"],close:["js"],enqueue:["js","entry","self"],doClose:["js"],doError:["js","reason"],pullIfNeeded:["js","self"],forcePullIfNeeded:["js","self"],getConsumer:["listener"],visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"]},"workerd::api::ReadableImpl::ReadableImpl::Algorithms":{$constructor:["other","queuingStrategy"],"operator=":["other"],visitForGc:["visitor"]},"workerd::api::ReadableImpl::ReadableImpl::PendingCancel":{jsgGetMemoryInfo:["tracker"]},"workerd::api::WritableImpl::WritableImpl::WriteRequest":{visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"]},"workerd::api::WritableImpl::WritableImpl":{$constructor:["js","owner","abortSignal"],abort:["js","self","reason"],advanceQueueIfNeeded:["js","self"],close:["js","self"],dealWithRejection:["js","self","reason"],doClose:["js"],doError:["js","reason"],error:["js","self","reason"],finishErroring:["js","self"],finishInFlightClose:["js","self","reason"],finishInFlightWrite:["js","self","reason"],rejectCloseAndClosedPromiseIfNeeded:["js"],setup:["js","self","underlyingSink","queuingStrategy"],startErroring:["js","self","reason"],updateBackpressure:["js"],write:["js","self","value"],cancelPendingWrites:["js","reason"],visitForGc:["visitor"],jsgGetMemoryInfo:["tracker"]},"workerd::api::WritableImpl::WritableImpl::Algorithms":{$constructor:["other"],"operator=":["other"],visitForGc:["visitor"]},"workerd::api::ReadableStreamDefaultController":{$constructor:["underlyingSource","queuingStrategy"],start:["js"],cancel:["js","maybeReason"],close:["js"],enqueue:["js","chunk"],error:["js","reason"],pull:["js"],forcePull:["js"],getConsumer:["stateListener"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],getMaybeErrorState:["js"],visitForGc:["visitor"]},"workerd::api::ReadableStreamDefaultController::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::ReadableStreamDefaultController::registerMembers":{registerMembers:["registry"]},"workerd::api::ReadableStreamBYOBRequest":{$constructor:["js","readRequest","controller"],getView:["js"],invalidate:["js"],respond:["js","bytesWritten"],respondWithNewView:["js","view"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::ReadableStreamBYOBRequest::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::ReadableStreamBYOBRequest::registerMembers":{registerMembers:["registry"]},"workerd::api::ReadableStreamBYOBRequest::Impl":{$constructor:["js","readRequest","controller"],updateView:["js"]},"workerd::api::ReadableByteStreamController":{$constructor:["underlyingSource","queuingStrategy"],start:["js"],cancel:["js","maybeReason"],close:["js"],enqueue:["js","chunk"],error:["js","reason"],getByobRequest:["js"],pull:["js"],forcePull:["js"],getConsumer:["stateListener"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::ReadableByteStreamController::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::ReadableByteStreamController::registerMembers":{registerMembers:["registry"]},"workerd::api::WritableStreamDefaultController":{$constructor:["js","owner","abortSignal"],abort:["js","reason"],close:["js"],error:["js","reason"],isErroring:["js"],setup:["js","underlyingSink","queuingStrategy"],write:["js","value"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],cancelPendingWrites:["js","reason"],visitForGc:["visitor"]},"workerd::api::WritableStreamDefaultController::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::WritableStreamDefaultController::registerMembers":{registerMembers:["registry"]},"workerd::api::TransformStreamDefaultController":{$constructor:["js"],init:["js","readable","writable","maybeTransformer"],getStartPromise:["js"],enqueue:["js","chunk"],error:["js","reason"],terminate:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],write:["js","chunk"],abort:["js","reason"],close:["js"],pull:["js"],cancel:["js","reason"],visitForMemoryInfo:["tracker"],errorWritableAndUnblockWrite:["js","reason"],performTransform:["js","chunk"],setBackpressure:["js","newBackpressure"],getReadableErrorState:["js"],visitForGc:["visitor"]},"workerd::api::TransformStreamDefaultController::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::TransformStreamDefaultController::registerMembers":{registerMembers:["registry"]},"workerd::api::TransformStreamDefaultController::Algorithms":{$constructor:["other"],"operator=":["other"],visitForGc:["visitor"]},"workerd::SqliteKvRegulator":{onError:["sqliteErrorCode","message"]},"workerd::SqliteKv":{$constructor:["db"],list:["begin","end","limit","order"],put:["key","value","options"],delete:["key","options"],ensureInitialized:["allowUnconfirmed"],rollbackMultiPut:["stmts","options"]},"workerd::SqliteKv::get":{get:["key","callback"]},"workerd::SqliteKv::list":{list:["begin","end","limit","order","callback"]},"workerd::SqliteKv::put":{put:["pairs","options"]},"workerd::SqliteKv::Initialized":{$constructor:["db"]},"workerd::ListCursor::ListCursor":{$constructor:["parent","params"]},"workerd::ListCursor::forEach":{forEach:["callback"]},"workerd::ListCursor::State::State":{$constructor:["parent","stmt","params"]},"workerd::get":{get:["key","callback"]},"workerd::list":{list:["begin","end","limit","order","callback"]},"workerd::put":{put:["pairs","options"]},"workerd::api::SyncKvStorage":{$constructor:["storage"],get:["js","key"],list:["js","options"],put:["js","key","value"],delete:["js","key"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],getSqliteKv:["js"],listNext:["js","state"]},"workerd::api::SyncKvStorage::ListOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::SyncKvStorage::ListOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::SyncKvStorage::ListOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::SyncKvStorage::ListIterator":{next:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::SyncKvStorage::ListIterator::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::SyncKvStorage::ListIterator::registerMembers":{registerMembers:["registry"]},"workerd::api::SyncKvStorage::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::SyncKvStorage::registerMembers":{registerMembers:["registry"]},"workerd::api::TailEvent":{$constructor:["type","type","events"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::TailEvent::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::TailEvent::registerMembers":{registerMembers:["registry"]},"workerd::api::ScriptVersion":{$constructor:["version"],jsgGetMemoryInfo:["tracker"]},"workerd::api::ScriptVersion::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::ScriptVersion::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::ScriptVersion::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::TraceItem":{$constructor:["js","trace"],getEvent:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"],visitForMemoryInfo:["tracker"]},"workerd::api::TraceItem::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::TraceItem::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::FetchEventInfo":{$constructor:["js","trace","eventInfo","responseInfo"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::FetchEventInfo::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::FetchEventInfo::registerMembers":{registerMembers:["registry"]},"workerd::api::Request::Detail":{$constructor:["cf","headers","method","url"],jsgGetMemoryInfo:["tracker"]},"workerd::api::JsRpcEventInfo":{$constructor:["trace","eventInfo"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::JsRpcEventInfo::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::JsRpcEventInfo::registerMembers":{registerMembers:["registry"]},"workerd::api::ScheduledEventInfo":{$constructor:["trace","eventInfo"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::ScheduledEventInfo::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::ScheduledEventInfo::registerMembers":{registerMembers:["registry"]},"workerd::api::AlarmEventInfo":{$constructor:["trace","eventInfo"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::AlarmEventInfo::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::AlarmEventInfo::registerMembers":{registerMembers:["registry"]},"workerd::api::QueueEventInfo":{$constructor:["trace","eventInfo"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::QueueEventInfo::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::QueueEventInfo::registerMembers":{registerMembers:["registry"]},"workerd::api::EmailEventInfo":{$constructor:["trace","eventInfo"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::EmailEventInfo::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::EmailEventInfo::registerMembers":{registerMembers:["registry"]},"workerd::api::TailEventInfo":{$constructor:["js","trace","eventInfo"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::TailEventInfo::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::TailEventInfo::registerMembers":{registerMembers:["registry"]},"workerd::api::TailItem":{$constructor:["traceItem"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::TailItem::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::TailItem::registerMembers":{registerMembers:["registry"]},"workerd::api::HibernatableWebSocketEventInfo":{$constructor:["js","trace","eventInfo"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::HibernatableWebSocketEventInfo::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::HibernatableWebSocketEventInfo::registerMembers":{registerMembers:["registry"]},"workerd::api::Message":{$constructor:["trace","eventInfo"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::Message::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Message::registerMembers":{registerMembers:["registry"]},"workerd::api::Close":{$constructor:["trace","eventInfo"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::Close::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Close::registerMembers":{registerMembers:["registry"]},"workerd::api::Error":{$constructor:["trace","eventInfo"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::Error::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Error::registerMembers":{registerMembers:["registry"]},"workerd::api::CustomEventInfo":{$constructor:["trace","eventInfo"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::CustomEventInfo::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::CustomEventInfo::registerMembers":{registerMembers:["registry"]},"workerd::api::TraceDiagnosticChannelEvent":{$constructor:["trace","eventInfo"],getMessage:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::TraceDiagnosticChannelEvent::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::TraceDiagnosticChannelEvent::registerMembers":{registerMembers:["registry"]},"workerd::api::TraceLog":{$constructor:["js","trace","log"],getMessage:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::TraceLog::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::TraceLog::registerMembers":{registerMembers:["registry"]},"workerd::api::TraceException":{$constructor:["trace","exception"],getStack:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"]},"workerd::api::TraceException::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::TraceException::registerMembers":{registerMembers:["registry"]},"workerd::api::TraceMetrics":{$constructor:["cpuTime","wallTime"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::TraceMetrics::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::TraceMetrics::registerMembers":{registerMembers:["registry"]},"workerd::api::UnsafeTraceMetrics":{fromTrace:["js","item"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::UnsafeTraceMetrics::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::UnsafeTraceMetrics::registerMembers":{registerMembers:["registry"]},"workerd::api::TraceCustomEvent":{$constructor:["typeId","traces"],run:["incomingRequest","entrypointName","props","waitUntilTasks"],sendRpc:["httpOverCapnpFactory","byteStreamFactory","dispatcher"]},"workerd::api::JsSpan":{$constructor:["span"],setAttribute:["js","key","value"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::JsSpan::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::JsSpan::registerMembers":{registerMembers:["registry"]},"workerd::api::TracingModule":{startSpan:["js","name"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::TracingModule::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::TracingModule::registerMembers":{registerMembers:["registry"]},"workerd::api::registerTracingModule":{registerTracingModule:["registry","flags"]},"workerd::api::getInternalTracingModuleBundle":{getInternalTracingModuleBundle:["featureFlags"]},"workerd::jsg::NonModuleScript":{$constructor:["js","script"],run:["js"],runAndReturn:["js"],compile:["js","code","name"]},"workerd::api::UnsafeEval":{eval:["js","script","name"],newFunction:["js","script","name","args","handler"],newAsyncFunction:["js","script","name","args","handler"],newWasmModule:["js","src"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::UnsafeEval::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::UnsafeEval::registerMembers":{registerMembers:["registry"]},"workerd::api::Stdin":{reprl:["js"],getline:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::Stdin::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::Stdin::registerMembers":{registerMembers:["registry"]},"workerd::api::UnsafeModule":{abortAllDurableObjects:["js"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::UnsafeModule::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::UnsafeModule::registerMembers":{registerMembers:["registry"]},"workerd::api::registerUnsafeModule":{registerUnsafeModule:["registry"]},"workerd::api::registerUnsafeModules":{registerUnsafeModules:["registry","featureFlags"]},"workerd::api::getInternalUnsafeModuleBundle":{getInternalUnsafeModuleBundle:["featureFlags"]},"workerd::api::getExternalUnsafeModuleBundle":{getExternalUnsafeModuleBundle:["featureFlags"]},"workerd::api::urlpattern::URLPattern::URLPatternRegexEngine":{create_instance:["pattern","ignore_case"],regex_search:["input","pattern"],regex_match:["input","pattern"]},"workerd::api::urlpattern::URLPattern::URLPatternInit::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::urlpattern::URLPattern::URLPatternInit::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::urlpattern::URLPattern::URLPatternInit::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::urlpattern::URLPattern::URLPatternComponentResult::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::urlpattern::URLPattern::URLPatternComponentResult::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::urlpattern::URLPattern::URLPatternComponentResult::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::urlpattern::URLPattern::URLPatternResult::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::urlpattern::URLPattern::URLPatternResult::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::urlpattern::URLPattern::URLPatternResult::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::urlpattern::URLPattern::URLPatternOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::urlpattern::URLPattern::URLPatternOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::urlpattern::URLPattern::URLPatternOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::urlpattern::URLPattern":{$constructor:["js","input","baseURL","patternOptions"],exec:["js","input","baseURL"],test:["input","baseURL"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],createURLPatternInit:["js","other"],createURLPatternComponentResult:["js","other"],createURLPatternResult:["js","other"]},"workerd::api::urlpattern::URLPattern::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::urlpattern::URLPattern::registerMembers":{registerMembers:["registry"]},"workerd::api::URLPattern::URLPatternInit::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::URLPattern::URLPatternInit::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::URLPattern::URLPatternInit::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::URLPattern::URLPatternComponentResult::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::URLPattern::URLPatternComponentResult::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::URLPattern::URLPatternComponentResult::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::URLPattern::URLPatternResult::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::URLPattern::URLPatternResult::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::URLPattern::URLPatternResult::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::URLPattern::URLPatternOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::URLPattern::URLPatternOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::URLPattern::URLPatternOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::URLPattern":{$constructor:["js","input","baseURL","patternOptions","hostnameRegex","portRegex","pathnameRegex","searchRegex","hashRegex"],exec:["js","input","baseURL"],test:["js","input","baseURL"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],visitForMemoryInfo:["tracker"],visitForGc:["visitor"]},"workerd::api::URLPattern::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::URLPattern::registerMembers":{registerMembers:["registry"]},"workerd::api::WorkerStub":{$constructor:["channel"],getEntrypoint:["js","name","options"],getDurableObjectClass:["js","name","options"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],jsgConfiguration:["flags"]},"workerd::api::WorkerStub::EntrypointOptions::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::WorkerStub::EntrypointOptions::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::WorkerStub::EntrypointOptions::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::WorkerStub::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::WorkerStub::registerMembers":{registerMembers:["registry","flags"]},"workerd::api::WorkerLoader":{$constructor:["channel","compatDateValidation"],get:["js","name","getCode"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"],extractSource:["js","code"],extractCompatFlags:["js","code","compatDateValidation"],startWorker:["extractedSource","compatibilityFlags"]},"workerd::api::WorkerLoader::Module::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::WorkerLoader::Module::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::WorkerLoader::Module::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::WorkerLoader::WorkerCode::jsgGetTemplate":{jsgGetTemplate:["isolate"]},"workerd::api::WorkerLoader::WorkerCode::registerMembersInternal":{registerMembersInternal:["registry","arg"]},"workerd::api::WorkerLoader::WorkerCode::registerMembers":{registerMembers:["registry","arg"]},"workerd::api::WorkerLoader::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::WorkerLoader::registerMembers":{registerMembers:["registry"]},"workerd::api::WorkerEntrypoint":{$constructor:["args","ctx","env"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::WorkerEntrypoint::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::WorkerEntrypoint::registerMembers":{registerMembers:["registry"]},"workerd::api::DurableObjectBase":{$constructor:["args","ctx","env"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::DurableObjectBase::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::DurableObjectBase::registerMembers":{registerMembers:["registry"]},"workerd::api::WorkflowEntrypoint":{$constructor:["args","ctx","env"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::WorkflowEntrypoint::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::WorkflowEntrypoint::registerMembers":{registerMembers:["registry"]},"workerd::api::EntrypointsModule":{waitUntil:["promise"],jsgGetMemoryInfo:["tracker"],jsgVisitForGc:["visitor"]},"workerd::api::EntrypointsModule::visitSubclassForGc":{visitSubclassForGc:["obj","visitor"]},"workerd::api::EntrypointsModule::registerMembers":{registerMembers:["registry"]},"workerd::api::registerWorkersModule":{registerWorkersModule:["registry","flags"]},"workerd::api::getInternalRpcModuleBundle":{getInternalRpcModuleBundle:["featureFlags"]}};import _Le from"workerd:rtti";var a5e;function o5e(Q){a5e=Q}var Ovt=["function","number","string"];function c5e(Q,R,me){R==="constructor"&&(R=`$${R}`);let Te=a5e?.[Q]?.[R]?.[me];return Te===void 0?`param${me}`:Ovt.includes(Te)?`$${Te}`:Te}var pLe=Vh(Yg());import lLe from"node:assert";import R5e from"node:assert";import IO from"node:assert";var Mo=Vh(Yg());var zx=Vh(Yg()),k5e=zx.default.createSourceFile("placeholder.ts","",zx.default.ScriptTarget.ESNext,!1,zx.default.ScriptKind.TS),wY=zx.default.createPrinter({newLine:zx.default.NewLineKind.LineFeed});function qv(Q){return wY.printNode(zx.default.EmitHint.Unspecified,Q,k5e)}function vve(Q){return wY.printList(zx.default.ListFormat.MultiLine,zx.factory.createNodeArray(Q),k5e)}import aP from"node:assert";var eo=Vh(Yg());function Fvt(Q,R){for(let me=Q.length-1;me>=0;me--)if(R(Q[me],me,Q))return me;return-1}function bve(Q){if(eo.default.isUnionTypeNode(Q)&&Q.types.length===2&&eo.default.isTypeReferenceNode(Q.types[1])&&eo.default.isIdentifier(Q.types[1].typeName)&&Q.types[1].typeName.escapedText==="undefined")return Q.types[0]}function x5e(Q){return Q.name==="kj::Maybe"}function jvt(Q){return Q.name==="char"}function Lvt(Q){return Q.name==="unsigned char"}function Wvt(Q){let R=Q.name;return R==="long"||R==="unsigned long"||R==="long long"||R==="unsigned long long"||R==="jsg::JsBigInt"}function Bvt(Q){return Q.name==="kj::ArrayPtr"}function zvt(Q){return Q.name==="jsg::Sequence"}function wO(Q){let R=eo.default.isTypeReferenceNode(Q)&&eo.default.isIdentifier(Q.typeName)&&Q.typeName.text==="never",me=eo.default.isToken(Q)&&Q.kind==eo.default.SyntaxKind.NeverKeyword;return R||me}var Gvt=/^workerd::api::public_beta::|^workerd::api::urlpattern::|^workerd::api::node::|^workerd::api::|^workerd::jsg::|::|[ >]/g,Jvt=/[<,]/g;function oP(Q){let R;return typeof Q=="string"?(aP(Q.includes("::"),`Expected fully-qualified structure name, got "${Q}"`),R=Q):R=Q.fullyQualifiedName,R=R.replace(Gvt,""),R=R.replace(Jvt,"_"),R}function IY(Q,R,me,Te=!1){let ze=Fvt(me,xr=>!(xr._isMaybe&&!x5e(xr.maybe)||xr._isJsgImpl)),it=[];for(let xr=0;xr<me.length;xr++){let Ir=me[xr],vi=$v(Ir,!0,Te),Yi,Vi,Va=Ir.which();if(Va===_c.MAYBE){let Gl=bve(vi);Gl!==void 0&&xr>ze&&(vi=Gl,Vi=eo.factory.createToken(eo.default.SyntaxKind.QuestionToken))}else if(Va===_c.JSG_IMPL){if(Ir.jsgImpl.type===k0.JSG_VARARGS)aP(eo.default.isArrayTypeNode(vi),`Expected "T[]", got "${qv(vi)}"`),Yi=eo.factory.createToken(eo.default.SyntaxKind.DotDotDotToken);else if(wO(vi))continue}let Ke=eo.factory.createParameterDeclaration(void 0,Yi,c5e(Q,R,xr),Vi,vi);it.push(Ke)}return it}function $v(Q,R=!1,me=!1){aP(!me||R,'"allowMethodParameterCoercion" requires "allowCoercion"');let Te=Q.which();switch(Te){case _c.UNKNOWN:return eo.factory.createTypeReferenceNode("any");case _c.VOIDT:return eo.factory.createTypeReferenceNode("void");case _c.BOOLT:return eo.factory.createTypeReferenceNode("boolean");case _c.NUMBER:{let ze=Q.number;return Wvt(ze)?eo.factory.createUnionTypeNode([eo.factory.createTypeReferenceNode("number"),eo.factory.createTypeReferenceNode("bigint")]):eo.factory.createTypeReferenceNode("number")}case _c.PROMISE:{let ze=Q.promise.value;if(me&&ze.which()===_c.VOIDT)return eo.factory.createTypeReferenceNode("Promise",[eo.factory.createTypeReferenceNode("any")]);let it=$v(ze,R),xr=eo.factory.createTypeReferenceNode("Promise",[it]);return R?eo.factory.createUnionTypeNode([it,xr]):xr}case _c.STRUCTURE:return eo.factory.createTypeReferenceNode(oP(Q.structure));case _c.STRING:return eo.factory.createTypeReferenceNode("string");case _c.OBJECT:return eo.factory.createTypeReferenceNode("any");case _c.ARRAY:{let ze=Q.array,it=ze.element;return it._isNumber&&jvt(it.number)?eo.factory.createTypeReferenceNode("string"):it._isNumber&&Lvt(it.number)?R?eo.factory.createUnionTypeNode([eo.factory.createTypeReferenceNode("ArrayBuffer"),eo.factory.createTypeReferenceNode("ArrayBufferView")]):eo.factory.createTypeReferenceNode(Bvt(ze)?"ArrayBufferView":"ArrayBuffer"):zvt(ze)&&R?eo.factory.createTypeReferenceNode("Iterable",[$v(it,R)]):eo.factory.createArrayTypeNode($v(it,R))}case _c.MAYBE:{let ze=Q.maybe,it=x5e(ze)?"null":"undefined";return eo.factory.createUnionTypeNode([$v(ze.value,R),eo.factory.createTypeReferenceNode(it)])}case _c.DICT:{let ze=Q.dict;return eo.factory.createTypeReferenceNode("Record",[$v(ze.key,R),$v(ze.value,R)])}case _c.ONE_OF:{let ze=Q.oneOf.variants.map(it=>$v(it,R));return eo.factory.createUnionTypeNode(ze)}case _c.BUILTIN:{let ze=Q.builtin.type;switch(ze){case iP.V8UINT8ARRAY:return eo.factory.createTypeReferenceNode("Uint8Array");case iP.V8ARRAY_BUFFER_VIEW:return eo.factory.createTypeReferenceNode("ArrayBufferView");case iP.V8ARRAY_BUFFER:return eo.factory.createTypeReferenceNode("ArrayBuffer");case iP.JSG_BUFFER_SOURCE:return eo.factory.createUnionTypeNode([eo.factory.createTypeReferenceNode("ArrayBuffer"),eo.factory.createTypeReferenceNode("ArrayBufferView")]);case iP.KJ_DATE:return R?eo.factory.createUnionTypeNode([eo.factory.createTypeReferenceNode("number"),eo.factory.createTypeReferenceNode("Date")]):eo.factory.createTypeReferenceNode("Date");case iP.V8FUNCTION:return eo.factory.createTypeReferenceNode("Function");default:aP.fail(`Unknown builtin type: ${ze}`)}}case _c.INTRINSIC:{let ze=Q.intrinsic.name;switch(ze){case"v8::kErrorPrototype":return eo.factory.createTypeReferenceNode("Error");case"v8::kIteratorPrototype":return eo.factory.createTypeReferenceNode("Iterator",[eo.factory.createTypeReferenceNode("unknown")]);case"v8::kAsyncIteratorPrototype":return eo.factory.createTypeReferenceNode("AsyncIterator",[eo.factory.createTypeReferenceNode("unknown")]);default:aP.fail(`Unknown intrinsic type: ${ze}`)}}case _c.FUNCTION:{let ze=Q.function,it=IY("FUNCTION_TODO","FUNCTION_TODO",ze.args.toArray()),xr=$v(ze.returnType,!0);return eo.factory.createFunctionTypeNode(void 0,it,xr)}case _c.JSG_IMPL:{let ze=Q.jsgImpl.type;switch(ze){case k0.CONFIGURATION:case k0.V8ISOLATE:case k0.JSG_LOCK:case k0.JSG_TYPE_HANDLER:case k0.JSG_UNIMPLEMENTED:case k0.JSG_SELF_REF:case k0.V8FUNCTION_CALLBACK_INFO:case k0.V8PROPERTY_CALLBACK_INFO:return eo.factory.createTypeReferenceNode("never");case k0.JSG_VARARGS:return eo.factory.createArrayTypeNode(eo.factory.createTypeReferenceNode("any"));case k0.JSG_NAME:return eo.factory.createTypeReferenceNode("PropertyKey");default:aP.fail(`Unknown JSG implementation type: ${ze}`)}}case _c.JS_BUILTIN:aP.fail("`JS_BUILTIN`s are not yet supported");default:aP.fail(`Unknown type: ${Te}`)}}function Sve(Q,R){let me=[];R.static&&me.push(Mo.factory.createToken(Mo.default.SyntaxKind.StaticKeyword));let Te=R.name,ze=IY(Q,Te,R.args.toArray(),!0),it=$v(R.returnType);return[me,Te,ze,it]}function D5e(Q,R,me){let[Te,,ze,it]=Sve(Q,R),xr=Mo.factory.createPropertyAccessExpression(Mo.factory.createIdentifier("Symbol"),me?"asyncIterator":"iterator"),Ir=Mo.factory.createComputedPropertyName(xr);return[Te,Ir,ze,it]}function P5e(Q){IO(!Q.prototype);let R=[];Q.readonly&&R.push(Mo.factory.createToken(Mo.default.SyntaxKind.ReadonlyKeyword));let me=Q.name,Te=$v(Q.type),ze,it=bve(Te);return it!==void 0&&(Te=it,ze=Mo.factory.createToken(Mo.default.SyntaxKind.QuestionToken)),[R,me,ze,Te]}function A5e(Q){IO(Q.prototype);let R=Q.name,me=$v(Q.type),Te=Mo.factory.createGetAccessorDeclaration(void 0,R,[],me,void 0);if(Q.readonly)return Te;{let ze=Mo.factory.createParameterDeclaration(void 0,void 0,"value",void 0,me),it=Mo.factory.createSetAccessorDeclaration(void 0,R,[ze],void 0);return[Te,it]}}function E5e(Q){let R=Q.name,me=oP(Q.structure),Te=Mo.factory.createTypeQueryNode(Mo.factory.createIdentifier(me));return[R||me,Te]}function N5e(Q){let R=[Mo.factory.createToken(Mo.default.SyntaxKind.StaticKeyword),Mo.factory.createToken(Mo.default.SyntaxKind.ReadonlyKeyword)],me=Q.name,Te=Mo.factory.createTypeReferenceNode("number");return[R,me,Te]}function Uvt(Q,R){let me,Te,ze,it,xr,Ir=R.which();switch(Ir){case Ed.METHOD:{let vi=R.method;return[me,Te,ze,it]=Sve(Q,vi),Mo.factory.createMethodSignature(me,Te,void 0,void 0,ze,it)}case Ed.PROPERTY:{let vi=R.property;return vi.prototype?A5e(vi):([me,Te,xr,it]=P5e(vi),Mo.factory.createPropertySignature(me,Te,xr,it))}case Ed.NESTED:{let vi=R.nested;return[Te,it]=E5e(vi),Mo.factory.createPropertySignature(void 0,Te,void 0,it)}case Ed.CONSTANT:{let vi=R.constant;return[me,Te,it]=N5e(vi),Mo.factory.createPropertySignature([Mo.factory.createToken(Mo.default.SyntaxKind.ReadonlyKeyword)],Te,void 0,it)}case Ed.CONSTRUCTOR:IO.fail("Unexpected constructor member inside interface");default:IO.fail(`Unknown member: ${Ir}`)}}function C5e(Q,R,me){let[Te,ze,it,xr]=D5e(Q,R,me);return Mo.factory.createMethodSignature(Te,ze,void 0,void 0,it,xr)}function Vvt(Q,R){let me,Te,ze,it,xr,Ir=R.which();switch(Ir){case Ed.METHOD:{let vi=R.method;return[me,Te,ze,it]=Sve(Q,vi),Mo.factory.createMethodDeclaration(me,void 0,Te,void 0,void 0,ze,it,void 0)}case Ed.PROPERTY:{let vi=R.property;return vi.prototype?A5e(vi):([me,Te,xr,it]=P5e(vi),Mo.factory.createPropertyDeclaration(me,Te,xr,it,void 0))}case Ed.NESTED:{let vi=R.nested;return[Te,it]=E5e(vi),Mo.factory.createPropertyDeclaration(void 0,Te,void 0,it,void 0)}case Ed.CONSTANT:{let vi=R.constant;return[me,Te,it]=N5e(vi),Mo.factory.createPropertyDeclaration(me,Te,void 0,it,void 0)}case Ed.CONSTRUCTOR:{let vi=R.$constructor;return ze=IY(Q,"constructor",vi.args.toArray(),!0),Mo.factory.createConstructorDeclaration(void 0,ze,void 0)}default:IO.fail(`Unknown member: ${Ir}`)}}function w5e(Q,R,me){let[Te,ze,it,xr]=D5e(Q,R,me);return Mo.factory.createMethodDeclaration(Te,void 0,ze,void 0,void 0,it,xr,void 0)}function I5e(Q){return Q.filter(R=>!((Mo.default.isPropertySignature(R)||Mo.default.isPropertyDeclaration(R)||Mo.default.isGetAccessorDeclaration(R)||Mo.default.isSetAccessorDeclaration(R)||Mo.default.isMethodSignature(R)||Mo.default.isMethodDeclaration(R))&&R.type!==void 0&&wO(R.type)))}function M5e(Q,R){let{asClass:me,ambientContext:Te}=R,ze=[],it=oP(Q),xr=Q.fullyQualifiedName,Ir=[];if(Q._hasExtends()){let Yi=$v(Q.extends);IO(Mo.default.isTypeReferenceNode(Yi)&&Mo.default.isIdentifier(Yi.typeName),`Expected type reference, got "${qv(Yi)}"`);let Vi=Mo.factory.createExpressionWithTypeArguments(Yi.typeName,Yi.typeArguments);Ir.push(Mo.factory.createHeritageClause(Mo.default.SyntaxKind.ExtendsKeyword,[Vi]))}let vi=Q.members;if(me){Te||ze.push(Mo.factory.createToken(Mo.default.SyntaxKind.DeclareKeyword));let Yi=vi.map(Va=>Vvt(xr,Va)).flat(),Vi=Yi.findIndex(Va=>Mo.default.isConstructorDeclaration(Va));if(Vi===-1?ze.push(Mo.factory.createToken(Mo.default.SyntaxKind.AbstractKeyword)):Yi.unshift(...Yi.splice(Vi,1)),Q._hasIterator()){let Va=Q.iterator;Yi.push(w5e(xr,Va,!1))}if(Q._hasAsyncIterator()){let Va=Q.asyncIterator;Yi.push(w5e(xr,Va,!0))}return Mo.factory.createClassDeclaration(ze,it,void 0,Ir,I5e(Yi))}else{let Yi=vi.map(Vi=>Uvt(xr,Vi)).flat();if(Q._hasIterator()){let Vi=Q.iterator;Yi.push(C5e(xr,Vi,!1))}if(Q._hasAsyncIterator()){let Vi=Q.asyncIterator;Yi.push(C5e(xr,Vi,!0))}return Mo.factory.createInterfaceDeclaration(ze,it,void 0,Ir,I5e(Yi))}}function qvt(Q){let R=new Map;return Q.groups.forEach(me=>{me.structures.forEach(Te=>{R.set(Te.fullyQualifiedName,Te)})}),R}function $vt(Q,R){let me=new Set;function Te(Ir){switch(Ir.which()){case _c.PROMISE:{Te(Ir.promise.value);return}case _c.STRUCTURE:{let vi=Ir.structure.fullyQualifiedName,Yi=Q.get(vi);R5e(Yi!==void 0,`Unknown structure type: ${vi}`);{xr(Yi);return}}case _c.ARRAY:{Te(Ir.array.element);return}case _c.MAYBE:{Te(Ir.maybe.value);return}case _c.DICT:{let vi=Ir.dict;Te(vi.key),Te(vi.value);return}case _c.ONE_OF:{Ir.oneOf.variants.forEach(Te);return}case _c.FUNCTION:{ze(Ir.function);return}}}function ze(Ir){Ir.args.forEach(Te),Te(Ir.returnType)}function it(Ir){switch(Ir.which()){case Ed.METHOD:{ze(Ir.method);return}case Ed.PROPERTY:{Te(Ir.property.type);return}case Ed.NESTED:{xr(Ir.nested.structure);return}case Ed.CONSTRUCTOR:{Ir.$constructor.args.forEach(Te);return}}}function xr(Ir){let vi=Ir.fullyQualifiedName;me.has(vi)||(me.add(vi),Ir.members.forEach(it),Ir._hasExtends()&&Te(Ir.extends),Ir._hasIterator()&&ze(Ir.iterator),Ir._hasAsyncIterator()&&ze(Ir.asyncIterator))}if(R===void 0)for(let Ir of Q.values())Ir.tsRoot&&xr(Ir);else{let Ir=Q.get(R);R5e(Ir!==void 0,`Unknown root: ${R}`),xr(Ir)}return me}function Hvt(Q){let R=new Set;for(let me of Q.values()){if(me._hasExtends()){let Te=me.extends;Te._isStructure&&R.add(Te.structure.fullyQualifiedName)}me.members.forEach(Te=>{Te._isConstructor&&R.add(me.fullyQualifiedName),Te._isMethod&&Te.method.static&&R.add(me.fullyQualifiedName),Te._isNested&&R.add(Te.nested.structure.fullyQualifiedName)})}return R}function O5e(Q){let R=qvt(Q),me=$vt(R),Te=Hvt(R);return{nodes:Q.groups.map(xr=>{let Ir=[];return xr.structures.forEach(vi=>{let Yi=vi.fullyQualifiedName;if(me.has(Yi)){let Vi=Te.has(Yi);Ir.push(M5e(vi,{asClass:Vi}))}}),Ir}).flat(),structureMap:R}}var DO=Vh(Yg());import F5e from"node:assert";var TW=Map,Qvt=DO.default.getDefaultCompilerOptions();function j5e(Q,R,me=Qvt,Te){let ze=new Map;for(let[xr,Ir]of[...Q,...Te??[]]){let vi=DO.default.createSourceFile(xr,Ir,DO.default.ScriptTarget.ESNext,!1,DO.default.ScriptKind.TS);ze.set(xr,vi)}R??={getCurrentDirectory(){return"/"},getCanonicalFileName(xr){return xr},getDefaultLibFileName(xr){return""},getDefaultLibLocation(){return"/node_modules/typescript/lib"},getNewLine(){return`
|
|
`},useCaseSensitiveFileNames(){return!0},fileExists(xr){return ze.has(xr)},readFile(xr){F5e.fail("readFile() not implemented")},writeFile(xr,Ir,vi){F5e.fail("writeFile() not implemented")},getSourceFile(xr,Ir,vi,Yi){return ze.get(xr)}};let it=Array.from(Q.keys());return DO.default.createProgram(it,me,R)}var aM=Vh(Yg());var zy=Vh(Yg());import Kvt from"node:assert";function PO(Q,R){return Q===void 0?!1:Q.some(me=>me.kind===R)}function L5e(Q,R,me){return R!==void 0&&PO(R,me)?R:[Q.factory.createToken(me),...R??[]]}function W5e(Q,R,me){return R!==void 0&&!PO(R,me)?R:R?.filter(Te=>Te.kind!==me)??[]}function sM(Q,R,me){let Te=zy.default.getModifiers(R);return me.declare!==void 0&&(Te=(me.declare?L5e:W5e)(Q,Te,zy.default.SyntaxKind.DeclareKeyword)),me.export!==void 0&&(Te=(me.export?L5e:W5e)(Q,Te,zy.default.SyntaxKind.ExportKeyword)),Te}function gw(Q,R,me){if(zy.default.isClassDeclaration(R))return Q.factory.updateClassDeclaration(R,sM(Q,R,me),R.name,R.typeParameters,R.heritageClauses,R.members);if(zy.default.isInterfaceDeclaration(R))return Q.factory.updateInterfaceDeclaration(R,sM(Q,R,{...me,declare:void 0}),R.name,R.typeParameters,R.heritageClauses,R.members);if(zy.default.isEnumDeclaration(R))return Q.factory.updateEnumDeclaration(R,sM(Q,R,me),R.name,R.members);if(zy.default.isTypeAliasDeclaration(R))return Q.factory.updateTypeAliasDeclaration(R,sM(Q,R,{...me,declare:void 0}),R.name,R.typeParameters,R.type);if(zy.default.isVariableStatement(R))return Q.factory.updateVariableStatement(R,sM(Q,R,me),R.declarationList);if(zy.default.isFunctionDeclaration(R))return Q.factory.updateFunctionDeclaration(R,sM(Q,R,me),R.asteriskToken,R.name,R.typeParameters,R.parameters,R.type,R.body);if(zy.default.isModuleDeclaration(R))return Q.factory.updateModuleDeclaration(R,sM(Q,R,me),R.name,R.body);if(zy.default.isImportDeclaration(R)||zy.default.isImportEqualsDeclaration(R)||zy.default.isExportDeclaration(R)||zy.default.isExportAssignment(R))return R;Kvt.fail(`Expected statement, got "${qv(R)}"`)}function B5e(){return Q=>R=>{let me=Xvt(Q);return aM.default.visitEachChild(R,me,Q)}}function Xvt(Q){let R=Te=>gw(Q,Te,{declare:!1}),me=Te=>aM.default.isModuleBlock(Te)?aM.default.visitEachChild(Te,R,Q):Te;return Te=>aM.default.isModuleDeclaration(Te)&&(Te.flags&aM.default.NodeFlags.Namespace)===0?aM.default.visitEachChild(Te,me,Q):gw(Q,Te,{export:!1,declare:!0})}var Gy=Vh(Yg());function z5e(Q){return R=>me=>{let Te=Yvt(Q);return Gy.default.visitEachChild(me,Te,R)}}function DY(Q,R){R!==void 0&&Gy.default.addSyntheticLeadingComment(Q,Gy.default.SyntaxKind.MultiLineCommentTrivia,R,!0)}function Yvt(Q){return R=>{if((Gy.default.isClassDeclaration(R)||Gy.default.isInterfaceDeclaration(R))&&R.name!==void 0&&Gy.default.isIdentifier(R.name)){let me=Q[R.name.text];DY(R,me?.$);for(let Te of R.members)if(Te.name!==void 0&&Gy.default.isIdentifier(Te.name)){let ze=Te.name.text;Gy.default.canHaveModifiers(Te)&&PO(Gy.default.getModifiers(Te),Gy.default.SyntaxKind.StaticKeyword)&&(ze=`static:${ze}`),DY(Te,me?.[ze])}}if(Gy.default.isFunctionDeclaration(R)&&R.name!==void 0&&Gy.default.isIdentifier(R.name)){let me=Q[R.name.text];DY(R,me?.$)}if(Gy.default.isVariableStatement(R)&&R.declarationList.declarations.length===1){let Te=R.declarationList.declarations[0].name;if(Gy.default.isIdentifier(Te)){let ze=Q[Te.text];DY(R,ze?.$)}}return R}}var id=Vh(Yg());import kW from"node:assert";function G5e(Q){return R=>me=>{let Te=ebt(R,Q);return id.default.visitEachChild(me,Te,R)}}function Zvt(Q,R){if(R.size===0)return Te=>Te;let me=Te=>{if(Te=id.default.visitEachChild(Te,me,Q),id.default.isTypeReferenceNode(Te)&&id.default.isIdentifier(Te.typeName)){let ze=R.get(Te.typeName.text);if(ze!==void 0)return ze}return Te};return me}function J5e(Q,R,me){if((id.default.isMethodSignature(R)||id.default.isMethodDeclaration(R))&&id.default.isIdentifier(R.name))return Q.factory.createFunctionDeclaration(me,void 0,R.name,R.typeParameters,R.parameters,R.type,void 0);if((id.default.isPropertySignature(R)||id.default.isPropertyDeclaration(R)||id.default.isGetAccessorDeclaration(R))&&id.default.isIdentifier(R.name)&&(kW(R.type!==void 0),!id.default.isTypeQueryNode(R.type))){let Te=Q.factory.createVariableDeclaration(R.name,void 0,R.type),ze=Q.factory.createVariableDeclarationList([Te],id.default.NodeFlags.Const);return Q.factory.createVariableStatement(me,ze)}}function ebt(Q,R){function me(ze,it){let xr=[],Ir=new Map;ze.typeParameters&&(kW(ze.typeParameters.length===it?.length,`Expected ${ze.typeParameters.length} type argument(s), got ${it?.length}`),ze.typeParameters.forEach((Vi,Va)=>{Ir.set(Vi.name.text,it[Va])}));let vi=Zvt(Q,Ir);if(ze.heritageClauses!==void 0)for(let Vi of ze.heritageClauses){Vi=id.default.visitNode(Vi,vi,id.default.isHeritageClause);for(let Va of Vi.types){let Ke=R.getSymbolAtLocation(Va.expression);kW(Ke!==void 0);let Gl=Ke.getDeclarations();kW.strictEqual(Gl?.length,1);let Dr=Gl[0];kW(id.default.isInterfaceDeclaration(Dr)||id.default.isClassDeclaration(Dr)),xr.push(...me(Dr,Va.typeArguments))}}let Yi=[Q.factory.createToken(id.default.SyntaxKind.DeclareKeyword)];for(let Vi of ze.members){let Va=J5e(Q,Vi,Yi);Va!==void 0&&xr.push(id.default.visitNode(Va,vi))}return xr}return ze=>(id.default.isInterfaceDeclaration(ze)||id.default.isClassDeclaration(ze))&&ze.name!==void 0&&ze.name.text==="ServiceWorkerGlobalScope"?[ze,...me(ze)]:ze}var Gx=Vh(Yg());import U5e from"node:assert";var tbt={"node-internal:*":"/internal/*","node:*":"/*"};function V5e(){return Q=>R=>{let me=ibt(Q);return Gx.default.visitEachChild(R,me,Q)}}function q5e([Q,R]){return[new RegExp(`^${Q.replace("*","(.+)")}$`),R]}function $5e(Q,R){for(let[me,Te]of Q){let ze=me.exec(R);if(ze!==null)return ze.at(1)===void 0?Te:Te.replaceAll("*",ze[1])}}var H5e=Object.entries(tbt),rbt=H5e.map(q5e),nbt=H5e.map(([Q,R])=>q5e([R,Q]));function ibt(Q){return R=>{if(Gx.default.isModuleDeclaration(R)&&(R.flags&Gx.default.NodeFlags.Namespace)===0&&Gx.default.isStringLiteral(R.name)){let me=R.name.text,Te=$5e(rbt,me);if(Te===void 0)return R;let ze=sbt(Q,Te);return Gx.default.visitEachChild(R,ze,Q)}return R}}function sbt(Q,R){U5e(R.startsWith("/"),"Expected absolute referencing path");let me=new URL(R,"file:"),Te=ze=>{if(Gx.default.isImportTypeNode(ze)&&Gx.default.isLiteralTypeNode(ze.argument)&&Gx.default.isStringLiteral(ze.argument.literal)){let it=ze.argument.literal.text;if(!it.startsWith("."))return ze;let Ir=new URL(it,me).pathname,vi=$5e(nbt,Ir);U5e(vi!==void 0,`Unable to find matching specifier rule for path: "${Ir}"`);let Yi=Q.factory.updateLiteralTypeNode(ze.argument,Q.factory.createStringLiteral(vi));return Q.factory.updateImportTypeNode(ze,Yi,ze.attributes,ze.qualifier,ze.typeArguments,ze.isTypeOf)}return Gx.default.visitEachChild(ze,Te,Q)};return Te}var PY=Vh(Yg());function Q5e(){return Q=>R=>{let me=abt(Q);return PY.default.visitEachChild(R,me,Q)}}function abt(Q){return R=>{if(!(PY.default.isModuleDeclaration(R)&&(R.flags&PY.default.NodeFlags.Namespace)===0))return gw(Q,R,{export:!0})}}var mbt=Vh(Yg());import CSt from"node:assert";var ho=Vh(Yg());import Jx from"node:assert";import obt from"node:assert";import AY from"node:path";var cbt=/^export |^declare |^type |^abstract |^class |^interface |^enum |^const |^var |^function /,lbt=/^extends |^implements /;function ubt(Q,R){return cbt.test(R)?[R,!0]:(lbt.test(R)||R.startsWith("{")?R=`class ${Q} ${R}`:R.startsWith("<")?R=`class ${Q}${R}`:R=`class ${R}`,R.endsWith("}")||(R=`${R} {}`),[R,!1])}var K5e="/$virtual/overrides",X5e="/$virtual/defines";function Tve(Q){let R=new TW,me=new Set;return Q.groups.forEach(Te=>{Te.structures.forEach(ze=>{let it=oP(ze),xr=ze.tsOverride.trim(),Ir=ze.tsDefine.trim();if(xr!==""){let[vi,Yi]=ubt(it,xr);R.set(AY.join(K5e,it+".ts"),vi),Yi&&me.add(it)}Ir!==""&&R.set(AY.join(X5e,it+".ts"),Ir)})}),[R,me]}function Y5e(Q,R){let me=AY.join(K5e,R+".ts"),Te=Q.getSourceFile(me);if(Te!==void 0)return obt.strictEqual(Te.statements.length,1),Te.statements[0]}function kve(Q,R){let me=AY.join(X5e,R+".ts");return Q.getSourceFile(me)?.statements}function tLe(Q,R){return me=>Te=>{let ze={program:Q,replacements:R,renames:new Map},it=_bt(me,ze),xr=nLe(me,ze.renames);return Te=ho.default.visitEachChild(Te,it,me),ho.default.visitEachChild(Te,xr,me)}}function rLe(Q){if(ho.default.isConstructorDeclaration(Q))return"constructor$";let R=Q.name;Jx(R!==void 0,`Expected named member, got "${qv(Q)}"`);let Te=ho.default.canHaveModifiers(Q)&&PO(ho.default.getModifiers(Q),ho.default.SyntaxKind.StaticKeyword)?"static$":"instance$";if(ho.default.isIdentifier(R)||ho.default.isStringLiteral(R)||ho.default.isNumericLiteral(R))return Te+R.text;if(ho.default.isComputedPropertyName(R)){let ze=R.expression;if(ho.default.isStringLiteral(ze)||ho.default.isNumericLiteral(ze))return Te+ze.text}return Te+qv(R)}function pbt(Q){let R=new Map;return Q.forEach(me=>{let Te=rLe(me),ze=R.get(Te);ze===void 0&&R.set(Te,ze=[]),ze.push(me)}),R}function xve(Q,R,me=0){return Q.findIndex((Te,ze)=>me<=ze&&rLe(Te)===R)}function Z5e(Q,R,me){let Te=[...Q],ze=pbt(R);for(let[it,xr]of ze){let vi=xr.filter(Vi=>ho.default.isPropertyDeclaration(Vi)&&Vi.type!==void 0?!wO(Vi.type):!0).map(me),Yi=xve(Te,it);if(Yi===-1)Te.push(...vi);else{let Vi=Te[Yi],Va=xve(Te,it,Yi+1);if(ho.default.isGetAccessorDeclaration(Vi)||ho.default.isSetAccessorDeclaration(Vi)){if(Va!==-1){let Ke=Te[Va];Jx(ho.default.isGetAccessorDeclaration(Ke)||ho.default.isSetAccessorDeclaration(Ke),`Expected getter/setter, got "${qv(Ke)}"`),Jx(Va>Yi),Te.splice(Va,1);let Gl=xve(Te,it,Va+1);Jx(Gl===-1)}}else Jx(Va===-1);Te.splice(Yi,1,...vi)}}return Te}function fbt(Q,R){if(ho.default.isMethodDeclaration(R))return Q.factory.createMethodSignature(ho.default.getModifiers(R),R.name,R.questionToken,R.typeParameters,R.parameters,R.type);if(ho.default.isPropertyDeclaration(R))return Q.factory.createPropertySignature(ho.default.getModifiers(R),R.name,R.questionToken,R.type);if(ho.default.isGetAccessorDeclaration(R)||ho.default.isSetAccessorDeclaration(R)||ho.default.isIndexSignatureDeclaration(R))return R;Jx.fail(`Expected interface-compatible member, got "${qv(R)}".
|
|
You'll need to define a full-replacement override to a "class" if you wish to insert this member (i.e. "JSG_TS_OVERRIDE(class MyClass { <all_members> })").`)}function eLe(Q,R,me,Te){Jx(me.name!==void 0);let ze=me.name.text,it=Y5e(R.program,ze),xr=R.replacements.has(ze);if(it!==void 0){let Ir=dbt(it);if(Ir!==void 0){let vi=Ir.text;ze!==vi&&R.renames.set(ze,vi)}}return xr?(Jx(it!==void 0),gw(Q,it,{declare:!0,export:!1})):it!==void 0?(Jx(ho.default.isClassDeclaration(it)),Te(me,it)):me}function _bt(Q,R){let me=ze=>(ze=ho.default.visitEachChild(ze,me,Q),ho.default.isStringLiteral(ze)?Q.factory.createStringLiteral(ze.text):ho.default.isNumericLiteral(ze)?Q.factory.createNumericLiteral(ze.text):ze),Te=ze=>{if(ho.default.isModuleDeclaration(ze)||ho.default.isModuleBody(ze))return ho.default.visitEachChild(ze,Te,Q);let it;return ho.default.isClassDeclaration(ze)&&ze.name!==void 0?(it=kve(R.program,ze.name.text),ze=eLe(Q,R,ze,(xr,Ir)=>Q.factory.updateClassDeclaration(xr,xr.modifiers,Ir.name,Ir.typeParameters??xr.typeParameters,Ir.heritageClauses??xr.heritageClauses,Z5e(xr.members,Ir.members,vi=>vi)))):ho.default.isInterfaceDeclaration(ze)&&(it=kve(R.program,ze.name.text),ze=eLe(Q,R,ze,(xr,Ir)=>(Jx(Ir.name!==void 0),Q.factory.updateInterfaceDeclaration(xr,xr.modifiers,Ir.name,Ir.typeParameters??xr.typeParameters,Ir.heritageClauses??xr.heritageClauses,Z5e(xr.members,Ir.members,vi=>fbt(Q,vi)))))),ze=ho.default.visitNode(ze,me),it=ho.default.visitNodes(it,me,ho.default.isStatement),it=ho.default.visitNodes(it,xr=>gw(Q,xr,{declare:!0,export:!1}),ho.default.isStatement),ho.default.isTypeAliasDeclaration(ze)&&wO(ze.type)?it===void 0?void 0:[...it]:it==null?ze:[...it,ze]};return Te}function nLe(Q,R,me=!1){let Te=ze=>{if(ze=ho.default.visitEachChild(ze,Te,Q),ho.default.isTypeReferenceNode(ze)&&ho.default.isIdentifier(ze.typeName)){let it=R.get(ze.typeName.text);if(it!==void 0)return Q.factory.updateTypeReferenceNode(ze,Q.factory.createIdentifier(it),ze.typeArguments)}if(ho.default.isTypeQueryNode(ze)&&ho.default.isIdentifier(ze.exprName)){let it=R.get(ze.exprName.text);if(it!==void 0)return Q.factory.updateTypeQueryNode(ze,Q.factory.createIdentifier(it),ze.typeArguments)}if(ho.default.isExpressionWithTypeArguments(ze)&&ho.default.isIdentifier(ze.expression)){let it=R.get(ze.expression.text);if(it!==void 0)return Q.factory.updateExpressionWithTypeArguments(ze,Q.factory.createIdentifier(it),ze.typeArguments)}if(me){if(ho.default.isClassDeclaration(ze)&&ze.name!==void 0&&ho.default.isIdentifier(ze.name)){let it=R.get(ze.name.text);if(it!==void 0)return Q.factory.updateClassDeclaration(ze,ze.modifiers,Q.factory.createIdentifier(it),ze.typeParameters,ze.heritageClauses,ze.members)}if(ho.default.isInterfaceDeclaration(ze)&&ho.default.isIdentifier(ze.name)){let it=R.get(ze.name.text);if(it!==void 0)return Q.factory.updateInterfaceDeclaration(ze,ze.modifiers,Q.factory.createIdentifier(it),ze.typeParameters,ze.heritageClauses,ze.members)}}return ze};return Te}function dbt(Q){if(ho.default.isClassDeclaration(Q)||ho.default.isInterfaceDeclaration(Q)||ho.default.isEnumDeclaration(Q)||ho.default.isTypeAliasDeclaration(Q))return Q.name}var Vf=Vh(Yg());import cP from"node:assert";function iLe(Q){return R=>me=>{let Te={types:new Map,nextInterfaces:new Set},ze=gbt(R,Q,Te),it=hbt(R,Q,Te);return me=Vf.default.visitEachChild(me,ze,R),Vf.default.visitEachChild(me,it,R)}}function gbt(Q,R,me){let Te=ze=>{if(Vf.default.isModuleDeclaration(ze)||Vf.default.isModuleBody(ze))return Vf.default.visitEachChild(ze,Te,Q);if(Vf.default.isInterfaceDeclaration(ze)){let it=ze.heritageClauses?.[0];if(it?.token===Vf.default.SyntaxKind.ExtendsKeyword&&it.types.length===1&&Vf.default.isIdentifier(it.types[0].expression)&&(it.types[0].expression.text==="Iterator"||it.types[0].expression.text==="AsyncIterator")){let xr=it.types[0].expression.text!=="Iterator",Ir;for(let fo of ze.members)Vf.default.isMethodSignature(fo)&&Vf.default.isIdentifier(fo.name)&&fo.name.text==="next"&&fo.type!==void 0&&(Ir=fo.type);cP(Ir!==void 0,`Expected iterator-like interface, got "${qv(ze)}"`),xr&&(cP(Vf.default.isTypeReferenceNode(Ir)&&Vf.default.isIdentifier(Ir.typeName)&&Ir.typeName.text==="Promise"&&Ir.typeArguments?.length===1,`Expected Promise, got "${qv(Ir)}"`),Ir=Ir.typeArguments[0]);let Yi=R.getTypeFromTypeNode(Ir).getSymbol();cP(Yi?.members!==void 0);let Vi;Yi.members.forEach((fo,Em)=>{Em==="value"&&(Vi=fo)}),cP(Vi!==void 0);let Va=Vi.getDeclarations();cP.strictEqual(Va?.length,1);let Ke=Va[0];cP(Vf.default.isPropertySignature(Ke)),me.nextInterfaces.add(Yi);let Gl=Ke.type;cP(Gl!==void 0);let or=R.getTypeAtLocation(ze).getSymbol();cP(or!==void 0);let Zg=Q.factory.createTypeReferenceNode(xr?"AsyncIterableIterator":"IterableIterator",[Gl]);me.types.set(or,Zg);return}}return ze};return Te}function hbt(Q,R,me){function Te(it){if(it.type===void 0)return;let Ir=R.getTypeFromTypeNode(it.type).getSymbol();if(Ir!==void 0)return me.types.get(Ir)}let ze=it=>{if(Vf.default.isInterfaceDeclaration(it)){let Ir=R.getTypeAtLocation(it).getSymbol();if(Ir!==void 0&&me.nextInterfaces.has(Ir))return}if(Vf.default.isInterfaceDeclaration(it)||Vf.default.isClassDeclaration(it)||Vf.default.isModuleDeclaration(it)||Vf.default.isModuleBody(it))return Vf.default.visitEachChild(it,ze,Q);if(Vf.default.isMethodSignature(it)){let xr=Te(it);if(xr!==void 0)return Q.factory.updateMethodSignature(it,it.modifiers,it.name,it.questionToken,it.typeParameters,it.parameters,xr)}if(Vf.default.isMethodDeclaration(it)){let xr=Te(it);if(xr!==void 0)return Q.factory.updateMethodDeclaration(it,it.modifiers,it.asteriskToken,it.name,it.questionToken,it.typeParameters,it.parameters,xr,it.body)}if(Vf.default.isPropertySignature(it)){let xr=Te(it);if(xr!==void 0)return Q.factory.updatePropertySignature(it,it.modifiers,it.name,it.questionToken,xr)}if(Vf.default.isPropertyDeclaration(it)){let xr=Te(it);if(xr!==void 0)return Q.factory.updatePropertyDeclaration(it,it.modifiers,it.name,it.questionToken??it.exclamationToken,xr,it.initializer)}if(Vf.default.isGetAccessorDeclaration(it)){let xr=Te(it);if(xr!==void 0)return Q.factory.updateGetAccessorDeclaration(it,it.modifiers,it.name,it.parameters,xr,it.body)}return it};return ze}var I_=Vh(Yg());function sLe(Q){return R=>{let me=Te=>I_.default.isClassDeclaration(Te)&&Te.name&&Q.includes(Te.name.text)?ybt(Te,R):I_.default.visitEachChild(Te,me,R);return Te=>{let it=I_.default.visitNodes(Te.statements,me).filter(I_.default.isStatement);return R.factory.updateSourceFile(Te,it)}}}function ybt(Q,R){let me=vbt(Q,R);return[xbt(Q,R),me]}function vbt(Q,R){let me=aLe(Q.members,R,!1);return R.factory.createInterfaceDeclaration(oLe(I_.default.getModifiers(Q)),Q.name,Q.typeParameters,Q.heritageClauses,me)}function aLe(Q,R,me){return Q.map(Te=>bbt(Te,R,me)).filter(Te=>Te!==void 0)}function bbt(Q,R,me){let Te=I_.default.canHaveModifiers(Q)?I_.default.getModifiers(Q):void 0;if((Te?.some(Ir=>Ir.kind===I_.default.SyntaxKind.StaticKeyword)??!1)!==me||(Te?.some(Ir=>Ir.kind===I_.default.SyntaxKind.PrivateKeyword)??!1))return;let xr=oLe(Te);if(I_.default.isPropertyDeclaration(Q))return Sbt(Q,xr,R);if(I_.default.isMethodDeclaration(Q))return Tbt(Q,xr,R);if(I_.default.isGetAccessor(Q))return kbt(Q,xr,R);if(I_.default.isSetAccessor(Q)||I_.default.isConstructorDeclaration(Q))return;console.warn(`Unhandled member type: ${I_.default.SyntaxKind[Q.kind]}`)}function Sbt(Q,R,me){return me.factory.createPropertySignature(R,Q.name,Q.questionToken,Q.type)}function Tbt(Q,R,me){return me.factory.createMethodSignature(R,Q.name,Q.questionToken,Q.typeParameters,Q.parameters,Q.type)}function kbt(Q,R,me){return me.factory.createPropertySignature(R,Q.name,void 0,Q.type)}function xbt(Q,R){return R.factory.createVariableStatement([R.factory.createModifier(I_.default.SyntaxKind.DeclareKeyword)],R.factory.createVariableDeclarationList([R.factory.createVariableDeclaration(Q.name,void 0,Cbt(Q,R))],I_.default.NodeFlags.None))}function Cbt(Q,R){let me=aLe(Q.members,R,!0);return R.factory.createTypeLiteralNode([Ibt(Q,R),wbt(Q,R),...me])}function wbt(Q,R){let me=Q.members.find(I_.default.isConstructorDeclaration),Te=Q.typeParameters,ze=R.factory.createTypeReferenceNode(Q.name,Te?.map(it=>R.factory.createTypeReferenceNode(it.name,void 0)));return R.factory.createConstructSignature(Te,me?.parameters??[],ze)}function Ibt(Q,R){return R.factory.createPropertySignature(void 0,"prototype",void 0,R.factory.createTypeReferenceNode(Q.name,void 0))}function oLe(Q){return Q?.filter(R=>R.kind===I_.default.SyntaxKind.ReadonlyKeyword||R.kind===I_.default.SyntaxKind.PublicKeyword||R.kind===I_.default.SyntaxKind.ProtectedKeyword||R.kind===I_.default.SyntaxKind.PrivateKeyword)}var AO=Vh(Yg());function cLe(){return Q=>R=>{let me=Q.factory.createVariableStatement([Q.factory.createModifier(AO.default.SyntaxKind.DeclareKeyword)],Q.factory.createVariableDeclarationList([Q.factory.createVariableDeclaration("onmessage",void 0,Q.factory.createKeywordTypeNode(AO.default.SyntaxKind.NeverKeyword))],AO.default.NodeFlags.None)),Te=AO.default.factory.createNodeArray([me,...R.statements]);return AO.default.factory.updateSourceFile(R,Te)}}var uLe=`/*! *****************************************************************************
|
|
Copyright (c) Cloudflare. All rights reserved.
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
and limitations under the License.
|
|
***************************************************************************** */
|
|
/* eslint-disable */
|
|
// noinspection JSUnusedGlobalSymbols
|
|
`;function Cve(Q,R,me){let Te=j5e(Q),ze=Te.getTypeChecker(),it=Te.getSourceFile(R);lLe(it!==void 0);let xr=pLe.default.transform(it,me(Te,ze));return lLe.strictEqual(xr.transformed.length,1),wY.printFile(xr.transformed[0])}function fLe(Q,R,me){let{nodes:Te}=O5e(Q),[ze,it]=Tve(Q),xr="/$virtual/source.ts",Ir=vve(Te);ze.set(xr,vve(Te)),Ir=Cve(ze,xr,(Yi,Vi)=>[iLe(Vi),tLe(Yi,it),G5e(Vi),sLe(["Request","Response","WebSocket"]),z5e(R),cLe()]),Ir+=me,Ir=Cve(new TW([[xr,Ir]]),xr,()=>[V5e(),B5e()]);let vi=Cve(new TW([[xr,Ir]]),xr,()=>[Q5e()]);return{ambient:uLe+Ir,importable:uLe+vi}}o5e(s5e);var lTt={async fetch(Q){try{let{pathname:R}=new URL(Q.url);if(!/^\/\d{4}-\d{2}-\d{2}\+?/.test(R)&&!R.startsWith("/experimental"))return new Response("Not Found",{status:404});let me="ambient";R.endsWith(".d.ts")?R=R.slice(0,-5):R.endsWith(".ts")?(R=R.slice(0,-3),me="importable"):R.endsWith(".bundle")&&(R=R.slice(0,-7),me="bundle");let[Te,...ze]=R.substring(1).split("+"),it;Te==="experimental"?it=_Le.exportExperimentalTypes():it=_Le.exportTypes(Te,ze);let Ir=new rM(it,!1).getRoot(xO),{ambient:vi,importable:Yi}=fLe(Ir,i5e,n5e);if(me==="ambient")return new Response(vi);if(me==="importable")return new Response(Yi);let Vi=new FormData;return Vi.set("index.d.ts",vi),Vi.set("index.ts",Yi),new Response(Vi)}catch(R){return new Response(R.stack,{status:500})}}};export{lTt as default};
|
|
/*! Bundled license information:
|
|
|
|
typescript/lib/typescript.js:
|
|
(*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
and limitations under the License.
|
|
***************************************************************************** *)
|
|
*/
|